@farris/ui-vue 1.6.5-beta.7 → 1.6.5

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 (192) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +190 -181
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -1,66 +1,54 @@
1
- var wt = Object.defineProperty;
2
- var Et = (e, t, n) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var de = (e, t, n) => Et(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { createI18n as gt, useI18n as Rt } from "vue-i18n";
5
- const St = Symbol("LOCALE_SERVICE"), Pe = "zh-CHS", Ot = {
6
- locale: Pe,
7
- fallbackLocale: Pe,
1
+ var tt = Object.defineProperty;
2
+ var nt = (e, t, n) => t in e ? tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ne = (e, t, n) => nt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { createI18n as rt, useI18n as st } from "vue-i18n";
5
+ const ot = Symbol("LOCALE_SERVICE"), be = "zh-CHS", it = {
6
+ locale: be,
7
+ fallbackLocale: be,
8
8
  uri: ""
9
9
  };
10
- function Ke(e, t) {
10
+ function Fe(e, t) {
11
11
  return function() {
12
12
  return e.apply(t, arguments);
13
13
  };
14
14
  }
15
- const { toString: At } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: oe, toStringTag: ve } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
16
- const n = At.call(t);
15
+ const { toString: at } = Object.prototype, { getPrototypeOf: de } = Object, { iterator: X, toStringTag: Ue } = Symbol, G = /* @__PURE__ */ ((e) => (t) => {
16
+ const n = at.call(t);
17
17
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
18
- })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: $ } = Array, M = ae("undefined");
19
- function W(e) {
20
- return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
18
+ })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => G(t) === e), Q = (e) => (t) => typeof t === e, { isArray: _ } = Array, I = Q("undefined");
19
+ function ct(e) {
20
+ return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && C(e.constructor.isBuffer) && e.constructor.isBuffer(e);
21
21
  }
22
- const Xe = P("ArrayBuffer");
23
- function Tt(e) {
22
+ const Be = N("ArrayBuffer");
23
+ function lt(e) {
24
24
  let t;
25
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xe(e.buffer), t;
25
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Be(e.buffer), t;
26
26
  }
27
- const Ct = ae("string"), T = ae("function"), Ge = ae("number"), K = (e) => e !== null && typeof e == "object", xt = (e) => e === !0 || e === !1, ee = (e) => {
28
- if (ie(e) !== "object")
29
- return !1;
30
- const t = Re(e);
31
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ve in e) && !(oe in e);
32
- }, Nt = (e) => {
33
- if (!K(e) || W(e))
34
- return !1;
35
- try {
36
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
37
- } catch {
27
+ const ut = Q("string"), C = Q("function"), De = Q("number"), Z = (e) => e !== null && typeof e == "object", ft = (e) => e === !0 || e === !1, J = (e) => {
28
+ if (G(e) !== "object")
38
29
  return !1;
39
- }
40
- }, Lt = P("Date"), Pt = P("File"), Ft = P("Blob"), Ut = P("FileList"), kt = (e) => K(e) && T(e.pipe), Dt = (e) => {
30
+ const t = de(e);
31
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ue in e) && !(X in e);
32
+ }, dt = N("Date"), pt = N("File"), ht = N("Blob"), mt = N("FileList"), yt = (e) => Z(e) && C(e.pipe), bt = (e) => {
41
33
  let t;
42
- return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
43
- t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
44
- }, Bt = P("URLSearchParams"), [_t, jt, qt, It] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Ht = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
45
- function v(e, t, { allOwnKeys: n = !1 } = {}) {
34
+ return e && (typeof FormData == "function" && e instanceof FormData || C(e.append) && ((t = G(e)) === "formdata" || // detect form-data instance
35
+ t === "object" && C(e.toString) && e.toString() === "[object FormData]"));
36
+ }, wt = N("URLSearchParams"), [Et, Rt, gt, St] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Ot = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function M(e, t, { allOwnKeys: n = !1 } = {}) {
46
38
  if (e === null || typeof e > "u")
47
39
  return;
48
40
  let r, s;
49
- if (typeof e != "object" && (e = [e]), $(e))
41
+ if (typeof e != "object" && (e = [e]), _(e))
50
42
  for (r = 0, s = e.length; r < s; r++)
51
43
  t.call(null, e[r], r, e);
52
44
  else {
53
- if (W(e))
54
- return;
55
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
45
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
56
46
  let c;
57
- for (r = 0; r < o; r++)
58
- c = i[r], t.call(null, e[c], c, e);
47
+ for (r = 0; r < i; r++)
48
+ c = o[r], t.call(null, e[c], c, e);
59
49
  }
60
50
  }
61
- function Qe(e, t) {
62
- if (W(e))
63
- return null;
51
+ function ke(e, t) {
64
52
  t = t.toLowerCase();
65
53
  const n = Object.keys(e);
66
54
  let r = n.length, s;
@@ -69,75 +57,75 @@ function Qe(e, t) {
69
57
  return s;
70
58
  return null;
71
59
  }
72
- const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ze = (e) => !M(e) && e !== j;
73
- function ye() {
74
- const { caseless: e, skipUndefined: t } = Ze(this) && this || {}, n = {}, r = (s, i) => {
75
- const o = e && Qe(n, i) || i;
76
- ee(n[o]) && ee(s) ? n[o] = ye(n[o], s) : ee(s) ? n[o] = ye({}, s) : $(s) ? n[o] = s.slice() : (!t || !M(s)) && (n[o] = s);
60
+ const B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !I(e) && e !== B;
61
+ function ie() {
62
+ const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
63
+ const o = e && ke(t, s) || s;
64
+ J(t[o]) && J(r) ? t[o] = ie(t[o], r) : J(r) ? t[o] = ie({}, r) : _(r) ? t[o] = r.slice() : t[o] = r;
77
65
  };
78
- for (let s = 0, i = arguments.length; s < i; s++)
79
- arguments[s] && v(arguments[s], r);
80
- return n;
66
+ for (let r = 0, s = arguments.length; r < s; r++)
67
+ arguments[r] && M(arguments[r], n);
68
+ return t;
81
69
  }
82
- const Mt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
83
- n && T(s) ? e[i] = Ke(s, n) : e[i] = s;
84
- }, { allOwnKeys: r }), e), $t = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), zt = (e, t, n, r) => {
70
+ const Tt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
71
+ n && C(s) ? e[o] = Fe(s, n) : e[o] = s;
72
+ }, { allOwnKeys: r }), e), At = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ct = (e, t, n, r) => {
85
73
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
86
74
  value: t.prototype
87
75
  }), n && Object.assign(e.prototype, n);
