@feedmepos/mf-brand-app-builder 0.5.22-dev.1 → 0.5.24-dev.0

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