@feedmepos/mf-settings 0.0.52 → 0.0.54-prod
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.
- package/dist/App-fd535e14.js +22089 -0
- package/dist/Business-b79105db.js +11981 -0
- package/dist/CreateBusiness-5f0d1a0f.js +352 -0
- package/dist/FoodCourt-d499e626.js +71867 -0
- package/dist/{Tagging-55538d2b.js → Tagging-d7e4442c.js} +3 -3
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/_commonjs-dynamic-modules-bed80856.js +6 -0
- package/dist/{app-b66ea7e1.js → app-40df57e2.js} +6 -6
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/src/helpers/phone.d.ts +4 -0
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-906742ba.js → business-4073e305.js} +1 -1
- package/dist/{index-72d7bc88.js → index-95f69047.js} +229 -229
- package/dist/{map-695afd6f.js → map-54b71412.js} +527 -410
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +23 -2
- package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +2 -0
- package/package.json +4 -3
- package/dist/App-22950de9.js +0 -4352
- package/dist/Business-c9b59843.js +0 -3893
- package/dist/CreateBusiness-0850150d.js +0 -230
- package/dist/FoodCourt-ad9640e4.js +0 -47797
- package/dist/TemplateBuilder-54a34178.js +0 -27
- package/dist/index-1eb3cc0a.js +0 -17754
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as Et, isRef as St, watch as Rt } from "vue";
|
|
2
2
|
import { SnackbarPosition as oe } from "@feedmepos/ui-library";
|
|
3
3
|
import { defineStore as Tt } from "pinia";
|
|
4
|
-
import { e as
|
|
4
|
+
import { e as K } from "./index-f1e5e565.js";
|
|
5
5
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
|
6
6
|
var T = [];
|
|
7
7
|
for (var ie = 0; ie < 256; ++ie)
|
|
8
8
|
T.push((ie + 256).toString(16).slice(1));
|
|
9
|
-
function
|
|
9
|
+
function At(t, e = 0) {
|
|
10
10
|
return (T[t[e + 0]] + T[t[e + 1]] + T[t[e + 2]] + T[t[e + 3]] + "-" + T[t[e + 4]] + T[t[e + 5]] + "-" + T[t[e + 6]] + T[t[e + 7]] + "-" + T[t[e + 8]] + T[t[e + 9]] + "-" + T[t[e + 10]] + T[t[e + 11]] + T[t[e + 12]] + T[t[e + 13]] + T[t[e + 14]] + T[t[e + 15]]).toLowerCase();
|
|
11
11
|
}
|
|
12
|
-
var z,
|
|
12
|
+
var z, Ot = new Uint8Array(16);
|
|
13
13
|
function Ct() {
|
|
14
14
|
if (!z && (z = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !z))
|
|
15
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
return z(
|
|
16
|
+
return z(Ot);
|
|
17
17
|
}
|
|
18
18
|
var It = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
19
19
|
const Ie = {
|
|
@@ -30,40 +30,40 @@ function We(t, e, n) {
|
|
|
30
30
|
e[n + s] = r[s];
|
|
31
31
|
return e;
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return At(r);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ve(t, e) {
|
|
36
36
|
return function() {
|
|
37
37
|
return t.apply(e, arguments);
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const { toString: xt } = Object.prototype, { getPrototypeOf: ge } = Object,
|
|
40
|
+
const { toString: xt } = Object.prototype, { getPrototypeOf: ge } = Object, Z = ((t) => (e) => {
|
|
41
41
|
const n = xt.call(e);
|
|
42
42
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
43
|
-
})(/* @__PURE__ */ Object.create(null)), x = (t) => (t = t.toLowerCase(), (e) =>
|
|
43
|
+
})(/* @__PURE__ */ Object.create(null)), x = (t) => (t = t.toLowerCase(), (e) => Z(e) === t), ee = (t) => (e) => typeof e === t, { isArray: M } = Array, $ = ee("undefined");
|
|
44
44
|
function Ut(t) {
|
|
45
45
|
return t !== null && !$(t) && t.constructor !== null && !$(t.constructor) && C(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const Ge = x("ArrayBuffer");
|
|
48
48
|
function kt(t) {
|
|
49
49
|
let e;
|
|
50
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
50
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ge(t.buffer), e;
|
|
51
51
|
}
|
|
52
|
-
const Pt = ee("string"), C = ee("function"),
|
|
53
|
-
if (
|
|
52
|
+
const Pt = ee("string"), C = ee("function"), Ke = ee("number"), te = (t) => t !== null && typeof t == "object", Lt = (t) => t === !0 || t === !1, W = (t) => {
|
|
53
|
+
if (Z(t) !== "object")
|
|
54
54
|
return !1;
|
|
55
55
|
const e = ge(t);
|
|
56
56
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
57
|
-
}, _t = x("Date"),
|
|
57
|
+
}, _t = x("Date"), Nt = x("File"), Bt = x("Blob"), Ft = x("FileList"), Mt = (t) => te(t) && C(t.pipe), vt = (t) => {
|
|
58
58
|
let e;
|
|
59
|
-
return t && (typeof FormData == "function" && t instanceof FormData || C(t.append) && ((e =
|
|
59
|
+
return t && (typeof FormData == "function" && t instanceof FormData || C(t.append) && ((e = Z(t)) === "formdata" || // detect form-data instance
|
|
60
60
|
e === "object" && C(t.toString) && t.toString() === "[object FormData]"));
|
|
61
61
|
}, Dt = x("URLSearchParams"), [$t, jt, qt, Ht] = ["ReadableStream", "Request", "Response", "Headers"].map(x), zt = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
62
62
|
function q(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
63
63
|
if (t === null || typeof t > "u")
|
|
64
64
|
return;
|
|
65
65
|
let r, s;
|
|
66
|
-
if (typeof t != "object" && (t = [t]),
|
|
66
|
+
if (typeof t != "object" && (t = [t]), M(t))
|
|
67
67
|
for (r = 0, s = t.length; r < s; r++)
|
|
68
68
|
e.call(null, t[r], r, t);
|
|
69
69
|
else {
|
|
@@ -73,7 +73,7 @@ function q(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
73
73
|
a = o[r], e.call(null, t[a], a, t);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Qe(t, e) {
|
|
77
77
|
e = e.toLowerCase();
|
|
78
78
|
const n = Object.keys(t);
|
|
79
79
|
let r = n.length, s;
|
|
@@ -82,23 +82,23 @@ function Ke(t, e) {
|
|
|
82
82
|
return s;
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const N = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Xe = (t) => !$(t) && t !== N;
|
|
86
86
|
function fe() {
|
|
87
87
|
const { caseless: t } = Xe(this) && this || {}, e = {}, n = (r, s) => {
|
|
88
|
-
const o = t &&
|
|
89
|
-
W(e[o]) && W(r) ? e[o] = fe(e[o], r) : W(r) ? e[o] = fe({}, r) :
|
|
88
|
+
const o = t && Qe(e, s) || s;
|
|
89
|
+
W(e[o]) && W(r) ? e[o] = fe(e[o], r) : W(r) ? e[o] = fe({}, r) : M(r) ? e[o] = r.slice() : e[o] = r;
|
|
90
90
|
};
|
|
91
91
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
92
92
|
arguments[r] && q(arguments[r], n);
|
|
93
93
|
return e;
|
|
94
94
|
}
|
|
95
95
|
const Jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
96
|
-
n && C(s) ? t[o] =
|
|
97
|
-
}, { allOwnKeys: r }), t), Wt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t),
|
|
96
|
+
n && C(s) ? t[o] = Ve(s, n) : t[o] = s;
|
|
97
|
+
}, { allOwnKeys: r }), t), Wt = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Vt = (t, e, n, r) => {
|
|
98
98
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
99
99
|
value: e.prototype
|
|
100
100
|
}), n && Object.assign(t.prototype, n);
|
|
101
|
-
},
|
|
101
|
+
}, Gt = (t, e, n, r) => {
|
|
102
102
|
let s, o, i;
|
|
103
103
|
const a = {};
|
|
104
104
|
if (e = e || {}, t == null)
|
|
@@ -109,30 +109,30 @@ const Jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
109
109
|
t = n !== !1 && ge(t);
|
|
110
110
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
111
111
|
return e;
|
|
112
|
-
},
|
|
112
|
+
}, Kt = (t, e, n) => {
|
|
113
113
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
114
114
|
const r = t.indexOf(e, n);
|
|
115
115
|
return r !== -1 && r === n;
|
|
116
|
-
},
|
|
116
|
+
}, Qt = (t) => {
|
|
117
117
|
if (!t)
|
|
118
118
|
return null;
|
|
119
|
-
if (
|
|
119
|
+
if (M(t))
|
|
120
120
|
return t;
|
|
121
121
|
let e = t.length;
|
|
122
|
-
if (!
|
|
122
|
+
if (!Ke(e))
|
|
123
123
|
return null;
|
|
124
124
|
const n = new Array(e);
|
|
125
125
|
for (; e-- > 0; )
|
|
126
126
|
n[e] = t[e];
|
|
127
127
|
return n;
|
|
128
|
-
}, Xt = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ge(Uint8Array)),
|
|
128
|
+
}, Xt = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ge(Uint8Array)), Yt = (t, e) => {
|
|
129
129
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
130
130
|
let s;
|
|
131
131
|
for (; (s = r.next()) && !s.done; ) {
|
|
132
132
|
const o = s.value;
|
|
133
133
|
e.call(t, o[0], o[1]);
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, Zt = (t, e) => {
|
|
136
136
|
let n;
|
|
137
137
|
const r = [];
|
|
138
138
|
for (; (n = t.exec(e)) !== null; )
|
|
@@ -143,14 +143,14 @@ const Jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
143
143
|
function(n, r, s) {
|
|
144
144
|
return r.toUpperCase() + s;
|
|
145
145
|
}
|
|
146
|
-
), xe = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), nn = x("RegExp"),
|
|
146
|
+
), xe = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), nn = x("RegExp"), Ye = (t, e) => {
|
|
147
147
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
148
148
|
q(n, (s, o) => {
|
|
149
149
|
let i;
|
|
150
150
|
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
151
151
|
}), Object.defineProperties(t, r);
|
|
152
152
|
}, rn = (t) => {
|
|
153
|
-
|
|
153
|
+
Ye(t, (e, n) => {
|
|
154
154
|
if (C(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
155
155
|
return !1;
|
|
156
156
|
const r = t[n];
|
|
@@ -170,13 +170,13 @@ const Jt = (t, e, n, { allOwnKeys: r } = {}) => (q(e, (s, o) => {
|
|
|
170
170
|
n[o] = !0;
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
-
return
|
|
173
|
+
return M(t) ? r(t) : r(String(t).split(e)), n;
|
|
174
174
|
}, on = () => {
|
|
175
|
-
}, an = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ae = "abcdefghijklmnopqrstuvwxyz", Ue = "0123456789",
|
|
175
|
+
}, an = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ae = "abcdefghijklmnopqrstuvwxyz", Ue = "0123456789", Ze = {
|
|
176
176
|
DIGIT: Ue,
|
|
177
177
|
ALPHA: ae,
|
|
178
178
|
ALPHA_DIGIT: ae + ae.toUpperCase() + Ue
|
|
179
|
-
}, cn = (t = 16, e =
|
|
179
|
+
}, cn = (t = 16, e = Ze.ALPHA_DIGIT) => {
|
|
180
180
|
let n = "";
|
|
181
181
|
const { length: r } = e;
|
|
182
182
|
for (; t--; )
|
|
@@ -193,7 +193,7 @@ const ln = (t) => {
|
|
|
193
193
|
return;
|
|
194
194
|
if (!("toJSON" in r)) {
|
|
195
195
|
e[s] = r;
|
|
196
|
-
const o =
|
|
196
|
+
const o = M(r) ? [] : {};
|
|
197
197
|
return q(r, (i, a) => {
|
|
198
198
|
const d = n(i, s + 1);
|
|
199
199
|
!$(d) && (o[a] = d);
|
|
@@ -203,21 +203,21 @@ const ln = (t) => {
|
|
|
203
203
|
return r;
|
|
204
204
|
};
|
|
205
205
|
return n(t, 0);
|
|
206
|
-
}, dn = x("AsyncFunction"), fn = (t) => t && (te(t) || C(t)) && C(t.then) && C(t.catch), et = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
207
|
-
s ===
|
|
206
|
+
}, dn = x("AsyncFunction"), fn = (t) => t && (te(t) || C(t)) && C(t.then) && C(t.catch), et = ((t, e) => t ? setImmediate : e ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
|
|
207
|
+
s === N && o === n && r.length && r.shift()();
|
|
208
208
|
}, !1), (s) => {
|
|
209
|
-
r.push(s),
|
|
209
|
+
r.push(s), N.postMessage(n, "*");
|
|
210
210
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
211
211
|
typeof setImmediate == "function",
|
|
212
|
-
C(
|
|
213
|
-
), pn = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
214
|
-
isArray:
|
|
215
|
-
isArrayBuffer:
|
|
212
|
+
C(N.postMessage)
|
|
213
|
+
), pn = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || et, c = {
|
|
214
|
+
isArray: M,
|
|
215
|
+
isArrayBuffer: Ge,
|
|
216
216
|
isBuffer: Ut,
|
|
217
|
-
isFormData:
|
|
217
|
+
isFormData: vt,
|
|
218
218
|
isArrayBufferView: kt,
|
|
219
219
|
isString: Pt,
|
|
220
|
-
isNumber:
|
|
220
|
+
isNumber: Ke,
|
|
221
221
|
isBoolean: Lt,
|
|
222
222
|
isObject: te,
|
|
223
223
|
isPlainObject: W,
|
|
@@ -227,41 +227,41 @@ const ln = (t) => {
|
|
|
227
227
|
isHeaders: Ht,
|
|
228
228
|
isUndefined: $,
|
|
229
229
|
isDate: _t,
|
|
230
|
-
isFile:
|
|
231
|
-
isBlob:
|
|
230
|
+
isFile: Nt,
|
|
231
|
+
isBlob: Bt,
|
|
232
232
|
isRegExp: nn,
|
|
233
233
|
isFunction: C,
|
|
234
|
-
isStream:
|
|
234
|
+
isStream: Mt,
|
|
235
235
|
isURLSearchParams: Dt,
|
|
236
236
|
isTypedArray: Xt,
|
|
237
|
-
isFileList:
|
|
237
|
+
isFileList: Ft,
|
|
238
238
|
forEach: q,
|
|
239
239
|
merge: fe,
|
|
240
240
|
extend: Jt,
|
|
241
241
|
trim: zt,
|
|
242
242
|
stripBOM: Wt,
|
|
243
|
-
inherits:
|
|
244
|
-
toFlatObject:
|
|
245
|
-
kindOf:
|
|
243
|
+
inherits: Vt,
|
|
244
|
+
toFlatObject: Gt,
|
|
245
|
+
kindOf: Z,
|
|
246
246
|
kindOfTest: x,
|
|
247
|
-
endsWith:
|
|
248
|
-
toArray:
|
|
249
|
-
forEachEntry:
|
|
250
|
-
matchAll:
|
|
247
|
+
endsWith: Kt,
|
|
248
|
+
toArray: Qt,
|
|
249
|
+
forEachEntry: Yt,
|
|
250
|
+
matchAll: Zt,
|
|
251
251
|
isHTMLForm: en,
|
|
252
252
|
hasOwnProperty: xe,
|
|
253
253
|
hasOwnProp: xe,
|
|
254
254
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
255
|
-
reduceDescriptors:
|
|
255
|
+
reduceDescriptors: Ye,
|
|
256
256
|
freezeMethods: rn,
|
|
257
257
|
toObjectSet: sn,
|
|
258
258
|
toCamelCase: tn,
|
|
259
259
|
noop: on,
|
|
260
260
|
toFiniteNumber: an,
|
|
261
|
-
findKey:
|
|
262
|
-
global:
|
|
261
|
+
findKey: Qe,
|
|
262
|
+
global: N,
|
|
263
263
|
isContextDefined: Xe,
|
|
264
|
-
ALPHABET:
|
|
264
|
+
ALPHABET: Ze,
|
|
265
265
|
generateString: cn,
|
|
266
266
|
isSpecCompliantForm: un,
|
|
267
267
|
toJSONObject: ln,
|
|
@@ -361,12 +361,12 @@ function ne(t, e, n) {
|
|
|
361
361
|
return c.isArrayBuffer(p) || c.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
362
362
|
}
|
|
363
363
|
function l(p, y, h) {
|
|
364
|
-
let
|
|
364
|
+
let w = p;
|
|
365
365
|
if (p && !h && typeof p == "object") {
|
|
366
366
|
if (c.endsWith(y, "{}"))
|
|
367
367
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
368
|
-
else if (c.isArray(p) && mn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (
|
|
369
|
-
return y = rt(y),
|
|
368
|
+
else if (c.isArray(p) && mn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (w = c.toArray(p)))
|
|
369
|
+
return y = rt(y), w.forEach(function(R, U) {
|
|
370
370
|
!(c.isUndefined(R) || R === null) && e.append(
|
|
371
371
|
// eslint-disable-next-line no-nested-ternary
|
|
372
372
|
i === !0 ? ke([y], U, o) : i === null ? y : y + "[]",
|
|
@@ -376,7 +376,7 @@ function ne(t, e, n) {
|
|
|
376
376
|
}
|
|
377
377
|
return pe(p) ? !0 : (e.append(ke(h, y, o), u(p)), !1);
|
|
378
378
|
}
|
|
379
|
-
const f = [],
|
|
379
|
+
const f = [], b = Object.assign(yn, {
|
|
380
380
|
defaultVisitor: l,
|
|
381
381
|
convertValue: u,
|
|
382
382
|
isVisitable: pe
|
|
@@ -385,14 +385,14 @@ function ne(t, e, n) {
|
|
|
385
385
|
if (!c.isUndefined(p)) {
|
|
386
386
|
if (f.indexOf(p) !== -1)
|
|
387
387
|
throw Error("Circular reference detected in " + y.join("."));
|
|
388
|
-
f.push(p), c.forEach(p, function(
|
|
389
|
-
(!(c.isUndefined(
|
|
388
|
+
f.push(p), c.forEach(p, function(w, S) {
|
|
389
|
+
(!(c.isUndefined(w) || w === null) && s.call(
|
|
390
390
|
e,
|
|
391
|
-
|
|
391
|
+
w,
|
|
392
392
|
c.isString(S) ? S.trim() : S,
|
|
393
393
|
y,
|
|
394
|
-
|
|
395
|
-
)) === !0 && E(
|
|
394
|
+
b
|
|
395
|
+
)) === !0 && E(w, y ? y.concat(S) : [S]);
|
|
396
396
|
}), f.pop();
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -429,13 +429,13 @@ st.toString = function(e) {
|
|
|
429
429
|
return n(s[0]) + "=" + n(s[1]);
|
|
430
430
|
}, "").join("&");
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function bn(t) {
|
|
433
433
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
434
434
|
}
|
|
435
435
|
function ot(t, e, n) {
|
|
436
436
|
if (!e)
|
|
437
437
|
return t;
|
|
438
|
-
const r = n && n.encode ||
|
|
438
|
+
const r = n && n.encode || bn, s = n && n.serialize;
|
|
439
439
|
let o;
|
|
440
440
|
if (s ? o = s(e, n) : o = c.isURLSearchParams(e) ? e.toString() : new Ee(e, n).toString(r), o) {
|
|
441
441
|
const i = t.indexOf("#");
|
|
@@ -443,7 +443,7 @@ function ot(t, e, n) {
|
|
|
443
443
|
}
|
|
444
444
|
return t;
|
|
445
445
|
}
|
|
446
|
-
class
|
|
446
|
+
class wn {
|
|
447
447
|
constructor() {
|
|
448
448
|
this.handlers = [];
|
|
449
449
|
}
|
|
@@ -497,7 +497,7 @@ class bn {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
const Le =
|
|
500
|
+
const Le = wn, it = {
|
|
501
501
|
silentJSONParsing: !0,
|
|
502
502
|
forcedJSONParsing: !0,
|
|
503
503
|
clarifyTimeoutError: !1
|
|
@@ -509,22 +509,22 @@ const Le = bn, it = {
|
|
|
509
509
|
Blob: Sn
|
|
510
510
|
},
|
|
511
511
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
512
|
-
}, Se = typeof window < "u" && typeof document < "u", he = typeof navigator == "object" && navigator || void 0, Tn = Se && (!he || ["ReactNative", "NativeScript", "NS"].indexOf(he.product) < 0),
|
|
513
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
512
|
+
}, Se = typeof window < "u" && typeof document < "u", he = typeof navigator == "object" && navigator || void 0, Tn = Se && (!he || ["ReactNative", "NativeScript", "NS"].indexOf(he.product) < 0), An = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
513
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), On = Se && window.location.href || "http://localhost", Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
514
514
|
__proto__: null,
|
|
515
515
|
hasBrowserEnv: Se,
|
|
516
516
|
hasStandardBrowserEnv: Tn,
|
|
517
|
-
hasStandardBrowserWebWorkerEnv:
|
|
517
|
+
hasStandardBrowserWebWorkerEnv: An,
|
|
518
518
|
navigator: he,
|
|
519
|
-
origin:
|
|
520
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
519
|
+
origin: On
|
|
520
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
521
521
|
...Cn,
|
|
522
522
|
...Rn
|
|
523
523
|
};
|
|
524
524
|
function In(t, e) {
|
|
525
|
-
return ne(t, new
|
|
525
|
+
return ne(t, new O.classes.URLSearchParams(), Object.assign({
|
|
526
526
|
visitor: function(n, r, s, o) {
|
|
527
|
-
return
|
|
527
|
+
return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
528
528
|
}
|
|
529
529
|
}, e));
|
|
530
530
|
}
|
|
@@ -619,8 +619,8 @@ const Re = {
|
|
|
619
619
|
maxContentLength: -1,
|
|
620
620
|
maxBodyLength: -1,
|
|
621
621
|
env: {
|
|
622
|
-
FormData:
|
|
623
|
-
Blob:
|
|
622
|
+
FormData: O.classes.FormData,
|
|
623
|
+
Blob: O.classes.Blob
|
|
624
624
|
},
|
|
625
625
|
validateStatus: function(e) {
|
|
626
626
|
return e >= 200 && e < 300;
|
|
@@ -664,8 +664,8 @@ const Te = Re, Pn = c.toObjectSet([
|
|
|
664
664
|
function D(t) {
|
|
665
665
|
return t && String(t).trim().toLowerCase();
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
return t === !1 || t == null ? t : c.isArray(t) ? t.map(
|
|
667
|
+
function V(t) {
|
|
668
|
+
return t === !1 || t == null ? t : c.isArray(t) ? t.map(V) : String(t);
|
|
669
669
|
}
|
|
670
670
|
function _n(t) {
|
|
671
671
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -674,7 +674,7 @@ function _n(t) {
|
|
|
674
674
|
e[r[1]] = r[2];
|
|
675
675
|
return e;
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const Nn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
678
678
|
function ce(t, e, n, r, s) {
|
|
679
679
|
if (c.isFunction(r))
|
|
680
680
|
return r.call(this, e, n);
|
|
@@ -685,10 +685,10 @@ function ce(t, e, n, r, s) {
|
|
|
685
685
|
return r.test(e);
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Bn(t) {
|
|
689
689
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Fn(t, e) {
|
|
692
692
|
const n = c.toCamelCase(" " + e);
|
|
693
693
|
["get", "set", "has"].forEach((r) => {
|
|
694
694
|
Object.defineProperty(t, r + n, {
|
|
@@ -710,12 +710,12 @@ let re = class {
|
|
|
710
710
|
if (!l)
|
|
711
711
|
throw new Error("header name must be a non-empty string");
|
|
712
712
|
const f = c.findKey(s, l);
|
|
713
|
-
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] =
|
|
713
|
+
(!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] = V(a));
|
|
714
714
|
}
|
|
715
715
|
const i = (a, d) => c.forEach(a, (u, l) => o(u, l, d));
|
|
716
716
|
if (c.isPlainObject(e) || e instanceof this.constructor)
|
|
717
717
|
i(e, n);
|
|
718
|
-
else if (c.isString(e) && (e = e.trim()) && !
|
|
718
|
+
else if (c.isString(e) && (e = e.trim()) && !Nn(e))
|
|
719
719
|
i(Ln(e), n);
|
|
720
720
|
else if (c.isHeaders(e))
|
|
721
721
|
for (const [a, d] of e.entries())
|
|
@@ -773,11 +773,11 @@ let re = class {
|
|
|
773
773
|
return c.forEach(this, (s, o) => {
|
|
774
774
|
const i = c.findKey(r, o);
|
|
775
775
|
if (i) {
|
|
776
|
-
n[i] =
|
|
776
|
+
n[i] = V(s), delete n[o];
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
const a = e ?
|
|
780
|
-
a !== o && delete n[o], n[a] =
|
|
779
|
+
const a = e ? Bn(o) : String(o).trim();
|
|
780
|
+
a !== o && delete n[o], n[a] = V(s), r[a] = !0;
|
|
781
781
|
}), this;
|
|
782
782
|
}
|
|
783
783
|
concat(...e) {
|
|
@@ -812,7 +812,7 @@ let re = class {
|
|
|
812
812
|
}).accessors, s = this.prototype;
|
|
813
813
|
function o(i) {
|
|
814
814
|
const a = D(i);
|
|
815
|
-
r[a] || (
|
|
815
|
+
r[a] || (Fn(s, i), r[a] = !0);
|
|
816
816
|
}
|
|
817
817
|
return c.isArray(e) ? e.forEach(o) : o(e), this;
|
|
818
818
|
}
|
|
@@ -839,10 +839,10 @@ function ue(t, e) {
|
|
|
839
839
|
function ct(t) {
|
|
840
840
|
return !!(t && t.__CANCEL__);
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function v(t, e, n) {
|
|
843
843
|
m.call(this, t ?? "canceled", m.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
844
844
|
}
|
|
845
|
-
c.inherits(
|
|
845
|
+
c.inherits(v, m, {
|
|
846
846
|
__CANCEL__: !0
|
|
847
847
|
});
|
|
848
848
|
function ut(t, e, n) {
|
|
@@ -855,24 +855,24 @@ function ut(t, e, n) {
|
|
|
855
855
|
n
|
|
856
856
|
));
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Mn(t) {
|
|
859
859
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
860
860
|
return e && e[1] || "";
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function vn(t, e) {
|
|
863
863
|
t = t || 10;
|
|
864
864
|
const n = new Array(t), r = new Array(t);
|
|
865
865
|
let s = 0, o = 0, i;
|
|
866
866
|
return e = e !== void 0 ? e : 1e3, function(d) {
|
|
867
867
|
const u = Date.now(), l = r[o];
|
|
868
868
|
i || (i = u), n[s] = d, r[s] = u;
|
|
869
|
-
let f = o,
|
|
869
|
+
let f = o, b = 0;
|
|
870
870
|
for (; f !== s; )
|
|
871
|
-
|
|
871
|
+
b += n[f++], f = f % t;
|
|
872
872
|
if (s = (s + 1) % t, s === o && (o = (o + 1) % t), u - i < e)
|
|
873
873
|
return;
|
|
874
874
|
const E = l && u - l;
|
|
875
|
-
return E ? Math.round(
|
|
875
|
+
return E ? Math.round(b * 1e3 / E) : void 0;
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
878
|
function Dn(t, e) {
|
|
@@ -887,9 +887,9 @@ function Dn(t, e) {
|
|
|
887
887
|
}, r - f)));
|
|
888
888
|
}, () => s && i(s)];
|
|
889
889
|
}
|
|
890
|
-
const
|
|
890
|
+
const Q = (t, e, n = 3) => {
|
|
891
891
|
let r = 0;
|
|
892
|
-
const s =
|
|
892
|
+
const s = vn(50, 250);
|
|
893
893
|
return Dn((o) => {
|
|
894
894
|
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - r, u = s(d), l = i <= a;
|
|
895
895
|
r = i;
|
|
@@ -906,18 +906,18 @@ const K = (t, e, n = 3) => {
|
|
|
906
906
|
};
|
|
907
907
|
t(f);
|
|
908
908
|
}, n);
|
|
909
|
-
},
|
|
909
|
+
}, Ne = (t, e) => {
|
|
910
910
|
const n = t != null;
|
|
911
911
|
return [(r) => e[0]({
|
|
912
912
|
lengthComputable: n,
|
|
913
913
|
total: t,
|
|
914
914
|
loaded: r
|
|
915
915
|
}), e[1]];
|
|
916
|
-
},
|
|
916
|
+
}, Be = (t) => (...e) => c.asap(() => t(...e)), $n = O.hasStandardBrowserEnv ? (
|
|
917
917
|
// Standard browser envs have full support of the APIs needed to test
|
|
918
918
|
// whether the request URL is of the same origin as current location.
|
|
919
919
|
function() {
|
|
920
|
-
const e =
|
|
920
|
+
const e = O.navigator && /(msie|trident)/i.test(O.navigator.userAgent), n = document.createElement("a");
|
|
921
921
|
let r;
|
|
922
922
|
function s(o) {
|
|
923
923
|
let i = o;
|
|
@@ -944,7 +944,7 @@ const K = (t, e, n = 3) => {
|
|
|
944
944
|
return !0;
|
|
945
945
|
};
|
|
946
946
|
}()
|
|
947
|
-
), jn =
|
|
947
|
+
), jn = O.hasStandardBrowserEnv ? (
|
|
948
948
|
// Standard browser envs support document.cookie
|
|
949
949
|
{
|
|
950
950
|
write(t, e, n, r, s, o) {
|
|
@@ -980,8 +980,8 @@ function Hn(t, e) {
|
|
|
980
980
|
function lt(t, e) {
|
|
981
981
|
return t && !qn(e) ? Hn(t, e) : e;
|
|
982
982
|
}
|
|
983
|
-
const
|
|
984
|
-
function
|
|
983
|
+
const Fe = (t) => t instanceof I ? { ...t } : t;
|
|
984
|
+
function B(t, e) {
|
|
985
985
|
e = e || {};
|
|
986
986
|
const n = {};
|
|
987
987
|
function r(u, l, f) {
|
|
@@ -1040,15 +1040,15 @@ function v(t, e) {
|
|
|
1040
1040
|
socketPath: i,
|
|
1041
1041
|
responseEncoding: i,
|
|
1042
1042
|
validateStatus: a,
|
|
1043
|
-
headers: (u, l) => s(
|
|
1043
|
+
headers: (u, l) => s(Fe(u), Fe(l), !0)
|
|
1044
1044
|
};
|
|
1045
1045
|
return c.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
1046
|
-
const f = d[l] || s,
|
|
1047
|
-
c.isUndefined(
|
|
1046
|
+
const f = d[l] || s, b = f(t[l], e[l], l);
|
|
1047
|
+
c.isUndefined(b) && f !== a || (n[l] = b);
|
|
1048
1048
|
}), n;
|
|
1049
1049
|
}
|
|
1050
1050
|
const dt = (t) => {
|
|
1051
|
-
const e =
|
|
1051
|
+
const e = B({}, t);
|
|
1052
1052
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = e;
|
|
1053
1053
|
e.headers = i = I.from(i), e.url = ot(lt(e.baseURL, e.url), t.params, t.paramsSerializer), a && i.set(
|
|
1054
1054
|
"Authorization",
|
|
@@ -1056,14 +1056,14 @@ const dt = (t) => {
|
|
|
1056
1056
|
);
|
|
1057
1057
|
let d;
|
|
1058
1058
|
if (c.isFormData(n)) {
|
|
1059
|
-
if (
|
|
1059
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1060
1060
|
i.setContentType(void 0);
|
|
1061
1061
|
else if ((d = i.getContentType()) !== !1) {
|
|
1062
1062
|
const [u, ...l] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1063
1063
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
if (
|
|
1066
|
+
if (O.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && $n(e.url))) {
|
|
1067
1067
|
const u = s && o && jn.read(o);
|
|
1068
1068
|
u && i.set(s, u);
|
|
1069
1069
|
}
|
|
@@ -1073,18 +1073,18 @@ const dt = (t) => {
|
|
|
1073
1073
|
const s = dt(t);
|
|
1074
1074
|
let o = s.data;
|
|
1075
1075
|
const i = I.from(s.headers).normalize();
|
|
1076
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = s, l, f,
|
|
1076
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = s, l, f, b, E, p;
|
|
1077
1077
|
function y() {
|
|
1078
1078
|
E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1079
1079
|
}
|
|
1080
1080
|
let h = new XMLHttpRequest();
|
|
1081
1081
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1082
|
-
function
|
|
1082
|
+
function w() {
|
|
1083
1083
|
if (!h)
|
|
1084
1084
|
return;
|
|
1085
1085
|
const R = I.from(
|
|
1086
1086
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1087
|
-
),
|
|
1087
|
+
), A = {
|
|
1088
1088
|
data: !a || a === "text" || a === "json" ? h.responseText : h.response,
|
|
1089
1089
|
status: h.status,
|
|
1090
1090
|
statusText: h.statusText,
|
|
@@ -1096,30 +1096,30 @@ const dt = (t) => {
|
|
|
1096
1096
|
n(_), y();
|
|
1097
1097
|
}, function(_) {
|
|
1098
1098
|
r(_), y();
|
|
1099
|
-
},
|
|
1099
|
+
}, A), h = null;
|
|
1100
1100
|
}
|
|
1101
|
-
"onloadend" in h ? h.onloadend =
|
|
1102
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1101
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1102
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1103
1103
|
}, h.onabort = function() {
|
|
1104
1104
|
h && (r(new m("Request aborted", m.ECONNABORTED, t, h)), h = null);
|
|
1105
1105
|
}, h.onerror = function() {
|
|
1106
1106
|
r(new m("Network Error", m.ERR_NETWORK, t, h)), h = null;
|
|
1107
1107
|
}, h.ontimeout = function() {
|
|
1108
1108
|
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1109
|
-
const
|
|
1109
|
+
const A = s.transitional || it;
|
|
1110
1110
|
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
|
|
1111
1111
|
U,
|
|
1112
|
-
|
|
1112
|
+
A.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1113
1113
|
t,
|
|
1114
1114
|
h
|
|
1115
1115
|
)), h = null;
|
|
1116
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U,
|
|
1117
|
-
h.setRequestHeader(
|
|
1118
|
-
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([
|
|
1119
|
-
h && (r(!R || R.type ? new
|
|
1116
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(U, A) {
|
|
1117
|
+
h.setRequestHeader(A, U);
|
|
1118
|
+
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([b, p] = Q(u, !0), h.addEventListener("progress", b)), d && h.upload && ([f, E] = Q(d), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (R) => {
|
|
1119
|
+
h && (r(!R || R.type ? new v(null, t, h) : R), h.abort(), h = null);
|
|
1120
1120
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1121
|
-
const S =
|
|
1122
|
-
if (S &&
|
|
1121
|
+
const S = Mn(s.url);
|
|
1122
|
+
if (S && O.protocols.indexOf(S) === -1) {
|
|
1123
1123
|
r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, t));
|
|
1124
1124
|
return;
|
|
1125
1125
|
}
|
|
@@ -1133,7 +1133,7 @@ const dt = (t) => {
|
|
|
1133
1133
|
if (!s) {
|
|
1134
1134
|
s = !0, a();
|
|
1135
1135
|
const l = u instanceof Error ? u : this.reason;
|
|
1136
|
-
r.abort(l instanceof m ? l : new
|
|
1136
|
+
r.abort(l instanceof m ? l : new v(l instanceof Error ? l.message : l));
|
|
1137
1137
|
}
|
|
1138
1138
|
};
|
|
1139
1139
|
let i = e && setTimeout(() => {
|
|
@@ -1148,7 +1148,7 @@ const dt = (t) => {
|
|
|
1148
1148
|
const { signal: d } = r;
|
|
1149
1149
|
return d.unsubscribe = () => c.asap(a), d;
|
|
1150
1150
|
}
|
|
1151
|
-
},
|
|
1151
|
+
}, Vn = Wn, Gn = function* (t, e) {
|
|
1152
1152
|
let n = t.byteLength;
|
|
1153
1153
|
if (!e || n < e) {
|
|
1154
1154
|
yield t;
|
|
@@ -1157,10 +1157,10 @@ const dt = (t) => {
|
|
|
1157
1157
|
let r = 0, s;
|
|
1158
1158
|
for (; r < n; )
|
|
1159
1159
|
s = r + e, yield t.slice(r, s), r = s;
|
|
1160
|
-
},
|
|
1161
|
-
for await (const n of
|
|
1162
|
-
yield*
|
|
1163
|
-
},
|
|
1160
|
+
}, Kn = async function* (t, e) {
|
|
1161
|
+
for await (const n of Qn(t))
|
|
1162
|
+
yield* Gn(n, e);
|
|
1163
|
+
}, Qn = async function* (t) {
|
|
1164
1164
|
if (t[Symbol.asyncIterator]) {
|
|
1165
1165
|
yield* t;
|
|
1166
1166
|
return;
|
|
@@ -1176,8 +1176,8 @@ const dt = (t) => {
|
|
|
1176
1176
|
} finally {
|
|
1177
1177
|
await e.cancel();
|
|
1178
1178
|
}
|
|
1179
|
-
},
|
|
1180
|
-
const s =
|
|
1179
|
+
}, Me = (t, e, n, r) => {
|
|
1180
|
+
const s = Kn(t, e);
|
|
1181
1181
|
let o = 0, i, a = (d) => {
|
|
1182
1182
|
i || (i = !0, r && r(d));
|
|
1183
1183
|
};
|
|
@@ -1191,8 +1191,8 @@ const dt = (t) => {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
let f = l.byteLength;
|
|
1193
1193
|
if (n) {
|
|
1194
|
-
let
|
|
1195
|
-
n(
|
|
1194
|
+
let b = o += f;
|
|
1195
|
+
n(b);
|
|
1196
1196
|
}
|
|
1197
1197
|
d.enqueue(new Uint8Array(l));
|
|
1198
1198
|
} catch (u) {
|
|
@@ -1211,9 +1211,9 @@ const dt = (t) => {
|
|
|
1211
1211
|
} catch {
|
|
1212
1212
|
return !1;
|
|
1213
1213
|
}
|
|
1214
|
-
},
|
|
1214
|
+
}, Yn = ft && pt(() => {
|
|
1215
1215
|
let t = !1;
|
|
1216
|
-
const e = new Request(
|
|
1216
|
+
const e = new Request(O.origin, {
|
|
1217
1217
|
body: new ReadableStream(),
|
|
1218
1218
|
method: "POST",
|
|
1219
1219
|
get duplex() {
|
|
@@ -1221,7 +1221,7 @@ const dt = (t) => {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}).headers.has("Content-Type");
|
|
1223
1223
|
return t && !e;
|
|
1224
|
-
}),
|
|
1224
|
+
}), ve = 64 * 1024, me = ft && pt(() => c.isReadableStream(new Response("").body)), X = {
|
|
1225
1225
|
stream: me && ((t) => t.body)
|
|
1226
1226
|
};
|
|
1227
1227
|
se && ((t) => {
|
|
@@ -1231,13 +1231,13 @@ se && ((t) => {
|
|
|
1231
1231
|
});
|
|
1232
1232
|
});
|
|
1233
1233
|
})(new Response());
|
|
1234
|
-
const
|
|
1234
|
+
const Zn = async (t) => {
|
|
1235
1235
|
if (t == null)
|
|
1236
1236
|
return 0;
|
|
1237
1237
|
if (c.isBlob(t))
|
|
1238
1238
|
return t.size;
|
|
1239
1239
|
if (c.isSpecCompliantForm(t))
|
|
1240
|
-
return (await new Request(
|
|
1240
|
+
return (await new Request(O.origin, {
|
|
1241
1241
|
method: "POST",
|
|
1242
1242
|
body: t
|
|
1243
1243
|
}).arrayBuffer()).byteLength;
|
|
@@ -1247,7 +1247,7 @@ const Yn = async (t) => {
|
|
|
1247
1247
|
return (await Xn(t)).byteLength;
|
|
1248
1248
|
}, er = async (t, e) => {
|
|
1249
1249
|
const n = c.toFiniteNumber(t.getContentLength());
|
|
1250
|
-
return n ??
|
|
1250
|
+
return n ?? Zn(e);
|
|
1251
1251
|
}, tr = se && (async (t) => {
|
|
1252
1252
|
let {
|
|
1253
1253
|
url: e,
|
|
@@ -1261,62 +1261,62 @@ const Yn = async (t) => {
|
|
|
1261
1261
|
responseType: u,
|
|
1262
1262
|
headers: l,
|
|
1263
1263
|
withCredentials: f = "same-origin",
|
|
1264
|
-
fetchOptions:
|
|
1264
|
+
fetchOptions: b
|
|
1265
1265
|
} = dt(t);
|
|
1266
1266
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1267
|
-
let E =
|
|
1267
|
+
let E = Vn([s, o && o.toAbortSignal()], i), p;
|
|
1268
1268
|
const y = E && E.unsubscribe && (() => {
|
|
1269
1269
|
E.unsubscribe();
|
|
1270
1270
|
});
|
|
1271
1271
|
let h;
|
|
1272
1272
|
try {
|
|
1273
|
-
if (d &&
|
|
1274
|
-
let
|
|
1273
|
+
if (d && Yn && n !== "get" && n !== "head" && (h = await er(l, r)) !== 0) {
|
|
1274
|
+
let A = new Request(e, {
|
|
1275
1275
|
method: "POST",
|
|
1276
1276
|
body: r,
|
|
1277
1277
|
duplex: "half"
|
|
1278
1278
|
}), k;
|
|
1279
|
-
if (c.isFormData(r) && (k =
|
|
1280
|
-
const [_, H] =
|
|
1279
|
+
if (c.isFormData(r) && (k = A.headers.get("content-type")) && l.setContentType(k), A.body) {
|
|
1280
|
+
const [_, H] = Ne(
|
|
1281
1281
|
h,
|
|
1282
|
-
|
|
1282
|
+
Q(Be(d))
|
|
1283
1283
|
);
|
|
1284
|
-
r =
|
|
1284
|
+
r = Me(A.body, ve, _, H);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
c.isString(f) || (f = f ? "include" : "omit");
|
|
1288
|
-
const
|
|
1288
|
+
const w = "credentials" in Request.prototype;
|
|
1289
1289
|
p = new Request(e, {
|
|
1290
|
-
...
|
|
1290
|
+
...b,
|
|
1291
1291
|
signal: E,
|
|
1292
1292
|
method: n.toUpperCase(),
|
|
1293
1293
|
headers: l.normalize().toJSON(),
|
|
1294
1294
|
body: r,
|
|
1295
1295
|
duplex: "half",
|
|
1296
|
-
credentials:
|
|
1296
|
+
credentials: w ? f : void 0
|
|
1297
1297
|
});
|
|
1298
1298
|
let S = await fetch(p);
|
|
1299
1299
|
const R = me && (u === "stream" || u === "response");
|
|
1300
1300
|
if (me && (a || R && y)) {
|
|
1301
|
-
const
|
|
1301
|
+
const A = {};
|
|
1302
1302
|
["status", "statusText", "headers"].forEach((Ce) => {
|
|
1303
|
-
|
|
1303
|
+
A[Ce] = S[Ce];
|
|
1304
1304
|
});
|
|
1305
|
-
const k = c.toFiniteNumber(S.headers.get("content-length")), [_, H] = a &&
|
|
1305
|
+
const k = c.toFiniteNumber(S.headers.get("content-length")), [_, H] = a && Ne(
|
|
1306
1306
|
k,
|
|
1307
|
-
|
|
1307
|
+
Q(Be(a), !0)
|
|
1308
1308
|
) || [];
|
|
1309
1309
|
S = new Response(
|
|
1310
|
-
|
|
1310
|
+
Me(S.body, ve, _, () => {
|
|
1311
1311
|
H && H(), y && y();
|
|
1312
1312
|
}),
|
|
1313
|
-
|
|
1313
|
+
A
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
1316
1316
|
u = u || "text";
|
|
1317
1317
|
let U = await X[c.findKey(X, u) || "text"](S, t);
|
|
1318
|
-
return !R && y && y(), await new Promise((
|
|
1319
|
-
ut(
|
|
1318
|
+
return !R && y && y(), await new Promise((A, k) => {
|
|
1319
|
+
ut(A, k, {
|
|
1320
1320
|
data: U,
|
|
1321
1321
|
headers: I.from(S.headers),
|
|
1322
1322
|
status: S.status,
|
|
@@ -1325,13 +1325,13 @@ const Yn = async (t) => {
|
|
|
1325
1325
|
request: p
|
|
1326
1326
|
});
|
|
1327
1327
|
});
|
|
1328
|
-
} catch (
|
|
1329
|
-
throw y && y(),
|
|
1328
|
+
} catch (w) {
|
|
1329
|
+
throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1330
1330
|
new m("Network Error", m.ERR_NETWORK, t, p),
|
|
1331
1331
|
{
|
|
1332
|
-
cause:
|
|
1332
|
+
cause: w.cause || w
|
|
1333
1333
|
}
|
|
1334
|
-
) : m.from(
|
|
1334
|
+
) : m.from(w, w && w.code, t, p);
|
|
1335
1335
|
}
|
|
1336
1336
|
}), ye = {
|
|
1337
1337
|
http: hn,
|
|
@@ -1380,7 +1380,7 @@ const De = (t) => `- ${t}`, nr = (t) => c.isFunction(t) || t === null || t === !
|
|
|
1380
1380
|
};
|
|
1381
1381
|
function le(t) {
|
|
1382
1382
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1383
|
-
throw new
|
|
1383
|
+
throw new v(null, t);
|
|
1384
1384
|
}
|
|
1385
1385
|
function $e(t) {
|
|
1386
1386
|
return le(t), t.headers = I.from(t.headers), t.data = ue.call(
|
|
@@ -1400,14 +1400,14 @@ function $e(t) {
|
|
|
1400
1400
|
), r.response.headers = I.from(r.response.headers))), Promise.reject(r);
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
|
-
const mt = "1.7.7",
|
|
1403
|
+
const mt = "1.7.7", Ae = {};
|
|
1404
1404
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1405
|
-
|
|
1405
|
+
Ae[t] = function(r) {
|
|
1406
1406
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1407
1407
|
};
|
|
1408
1408
|
});
|
|
1409
1409
|
const je = {};
|
|
1410
|
-
|
|
1410
|
+
Ae.transitional = function(e, n, r) {
|
|
1411
1411
|
function s(o, i) {
|
|
1412
1412
|
return "[Axios v" + mt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1413
1413
|
}
|
|
@@ -1442,11 +1442,11 @@ function rr(t, e, n) {
|
|
|
1442
1442
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
const
|
|
1445
|
+
const be = {
|
|
1446
1446
|
assertOptions: rr,
|
|
1447
|
-
validators:
|
|
1448
|
-
}, P =
|
|
1449
|
-
let
|
|
1447
|
+
validators: Ae
|
|
1448
|
+
}, P = be.validators;
|
|
1449
|
+
let Y = class {
|
|
1450
1450
|
constructor(e) {
|
|
1451
1451
|
this.defaults = e, this.interceptors = {
|
|
1452
1452
|
request: new Le(),
|
|
@@ -1479,15 +1479,15 @@ let Z = class {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
_request(e, n) {
|
|
1482
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1482
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = B(this.defaults, n);
|
|
1483
1483
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1484
|
-
r !== void 0 &&
|
|
1484
|
+
r !== void 0 && be.assertOptions(r, {
|
|
1485
1485
|
silentJSONParsing: P.transitional(P.boolean),
|
|
1486
1486
|
forcedJSONParsing: P.transitional(P.boolean),
|
|
1487
1487
|
clarifyTimeoutError: P.transitional(P.boolean)
|
|
1488
1488
|
}, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1489
1489
|
serialize: s
|
|
1490
|
-
} :
|
|
1490
|
+
} : be.assertOptions(s, {
|
|
1491
1491
|
encode: P.function,
|
|
1492
1492
|
serialize: P.function
|
|
1493
1493
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1510,16 +1510,16 @@ let Z = class {
|
|
|
1510
1510
|
this.interceptors.response.forEach(function(y) {
|
|
1511
1511
|
u.push(y.fulfilled, y.rejected);
|
|
1512
1512
|
});
|
|
1513
|
-
let l, f = 0,
|
|
1513
|
+
let l, f = 0, b;
|
|
1514
1514
|
if (!d) {
|
|
1515
1515
|
const p = [$e.bind(this), void 0];
|
|
1516
|
-
for (p.unshift.apply(p, a), p.push.apply(p, u),
|
|
1516
|
+
for (p.unshift.apply(p, a), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); f < b; )
|
|
1517
1517
|
l = l.then(p[f++], p[f++]);
|
|
1518
1518
|
return l;
|
|
1519
1519
|
}
|
|
1520
|
-
|
|
1520
|
+
b = a.length;
|
|
1521
1521
|
let E = n;
|
|
1522
|
-
for (f = 0; f <
|
|
1522
|
+
for (f = 0; f < b; ) {
|
|
1523
1523
|
const p = a[f++], y = a[f++];
|
|
1524
1524
|
try {
|
|
1525
1525
|
E = p(E);
|
|
@@ -1533,19 +1533,19 @@ let Z = class {
|
|
|
1533
1533
|
} catch (p) {
|
|
1534
1534
|
return Promise.reject(p);
|
|
1535
1535
|
}
|
|
1536
|
-
for (f = 0,
|
|
1536
|
+
for (f = 0, b = u.length; f < b; )
|
|
1537
1537
|
l = l.then(u[f++], u[f++]);
|
|
1538
1538
|
return l;
|
|
1539
1539
|
}
|
|
1540
1540
|
getUri(e) {
|
|
1541
|
-
e =
|
|
1541
|
+
e = B(this.defaults, e);
|
|
1542
1542
|
const n = lt(e.baseURL, e.url);
|
|
1543
1543
|
return ot(n, e.params, e.paramsSerializer);
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
1546
|
c.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1547
|
-
|
|
1548
|
-
return this.request(
|
|
1547
|
+
Y.prototype[e] = function(n, r) {
|
|
1548
|
+
return this.request(B(r || {}, {
|
|
1549
1549
|
method: e,
|
|
1550
1550
|
url: n,
|
|
1551
1551
|
data: (r || {}).data
|
|
@@ -1555,7 +1555,7 @@ c.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1555
1555
|
c.forEach(["post", "put", "patch"], function(e) {
|
|
1556
1556
|
function n(r) {
|
|
1557
1557
|
return function(o, i, a) {
|
|
1558
|
-
return this.request(
|
|
1558
|
+
return this.request(B(a || {}, {
|
|
1559
1559
|
method: e,
|
|
1560
1560
|
headers: r ? {
|
|
1561
1561
|
"Content-Type": "multipart/form-data"
|
|
@@ -1565,9 +1565,9 @@ c.forEach(["post", "put", "patch"], function(e) {
|
|
|
1565
1565
|
}));
|
|
1566
1566
|
};
|
|
1567
1567
|
}
|
|
1568
|
-
|
|
1568
|
+
Y.prototype[e] = n(), Y.prototype[e + "Form"] = n(!0);
|
|
1569
1569
|
});
|
|
1570
|
-
const
|
|
1570
|
+
const G = Y;
|
|
1571
1571
|
let sr = class yt {
|
|
1572
1572
|
constructor(e) {
|
|
1573
1573
|
if (typeof e != "function")
|
|
@@ -1593,7 +1593,7 @@ let sr = class yt {
|
|
|
1593
1593
|
r.unsubscribe(o);
|
|
1594
1594
|
}, i;
|
|
1595
1595
|
}, e(function(o, i, a) {
|
|
1596
|
-
r.reason || (r.reason = new
|
|
1596
|
+
r.reason || (r.reason = new v(o, i, a), n(r.reason));
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
/**
|
|
@@ -1651,7 +1651,7 @@ function ir(t) {
|
|
|
1651
1651
|
function ar(t) {
|
|
1652
1652
|
return c.isObject(t) && t.isAxiosError === !0;
|
|
1653
1653
|
}
|
|
1654
|
-
const
|
|
1654
|
+
const we = {
|
|
1655
1655
|
Continue: 100,
|
|
1656
1656
|
SwitchingProtocols: 101,
|
|
1657
1657
|
Processing: 102,
|
|
@@ -1716,19 +1716,19 @@ const be = {
|
|
|
1716
1716
|
NotExtended: 510,
|
|
1717
1717
|
NetworkAuthenticationRequired: 511
|
|
1718
1718
|
};
|
|
1719
|
-
Object.entries(
|
|
1720
|
-
|
|
1719
|
+
Object.entries(we).forEach(([t, e]) => {
|
|
1720
|
+
we[e] = t;
|
|
1721
1721
|
});
|
|
1722
|
-
const cr =
|
|
1723
|
-
function
|
|
1724
|
-
const e = new
|
|
1725
|
-
return c.extend(n,
|
|
1726
|
-
return
|
|
1722
|
+
const cr = we;
|
|
1723
|
+
function bt(t) {
|
|
1724
|
+
const e = new G(t), n = Ve(G.prototype.request, e);
|
|
1725
|
+
return c.extend(n, G.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1726
|
+
return bt(B(t, s));
|
|
1727
1727
|
}, n;
|
|
1728
1728
|
}
|
|
1729
|
-
const g =
|
|
1730
|
-
g.Axios =
|
|
1731
|
-
g.CanceledError =
|
|
1729
|
+
const g = bt(Te);
|
|
1730
|
+
g.Axios = G;
|
|
1731
|
+
g.CanceledError = v;
|
|
1732
1732
|
g.CancelToken = or;
|
|
1733
1733
|
g.isCancel = ct;
|
|
1734
1734
|
g.VERSION = mt;
|
|
@@ -1740,15 +1740,15 @@ g.all = function(e) {
|
|
|
1740
1740
|
};
|
|
1741
1741
|
g.spread = ir;
|
|
1742
1742
|
g.isAxiosError = ar;
|
|
1743
|
-
g.mergeConfig =
|
|
1743
|
+
g.mergeConfig = B;
|
|
1744
1744
|
g.AxiosHeaders = I;
|
|
1745
1745
|
g.formToJSON = (t) => at(c.isHTMLForm(t) ? new FormData(t) : t);
|
|
1746
1746
|
g.getAdapter = ht.getAdapter;
|
|
1747
1747
|
g.HttpStatusCode = cr;
|
|
1748
1748
|
g.default = g;
|
|
1749
|
-
const
|
|
1749
|
+
const Oe = g, {
|
|
1750
1750
|
Axios: Cr,
|
|
1751
|
-
AxiosError:
|
|
1751
|
+
AxiosError: wt,
|
|
1752
1752
|
CanceledError: Ir,
|
|
1753
1753
|
isCancel: xr,
|
|
1754
1754
|
CancelToken: Ur,
|
|
@@ -1756,15 +1756,15 @@ const Ae = g, {
|
|
|
1756
1756
|
all: Pr,
|
|
1757
1757
|
Cancel: Lr,
|
|
1758
1758
|
isAxiosError: _r,
|
|
1759
|
-
spread:
|
|
1760
|
-
toFormData:
|
|
1761
|
-
AxiosHeaders:
|
|
1762
|
-
HttpStatusCode:
|
|
1763
|
-
formToJSON:
|
|
1759
|
+
spread: Nr,
|
|
1760
|
+
toFormData: Br,
|
|
1761
|
+
AxiosHeaders: Fr,
|
|
1762
|
+
HttpStatusCode: Mr,
|
|
1763
|
+
formToJSON: vr,
|
|
1764
1764
|
getAdapter: Dr,
|
|
1765
1765
|
mergeConfig: $r
|
|
1766
|
-
} =
|
|
1767
|
-
var
|
|
1766
|
+
} = Oe;
|
|
1767
|
+
var F = globalThis && globalThis.__awaiter || function(t, e, n, r) {
|
|
1768
1768
|
function s(o) {
|
|
1769
1769
|
return o instanceof n ? o : new n(function(i) {
|
|
1770
1770
|
i(o);
|
|
@@ -1887,7 +1887,7 @@ class L {
|
|
|
1887
1887
|
`, document.head.appendChild(a);
|
|
1888
1888
|
}
|
|
1889
1889
|
static signIn({ waitForInitialAuthState: e = !1, root: n } = {}) {
|
|
1890
|
-
return
|
|
1890
|
+
return F(this, void 0, void 0, function* () {
|
|
1891
1891
|
if (e && (yield this.initialAuthStatePromise) || (window.parent !== window && console.warn("FeedMeAuth: looks like you are inside an iframe now, please let the parent window to handle the login instead."), document.getElementById(J)))
|
|
1892
1892
|
return;
|
|
1893
1893
|
const r = this.feedMePosOptions.oneTapMode, { wrapper: s } = this.createIframe({
|
|
@@ -1960,7 +1960,7 @@ class L {
|
|
|
1960
1960
|
}, 300));
|
|
1961
1961
|
}
|
|
1962
1962
|
static getCustomToken() {
|
|
1963
|
-
return
|
|
1963
|
+
return F(this, void 0, void 0, function* () {
|
|
1964
1964
|
const e = yield fetch(this.baseUrl + "/api/token/custom", {
|
|
1965
1965
|
method: "POST",
|
|
1966
1966
|
headers: {
|
|
@@ -1977,7 +1977,7 @@ class L {
|
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
1979
|
static currentUser() {
|
|
1980
|
-
return
|
|
1980
|
+
return F(this, void 0, void 0, function* () {
|
|
1981
1981
|
if (!this.bgIframe)
|
|
1982
1982
|
throw new Error("Can't call before initialize");
|
|
1983
1983
|
return yield this.initialAuthStatePromise, yield this.callMethodOnIframe({
|
|
@@ -1988,7 +1988,7 @@ class L {
|
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
static signInWithCustomToken(e) {
|
|
1991
|
-
return
|
|
1991
|
+
return F(this, void 0, void 0, function* () {
|
|
1992
1992
|
if (!this.bgIframe)
|
|
1993
1993
|
throw new Error("Can't call before initialize");
|
|
1994
1994
|
return yield this.callMethodOnIframe({
|
|
@@ -2000,7 +2000,7 @@ class L {
|
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
2002
|
static refreshToken() {
|
|
2003
|
-
return
|
|
2003
|
+
return F(this, void 0, void 0, function* () {
|
|
2004
2004
|
if (!this.bgIframe)
|
|
2005
2005
|
throw new Error("FeedMeAuth.refreshToken must be called after initialize()");
|
|
2006
2006
|
return new Promise((e, n) => {
|
|
@@ -2014,7 +2014,7 @@ class L {
|
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
2016
|
static getUserClaims() {
|
|
2017
|
-
return
|
|
2017
|
+
return F(this, void 0, void 0, function* () {
|
|
2018
2018
|
const e = yield fetch(this.baseUrl + "/api/user/claims", {
|
|
2019
2019
|
method: "GET",
|
|
2020
2020
|
headers: {
|
|
@@ -2116,8 +2116,8 @@ class L {
|
|
|
2116
2116
|
params: r
|
|
2117
2117
|
}, "*"), new Promise((i, a) => {
|
|
2118
2118
|
const d = (l) => {
|
|
2119
|
-
var f,
|
|
2120
|
-
l.origin === this.baseUrl && l.data.type === dr && ((f = l.data) === null || f === void 0 ? void 0 : f.messageId) === o && (clearTimeout(u), window.removeEventListener("message", d), i((
|
|
2119
|
+
var f, b;
|
|
2120
|
+
l.origin === this.baseUrl && l.data.type === dr && ((f = l.data) === null || f === void 0 ? void 0 : f.messageId) === o && (clearTimeout(u), window.removeEventListener("message", d), i((b = l.data) === null || b === void 0 ? void 0 : b.response));
|
|
2121
2121
|
};
|
|
2122
2122
|
window.addEventListener("message", d);
|
|
2123
2123
|
let u;
|
|
@@ -2138,7 +2138,7 @@ const fr = (t) => (e) => {
|
|
|
2138
2138
|
const n = ((s = j().sessionUser.value) == null ? void 0 : s.token) ?? L.token;
|
|
2139
2139
|
if (!n)
|
|
2140
2140
|
throw new Error("Invalid token");
|
|
2141
|
-
const r =
|
|
2141
|
+
const r = Oe.create({
|
|
2142
2142
|
baseURL: `${t}/${e}`,
|
|
2143
2143
|
headers: {
|
|
2144
2144
|
Authorization: `Bearer ${n}`
|
|
@@ -2148,7 +2148,7 @@ const fr = (t) => (e) => {
|
|
|
2148
2148
|
(o) => o,
|
|
2149
2149
|
async (o) => {
|
|
2150
2150
|
var i;
|
|
2151
|
-
if (o instanceof
|
|
2151
|
+
if (o instanceof wt) {
|
|
2152
2152
|
const a = (i = o.response) == null ? void 0 : i.data, d = (a == null ? void 0 : a.message) || (a == null ? void 0 : a.error) || `${o.message}` || `${o}`;
|
|
2153
2153
|
return Promise.reject(d);
|
|
2154
2154
|
}
|
|
@@ -2158,7 +2158,7 @@ const fr = (t) => (e) => {
|
|
|
2158
2158
|
}, qe = (t = "") => {
|
|
2159
2159
|
const { portalBackendUrl: e } = hr();
|
|
2160
2160
|
return fr(e)(t);
|
|
2161
|
-
}, pr = [
|
|
2161
|
+
}, pr = [K.F_COUNTRY.enum.SG, K.F_COUNTRY.enum.ID];
|
|
2162
2162
|
function He(t) {
|
|
2163
2163
|
return t.data;
|
|
2164
2164
|
}
|
|
@@ -2324,12 +2324,12 @@ const Je = Tt("portal-app-store", {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
)
|
|
2326
2326
|
};
|
|
2327
|
-
}, jr = yr,
|
|
2327
|
+
}, jr = yr, br = (t) => (e) => {
|
|
2328
2328
|
var s;
|
|
2329
2329
|
const n = ((s = j().sessionUser.value) == null ? void 0 : s.token) ?? L.token;
|
|
2330
2330
|
if (!n)
|
|
2331
2331
|
throw new Error("Invalid token");
|
|
2332
|
-
const r =
|
|
2332
|
+
const r = Oe.create({
|
|
2333
2333
|
baseURL: `${t}/${e}`,
|
|
2334
2334
|
headers: {
|
|
2335
2335
|
Authorization: `Bearer ${n}`
|
|
@@ -2339,7 +2339,7 @@ const Je = Tt("portal-app-store", {
|
|
|
2339
2339
|
(o) => o,
|
|
2340
2340
|
async (o) => {
|
|
2341
2341
|
var i;
|
|
2342
|
-
if (o instanceof
|
|
2342
|
+
if (o instanceof wt) {
|
|
2343
2343
|
const a = (i = o.response) == null ? void 0 : i.data, d = (a == null ? void 0 : a.message) || (a == null ? void 0 : a.error) || `${o.message}` || `${o}`;
|
|
2344
2344
|
return Promise.reject(d);
|
|
2345
2345
|
}
|
|
@@ -2347,8 +2347,8 @@ const Je = Tt("portal-app-store", {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
), r;
|
|
2349
2349
|
}, gt = (t = "", e = void 0) => {
|
|
2350
|
-
const { portalBackendUrl: n } =
|
|
2351
|
-
return
|
|
2350
|
+
const { portalBackendUrl: n } = wr(e);
|
|
2351
|
+
return br(n)(t);
|
|
2352
2352
|
}, qr = () => {
|
|
2353
2353
|
var e;
|
|
2354
2354
|
const t = j();
|
|
@@ -2363,12 +2363,12 @@ const Je = Tt("portal-app-store", {
|
|
|
2363
2363
|
return gt(r);
|
|
2364
2364
|
throw new Error("Invalid restaurant");
|
|
2365
2365
|
};
|
|
2366
|
-
|
|
2367
|
-
function
|
|
2366
|
+
K.F_COUNTRY.enum.SG, K.F_COUNTRY.enum.ID;
|
|
2367
|
+
function wr(t = void 0) {
|
|
2368
2368
|
const { namespace: e, currentCountry: n } = j(), r = t ?? n.value, s = e.value === "dev", o = (r == null ? void 0 : r.toLowerCase()) !== "my" ? `.${r == null ? void 0 : r.toLowerCase()}` : "", a = `https://portal-v2${`${s ? "-dev" : ""}${o}.feedmeapi.com`}`;
|
|
2369
2369
|
return {
|
|
2370
|
-
portalBackendUrl: { remy: "https://remy
|
|
2371
|
-
menuBackendUrl: { remy: "https://remy
|
|
2370
|
+
portalBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.mainBackend ?? a,
|
|
2371
|
+
menuBackendUrl: { remy: "https://remy.feedmeapi.com/v1", customerApp: "https://feedme.cc", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", templateBuilderUrl: "https://print-template-builder.feedme.cc/", gtm: { id: "GTM-WR8XHXLH", serverUrl: "https://server-side-tagging-zzez732dna-as.a.run.app", env: "production", serverMeasurementId: "G-2MP52PC24R", debug: !1 }, firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, r2: { endPoint: "https://c0e0719247f81dc2f3d30844a8e0235c.r2.cloudflarestorage.com", bucketName: "image-feedme-cc", accessKeyId: "7c4faa649a257ce02edcf99d924b1799", secretAccessKey: "2b7ed3d5b6e23fdceb355f89281530875fa9673b09653be560be9a7694422a97" } }.menuBackend ?? a
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
2374
|
function zr(t) {
|