88
- }, Jt = (e, t, n, r) => {
89
- let s, i, o;
76
+ }, xt = (e, t, n, r) => {
77
+ let s, o, i;
90
78
  const c = {};
91
79
  if (t = t || {}, e == null) return t;
92
80
  do {
93
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
94
- o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
95
- e = n !== !1 && Re(e);
81
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
82
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
83
+ e = n !== !1 && de(e);
96
84
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
97
85
  return t;
98
- }, Vt = (e, t, n) => {
86
+ }, Nt = (e, t, n) => {
99
87
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
100
88
  const r = e.indexOf(t, n);
101
89
  return r !== -1 && r === n;
102
- }, Wt = (e) => {
90
+ }, Lt = (e) => {
103
91
  if (!e) return null;
104
- if ($(e)) return e;
92
+ if (_(e)) return e;
105
93
  let t = e.length;
106
- if (!Ge(t)) return null;
94
+ if (!De(t)) return null;
107
95
  const n = new Array(t);
108
96
  for (; t-- > 0; )
109
97
  n[t] = e[t];
110
98
  return n;
111
- }, Kt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Re(Uint8Array)), vt = (e, t) => {
112
- const r = (e && e[oe]).call(e);
99
+ }, Pt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && de(Uint8Array)), Ft = (e, t) => {
100
+ const r = (e && e[X]).call(e);
113
101
  let s;
114
102
  for (; (s = r.next()) && !s.done; ) {
115
- const i = s.value;
116
- t.call(e, i[0], i[1]);
103
+ const o = s.value;
104
+ t.call(e, o[0], o[1]);
117
105
  }
118
- }, Xt = (e, t) => {
106
+ }, Ut = (e, t) => {
119
107
  let n;
120
108
  const r = [];
121
109
  for (; (n = e.exec(t)) !== null; )
122
110
  r.push(n);
123
111
  return r;
124
- }, Gt = P("HTMLFormElement"), Qt = (e) => e.toLowerCase().replace(
112
+ }, Bt = N("HTMLFormElement"), Dt = (e) => e.toLowerCase().replace(
125
113
  /[-_\s]([a-z\d])(\w*)/g,
126
114
  function(n, r, s) {
127
115
  return r.toUpperCase() + s;
128
116
  }
129
- ), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Zt = P("RegExp"), Ye = (e, t) => {
117
+ ), we = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), kt = N("RegExp"), je = (e, t) => {
130
118
  const n = Object.getOwnPropertyDescriptors(e), r = {};
131
- v(n, (s, i) => {
132
- let o;
133
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
119
+ M(n, (s, o) => {
120
+ let i;
121
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
134
122
  }), Object.defineProperties(e, r);
135
- }, Yt = (e) => {
136
- Ye(e, (t, n) => {
137
- if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
123
+ }, _t = (e) => {
124
+ je(e, (t, n) => {
125
+ if (C(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
138
126
  return !1;
139
127
  const r = e[n];
140
- if (T(r)) {
128
+ if (C(r)) {
141
129
  if (t.enumerable = !1, "writable" in t) {
142
130
  t.writable = !1;
143
131
  return;
@@ -147,108 +135,105 @@ const Mt = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
147
135
  });
148
136
  }
149
137
  });
150
- }, en = (e, t) => {
138
+ }, jt = (e, t) => {
151
139
  const n = {}, r = (s) => {
152
- s.forEach((i) => {
153
- n[i] = !0;
140
+ s.forEach((o) => {
141
+ n[o] = !0;
154
142
  });
155
143
  };
156
- return $(e) ? r(e) : r(String(e).split(t)), n;
157
- }, tn = () => {
158
- }, nn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
159
- function rn(e) {
160
- return !!(e && T(e.append) && e[ve] === "FormData" && e[oe]);
144
+ return _(e) ? r(e) : r(String(e).split(t)), n;
145
+ }, qt = () => {
146
+ }, It = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
147
+ function Mt(e) {
148
+ return !!(e && C(e.append) && e[Ue] === "FormData" && e[X]);
161
149
  }
162
- const sn = (e) => {
150
+ const Ht = (e) => {
163
151
  const t = new Array(10), n = (r, s) => {
164
- if (K(r)) {
152
+ if (Z(r)) {
165
153
  if (t.indexOf(r) >= 0)
166
154
  return;
167
- if (W(r))
168
- return r;
169
155
  if (!("toJSON" in r)) {
170
156
  t[s] = r;
171
- const i = $(r) ? [] : {};
172
- return v(r, (o, c) => {
173
- const d = n(o, s + 1);
174
- !M(d) && (i[c] = d);
175
- }), t[s] = void 0, i;
157
+ const o = _(r) ? [] : {};
158
+ return M(r, (i, c) => {
159
+ const f = n(i, s + 1);
160
+ !I(f) && (o[c] = f);
161
+ }), t[s] = void 0, o;
176
162
  }
177
163
  }
178
164
  return r;
179
165
  };
180
166
  return n(e, 0);
181
- }, on = P("AsyncFunction"), an = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (j.addEventListener("message", ({ source: s, data: i }) => {
182
- s === j && i === n && r.length && r.shift()();
167
+ }, zt = N("AsyncFunction"), Jt = (e) => e && (Z(e) || C(e)) && C(e.then) && C(e.catch), qe = ((e, t) => e ? setImmediate : t ? ((n, r) => (B.addEventListener("message", ({ source: s, data: o }) => {
168
+ s === B && o === n && r.length && r.shift()();
183
169
  }, !1), (s) => {
184
- r.push(s), j.postMessage(n, "*");
170
+ r.push(s), B.postMessage(n, "*");
185
171
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
186
172
  typeof setImmediate == "function",
187
- T(j.postMessage)
188
- ), cn = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || et, ln = (e) => e != null && T(e[oe]), a = {
189
- isArray: $,
190
- isArrayBuffer: Xe,
191
- isBuffer: W,
192
- isFormData: Dt,
193
- isArrayBufferView: Tt,
194
- isString: Ct,
195
- isNumber: Ge,
196
- isBoolean: xt,
197
- isObject: K,
198
- isPlainObject: ee,
199
- isEmptyObject: Nt,
200
- isReadableStream: _t,
201
- isRequest: jt,
202
- isResponse: qt,
203
- isHeaders: It,
204
- isUndefined: M,
205
- isDate: Lt,
206
- isFile: Pt,
207
- isBlob: Ft,
208
- isRegExp: Zt,
209
- isFunction: T,
210
- isStream: kt,
211
- isURLSearchParams: Bt,
212
- isTypedArray: Kt,
213
- isFileList: Ut,
214
- forEach: v,
215
- merge: ye,
216
- extend: Mt,
217
- trim: Ht,
218
- stripBOM: $t,
219
- inherits: zt,
220
- toFlatObject: Jt,
221
- kindOf: ie,
222
- kindOfTest: P,
223
- endsWith: Vt,
224
- toArray: Wt,
225
- forEachEntry: vt,
226
- matchAll: Xt,
227
- isHTMLForm: Gt,
228
- hasOwnProperty: Fe,
229
- hasOwnProp: Fe,
173
+ C(B.postMessage)
174
+ ), $t = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || qe, Vt = (e) => e != null && C(e[X]), a = {
175
+ isArray: _,
176
+ isArrayBuffer: Be,
177
+ isBuffer: ct,
178
+ isFormData: bt,
179
+ isArrayBufferView: lt,
180
+ isString: ut,
181
+ isNumber: De,
182
+ isBoolean: ft,
183
+ isObject: Z,
184
+ isPlainObject: J,
185
+ isReadableStream: Et,
186
+ isRequest: Rt,
187
+ isResponse: gt,
188
+ isHeaders: St,
189
+ isUndefined: I,
190
+ isDate: dt,
191
+ isFile: pt,
192
+ isBlob: ht,
193
+ isRegExp: kt,
194
+ isFunction: C,
195
+ isStream: yt,
196
+ isURLSearchParams: wt,
197
+ isTypedArray: Pt,
198
+ isFileList: mt,
199
+ forEach: M,
200
+ merge: ie,
201
+ extend: Tt,
202
+ trim: Ot,
203
+ stripBOM: At,
204
+ inherits: Ct,
205
+ toFlatObject: xt,
206
+ kindOf: G,
207
+ kindOfTest: N,
208
+ endsWith: Nt,
209
+ toArray: Lt,
210
+ forEachEntry: Ft,
211
+ matchAll: Ut,
212
+ isHTMLForm: Bt,
213
+ hasOwnProperty: we,
214
+ hasOwnProp: we,
230
215
  // an alias to avoid ESLint no-prototype-builtins detection
231
- reduceDescriptors: Ye,
232
- freezeMethods: Yt,
233
- toObjectSet: en,
234
- toCamelCase: Qt,
235
- noop: tn,
236
- toFiniteNumber: nn,
237
- findKey: Qe,
238
- global: j,
239
- isContextDefined: Ze,
240
- isSpecCompliantForm: rn,
241
- toJSONObject: sn,
242
- isAsyncFn: on,
243
- isThenable: an,
244
- setImmediate: et,
245
- asap: cn,
246
- isIterable: ln
216
+ reduceDescriptors: je,
217
+ freezeMethods: _t,
218
+ toObjectSet: jt,
219
+ toCamelCase: Dt,
220
+ noop: qt,
221
+ toFiniteNumber: It,
222
+ findKey: ke,
223
+ global: B,
224
+ isContextDefined: _e,
225
+ isSpecCompliantForm: Mt,
226
+ toJSONObject: Ht,
227
+ isAsyncFn: zt,
228
+ isThenable: Jt,
229
+ setImmediate: qe,
230
+ asap: $t,
231
+ isIterable: Vt
247
232
  };
248
- function y(e, t, n, r, s) {
233
+ function m(e, t, n, r, s) {
249
234
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
250
235
  }
251
- a.inherits(y, Error, {
236
+ a.inherits(m, Error, {
252
237
  toJSON: function() {
253
238
  return {
254
239
  // Standard
@@ -269,7 +254,7 @@ a.inherits(y, Error, {
269
254
  };
270
255
  }
271
256
  });
272
- const tt = y.prototype, nt = {};
257
+ const Ie = m.prototype, Me = {};
273
258
  [
274
259
  "ERR_BAD_OPTION_VALUE",
275
260
  "ERR_BAD_OPTION",
@@ -285,100 +270,98 @@ const tt = y.prototype, nt = {};
285
270
  "ERR_INVALID_URL"
286
271
  // eslint-disable-next-line func-names
287
272
  ].forEach((e) => {
288
- nt[e] = { value: e };
273
+ Me[e] = { value: e };
289
274
  });
290
- Object.defineProperties(y, nt);
291
- Object.defineProperty(tt, "isAxiosError", { value: !0 });
292
- y.from = (e, t, n, r, s, i) => {
293
- const o = Object.create(tt);
294
- a.toFlatObject(e, o, function(l) {
295
- return l !== Error.prototype;
296
- }, (f) => f !== "isAxiosError");
297
- const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
298
- return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
275
+ Object.defineProperties(m, Me);
276
+ Object.defineProperty(Ie, "isAxiosError", { value: !0 });
277
+ m.from = (e, t, n, r, s, o) => {
278
+ const i = Object.create(Ie);
279
+ return a.toFlatObject(e, i, function(f) {
280
+ return f !== Error.prototype;
281
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
299
282
  };
300
- const un = null;
301
- function be(e) {
283
+ const Wt = null;
284
+ function ae(e) {
302
285
  return a.isPlainObject(e) || a.isArray(e);
303
286
  }
304
- function rt(e) {
287
+ function He(e) {
305
288
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
306
289
  }
307
- function Ue(e, t, n) {
308
- return e ? e.concat(t).map(function(s, i) {
309
- return s = rt(s), !n && i ? "[" + s + "]" : s;
290
+ function Ee(e, t, n) {
291
+ return e ? e.concat(t).map(function(s, o) {
292
+ return s = He(s), !n && o ? "[" + s + "]" : s;
310
293
  }).join(n ? "." : "") : t;
311
294
  }
312
- function fn(e) {
313
- return a.isArray(e) && !e.some(be);
295
+ function Kt(e) {
296
+ return a.isArray(e) && !e.some(ae);
314
297
  }
315
- const dn = a.toFlatObject(a, {}, null, function(t) {
298
+ const vt = a.toFlatObject(a, {}, null, function(t) {
316
299
  return /^is[A-Z]/.test(t);
317
300
  });
318
- function ce(e, t, n) {
301
+ function Y(e, t, n) {
319
302
  if (!a.isObject(e))
320
303
  throw new TypeError("target must be an object");
321
304
  t = t || new FormData(), n = a.toFlatObject(n, {
322
305
  metaTokens: !0,
323
306
  dots: !1,
324
307
  indexes: !1
325
- }, !1, function(m, p) {
326
- return !a.isUndefined(p[m]);
308
+ }, !1, function(y, h) {
309
+ return !a.isUndefined(h[y]);
327
310
  });
328
- const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
311
+ const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
329
312
  if (!a.isFunction(s))
330
313
  throw new TypeError("visitor must be a function");
331
- function f(u) {
332
- if (u === null) return "";
333
- if (a.isDate(u))
334
- return u.toISOString();
335
- if (a.isBoolean(u))
336
- return u.toString();
337
- if (!d && a.isBlob(u))
338
- throw new y("Blob is not supported. Use a Buffer instead.");
339
- return a.isArrayBuffer(u) || a.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
340
- }
341
- function l(u, m, p) {
342
- let g = u;
343
- if (u && !p && typeof u == "object") {
344
- if (a.endsWith(m, "{}"))
345
- m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
346
- else if (a.isArray(u) && fn(u) || (a.isFileList(u) || a.endsWith(m, "[]")) && (g = a.toArray(u)))
347
- return m = rt(m), g.forEach(function(R, A) {
348
- !(a.isUndefined(R) || R === null) && t.append(
314
+ function l(d) {
315
+ if (d === null) return "";
316
+ if (a.isDate(d))
317
+ return d.toISOString();
318
+ if (a.isBoolean(d))
319
+ return d.toString();
320
+ if (!f && a.isBlob(d))
321
+ throw new m("Blob is not supported. Use a Buffer instead.");
322
+ return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
323
+ }
324
+ function u(d, y, h) {
325
+ let E = d;
326
+ if (d && !h && typeof d == "object") {
327
+ if (a.endsWith(y, "{}"))
328
+ y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
329
+ else if (a.isArray(d) && Kt(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (E = a.toArray(d)))
330
+ return y = He(y), E.forEach(function(O, P) {
331
+ !(a.isUndefined(O) || O === null) && t.append(
349
332
  // eslint-disable-next-line no-nested-ternary
350
- o === !0 ? Ue([m], A, i) : o === null ? m : m + "[]",
351
- f(R)
333
+ i === !0 ? Ee([y], P, o) : i === null ? y : y + "[]",
334
+ l(O)
352
335
  );
353
336
  }), !1;
354
337
  }
355
- return be(u) ? !0 : (t.append(Ue(p, m, i), f(u)), !1);
338
+ return ae(d) ? !0 : (t.append(Ee(h, y, o), l(d)), !1);
356
339
  }
357
- const h = [], b = Object.assign(dn, {
358
- defaultVisitor: l,
359
- convertValue: f,
360
- isVisitable: be
340
+ const p = [], b = Object.assign(vt, {
341
+ defaultVisitor: u,
342
+ convertValue: l,
343
+ isVisitable: ae
361
344
  });
362
- function S(u, m) {
363
- if (!a.isUndefined(u)) {
364
- if (h.indexOf(u) !== -1)
365
- throw Error("Circular reference detected in " + m.join("."));
366
- h.push(u), a.forEach(u, function(g, x) {
367
- (!(a.isUndefined(g) || g === null) && s.call(
345
+ function g(d, y) {
346
+ if (!a.isUndefined(d)) {
347
+ if (p.indexOf(d) !== -1)
348
+ throw Error("Circular reference detected in " + y.join("."));
349
+ p.push(d), a.forEach(d, function(E, S) {
350
+ (!(a.isUndefined(E) || E === null) && s.call(
368
351
  t,
369
- g,
370
- a.isString(x) ? x.trim() : x,
371
- m,
352
+ E,
353
+ a.isString(S) ? S.trim() : S,
354
+ y,
372
355
  b
373
- )) === !0 && S(g, m ? m.concat(x) : [x]);
374
- }), h.pop();
356
+ )) === !0 && g(E, y ? y.concat(S) : [S]);
357
+ }), p.pop();
375
358
  }
376
359
  }
377
360
  if (!a.isObject(e))
378
361
  throw new TypeError("data must be an object");
379
- return S(e), t;
362
+ return g(e), t;
380
363
  }
381
- function ke(e) {
364
+ function Re(e) {
382
365
  const t = {
383
366
  "!": "%21",
384
367
  "'": "%27",
@@ -392,40 +375,40 @@ function ke(e) {
392
375
  return t[r];
393
376
  });
394
377
  }
395
- function Se(e, t) {
396
- this._pairs = [], e && ce(e, this, t);
378
+ function pe(e, t) {
379
+ this._pairs = [], e && Y(e, this, t);
397
380
  }
398
- const st = Se.prototype;
399
- st.append = function(t, n) {
381
+ const ze = pe.prototype;
382
+ ze.append = function(t, n) {
400
383
  this._pairs.push([t, n]);
401
384
  };
402
- st.toString = function(t) {
385
+ ze.toString = function(t) {
403
386
  const n = t ? function(r) {
404
- return t.call(this, r, ke);
405
- } : ke;
387
+ return t.call(this, r, Re);
388
+ } : Re;
406
389
  return this._pairs.map(function(s) {
407
390
  return n(s[0]) + "=" + n(s[1]);
408
391
  }, "").join("&");
409
392
  };
410
- function pn(e) {
411
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
393
+ function Xt(e) {
394
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
412
395
  }
413
- function ot(e, t, n) {
396
+ function Je(e, t, n) {
414
397
  if (!t)
415
398
  return e;
416
- const r = n && n.encode || pn;
399
+ const r = n && n.encode || Xt;
417
400
  a.isFunction(n) && (n = {
418
401
  serialize: n
419
402
  });
420
403
  const s = n && n.serialize;
421
- let i;
422
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Se(t, n).toString(r), i) {
423
- const o = e.indexOf("#");
424
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
404
+ let o;
405
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new pe(t, n).toString(r), o) {
406
+ const i = e.indexOf("#");
407
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
425
408
  }
426
409
  return e;
427
410
  }
428
- class De {
411
+ class ge {
429
412
  constructor() {
430
413
  this.handlers = [];
431
414
  }
@@ -479,66 +462,65 @@ class De {
479
462
  });
480
463
  }
481
464
  }
482
- const it = {
465
+ const $e = {
483
466
  silentJSONParsing: !0,
484
467
  forcedJSONParsing: !0,
485
468
  clarifyTimeoutError: !1
486
- }, hn = typeof URLSearchParams < "u" ? URLSearchParams : Se, mn = typeof FormData < "u" ? FormData : null, yn = typeof Blob < "u" ? Blob : null, bn = {
469
+ }, Gt = typeof URLSearchParams < "u" ? URLSearchParams : pe, Qt = typeof FormData < "u" ? FormData : null, Zt = typeof Blob < "u" ? Blob : null, Yt = {
487
470
  isBrowser: !0,
488
471
  classes: {
489
- URLSearchParams: hn,
490
- FormData: mn,
491
- Blob: yn
472
+ URLSearchParams: Gt,
473
+ FormData: Qt,
474
+ Blob: Zt
492
475
  },
493
476
  protocols: ["http", "https", "file", "blob", "url", "data"]
494
- }, Oe = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, wn = Oe && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), En = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
495
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", gn = Oe && window.location.href || "http://localhost", Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
477
+ }, he = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0, en = he && (!ce || ["ReactNative", "NativeScript", "NS"].indexOf(ce.product) < 0), tn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
478
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", nn = he && window.location.href || "http://localhost", rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
496
479
  __proto__: null,
497
- hasBrowserEnv: Oe,
498
- hasStandardBrowserEnv: wn,
499
- hasStandardBrowserWebWorkerEnv: En,
500
- navigator: we,
501
- origin: gn
502
- }, Symbol.toStringTag, { value: "Module" })), O = {
503
- ...Rn,
504
- ...bn
480
+ hasBrowserEnv: he,
481
+ hasStandardBrowserEnv: en,
482
+ hasStandardBrowserWebWorkerEnv: tn,
483
+ navigator: ce,
484
+ origin: nn
485
+ }, Symbol.toStringTag, { value: "Module" })), T = {
486
+ ...rn,
487
+ ...Yt
505
488
  };
506
- function Sn(e, t) {
507
- return ce(e, new O.classes.URLSearchParams(), {
508
- visitor: function(n, r, s, i) {
509
- return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
510
- },
511
- ...t
512
- });
489
+ function sn(e, t) {
490
+ return Y(e, new T.classes.URLSearchParams(), Object.assign({
491
+ visitor: function(n, r, s, o) {
492
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
493
+ }
494
+ }, t));
513
495
  }
514
- function On(e) {
496
+ function on(e) {
515
497
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
516
498
  }
517
- function An(e) {
499
+ function an(e) {
518
500
  const t = {}, n = Object.keys(e);
519
501
  let r;
520
502
  const s = n.length;
521
- let i;
503
+ let o;
522
504
  for (r = 0; r < s; r++)
523
- i = n[r], t[i] = e[i];
505
+ o = n[r], t[o] = e[o];
524
506
  return t;
525
507
  }
526
- function at(e) {
527
- function t(n, r, s, i) {
528
- let o = n[i++];
529
- if (o === "__proto__") return !0;
530
- const c = Number.isFinite(+o), d = i >= n.length;
531
- return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = An(s[o])), !c);
508
+ function Ve(e) {
509
+ function t(n, r, s, o) {
510
+ let i = n[o++];
511
+ if (i === "__proto__") return !0;
512
+ const c = Number.isFinite(+i), f = o >= n.length;
513
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = an(s[i])), !c);
532
514
  }
533
515
  if (a.isFormData(e) && a.isFunction(e.entries)) {
534
516
  const n = {};
535
517
  return a.forEachEntry(e, (r, s) => {
536
- t(On(r), s, n, 0);
518
+ t(on(r), s, n, 0);
537
519
  }), n;
538
520
  }
539
521
  return null;
540
522
  }
541
- function Tn(e, t, n) {
523
+ function cn(e, t, n) {
542
524
  if (a.isString(e))
543
525
  try {
544
526
  return (t || JSON.parse)(e), a.trim(e);
@@ -546,15 +528,15 @@ function Tn(e, t, n) {
546
528
  if (r.name !== "SyntaxError")
547
529
  throw r;
548
530
  }
549
- return (n || JSON.stringify)(e);
531
+ return (0, JSON.stringify)(e);
550
532
  }
551
- const X = {
552
- transitional: it,
533
+ const H = {
534
+ transitional: $e,
553
535
  adapter: ["xhr", "http", "fetch"],
554
536
  transformRequest: [function(t, n) {
555
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
556
- if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
557
- return s ? JSON.stringify(at(t)) : t;
537
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
538
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
539
+ return s ? JSON.stringify(Ve(t)) : t;
558
540
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
559
541
  return t;
560
542
  if (a.isArrayBufferView(t))
@@ -562,31 +544,31 @@ const X = {
562
544
  if (a.isURLSearchParams(t))
563
545
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
564
546
  let c;
565
- if (i) {
547
+ if (o) {
566
548
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
567
- return Sn(t, this.formSerializer).toString();
549
+ return sn(t, this.formSerializer).toString();
568
550
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
569
- const d = this.env && this.env.FormData;
570
- return ce(
551
+ const f = this.env && this.env.FormData;
552
+ return Y(
571
553
  c ? { "files[]": t } : t,
572
- d && new d(),
554
+ f && new f(),
573
555
  this.formSerializer
574
556
  );
575
557
  }
576
558
  }
577
- return i || s ? (n.setContentType("application/json", !1), Tn(t)) : t;
559
+ return o || s ? (n.setContentType("application/json", !1), cn(t)) : t;
578
560
  }],
579
561
  transformResponse: [function(t) {
580
- const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
562
+ const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
581
563
  if (a.isResponse(t) || a.isReadableStream(t))
582
564
  return t;
583
565
  if (t && a.isString(t) && (r && !this.responseType || s)) {
584
- const o = !(n && n.silentJSONParsing) && s;
566
+ const i = !(n && n.silentJSONParsing) && s;
585
567
  try {
586
- return JSON.parse(t, this.parseReviver);
568
+ return JSON.parse(t);
587
569
  } catch (c) {
588
- if (o)
589
- throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
570
+ if (i)
571
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
590
572
  }
591
573
  }
592
574
  return t;
@@ -601,8 +583,8 @@ const X = {
601
583
  maxContentLength: -1,
602
584
  maxBodyLength: -1,
603
585
  env: {
604
- FormData: O.classes.FormData,
605
- Blob: O.classes.Blob
586
+ FormData: T.classes.FormData,
587
+ Blob: T.classes.Blob
606
588
  },
607
589
  validateStatus: function(t) {
608
590
  return t >= 200 && t < 300;
@@ -615,9 +597,9 @@ const X = {
615
597
  }
616
598
  };
617
599
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
618
- X.headers[e] = {};
600
+ H.headers[e] = {};
619
601
  });
620
- const Cn = a.toObjectSet([
602
+ const ln = a.toObjectSet([
621
603
  "age",
622
604
  "authorization",
623
605
  "content-length",
@@ -635,29 +617,29 @@ const Cn = a.toObjectSet([
635
617
  "referer",
636
618
  "retry-after",
637
619
  "user-agent"
638
- ]), xn = (e) => {
620
+ ]), un = (e) => {
639
621
  const t = {};
640
622
  let n, r, s;
641
623
  return e && e.split(`
642
- `).forEach(function(o) {
643
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Cn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
624
+ `).forEach(function(i) {
625
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && ln[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
644
626
  }), t;
645
- }, Be = Symbol("internals");
646
- function V(e) {
627
+ }, Se = Symbol("internals");
628
+ function q(e) {
647
629
  return e && String(e).trim().toLowerCase();
648
630
  }
649
- function te(e) {
650
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(te) : String(e);
631
+ function $(e) {
632
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
651
633
  }
652
- function Nn(e) {
634
+ function fn(e) {
653
635
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
654
636
  let r;
655
637
  for (; r = n.exec(e); )
656
638
  t[r[1]] = r[2];
657
639
  return t;
658
640
  }
659
- const Ln = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
660
- function pe(e, t, n, r, s) {
641
+ const dn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
642
+ function re(e, t, n, r, s) {
661
643
  if (a.isFunction(r))
662
644
  return r.call(this, t, n);
663
645
  if (s && (t = n), !!a.isString(t)) {
@@ -667,59 +649,59 @@ function pe(e, t, n, r, s) {
667
649
  return r.test(t);
668
650
  }
669
651
  }
670
- function Pn(e) {
652
+ function pn(e) {
671
653
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
672
654
  }
673
- function Fn(e, t) {
655
+ function hn(e, t) {
674
656
  const n = a.toCamelCase(" " + t);
675
657
  ["get", "set", "has"].forEach((r) => {
676
658
  Object.defineProperty(e, r + n, {
677
- value: function(s, i, o) {
678
- return this[r].call(this, t, s, i, o);
659
+ value: function(s, o, i) {
660
+ return this[r].call(this, t, s, o, i);
679
661
  },
680
662
  configurable: !0
681
663
  });
682
664
  });
683
665
  }
684
- let C = class {
666
+ class x {
685
667
  constructor(t) {
686
668
  t && this.set(t);
687
669
  }
688
670
  set(t, n, r) {
689
671
  const s = this;
690
- function i(c, d, f) {
691
- const l = V(d);
692
- if (!l)
672
+ function o(c, f, l) {
673
+ const u = q(f);
674
+ if (!u)
693
675
  throw new Error("header name must be a non-empty string");
694
- const h = a.findKey(s, l);
695
- (!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = te(c));
676
+ const p = a.findKey(s, u);
677
+ (!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] = $(c));
696
678
  }
697
- const o = (c, d) => a.forEach(c, (f, l) => i(f, l, d));
679
+ const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
698
680
  if (a.isPlainObject(t) || t instanceof this.constructor)
699
- o(t, n);
700
- else if (a.isString(t) && (t = t.trim()) && !Ln(t))
701
- o(xn(t), n);
681
+ i(t, n);
682
+ else if (a.isString(t) && (t = t.trim()) && !dn(t))
683
+ i(un(t), n);
702
684
  else if (a.isObject(t) && a.isIterable(t)) {
703
- let c = {}, d, f;
704
- for (const l of t) {
705
- if (!a.isArray(l))
685
+ let c = {}, f, l;
686
+ for (const u of t) {
687
+ if (!a.isArray(u))
706
688
  throw TypeError("Object iterator must return a key-value pair");
707
- c[f = l[0]] = (d = c[f]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
689
+ c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
708
690
  }
709
- o(c, n);
691
+ i(c, n);
710
692
  } else
711
- t != null && i(n, t, r);
693
+ t != null && o(n, t, r);
712
694
  return this;
713
695
  }
714
696
  get(t, n) {
715
- if (t = V(t), t) {
697
+ if (t = q(t), t) {
716
698
  const r = a.findKey(this, t);
717
699
  if (r) {
718
700
  const s = this[r];
719
701
  if (!n)
720
702
  return s;
721
703
  if (n === !0)
722
- return Nn(s);
704
+ return fn(s);
723
705
  if (a.isFunction(n))
724
706
  return n.call(this, s, r);
725
707
  if (a.isRegExp(n))
@@ -729,42 +711,42 @@ let C = class {
729
711
  }
730
712
  }
731
713
  has(t, n) {
732
- if (t = V(t), t) {
714
+ if (t = q(t), t) {
733
715
  const r = a.findKey(this, t);
734
- return !!(r && this[r] !== void 0 && (!n || pe(this, this[r], r, n)));
716
+ return !!(r && this[r] !== void 0 && (!n || re(this, this[r], r, n)));
735
717
  }
736
718
  return !1;
737
719
  }
738
720
  delete(t, n) {
739
721
  const r = this;
740
722
  let s = !1;
741
- function i(o) {
742
- if (o = V(o), o) {
743
- const c = a.findKey(r, o);
744
- c && (!n || pe(r, r[c], c, n)) && (delete r[c], s = !0);
723
+ function o(i) {
724
+ if (i = q(i), i) {
725
+ const c = a.findKey(r, i);
726
+ c && (!n || re(r, r[c], c, n)) && (delete r[c], s = !0);
745
727
  }
746
728
  }
747
- return a.isArray(t) ? t.forEach(i) : i(t), s;
729
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
748
730
  }
749
731
  clear(t) {
750
732
  const n = Object.keys(this);
751
733
  let r = n.length, s = !1;
752
734
  for (; r--; ) {
753
- const i = n[r];
754
- (!t || pe(this, this[i], i, t, !0)) && (delete this[i], s = !0);
735
+ const o = n[r];
736
+ (!t || re(this, this[o], o, t, !0)) && (delete this[o], s = !0);
755
737
  }
756
738
  return s;
757
739
  }
758
740
  normalize(t) {
759
741
  const n = this, r = {};
760
- return a.forEach(this, (s, i) => {
761
- const o = a.findKey(r, i);
762
- if (o) {
763
- n[o] = te(s), delete n[i];
742
+ return a.forEach(this, (s, o) => {
743
+ const i = a.findKey(r, o);
744
+ if (i) {
745
+ n[i] = $(s), delete n[o];
764
746
  return;
765
747
  }
766
- const c = t ? Pn(i) : String(i).trim();
767
- c !== i && delete n[i], n[c] = te(s), r[c] = !0;
748
+ const c = t ? pn(o) : String(o).trim();
749
+ c !== o && delete n[o], n[c] = $(s), r[c] = !0;
768
750
  }), this;
769
751
  }
770
752
  concat(...t) {
@@ -797,18 +779,18 @@ let C = class {
797
779
  return n.forEach((s) => r.set(s)), r;
798
780
  }
799
781
  static accessor(t) {
800
- const r = (this[Be] = this[Be] = {
782
+ const r = (this[Se] = this[Se] = {
801
783
  accessors: {}
802
784
  }).accessors, s = this.prototype;
803
- function i(o) {
804
- const c = V(o);
805
- r[c] || (Fn(s, o), r[c] = !0);
785
+ function o(i) {
786
+ const c = q(i);
787
+ r[c] || (hn(s, i), r[c] = !0);
806
788
  }
807
- return a.isArray(t) ? t.forEach(i) : i(t), this;
789
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
808
790
  }
809
- };
810
- C.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
811
- a.reduceDescriptors(C.prototype, ({ value: e }, t) => {
791
+ }
792
+ x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
793
+ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
812
794
  let n = t[0].toUpperCase() + t.slice(1);
813
795
  return {
814
796
  get: () => e,
@@ -817,100 +799,100 @@ a.reduceDescriptors(C.prototype, ({ value: e }, t) => {
817
799
  }
818
800
  };
819
801
  });
820
- a.freezeMethods(C);
821
- function he(e, t) {
822
- const n = this || X, r = t || n, s = C.from(r.headers);
823
- let i = r.data;
802
+ a.freezeMethods(x);
803
+ function se(e, t) {
804
+ const n = this || H, r = t || n, s = x.from(r.headers);
805
+ let o = r.data;
824
806
  return a.forEach(e, function(c) {
825
- i = c.call(n, i, s.normalize(), t ? t.status : void 0);
826
- }), s.normalize(), i;
807
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
808
+ }), s.normalize(), o;
827
809
  }
828
- function ct(e) {
810
+ function We(e) {
829
811
  return !!(e && e.__CANCEL__);
830
812
  }
831
- function z(e, t, n) {
832
- y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
813
+ function j(e, t, n) {
814
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
833
815
  }
834
- a.inherits(z, y, {
816
+ a.inherits(j, m, {
835
817
  __CANCEL__: !0
836
818
  });
837
- function lt(e, t, n) {
819
+ function Ke(e, t, n) {
838
820
  const r = n.config.validateStatus;
839
- !n.status || !r || r(n.status) ? e(n) : t(new y(
821
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
840
822
  "Request failed with status code " + n.status,
841
- [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
823
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
842
824
  n.config,
843
825
  n.request,
844
826
  n
845
827
  ));
846
828
  }
847
- function Un(e) {
829
+ function mn(e) {
848
830
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
849
831
  return t && t[1] || "";
850
832
  }
851
- function kn(e, t) {
833
+ function yn(e, t) {
852
834
  e = e || 10;
853
835
  const n = new Array(e), r = new Array(e);
854
- let s = 0, i = 0, o;
855
- return t = t !== void 0 ? t : 1e3, function(d) {
856
- const f = Date.now(), l = r[i];
857
- o || (o = f), n[s] = d, r[s] = f;
858
- let h = i, b = 0;
859
- for (; h !== s; )
860
- b += n[h++], h = h % e;
861
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
836
+ let s = 0, o = 0, i;
837
+ return t = t !== void 0 ? t : 1e3, function(f) {
838
+ const l = Date.now(), u = r[o];
839
+ i || (i = l), n[s] = f, r[s] = l;
840
+ let p = o, b = 0;
841
+ for (; p !== s; )
842
+ b += n[p++], p = p % e;
843
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
862
844
  return;
863
- const S = l && f - l;
864
- return S ? Math.round(b * 1e3 / S) : void 0;
845
+ const g = u && l - u;
846
+ return g ? Math.round(b * 1e3 / g) : void 0;
865
847
  };
866
848
  }
867
- function Dn(e, t) {
868
- let n = 0, r = 1e3 / t, s, i;
869
- const o = (f, l = Date.now()) => {
870
- n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
849
+ function bn(e, t) {
850
+ let n = 0, r = 1e3 / t, s, o;
851
+ const i = (l, u = Date.now()) => {
852
+ n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
871
853
  };
872
- return [(...f) => {
873
- const l = Date.now(), h = l - n;
874
- h >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
875
- i = null, o(s);
876
- }, r - h)));
877
- }, () => s && o(s)];
854
+ return [(...l) => {
855
+ const u = Date.now(), p = u - n;
856
+ p >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
857
+ o = null, i(s);
858
+ }, r - p)));
859
+ }, () => s && i(s)];
878
860
  }
879
- const re = (e, t, n = 3) => {
861
+ const W = (e, t, n = 3) => {
880
862
  let r = 0;
881
- const s = kn(50, 250);
882
- return Dn((i) => {
883
- const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= c;
884
- r = o;
885
- const h = {
886
- loaded: o,
863
+ const s = yn(50, 250);
864
+ return bn((o) => {
865
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
866
+ r = i;
867
+ const p = {
868
+ loaded: i,
887
869
  total: c,
888
- progress: c ? o / c : void 0,
889
- bytes: d,
890
- rate: f || void 0,
891
- estimated: f && c && l ? (c - o) / f : void 0,
892
- event: i,
870
+ progress: c ? i / c : void 0,
871
+ bytes: f,
872
+ rate: l || void 0,
873
+ estimated: l && c && u ? (c - i) / l : void 0,
874
+ event: o,
893
875
  lengthComputable: c != null,
894
876
  [t ? "download" : "upload"]: !0
895
877
  };
896
- e(h);
878
+ e(p);
897
879
  }, n);
898
- }, _e = (e, t) => {
880
+ }, Oe = (e, t) => {
899
881
  const n = e != null;
900
882
  return [(r) => t[0]({
901
883
  lengthComputable: n,
902
884
  total: e,
903
885
  loaded: r
904
886
  }), t[1]];
905
- }, je = (e) => (...t) => a.asap(() => e(...t)), Bn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
906
- new URL(O.origin),
907
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
908
- ) : () => !0, _n = O.hasStandardBrowserEnv ? (
887
+ }, Te = (e) => (...t) => a.asap(() => e(...t)), wn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
888
+ new URL(T.origin),
889
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
890
+ ) : () => !0, En = T.hasStandardBrowserEnv ? (
909
891
  // Standard browser envs support document.cookie
910
892
  {
911
- write(e, t, n, r, s, i) {
912
- const o = [e + "=" + encodeURIComponent(t)];
913
- a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
893
+ write(e, t, n, r, s, o) {
894
+ const i = [e + "=" + encodeURIComponent(t)];
895
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
914
896
  },
915
897
  read(e) {
916
898
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -932,184 +914,183 @@ const re = (e, t, n = 3) => {
932
914
  }
933
915
  }
934
916
  );
935
- function jn(e) {
917
+ function Rn(e) {
936
918
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
937
919
  }
938
- function qn(e, t) {
920
+ function gn(e, t) {
939
921
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
940
922
  }
941
- function ut(e, t, n) {
942
- let r = !jn(t);
943
- return e && (r || n == !1) ? qn(e, t) : t;
923
+ function ve(e, t, n) {
924
+ let r = !Rn(t);
925
+ return e && (r || n == !1) ? gn(e, t) : t;
944
926
  }
945
- const qe = (e) => e instanceof C ? { ...e } : e;
946
- function I(e, t) {
927
+ const Ae = (e) => e instanceof x ? { ...e } : e;
928
+ function k(e, t) {
947
929
  t = t || {};
948
930
  const n = {};
949
- function r(f, l, h, b) {
950
- return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
951
- }
952
- function s(f, l, h, b) {
953
- if (a.isUndefined(l)) {
954
- if (!a.isUndefined(f))
955
- return r(void 0, f, h, b);
956
- } else return r(f, l, h, b);
957
- }
958
- function i(f, l) {
959
- if (!a.isUndefined(l))
931
+ function r(l, u, p, b) {
932
+ return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: b }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
933
+ }
934
+ function s(l, u, p, b) {
935
+ if (a.isUndefined(u)) {
936
+ if (!a.isUndefined(l))
937
+ return r(void 0, l, p, b);
938
+ } else return r(l, u, p, b);
939
+ }
940
+ function o(l, u) {
941
+ if (!a.isUndefined(u))
942
+ return r(void 0, u);
943
+ }
944
+ function i(l, u) {
945
+ if (a.isUndefined(u)) {
946
+ if (!a.isUndefined(l))
947
+ return r(void 0, l);
948
+ } else return r(void 0, u);
949
+ }
950
+ function c(l, u, p) {
951
+ if (p in t)
952
+ return r(l, u);
953
+ if (p in e)
960
954
  return r(void 0, l);
961
955
  }
962
- function o(f, l) {
963
- if (a.isUndefined(l)) {
964
- if (!a.isUndefined(f))
965
- return r(void 0, f);
966
- } else return r(void 0, l);
967
- }
968
- function c(f, l, h) {
969
- if (h in t)
970
- return r(f, l);
971
- if (h in e)
972
- return r(void 0, f);
973
- }
974
- const d = {
975
- url: i,
976
- method: i,
977
- data: i,
978
- baseURL: o,
979
- transformRequest: o,
980
- transformResponse: o,
981
- paramsSerializer: o,
982
- timeout: o,
983
- timeoutMessage: o,
984
- withCredentials: o,
985
- withXSRFToken: o,
986
- adapter: o,
987
- responseType: o,
988
- xsrfCookieName: o,
989
- xsrfHeaderName: o,
990
- onUploadProgress: o,
991
- onDownloadProgress: o,
992
- decompress: o,
993
- maxContentLength: o,
994
- maxBodyLength: o,
995
- beforeRedirect: o,
996
- transport: o,
997
- httpAgent: o,
998
- httpsAgent: o,
999
- cancelToken: o,
1000
- socketPath: o,
1001
- responseEncoding: o,
956
+ const f = {
957
+ url: o,
958
+ method: o,
959
+ data: o,
960
+ baseURL: i,
961
+ transformRequest: i,
962
+ transformResponse: i,
963
+ paramsSerializer: i,
964
+ timeout: i,
965
+ timeoutMessage: i,
966
+ withCredentials: i,
967
+ withXSRFToken: i,
968
+ adapter: i,
969
+ responseType: i,
970
+ xsrfCookieName: i,
971
+ xsrfHeaderName: i,
972
+ onUploadProgress: i,
973
+ onDownloadProgress: i,
974
+ decompress: i,
975
+ maxContentLength: i,
976
+ maxBodyLength: i,
977
+ beforeRedirect: i,
978
+ transport: i,
979
+ httpAgent: i,
980
+ httpsAgent: i,
981
+ cancelToken: i,
982
+ socketPath: i,
983
+ responseEncoding: i,
1002
984
  validateStatus: c,
1003
- headers: (f, l, h) => s(qe(f), qe(l), h, !0)
985
+ headers: (l, u, p) => s(Ae(l), Ae(u), p, !0)
1004
986
  };
1005
- return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1006
- const h = d[l] || s, b = h(e[l], t[l], l);
1007
- a.isUndefined(b) && h !== c || (n[l] = b);
987
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
988
+ const p = f[u] || s, b = p(e[u], t[u], u);
989
+ a.isUndefined(b) && p !== c || (n[u] = b);
1008
990
  }), n;
1009
991
  }
1010
- const ft = (e) => {
1011
- const t = I({}, e);
1012
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1013
- if (t.headers = o = C.from(o), t.url = ot(ut(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
992
+ const Xe = (e) => {
993
+ const t = k({}, e);
994
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
995
+ t.headers = i = x.from(i), t.url = Je(ve(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1014
996
  "Authorization",
1015
997
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1016
- ), a.isFormData(n)) {
1017
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1018
- o.setContentType(void 0);
1019
- else if (a.isFunction(n.getHeaders)) {
1020
- const d = n.getHeaders(), f = ["content-type", "content-length"];
1021
- Object.entries(d).forEach(([l, h]) => {
1022
- f.includes(l.toLowerCase()) && o.set(l, h);
1023
- });
998
+ );
999
+ let f;
1000
+ if (a.isFormData(n)) {
1001
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1002
+ i.setContentType(void 0);
1003
+ else if ((f = i.getContentType()) !== !1) {
1004
+ const [l, ...u] = f ? f.split(";").map((p) => p.trim()).filter(Boolean) : [];
1005
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
1024
1006
  }
1025
1007
  }
1026
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Bn(t.url))) {
1027
- const d = s && i && _n.read(i);
1028
- d && o.set(s, d);
1008
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && wn(t.url))) {
1009
+ const l = s && o && En.read(o);
1010
+ l && i.set(s, l);
1029
1011
  }
1030
1012
  return t;
1031
- }, In = typeof XMLHttpRequest < "u", Hn = In && function(e) {
1013
+ }, Sn = typeof XMLHttpRequest < "u", On = Sn && function(e) {
1032
1014
  return new Promise(function(n, r) {
1033
- const s = ft(e);
1034
- let i = s.data;
1035
- const o = C.from(s.headers).normalize();
1036
- let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, S, u;
1037
- function m() {
1038
- S && S(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1015
+ const s = Xe(e);
1016
+ let o = s.data;
1017
+ const i = x.from(s.headers).normalize();
1018
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, p, b, g, d;
1019
+ function y() {
1020
+ g && g(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1039
1021
  }
1040
- let p = new XMLHttpRequest();
1041
- p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1042
- function g() {
1043
- if (!p)
1022
+ let h = new XMLHttpRequest();
1023
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1024
+ function E() {
1025
+ if (!h)
1044
1026
  return;
1045
- const R = C.from(
1046
- "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1047
- ), L = {
1048
- data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1049
- status: p.status,
1050
- statusText: p.statusText,
1051
- headers: R,
1027
+ const O = x.from(
1028
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1029
+ ), A = {
1030
+ data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1031
+ status: h.status,
1032
+ statusText: h.statusText,
1033
+ headers: O,
1052
1034
  config: e,
1053
- request: p
1035
+ request: h
1054
1036
  };
1055
- lt(function(N) {
1056
- n(N), m();
1057
- }, function(N) {
1058
- r(N), m();
1059
- }, L), p = null;
1037
+ Ke(function(U) {
1038
+ n(U), y();
1039
+ }, function(U) {
1040
+ r(U), y();
1041
+ }, A), h = null;
1060
1042
  }
1061
- "onloadend" in p ? p.onloadend = g : p.onreadystatechange = function() {
1062
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(g);
1063
- }, p.onabort = function() {
1064
- p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
1065
- }, p.onerror = function(A) {
1066
- const L = A && A.message ? A.message : "Network Error", B = new y(L, y.ERR_NETWORK, e, p);
1067
- B.event = A || null, r(B), p = null;
1068
- }, p.ontimeout = function() {
1069
- let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1070
- const L = s.transitional || it;
1071
- s.timeoutErrorMessage && (A = s.timeoutErrorMessage), r(new y(
1072
- A,
1073
- L.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1043
+ "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
1044
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
1045
+ }, h.onabort = function() {
1046
+ h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1047
+ }, h.onerror = function() {
1048
+ r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1049
+ }, h.ontimeout = function() {
1050
+ let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1051
+ const A = s.transitional || $e;
1052
+ s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
1053
+ P,
1054
+ A.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1074
1055
  e,
1075
- p
1076
- )), p = null;
1077
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(A, L) {
1078
- p.setRequestHeader(L, A);
1079
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = re(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, S] = re(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (R) => {
1080
- p && (r(!R || R.type ? new z(null, e, p) : R), p.abort(), p = null);
1081
- }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1082
- const x = Un(s.url);
1083
- if (x && O.protocols.indexOf(x) === -1) {
1084
- r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
1056
+ h
1057
+ )), h = null;
1058
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, A) {
1059
+ h.setRequestHeader(A, P);
1060
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, d] = W(l, !0), h.addEventListener("progress", b)), f && h.upload && ([p, g] = W(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (O) => {
1061
+ h && (r(!O || O.type ? new j(null, e, h) : O), h.abort(), h = null);
1062
+ }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1063
+ const S = mn(s.url);
1064
+ if (S && T.protocols.indexOf(S) === -1) {
1065
+ r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
1085
1066
  return;
1086
1067
  }
1087
- p.send(i || null);
1068
+ h.send(o || null);
1088
1069
  });
1089
- }, Mn = (e, t) => {
1070
+ }, Tn = (e, t) => {
1090
1071
  const { length: n } = e = e ? e.filter(Boolean) : [];
1091
1072
  if (t || n) {
1092
1073
  let r = new AbortController(), s;
1093
- const i = function(f) {
1074
+ const o = function(l) {
1094
1075
  if (!s) {
1095
1076
  s = !0, c();
1096
- const l = f instanceof Error ? f : this.reason;
1097
- r.abort(l instanceof y ? l : new z(l instanceof Error ? l.message : l));
1077
+ const u = l instanceof Error ? l : this.reason;
1078
+ r.abort(u instanceof m ? u : new j(u instanceof Error ? u.message : u));
1098
1079
  }
1099
1080
  };
1100
- let o = t && setTimeout(() => {
1101
- o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1081
+ let i = t && setTimeout(() => {
1082
+ i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1102
1083
  }, t);
1103
1084
  const c = () => {
1104
- e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1105
- f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1085
+ e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1086
+ l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
1106
1087
  }), e = null);
1107
1088
  };
1108
- e.forEach((f) => f.addEventListener("abort", i));
1109
- const { signal: d } = r;
1110
- return d.unsubscribe = () => a.asap(c), d;
1089
+ e.forEach((l) => l.addEventListener("abort", o));
1090
+ const { signal: f } = r;
1091
+ return f.unsubscribe = () => a.asap(c), f;
1111
1092
  }
1112
- }, $n = function* (e, t) {
1093
+ }, An = function* (e, t) {
1113
1094
  let n = e.byteLength;
1114
1095
  if (n < t) {
1115
1096
  yield e;
@@ -1118,10 +1099,10 @@ const ft = (e) => {
1118
1099
  let r = 0, s;
1119
1100
  for (; r < n; )
1120
1101
  s = r + t, yield e.slice(r, s), r = s;
1121
- }, zn = async function* (e, t) {
1122
- for await (const n of Jn(e))
1123
- yield* $n(n, t);
1124
- }, Jn = async function* (e) {
1102
+ }, Cn = async function* (e, t) {
1103
+ for await (const n of xn(e))
1104
+ yield* An(n, t);
1105
+ }, xn = async function* (e) {
1125
1106
  if (e[Symbol.asyncIterator]) {
1126
1107
  yield* e;
1127
1108
  return;
@@ -1137,200 +1118,169 @@ const ft = (e) => {
1137
1118
  } finally {
1138
1119
  await t.cancel();
1139
1120
  }
1140
- }, Ie = (e, t, n, r) => {
1141
- const s = zn(e, t);
1142
- let i = 0, o, c = (d) => {
1143
- o || (o = !0, r && r(d));
1121
+ }, Ce = (e, t, n, r) => {
1122
+ const s = Cn(e, t);
1123
+ let o = 0, i, c = (f) => {
1124
+ i || (i = !0, r && r(f));
1144
1125
  };
1145
1126
  return new ReadableStream({
1146
- async pull(d) {
1127
+ async pull(f) {
1147
1128
  try {
1148
- const { done: f, value: l } = await s.next();
1149
- if (f) {
1150
- c(), d.close();
1129
+ const { done: l, value: u } = await s.next();
1130
+ if (l) {
1131
+ c(), f.close();
1151
1132
  return;
1152
1133
  }
1153
- let h = l.byteLength;
1134
+ let p = u.byteLength;
1154
1135
  if (n) {
1155
- let b = i += h;
1136
+ let b = o += p;
1156
1137
  n(b);
1157
1138
  }
1158
- d.enqueue(new Uint8Array(l));
1159
- } catch (f) {
1160
- throw c(f), f;
1139
+ f.enqueue(new Uint8Array(u));
1140
+ } catch (l) {
1141
+ throw c(l), l;
1161
1142
  }
1162
1143
  },
1163
- cancel(d) {
1164
- return c(d), s.return();
1144
+ cancel(f) {
1145
+ return c(f), s.return();
1165
1146
  }
1166
1147
  }, {
1167
1148
  highWaterMark: 2
1168
1149
  });
1169
- }, He = 64 * 1024, { isFunction: Y } = a, Vn = (({ Request: e, Response: t }) => ({
1170
- Request: e,
1171
- Response: t
1172
- }))(a.global), {
1173
- ReadableStream: Me,
1174
- TextEncoder: $e
1175
- } = a.global, ze = (e, ...t) => {
1150
+ }, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ge = ee && typeof ReadableStream == "function", Nn = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Qe = (e, ...t) => {
1176
1151
  try {
1177
1152
  return !!e(...t);
1178
1153
  } catch {
1179
1154
  return !1;
1180
1155
  }
1181
- }, Wn = (e) => {
1182
- e = a.merge.call({
1183
- skipUndefined: !0
1184
- }, Vn, e);
1185
- const { fetch: t, Request: n, Response: r } = e, s = t ? Y(t) : typeof fetch == "function", i = Y(n), o = Y(r);
1186
- if (!s)
1187
- return !1;
1188
- const c = s && Y(Me), d = s && (typeof $e == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new $e()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && ze(() => {
1189
- let u = !1;
1190
- const m = new n(O.origin, {
1191
- body: new Me(),
1192
- method: "POST",
1193
- get duplex() {
1194
- return u = !0, "half";
1195
- }
1196
- }).headers.has("Content-Type");
1197
- return u && !m;
1198
- }), l = o && c && ze(() => a.isReadableStream(new r("").body)), h = {
1199
- stream: l && ((u) => u.body)
1200
- };
1201
- s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1202
- !h[u] && (h[u] = (m, p) => {
1203
- let g = m && m[u];
1204
- if (g)
1205
- return g.call(m);
1206
- throw new y(`Response type '${u}' is not supported`, y.ERR_NOT_SUPPORT, p);
1156
+ }, Ln = Ge && Qe(() => {
1157
+ let e = !1;
1158
+ const t = new Request(T.origin, {
1159
+ body: new ReadableStream(),
1160
+ method: "POST",
1161
+ get duplex() {
1162
+ return e = !0, "half";
1163
+ }
1164
+ }).headers.has("Content-Type");
1165
+ return e && !t;
1166
+ }), xe = 64 * 1024, le = Ge && Qe(() => a.isReadableStream(new Response("").body)), K = {
1167
+ stream: le && ((e) => e.body)
1168
+ };
1169
+ ee && ((e) => {
1170
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1171
+ !K[t] && (K[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1172
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1207
1173
  });
1208
1174
  });
1209
- const b = async (u) => {
1210
- if (u == null)
1211
- return 0;
1212
- if (a.isBlob(u))
1213
- return u.size;
1214
- if (a.isSpecCompliantForm(u))
1215
- return (await new n(O.origin, {
1175
+ })(new Response());
1176
+ const Pn = async (e) => {
1177
+ if (e == null)
1178
+ return 0;
1179
+ if (a.isBlob(e))
1180
+ return e.size;
1181
+ if (a.isSpecCompliantForm(e))
1182
+ return (await new Request(T.origin, {
1183
+ method: "POST",
1184
+ body: e
1185
+ }).arrayBuffer()).byteLength;
1186
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1187
+ return e.byteLength;
1188
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1189
+ return (await Nn(e)).byteLength;
1190
+ }, Fn = async (e, t) => {
1191
+ const n = a.toFiniteNumber(e.getContentLength());
1192
+ return n ?? Pn(t);
1193
+ }, Un = ee && (async (e) => {
1194
+ let {
1195
+ url: t,
1196
+ method: n,
1197
+ data: r,
1198
+ signal: s,
1199
+ cancelToken: o,
1200
+ timeout: i,
1201
+ onDownloadProgress: c,
1202
+ onUploadProgress: f,
1203
+ responseType: l,
1204
+ headers: u,
1205
+ withCredentials: p = "same-origin",
1206
+ fetchOptions: b
1207
+ } = Xe(e);
1208
+ l = l ? (l + "").toLowerCase() : "text";
1209
+ let g = Tn([s, o && o.toAbortSignal()], i), d;
1210
+ const y = g && g.unsubscribe && (() => {
1211
+ g.unsubscribe();
1212
+ });
1213
+ let h;
1214
+ try {
1215
+ if (f && Ln && n !== "get" && n !== "head" && (h = await Fn(u, r)) !== 0) {
1216
+ let A = new Request(t, {
1216
1217
  method: "POST",
1217
- body: u
1218
- }).arrayBuffer()).byteLength;
1219
- if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
1220
- return u.byteLength;
1221
- if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1222
- return (await d(u)).byteLength;
1223
- }, S = async (u, m) => {
1224
- const p = a.toFiniteNumber(u.getContentLength());
1225
- return p ?? b(m);
1226
- };
1227
- return async (u) => {
1228
- let {
1229
- url: m,
1230
- method: p,
1231
- data: g,
1232
- signal: x,
1233
- cancelToken: R,
1234
- timeout: A,
1235
- onDownloadProgress: L,
1236
- onUploadProgress: B,
1237
- responseType: N,
1238
- headers: ue,
1239
- withCredentials: G = "same-origin",
1240
- fetchOptions: Ae
1241
- } = ft(u), Te = t || fetch;
1242
- N = N ? (N + "").toLowerCase() : "text";
1243
- let Q = Mn([x, R && R.toAbortSignal()], A), J = null;
1244
- const _ = Q && Q.unsubscribe && (() => {
1245
- Q.unsubscribe();
1246
- });
1247
- let Ce;
1248
- try {
1249
- if (B && f && p !== "get" && p !== "head" && (Ce = await S(ue, g)) !== 0) {
1250
- let D = new n(m, {
1251
- method: "POST",
1252
- body: g,
1253
- duplex: "half"
1254
- }), H;
1255
- if (a.isFormData(g) && (H = D.headers.get("content-type")) && ue.setContentType(H), D.body) {
1256
- const [fe, Z] = _e(
1257
- Ce,
1258
- re(je(B))
1259
- );
1260
- g = Ie(D.body, He, fe, Z);
1261
- }
1262
- }
1263
- a.isString(G) || (G = G ? "include" : "omit");
1264
- const F = i && "credentials" in n.prototype, xe = {
1265
- ...Ae,
1266
- signal: Q,
1267
- method: p.toUpperCase(),
1268
- headers: ue.normalize().toJSON(),
1269
- body: g,
1270
- duplex: "half",
1271
- credentials: F ? G : void 0
1272
- };
1273
- J = i && new n(m, xe);
1274
- let k = await (i ? Te(J, Ae) : Te(m, xe));
1275
- const Ne = l && (N === "stream" || N === "response");
1276
- if (l && (L || Ne && _)) {
1277
- const D = {};
1278
- ["status", "statusText", "headers"].forEach((Le) => {
1279
- D[Le] = k[Le];
1280
- });
1281
- const H = a.toFiniteNumber(k.headers.get("content-length")), [fe, Z] = L && _e(
1282
- H,
1283
- re(je(L), !0)
1284
- ) || [];
1285
- k = new r(
1286
- Ie(k.body, He, fe, () => {
1287
- Z && Z(), _ && _();
1288
- }),
1289
- D
1218
+ body: r,
1219
+ duplex: "half"
1220
+ }), F;
1221
+ if (a.isFormData(r) && (F = A.headers.get("content-type")) && u.setContentType(F), A.body) {
1222
+ const [U, z] = Oe(
1223
+ h,
1224
+ W(Te(f))
1290
1225
  );
1226
+ r = Ce(A.body, xe, U, z);
1291
1227
  }
1292
- N = N || "text";
1293
- let bt = await h[a.findKey(h, N) || "text"](k, u);
1294
- return !Ne && _ && _(), await new Promise((D, H) => {
1295
- lt(D, H, {
1296
- data: bt,
1297
- headers: C.from(k.headers),
1298
- status: k.status,
1299
- statusText: k.statusText,
1300
- config: u,
1301
- request: J
1302
- });
1228
+ }
1229
+ a.isString(p) || (p = p ? "include" : "omit");
1230
+ const E = "credentials" in Request.prototype;
1231
+ d = new Request(t, {
1232
+ ...b,
1233
+ signal: g,
1234
+ method: n.toUpperCase(),
1235
+ headers: u.normalize().toJSON(),
1236
+ body: r,
1237
+ duplex: "half",
1238
+ credentials: E ? p : void 0
1239
+ });
1240
+ let S = await fetch(d, b);
1241
+ const O = le && (l === "stream" || l === "response");
1242
+ if (le && (c || O && y)) {
1243
+ const A = {};
1244
+ ["status", "statusText", "headers"].forEach((ye) => {
1245
+ A[ye] = S[ye];
1303
1246
  });
1304
- } catch (F) {
1305
- throw _ && _(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
1306
- new y("Network Error", y.ERR_NETWORK, u, J),
1307
- {
1308
- cause: F.cause || F
1309
- }
1310
- ) : y.from(F, F && F.code, u, J);
1247
+ const F = a.toFiniteNumber(S.headers.get("content-length")), [U, z] = c && Oe(
1248
+ F,
1249
+ W(Te(c), !0)
1250
+ ) || [];
1251
+ S = new Response(
1252
+ Ce(S.body, xe, U, () => {
1253
+ z && z(), y && y();
1254
+ }),
1255
+ A
1256
+ );
1311
1257
  }
1312
- };
1313
- }, Kn = /* @__PURE__ */ new Map(), dt = (e) => {
1314
- let t = e ? e.env : {};
1315
- const { fetch: n, Request: r, Response: s } = t, i = [
1316
- r,
1317
- s,
1318
- n
1319
- ];
1320
- let o = i.length, c = o, d, f, l = Kn;
1321
- for (; c--; )
1322
- d = i[c], f = l.get(d), f === void 0 && l.set(d, f = c ? /* @__PURE__ */ new Map() : Wn(t)), l = f;
1323
- return f;
1324
- };
1325
- dt();
1326
- const Ee = {
1327
- http: un,
1328
- xhr: Hn,
1329
- fetch: {
1330
- get: dt
1258
+ l = l || "text";
1259
+ let P = await K[a.findKey(K, l) || "text"](S, e);
1260
+ return !O && y && y(), await new Promise((A, F) => {
1261
+ Ke(A, F, {
1262
+ data: P,
1263
+ headers: x.from(S.headers),
1264
+ status: S.status,
1265
+ statusText: S.statusText,
1266
+ config: e,
1267
+ request: d
1268
+ });
1269
+ });
1270
+ } catch (E) {
1271
+ throw y && y(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
1272
+ new m("Network Error", m.ERR_NETWORK, e, d),
1273
+ {
1274
+ cause: E.cause || E
1275
+ }
1276
+ ) : m.from(E, E && E.code, e, d);
1331
1277
  }
1278
+ }), ue = {
1279
+ http: Wt,
1280
+ xhr: On,
1281
+ fetch: Un
1332
1282
  };
1333
- a.forEach(Ee, (e, t) => {
1283
+ a.forEach(ue, (e, t) => {
1334
1284
  if (e) {
1335
1285
  try {
1336
1286
  Object.defineProperty(e, "name", { value: t });
@@ -1339,113 +1289,113 @@ a.forEach(Ee, (e, t) => {
1339
1289
  Object.defineProperty(e, "adapterName", { value: t });
1340
1290
  }
1341
1291
  });
1342
- const Je = (e) => `- ${e}`, vn = (e) => a.isFunction(e) || e === null || e === !1, pt = {
1343
- getAdapter: (e, t) => {
1292
+ const Ne = (e) => `- ${e}`, Bn = (e) => a.isFunction(e) || e === null || e === !1, Ze = {
1293
+ getAdapter: (e) => {
1344
1294
  e = a.isArray(e) ? e : [e];
1345
- const { length: n } = e;
1346
- let r, s;
1347
- const i = {};
1348
- for (let o = 0; o < n; o++) {
1349
- r = e[o];
1350
- let c;
1351
- if (s = r, !vn(r) && (s = Ee[(c = String(r)).toLowerCase()], s === void 0))
1352
- throw new y(`Unknown adapter '${c}'`);
1353
- if (s && (a.isFunction(s) || (s = s.get(t))))
1295
+ const { length: t } = e;
1296
+ let n, r;
1297
+ const s = {};
1298
+ for (let o = 0; o < t; o++) {
1299
+ n = e[o];
1300
+ let i;
1301
+ if (r = n, !Bn(n) && (r = ue[(i = String(n)).toLowerCase()], r === void 0))
1302
+ throw new m(`Unknown adapter '${i}'`);
1303
+ if (r)
1354
1304
  break;
1355
- i[c || "#" + o] = s;
1305
+ s[i || "#" + o] = r;
1356
1306
  }
1357
- if (!s) {
1358
- const o = Object.entries(i).map(
1359
- ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1307
+ if (!r) {
1308
+ const o = Object.entries(s).map(
1309
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1360
1310
  );
1361
- let c = n ? o.length > 1 ? `since :
1362
- ` + o.map(Je).join(`
1363
- `) : " " + Je(o[0]) : "as no adapter specified";
1364
- throw new y(
1365
- "There is no suitable adapter to dispatch the request " + c,
1311
+ let i = t ? o.length > 1 ? `since :
1312
+ ` + o.map(Ne).join(`
1313
+ `) : " " + Ne(o[0]) : "as no adapter specified";
1314
+ throw new m(
1315
+ "There is no suitable adapter to dispatch the request " + i,
1366
1316
  "ERR_NOT_SUPPORT"
1367
1317
  );
1368
1318
  }
1369
- return s;
1319
+ return r;
1370
1320
  },
1371
- adapters: Ee
1321
+ adapters: ue
1372
1322
  };
1373
- function me(e) {
1323
+ function oe(e) {
1374
1324
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1375
- throw new z(null, e);
1325
+ throw new j(null, e);
1376
1326
  }
1377
- function Ve(e) {
1378
- return me(e), e.headers = C.from(e.headers), e.data = he.call(
1327
+ function Le(e) {
1328
+ return oe(e), e.headers = x.from(e.headers), e.data = se.call(
1379
1329
  e,
1380
1330
  e.transformRequest
1381
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), pt.getAdapter(e.adapter || X.adapter, e)(e).then(function(r) {
1382
- return me(e), r.data = he.call(
1331
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ze.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
1332
+ return oe(e), r.data = se.call(
1383
1333
  e,
1384
1334
  e.transformResponse,
1385
1335
  r
1386
- ), r.headers = C.from(r.headers), r;
1336
+ ), r.headers = x.from(r.headers), r;
1387
1337
  }, function(r) {
1388
- return ct(r) || (me(e), r && r.response && (r.response.data = he.call(
1338
+ return We(r) || (oe(e), r && r.response && (r.response.data = se.call(
1389
1339
  e,
1390
1340
  e.transformResponse,
1391
1341
  r.response
1392
- ), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
1342
+ ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1393
1343
  });
1394
1344
  }
1395
- const ht = "1.12.2", le = {};
1345
+ const Ye = "1.10.0", te = {};
1396
1346
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1397
- le[e] = function(r) {
1347
+ te[e] = function(r) {
1398
1348
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1399
1349
  };
1400
1350
  });
1401
- const We = {};
1402
- le.transitional = function(t, n, r) {
1403
- function s(i, o) {
1404
- return "[Axios v" + ht + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1351
+ const Pe = {};
1352
+ te.transitional = function(t, n, r) {
1353
+ function s(o, i) {
1354
+ return "[Axios v" + Ye + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1405
1355
  }
1406
- return (i, o, c) => {
1356
+ return (o, i, c) => {
1407
1357
  if (t === !1)
1408
- throw new y(
1409
- s(o, " has been removed" + (n ? " in " + n : "")),
1410
- y.ERR_DEPRECATED
1358
+ throw new m(
1359
+ s(i, " has been removed" + (n ? " in " + n : "")),
1360
+ m.ERR_DEPRECATED
1411
1361
  );
1412
- return n && !We[o] && (We[o] = !0, console.warn(
1362
+ return n && !Pe[i] && (Pe[i] = !0, console.warn(
1413
1363
  s(
1414
- o,
1364
+ i,
1415
1365
  " has been deprecated since v" + n + " and will be removed in the near future"
1416
1366
  )
1417
- )), t ? t(i, o, c) : !0;
1367
+ )), t ? t(o, i, c) : !0;
1418
1368
  };
1419
1369
  };
1420
- le.spelling = function(t) {
1370
+ te.spelling = function(t) {
1421
1371
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1422
1372
  };
1423
- function Xn(e, t, n) {
1373
+ function Dn(e, t, n) {
1424
1374
  if (typeof e != "object")
1425
- throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1375
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1426
1376
  const r = Object.keys(e);
1427
1377
  let s = r.length;
1428
1378
  for (; s-- > 0; ) {
1429
- const i = r[s], o = t[i];
1430
- if (o) {
1431
- const c = e[i], d = c === void 0 || o(c, i, e);
1432
- if (d !== !0)
1433
- throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1379
+ const o = r[s], i = t[o];
1380
+ if (i) {
1381
+ const c = e[o], f = c === void 0 || i(c, o, e);
1382
+ if (f !== !0)
1383
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1434
1384
  continue;
1435
1385
  }
1436
1386
  if (n !== !0)
1437
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1387
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1438
1388
  }
1439
1389
  }
1440
- const ne = {
1441
- assertOptions: Xn,
1442
- validators: le
1443
- }, U = ne.validators;
1444
- let q = class {
1390
+ const V = {
1391
+ assertOptions: Dn,
1392
+ validators: te
1393
+ }, L = V.validators;
1394
+ class D {
1445
1395
  constructor(t) {
1446
1396
  this.defaults = t || {}, this.interceptors = {
1447
- request: new De(),
1448
- response: new De()
1397
+ request: new ge(),
1398
+ response: new ge()
1449
1399
  };
1450
1400
  }
1451
1401
  /**
@@ -1463,10 +1413,10 @@ let q = class {
1463
1413
  if (r instanceof Error) {
1464
1414
  let s = {};
1465
1415
  Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1466
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1416
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1467
1417
  try {
1468
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1469
- ` + i) : r.stack = i;
1418
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1419
+ ` + o) : r.stack = o;
1470
1420
  } catch {
1471
1421
  }
1472
1422
  }
@@ -1474,76 +1424,76 @@ let q = class {
1474
1424
  }
1475
1425
  }
1476
1426
  _request(t, n) {
1477
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = I(this.defaults, n);
1478
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1479
- r !== void 0 && ne.assertOptions(r, {
1480
- silentJSONParsing: U.transitional(U.boolean),
1481
- forcedJSONParsing: U.transitional(U.boolean),
1482
- clarifyTimeoutError: U.transitional(U.boolean)
1427
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = k(this.defaults, n);
1428
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1429
+ r !== void 0 && V.assertOptions(r, {
1430
+ silentJSONParsing: L.transitional(L.boolean),
1431
+ forcedJSONParsing: L.transitional(L.boolean),
1432
+ clarifyTimeoutError: L.transitional(L.boolean)
1483
1433
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1484
1434
  serialize: s
1485
- } : ne.assertOptions(s, {
1486
- encode: U.function,
1487
- serialize: U.function
1488
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ne.assertOptions(n, {
1489
- baseUrl: U.spelling("baseURL"),
1490
- withXsrfToken: U.spelling("withXSRFToken")
1435
+ } : V.assertOptions(s, {
1436
+ encode: L.function,
1437
+ serialize: L.function
1438
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), V.assertOptions(n, {
1439
+ baseUrl: L.spelling("baseURL"),
1440
+ withXsrfToken: L.spelling("withXSRFToken")
1491
1441
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1492
- let o = i && a.merge(
1493
- i.common,
1494
- i[n.method]
1442
+ let i = o && a.merge(
1443
+ o.common,
1444
+ o[n.method]
1495
1445
  );
1496
- i && a.forEach(
1446
+ o && a.forEach(
1497
1447
  ["delete", "get", "head", "post", "put", "patch", "common"],
1498
- (u) => {
1499
- delete i[u];
1448
+ (d) => {
1449
+ delete o[d];
1500
1450
  }
1501
- ), n.headers = C.concat(o, i);
1451
+ ), n.headers = x.concat(i, o);
1502
1452
  const c = [];
1503
- let d = !0;
1504
- this.interceptors.request.forEach(function(m) {
1505
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1453
+ let f = !0;
1454
+ this.interceptors.request.forEach(function(y) {
1455
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1506
1456
  });
1507
- const f = [];
1508
- this.interceptors.response.forEach(function(m) {
1509
- f.push(m.fulfilled, m.rejected);
1457
+ const l = [];
1458
+ this.interceptors.response.forEach(function(y) {
1459
+ l.push(y.fulfilled, y.rejected);
1510
1460
  });
1511
- let l, h = 0, b;
1512
- if (!d) {
1513
- const u = [Ve.bind(this), void 0];
1514
- for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); h < b; )
1515
- l = l.then(u[h++], u[h++]);
1516
- return l;
1461
+ let u, p = 0, b;
1462
+ if (!f) {
1463
+ const d = [Le.bind(this), void 0];
1464
+ for (d.unshift.apply(d, c), d.push.apply(d, l), b = d.length, u = Promise.resolve(n); p < b; )
1465
+ u = u.then(d[p++], d[p++]);
1466
+ return u;
1517
1467
  }
1518
1468
  b = c.length;
1519
- let S = n;
1520
- for (; h < b; ) {
1521
- const u = c[h++], m = c[h++];
1469
+ let g = n;
1470
+ for (p = 0; p < b; ) {
1471
+ const d = c[p++], y = c[p++];
1522
1472
  try {
1523
- S = u(S);
1524
- } catch (p) {
1525
- m.call(this, p);
1473
+ g = d(g);
1474
+ } catch (h) {
1475
+ y.call(this, h);
1526
1476
  break;
1527
1477
  }
1528
1478
  }
1529
1479
  try {
1530
- l = Ve.call(this, S);
1531
- } catch (u) {
1532
- return Promise.reject(u);
1480
+ u = Le.call(this, g);
1481
+ } catch (d) {
1482
+ return Promise.reject(d);
1533
1483
  }
1534
- for (h = 0, b = f.length; h < b; )
1535
- l = l.then(f[h++], f[h++]);
1536
- return l;
1484
+ for (p = 0, b = l.length; p < b; )
1485
+ u = u.then(l[p++], l[p++]);
1486
+ return u;
1537
1487
  }
1538
1488
  getUri(t) {
1539
- t = I(this.defaults, t);
1540
- const n = ut(t.baseURL, t.url, t.allowAbsoluteUrls);
1541
- return ot(n, t.params, t.paramsSerializer);
1489
+ t = k(this.defaults, t);
1490
+ const n = ve(t.baseURL, t.url, t.allowAbsoluteUrls);
1491
+ return Je(n, t.params, t.paramsSerializer);
1542
1492
  }
1543
- };
1493
+ }
1544
1494
  a.forEach(["delete", "get", "head", "options"], function(t) {
1545
- q.prototype[t] = function(n, r) {
1546
- return this.request(I(r || {}, {
1495
+ D.prototype[t] = function(n, r) {
1496
+ return this.request(k(r || {}, {
1547
1497
  method: t,
1548
1498
  url: n,
1549
1499
  data: (r || {}).data
@@ -1552,44 +1502,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1552
1502
  });
1553
1503
  a.forEach(["post", "put", "patch"], function(t) {
1554
1504
  function n(r) {
1555
- return function(i, o, c) {
1556
- return this.request(I(c || {}, {
1505
+ return function(o, i, c) {
1506
+ return this.request(k(c || {}, {
1557
1507
  method: t,
1558
1508
  headers: r ? {
1559
1509
  "Content-Type": "multipart/form-data"
1560
1510
  } : {},
1561
- url: i,
1562
- data: o
1511
+ url: o,
1512
+ data: i
1563
1513
  }));
1564
1514
  };
1565
1515
  }
1566
- q.prototype[t] = n(), q.prototype[t + "Form"] = n(!0);
1516
+ D.prototype[t] = n(), D.prototype[t + "Form"] = n(!0);
1567
1517
  });
1568
- let Gn = class mt {
1518
+ class me {
1569
1519
  constructor(t) {
1570
1520
  if (typeof t != "function")
1571
1521
  throw new TypeError("executor must be a function.");
1572
1522
  let n;
1573
- this.promise = new Promise(function(i) {
1574
- n = i;
1523
+ this.promise = new Promise(function(o) {
1524
+ n = o;
1575
1525
  });
1576
1526
  const r = this;
1577
1527
  this.promise.then((s) => {
1578
1528
  if (!r._listeners) return;
1579
- let i = r._listeners.length;
1580
- for (; i-- > 0; )
1581
- r._listeners[i](s);
1529
+ let o = r._listeners.length;
1530
+ for (; o-- > 0; )
1531
+ r._listeners[o](s);
1582
1532
  r._listeners = null;
1583
1533
  }), this.promise.then = (s) => {
1584
- let i;
1585
- const o = new Promise((c) => {
1586
- r.subscribe(c), i = c;
1534
+ let o;
1535
+ const i = new Promise((c) => {
1536
+ r.subscribe(c), o = c;
1587
1537
  }).then(s);
1588
- return o.cancel = function() {
1589
- r.unsubscribe(i);
1590
- }, o;
1591
- }, t(function(i, o, c) {
1592
- r.reason || (r.reason = new z(i, o, c), n(r.reason));
1538
+ return i.cancel = function() {
1539
+ r.unsubscribe(o);
1540
+ }, i;
1541
+ }, t(function(o, i, c) {
1542
+ r.reason || (r.reason = new j(o, i, c), n(r.reason));
1593
1543
  });
1594
1544
  }
1595
1545
  /**
@@ -1631,22 +1581,22 @@ let Gn = class mt {
1631
1581
  static source() {
1632
1582
  let t;
1633
1583
  return {
1634
- token: new mt(function(s) {
1584
+ token: new me(function(s) {
1635
1585
  t = s;
1636
1586
  }),
1637
1587
  cancel: t
1638
1588
  };
1639
1589
  }
1640
- };
1641
- function Qn(e) {
1590
+ }
1591
+ function kn(e) {
1642
1592
  return function(n) {
1643
1593
  return e.apply(null, n);
1644
1594
  };
1645
1595
  }
1646
- function Zn(e) {
1596
+ function _n(e) {
1647
1597
  return a.isObject(e) && e.isAxiosError === !0;
1648
1598
  }
1649
- const ge = {
1599
+ const fe = {
1650
1600
  Continue: 100,
1651
1601
  SwitchingProtocols: 101,
1652
1602
  Processing: 102,
@@ -1711,61 +1661,43 @@ const ge = {
1711
1661
  NotExtended: 510,
1712
1662
  NetworkAuthenticationRequired: 511
1713
1663
  };
1714
- Object.entries(ge).forEach(([e, t]) => {
1715
- ge[t] = e;
1664
+ Object.entries(fe).forEach(([e, t]) => {
1665
+ fe[t] = e;
1716
1666
  });
1717
- function yt(e) {
1718
- const t = new q(e), n = Ke(q.prototype.request, t);
1719
- return a.extend(n, q.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1720
- return yt(I(e, s));
1667
+ function et(e) {
1668
+ const t = new D(e), n = Fe(D.prototype.request, t);
1669
+ return a.extend(n, D.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1670
+ return et(k(e, s));
1721
1671
  }, n;
1722
1672
  }
1723
- const E = yt(X);
1724
- E.Axios = q;
1725
- E.CanceledError = z;
1726
- E.CancelToken = Gn;
1727
- E.isCancel = ct;
1728
- E.VERSION = ht;
1729
- E.toFormData = ce;
1730
- E.AxiosError = y;
1731
- E.Cancel = E.CanceledError;
1732
- E.all = function(t) {
1673
+ const R = et(H);
1674
+ R.Axios = D;
1675
+ R.CanceledError = j;
1676
+ R.CancelToken = me;
1677
+ R.isCancel = We;
1678
+ R.VERSION = Ye;
1679
+ R.toFormData = Y;
1680
+ R.AxiosError = m;
1681
+ R.Cancel = R.CanceledError;
1682
+ R.all = function(t) {
1733
1683
  return Promise.all(t);
1734
1684
  };
1735
- E.spread = Qn;
1736
- E.isAxiosError = Zn;
1737
- E.mergeConfig = I;
1738
- E.AxiosHeaders = C;
1739
- E.formToJSON = (e) => at(a.isHTMLForm(e) ? new FormData(e) : e);
1740
- E.getAdapter = pt.getAdapter;
1741
- E.HttpStatusCode = ge;
1742
- E.default = E;
1743
- const {
1744
- Axios: sr,
1745
- AxiosError: or,
1746
- CanceledError: ir,
1747
- isCancel: ar,
1748
- CancelToken: cr,
1749
- VERSION: lr,
1750
- all: ur,
1751
- Cancel: fr,
1752
- isAxiosError: dr,
1753
- spread: pr,
1754
- toFormData: hr,
1755
- AxiosHeaders: mr,
1756
- HttpStatusCode: yr,
1757
- formToJSON: br,
1758
- getAdapter: wr,
1759
- mergeConfig: Er
1760
- } = E;
1761
- function Yn() {
1685
+ R.spread = kn;
1686
+ R.isAxiosError = _n;
1687
+ R.mergeConfig = k;
1688
+ R.AxiosHeaders = x;
1689
+ R.formToJSON = (e) => Ve(a.isHTMLForm(e) ? new FormData(e) : e);
1690
+ R.getAdapter = Ze.getAdapter;
1691
+ R.HttpStatusCode = fe;
1692
+ R.default = R;
1693
+ function jn() {
1762
1694
  function e(t, n = {}) {
1763
1695
  return n = { ...{
1764
1696
  timeout: 5e3,
1765
1697
  headers: {
1766
1698
  "Cache-Control": "no-cache"
1767
1699
  }
1768
- }, ...n }, E.get(t, n).then((i) => i.data);
1700
+ }, ...n }, R.get(t, n).then((o) => o.data);
1769
1701
  }
1770
1702
  return {
1771
1703
  loadResource: e
@@ -1773,9 +1705,9 @@ function Yn() {
1773
1705
  }
1774
1706
  const w = class w {
1775
1707
  static async setup(t, n = {}) {
1776
- w.config = { ...Ot, ...n };
1708
+ w.config = { ...it, ...n };
1777
1709
  const r = w.config.locale;
1778
- w.i18n = gt({
1710
+ w.i18n = rt({
1779
1711
  locale: r,
1780
1712
  fallbackLocale: w.config.fallbackLocale,
1781
1713
  messages: {},
@@ -1799,7 +1731,7 @@ const w = class w {
1799
1731
  * @returns
1800
1732
  */
1801
1733
  static getRealPropertyValue(t, n, r) {
1802
- const { t: s } = Rt();
1734
+ const { t: s } = st();
1803
1735
  return !t || t === n ? s(r) : t;
1804
1736
  }
1805
1737
  static async loadResources(t = {}) {
@@ -1810,10 +1742,10 @@ const w = class w {
1810
1742
  var n, r;
1811
1743
  try {
1812
1744
  let s = {};
1813
- const { loadResource: i } = Yn();
1745
+ const { loadResource: o } = jn();
1814
1746
  if (w.config.uri) {
1815
- const o = `${w.config.uri}/${t}.json?version=${(/* @__PURE__ */ new Date()).valueOf()}`;
1816
- s = await i(o);
1747
+ const i = `${w.config.uri}/${t}.json?version=${(/* @__PURE__ */ new Date()).valueOf()}`;
1748
+ s = await o(i);
1817
1749
  }
1818
1750
  return (n = w.config.localResources) != null && n[t] && (s = { ...s, ...w.config.localResources[t] }), s;
1819
1751
  } catch (s) {
@@ -1821,15 +1753,15 @@ const w = class w {
1821
1753
  }
1822
1754
  }
1823
1755
  };
1824
- de(w, "i18n"), de(w, "config");
1825
- let se = w;
1826
- const gr = {
1756
+ ne(w, "i18n"), ne(w, "config");
1757
+ let v = w;
1758
+ const Mn = {
1827
1759
  async install(e, t) {
1828
- await se.setup(e, t), e.provide(St, se);
1760
+ await v.setup(e, t), e.provide(ot, v);
1829
1761
  }
1830
1762
  };
1831
1763
  export {
1832
- St as LOCALE_SERVICE_INJECTION_TOKEN,
1833
- se as LocaleService,
1834
- gr as default
1764
+ ot as LOCALE_SERVICE_INJECTION_TOKEN,
1765
+ v as LocaleService,
1766
+ Mn as default
1835
1767
  };