@feedmepos/mf-report 5.4.20-beta.0 → 5.4.20
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-LaiIXgeZ.js → App-DcCBKV_X.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BaVjCBz9.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CIDrrVrf.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BGEw2oVZ.js → Default.vue_vue_type_script_setup_true_lang-LFlmBY0o.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-8dt4IpG_.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CxE6t7oL.js} +4 -4
- package/dist/{InsightView-B8QPOck5.js → InsightView-Cgio5T-2.js} +6 -6
- package/dist/{Integration-Rpft-wWc.js → Integration-DqhfFdDt.js} +3 -3
- package/dist/{Integrations-OOJ4jft8.js → Integrations-C0KEvLA9.js} +3 -3
- package/dist/{Layout-BwGPdsuV.js → Layout-8ARULQXB.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DtCmKms0.js → LocationSelect.vue_vue_type_script_setup_true_lang-CGsQmh3S.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CwPa5SJD.js → MenuTab.vue_vue_type_script_setup_true_lang-oIsq1i1c.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DAHyD1Qo.js → NavigationTab.vue_vue_type_script_setup_true_lang-CwO5eJne.js} +4 -4
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-8iT-uGdI.js → NoData.vue_vue_type_script_setup_true_lang-O7qHGZkw.js} +1 -1
- package/dist/{OverviewView-BlTpEMrM.js → OverviewView-H2bHENp8.js} +5 -5
- package/dist/{Report-BMu6QmHg.js → Report-DPgKNAL4.js} +4 -4
- package/dist/{ReportEditor-BhEAyOB-.js → ReportEditor-ClTrZx6L.js} +5 -5
- package/dist/{ReportView-DkVQgHQd.js → ReportView-qIFBmGXf.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-gtUCqf4j.js → SelectComponent.vue_vue_type_script_setup_true_lang-B5OLIl_Y.js} +1 -1
- package/dist/{Setting-1b-FRYRh.js → Setting-NPMH5-PG.js} +4 -4
- package/dist/{TileEditor-DvUTXGaA.js → TileEditor-CCdfSWZX.js} +8 -8
- package/dist/{TransitionFade-BHKSLNl9.js → TransitionFade-DH9LRxD7.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-BKQvLNRz.js → global-loader-D9UMph7l.js} +308 -308
- package/dist/{index-2OLtpO8C.js → index-CxVnRxOJ.js} +1 -1
- package/dist/{report-schema-D791R8wK.js → report-schema-BEEUlheS.js} +1 -1
- package/dist/{timeFormat-DWBAXBup.js → timeFormat-BRqkZ3bP.js} +1 -1
- package/dist/{v4-CjdGH_In.js → v4-tAe7F6Li.js} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var hi = Object.defineProperty;
|
|
|
2
2
|
var pi = (e, t, n) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ct = (e, t, n) => pi(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { defineStore as Vt, storeToRefs as Et } from "pinia";
|
|
5
|
-
import { ref as ye, computed as je, readonly as Qn, getCurrentInstance as cr, inject as
|
|
5
|
+
import { ref as ye, computed as je, readonly as Qn, getCurrentInstance as cr, inject as mi, shallowRef as vi, watch as wr, onMounted as Oi, onUnmounted as Ci, defineComponent as fr, h as vs, createVNode as Ii, Text as yi, Fragment as Os } from "vue";
|
|
6
6
|
import "@vue/devtools-api";
|
|
7
7
|
var It = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Ar(e) {
|
|
@@ -321,8 +321,8 @@ function fn(e, t, n) {
|
|
|
321
321
|
metaTokens: !0,
|
|
322
322
|
dots: !1,
|
|
323
323
|
indexes: !1
|
|
324
|
-
}, !1, function(
|
|
325
|
-
return !R.isUndefined(O[
|
|
324
|
+
}, !1, function(v, O) {
|
|
325
|
+
return !R.isUndefined(O[v]);
|
|
326
326
|
});
|
|
327
327
|
const r = n.metaTokens, s = n.visitor || E, i = n.dots, o = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && R.isSpecCompliantForm(t);
|
|
328
328
|
if (!R.isFunction(s))
|
|
@@ -335,40 +335,40 @@ function fn(e, t, n) {
|
|
|
335
335
|
throw new ee("Blob is not supported. Use a Buffer instead.");
|
|
336
336
|
return R.isArrayBuffer(T) || R.isTypedArray(T) ? u && typeof Blob == "function" ? new Blob([T]) : Buffer.from(T) : T;
|
|
337
337
|
}
|
|
338
|
-
function E(T,
|
|
338
|
+
function E(T, v, O) {
|
|
339
339
|
let h = T;
|
|
340
340
|
if (T && !O && typeof T == "object") {
|
|
341
|
-
if (R.endsWith(
|
|
342
|
-
|
|
343
|
-
else if (R.isArray(T) && fo(T) || (R.isFileList(T) || R.endsWith(
|
|
344
|
-
return
|
|
341
|
+
if (R.endsWith(v, "{}"))
|
|
342
|
+
v = r ? v : v.slice(0, -2), T = JSON.stringify(T);
|
|
343
|
+
else if (R.isArray(T) && fo(T) || (R.isFileList(T) || R.endsWith(v, "[]")) && (h = R.toArray(T)))
|
|
344
|
+
return v = Ps(v), h.forEach(function(y, B) {
|
|
345
345
|
!(R.isUndefined(y) || y === null) && t.append(
|
|
346
346
|
// eslint-disable-next-line no-nested-ternary
|
|
347
|
-
o === !0 ? Pr([
|
|
347
|
+
o === !0 ? Pr([v], B, i) : o === null ? v : v + "[]",
|
|
348
348
|
f(y)
|
|
349
349
|
);
|
|
350
350
|
}), !1;
|
|
351
351
|
}
|
|
352
|
-
return Xn(T) ? !0 : (t.append(Pr(O,
|
|
352
|
+
return Xn(T) ? !0 : (t.append(Pr(O, v, i), f(T)), !1);
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const m = [], S = Object.assign(Ao, {
|
|
355
355
|
defaultVisitor: E,
|
|
356
356
|
convertValue: f,
|
|
357
357
|
isVisitable: Xn
|
|
358
358
|
});
|
|
359
|
-
function F(T,
|
|
359
|
+
function F(T, v) {
|
|
360
360
|
if (!R.isUndefined(T)) {
|
|
361
|
-
if (
|
|
362
|
-
throw Error("Circular reference detected in " +
|
|
363
|
-
|
|
361
|
+
if (m.indexOf(T) !== -1)
|
|
362
|
+
throw Error("Circular reference detected in " + v.join("."));
|
|
363
|
+
m.push(T), R.forEach(T, function(h, I) {
|
|
364
364
|
(!(R.isUndefined(h) || h === null) && s.call(
|
|
365
365
|
t,
|
|
366
366
|
h,
|
|
367
367
|
R.isString(I) ? I.trim() : I,
|
|
368
|
-
|
|
368
|
+
v,
|
|
369
369
|
S
|
|
370
|
-
)) === !0 && F(h,
|
|
371
|
-
}),
|
|
370
|
+
)) === !0 && F(h, v ? v.concat(I) : [I]);
|
|
371
|
+
}), m.pop();
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
if (!R.isObject(e))
|
|
@@ -480,7 +480,7 @@ const Fs = {
|
|
|
480
480
|
silentJSONParsing: !0,
|
|
481
481
|
forcedJSONParsing: !0,
|
|
482
482
|
clarifyTimeoutError: !1
|
|
483
|
-
}, Eo = typeof URLSearchParams < "u" ? URLSearchParams : gr, ho = typeof FormData < "u" ? FormData : null, po = typeof Blob < "u" ? Blob : null,
|
|
483
|
+
}, Eo = typeof URLSearchParams < "u" ? URLSearchParams : gr, ho = typeof FormData < "u" ? FormData : null, po = typeof Blob < "u" ? Blob : null, mo = {
|
|
484
484
|
isBrowser: !0,
|
|
485
485
|
classes: {
|
|
486
486
|
URLSearchParams: Eo,
|
|
@@ -488,17 +488,17 @@ const Fs = {
|
|
|
488
488
|
Blob: po
|
|
489
489
|
},
|
|
490
490
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
491
|
-
}, Er = typeof window < "u" && typeof document < "u", Yn = typeof navigator == "object" && navigator || void 0,
|
|
491
|
+
}, Er = typeof window < "u" && typeof document < "u", Yn = typeof navigator == "object" && navigator || void 0, vo = Er && (!Yn || ["ReactNative", "NativeScript", "NS"].indexOf(Yn.product) < 0), Oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
492
492
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Co = Er && window.location.href || "http://localhost", Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
493
493
|
__proto__: null,
|
|
494
494
|
hasBrowserEnv: Er,
|
|
495
|
-
hasStandardBrowserEnv:
|
|
495
|
+
hasStandardBrowserEnv: vo,
|
|
496
496
|
hasStandardBrowserWebWorkerEnv: Oo,
|
|
497
497
|
navigator: Yn,
|
|
498
498
|
origin: Co
|
|
499
499
|
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
500
500
|
...Io,
|
|
501
|
-
...
|
|
501
|
+
...mo
|
|
502
502
|
};
|
|
503
503
|
function yo(e, t) {
|
|
504
504
|
return fn(e, new Pe.classes.URLSearchParams(), Object.assign({
|
|
@@ -687,8 +687,8 @@ let Le = class {
|
|
|
687
687
|
const E = Lt(u);
|
|
688
688
|
if (!E)
|
|
689
689
|
throw new Error("header name must be a non-empty string");
|
|
690
|
-
const
|
|
691
|
-
(!
|
|
690
|
+
const m = R.findKey(s, E);
|
|
691
|
+
(!m || s[m] === void 0 || f === !0 || f === void 0 && s[m] !== !1) && (s[m || u] = $t(a));
|
|
692
692
|
}
|
|
693
693
|
const o = (a, u) => R.forEach(a, (f, E) => i(f, E, u));
|
|
694
694
|
if (R.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -843,9 +843,9 @@ function Fo(e, t) {
|
|
|
843
843
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
844
844
|
const f = Date.now(), E = r[i];
|
|
845
845
|
o || (o = f), n[s] = u, r[s] = f;
|
|
846
|
-
let
|
|
847
|
-
for (;
|
|
848
|
-
S += n[
|
|
846
|
+
let m = i, S = 0;
|
|
847
|
+
for (; m !== s; )
|
|
848
|
+
S += n[m++], m = m % e;
|
|
849
849
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
|
|
850
850
|
return;
|
|
851
851
|
const F = E && f - E;
|
|
@@ -858,10 +858,10 @@ function Mo(e, t) {
|
|
|
858
858
|
n = E, s = null, i && (clearTimeout(i), i = null), e.apply(null, f);
|
|
859
859
|
};
|
|
860
860
|
return [(...f) => {
|
|
861
|
-
const E = Date.now(),
|
|
862
|
-
|
|
861
|
+
const E = Date.now(), m = E - n;
|
|
862
|
+
m >= r ? o(f, E) : (s = f, i || (i = setTimeout(() => {
|
|
863
863
|
i = null, o(s);
|
|
864
|
-
}, r -
|
|
864
|
+
}, r - m)));
|
|
865
865
|
}, () => s && o(s)];
|
|
866
866
|
}
|
|
867
867
|
const nn = (e, t, n = 3) => {
|
|
@@ -870,7 +870,7 @@ const nn = (e, t, n = 3) => {
|
|
|
870
870
|
return Mo((i) => {
|
|
871
871
|
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, u = o - r, f = s(u), E = o <= a;
|
|
872
872
|
r = o;
|
|
873
|
-
const
|
|
873
|
+
const m = {
|
|
874
874
|
loaded: o,
|
|
875
875
|
total: a,
|
|
876
876
|
progress: a ? o / a : void 0,
|
|
@@ -881,7 +881,7 @@ const nn = (e, t, n = 3) => {
|
|
|
881
881
|
lengthComputable: a != null,
|
|
882
882
|
[t ? "download" : "upload"]: !0
|
|
883
883
|
};
|
|
884
|
-
e(
|
|
884
|
+
e(m);
|
|
885
885
|
}, n);
|
|
886
886
|
}, Mr = (e, t) => {
|
|
887
887
|
const n = e != null;
|
|
@@ -933,14 +933,14 @@ const Qr = (e) => e instanceof Le ? { ...e } : e;
|
|
|
933
933
|
function St(e, t) {
|
|
934
934
|
t = t || {};
|
|
935
935
|
const n = {};
|
|
936
|
-
function r(f, E,
|
|
936
|
+
function r(f, E, m, S) {
|
|
937
937
|
return R.isPlainObject(f) && R.isPlainObject(E) ? R.merge.call({ caseless: S }, f, E) : R.isPlainObject(E) ? R.merge({}, E) : R.isArray(E) ? E.slice() : E;
|
|
938
938
|
}
|
|
939
|
-
function s(f, E,
|
|
939
|
+
function s(f, E, m, S) {
|
|
940
940
|
if (R.isUndefined(E)) {
|
|
941
941
|
if (!R.isUndefined(f))
|
|
942
|
-
return r(void 0, f,
|
|
943
|
-
} else return r(f, E,
|
|
942
|
+
return r(void 0, f, m, S);
|
|
943
|
+
} else return r(f, E, m, S);
|
|
944
944
|
}
|
|
945
945
|
function i(f, E) {
|
|
946
946
|
if (!R.isUndefined(E))
|
|
@@ -952,10 +952,10 @@ function St(e, t) {
|
|
|
952
952
|
return r(void 0, f);
|
|
953
953
|
} else return r(void 0, E);
|
|
954
954
|
}
|
|
955
|
-
function a(f, E,
|
|
956
|
-
if (
|
|
955
|
+
function a(f, E, m) {
|
|
956
|
+
if (m in t)
|
|
957
957
|
return r(f, E);
|
|
958
|
-
if (
|
|
958
|
+
if (m in e)
|
|
959
959
|
return r(void 0, f);
|
|
960
960
|
}
|
|
961
961
|
const u = {
|
|
@@ -987,11 +987,11 @@ function St(e, t) {
|
|
|
987
987
|
socketPath: o,
|
|
988
988
|
responseEncoding: o,
|
|
989
989
|
validateStatus: a,
|
|
990
|
-
headers: (f, E,
|
|
990
|
+
headers: (f, E, m) => s(Qr(f), Qr(E), m, !0)
|
|
991
991
|
};
|
|
992
992
|
return R.forEach(Object.keys(Object.assign({}, e, t)), function(E) {
|
|
993
|
-
const
|
|
994
|
-
R.isUndefined(S) &&
|
|
993
|
+
const m = u[E] || s, S = m(e[E], t[E], E);
|
|
994
|
+
R.isUndefined(S) && m !== a || (n[E] = S);
|
|
995
995
|
}), n;
|
|
996
996
|
}
|
|
997
997
|
const ks = (e) => {
|
|
@@ -1006,7 +1006,7 @@ const ks = (e) => {
|
|
|
1006
1006
|
if (Pe.hasStandardBrowserEnv || Pe.hasStandardBrowserWebWorkerEnv)
|
|
1007
1007
|
o.setContentType(void 0);
|
|
1008
1008
|
else if ((u = o.getContentType()) !== !1) {
|
|
1009
|
-
const [f, ...E] = u ? u.split(";").map((
|
|
1009
|
+
const [f, ...E] = u ? u.split(";").map((m) => m.trim()).filter(Boolean) : [];
|
|
1010
1010
|
o.setContentType([f || "multipart/form-data", ...E].join("; "));
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
@@ -1020,8 +1020,8 @@ const ks = (e) => {
|
|
|
1020
1020
|
const s = ks(e);
|
|
1021
1021
|
let i = s.data;
|
|
1022
1022
|
const o = Le.from(s.headers).normalize();
|
|
1023
|
-
let { responseType: a, onUploadProgress: u, onDownloadProgress: f } = s, E,
|
|
1024
|
-
function
|
|
1023
|
+
let { responseType: a, onUploadProgress: u, onDownloadProgress: f } = s, E, m, S, F, T;
|
|
1024
|
+
function v() {
|
|
1025
1025
|
F && F(), T && T(), s.cancelToken && s.cancelToken.unsubscribe(E), s.signal && s.signal.removeEventListener("abort", E);
|
|
1026
1026
|
}
|
|
1027
1027
|
let O = new XMLHttpRequest();
|
|
@@ -1040,9 +1040,9 @@ const ks = (e) => {
|
|
|
1040
1040
|
request: O
|
|
1041
1041
|
};
|
|
1042
1042
|
Qs(function(b) {
|
|
1043
|
-
n(b),
|
|
1043
|
+
n(b), v();
|
|
1044
1044
|
}, function(b) {
|
|
1045
|
-
r(b),
|
|
1045
|
+
r(b), v();
|
|
1046
1046
|
}, P), O = null;
|
|
1047
1047
|
}
|
|
1048
1048
|
"onloadend" in O ? O.onloadend = h : O.onreadystatechange = function() {
|
|
@@ -1062,7 +1062,7 @@ const ks = (e) => {
|
|
|
1062
1062
|
)), O = null;
|
|
1063
1063
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in O && R.forEach(o.toJSON(), function(B, P) {
|
|
1064
1064
|
O.setRequestHeader(P, B);
|
|
1065
|
-
}), R.isUndefined(s.withCredentials) || (O.withCredentials = !!s.withCredentials), a && a !== "json" && (O.responseType = s.responseType), f && ([S, T] = nn(f, !0), O.addEventListener("progress", S)), u && O.upload && ([
|
|
1065
|
+
}), R.isUndefined(s.withCredentials) || (O.withCredentials = !!s.withCredentials), a && a !== "json" && (O.responseType = s.responseType), f && ([S, T] = nn(f, !0), O.addEventListener("progress", S)), u && O.upload && ([m, F] = nn(u), O.upload.addEventListener("progress", m), O.upload.addEventListener("loadend", F)), (s.cancelToken || s.signal) && (E = (y) => {
|
|
1066
1066
|
O && (r(!y || y.type ? new Ft(null, e, O) : y), O.abort(), O = null);
|
|
1067
1067
|
}, s.cancelToken && s.cancelToken.subscribe(E), s.signal && (s.signal.aborted ? E() : s.signal.addEventListener("abort", E)));
|
|
1068
1068
|
const I = No(s.url);
|
|
@@ -1136,9 +1136,9 @@ const ks = (e) => {
|
|
|
1136
1136
|
a(), u.close();
|
|
1137
1137
|
return;
|
|
1138
1138
|
}
|
|
1139
|
-
let
|
|
1139
|
+
let m = E.byteLength;
|
|
1140
1140
|
if (n) {
|
|
1141
|
-
let S = i +=
|
|
1141
|
+
let S = i += m;
|
|
1142
1142
|
n(S);
|
|
1143
1143
|
}
|
|
1144
1144
|
u.enqueue(new Uint8Array(E));
|
|
@@ -1207,12 +1207,12 @@ const Yo = async (e) => {
|
|
|
1207
1207
|
onUploadProgress: u,
|
|
1208
1208
|
responseType: f,
|
|
1209
1209
|
headers: E,
|
|
1210
|
-
withCredentials:
|
|
1210
|
+
withCredentials: m = "same-origin",
|
|
1211
1211
|
fetchOptions: S
|
|
1212
1212
|
} = ks(e);
|
|
1213
1213
|
f = f ? (f + "").toLowerCase() : "text";
|
|
1214
1214
|
let F = jo([s, i && i.toAbortSignal()], o), T;
|
|
1215
|
-
const
|
|
1215
|
+
const v = F && F.unsubscribe && (() => {
|
|
1216
1216
|
F.unsubscribe();
|
|
1217
1217
|
});
|
|
1218
1218
|
let O;
|
|
@@ -1231,7 +1231,7 @@ const Yo = async (e) => {
|
|
|
1231
1231
|
r = xr(P.body, kr, b, Y);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
R.isString(
|
|
1234
|
+
R.isString(m) || (m = m ? "include" : "omit");
|
|
1235
1235
|
const h = "credentials" in Request.prototype;
|
|
1236
1236
|
T = new Request(t, {
|
|
1237
1237
|
...S,
|
|
@@ -1240,11 +1240,11 @@ const Yo = async (e) => {
|
|
|
1240
1240
|
headers: E.normalize().toJSON(),
|
|
1241
1241
|
body: r,
|
|
1242
1242
|
duplex: "half",
|
|
1243
|
-
credentials: h ?
|
|
1243
|
+
credentials: h ? m : void 0
|
|
1244
1244
|
});
|
|
1245
1245
|
let I = await fetch(T);
|
|
1246
1246
|
const y = Jn && (f === "stream" || f === "response");
|
|
1247
|
-
if (Jn && (a || y &&
|
|
1247
|
+
if (Jn && (a || y && v)) {
|
|
1248
1248
|
const P = {};
|
|
1249
1249
|
["status", "statusText", "headers"].forEach((Z) => {
|
|
1250
1250
|
P[Z] = I[Z];
|
|
@@ -1255,14 +1255,14 @@ const Yo = async (e) => {
|
|
|
1255
1255
|
) || [];
|
|
1256
1256
|
I = new Response(
|
|
1257
1257
|
xr(I.body, kr, b, () => {
|
|
1258
|
-
Y && Y(),
|
|
1258
|
+
Y && Y(), v && v();
|
|
1259
1259
|
}),
|
|
1260
1260
|
P
|
|
1261
1261
|
);
|
|
1262
1262
|
}
|
|
1263
1263
|
f = f || "text";
|
|
1264
1264
|
let B = await rn[R.findKey(rn, f) || "text"](I, e);
|
|
1265
|
-
return !y &&
|
|
1265
|
+
return !y && v && v(), await new Promise((P, L) => {
|
|
1266
1266
|
Qs(P, L, {
|
|
1267
1267
|
data: B,
|
|
1268
1268
|
headers: Le.from(I.headers),
|
|
@@ -1273,7 +1273,7 @@ const Yo = async (e) => {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
});
|
|
1275
1275
|
} catch (h) {
|
|
1276
|
-
throw
|
|
1276
|
+
throw v && v(), h && h.name === "TypeError" && /fetch/i.test(h.message) ? Object.assign(
|
|
1277
1277
|
new ee("Network Error", ee.ERR_NETWORK, e, T),
|
|
1278
1278
|
{
|
|
1279
1279
|
cause: h.cause || h
|
|
@@ -1456,28 +1456,28 @@ let Rt = class {
|
|
|
1456
1456
|
), n.headers = Le.concat(o, i);
|
|
1457
1457
|
const a = [];
|
|
1458
1458
|
let u = !0;
|
|
1459
|
-
this.interceptors.request.forEach(function(
|
|
1460
|
-
typeof
|
|
1459
|
+
this.interceptors.request.forEach(function(v) {
|
|
1460
|
+
typeof v.runWhen == "function" && v.runWhen(n) === !1 || (u = u && v.synchronous, a.unshift(v.fulfilled, v.rejected));
|
|
1461
1461
|
});
|
|
1462
1462
|
const f = [];
|
|
1463
|
-
this.interceptors.response.forEach(function(
|
|
1464
|
-
f.push(
|
|
1463
|
+
this.interceptors.response.forEach(function(v) {
|
|
1464
|
+
f.push(v.fulfilled, v.rejected);
|
|
1465
1465
|
});
|
|
1466
|
-
let E,
|
|
1466
|
+
let E, m = 0, S;
|
|
1467
1467
|
if (!u) {
|
|
1468
1468
|
const T = [Hr.bind(this), void 0];
|
|
1469
|
-
for (T.unshift.apply(T, a), T.push.apply(T, f), S = T.length, E = Promise.resolve(n);
|
|
1470
|
-
E = E.then(T[
|
|
1469
|
+
for (T.unshift.apply(T, a), T.push.apply(T, f), S = T.length, E = Promise.resolve(n); m < S; )
|
|
1470
|
+
E = E.then(T[m++], T[m++]);
|
|
1471
1471
|
return E;
|
|
1472
1472
|
}
|
|
1473
1473
|
S = a.length;
|
|
1474
1474
|
let F = n;
|
|
1475
|
-
for (
|
|
1476
|
-
const T = a[
|
|
1475
|
+
for (m = 0; m < S; ) {
|
|
1476
|
+
const T = a[m++], v = a[m++];
|
|
1477
1477
|
try {
|
|
1478
1478
|
F = T(F);
|
|
1479
1479
|
} catch (O) {
|
|
1480
|
-
|
|
1480
|
+
v.call(this, O);
|
|
1481
1481
|
break;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
@@ -1486,8 +1486,8 @@ let Rt = class {
|
|
|
1486
1486
|
} catch (T) {
|
|
1487
1487
|
return Promise.reject(T);
|
|
1488
1488
|
}
|
|
1489
|
-
for (
|
|
1490
|
-
E = E.then(f[
|
|
1489
|
+
for (m = 0, S = f.length; m < S; )
|
|
1490
|
+
E = E.then(f[m++], f[m++]);
|
|
1491
1491
|
return E;
|
|
1492
1492
|
}
|
|
1493
1493
|
getUri(t) {
|
|
@@ -1710,10 +1710,10 @@ const {
|
|
|
1710
1710
|
AxiosHeaders: Ec,
|
|
1711
1711
|
HttpStatusCode: hc,
|
|
1712
1712
|
formToJSON: pc,
|
|
1713
|
-
getAdapter:
|
|
1714
|
-
mergeConfig:
|
|
1713
|
+
getAdapter: mc,
|
|
1714
|
+
mergeConfig: vc
|
|
1715
1715
|
} = Oe;
|
|
1716
|
-
var Qt = { myQueryEngineBackendUrl: "https://query-engine
|
|
1716
|
+
var Qt = { myQueryEngineBackendUrl: "https://query-engine.feedmeapi.com", idQueryEngineBackendUrl: "https://query-engine.id.feedmeapi.com", sgQueryEngineBackendUrl: "https://query-engine.sg.feedmeapi.com" }, he = /* @__PURE__ */ ((e) => (e.Get = "get", e.Post = "post", e.Put = "put", e.Delete = "delete", e))(he || {});
|
|
1717
1717
|
class na extends Error {
|
|
1718
1718
|
constructor(n, r) {
|
|
1719
1719
|
super(n);
|
|
@@ -1782,13 +1782,13 @@ class ra {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1785
|
+
const me = new ra();
|
|
1786
1786
|
var Vs = { exports: {} };
|
|
1787
1787
|
(function(e, t) {
|
|
1788
1788
|
(function(n, r) {
|
|
1789
1789
|
e.exports = r();
|
|
1790
1790
|
})(It, function() {
|
|
1791
|
-
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", u = "hour", f = "day", E = "week",
|
|
1791
|
+
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", u = "hour", f = "day", E = "week", m = "month", S = "quarter", F = "year", T = "date", v = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
|
1792
1792
|
var k = ["th", "st", "nd", "rd"], Q = V % 100;
|
|
1793
1793
|
return "[" + V + (k[(Q - 20) % 10] || k[Q] || k[0]) + "]";
|
|
1794
1794
|
} }, y = function(V, k, Q) {
|
|
@@ -1799,12 +1799,12 @@ var Vs = { exports: {} };
|
|
|
1799
1799
|
return (k <= 0 ? "+" : "-") + y(G, 2, "0") + ":" + y(x, 2, "0");
|
|
1800
1800
|
}, m: function V(k, Q) {
|
|
1801
1801
|
if (k.date() < Q.date()) return -V(Q, k);
|
|
1802
|
-
var G = 12 * (Q.year() - k.year()) + (Q.month() - k.month()), x = k.clone().add(G,
|
|
1802
|
+
var G = 12 * (Q.year() - k.year()) + (Q.month() - k.month()), x = k.clone().add(G, m), C = Q - x < 0, c = k.clone().add(G + (C ? -1 : 1), m);
|
|
1803
1803
|
return +(-(G + (Q - x) / (C ? x - c : c - x)) || 0);
|
|
1804
1804
|
}, a: function(V) {
|
|
1805
1805
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
|
1806
1806
|
}, p: function(V) {
|
|
1807
|
-
return { M:
|
|
1807
|
+
return { M: m, y: F, w: E, d: f, D: T, h: u, m: a, s: o, ms: i, Q: S }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
|
1808
1808
|
}, u: function(V) {
|
|
1809
1809
|
return V === void 0;
|
|
1810
1810
|
} }, P = "en", L = {};
|
|
@@ -1858,7 +1858,7 @@ var Vs = { exports: {} };
|
|
|
1858
1858
|
}, k.$utils = function() {
|
|
1859
1859
|
return $;
|
|
1860
1860
|
}, k.isValid = function() {
|
|
1861
|
-
return this.$d.toString() !==
|
|
1861
|
+
return this.$d.toString() !== v;
|
|
1862
1862
|
}, k.isSame = function(Q, G) {
|
|
1863
1863
|
var x = _(Q);
|
|
1864
1864
|
return this.startOf(G) <= x && x <= this.endOf(G);
|
|
@@ -1882,7 +1882,7 @@ var Vs = { exports: {} };
|
|
|
1882
1882
|
switch (c) {
|
|
1883
1883
|
case F:
|
|
1884
1884
|
return C ? l(1, 0) : l(31, 11);
|
|
1885
|
-
case
|
|
1885
|
+
case m:
|
|
1886
1886
|
return C ? l(1, w) : l(0, w + 1);
|
|
1887
1887
|
case E:
|
|
1888
1888
|
var z = this.$locale().weekStart || 0, te = (g < z ? g + 7 : g) - z;
|
|
@@ -1902,8 +1902,8 @@ var Vs = { exports: {} };
|
|
|
1902
1902
|
}, k.endOf = function(Q) {
|
|
1903
1903
|
return this.startOf(Q, !1);
|
|
1904
1904
|
}, k.$set = function(Q, G) {
|
|
1905
|
-
var x, C = $.p(Q), c = "set" + (this.$u ? "UTC" : ""), l = (x = {}, x[f] = c + "Date", x[T] = c + "Date", x[
|
|
1906
|
-
if (C ===
|
|
1905
|
+
var x, C = $.p(Q), c = "set" + (this.$u ? "UTC" : ""), l = (x = {}, x[f] = c + "Date", x[T] = c + "Date", x[m] = c + "Month", x[F] = c + "FullYear", x[u] = c + "Hours", x[a] = c + "Minutes", x[o] = c + "Seconds", x[i] = c + "Milliseconds", x)[C], p = C === f ? this.$D + (G - this.$W) : G;
|
|
1906
|
+
if (C === m || C === F) {
|
|
1907
1907
|
var g = this.clone().set(T, 1);
|
|
1908
1908
|
g.$d[l](p), g.init(), this.$d = g.set(T, Math.min(this.$D, g.daysInMonth())).$d;
|
|
1909
1909
|
} else l && this.$d[l](p);
|
|
@@ -1919,7 +1919,7 @@ var Vs = { exports: {} };
|
|
|
1919
1919
|
var M = _(C);
|
|
1920
1920
|
return $.w(M.date(M.date() + Math.round(w * Q)), C);
|
|
1921
1921
|
};
|
|
1922
|
-
if (c ===
|
|
1922
|
+
if (c === m) return this.set(m, this.$M + Q);
|
|
1923
1923
|
if (c === F) return this.set(F, this.$y + Q);
|
|
1924
1924
|
if (c === f) return l(1);
|
|
1925
1925
|
if (c === E) return l(7);
|
|
@@ -1929,7 +1929,7 @@ var Vs = { exports: {} };
|
|
|
1929
1929
|
return this.add(-1 * Q, G);
|
|
1930
1930
|
}, k.format = function(Q) {
|
|
1931
1931
|
var G = this, x = this.$locale();
|
|
1932
|
-
if (!this.isValid()) return x.invalidDate ||
|
|
1932
|
+
if (!this.isValid()) return x.invalidDate || v;
|
|
1933
1933
|
var C = Q || "YYYY-MM-DDTHH:mm:ssZ", c = $.z(this), l = this.$H, p = this.$m, g = this.$M, w = x.weekdays, M = x.months, K = x.meridiem, z = function(W, ue, Ce, Ee) {
|
|
1934
1934
|
return W && (W[ue] || W(G, C)) || Ce[ue].slice(0, Ee);
|
|
1935
1935
|
}, te = function(W) {
|
|
@@ -2003,7 +2003,7 @@ var Vs = { exports: {} };
|
|
|
2003
2003
|
case F:
|
|
2004
2004
|
C = M() / 12;
|
|
2005
2005
|
break;
|
|
2006
|
-
case
|
|
2006
|
+
case m:
|
|
2007
2007
|
C = M();
|
|
2008
2008
|
break;
|
|
2009
2009
|
case S:
|
|
@@ -2029,7 +2029,7 @@ var Vs = { exports: {} };
|
|
|
2029
2029
|
}
|
|
2030
2030
|
return x ? C : $.a(C);
|
|
2031
2031
|
}, k.daysInMonth = function() {
|
|
2032
|
-
return this.endOf(
|
|
2032
|
+
return this.endOf(m).$D;
|
|
2033
2033
|
}, k.$locale = function() {
|
|
2034
2034
|
return L[this.$L];
|
|
2035
2035
|
}, k.locale = function(Q, G) {
|
|
@@ -2048,7 +2048,7 @@ var Vs = { exports: {} };
|
|
|
2048
2048
|
return this.$d.toUTCString();
|
|
2049
2049
|
}, V;
|
|
2050
2050
|
}(), ke = le.prototype;
|
|
2051
|
-
return _.prototype = ke, [["$ms", i], ["$s", o], ["$m", a], ["$H", u], ["$W", f], ["$M",
|
|
2051
|
+
return _.prototype = ke, [["$ms", i], ["$s", o], ["$m", a], ["$H", u], ["$W", f], ["$M", m], ["$y", F], ["$D", T]].forEach(function(V) {
|
|
2052
2052
|
ke[V[1]] = function(k) {
|
|
2053
2053
|
return this.$g(k, V[0], V[1]);
|
|
2054
2054
|
};
|
|
@@ -2073,26 +2073,26 @@ const re = /* @__PURE__ */ Ar(sa), ia = (e) => ({
|
|
|
2073
2073
|
const { businessId: e } = Et(fe()), t = {
|
|
2074
2074
|
fetchType: he.Get,
|
|
2075
2075
|
url: `/${e.value}/restaurants`
|
|
2076
|
-
}, n = (await
|
|
2076
|
+
}, n = (await me.fetch(t)).map((r) => ia(r));
|
|
2077
2077
|
return n.sort((r, s) => r.name.localeCompare(s.name)), n;
|
|
2078
2078
|
}, la = async () => {
|
|
2079
2079
|
const { businessId: e } = Et(fe()), t = {
|
|
2080
2080
|
fetchType: he.Get,
|
|
2081
2081
|
url: `/${e.value}/warehouses`
|
|
2082
|
-
}, n = (await
|
|
2082
|
+
}, n = (await me.fetch(t)).map((r) => oa(r));
|
|
2083
2083
|
return n.sort((r, s) => r.name.localeCompare(s.name)), n;
|
|
2084
2084
|
}, ua = () => {
|
|
2085
2085
|
const { businessId: e } = Et(fe()), t = {
|
|
2086
2086
|
fetchType: he.Get,
|
|
2087
2087
|
url: `/${e.value}`
|
|
2088
2088
|
};
|
|
2089
|
-
return
|
|
2089
|
+
return me.fetch(t);
|
|
2090
2090
|
}, ca = () => {
|
|
2091
2091
|
const { businessId: e } = Et(fe()), t = {
|
|
2092
2092
|
fetchType: he.Get,
|
|
2093
2093
|
url: `/report-settings/${e.value}/date-settings`
|
|
2094
2094
|
};
|
|
2095
|
-
return
|
|
2095
|
+
return me.fetch(t);
|
|
2096
2096
|
}, Gr = (e) => {
|
|
2097
2097
|
const { businessId: t } = Et(fe()), n = {
|
|
2098
2098
|
fetchType: he.Put,
|
|
@@ -2101,7 +2101,7 @@ const re = /* @__PURE__ */ Ar(sa), ia = (e) => ({
|
|
|
2101
2101
|
...e
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
|
-
return
|
|
2104
|
+
return me.fetch(n);
|
|
2105
2105
|
};
|
|
2106
2106
|
var Xs = { exports: {} };
|
|
2107
2107
|
(function(e, t) {
|
|
@@ -2111,52 +2111,52 @@ var Xs = { exports: {} };
|
|
|
2111
2111
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, s = /([+-]|\d\d)/g;
|
|
2112
2112
|
return function(i, o, a) {
|
|
2113
2113
|
var u = o.prototype;
|
|
2114
|
-
a.utc = function(
|
|
2115
|
-
var O = { date:
|
|
2114
|
+
a.utc = function(v) {
|
|
2115
|
+
var O = { date: v, utc: !0, args: arguments };
|
|
2116
2116
|
return new o(O);
|
|
2117
|
-
}, u.utc = function(
|
|
2117
|
+
}, u.utc = function(v) {
|
|
2118
2118
|
var O = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
2119
|
-
return
|
|
2119
|
+
return v ? O.add(this.utcOffset(), n) : O;
|
|
2120
2120
|
}, u.local = function() {
|
|
2121
2121
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
2122
2122
|
};
|
|
2123
2123
|
var f = u.parse;
|
|
2124
|
-
u.parse = function(
|
|
2125
|
-
|
|
2124
|
+
u.parse = function(v) {
|
|
2125
|
+
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), f.call(this, v);
|
|
2126
2126
|
};
|
|
2127
2127
|
var E = u.init;
|
|
2128
2128
|
u.init = function() {
|
|
2129
2129
|
if (this.$u) {
|
|
2130
|
-
var
|
|
2131
|
-
this.$y =
|
|
2130
|
+
var v = this.$d;
|
|
2131
|
+
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
2132
2132
|
} else E.call(this);
|
|
2133
2133
|
};
|
|
2134
|
-
var
|
|
2135
|
-
u.utcOffset = function(
|
|
2134
|
+
var m = u.utcOffset;
|
|
2135
|
+
u.utcOffset = function(v, O) {
|
|
2136
2136
|
var h = this.$utils().u;
|
|
2137
|
-
if (h(
|
|
2138
|
-
if (typeof
|
|
2137
|
+
if (h(v)) return this.$u ? 0 : h(this.$offset) ? m.call(this) : this.$offset;
|
|
2138
|
+
if (typeof v == "string" && (v = function(P) {
|
|
2139
2139
|
P === void 0 && (P = "");
|
|
2140
2140
|
var L = P.match(r);
|
|
2141
2141
|
if (!L) return null;
|
|
2142
2142
|
var b = ("" + L[0]).match(s) || ["-", 0, 0], Y = b[0], Z = 60 * +b[1] + +b[2];
|
|
2143
2143
|
return Z === 0 ? 0 : Y === "+" ? Z : -Z;
|
|
2144
|
-
}(
|
|
2145
|
-
var I = Math.abs(
|
|
2146
|
-
if (O) return y.$offset = I, y.$u =
|
|
2147
|
-
if (
|
|
2144
|
+
}(v), v === null)) return this;
|
|
2145
|
+
var I = Math.abs(v) <= 16 ? 60 * v : v, y = this;
|
|
2146
|
+
if (O) return y.$offset = I, y.$u = v === 0, y;
|
|
2147
|
+
if (v !== 0) {
|
|
2148
2148
|
var B = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2149
2149
|
(y = this.local().add(I + B, n)).$offset = I, y.$x.$localOffset = B;
|
|
2150
2150
|
} else y = this.utc();
|
|
2151
2151
|
return y;
|
|
2152
2152
|
};
|
|
2153
2153
|
var S = u.format;
|
|
2154
|
-
u.format = function(
|
|
2155
|
-
var O =
|
|
2154
|
+
u.format = function(v) {
|
|
2155
|
+
var O = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
2156
2156
|
return S.call(this, O);
|
|
2157
2157
|
}, u.valueOf = function() {
|
|
2158
|
-
var
|
|
2159
|
-
return this.$d.valueOf() - 6e4 *
|
|
2158
|
+
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
2159
|
+
return this.$d.valueOf() - 6e4 * v;
|
|
2160
2160
|
}, u.isUTC = function() {
|
|
2161
2161
|
return !!this.$u;
|
|
2162
2162
|
}, u.toISOString = function() {
|
|
@@ -2165,13 +2165,13 @@ var Xs = { exports: {} };
|
|
|
2165
2165
|
return this.toDate().toUTCString();
|
|
2166
2166
|
};
|
|
2167
2167
|
var F = u.toDate;
|
|
2168
|
-
u.toDate = function(
|
|
2169
|
-
return
|
|
2168
|
+
u.toDate = function(v) {
|
|
2169
|
+
return v === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : F.call(this);
|
|
2170
2170
|
};
|
|
2171
2171
|
var T = u.diff;
|
|
2172
|
-
u.diff = function(
|
|
2173
|
-
if (
|
|
2174
|
-
var I = this.local(), y = a(
|
|
2172
|
+
u.diff = function(v, O, h) {
|
|
2173
|
+
if (v && this.$u === v.$u) return T.call(this, v, O, h);
|
|
2174
|
+
var I = this.local(), y = a(v).local();
|
|
2175
2175
|
return T.call(I, y, O, h);
|
|
2176
2176
|
};
|
|
2177
2177
|
};
|
|
@@ -2252,7 +2252,7 @@ const pe = "YYYY-MM-DD", ha = [
|
|
|
2252
2252
|
], gn = Vt(ga, () => {
|
|
2253
2253
|
async function e() {
|
|
2254
2254
|
try {
|
|
2255
|
-
|
|
2255
|
+
m.value = await aa(), S.value = await la();
|
|
2256
2256
|
const O = await ua();
|
|
2257
2257
|
F.value = O[0], i.value = [
|
|
2258
2258
|
...o.value.map((h) => h.id)
|
|
@@ -2332,7 +2332,7 @@ const pe = "YYYY-MM-DD", ha = [
|
|
|
2332
2332
|
defaultCompareType: "PRECEDING_PERIOD",
|
|
2333
2333
|
defaultDateRange: rt.TODAY,
|
|
2334
2334
|
timeOptions: []
|
|
2335
|
-
}), i = ye([]), o = je(() => [...
|
|
2335
|
+
}), i = ye([]), o = je(() => [...m.value, ...S.value]), a = ye({
|
|
2336
2336
|
startDate: re().startOf("day").utc().toISOString(),
|
|
2337
2337
|
endDate: re().startOf("day").utc().toISOString()
|
|
2338
2338
|
}), u = ye({
|
|
@@ -2340,18 +2340,18 @@ const pe = "YYYY-MM-DD", ha = [
|
|
|
2340
2340
|
endDate: re().startOf("day").subtract(1, "day").utc().toISOString()
|
|
2341
2341
|
}), f = ye({ start: { hour: 0, minute: 0 }, end: { hour: 23, minute: 59 } }), E = ye(
|
|
2342
2342
|
s.value.timeOptions.findIndex((O) => O.isDefault) + 1
|
|
2343
|
-
),
|
|
2344
|
-
() =>
|
|
2345
|
-
),
|
|
2343
|
+
), m = ye([]), S = ye([]), F = ye(null), T = je(
|
|
2344
|
+
() => m.value.filter((O) => i.value.includes(O.id)).map((O) => O.id)
|
|
2345
|
+
), v = je(
|
|
2346
2346
|
() => S.value.filter((O) => i.value.includes(O.id)).map((O) => O.id)
|
|
2347
2347
|
);
|
|
2348
2348
|
return {
|
|
2349
|
-
restaurants:
|
|
2349
|
+
restaurants: m,
|
|
2350
2350
|
business: F,
|
|
2351
2351
|
warehouses: S,
|
|
2352
2352
|
selectedLocationIds: i,
|
|
2353
2353
|
selectedRestaurantIds: T,
|
|
2354
|
-
selectedWarehouseIds:
|
|
2354
|
+
selectedWarehouseIds: v,
|
|
2355
2355
|
defaultDateSetting: s,
|
|
2356
2356
|
dateRange: a,
|
|
2357
2357
|
timeRange: f,
|
|
@@ -2518,7 +2518,7 @@ var _n = { exports: {} };
|
|
|
2518
2518
|
Object.keys(c || {}).includes(p) || l.push(p);
|
|
2519
2519
|
}), Object.keys(l).length ? l : null;
|
|
2520
2520
|
}
|
|
2521
|
-
var E,
|
|
2521
|
+
var E, m;
|
|
2522
2522
|
function S(C, c, l) {
|
|
2523
2523
|
var p = "shortString", g = !0;
|
|
2524
2524
|
typeof l == "number" && (p = "javaDouble", g = !1), C[p] = C[p] || {}, C[p][c] = g ? l + "" : l;
|
|
@@ -2532,7 +2532,7 @@ var _n = { exports: {} };
|
|
|
2532
2532
|
return [l, F(p) ? p : { value: p }];
|
|
2533
2533
|
}));
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function v(C) {
|
|
2536
2536
|
return s(s({}, C), { identity: C.identity ? s(s({}, C.identity), { traits: T(C.identity.traits || {}) }) : void 0 });
|
|
2537
2537
|
}
|
|
2538
2538
|
(function(C) {
|
|
@@ -2622,7 +2622,7 @@ var _n = { exports: {} };
|
|
|
2622
2622
|
return [w, M == null ? void 0 : M.value];
|
|
2623
2623
|
}));
|
|
2624
2624
|
}, this.setContext = function(p) {
|
|
2625
|
-
var g =
|
|
2625
|
+
var g = v(p);
|
|
2626
2626
|
return l.evaluationContext = s(s({}, g), { environment: g.environment || l.evaluationContext.environment }), l.initialised ? l.getFlags() : Promise.resolve();
|
|
2627
2627
|
}, this.getContext = function() {
|
|
2628
2628
|
return l.evaluationContext;
|
|
@@ -2648,9 +2648,9 @@ var _n = { exports: {} };
|
|
|
2648
2648
|
var M, K = l;
|
|
2649
2649
|
K.evaluationContext;
|
|
2650
2650
|
var z = K.headers, te = { method: g || "GET", body: w, cache: "no-cache", headers: {} };
|
|
2651
|
-
l.evaluationContext.environment && (te.headers["X-Environment-Key"] = l.evaluationContext.environment.apiKey), g && g !== "GET" && (te.headers["Content-Type"] = "application/json; charset=utf-8"), z && Object.assign(te.headers, z),
|
|
2651
|
+
l.evaluationContext.environment && (te.headers["X-Environment-Key"] = l.evaluationContext.environment.apiKey), g && g !== "GET" && (te.headers["Content-Type"] = "application/json; charset=utf-8"), z && Object.assign(te.headers, z), m || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
2652
2652
|
var q = "".concat((M = l.evaluationContext.identity) === null || M === void 0 ? void 0 : M.identifier);
|
|
2653
|
-
return
|
|
2653
|
+
return m(p, te).then(function(W) {
|
|
2654
2654
|
var ue, Ce, Ee = "".concat((ue = l.evaluationContext.identity) === null || ue === void 0 ? void 0 : ue.identifier);
|
|
2655
2655
|
if (q === Ee) {
|
|
2656
2656
|
var we = (Ce = W.headers) === null || Ce === void 0 ? void 0 : Ce.get("x-flagsmith-document-updated-at");
|
|
@@ -2681,23 +2681,23 @@ var _n = { exports: {} };
|
|
|
2681
2681
|
}, this._onChange = function(p, g, w) {
|
|
2682
2682
|
var M, K;
|
|
2683
2683
|
l.setLoadingState(w), (M = l.onChange) === null || M === void 0 || M.call(l, p, g, l.loadingState), (K = l._trigger) === null || K === void 0 || K.call(l);
|
|
2684
|
-
},
|
|
2684
|
+
}, m = c.fetch ? c.fetch : typeof fetch < "u" ? fetch : It == null ? void 0 : It.fetch, this.canUseStorage = typeof window < "u" || !!c.browserlessStorage, this.log("Constructing flagsmith instance " + c), c.eventSource && (O = c.eventSource), c.AsyncStorage && (h = c.AsyncStorage);
|
|
2685
2685
|
}
|
|
2686
2686
|
return C.prototype.init = function(c) {
|
|
2687
2687
|
var l, p, g;
|
|
2688
2688
|
return i(this, void 0, void 0, function() {
|
|
2689
|
-
var w, M, K, z, te, q, W, ue, Ce, Ee, we, Ie, Re, Ne, A, d, U, H, X, ce, ne, D, N, se, Ae, Xe, at, $e, Ge,
|
|
2689
|
+
var w, M, K, z, te, q, W, ue, Ce, Ee, we, Ie, Re, Ne, A, d, U, H, X, ce, ne, D, N, se, Ae, Xe, at, $e, Ge, vt, et, Rr, Fe = this;
|
|
2690
2690
|
return o(this, function(Ke) {
|
|
2691
2691
|
switch (Ke.label) {
|
|
2692
2692
|
case 0:
|
|
2693
|
-
w =
|
|
2693
|
+
w = v(c.evaluationContext || this.evaluationContext), Ke.label = 1;
|
|
2694
2694
|
case 1:
|
|
2695
2695
|
if (Ke.trys.push([1, 13, , 14]), M = c.environmentID, K = c.api, z = K === void 0 ? B : K, te = c.headers, q = c.onChange, W = c.cacheFlags, ue = c.datadogRum, Ce = c.onError, Ee = c.defaultFlags, we = c.fetch, Ie = c.preventFetch, Re = c.enableLogs, Ne = c.enableDynatrace, A = c.enableAnalytics, d = c.realtime, U = c.eventSourceUrl, H = U === void 0 ? "https://realtime.flagsmith.com/" : U, X = c.AsyncStorage, ce = c.identity, ne = c.traits, D = c.state, N = c.cacheOptions, se = c.angularHttpClient, Ae = c._trigger, Xe = c._triggerLoadingState, w.environment = M ? { apiKey: M } : w.environment, !w.environment || !w.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
2696
2696
|
if (w.identity = ce || ne ? { identifier: ce, traits: ne ? Object.fromEntries(Object.entries(ne).map(function(qe) {
|
|
2697
2697
|
return [qe[0], { value: qe[1] }];
|
|
2698
2698
|
})) : {} } : w.identity, this.evaluationContext = w, this.api = z, this.headers = te, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = q, at = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Ae || this._trigger, this._triggerLoadingState = Xe || this._triggerLoadingState, this.onError = function(qe) {
|
|
2699
2699
|
Fe.setLoadingState(s(s({}, Fe.loadingState), { isFetching: !1, isLoading: !1, error: qe })), Ce == null || Ce(qe);
|
|
2700
|
-
}, this.enableLogs = Re || !1, this.cacheOptions = N ? { skipAPI: !!N.skipAPI, ttl: N.ttl || 0, storageKey: N.storageKey, loadStale: !!N.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), we && (
|
|
2700
|
+
}, this.enableLogs = Re || !1, this.cacheOptions = N ? { skipAPI: !!N.skipAPI, ttl: N.ttl || 0, storageKey: N.storageKey, loadStale: !!N.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), we && (m = we), this.enableAnalytics = A || !1, this.flags = Object.assign({}, Ee) || {}, this.datadogRum = ue || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = h !== void 0 && !!W, y = "FLAGSMITH_EVENT_" + w.environment.apiKey, X && (h = X), d && typeof window < "u" && this.setupRealtime(H, w.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: E.DEFAULT_FLAGS })), this.setState(D), this.log("Initialising with properties", c, this), Ne && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), se && (m = /* @__PURE__ */ function(qe) {
|
|
2701
2701
|
return function(Ye, Je) {
|
|
2702
2702
|
var lt = Je.headers, de = Je.method, Tt = Je.body;
|
|
2703
2703
|
return new Promise(function(Ot) {
|
|
@@ -2737,14 +2737,14 @@ var _n = { exports: {} };
|
|
|
2737
2737
|
if (!h || !this.canUseStorage) return [3, 8];
|
|
2738
2738
|
$e = function(qe, Ye) {
|
|
2739
2739
|
return i(Fe, void 0, void 0, function() {
|
|
2740
|
-
var Je, lt, de, Tt, Ot, tt,
|
|
2740
|
+
var Je, lt, de, Tt, Ot, tt, vn, Sr, On, Cn, In, yn, Bn, Rn, Sn, Dn, wn, bn, Tn, Pn, Un, Nn, Fn, Mn, Dr = this;
|
|
2741
2741
|
return o(this, function(ut) {
|
|
2742
2742
|
switch (ut.label) {
|
|
2743
2743
|
case 0:
|
|
2744
2744
|
if (!Ye) return [3, 7];
|
|
2745
2745
|
Je = null, lt = null, ut.label = 1;
|
|
2746
2746
|
case 1:
|
|
2747
|
-
return ut.trys.push([1, 5, , 6]), de = JSON.parse(Ye), Tt = !1, Ot = !1, de && de.api === this.api && ((Cn = (On = de.evaluationContext) === null || On === void 0 ? void 0 : On.environment) === null || Cn === void 0 ? void 0 : Cn.apiKey) === ((In = this.evaluationContext.environment) === null || In === void 0 ? void 0 : In.apiKey) && (tt = !0, this.evaluationContext.identity && ((Bn = (yn = de.evaluationContext) === null || yn === void 0 ? void 0 : yn.identity) === null || Bn === void 0 ? void 0 : Bn.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Sn = (Rn = de.evaluationContext) === null || Rn === void 0 ? void 0 : Rn.identity) === null || Sn === void 0 ? void 0 : Sn.identifier) + " to " + this.evaluationContext.identity.identifier), tt = !1), this.cacheOptions.ttl && (!de.ts || (/* @__PURE__ */ new Date()).valueOf() - de.ts > this.cacheOptions.ttl) && (de.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + de.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - de.ts) + "ms"), tt = !1) : de.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + de.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - de.ts) + "ms"), Ot = !0, tt = !0)), tt && (Tt = !0, lt = f((Dn = this.evaluationContext.identity) === null || Dn === void 0 ? void 0 : Dn.traits, (bn = (wn = de.evaluationContext) === null || wn === void 0 ? void 0 : wn.identity) === null || bn === void 0 ? void 0 : bn.traits), Je = f(this.flags, de.flags), this.setState(s(s({}, de), { evaluationContext:
|
|
2747
|
+
return ut.trys.push([1, 5, , 6]), de = JSON.parse(Ye), Tt = !1, Ot = !1, de && de.api === this.api && ((Cn = (On = de.evaluationContext) === null || On === void 0 ? void 0 : On.environment) === null || Cn === void 0 ? void 0 : Cn.apiKey) === ((In = this.evaluationContext.environment) === null || In === void 0 ? void 0 : In.apiKey) && (tt = !0, this.evaluationContext.identity && ((Bn = (yn = de.evaluationContext) === null || yn === void 0 ? void 0 : yn.identity) === null || Bn === void 0 ? void 0 : Bn.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Sn = (Rn = de.evaluationContext) === null || Rn === void 0 ? void 0 : Rn.identity) === null || Sn === void 0 ? void 0 : Sn.identifier) + " to " + this.evaluationContext.identity.identifier), tt = !1), this.cacheOptions.ttl && (!de.ts || (/* @__PURE__ */ new Date()).valueOf() - de.ts > this.cacheOptions.ttl) && (de.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + de.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - de.ts) + "ms"), tt = !1) : de.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + de.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - de.ts) + "ms"), Ot = !0, tt = !0)), tt && (Tt = !0, lt = f((Dn = this.evaluationContext.identity) === null || Dn === void 0 ? void 0 : Dn.traits, (bn = (wn = de.evaluationContext) === null || wn === void 0 ? void 0 : wn.identity) === null || bn === void 0 ? void 0 : bn.traits), Je = f(this.flags, de.flags), this.setState(s(s({}, de), { evaluationContext: v(s(s({}, de.evaluationContext), { identity: !((Tn = de.evaluationContext) === null || Tn === void 0) && Tn.identity ? s(s({}, (Pn = de.evaluationContext) === null || Pn === void 0 ? void 0 : Pn.identity), { traits: s(s({}, ((Nn = (Un = de.evaluationContext) === null || Un === void 0 ? void 0 : Un.identity) === null || Nn === void 0 ? void 0 : Nn.traits) || {}), ne || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", de))), Tt ? (vn = !Ie && (!this.cacheOptions.skipAPI || Ot), this._onChange(null, { isFromServer: !1, flagsChanged: Je, traitsChanged: lt }, this._loadedState(null, E.CACHE, vn)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Tt && !Ot && this.log("Skipping API, using cache"), vn && this.getFlags().catch(function(Ei) {
|
|
2748
2748
|
var Ln;
|
|
2749
2749
|
(Ln = Dr.onError) === null || Ln === void 0 || Ln.call(Dr, Ei);
|
|
2750
2750
|
}), [3, 4]) : [3, 2];
|
|
@@ -2794,7 +2794,7 @@ var _n = { exports: {} };
|
|
|
2794
2794
|
return Ke.sent(), [3, 12];
|
|
2795
2795
|
case 11:
|
|
2796
2796
|
if (Ee) this._onChange(null, { isFromServer: !1, flagsChanged: f({}, Ee), traitsChanged: f({}, (l = w.identity) === null || l === void 0 ? void 0 : l.traits) }, this._loadedState(null, E.DEFAULT_FLAGS));
|
|
2797
|
-
else if (this.flags && (
|
|
2797
|
+
else if (this.flags && (vt = null, Object.keys(this.flags).length === 0 && (vt = at), this._onChange(null, { isFromServer: !1, flagsChanged: f({}, this.flags), traitsChanged: f({}, (p = w.identity) === null || p === void 0 ? void 0 : p.traits) }, this._loadedState(vt, E.DEFAULT_FLAGS)), vt)) throw new Error(vt);
|
|
2798
2798
|
Ke.label = 12;
|
|
2799
2799
|
case 12:
|
|
2800
2800
|
return [3, 14];
|
|
@@ -3017,7 +3017,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
3017
3017
|
var pa = _n.exports, Kr = {
|
|
3018
3018
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first.",
|
|
3019
3019
|
NO_USER_CONTEXT: "User context not set. Call setUser() first."
|
|
3020
|
-
}, _e,
|
|
3020
|
+
}, _e, ma = (_e = class {
|
|
3021
3021
|
constructor() {
|
|
3022
3022
|
ct(this, "flagsmithClient", null);
|
|
3023
3023
|
ct(this, "userContext", null);
|
|
@@ -3125,8 +3125,8 @@ var pa = _n.exports, Kr = {
|
|
|
3125
3125
|
reset() {
|
|
3126
3126
|
this.flagsmithClient = null, this.userContext = null;
|
|
3127
3127
|
}
|
|
3128
|
-
}, ct(_e, "instance"), _e),
|
|
3129
|
-
function Oa(e =
|
|
3128
|
+
}, ct(_e, "instance"), _e), va = ma.getInstance(), xt = ye(!1), kt = ye([]), ft = ye(null);
|
|
3129
|
+
function Oa(e = va) {
|
|
3130
3130
|
const t = () => xt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), n = async (f, E = []) => {
|
|
3131
3131
|
if (xt.value) {
|
|
3132
3132
|
console.warn("FeatureFlag is already initialized.");
|
|
@@ -3134,15 +3134,15 @@ function Oa(e = ma) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
try {
|
|
3136
3136
|
await e.init(f, E), kt.value = await e.getFlags(), xt.value = !0, ft.value = null;
|
|
3137
|
-
} catch (
|
|
3138
|
-
console.error("Failed to initialize feature flags:",
|
|
3137
|
+
} catch (m) {
|
|
3138
|
+
console.error("Failed to initialize feature flags:", m), ft.value = m;
|
|
3139
3139
|
}
|
|
3140
3140
|
}, r = async (f, E) => {
|
|
3141
3141
|
if (t())
|
|
3142
3142
|
try {
|
|
3143
3143
|
await e.setUser(f, E), kt.value = await e.getFlags(), ft.value = null;
|
|
3144
|
-
} catch (
|
|
3145
|
-
console.error("Failed to set user:",
|
|
3144
|
+
} catch (m) {
|
|
3145
|
+
console.error("Failed to set user:", m), ft.value = m;
|
|
3146
3146
|
}
|
|
3147
3147
|
}, s = async (f) => {
|
|
3148
3148
|
if (t())
|
|
@@ -3151,26 +3151,26 @@ function Oa(e = ma) {
|
|
|
3151
3151
|
} catch (E) {
|
|
3152
3152
|
console.error("Failed to add traits:", E), ft.value = E;
|
|
3153
3153
|
}
|
|
3154
|
-
}, i = (f, E,
|
|
3155
|
-
if (!t()) return
|
|
3154
|
+
}, i = (f, E, m = null) => {
|
|
3155
|
+
if (!t()) return m;
|
|
3156
3156
|
try {
|
|
3157
|
-
return e.getFlagValue(f, E) ??
|
|
3157
|
+
return e.getFlagValue(f, E) ?? m;
|
|
3158
3158
|
} catch (S) {
|
|
3159
|
-
return console.error(`Error getting flag value for ${f}:`, S),
|
|
3159
|
+
return console.error(`Error getting flag value for ${f}:`, S), m;
|
|
3160
3160
|
}
|
|
3161
3161
|
}, o = (f, E) => {
|
|
3162
3162
|
if (!t()) return E ?? null;
|
|
3163
3163
|
try {
|
|
3164
3164
|
return e.getFlag(f) ?? E ?? null;
|
|
3165
|
-
} catch (
|
|
3166
|
-
return console.error(`Error getting flag for ${f}:`,
|
|
3165
|
+
} catch (m) {
|
|
3166
|
+
return console.error(`Error getting flag for ${f}:`, m), E ?? null;
|
|
3167
3167
|
}
|
|
3168
|
-
}, a = async (f, E,
|
|
3169
|
-
if (!t()) return
|
|
3168
|
+
}, a = async (f, E, m = null) => {
|
|
3169
|
+
if (!t()) return m;
|
|
3170
3170
|
try {
|
|
3171
|
-
return await e.getUserFlagValue(f, E,
|
|
3171
|
+
return await e.getUserFlagValue(f, E, m);
|
|
3172
3172
|
} catch (S) {
|
|
3173
|
-
return console.error(`Error getting user flag value for ${E}:`, S),
|
|
3173
|
+
return console.error(`Error getting user flag value for ${E}:`, S), m;
|
|
3174
3174
|
}
|
|
3175
3175
|
}, u = () => {
|
|
3176
3176
|
try {
|
|
@@ -3228,7 +3228,7 @@ function Ba() {
|
|
|
3228
3228
|
fetchType: he.Get,
|
|
3229
3229
|
url: `/${e}/integration`
|
|
3230
3230
|
};
|
|
3231
|
-
return
|
|
3231
|
+
return me.fetch(t);
|
|
3232
3232
|
}
|
|
3233
3233
|
function Oc(e) {
|
|
3234
3234
|
const { businessId: t } = fe(), { dateRange: n } = gn(), r = re(n.endDate).diff(n.startDate, "day"), s = [...new Array(r + 1)].map(
|
|
@@ -3238,7 +3238,7 @@ function Oc(e) {
|
|
|
3238
3238
|
url: `/${t}/integration/${e}/refresh-setting`,
|
|
3239
3239
|
data: { dates: s }
|
|
3240
3240
|
};
|
|
3241
|
-
return
|
|
3241
|
+
return me.fetch(i);
|
|
3242
3242
|
}
|
|
3243
3243
|
function Cc(e) {
|
|
3244
3244
|
const { businessId: t } = fe(), n = {
|
|
@@ -3246,7 +3246,7 @@ function Cc(e) {
|
|
|
3246
3246
|
url: `/${t}/integration`,
|
|
3247
3247
|
data: e
|
|
3248
3248
|
};
|
|
3249
|
-
return
|
|
3249
|
+
return me.fetch(n);
|
|
3250
3250
|
}
|
|
3251
3251
|
function Ic(e, t) {
|
|
3252
3252
|
const { businessId: n } = fe(), r = {
|
|
@@ -3254,21 +3254,21 @@ function Ic(e, t) {
|
|
|
3254
3254
|
url: `/${n}/integration/${e}`,
|
|
3255
3255
|
data: t
|
|
3256
3256
|
};
|
|
3257
|
-
return
|
|
3257
|
+
return me.fetch(r);
|
|
3258
3258
|
}
|
|
3259
3259
|
async function yc(e) {
|
|
3260
3260
|
const { businessId: t } = fe(), n = {
|
|
3261
3261
|
fetchType: he.Delete,
|
|
3262
3262
|
url: `/${t}/integration/${e}`
|
|
3263
3263
|
};
|
|
3264
|
-
await
|
|
3264
|
+
await me.fetch(n);
|
|
3265
3265
|
}
|
|
3266
3266
|
async function Ra() {
|
|
3267
3267
|
const { businessId: e } = fe(), t = {
|
|
3268
3268
|
fetchType: he.Get,
|
|
3269
3269
|
url: `/${e}/integration/valid`
|
|
3270
3270
|
};
|
|
3271
|
-
return await
|
|
3271
|
+
return await me.fetch(t);
|
|
3272
3272
|
}
|
|
3273
3273
|
async function Bc(e) {
|
|
3274
3274
|
const { businessId: t } = fe(), { selectedLocationIds: n, dateRange: r } = gn(), s = re(r.endDate).diff(r.startDate, "day"), o = {
|
|
@@ -3284,7 +3284,7 @@ async function Bc(e) {
|
|
|
3284
3284
|
timeout: 1e3 * 60 * 3
|
|
3285
3285
|
}
|
|
3286
3286
|
};
|
|
3287
|
-
await
|
|
3287
|
+
await me.fetch(a);
|
|
3288
3288
|
}
|
|
3289
3289
|
async function Rc(e) {
|
|
3290
3290
|
const { businessId: t } = fe(), { dateRange: n } = gn(), r = re(n.endDate).diff(n.startDate, "day"), i = {
|
|
@@ -3299,42 +3299,42 @@ async function Rc(e) {
|
|
|
3299
3299
|
timeout: 1e3 * 60 * 3
|
|
3300
3300
|
}
|
|
3301
3301
|
};
|
|
3302
|
-
return await
|
|
3302
|
+
return await me.fetch(o);
|
|
3303
3303
|
}
|
|
3304
3304
|
async function Sc(e) {
|
|
3305
3305
|
const { businessId: t } = fe(), n = {
|
|
3306
3306
|
fetchType: he.Get,
|
|
3307
3307
|
url: `/xero/${t}/disconnect?id=${e}`
|
|
3308
3308
|
};
|
|
3309
|
-
return await
|
|
3309
|
+
return await me.fetch(n);
|
|
3310
3310
|
}
|
|
3311
3311
|
async function Dc(e) {
|
|
3312
3312
|
const { businessId: t } = fe(), n = {
|
|
3313
3313
|
fetchType: he.Get,
|
|
3314
3314
|
url: `/xero/${t}/connect?id=${e}`
|
|
3315
3315
|
};
|
|
3316
|
-
return await
|
|
3316
|
+
return await me.fetch(n);
|
|
3317
3317
|
}
|
|
3318
3318
|
async function wc(e) {
|
|
3319
3319
|
const { businessId: t } = fe(), n = {
|
|
3320
3320
|
fetchType: he.Get,
|
|
3321
3321
|
url: `/xero/${t}/tenants?id=${e}`
|
|
3322
3322
|
};
|
|
3323
|
-
return await
|
|
3323
|
+
return await me.fetch(n);
|
|
3324
3324
|
}
|
|
3325
3325
|
async function bc(e) {
|
|
3326
3326
|
const { businessId: t } = fe(), n = {
|
|
3327
3327
|
fetchType: he.Get,
|
|
3328
3328
|
url: `/xero/${t}/taxes?id=${e}`
|
|
3329
3329
|
};
|
|
3330
|
-
return await
|
|
3330
|
+
return await me.fetch(n);
|
|
3331
3331
|
}
|
|
3332
3332
|
async function Tc(e) {
|
|
3333
3333
|
const { businessId: t } = fe(), n = {
|
|
3334
3334
|
fetchType: he.Get,
|
|
3335
3335
|
url: `/xero/${t}/accounts?id=${e}`
|
|
3336
3336
|
};
|
|
3337
|
-
return await
|
|
3337
|
+
return await me.fetch(n);
|
|
3338
3338
|
}
|
|
3339
3339
|
async function Pc(e) {
|
|
3340
3340
|
let t = [];
|
|
@@ -3351,7 +3351,7 @@ async function Pc(e) {
|
|
|
3351
3351
|
timeout: 1e3 * 60 * 3
|
|
3352
3352
|
}
|
|
3353
3353
|
};
|
|
3354
|
-
t = await
|
|
3354
|
+
t = await me.fetch(a);
|
|
3355
3355
|
const u = t.map(async (f) => {
|
|
3356
3356
|
await Sa(e, f);
|
|
3357
3357
|
});
|
|
@@ -3370,7 +3370,7 @@ async function Sa(e, t) {
|
|
|
3370
3370
|
timeout: 1e3 * 60 * 60,
|
|
3371
3371
|
responseType: "arraybuffer"
|
|
3372
3372
|
}
|
|
3373
|
-
}, { headers: s, data: i } = await
|
|
3373
|
+
}, { headers: s, data: i } = await me.rawFetch(r), o = s["content-disposition"].split("filename=")[1].replaceAll('"', ""), a = window.URL.createObjectURL(new Blob([new Uint8Array(i).buffer])), u = document.createElement("a");
|
|
3374
3374
|
u.href = a, u.setAttribute("download", o), document.body.appendChild(u), u.click(), u.remove();
|
|
3375
3375
|
}
|
|
3376
3376
|
async function Uc(e) {
|
|
@@ -3378,14 +3378,14 @@ async function Uc(e) {
|
|
|
3378
3378
|
fetchType: he.Get,
|
|
3379
3379
|
url: `/${t}/biztory/${e}/payments`
|
|
3380
3380
|
};
|
|
3381
|
-
return await
|
|
3381
|
+
return await me.fetch(n);
|
|
3382
3382
|
}
|
|
3383
3383
|
async function Nc(e) {
|
|
3384
3384
|
const { businessId: t } = fe(), n = {
|
|
3385
3385
|
fetchType: he.Get,
|
|
3386
3386
|
url: `/${t}/biztory/${e}/customers`
|
|
3387
3387
|
};
|
|
3388
|
-
return await
|
|
3388
|
+
return await me.fetch(n);
|
|
3389
3389
|
}
|
|
3390
3390
|
const Da = "mf-reportfeature-flag", wa = Vt(Da, () => {
|
|
3391
3391
|
const e = ye([]), t = ye(!1);
|
|
@@ -3481,7 +3481,7 @@ const Ga = Object.prototype.hasOwnProperty;
|
|
|
3481
3481
|
function ze(e, t) {
|
|
3482
3482
|
return Ga.call(e, t);
|
|
3483
3483
|
}
|
|
3484
|
-
const Be = Array.isArray, ge = (e) => typeof e == "function", j = (e) => typeof e == "string",
|
|
3484
|
+
const Be = Array.isArray, ge = (e) => typeof e == "function", j = (e) => typeof e == "string", ve = (e) => typeof e == "boolean", oe = (e) => e !== null && typeof e == "object", Ka = (e) => oe(e) && ge(e.then) && ge(e.catch), Ws = Object.prototype.toString, hr = (e) => Ws.call(e), ie = (e) => hr(e) === "[object Object]", za = (e) => e == null ? "" : Be(e) || ie(e) && e.toString === Ws ? JSON.stringify(e, null, 2) : String(e);
|
|
3485
3485
|
function pr(e, t = "") {
|
|
3486
3486
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
3487
3487
|
}
|
|
@@ -3499,8 +3499,8 @@ function Va(e, t = 0, n = e.length) {
|
|
|
3499
3499
|
i.push(`${u}${" ".repeat(3 - String(u).length)}| ${r[a]}`);
|
|
3500
3500
|
const f = r[a].length;
|
|
3501
3501
|
if (a === o) {
|
|
3502
|
-
const E = t - (s - f) + 1,
|
|
3503
|
-
i.push(" | " + " ".repeat(E) + "^".repeat(
|
|
3502
|
+
const E = t - (s - f) + 1, m = Math.max(1, n > s ? f - E : n - t);
|
|
3503
|
+
i.push(" | " + " ".repeat(E) + "^".repeat(m));
|
|
3504
3504
|
} else if (a > o) {
|
|
3505
3505
|
if (n > s) {
|
|
3506
3506
|
const E = Math.max(Math.min(n - s, f), 1);
|
|
@@ -3616,7 +3616,7 @@ const $a = /<\/?[\w\s="/.':;#-\/]+>/, el = (e) => $a.test(e), nt = " ", tl = "\r
|
|
|
3616
3616
|
function sl(e) {
|
|
3617
3617
|
const t = e;
|
|
3618
3618
|
let n = 0, r = 1, s = 1, i = 0;
|
|
3619
|
-
const o = (b) => t[b] === tl && t[b + 1] === Ue, a = (b) => t[b] === Ue, u = (b) => t[b] === rl, f = (b) => t[b] === nl, E = (b) => o(b) || a(b) || u(b) || f(b),
|
|
3619
|
+
const o = (b) => t[b] === tl && t[b + 1] === Ue, a = (b) => t[b] === Ue, u = (b) => t[b] === rl, f = (b) => t[b] === nl, E = (b) => o(b) || a(b) || u(b) || f(b), m = () => n, S = () => r, F = () => s, T = () => i, v = (b) => o(b) || u(b) || f(b) ? Ue : t[b], O = () => v(n), h = () => v(n + i);
|
|
3620
3620
|
function I() {
|
|
3621
3621
|
return i = 0, E(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
3622
3622
|
}
|
|
@@ -3636,11 +3636,11 @@ function sl(e) {
|
|
|
3636
3636
|
i = 0;
|
|
3637
3637
|
}
|
|
3638
3638
|
return {
|
|
3639
|
-
index:
|
|
3639
|
+
index: m,
|
|
3640
3640
|
line: S,
|
|
3641
3641
|
column: F,
|
|
3642
3642
|
peekOffset: T,
|
|
3643
|
-
charAt:
|
|
3643
|
+
charAt: v,
|
|
3644
3644
|
currentChar: O,
|
|
3645
3645
|
currentPeek: h,
|
|
3646
3646
|
next: I,
|
|
@@ -3665,7 +3665,7 @@ function al(e, t = {}) {
|
|
|
3665
3665
|
inLinked: !1,
|
|
3666
3666
|
text: ""
|
|
3667
3667
|
}, f = () => u, { onError: E } = t;
|
|
3668
|
-
function
|
|
3668
|
+
function m(A, d, U, ...H) {
|
|
3669
3669
|
const X = f();
|
|
3670
3670
|
if (d.column += U, d.offset += U, E) {
|
|
3671
3671
|
const ce = n ? $n(X.startLoc, d) : null, ne = Mt(A, ce, {
|
|
@@ -3686,16 +3686,16 @@ function al(e, t = {}) {
|
|
|
3686
3686
|
/* TokenTypes.EOF */
|
|
3687
3687
|
);
|
|
3688
3688
|
function T(A, d) {
|
|
3689
|
-
return A.currentChar() === d ? (A.next(), d) : (
|
|
3689
|
+
return A.currentChar() === d ? (A.next(), d) : (m(J.EXPECTED_TOKEN, i(), 0, d), "");
|
|
3690
3690
|
}
|
|
3691
|
-
function
|
|
3691
|
+
function v(A) {
|
|
3692
3692
|
let d = "";
|
|
3693
3693
|
for (; A.currentPeek() === nt || A.currentPeek() === Ue; )
|
|
3694
3694
|
d += A.currentPeek(), A.peek();
|
|
3695
3695
|
return d;
|
|
3696
3696
|
}
|
|
3697
3697
|
function O(A) {
|
|
3698
|
-
const d =
|
|
3698
|
+
const d = v(A);
|
|
3699
3699
|
return A.skipToPeek(), d;
|
|
3700
3700
|
}
|
|
3701
3701
|
function h(A) {
|
|
@@ -3716,7 +3716,7 @@ function al(e, t = {}) {
|
|
|
3716
3716
|
const { currentType: U } = d;
|
|
3717
3717
|
if (U !== 2)
|
|
3718
3718
|
return !1;
|
|
3719
|
-
|
|
3719
|
+
v(A);
|
|
3720
3720
|
const H = h(A.currentPeek());
|
|
3721
3721
|
return A.resetPeek(), H;
|
|
3722
3722
|
}
|
|
@@ -3724,7 +3724,7 @@ function al(e, t = {}) {
|
|
|
3724
3724
|
const { currentType: U } = d;
|
|
3725
3725
|
if (U !== 2)
|
|
3726
3726
|
return !1;
|
|
3727
|
-
|
|
3727
|
+
v(A);
|
|
3728
3728
|
const H = A.currentPeek() === "-" ? A.peek() : A.currentPeek(), X = I(H);
|
|
3729
3729
|
return A.resetPeek(), X;
|
|
3730
3730
|
}
|
|
@@ -3732,7 +3732,7 @@ function al(e, t = {}) {
|
|
|
3732
3732
|
const { currentType: U } = d;
|
|
3733
3733
|
if (U !== 2)
|
|
3734
3734
|
return !1;
|
|
3735
|
-
|
|
3735
|
+
v(A);
|
|
3736
3736
|
const H = A.currentPeek() === Jr;
|
|
3737
3737
|
return A.resetPeek(), H;
|
|
3738
3738
|
}
|
|
@@ -3740,7 +3740,7 @@ function al(e, t = {}) {
|
|
|
3740
3740
|
const { currentType: U } = d;
|
|
3741
3741
|
if (U !== 7)
|
|
3742
3742
|
return !1;
|
|
3743
|
-
|
|
3743
|
+
v(A);
|
|
3744
3744
|
const H = A.currentPeek() === ".";
|
|
3745
3745
|
return A.resetPeek(), H;
|
|
3746
3746
|
}
|
|
@@ -3748,7 +3748,7 @@ function al(e, t = {}) {
|
|
|
3748
3748
|
const { currentType: U } = d;
|
|
3749
3749
|
if (U !== 8)
|
|
3750
3750
|
return !1;
|
|
3751
|
-
|
|
3751
|
+
v(A);
|
|
3752
3752
|
const H = h(A.currentPeek());
|
|
3753
3753
|
return A.resetPeek(), H;
|
|
3754
3754
|
}
|
|
@@ -3756,7 +3756,7 @@ function al(e, t = {}) {
|
|
|
3756
3756
|
const { currentType: U } = d;
|
|
3757
3757
|
if (!(U === 7 || U === 11))
|
|
3758
3758
|
return !1;
|
|
3759
|
-
|
|
3759
|
+
v(A);
|
|
3760
3760
|
const H = A.currentPeek() === ":";
|
|
3761
3761
|
return A.resetPeek(), H;
|
|
3762
3762
|
}
|
|
@@ -3771,7 +3771,7 @@ function al(e, t = {}) {
|
|
|
3771
3771
|
return A.resetPeek(), X;
|
|
3772
3772
|
}
|
|
3773
3773
|
function _(A) {
|
|
3774
|
-
|
|
3774
|
+
v(A);
|
|
3775
3775
|
const d = A.currentPeek() === "|";
|
|
3776
3776
|
return A.resetPeek(), d;
|
|
3777
3777
|
}
|
|
@@ -3855,12 +3855,12 @@ function al(e, t = {}) {
|
|
|
3855
3855
|
let d = "", U = "";
|
|
3856
3856
|
for (; d = Q(A); )
|
|
3857
3857
|
U += d;
|
|
3858
|
-
return A.currentChar() === At &&
|
|
3858
|
+
return A.currentChar() === At && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), U;
|
|
3859
3859
|
}
|
|
3860
3860
|
function w(A) {
|
|
3861
3861
|
O(A);
|
|
3862
3862
|
let d = "";
|
|
3863
|
-
return A.currentChar() === "-" ? (A.next(), d += `-${l(A)}`) : d += l(A), A.currentChar() === At &&
|
|
3863
|
+
return A.currentChar() === "-" ? (A.next(), d += `-${l(A)}`) : d += l(A), A.currentChar() === At && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), d;
|
|
3864
3864
|
}
|
|
3865
3865
|
function M(A) {
|
|
3866
3866
|
return A !== Jr && A !== Ue;
|
|
@@ -3871,7 +3871,7 @@ function al(e, t = {}) {
|
|
|
3871
3871
|
for (; d = le(A, M); )
|
|
3872
3872
|
d === "\\" ? U += z(A) : U += d;
|
|
3873
3873
|
const H = A.currentChar();
|
|
3874
|
-
return H === Ue || H === At ? (
|
|
3874
|
+
return H === Ue || H === At ? (m(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), H === Ue && (A.next(), T(A, "'")), U) : (T(A, "'"), U);
|
|
3875
3875
|
}
|
|
3876
3876
|
function z(A) {
|
|
3877
3877
|
const d = A.currentChar();
|
|
@@ -3884,7 +3884,7 @@ function al(e, t = {}) {
|
|
|
3884
3884
|
case "U":
|
|
3885
3885
|
return te(A, d, 6);
|
|
3886
3886
|
default:
|
|
3887
|
-
return
|
|
3887
|
+
return m(J.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, d), "";
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
3890
|
function te(A, d, U) {
|
|
@@ -3893,7 +3893,7 @@ function al(e, t = {}) {
|
|
|
3893
3893
|
for (let X = 0; X < U; X++) {
|
|
3894
3894
|
const ce = c(A);
|
|
3895
3895
|
if (!ce) {
|
|
3896
|
-
|
|
3896
|
+
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${d}${H}${A.currentChar()}`);
|
|
3897
3897
|
break;
|
|
3898
3898
|
}
|
|
3899
3899
|
H += ce;
|
|
@@ -3936,27 +3936,27 @@ function al(e, t = {}) {
|
|
|
3936
3936
|
let U = null;
|
|
3937
3937
|
switch (A.currentChar()) {
|
|
3938
3938
|
case "{":
|
|
3939
|
-
return d.braceNest >= 1 &&
|
|
3939
|
+
return d.braceNest >= 1 && m(J.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), A.next(), U = S(
|
|
3940
3940
|
d,
|
|
3941
3941
|
2,
|
|
3942
3942
|
"{"
|
|
3943
3943
|
/* TokenChars.BraceLeft */
|
|
3944
3944
|
), O(A), d.braceNest++, U;
|
|
3945
3945
|
case "}":
|
|
3946
|
-
return d.braceNest > 0 && d.currentType === 2 &&
|
|
3946
|
+
return d.braceNest > 0 && d.currentType === 2 && m(J.EMPTY_PLACEHOLDER, i(), 0), A.next(), U = S(
|
|
3947
3947
|
d,
|
|
3948
3948
|
3,
|
|
3949
3949
|
"}"
|
|
3950
3950
|
/* TokenChars.BraceRight */
|
|
3951
3951
|
), d.braceNest--, d.braceNest > 0 && O(A), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), U;
|
|
3952
3952
|
case "@":
|
|
3953
|
-
return d.braceNest > 0 &&
|
|
3953
|
+
return d.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), U = Ie(A, d) || F(d), d.braceNest = 0, U;
|
|
3954
3954
|
default: {
|
|
3955
3955
|
let X = !0, ce = !0, ne = !0;
|
|
3956
3956
|
if (_(A))
|
|
3957
|
-
return d.braceNest > 0 &&
|
|
3957
|
+
return d.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), U = S(d, 1, Ee(A)), d.braceNest = 0, d.inLinked = !1, U;
|
|
3958
3958
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3959
|
-
return
|
|
3959
|
+
return m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), d.braceNest = 0, Re(A, d);
|
|
3960
3960
|
if (X = y(A, d))
|
|
3961
3961
|
return U = S(d, 4, g(A)), O(A), U;
|
|
3962
3962
|
if (ce = B(A, d))
|
|
@@ -3964,7 +3964,7 @@ function al(e, t = {}) {
|
|
|
3964
3964
|
if (ne = P(A, d))
|
|
3965
3965
|
return U = S(d, 6, K(A)), O(A), U;
|
|
3966
3966
|
if (!X && !ce && !ne)
|
|
3967
|
-
return U = S(d, 12, W(A)),
|
|
3967
|
+
return U = S(d, 12, W(A)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, U.value), O(A), U;
|
|
3968
3968
|
break;
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
@@ -3974,7 +3974,7 @@ function al(e, t = {}) {
|
|
|
3974
3974
|
const { currentType: U } = d;
|
|
3975
3975
|
let H = null;
|
|
3976
3976
|
const X = A.currentChar();
|
|
3977
|
-
switch ((U === 7 || U === 8 || U === 11 || U === 9) && (X === Ue || X === nt) &&
|
|
3977
|
+
switch ((U === 7 || U === 8 || U === 11 || U === 9) && (X === Ue || X === nt) && m(J.INVALID_LINKED_FORMAT, i(), 0), X) {
|
|
3978
3978
|
case "@":
|
|
3979
3979
|
return A.next(), H = S(
|
|
3980
3980
|
d,
|
|
@@ -3997,7 +3997,7 @@ function al(e, t = {}) {
|
|
|
3997
3997
|
/* TokenChars.LinkedDelimiter */
|
|
3998
3998
|
);
|
|
3999
3999
|
default:
|
|
4000
|
-
return _(A) ? (H = S(d, 1, Ee(A)), d.braceNest = 0, d.inLinked = !1, H) : L(A, d) || Y(A, d) ? (O(A), Ie(A, d)) : b(A, d) ? (O(A), S(d, 11, ue(A))) : Z(A, d) ? (O(A), X === "{" ? we(A, d) || H : S(d, 10, Ce(A))) : (U === 7 &&
|
|
4000
|
+
return _(A) ? (H = S(d, 1, Ee(A)), d.braceNest = 0, d.inLinked = !1, H) : L(A, d) || Y(A, d) ? (O(A), Ie(A, d)) : b(A, d) ? (O(A), S(d, 11, ue(A))) : Z(A, d) ? (O(A), X === "{" ? we(A, d) || H : S(d, 10, Ce(A))) : (U === 7 && m(J.INVALID_LINKED_FORMAT, i(), 0), d.braceNest = 0, d.inLinked = !1, Re(A, d));
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
4003
|
function Re(A, d) {
|
|
@@ -4013,7 +4013,7 @@ function al(e, t = {}) {
|
|
|
4013
4013
|
case "{":
|
|
4014
4014
|
return we(A, d) || F(d);
|
|
4015
4015
|
case "}":
|
|
4016
|
-
return
|
|
4016
|
+
return m(J.UNBALANCED_CLOSING_BRACE, i(), 0), A.next(), S(
|
|
4017
4017
|
d,
|
|
4018
4018
|
3,
|
|
4019
4019
|
"}"
|
|
@@ -4103,7 +4103,7 @@ function fl(e = {}) {
|
|
|
4103
4103
|
node: L
|
|
4104
4104
|
});
|
|
4105
4105
|
}
|
|
4106
|
-
function
|
|
4106
|
+
function m(h, I) {
|
|
4107
4107
|
const y = h.context(), B = s(7, y.offset, y.startLoc);
|
|
4108
4108
|
return B.value = I, i(B, h.currentOffset(), h.currentPosition()), B;
|
|
4109
4109
|
}
|
|
@@ -4116,7 +4116,7 @@ function fl(e = {}) {
|
|
|
4116
4116
|
}
|
|
4117
4117
|
switch (B.type !== 9 && r(h, J.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Ze(B)), B = h.nextToken(), B.type === 2 && (B = h.nextToken()), B.type) {
|
|
4118
4118
|
case 10:
|
|
4119
|
-
B.value == null && r(h, J.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Ze(B)), y.key =
|
|
4119
|
+
B.value == null && r(h, J.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Ze(B)), y.key = m(h, B.value || "");
|
|
4120
4120
|
break;
|
|
4121
4121
|
case 4:
|
|
4122
4122
|
B.value == null && r(h, J.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, Ze(B)), y.key = u(h, B.value || "");
|
|
@@ -4180,13 +4180,13 @@ function fl(e = {}) {
|
|
|
4180
4180
|
} while (P.currentType !== 13);
|
|
4181
4181
|
return L && r(h, J.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), i(b, h.currentOffset(), h.currentPosition()), b;
|
|
4182
4182
|
}
|
|
4183
|
-
function
|
|
4183
|
+
function v(h) {
|
|
4184
4184
|
const I = h.context(), { offset: y, startLoc: B } = I, P = F(h);
|
|
4185
4185
|
return I.currentType === 13 ? P : T(h, y, B, P);
|
|
4186
4186
|
}
|
|
4187
4187
|
function O(h) {
|
|
4188
4188
|
const I = al(h, De({}, e)), y = I.context(), B = s(0, y.offset, y.startLoc);
|
|
4189
|
-
return t && B.loc && (B.loc.source = h), B.body =
|
|
4189
|
+
return t && B.loc && (B.loc.source = h), B.body = v(I), e.onCacheKey && (B.cacheKey = e.onCacheKey(h)), y.currentType !== 13 && r(I, J.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, h[y.offset] || ""), i(B, I.currentOffset(), I.currentPosition()), B;
|
|
4190
4190
|
}
|
|
4191
4191
|
return { parse: O };
|
|
4192
4192
|
}
|
|
@@ -4205,9 +4205,9 @@ function Al(e, t = {}) {
|
|
|
4205
4205
|
}
|
|
4206
4206
|
function Wr(e, t) {
|
|
4207
4207
|
for (let n = 0; n < e.length; n++)
|
|
4208
|
-
|
|
4208
|
+
mr(e[n], t);
|
|
4209
4209
|
}
|
|
4210
|
-
function
|
|
4210
|
+
function mr(e, t) {
|
|
4211
4211
|
switch (e.type) {
|
|
4212
4212
|
case 1:
|
|
4213
4213
|
Wr(e.cases, t), t.helper(
|
|
@@ -4219,7 +4219,7 @@ function vr(e, t) {
|
|
|
4219
4219
|
Wr(e.items, t);
|
|
4220
4220
|
break;
|
|
4221
4221
|
case 6: {
|
|
4222
|
-
|
|
4222
|
+
mr(e.key, t), t.helper(
|
|
4223
4223
|
"linked"
|
|
4224
4224
|
/* HelperNameMap.LINKED */
|
|
4225
4225
|
), t.helper(
|
|
@@ -4253,7 +4253,7 @@ function dl(e, t = {}) {
|
|
|
4253
4253
|
n.helper(
|
|
4254
4254
|
"normalize"
|
|
4255
4255
|
/* HelperNameMap.NORMALIZE */
|
|
4256
|
-
), e.body &&
|
|
4256
|
+
), e.body && mr(e.body, n);
|
|
4257
4257
|
const r = n.context();
|
|
4258
4258
|
e.helpers = Array.from(r.helpers);
|
|
4259
4259
|
}
|
|
@@ -4351,20 +4351,20 @@ function pl(e, t) {
|
|
|
4351
4351
|
};
|
|
4352
4352
|
i && e.loc && (o.source = e.loc.source);
|
|
4353
4353
|
const a = () => o;
|
|
4354
|
-
function u(
|
|
4355
|
-
o.code +=
|
|
4354
|
+
function u(v, O) {
|
|
4355
|
+
o.code += v;
|
|
4356
4356
|
}
|
|
4357
|
-
function f(
|
|
4357
|
+
function f(v, O = !0) {
|
|
4358
4358
|
const h = O ? r : "";
|
|
4359
|
-
u(s ? h + " ".repeat(
|
|
4359
|
+
u(s ? h + " ".repeat(v) : h);
|
|
4360
4360
|
}
|
|
4361
|
-
function E(
|
|
4361
|
+
function E(v = !0) {
|
|
4362
4362
|
const O = ++o.indentLevel;
|
|
4363
|
-
|
|
4363
|
+
v && f(O);
|
|
4364
4364
|
}
|
|
4365
|
-
function v
|
|
4365
|
+
function m(v = !0) {
|
|
4366
4366
|
const O = --o.indentLevel;
|
|
4367
|
-
|
|
4367
|
+
v && f(O);
|
|
4368
4368
|
}
|
|
4369
4369
|
function S() {
|
|
4370
4370
|
f(o.indentLevel);
|
|
@@ -4373,20 +4373,20 @@ function pl(e, t) {
|
|
|
4373
4373
|
context: a,
|
|
4374
4374
|
push: u,
|
|
4375
4375
|
indent: E,
|
|
4376
|
-
deindent:
|
|
4376
|
+
deindent: m,
|
|
4377
4377
|
newline: S,
|
|
4378
|
-
helper: (
|
|
4378
|
+
helper: (v) => `_${v}`,
|
|
4379
4379
|
needIndent: () => o.needIndent
|
|
4380
4380
|
};
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4382
|
+
function ml(e, t) {
|
|
4383
4383
|
const { helper: n } = e;
|
|
4384
4384
|
e.push(`${n(
|
|
4385
4385
|
"linked"
|
|
4386
4386
|
/* HelperNameMap.LINKED */
|
|
4387
4387
|
)}(`), Ut(e, t.key), t.modifier ? (e.push(", "), Ut(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4389
|
+
function vl(e, t) {
|
|
4390
4390
|
const { helper: n, needIndent: r } = e;
|
|
4391
4391
|
e.push(`${n(
|
|
4392
4392
|
"normalize"
|
|
@@ -4423,10 +4423,10 @@ function Ut(e, t) {
|
|
|
4423
4423
|
Ol(e, t);
|
|
4424
4424
|
break;
|
|
4425
4425
|
case 2:
|
|
4426
|
-
|
|
4426
|
+
vl(e, t);
|
|
4427
4427
|
break;
|
|
4428
4428
|
case 6:
|
|
4429
|
-
|
|
4429
|
+
ml(e, t);
|
|
4430
4430
|
break;
|
|
4431
4431
|
case 8:
|
|
4432
4432
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -4506,7 +4506,7 @@ function Rl(e, t) {
|
|
|
4506
4506
|
0
|
|
4507
4507
|
/* NodeTypes.Resource */
|
|
4508
4508
|
);
|
|
4509
|
-
if (
|
|
4509
|
+
if (vr(n) === 1) {
|
|
4510
4510
|
const i = bl(n);
|
|
4511
4511
|
return e.plural(i.reduce((o, a) => [
|
|
4512
4512
|
...o,
|
|
@@ -4541,7 +4541,7 @@ function Nl(e) {
|
|
|
4541
4541
|
return pt(e, Ul, []);
|
|
4542
4542
|
}
|
|
4543
4543
|
function er(e, t) {
|
|
4544
|
-
const n =
|
|
4544
|
+
const n = vr(t);
|
|
4545
4545
|
switch (n) {
|
|
4546
4546
|
case 3:
|
|
4547
4547
|
return Wt(t, n);
|
|
@@ -4576,7 +4576,7 @@ function er(e, t) {
|
|
|
4576
4576
|
}
|
|
4577
4577
|
}
|
|
4578
4578
|
const Fl = ["t", "type"];
|
|
4579
|
-
function
|
|
4579
|
+
function vr(e) {
|
|
4580
4580
|
return pt(e, Fl);
|
|
4581
4581
|
}
|
|
4582
4582
|
const Ml = ["v", "value"];
|
|
@@ -4618,7 +4618,7 @@ function Hl(e, t) {
|
|
|
4618
4618
|
const jl = (e) => e;
|
|
4619
4619
|
let Zt = ae();
|
|
4620
4620
|
function wt(e) {
|
|
4621
|
-
return oe(e) &&
|
|
4621
|
+
return oe(e) && vr(e) === 0 && (ze(e, "b") || ze(e, "body"));
|
|
4622
4622
|
}
|
|
4623
4623
|
function Gl(e, t = {}) {
|
|
4624
4624
|
let n = !1;
|
|
@@ -4630,7 +4630,7 @@ function Gl(e, t = {}) {
|
|
|
4630
4630
|
// @__NO_SIDE_EFFECTS__
|
|
4631
4631
|
function Kl(e, t) {
|
|
4632
4632
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && j(e)) {
|
|
4633
|
-
const n =
|
|
4633
|
+
const n = ve(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
4634
4634
|
process.env.NODE_ENV !== "production" && Hl(e, n);
|
|
4635
4635
|
const s = (t.onCacheKey || jl)(e), i = Zt[s];
|
|
4636
4636
|
if (i)
|
|
@@ -4732,7 +4732,7 @@ function Zs(e, t, n) {
|
|
|
4732
4732
|
}
|
|
4733
4733
|
function es(e, t, n) {
|
|
4734
4734
|
let r = !0;
|
|
4735
|
-
for (let s = 0; s < t.length &&
|
|
4735
|
+
for (let s = 0; s < t.length && ve(r); s++) {
|
|
4736
4736
|
const i = t[s];
|
|
4737
4737
|
j(i) && (r = _l(e, t[s], n));
|
|
4738
4738
|
}
|
|
@@ -4756,8 +4756,8 @@ function $l(e, t, n) {
|
|
|
4756
4756
|
}
|
|
4757
4757
|
return r;
|
|
4758
4758
|
}
|
|
4759
|
-
const
|
|
4760
|
-
|
|
4759
|
+
const mt = [];
|
|
4760
|
+
mt[
|
|
4761
4761
|
0
|
|
4762
4762
|
/* States.BEFORE_PATH */
|
|
4763
4763
|
] = {
|
|
@@ -4779,7 +4779,7 @@ vt[
|
|
|
4779
4779
|
/* States.AFTER_PATH */
|
|
4780
4780
|
]
|
|
4781
4781
|
};
|
|
4782
|
-
|
|
4782
|
+
mt[
|
|
4783
4783
|
1
|
|
4784
4784
|
/* States.IN_PATH */
|
|
4785
4785
|
] = {
|
|
@@ -4800,7 +4800,7 @@ vt[
|
|
|
4800
4800
|
/* States.AFTER_PATH */
|
|
4801
4801
|
]
|
|
4802
4802
|
};
|
|
4803
|
-
|
|
4803
|
+
mt[
|
|
4804
4804
|
2
|
|
4805
4805
|
/* States.BEFORE_IDENT */
|
|
4806
4806
|
] = {
|
|
@@ -4819,7 +4819,7 @@ vt[
|
|
|
4819
4819
|
/* Actions.APPEND */
|
|
4820
4820
|
]
|
|
4821
4821
|
};
|
|
4822
|
-
|
|
4822
|
+
mt[
|
|
4823
4823
|
3
|
|
4824
4824
|
/* States.IN_IDENT */
|
|
4825
4825
|
] = {
|
|
@@ -4854,7 +4854,7 @@ vt[
|
|
|
4854
4854
|
/* Actions.PUSH */
|
|
4855
4855
|
]
|
|
4856
4856
|
};
|
|
4857
|
-
|
|
4857
|
+
mt[
|
|
4858
4858
|
4
|
|
4859
4859
|
/* States.IN_SUB_PATH */
|
|
4860
4860
|
] = {
|
|
@@ -4885,7 +4885,7 @@ vt[
|
|
|
4885
4885
|
/* Actions.APPEND */
|
|
4886
4886
|
]
|
|
4887
4887
|
};
|
|
4888
|
-
|
|
4888
|
+
mt[
|
|
4889
4889
|
5
|
|
4890
4890
|
/* States.IN_SINGLE_QUOTE */
|
|
4891
4891
|
] = {
|
|
@@ -4901,7 +4901,7 @@ vt[
|
|
|
4901
4901
|
/* Actions.APPEND */
|
|
4902
4902
|
]
|
|
4903
4903
|
};
|
|
4904
|
-
|
|
4904
|
+
mt[
|
|
4905
4905
|
6
|
|
4906
4906
|
/* States.IN_DOUBLE_QUOTE */
|
|
4907
4907
|
] = {
|
|
@@ -4956,7 +4956,7 @@ function su(e) {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
function iu(e) {
|
|
4958
4958
|
const t = [];
|
|
4959
|
-
let n = -1, r = 0, s = 0, i, o, a, u, f, E,
|
|
4959
|
+
let n = -1, r = 0, s = 0, i, o, a, u, f, E, m;
|
|
4960
4960
|
const S = [];
|
|
4961
4961
|
S[
|
|
4962
4962
|
0
|
|
@@ -5004,7 +5004,7 @@ function iu(e) {
|
|
|
5004
5004
|
}
|
|
5005
5005
|
for (; r !== null; )
|
|
5006
5006
|
if (n++, i = e[n], !(i === "\\" && F())) {
|
|
5007
|
-
if (u = ru(i),
|
|
5007
|
+
if (u = ru(i), m = mt[r], f = m[u] || m.l || 8, f === 8 || (r = f[0], f[1] !== void 0 && (E = S[f[1]], E && (a = i, E() === !1))))
|
|
5008
5008
|
return;
|
|
5009
5009
|
if (r === 7)
|
|
5010
5010
|
return t;
|
|
@@ -5079,8 +5079,8 @@ const rs = (e) => {
|
|
|
5079
5079
|
ni = e;
|
|
5080
5080
|
}, pu = () => ni;
|
|
5081
5081
|
let ss = 0;
|
|
5082
|
-
function
|
|
5083
|
-
const t = ge(e.onWarn) ? e.onWarn : ht, n = j(e.version) ? e.version : cu, r = j(e.locale) || ge(e.locale) ? e.locale : on, s = ge(r) ? on : r, i = Be(e.fallbackLocale) || ie(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = ie(e.messages) ? e.messages : zn(s), a = ie(e.datetimeFormats) ? e.datetimeFormats : zn(s), u = ie(e.numberFormats) ? e.numberFormats : zn(s), f = De(ae(), e.modifiers, fu()), E = e.pluralRules || ae(),
|
|
5082
|
+
function mu(e = {}) {
|
|
5083
|
+
const t = ge(e.onWarn) ? e.onWarn : ht, n = j(e.version) ? e.version : cu, r = j(e.locale) || ge(e.locale) ? e.locale : on, s = ge(r) ? on : r, i = Be(e.fallbackLocale) || ie(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = ie(e.messages) ? e.messages : zn(s), a = ie(e.datetimeFormats) ? e.datetimeFormats : zn(s), u = ie(e.numberFormats) ? e.numberFormats : zn(s), f = De(ae(), e.modifiers, fu()), E = e.pluralRules || ae(), m = ge(e.missing) ? e.missing : null, S = ve(e.missingWarn) || sn(e.missingWarn) ? e.missingWarn : !0, F = ve(e.fallbackWarn) || sn(e.fallbackWarn) ? e.fallbackWarn : !0, T = !!e.fallbackFormat, v = !!e.unresolving, O = ge(e.postTranslation) ? e.postTranslation : null, h = ie(e.processor) ? e.processor : null, I = ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, B = ge(e.messageCompiler) ? e.messageCompiler : _s;
|
|
5084
5084
|
process.env.NODE_ENV !== "production" && ge(e.messageCompiler) && Xa(bt(Me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
5085
5085
|
const P = ge(e.messageResolver) ? e.messageResolver : $s || ou, L = ge(e.localeFallbacker) ? e.localeFallbacker : ei || Zl, b = oe(e.fallbackContext) ? e.fallbackContext : void 0, Y = e, Z = oe(Y.__datetimeFormatters) ? Y.__datetimeFormatters : /* @__PURE__ */ new Map(), _ = oe(Y.__numberFormatters) ? Y.__numberFormatters : /* @__PURE__ */ new Map(), $ = oe(Y.__meta) ? Y.__meta : {};
|
|
5086
5086
|
ss++;
|
|
@@ -5092,11 +5092,11 @@ function vu(e = {}) {
|
|
|
5092
5092
|
messages: o,
|
|
5093
5093
|
modifiers: f,
|
|
5094
5094
|
pluralRules: E,
|
|
5095
|
-
missing:
|
|
5095
|
+
missing: m,
|
|
5096
5096
|
missingWarn: S,
|
|
5097
5097
|
fallbackWarn: F,
|
|
5098
5098
|
fallbackFormat: T,
|
|
5099
|
-
unresolving:
|
|
5099
|
+
unresolving: v,
|
|
5100
5100
|
postTranslation: O,
|
|
5101
5101
|
processor: h,
|
|
5102
5102
|
warnHtmlMessage: I,
|
|
@@ -5111,7 +5111,7 @@ function vu(e = {}) {
|
|
|
5111
5111
|
return le.datetimeFormats = a, le.numberFormats = u, le.__datetimeFormatters = Z, le.__numberFormatters = _, process.env.NODE_ENV !== "production" && (le.__v_emitter = Y.__v_emitter != null ? Y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Vl(le, n, $), le;
|
|
5112
5112
|
}
|
|
5113
5113
|
const zn = (e) => ({ [e]: ae() });
|
|
5114
|
-
function
|
|
5114
|
+
function mn(e, t) {
|
|
5115
5115
|
return e instanceof RegExp ? e.test(t) : e;
|
|
5116
5116
|
}
|
|
5117
5117
|
function ri(e, t) {
|
|
@@ -5141,7 +5141,7 @@ function qt(e, t, n) {
|
|
|
5141
5141
|
function si(e, t) {
|
|
5142
5142
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
5143
5143
|
}
|
|
5144
|
-
function
|
|
5144
|
+
function vu(e, t) {
|
|
5145
5145
|
const n = t.indexOf(e);
|
|
5146
5146
|
if (n === -1)
|
|
5147
5147
|
return !1;
|
|
@@ -5158,21 +5158,21 @@ function os(e, ...t) {
|
|
|
5158
5158
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: i, localeFallbacker: o } = e, { __datetimeFormatters: a } = e;
|
|
5159
5159
|
if (process.env.NODE_ENV !== "production" && !ii.dateTimeFormat)
|
|
5160
5160
|
return i(bt(Me.CANNOT_FORMAT_DATE)), an;
|
|
5161
|
-
const [u, f, E,
|
|
5161
|
+
const [u, f, E, m] = tr(...t), S = ve(E.missingWarn) ? E.missingWarn : e.missingWarn, F = ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, T = !!E.part, v = Or(e, E), O = o(
|
|
5162
5162
|
e,
|
|
5163
5163
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5164
5164
|
s,
|
|
5165
|
-
|
|
5165
|
+
v
|
|
5166
5166
|
);
|
|
5167
5167
|
if (!j(u) || u === "")
|
|
5168
|
-
return new Intl.DateTimeFormat(
|
|
5169
|
-
let h = {}, I, y = null, B =
|
|
5168
|
+
return new Intl.DateTimeFormat(v, m).format(f);
|
|
5169
|
+
let h = {}, I, y = null, B = v, P = null;
|
|
5170
5170
|
const L = "datetime format";
|
|
5171
5171
|
for (let Z = 0; Z < O.length; Z++) {
|
|
5172
|
-
if (I = P = O[Z], process.env.NODE_ENV !== "production" &&
|
|
5172
|
+
if (I = P = O[Z], process.env.NODE_ENV !== "production" && v !== I && mn(F, u) && i(bt(Me.FALLBACK_TO_DATE_FORMAT, {
|
|
5173
5173
|
key: u,
|
|
5174
5174
|
target: I
|
|
5175
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
5175
|
+
})), process.env.NODE_ENV !== "production" && v !== I) {
|
|
5176
5176
|
const _ = e.__v_emitter;
|
|
5177
5177
|
_ && _.emit("fallback", {
|
|
5178
5178
|
type: L,
|
|
@@ -5189,9 +5189,9 @@ function os(e, ...t) {
|
|
|
5189
5189
|
if (!ie(y) || !j(I))
|
|
5190
5190
|
return r ? pn : u;
|
|
5191
5191
|
let b = `${I}__${u}`;
|
|
5192
|
-
hn(
|
|
5192
|
+
hn(m) || (b = `${b}__${JSON.stringify(m)}`);
|
|
5193
5193
|
let Y = a.get(b);
|
|
5194
|
-
return Y || (Y = new Intl.DateTimeFormat(I, De({}, y,
|
|
5194
|
+
return Y || (Y = new Intl.DateTimeFormat(I, De({}, y, m)), a.set(b, Y)), T ? Y.formatToParts(f) : Y.format(f);
|
|
5195
5195
|
}
|
|
5196
5196
|
const oi = [
|
|
5197
5197
|
"localeMatcher",
|
|
@@ -5252,21 +5252,21 @@ function ls(e, ...t) {
|
|
|
5252
5252
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: i, localeFallbacker: o } = e, { __numberFormatters: a } = e;
|
|
5253
5253
|
if (process.env.NODE_ENV !== "production" && !ii.numberFormat)
|
|
5254
5254
|
return i(bt(Me.CANNOT_FORMAT_NUMBER)), an;
|
|
5255
|
-
const [u, f, E,
|
|
5255
|
+
const [u, f, E, m] = nr(...t), S = ve(E.missingWarn) ? E.missingWarn : e.missingWarn, F = ve(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, T = !!E.part, v = Or(e, E), O = o(
|
|
5256
5256
|
e,
|
|
5257
5257
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5258
5258
|
s,
|
|
5259
|
-
|
|
5259
|
+
v
|
|
5260
5260
|
);
|
|
5261
5261
|
if (!j(u) || u === "")
|
|
5262
|
-
return new Intl.NumberFormat(
|
|
5263
|
-
let h = {}, I, y = null, B =
|
|
5262
|
+
return new Intl.NumberFormat(v, m).format(f);
|
|
5263
|
+
let h = {}, I, y = null, B = v, P = null;
|
|
5264
5264
|
const L = "number format";
|
|
5265
5265
|
for (let Z = 0; Z < O.length; Z++) {
|
|
5266
|
-
if (I = P = O[Z], process.env.NODE_ENV !== "production" &&
|
|
5266
|
+
if (I = P = O[Z], process.env.NODE_ENV !== "production" && v !== I && mn(F, u) && i(bt(Me.FALLBACK_TO_NUMBER_FORMAT, {
|
|
5267
5267
|
key: u,
|
|
5268
5268
|
target: I
|
|
5269
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
5269
|
+
})), process.env.NODE_ENV !== "production" && v !== I) {
|
|
5270
5270
|
const _ = e.__v_emitter;
|
|
5271
5271
|
_ && _.emit("fallback", {
|
|
5272
5272
|
type: L,
|
|
@@ -5283,9 +5283,9 @@ function ls(e, ...t) {
|
|
|
5283
5283
|
if (!ie(y) || !j(I))
|
|
5284
5284
|
return r ? pn : u;
|
|
5285
5285
|
let b = `${I}__${u}`;
|
|
5286
|
-
hn(
|
|
5286
|
+
hn(m) || (b = `${b}__${JSON.stringify(m)}`);
|
|
5287
5287
|
let Y = a.get(b);
|
|
5288
|
-
return Y || (Y = new Intl.NumberFormat(I, De({}, y,
|
|
5288
|
+
return Y || (Y = new Intl.NumberFormat(I, De({}, y, m)), a.set(b, Y)), T ? Y.formatToParts(f) : Y.format(f);
|
|
5289
5289
|
}
|
|
5290
5290
|
const ai = [
|
|
5291
5291
|
"localeMatcher",
|
|
@@ -5345,7 +5345,7 @@ function Du(e = {}) {
|
|
|
5345
5345
|
const y = ge(e.messages) ? e.messages(h, !!I) : oe(e.messages) ? e.messages[h] : !1;
|
|
5346
5346
|
return y || (e.parent ? e.parent.message(h) : Cu);
|
|
5347
5347
|
}
|
|
5348
|
-
const
|
|
5348
|
+
const m = (h) => e.modifiers ? e.modifiers[h] : Ou, S = ie(e.processor) && ge(e.processor.normalize) ? e.processor.normalize : yu, F = ie(e.processor) && ge(e.processor.interpolate) ? e.processor.interpolate : Bu, T = ie(e.processor) && j(e.processor.type) ? e.processor.type : Iu, O = {
|
|
5349
5349
|
list: a,
|
|
5350
5350
|
named: f,
|
|
5351
5351
|
plural: i,
|
|
@@ -5357,7 +5357,7 @@ function Du(e = {}) {
|
|
|
5357
5357
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
5358
5358
|
P === "vnode" && Be(b) && L ? b[0] : b
|
|
5359
5359
|
);
|
|
5360
|
-
return L ?
|
|
5360
|
+
return L ? m(L)(Y, P) : Y;
|
|
5361
5361
|
},
|
|
5362
5362
|
message: E,
|
|
5363
5363
|
type: T,
|
|
@@ -5369,14 +5369,14 @@ function Du(e = {}) {
|
|
|
5369
5369
|
}
|
|
5370
5370
|
const fs = () => "", He = (e) => ge(e);
|
|
5371
5371
|
function As(e, ...t) {
|
|
5372
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: i, fallbackLocale: o, messages: a } = e, [u, f] = rr(...t), E =
|
|
5372
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: i, fallbackLocale: o, messages: a } = e, [u, f] = rr(...t), E = ve(f.missingWarn) ? f.missingWarn : e.missingWarn, m = ve(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, S = ve(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, F = !!f.resolvedMessage, T = j(f.default) || ve(f.default) ? ve(f.default) ? i ? u : () => u : f.default : n ? i ? u : () => u : null, v = n || T != null && (j(T) || ge(T)), O = Or(e, f);
|
|
5373
5373
|
S && wu(f);
|
|
5374
5374
|
let [h, I, y] = F ? [
|
|
5375
5375
|
u,
|
|
5376
5376
|
O,
|
|
5377
5377
|
a[O] || ae()
|
|
5378
|
-
] : li(e, u, O, o,
|
|
5379
|
-
if (!F && !(j(B) || wt(B) || He(B)) &&
|
|
5378
|
+
] : li(e, u, O, o, m, E), B = h, P = u;
|
|
5379
|
+
if (!F && !(j(B) || wt(B) || He(B)) && v && (B = T, P = B), !F && (!(j(B) || wt(B) || He(B)) || !j(I)))
|
|
5380
5380
|
return s ? pn : u;
|
|
5381
5381
|
if (process.env.NODE_ENV !== "production" && j(B) && e.messageCompiler == null)
|
|
5382
5382
|
return ht(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
@@ -5406,10 +5406,10 @@ function wu(e) {
|
|
|
5406
5406
|
}
|
|
5407
5407
|
function li(e, t, n, r, s, i) {
|
|
5408
5408
|
const { messages: o, onWarn: a, messageResolver: u, localeFallbacker: f } = e, E = f(e, r, n);
|
|
5409
|
-
let
|
|
5409
|
+
let m = ae(), S, F = null, T = n, v = null;
|
|
5410
5410
|
const O = "translate";
|
|
5411
5411
|
for (let h = 0; h < E.length; h++) {
|
|
5412
|
-
if (S =
|
|
5412
|
+
if (S = v = E[h], process.env.NODE_ENV !== "production" && n !== S && !si(n, S) && mn(s, t) && a(bt(Me.FALLBACK_TO_TRANSLATE, {
|
|
5413
5413
|
key: t,
|
|
5414
5414
|
target: S
|
|
5415
5415
|
})), process.env.NODE_ENV !== "production" && n !== S) {
|
|
@@ -5418,13 +5418,13 @@ function li(e, t, n, r, s, i) {
|
|
|
5418
5418
|
type: O,
|
|
5419
5419
|
key: t,
|
|
5420
5420
|
from: T,
|
|
5421
|
-
to:
|
|
5421
|
+
to: v,
|
|
5422
5422
|
groupId: `${O}:${t}`
|
|
5423
5423
|
});
|
|
5424
5424
|
}
|
|
5425
|
-
|
|
5425
|
+
m = o[S] || ae();
|
|
5426
5426
|
let I = null, y, B;
|
|
5427
|
-
if (process.env.NODE_ENV !== "production" && it && (I = window.performance.now(), y = "intlify-message-resolve-start", B = "intlify-message-resolve-end", Qe && Qe(y)), (F = u(
|
|
5427
|
+
if (process.env.NODE_ENV !== "production" && it && (I = window.performance.now(), y = "intlify-message-resolve-start", B = "intlify-message-resolve-end", Qe && Qe(y)), (F = u(m, t)) === null && (F = m[t]), process.env.NODE_ENV !== "production" && it) {
|
|
5428
5428
|
const P = window.performance.now(), L = e.__v_emitter;
|
|
5429
5429
|
L && I && F && L.emit("message-resolve", {
|
|
5430
5430
|
type: "message-resolve",
|
|
@@ -5436,7 +5436,7 @@ function li(e, t, n, r, s, i) {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
if (j(F) || wt(F) || He(F))
|
|
5438
5438
|
break;
|
|
5439
|
-
if (!
|
|
5439
|
+
if (!vu(S, E)) {
|
|
5440
5440
|
const P = Cr(
|
|
5441
5441
|
e,
|
|
5442
5442
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -5447,9 +5447,9 @@ function li(e, t, n, r, s, i) {
|
|
|
5447
5447
|
);
|
|
5448
5448
|
P !== t && (F = P);
|
|
5449
5449
|
}
|
|
5450
|
-
T =
|
|
5450
|
+
T = v;
|
|
5451
5451
|
}
|
|
5452
|
-
return [F, S,
|
|
5452
|
+
return [F, S, m];
|
|
5453
5453
|
}
|
|
5454
5454
|
function ui(e, t, n, r, s, i) {
|
|
5455
5455
|
const { messageCompiler: o, warnHtmlMessage: a } = e;
|
|
@@ -5463,7 +5463,7 @@ function ui(e, t, n, r, s, i) {
|
|
|
5463
5463
|
}
|
|
5464
5464
|
let u = null, f, E;
|
|
5465
5465
|
process.env.NODE_ENV !== "production" && it && (u = window.performance.now(), f = "intlify-message-compilation-start", E = "intlify-message-compilation-end", Qe && Qe(f));
|
|
5466
|
-
const
|
|
5466
|
+
const m = o(r, Tu(e, n, s, r, a, i));
|
|
5467
5467
|
if (process.env.NODE_ENV !== "production" && it) {
|
|
5468
5468
|
const S = window.performance.now(), F = e.__v_emitter;
|
|
5469
5469
|
F && u && F.emit("message-compilation", {
|
|
@@ -5473,7 +5473,7 @@ function ui(e, t, n, r, s, i) {
|
|
|
5473
5473
|
groupId: `translate:${t}`
|
|
5474
5474
|
}), f && E && Qe && Dt && (Qe(E), Dt("intlify message compilation", f, E));
|
|
5475
5475
|
}
|
|
5476
|
-
return
|
|
5476
|
+
return m.locale = n, m.key = t, m.source = r, m;
|
|
5477
5477
|
}
|
|
5478
5478
|
function bu(e, t, n) {
|
|
5479
5479
|
let r = null, s, i;
|
|
@@ -5531,8 +5531,8 @@ function Uu(e, t, n, r) {
|
|
|
5531
5531
|
modifiers: s,
|
|
5532
5532
|
pluralRules: i,
|
|
5533
5533
|
messages: (F, T) => {
|
|
5534
|
-
let
|
|
5535
|
-
if (
|
|
5534
|
+
let v = o(n, F);
|
|
5535
|
+
if (v == null && (E || T)) {
|
|
5536
5536
|
const [, , O] = li(
|
|
5537
5537
|
E || e,
|
|
5538
5538
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
@@ -5542,15 +5542,15 @@ function Uu(e, t, n, r) {
|
|
|
5542
5542
|
u,
|
|
5543
5543
|
f
|
|
5544
5544
|
);
|
|
5545
|
-
|
|
5545
|
+
v = o(O, F);
|
|
5546
5546
|
}
|
|
5547
|
-
if (j(
|
|
5547
|
+
if (j(v) || wt(v)) {
|
|
5548
5548
|
let O = !1;
|
|
5549
|
-
const I = ui(e, F, t,
|
|
5549
|
+
const I = ui(e, F, t, v, F, () => {
|
|
5550
5550
|
O = !0;
|
|
5551
5551
|
});
|
|
5552
5552
|
return O ? fs : I;
|
|
5553
|
-
} else return He(
|
|
5553
|
+
} else return He(v) ? v : fs;
|
|
5554
5554
|
}
|
|
5555
5555
|
};
|
|
5556
5556
|
return e.processor && (S.processor = e.processor), r.list && (S.list = r.list), r.named && (S.named = r.named), Se(r.plural) && (S.pluralIndex = r.plural), S;
|
|
@@ -5710,16 +5710,16 @@ const qu = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
5710
5710
|
return e && (t = Ai(e)[gs]) ? { [gs]: t } : null;
|
|
5711
5711
|
};
|
|
5712
5712
|
function Hu(e = {}) {
|
|
5713
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, i = it ? ye :
|
|
5714
|
-
let o =
|
|
5713
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, i = it ? ye : vi;
|
|
5714
|
+
let o = ve(e.inheritLocale) ? e.inheritLocale : !0;
|
|
5715
5715
|
const a = i(
|
|
5716
5716
|
// prettier-ignore
|
|
5717
5717
|
t && o ? t.locale.value : j(e.locale) ? e.locale : on
|
|
5718
5718
|
), u = i(
|
|
5719
5719
|
// prettier-ignore
|
|
5720
5720
|
t && o ? t.fallbackLocale.value : j(e.fallbackLocale) || Be(e.fallbackLocale) || ie(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5721
|
-
), f = i(fi(a.value, e)), E = i(ie(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }),
|
|
5722
|
-
let S = t ? t.missingWarn :
|
|
5721
|
+
), f = i(fi(a.value, e)), E = i(ie(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), m = i(ie(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5722
|
+
let S = t ? t.missingWarn : ve(e.missingWarn) || sn(e.missingWarn) ? e.missingWarn : !0, F = t ? t.fallbackWarn : ve(e.fallbackWarn) || sn(e.fallbackWarn) ? e.fallbackWarn : !0, T = t ? t.fallbackRoot : ve(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, O = ge(e.missing) ? e.missing : null, h = ge(e.missing) ? ps(e.missing) : null, I = ge(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : ve(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, B = !!e.escapeParameter;
|
|
5723
5723
|
const P = t ? t.modifiers : ie(e.modifiers) ? e.modifiers : {};
|
|
5724
5724
|
let L = e.pluralRules || t && t.pluralRules, b;
|
|
5725
5725
|
b = (() => {
|
|
@@ -5734,7 +5734,7 @@ function Hu(e = {}) {
|
|
|
5734
5734
|
missing: h === null ? void 0 : h,
|
|
5735
5735
|
missingWarn: S,
|
|
5736
5736
|
fallbackWarn: F,
|
|
5737
|
-
fallbackFormat:
|
|
5737
|
+
fallbackFormat: v,
|
|
5738
5738
|
unresolving: !0,
|
|
5739
5739
|
postTranslation: I === null ? void 0 : I,
|
|
5740
5740
|
warnHtmlMessage: y,
|
|
@@ -5743,8 +5743,8 @@ function Hu(e = {}) {
|
|
|
5743
5743
|
messageCompiler: e.messageCompiler,
|
|
5744
5744
|
__meta: { framework: "vue" }
|
|
5745
5745
|
};
|
|
5746
|
-
D.datetimeFormats = E.value, D.numberFormats =
|
|
5747
|
-
const N =
|
|
5746
|
+
D.datetimeFormats = E.value, D.numberFormats = m.value, D.__datetimeFormatters = ie(b) ? b.__datetimeFormatters : void 0, D.__numberFormatters = ie(b) ? b.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (D.__v_emitter = ie(b) ? b.__v_emitter : void 0);
|
|
5747
|
+
const N = mu(D);
|
|
5748
5748
|
return r && rs(N), N;
|
|
5749
5749
|
})(), qt(b, a.value, u.value);
|
|
5750
5750
|
function Z() {
|
|
@@ -5753,7 +5753,7 @@ function Hu(e = {}) {
|
|
|
5753
5753
|
u.value,
|
|
5754
5754
|
f.value,
|
|
5755
5755
|
E.value,
|
|
5756
|
-
|
|
5756
|
+
m.value
|
|
5757
5757
|
];
|
|
5758
5758
|
}
|
|
5759
5759
|
const _ = je({
|
|
@@ -5766,7 +5766,7 @@ function Hu(e = {}) {
|
|
|
5766
5766
|
set: (D) => {
|
|
5767
5767
|
b.fallbackLocale = D, u.value = D, qt(b, a.value, D);
|
|
5768
5768
|
}
|
|
5769
|
-
}), le = je(() => f.value), ke = /* @__PURE__ */ je(() => E.value), V = /* @__PURE__ */ je(() =>
|
|
5769
|
+
}), le = je(() => f.value), ke = /* @__PURE__ */ je(() => E.value), V = /* @__PURE__ */ je(() => m.value);
|
|
5770
5770
|
function k() {
|
|
5771
5771
|
return ge(I) ? I : null;
|
|
5772
5772
|
}
|
|
@@ -5792,8 +5792,8 @@ function Hu(e = {}) {
|
|
|
5792
5792
|
}
|
|
5793
5793
|
if (se !== "translate exists" && // for not `te` (e.g `t`)
|
|
5794
5794
|
Se($e) && $e === pn || se === "translate exists" && !$e) {
|
|
5795
|
-
const [Ge,
|
|
5796
|
-
if (process.env.NODE_ENV !== "production" && t && j(Ge) && C(se,
|
|
5795
|
+
const [Ge, vt] = N();
|
|
5796
|
+
if (process.env.NODE_ENV !== "production" && t && j(Ge) && C(se, vt) && (T && (mn(F, Ge) || ri(S, Ge)) && ht(Ir(gt.FALLBACK_TO_ROOT, {
|
|
5797
5797
|
key: Ge,
|
|
5798
5798
|
type: se
|
|
5799
5799
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5828,7 +5828,7 @@ function Hu(e = {}) {
|
|
|
5828
5828
|
return c((N) => Reflect.apply(ls, null, [N, ...D]), () => nr(...D), "number format", (N) => Reflect.apply(N.n, N, [...D]), () => an, (N) => j(N));
|
|
5829
5829
|
}
|
|
5830
5830
|
function M(D) {
|
|
5831
|
-
return D.map((N) => j(N) || Se(N) ||
|
|
5831
|
+
return D.map((N) => j(N) || Se(N) || ve(N) ? ds(String(N)) : N);
|
|
5832
5832
|
}
|
|
5833
5833
|
const z = {
|
|
5834
5834
|
normalize: M,
|
|
@@ -5862,7 +5862,7 @@ function Hu(e = {}) {
|
|
|
5862
5862
|
return !1;
|
|
5863
5863
|
const se = j(N) ? N : a.value, Ae = Ie(se), Xe = b.messageResolver(Ae, D);
|
|
5864
5864
|
return wt(Xe) || He(Xe) || j(Xe);
|
|
5865
|
-
}, () => [D], "translate exists", (se) => Reflect.apply(se.te, se, [D, N]), ku, (se) =>
|
|
5865
|
+
}, () => [D], "translate exists", (se) => Reflect.apply(se.te, se, [D, N]), ku, (se) => ve(se));
|
|
5866
5866
|
}
|
|
5867
5867
|
function Ee(D) {
|
|
5868
5868
|
let N = null;
|
|
@@ -5910,13 +5910,13 @@ function Hu(e = {}) {
|
|
|
5910
5910
|
E.value[D] = De(E.value[D] || {}, N), b.datetimeFormats = E.value, as(b, D, N);
|
|
5911
5911
|
}
|
|
5912
5912
|
function H(D) {
|
|
5913
|
-
return
|
|
5913
|
+
return m.value[D] || {};
|
|
5914
5914
|
}
|
|
5915
5915
|
function X(D, N) {
|
|
5916
|
-
|
|
5916
|
+
m.value[D] = N, b.numberFormats = m.value, us(b, D, N);
|
|
5917
5917
|
}
|
|
5918
5918
|
function ce(D, N) {
|
|
5919
|
-
|
|
5919
|
+
m.value[D] = De(m.value[D] || {}, N), b.numberFormats = m.value, us(b, D, N);
|
|
5920
5920
|
}
|
|
5921
5921
|
hs++, t && it && (wr(t.locale, (D) => {
|
|
5922
5922
|
o && (a.value = D, b.locale = D, qt(b, a.value, u.value));
|
|
@@ -5965,10 +5965,10 @@ function Hu(e = {}) {
|
|
|
5965
5965
|
T = D;
|
|
5966
5966
|
},
|
|
5967
5967
|
get fallbackFormat() {
|
|
5968
|
-
return
|
|
5968
|
+
return v;
|
|
5969
5969
|
},
|
|
5970
5970
|
set fallbackFormat(D) {
|
|
5971
|
-
|
|
5971
|
+
v = D, b.fallbackFormat = v;
|
|
5972
5972
|
},
|
|
5973
5973
|
get warnHtmlMessage() {
|
|
5974
5974
|
return y;
|
|
@@ -5998,7 +5998,7 @@ function Hu(e = {}) {
|
|
|
5998
5998
|
b.__v_emitter = void 0;
|
|
5999
5999
|
}), ne;
|
|
6000
6000
|
}
|
|
6001
|
-
function
|
|
6001
|
+
function ms(e, t) {
|
|
6002
6002
|
}
|
|
6003
6003
|
const yr = {
|
|
6004
6004
|
tag: {
|
|
@@ -6053,11 +6053,11 @@ function gi(e, t, n, r) {
|
|
|
6053
6053
|
const u = r(e.value, o, a);
|
|
6054
6054
|
let f = [o.key];
|
|
6055
6055
|
Be(u) ? f = u.map((S, F) => {
|
|
6056
|
-
const T = s[S.type],
|
|
6057
|
-
return Gu(
|
|
6056
|
+
const T = s[S.type], v = T ? T({ [S.type]: S.value, index: F, parts: u }) : [S.value];
|
|
6057
|
+
return Gu(v) && (v[0].key = `${S.type}-${F}`), v;
|
|
6058
6058
|
}) : j(u) && (f = [u]);
|
|
6059
|
-
const E = De(ae(), i),
|
|
6060
|
-
return
|
|
6059
|
+
const E = De(ae(), i), m = j(e.tag) || oe(e.tag) ? e.tag : di();
|
|
6060
|
+
return vs(m, E, f);
|
|
6061
6061
|
};
|
|
6062
6062
|
}
|
|
6063
6063
|
De({
|
|
@@ -6092,7 +6092,7 @@ function Br(e = {}) {
|
|
|
6092
6092
|
return a;
|
|
6093
6093
|
}
|
|
6094
6094
|
function zu(e) {
|
|
6095
|
-
const t =
|
|
6095
|
+
const t = mi(e.isCE ? Ku : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
6096
6096
|
if (!t)
|
|
6097
6097
|
throw Kt(e.isCE ? be.NOT_INSTALLED_WITH_PROVIDE : be.UNEXPECTED_ERROR);
|
|
6098
6098
|
return t;
|
|
@@ -6130,11 +6130,11 @@ function Wu(e, t, n) {
|
|
|
6130
6130
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
6131
6131
|
t.vnode.el.__VUE_I18N__ = n, r = Ya();
|
|
6132
6132
|
const s = n;
|
|
6133
|
-
s[ar] && s[ar](r), r.on("*",
|
|
6133
|
+
s[ar] && s[ar](r), r.on("*", ms);
|
|
6134
6134
|
}
|
|
6135
6135
|
}, t), Ci(() => {
|
|
6136
6136
|
const s = n;
|
|
6137
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*",
|
|
6137
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", ms), s[lr] && s[lr](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
6138
6138
|
const i = s[ur];
|
|
6139
6139
|
i && (i(), delete s[ur]);
|
|
6140
6140
|
}, t);
|
|
@@ -6187,7 +6187,7 @@ export {
|
|
|
6187
6187
|
Fc as e,
|
|
6188
6188
|
Mc as f,
|
|
6189
6189
|
Ca as g,
|
|
6190
|
-
|
|
6190
|
+
me as h,
|
|
6191
6191
|
Ar as i,
|
|
6192
6192
|
It as j,
|
|
6193
6193
|
Ys as k,
|