@webitel/ui-sdk 26.8.86 → 26.8.88
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/{clients-CkhN_A5L.js → clients-cfVUVngv.js} +317 -289
- package/dist/{components-CV6dUJR6.js → components-BSM66otL.js} +1065 -1853
- package/dist/{composables-BtWSAI5D.js → composables-OP5kSvlh.js} +3 -3
- package/dist/debounce-A4B4PTkL.js +5 -0
- package/dist/{deep-copy-CTgLtgMO.js → deep-copy-7O5ej7vT.js} +1 -1
- package/dist/dist-DB8lC4KJ.js +112 -0
- package/dist/{dist-CAOIU8xq.js → dist-DJZOILzq.js} +1 -1
- package/dist/{genClient-HHiOUj56.js → genClient-5JkKKac8.js} +6 -7
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2 -2
- package/dist/ui-sdk.umd.cjs +675 -675
- package/dist/{useValidation-CEed9cxY.js → useValidation-Dmm2xos_.js} +1 -1
- package/dist/{useWtTable-DLWucXPx.js → useWtTable-CUpN0LZ5.js} +1 -1
- package/dist/{vue-i18n-Db_oYfO8.js → vue-i18n-B88GcHzn.js} +215 -215
- package/dist/{vue-router-Dwey8MMv.js → vue-router-CobN9tLi.js} +1 -1
- package/dist/{wt-action-bar-DtAECixF.js → wt-action-bar-BpuER6TA.js} +1 -1
- package/dist/{wt-chat-emoji-CPKosJ8P.js → wt-chat-emoji-zW3fKPW8.js} +1 -1
- package/dist/{wt-datepicker-BgjjbOMX.js → wt-datepicker-BS3przUJ.js} +2 -2
- package/dist/{wt-display-chip-items-CK-cnYdD.js → wt-display-chip-items-D-lzTp0d.js} +1 -1
- package/dist/{wt-expansion-card-BT586Mul.js → wt-expansion-card-8YzHs8F1.js} +1 -1
- package/dist/{wt-galleria-DMCgiiju.js → wt-galleria-CmaNfz7E.js} +2 -2
- package/dist/{wt-icon-action-DJzm0kEk.js → wt-icon-action-B8vuj9cC.js} +1 -1
- package/dist/{wt-pagination-G2ZGU4Pi.js → wt-pagination-DLRMTDRV.js} +1 -1
- package/dist/{wt-player-CFrKSilF.js → wt-player-CqjIR3Q-.js} +2 -2
- package/dist/{wt-popover-BCYPu5NC.js → wt-popover-DuZFw3bg.js} +1 -1
- package/dist/{wt-search-bar-DosqJLXT.js → wt-search-bar-CE4WhuJ6.js} +2 -2
- package/dist/{wt-selection-popup-CjYw4ppb.js → wt-selection-popup-Bd4EuLl-.js} +1 -1
- package/dist/{wt-send-message-popup-C4XEqrKj.js → wt-send-message-popup-CiswBW69.js} +287 -306
- package/dist/{wt-slider-BPzRTeYU.js → wt-slider-Co6hZQu_.js} +1 -1
- package/dist/{wt-start-page-BFQExFUj.js → wt-start-page-Bp7b0ir-.js} +1 -1
- package/dist/{wt-status-select-Dnv9tj7o.js → wt-status-select-z4n_FL2z.js} +1 -1
- package/dist/{wt-table-PR_Kx7Sv.js → wt-table-C-DMIrud.js} +2 -2
- package/dist/{wt-table-column-select-CmbjLO9b.js → wt-table-column-select-BtFhZKPT.js} +26 -19
- package/dist/{wt-timepicker-B4MOaSEZ.js → wt-timepicker-D-tnO-gX.js} +2 -2
- package/dist/{wt-tree-BYk31Ees.js → wt-tree-BH2o2iCt.js} +843 -844
- package/dist/{wt-tree-table-ZJSw_3hx.js → wt-tree-table-D4nCNUq_.js} +1 -1
- package/dist/{wt-type-extension-value-input-CuxKUgu-.js → wt-type-extension-value-input-DTjVuaQe.js} +3 -3
- package/dist/{wt-vidstack-player-O1Xcyw-A.js → wt-vidstack-player-BUFABzVR.js} +997 -991
- package/package.json +6 -2
- package/src/api/transformers/starToSearch/starToSearch.transformer.js +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +21 -2
- package/src/components/wt-textarea/wt-textarea.vue +12 -1
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +16 -0
- package/src/composables/useCachedItemInstanceName/useCachedItemInstanceName.js +1 -1
- package/src/modules/AuditForm/components/audit-form.vue +1 -1
- package/src/modules/CardStoreModule/store/CardStoreModule.js +1 -1
- package/src/modules/TableVariableColumnSelect/components/__tests__/wt-table-variable-column-select.spec.ts +101 -0
- package/src/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue +278 -0
- package/src/modules/TableVariableColumnSelect/composable/__tests__/useTableVariableHeaders.spec.ts +129 -0
- package/src/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.ts +59 -0
- package/src/modules/TableVariableColumnSelect/index.ts +7 -0
- package/src/modules/Userinfo/mappings/mappings.ts +1 -1
- package/src/modules/Userinfo/stores/userinfoStore.ts +1 -1
- package/src/scripts/debounce.js +1 -1
- package/src/scripts/logger.js +1 -1
- package/src/scripts/updateObject.js +1 -2
- package/src/store/BaseStoreModules/BaseStoreModule.js +1 -1
- package/src/store/new/helpers/createStoreModule.js +1 -1
- package/src/store/new/modules/baseStoreModule/baseStoreModule.js +1 -1
- package/src/store/new/modules/cardStoreModule/cardStoreModule.js +1 -1
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +11 -0
- package/types/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue.d.ts +17 -0
- package/types/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.d.ts +14 -0
- package/types/modules/TableVariableColumnSelect/index.d.ts +2 -0
- package/dist/debounce-Bp3jy7S5.js +0 -133
- package/dist/dist-Crpfx4FA.js +0 -87
- package/dist/rolldown-runtime-BEcgMyyN.js +0 -27
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as e, t } from "./dist-
|
|
2
|
-
import { n, t as r } from "./dist-
|
|
1
|
+
import { n as e, t } from "./dist-DB8lC4KJ.js";
|
|
2
|
+
import { n, t as r } from "./dist-DJZOILzq.js";
|
|
3
3
|
import * as i from "vue";
|
|
4
4
|
import { Text as a, computed as o, createVNode as s, getCurrentScope as c, inject as l, onMounted as u, onScopeDispose as d, onUnmounted as f, ref as p, shallowRef as m, watch as h } from "vue";
|
|
5
|
-
|
|
5
|
+
n(), t();
|
|
6
6
|
function g(e, t) {
|
|
7
7
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
8
8
|
}
|
|
@@ -11,7 +11,7 @@ function v(e) {
|
|
|
11
11
|
_[e] || (_[e] = !0, g(e));
|
|
12
12
|
}
|
|
13
13
|
var y = typeof window < "u", b, x;
|
|
14
|
-
if (
|
|
14
|
+
if (e.env.NODE_ENV !== "production") {
|
|
15
15
|
let e = y && window.performance;
|
|
16
16
|
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (b = (t) => {
|
|
17
17
|
e.mark(t);
|
|
@@ -27,7 +27,7 @@ var w = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), T = (e, t, n) => E({
|
|
|
27
27
|
l: e,
|
|
28
28
|
k: t,
|
|
29
29
|
s: n
|
|
30
|
-
}), E = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), O = (e) => pe(e) === "[object Date]", ee = (e) => pe(e) === "[object RegExp]", te = (e) => B(e) && Object.keys(e).length === 0, k = Object.assign, ne = Object.create, A = (e = null) => ne(e), j, M = () => j ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window :
|
|
30
|
+
}), E = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), O = (e) => pe(e) === "[object Date]", ee = (e) => pe(e) === "[object RegExp]", te = (e) => B(e) && Object.keys(e).length === 0, k = Object.assign, ne = Object.create, A = (e = null) => ne(e), j, M = () => j ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : r === void 0 ? A() : r;
|
|
31
31
|
function re(e) {
|
|
32
32
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
33
33
|
}
|
|
@@ -61,8 +61,8 @@ function ce(e) {
|
|
|
61
61
|
function le(e, t) {
|
|
62
62
|
return oe.test(e) && se(t) ? "about:blank" : ie(e.toLowerCase() === "style" ? ce(t) : t);
|
|
63
63
|
}
|
|
64
|
-
function ue(
|
|
65
|
-
return
|
|
64
|
+
function ue(t) {
|
|
65
|
+
return t = t.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${le(t, n)}"`), t = t.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${le(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t) && (e.env.NODE_ENV !== "production" && g("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), t = t.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), t = t.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => se(n) ? `${t}about:blank` : e), t;
|
|
66
66
|
}
|
|
67
67
|
var de = Object.prototype.hasOwnProperty;
|
|
68
68
|
function N(e, t) {
|
|
@@ -132,7 +132,7 @@ function be(e, t) {
|
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
|
|
135
|
-
|
|
135
|
+
t();
|
|
136
136
|
function xe(e, t, n) {
|
|
137
137
|
return {
|
|
138
138
|
line: e,
|
|
@@ -182,9 +182,9 @@ var V = {
|
|
|
182
182
|
[V.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
183
183
|
[V.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
184
184
|
};
|
|
185
|
-
function we(
|
|
186
|
-
let { domain: i, messages: a, args: o } = r, s =
|
|
187
|
-
return c.code =
|
|
185
|
+
function we(t, n, r = {}) {
|
|
186
|
+
let { domain: i, messages: a, args: o } = r, s = e.env.NODE_ENV === "production" ? t : C((a || Ce)[t] || "", ...o || []), c = SyntaxError(String(s));
|
|
187
|
+
return c.code = t, n && (c.location = n), c.domain = i, c;
|
|
188
188
|
}
|
|
189
189
|
function Te(e) {
|
|
190
190
|
throw e;
|
|
@@ -729,54 +729,54 @@ function Ke(e) {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
var qe = "minifier";
|
|
732
|
-
function Je(
|
|
733
|
-
switch (
|
|
732
|
+
function Je(t) {
|
|
733
|
+
switch (t.t = t.type, t.type) {
|
|
734
734
|
case 0: {
|
|
735
|
-
let
|
|
736
|
-
Je(
|
|
735
|
+
let e = t;
|
|
736
|
+
Je(e.body), e.b = e.body, delete e.body;
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
739
|
case 1: {
|
|
740
|
-
let
|
|
740
|
+
let e = t, n = e.cases;
|
|
741
741
|
for (let e = 0; e < n.length; e++) Je(n[e]);
|
|
742
|
-
|
|
742
|
+
e.c = n, delete e.cases;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
745
|
case 2: {
|
|
746
|
-
let
|
|
746
|
+
let e = t, n = e.items;
|
|
747
747
|
for (let e = 0; e < n.length; e++) Je(n[e]);
|
|
748
|
-
|
|
748
|
+
e.i = n, delete e.items, e.static && (e.s = e.static, delete e.static);
|
|
749
749
|
break;
|
|
750
750
|
}
|
|
751
751
|
case 3:
|
|
752
752
|
case 9:
|
|
753
753
|
case 8:
|
|
754
754
|
case 7: {
|
|
755
|
-
let
|
|
756
|
-
|
|
755
|
+
let e = t;
|
|
756
|
+
e.value && (e.v = e.value, delete e.value);
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
case 6: {
|
|
760
|
-
let
|
|
761
|
-
Je(
|
|
760
|
+
let e = t;
|
|
761
|
+
Je(e.key), e.k = e.key, delete e.key, e.modifier && (Je(e.modifier), e.m = e.modifier, delete e.modifier);
|
|
762
762
|
break;
|
|
763
763
|
}
|
|
764
764
|
case 5: {
|
|
765
|
-
let
|
|
766
|
-
|
|
765
|
+
let e = t;
|
|
766
|
+
e.i = e.index, delete e.index;
|
|
767
767
|
break;
|
|
768
768
|
}
|
|
769
769
|
case 4: {
|
|
770
|
-
let
|
|
771
|
-
|
|
770
|
+
let e = t;
|
|
771
|
+
e.k = e.key, delete e.key;
|
|
772
772
|
break;
|
|
773
773
|
}
|
|
774
|
-
default: if (
|
|
774
|
+
default: if (e.env.NODE_ENV !== "production") throw we(V.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
775
775
|
domain: qe,
|
|
776
|
-
args: [
|
|
776
|
+
args: [t.type]
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
|
-
delete
|
|
779
|
+
delete t.type;
|
|
780
780
|
}
|
|
781
781
|
var Ye = "parser";
|
|
782
782
|
function Xe(e, t) {
|
|
@@ -844,42 +844,42 @@ function $e(e, t) {
|
|
|
844
844
|
function et(e, t) {
|
|
845
845
|
t.body ? tt(e, t.body) : e.push("null");
|
|
846
846
|
}
|
|
847
|
-
function tt(
|
|
848
|
-
let { helper: r } =
|
|
849
|
-
switch (
|
|
847
|
+
function tt(t, n) {
|
|
848
|
+
let { helper: r } = t;
|
|
849
|
+
switch (n.type) {
|
|
850
850
|
case 0:
|
|
851
|
-
et(
|
|
851
|
+
et(t, n);
|
|
852
852
|
break;
|
|
853
853
|
case 1:
|
|
854
|
-
$e(
|
|
854
|
+
$e(t, n);
|
|
855
855
|
break;
|
|
856
856
|
case 2:
|
|
857
|
-
Qe(
|
|
857
|
+
Qe(t, n);
|
|
858
858
|
break;
|
|
859
859
|
case 6:
|
|
860
|
-
Ze(
|
|
860
|
+
Ze(t, n);
|
|
861
861
|
break;
|
|
862
862
|
case 8:
|
|
863
|
-
|
|
863
|
+
t.push(JSON.stringify(n.value), n);
|
|
864
864
|
break;
|
|
865
865
|
case 7:
|
|
866
|
-
|
|
866
|
+
t.push(JSON.stringify(n.value), n);
|
|
867
867
|
break;
|
|
868
868
|
case 5:
|
|
869
|
-
|
|
869
|
+
t.push(`${r("interpolate")}(${r("list")}(${n.index}))`, n);
|
|
870
870
|
break;
|
|
871
871
|
case 4:
|
|
872
|
-
|
|
872
|
+
t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(n.key)}))`, n);
|
|
873
873
|
break;
|
|
874
874
|
case 9:
|
|
875
|
-
|
|
875
|
+
t.push(JSON.stringify(n.value), n);
|
|
876
876
|
break;
|
|
877
877
|
case 3:
|
|
878
|
-
|
|
878
|
+
t.push(JSON.stringify(n.value), n);
|
|
879
879
|
break;
|
|
880
|
-
default: if (
|
|
880
|
+
default: if (e.env.NODE_ENV !== "production") throw we(V.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
881
881
|
domain: Ye,
|
|
882
|
-
args: [
|
|
882
|
+
args: [n.type]
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
}
|
|
@@ -908,7 +908,7 @@ function rt(e, t = {}) {
|
|
|
908
908
|
}
|
|
909
909
|
//#endregion
|
|
910
910
|
//#region node_modules/@intlify/core-base/dist/core-base.mjs
|
|
911
|
-
|
|
911
|
+
t();
|
|
912
912
|
function it() {
|
|
913
913
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
914
914
|
}
|
|
@@ -1031,22 +1031,22 @@ function Mt(e, t = {}) {
|
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
1033
|
/* #__NO_SIDE_EFFECTS__ */
|
|
1034
|
-
function Nt(
|
|
1035
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(
|
|
1036
|
-
let r = L(
|
|
1037
|
-
|
|
1038
|
-
let i = (
|
|
1034
|
+
function Nt(t, n) {
|
|
1035
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(t)) {
|
|
1036
|
+
let r = L(n.warnHtmlMessage) ? n.warnHtmlMessage : !0;
|
|
1037
|
+
e.env.NODE_ENV !== "production" && kt(t, r);
|
|
1038
|
+
let i = (n.onCacheKey || At)(t), a = jt[i];
|
|
1039
1039
|
if (a) return a;
|
|
1040
|
-
let { ast: o, detectError: s } = Mt(
|
|
1041
|
-
...
|
|
1042
|
-
location:
|
|
1040
|
+
let { ast: o, detectError: s } = Mt(t, {
|
|
1041
|
+
...n,
|
|
1042
|
+
location: e.env.NODE_ENV !== "production",
|
|
1043
1043
|
jit: !0
|
|
1044
1044
|
}), c = wt(o);
|
|
1045
1045
|
return s ? c : jt[i] = c;
|
|
1046
1046
|
} else {
|
|
1047
|
-
if (
|
|
1048
|
-
let r =
|
|
1049
|
-
return r ? jt[r] || (jt[r] = wt(
|
|
1047
|
+
if (e.env.NODE_ENV !== "production" && !K(t)) return g(`the message that is resolve with key '${n.key}' is not supported for jit compilation`), (() => t);
|
|
1048
|
+
let r = t.cacheKey;
|
|
1049
|
+
return r ? jt[r] || (jt[r] = wt(t)) : wt(t);
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
var Pt = null;
|
|
@@ -1074,8 +1074,8 @@ var q = {
|
|
|
1074
1074
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1075
1075
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1076
1076
|
};
|
|
1077
|
-
function J(
|
|
1078
|
-
return we(
|
|
1077
|
+
function J(t) {
|
|
1078
|
+
return we(t, null, e.env.NODE_ENV === "production" ? void 0 : { messages: zt });
|
|
1079
1079
|
}
|
|
1080
1080
|
var zt = {
|
|
1081
1081
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
@@ -1301,10 +1301,10 @@ function hn(e) {
|
|
|
1301
1301
|
var gn = null, _n = /* @__NO_SIDE_EFFECTS__ */ () => gn, vn = null, yn = (e) => {
|
|
1302
1302
|
vn = e;
|
|
1303
1303
|
}, bn = () => vn, xn = 0;
|
|
1304
|
-
function Sn(
|
|
1305
|
-
let
|
|
1306
|
-
|
|
1307
|
-
let w = F(
|
|
1304
|
+
function Sn(t = {}) {
|
|
1305
|
+
let n = F(t.onWarn) ? t.onWarn : g, r = I(t.version) ? t.version : on, i = I(t.locale) || F(t.locale) ? t.locale : sn, a = F(i) ? sn : i, o = P(t.fallbackLocale) || B(t.fallbackLocale) || I(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : a, s = B(t.messages) ? t.messages : Cn(a), c = B(t.datetimeFormats) ? t.datetimeFormats : Cn(a), l = B(t.numberFormats) ? t.numberFormats : Cn(a), u = k(A(), t.modifiers, ln()), d = t.pluralRules || A(), f = F(t.missing) ? t.missing : null, p = L(t.missingWarn) || ee(t.missingWarn) ? t.missingWarn : !0, m = L(t.fallbackWarn) || ee(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, _ = !!t.unresolving, y = F(t.postTranslation) ? t.postTranslation : null, b = B(t.processor) ? t.processor : null, x = L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, C = F(t.messageCompiler) ? t.messageCompiler : un;
|
|
1306
|
+
e.env.NODE_ENV !== "production" && F(t.messageCompiler) && v(X(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1307
|
+
let w = F(t.messageResolver) ? t.messageResolver : fn || nn, T = F(t.localeFallbacker) ? t.localeFallbacker : mn || Ut, E = R(t.fallbackContext) ? t.fallbackContext : void 0, D = t, O = R(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), te = R(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), ne = R(D.__meta) ? D.__meta : {};
|
|
1308
1308
|
xn++;
|
|
1309
1309
|
let j = {
|
|
1310
1310
|
version: r,
|
|
@@ -1327,10 +1327,10 @@ function Sn(e = {}) {
|
|
|
1327
1327
|
messageResolver: w,
|
|
1328
1328
|
localeFallbacker: T,
|
|
1329
1329
|
fallbackContext: E,
|
|
1330
|
-
onWarn:
|
|
1330
|
+
onWarn: n,
|
|
1331
1331
|
__meta: ne
|
|
1332
1332
|
};
|
|
1333
|
-
return j.datetimeFormats = c, j.numberFormats = l, j.__datetimeFormatters = O, j.__numberFormatters = te,
|
|
1333
|
+
return j.datetimeFormats = c, j.numberFormats = l, j.__datetimeFormatters = O, j.__numberFormatters = te, e.env.NODE_ENV !== "production" && (j.__v_emitter = D.__v_emitter == null ? void 0 : D.__v_emitter), (e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && It(j, r, ne), j;
|
|
1334
1334
|
}
|
|
1335
1335
|
var Cn = (e) => ({ [e]: A() });
|
|
1336
1336
|
function wn(e, t) {
|
|
@@ -1339,24 +1339,24 @@ function wn(e, t) {
|
|
|
1339
1339
|
function Tn(e, t) {
|
|
1340
1340
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1341
1341
|
}
|
|
1342
|
-
function En(
|
|
1343
|
-
let { missing: o, onWarn: s } =
|
|
1344
|
-
if (
|
|
1345
|
-
let
|
|
1346
|
-
|
|
1342
|
+
function En(t, n, r, i, a) {
|
|
1343
|
+
let { missing: o, onWarn: s } = t;
|
|
1344
|
+
if (e.env.NODE_ENV !== "production") {
|
|
1345
|
+
let e = t.__v_emitter;
|
|
1346
|
+
e && e.emit("missing", {
|
|
1347
1347
|
locale: r,
|
|
1348
|
-
key:
|
|
1348
|
+
key: n,
|
|
1349
1349
|
type: a,
|
|
1350
|
-
groupId: `${a}:${
|
|
1350
|
+
groupId: `${a}:${n}`
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
1353
1353
|
if (o !== null) {
|
|
1354
|
-
let
|
|
1355
|
-
return I(
|
|
1356
|
-
} else return
|
|
1357
|
-
key:
|
|
1354
|
+
let e = o(t, r, n, a);
|
|
1355
|
+
return I(e) ? e : n;
|
|
1356
|
+
} else return e.env.NODE_ENV !== "production" && Tn(i, n) && s(X(Y.NOT_FOUND_KEY, {
|
|
1357
|
+
key: n,
|
|
1358
1358
|
locale: r
|
|
1359
|
-
})),
|
|
1359
|
+
})), n;
|
|
1360
1360
|
}
|
|
1361
1361
|
function Dn(e, t, n) {
|
|
1362
1362
|
let r = e;
|
|
@@ -1375,23 +1375,23 @@ var An = typeof Intl < "u", jn = {
|
|
|
1375
1375
|
dateTimeFormat: An && Intl.DateTimeFormat !== void 0,
|
|
1376
1376
|
numberFormat: An && Intl.NumberFormat !== void 0
|
|
1377
1377
|
};
|
|
1378
|
-
function Mn(
|
|
1379
|
-
let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } =
|
|
1380
|
-
if (
|
|
1381
|
-
if (!I(
|
|
1382
|
-
let [l, u, d, f] = Pn(...
|
|
1378
|
+
function Mn(t, ...n) {
|
|
1379
|
+
let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: c } = t;
|
|
1380
|
+
if (e.env.NODE_ENV !== "production" && !jn.dateTimeFormat) return o(X(Y.CANNOT_FORMAT_DATE)), "";
|
|
1381
|
+
if (!I(n[0]) && !O(n[0]) && !D(n[0])) return e.env.NODE_ENV !== "production" && o(X(Y.INVALID_DATE_ARGUMENT, { value: String(n[0]) })), "";
|
|
1382
|
+
let [l, u, d, f] = Pn(...n), p = L(d.missingWarn) ? d.missingWarn : t.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Bt(t, d), _ = s(t, a, g);
|
|
1383
1383
|
if (!I(l) || l === "") {
|
|
1384
1384
|
let e = new Intl.DateTimeFormat(g.replace(/!/g, ""), f);
|
|
1385
1385
|
return h ? e.formatToParts(u) : e.format(u);
|
|
1386
1386
|
}
|
|
1387
1387
|
let v = {}, y, b = null, x = g, S = null, C = "datetime format";
|
|
1388
|
-
for (let
|
|
1389
|
-
if (y = S = _[
|
|
1388
|
+
for (let n = 0; n < _.length; n++) {
|
|
1389
|
+
if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_DATE_FORMAT, {
|
|
1390
1390
|
key: l,
|
|
1391
1391
|
target: y
|
|
1392
|
-
})),
|
|
1393
|
-
let
|
|
1394
|
-
|
|
1392
|
+
})), e.env.NODE_ENV !== "production" && g !== y) {
|
|
1393
|
+
let e = t.__v_emitter;
|
|
1394
|
+
e && e.emit("fallback", {
|
|
1395
1395
|
type: C,
|
|
1396
1396
|
key: l,
|
|
1397
1397
|
from: x,
|
|
@@ -1400,7 +1400,7 @@ function Mn(e, ...t) {
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
1402
|
if (v = r[y] || {}, b = v[l], B(b)) break;
|
|
1403
|
-
En(
|
|
1403
|
+
En(t, l, y, p, C), x = S;
|
|
1404
1404
|
}
|
|
1405
1405
|
if (!B(b) || !I(y)) return i ? -1 : l;
|
|
1406
1406
|
let w = `${y}__${l}`;
|
|
@@ -1463,23 +1463,23 @@ function Fn(e, t, n) {
|
|
|
1463
1463
|
r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
function In(
|
|
1467
|
-
let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } =
|
|
1468
|
-
if (
|
|
1469
|
-
if (!D(
|
|
1470
|
-
let [l, u, d, f] = Rn(...
|
|
1466
|
+
function In(t, ...n) {
|
|
1467
|
+
let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: c } = t;
|
|
1468
|
+
if (e.env.NODE_ENV !== "production" && !jn.numberFormat) return o(X(Y.CANNOT_FORMAT_NUMBER)), "";
|
|
1469
|
+
if (!D(n[0])) return e.env.NODE_ENV !== "production" && o(X(Y.INVALID_NUMBER_ARGUMENT, { value: String(n[0]) })), "";
|
|
1470
|
+
let [l, u, d, f] = Rn(...n), p = L(d.missingWarn) ? d.missingWarn : t.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : t.fallbackWarn, h = !!d.part, g = Bt(t, d), _ = s(t, a, g);
|
|
1471
1471
|
if (!I(l) || l === "") {
|
|
1472
1472
|
let e = new Intl.NumberFormat(g.replace(/!/g, ""), f);
|
|
1473
1473
|
return h ? e.formatToParts(u) : e.format(u);
|
|
1474
1474
|
}
|
|
1475
1475
|
let v = {}, y, b = null, x = g, S = null, C = "number format";
|
|
1476
|
-
for (let
|
|
1477
|
-
if (y = S = _[
|
|
1476
|
+
for (let n = 0; n < _.length; n++) {
|
|
1477
|
+
if (y = S = _[n], e.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1478
1478
|
key: l,
|
|
1479
1479
|
target: y
|
|
1480
|
-
})),
|
|
1481
|
-
let
|
|
1482
|
-
|
|
1480
|
+
})), e.env.NODE_ENV !== "production" && g !== y) {
|
|
1481
|
+
let e = t.__v_emitter;
|
|
1482
|
+
e && e.emit("fallback", {
|
|
1483
1483
|
type: C,
|
|
1484
1484
|
key: l,
|
|
1485
1485
|
from: x,
|
|
@@ -1488,7 +1488,7 @@ function In(e, ...t) {
|
|
|
1488
1488
|
});
|
|
1489
1489
|
}
|
|
1490
1490
|
if (v = r[y] || {}, b = v[l], B(b)) break;
|
|
1491
|
-
En(
|
|
1491
|
+
En(t, l, y, p, C), x = S;
|
|
1492
1492
|
}
|
|
1493
1493
|
if (!B(b) || !I(y)) return i ? -1 : l;
|
|
1494
1494
|
let w = `${y}__${l}`;
|
|
@@ -1572,30 +1572,30 @@ function qn(e = {}) {
|
|
|
1572
1572
|
return m;
|
|
1573
1573
|
}
|
|
1574
1574
|
var Jn = () => "", Z = (e) => F(e);
|
|
1575
|
-
function Yn(
|
|
1576
|
-
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } =
|
|
1575
|
+
function Yn(t, ...n) {
|
|
1576
|
+
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = t, [l, u] = er(...n), d = L(u.missingWarn) ? u.missingWarn : t.missingWarn, f = L(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = L(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, m = !!u.resolvedMessage, h = I(u.default) || L(u.default) ? L(u.default) ? o ? l : () => l : u.default : r ? o ? l : () => l : null, _ = r || h != null && (I(h) || F(h)), v = Bt(t, u);
|
|
1577
1577
|
p && Xn(u);
|
|
1578
1578
|
let [y, b, x] = m ? [
|
|
1579
1579
|
l,
|
|
1580
1580
|
v,
|
|
1581
1581
|
c[v] || A()
|
|
1582
|
-
] : Zn(
|
|
1582
|
+
] : Zn(t, l, v, s, f, d), S = y, C = l;
|
|
1583
1583
|
if (!m && !(I(S) || K(S) || Z(S)) && _ && (S = h, C = S), !m && (!(I(S) || K(S) || Z(S)) || !I(b))) return a ? -1 : l;
|
|
1584
|
-
if (
|
|
1585
|
-
let w = !1, T = Z(S) ? S : Qn(
|
|
1584
|
+
if (e.env.NODE_ENV !== "production" && I(S) && t.messageCompiler == null) return g(`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 '${l}'.`), l;
|
|
1585
|
+
let w = !1, T = Z(S) ? S : Qn(t, l, b, S, C, () => {
|
|
1586
1586
|
w = !0;
|
|
1587
1587
|
});
|
|
1588
1588
|
if (w) return S;
|
|
1589
|
-
let E = $n(
|
|
1590
|
-
if (p && I(D) && (D = ue(D)),
|
|
1591
|
-
let
|
|
1589
|
+
let E = $n(t, T, qn(rr(t, b, x, u))), D = i ? i(E, l) : E;
|
|
1590
|
+
if (p && I(D) && (D = ue(D)), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1591
|
+
let e = {
|
|
1592
1592
|
timestamp: Date.now(),
|
|
1593
1593
|
key: I(l) ? l : Z(S) ? S.key : "",
|
|
1594
1594
|
locale: b || (Z(S) ? S.locale : ""),
|
|
1595
1595
|
format: I(S) ? S : Z(S) ? S.source : "",
|
|
1596
1596
|
message: D
|
|
1597
1597
|
};
|
|
1598
|
-
|
|
1598
|
+
e.meta = k({}, t.__meta, /* @__PURE__ */ _n() || {}), Lt(e);
|
|
1599
1599
|
}
|
|
1600
1600
|
return D;
|
|
1601
1601
|
}
|
|
@@ -1604,36 +1604,36 @@ function Xn(e) {
|
|
|
1604
1604
|
I(e.named[t]) && (e.named[t] = re(e.named[t]));
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
|
-
function Zn(
|
|
1608
|
-
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } =
|
|
1607
|
+
function Zn(t, n, r, i, a, o) {
|
|
1608
|
+
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = t, d = u(t, i, r), f = A(), p, m = null, h = r, g = null, _ = "translate";
|
|
1609
1609
|
for (let i = 0; i < d.length; i++) {
|
|
1610
|
-
p = g = d[i],
|
|
1611
|
-
key:
|
|
1610
|
+
p = g = d[i], e.env.NODE_ENV !== "production" && r !== p && !On(r, p) && wn(a, n) && c(X(Y.FALLBACK_TO_TRANSLATE, {
|
|
1611
|
+
key: n,
|
|
1612
1612
|
target: p
|
|
1613
1613
|
}));
|
|
1614
|
-
let u =
|
|
1615
|
-
|
|
1614
|
+
let u = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter;
|
|
1615
|
+
e.env.NODE_ENV !== "production" && r !== p && u && u.emit("fallback", {
|
|
1616
1616
|
type: _,
|
|
1617
|
-
key:
|
|
1617
|
+
key: n,
|
|
1618
1618
|
from: h,
|
|
1619
1619
|
to: g,
|
|
1620
|
-
groupId: `${_}:${
|
|
1620
|
+
groupId: `${_}:${n}`
|
|
1621
1621
|
}), f = s[p] || A();
|
|
1622
1622
|
let v = null, S, C;
|
|
1623
|
-
if (
|
|
1623
|
+
if (e.env.NODE_ENV !== "production" && y && u && (v = window.performance.now(), S = "intlify-message-resolve-start", C = "intlify-message-resolve-end", b && b(S)), (m = l(f, n)) === null && (m = f[n]), e.env.NODE_ENV !== "production" && y && u) {
|
|
1624
1624
|
let e = window.performance.now();
|
|
1625
1625
|
u && v && m && u.emit("message-resolve", {
|
|
1626
1626
|
type: "message-resolve",
|
|
1627
|
-
key:
|
|
1627
|
+
key: n,
|
|
1628
1628
|
message: m,
|
|
1629
1629
|
time: e - v,
|
|
1630
|
-
groupId: `${_}:${
|
|
1630
|
+
groupId: `${_}:${n}`
|
|
1631
1631
|
}), S && C && b && x && (b(C), x("intlify message resolve", S, C));
|
|
1632
1632
|
}
|
|
1633
1633
|
if (I(m) || K(m) || Z(m)) break;
|
|
1634
1634
|
if (!kn(p, d)) {
|
|
1635
|
-
let
|
|
1636
|
-
|
|
1635
|
+
let e = En(t, n, p, o, _);
|
|
1636
|
+
e !== n && (m = e);
|
|
1637
1637
|
}
|
|
1638
1638
|
h = g;
|
|
1639
1639
|
}
|
|
@@ -1643,41 +1643,41 @@ function Zn(e, t, r, i, a, o) {
|
|
|
1643
1643
|
f
|
|
1644
1644
|
];
|
|
1645
1645
|
}
|
|
1646
|
-
function Qn(
|
|
1647
|
-
let { messageCompiler: s, warnHtmlMessage: c } =
|
|
1646
|
+
function Qn(t, n, r, i, a, o) {
|
|
1647
|
+
let { messageCompiler: s, warnHtmlMessage: c } = t;
|
|
1648
1648
|
if (Z(i)) {
|
|
1649
1649
|
let e = i;
|
|
1650
|
-
return e.locale = e.locale || r, e.key = e.key ||
|
|
1650
|
+
return e.locale = e.locale || r, e.key = e.key || n, e;
|
|
1651
1651
|
}
|
|
1652
1652
|
if (s == null) {
|
|
1653
1653
|
let e = (() => i);
|
|
1654
|
-
return e.locale = r, e.key =
|
|
1654
|
+
return e.locale = r, e.key = n, e;
|
|
1655
1655
|
}
|
|
1656
|
-
let l =
|
|
1657
|
-
|
|
1658
|
-
let p = s(i, tr(
|
|
1659
|
-
if (
|
|
1656
|
+
let l = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, u = null, d, f;
|
|
1657
|
+
e.env.NODE_ENV !== "production" && y && l && (u = window.performance.now(), d = "intlify-message-compilation-start", f = "intlify-message-compilation-end", b && b(d));
|
|
1658
|
+
let p = s(i, tr(t, r, a, i, c, o));
|
|
1659
|
+
if (e.env.NODE_ENV !== "production" && y && l) {
|
|
1660
1660
|
let e = window.performance.now();
|
|
1661
1661
|
l && u && l.emit("message-compilation", {
|
|
1662
1662
|
type: "message-compilation",
|
|
1663
1663
|
message: i,
|
|
1664
1664
|
time: e - u,
|
|
1665
|
-
groupId: `translate:${
|
|
1665
|
+
groupId: `translate:${n}`
|
|
1666
1666
|
}), d && f && b && x && (b(f), x("intlify message compilation", d, f));
|
|
1667
1667
|
}
|
|
1668
|
-
return p.locale = r, p.key =
|
|
1668
|
+
return p.locale = r, p.key = n, p.source = i, p;
|
|
1669
1669
|
}
|
|
1670
|
-
function $n(
|
|
1671
|
-
let i =
|
|
1672
|
-
|
|
1673
|
-
let c =
|
|
1674
|
-
if (
|
|
1670
|
+
function $n(t, n, r) {
|
|
1671
|
+
let i = e.env.NODE_ENV === "production" ? void 0 : t.__v_emitter, a = null, o, s;
|
|
1672
|
+
e.env.NODE_ENV !== "production" && y && i && (a = window.performance.now(), o = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", b && b(o));
|
|
1673
|
+
let c = n(r);
|
|
1674
|
+
if (e.env.NODE_ENV !== "production" && y && i) {
|
|
1675
1675
|
let e = window.performance.now();
|
|
1676
1676
|
i && a && i.emit("message-evaluation", {
|
|
1677
1677
|
type: "message-evaluation",
|
|
1678
1678
|
value: c,
|
|
1679
1679
|
time: e - a,
|
|
1680
|
-
groupId: `translate:${
|
|
1680
|
+
groupId: `translate:${n.key}`
|
|
1681
1681
|
}), o && s && b && x && (b(s), x("intlify message evaluation", o, s));
|
|
1682
1682
|
}
|
|
1683
1683
|
return c;
|
|
@@ -1688,27 +1688,27 @@ function er(...e) {
|
|
|
1688
1688
|
let a = D(t) ? String(t) : (Z(t), t);
|
|
1689
1689
|
return D(n) ? i.plural = n : I(n) ? i.default = n : B(n) && !te(n) ? i.named = n : P(n) && (i.list = n), D(r) ? i.plural = r : I(r) ? i.default = r : B(r) && k(i, r), [a, i];
|
|
1690
1690
|
}
|
|
1691
|
-
function tr(
|
|
1691
|
+
function tr(t, n, r, i, a, o) {
|
|
1692
1692
|
return {
|
|
1693
|
-
locale:
|
|
1693
|
+
locale: n,
|
|
1694
1694
|
key: r,
|
|
1695
1695
|
warnHtmlMessage: a,
|
|
1696
|
-
onError: (
|
|
1697
|
-
if (o && o(
|
|
1698
|
-
let
|
|
1699
|
-
o &&
|
|
1700
|
-
message:
|
|
1701
|
-
error:
|
|
1702
|
-
start:
|
|
1703
|
-
end:
|
|
1696
|
+
onError: (n) => {
|
|
1697
|
+
if (o && o(n), e.env.NODE_ENV !== "production") {
|
|
1698
|
+
let e = nr(i), a = n.location && e && _e(e, n.location.start.offset, n.location.end.offset), o = t.__v_emitter;
|
|
1699
|
+
o && e && o.emit("compile-error", {
|
|
1700
|
+
message: e,
|
|
1701
|
+
error: n.message,
|
|
1702
|
+
start: n.location && n.location.start.offset,
|
|
1703
|
+
end: n.location && n.location.end.offset,
|
|
1704
1704
|
groupId: `translate:${r}`
|
|
1705
1705
|
});
|
|
1706
|
-
let s = `Message compilation error: ${
|
|
1706
|
+
let s = `Message compilation error: ${n.message}`;
|
|
1707
1707
|
throw SyntaxError(a ? `${s}\n${a}` : s);
|
|
1708
1708
|
}
|
|
1709
|
-
throw
|
|
1709
|
+
throw n;
|
|
1710
1710
|
},
|
|
1711
|
-
onCacheKey: (e) => T(
|
|
1711
|
+
onCacheKey: (e) => T(n, r, e)
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
1714
|
function nr(e) {
|
|
@@ -1739,7 +1739,7 @@ function rr(e, t, n, r) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
//#endregion
|
|
1741
1741
|
//#region node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1742
|
-
it(),
|
|
1742
|
+
it(), t();
|
|
1743
1743
|
var ir = "11.4.6";
|
|
1744
1744
|
function ar() {
|
|
1745
1745
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (M().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (M().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1757,10 +1757,10 @@ var Q = {
|
|
|
1757
1757
|
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
1758
1758
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
1759
1759
|
};
|
|
1760
|
-
function or(
|
|
1761
|
-
return we(
|
|
1760
|
+
function or(t, ...n) {
|
|
1761
|
+
return we(t, null, e.env.NODE_ENV === "production" ? void 0 : {
|
|
1762
1762
|
messages: sr,
|
|
1763
|
-
args:
|
|
1763
|
+
args: n
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
1766
|
var sr = {
|
|
@@ -1795,25 +1795,25 @@ var mr = /* #__PURE__*/ w("__injectWithOption"), hr = /* #__PURE__*/ w("__dispos
|
|
|
1795
1795
|
function _r(e, ...t) {
|
|
1796
1796
|
return C(gr[e], ...t);
|
|
1797
1797
|
}
|
|
1798
|
-
function vr(
|
|
1799
|
-
if (!R(
|
|
1800
|
-
for (let
|
|
1798
|
+
function vr(t) {
|
|
1799
|
+
if (!R(t) || K(t)) return t;
|
|
1800
|
+
for (let n in t) if (N(t, n)) if (!n.includes(".")) R(t[n]) && vr(t[n]);
|
|
1801
1801
|
else {
|
|
1802
|
-
let r =
|
|
1803
|
-
for (let
|
|
1804
|
-
if (r[
|
|
1805
|
-
if (r[
|
|
1806
|
-
|
|
1802
|
+
let r = n.split("."), i = r.length - 1, a = t, o = !1;
|
|
1803
|
+
for (let t = 0; t < i; t++) {
|
|
1804
|
+
if (r[t] === "__proto__") throw Error(`unsafe key: ${r[t]}`);
|
|
1805
|
+
if (r[t] in a || (a[r[t]] = A()), !R(a[r[t]])) {
|
|
1806
|
+
e.env.NODE_ENV !== "production" && g(_r($.IGNORE_OBJ_FLATTEN, { key: r[t] })), o = !0;
|
|
1807
1807
|
break;
|
|
1808
1808
|
}
|
|
1809
|
-
a = a[r[
|
|
1809
|
+
a = a[r[t]];
|
|
1810
1810
|
}
|
|
1811
|
-
if (o || (K(a) ? St.includes(r[i]) || delete
|
|
1811
|
+
if (o || (K(a) ? St.includes(r[i]) || delete t[n] : (a[r[i]] = t[n], delete t[n])), !K(a)) {
|
|
1812
1812
|
let e = a[r[i]];
|
|
1813
1813
|
R(e) && vr(e);
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
return
|
|
1816
|
+
return t;
|
|
1817
1817
|
}
|
|
1818
1818
|
function yr(e, t) {
|
|
1819
1819
|
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = B(n) ? n : P(r) ? A() : { [e]: A() };
|
|
@@ -1861,11 +1861,11 @@ var wr = () => [], Tr = () => !1, Er = 0;
|
|
|
1861
1861
|
function Dr(e) {
|
|
1862
1862
|
return ((t, n, r, i) => e(n, r, Cr() || void 0, i));
|
|
1863
1863
|
}
|
|
1864
|
-
function Or(
|
|
1865
|
-
let { __root:
|
|
1864
|
+
function Or(t = {}) {
|
|
1865
|
+
let { __root: n, __injectWithOption: r } = t, i = n === void 0, a = t.flatJson, s = y ? p : m, c = L(t.inheritLocale) ? t.inheritLocale : !0, l = s(n && c ? n.locale.value : I(t.locale) ? t.locale : sn), u = s(n && c ? n.fallbackLocale.value : I(t.fallbackLocale) || P(t.fallbackLocale) || B(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value), d = s(yr(l.value, t)), f = s(B(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), _ = s(B(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = n ? n.missingWarn : L(t.missingWarn) || ee(t.missingWarn) ? t.missingWarn : !0, b = n ? n.fallbackWarn : L(t.fallbackWarn) || ee(t.fallbackWarn) ? t.fallbackWarn : !0, x = n ? n.fallbackRoot : L(t.fallbackRoot) ? t.fallbackRoot : !0, S = !!t.fallbackFormat, C = F(t.missing) ? t.missing : null, w = F(t.missing) ? Dr(t.missing) : null, T = F(t.postTranslation) ? t.postTranslation : null, E = n ? n.warnHtmlMessage : L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, O = !!t.escapeParameter, te = n ? n.modifiers : B(t.modifiers) ? t.modifiers : {}, ne = t.pluralRules || n && n.pluralRules, A;
|
|
1866
1866
|
A = (() => {
|
|
1867
1867
|
i && yn(null);
|
|
1868
|
-
let
|
|
1868
|
+
let n = {
|
|
1869
1869
|
version: ir,
|
|
1870
1870
|
locale: l.value,
|
|
1871
1871
|
fallbackLocale: u.value,
|
|
@@ -1880,12 +1880,12 @@ function Or(e = {}) {
|
|
|
1880
1880
|
postTranslation: T === null ? void 0 : T,
|
|
1881
1881
|
warnHtmlMessage: E,
|
|
1882
1882
|
escapeParameter: O,
|
|
1883
|
-
messageResolver:
|
|
1884
|
-
messageCompiler:
|
|
1883
|
+
messageResolver: t.messageResolver,
|
|
1884
|
+
messageCompiler: t.messageCompiler,
|
|
1885
1885
|
__meta: { framework: "vue" }
|
|
1886
1886
|
};
|
|
1887
|
-
|
|
1888
|
-
let r = Sn(
|
|
1887
|
+
n.datetimeFormats = f.value, n.numberFormats = _.value, n.__datetimeFormatters = B(A) ? A.__datetimeFormatters : void 0, n.__numberFormatters = B(A) ? A.__numberFormatters : void 0, e.env.NODE_ENV !== "production" && (n.__v_emitter = B(A) ? A.__v_emitter : void 0);
|
|
1888
|
+
let r = Sn(n);
|
|
1889
1889
|
return i && yn(r), r;
|
|
1890
1890
|
})(), Dn(A, l.value, u.value);
|
|
1891
1891
|
function j() {
|
|
@@ -1923,29 +1923,29 @@ function Or(e = {}) {
|
|
|
1923
1923
|
function de(e, t) {
|
|
1924
1924
|
return e !== "translate" || !t.resolvedMessage;
|
|
1925
1925
|
}
|
|
1926
|
-
let z = (
|
|
1926
|
+
let z = (t, r, a, o, s, c) => {
|
|
1927
1927
|
j();
|
|
1928
1928
|
let l;
|
|
1929
1929
|
try {
|
|
1930
|
-
|
|
1930
|
+
e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = n ? bn() : void 0), l = t(A);
|
|
1931
1931
|
} finally {
|
|
1932
|
-
|
|
1932
|
+
e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = void 0);
|
|
1933
1933
|
}
|
|
1934
1934
|
if (a !== "translate exists" && D(l) && l === -1 || a === "translate exists" && !l) {
|
|
1935
|
-
let [
|
|
1936
|
-
if (
|
|
1937
|
-
key:
|
|
1935
|
+
let [t, i] = r();
|
|
1936
|
+
if (e.env.NODE_ENV !== "production" && n && I(t) && de(a, i) && (x && (wn(b, t) || Tn(v, t)) && g(_r($.FALLBACK_TO_ROOT, {
|
|
1937
|
+
key: t,
|
|
1938
1938
|
type: a
|
|
1939
|
-
})),
|
|
1940
|
-
let { __v_emitter:
|
|
1941
|
-
|
|
1939
|
+
})), e.env.NODE_ENV !== "production")) {
|
|
1940
|
+
let { __v_emitter: e } = A;
|
|
1941
|
+
e && x && e.emit("fallback", {
|
|
1942
1942
|
type: a,
|
|
1943
|
-
key:
|
|
1943
|
+
key: t,
|
|
1944
1944
|
to: "global",
|
|
1945
|
-
groupId: `${a}:${
|
|
1945
|
+
groupId: `${a}:${t}`
|
|
1946
1946
|
});
|
|
1947
1947
|
}
|
|
1948
|
-
return
|
|
1948
|
+
return n && x ? o(n) : s(t);
|
|
1949
1949
|
} else if (c(l)) return l;
|
|
1950
1950
|
else
|
|
1951
1951
|
/* istanbul ignore next */
|
|
@@ -2016,7 +2016,7 @@ function Or(e = {}) {
|
|
|
2016
2016
|
return t;
|
|
2017
2017
|
}
|
|
2018
2018
|
function we(e) {
|
|
2019
|
-
return Ce(e) ?? (
|
|
2019
|
+
return Ce(e) ?? (n && n.tm(e) || {});
|
|
2020
2020
|
}
|
|
2021
2021
|
function Te(e) {
|
|
2022
2022
|
return d.value[e] || {};
|
|
@@ -2053,9 +2053,9 @@ function Or(e = {}) {
|
|
|
2053
2053
|
function je(e, t) {
|
|
2054
2054
|
_.value[e] = k(_.value[e] || {}, t), A.numberFormats = _.value, zn(A, e, t);
|
|
2055
2055
|
}
|
|
2056
|
-
Er++,
|
|
2056
|
+
Er++, n && y && (h(n.locale, (e) => {
|
|
2057
2057
|
c && (l.value = e, A.locale = e, Dn(A, l.value, u.value));
|
|
2058
|
-
}), h(
|
|
2058
|
+
}), h(n.fallbackLocale, (e) => {
|
|
2059
2059
|
c && (u.value = e, A.fallbackLocale = e, Dn(A, l.value, u.value));
|
|
2060
2060
|
}));
|
|
2061
2061
|
let W = {
|
|
@@ -2066,7 +2066,7 @@ function Or(e = {}) {
|
|
|
2066
2066
|
return c;
|
|
2067
2067
|
},
|
|
2068
2068
|
set inheritLocale(e) {
|
|
2069
|
-
c = e, e &&
|
|
2069
|
+
c = e, e && n && (l.value = n.locale.value, u.value = n.fallbackLocale.value, Dn(A, l.value, u.value));
|
|
2070
2070
|
},
|
|
2071
2071
|
get availableLocales() {
|
|
2072
2072
|
return Object.keys(d.value).sort();
|
|
@@ -2127,7 +2127,7 @@ function Or(e = {}) {
|
|
|
2127
2127
|
setMissingHandler: ue,
|
|
2128
2128
|
[pr]: Se
|
|
2129
2129
|
};
|
|
2130
|
-
return W.datetimeFormats = ae, W.numberFormats = oe, W.rt = pe, W.te = V, W.tm = we, W.d = me, W.n = he, W.getDateTimeFormat = H, W.setDateTimeFormat = Oe, W.mergeDateTimeFormat = U, W.getNumberFormat = ke, W.setNumberFormat = Ae, W.mergeNumberFormat = je, W[mr] = r, W[cr] = ve, W[lr] = xe, W[ur] = ye,
|
|
2130
|
+
return W.datetimeFormats = ae, W.numberFormats = oe, W.rt = pe, W.te = V, W.tm = we, W.d = me, W.n = he, W.getDateTimeFormat = H, W.setDateTimeFormat = Oe, W.mergeDateTimeFormat = U, W.getNumberFormat = ke, W.setNumberFormat = Ae, W.mergeNumberFormat = je, W[mr] = r, W[cr] = ve, W[lr] = xe, W[ur] = ye, e.env.NODE_ENV !== "production" && (W[dr] = (e) => {
|
|
2131
2131
|
A.__v_emitter = e;
|
|
2132
2132
|
}, W[fr] = () => {
|
|
2133
2133
|
A.__v_emitter = void 0;
|
|
@@ -2177,43 +2177,43 @@ k({
|
|
|
2177
2177
|
format: { type: [String, Object] }
|
|
2178
2178
|
}, jr);
|
|
2179
2179
|
var Mr = /* #__PURE__*/ w("global-vue-i18n");
|
|
2180
|
-
function Nr(
|
|
2181
|
-
let
|
|
2182
|
-
if (
|
|
2183
|
-
if (!
|
|
2184
|
-
let r = Pr(
|
|
2185
|
-
if (o === "global") return xr(i,
|
|
2180
|
+
function Nr(t = {}) {
|
|
2181
|
+
let n = Cr();
|
|
2182
|
+
if (n == null) throw or(Q.MUST_BE_CALL_SETUP_TOP);
|
|
2183
|
+
if (!n.isCE && n.appContext.app != null && !n.appContext.app.__VUE_I18N_SYMBOL__) throw or(Q.NOT_INSTALLED);
|
|
2184
|
+
let r = Pr(n), i = Ir(r), a = br(n), o = Fr(t, a);
|
|
2185
|
+
if (o === "global") return xr(i, t, a), i;
|
|
2186
2186
|
if (o === "parent") {
|
|
2187
|
-
let a = Lr(r,
|
|
2188
|
-
return a ??= (
|
|
2187
|
+
let a = Lr(r, n, t.__useComponent);
|
|
2188
|
+
return a ??= (e.env.NODE_ENV !== "production" && g(_r($.NOT_FOUND_PARENT_SCOPE)), i), a;
|
|
2189
2189
|
}
|
|
2190
2190
|
if (o === "isolated") {
|
|
2191
2191
|
if (r.mode !== "composition") throw or(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
2192
|
-
let a = r, o = k({},
|
|
2193
|
-
o.__root = Lr(r,
|
|
2192
|
+
let a = r, o = k({}, t);
|
|
2193
|
+
o.__root = Lr(r, n) || i;
|
|
2194
2194
|
let s = Or(o);
|
|
2195
2195
|
a.__composerExtend && (s[hr] = a.__composerExtend(s));
|
|
2196
2196
|
let l = null;
|
|
2197
|
-
if (
|
|
2197
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2198
2198
|
l = ve();
|
|
2199
2199
|
let e = s;
|
|
2200
2200
|
e[dr] && e[dr](l), l.on("*", Ar);
|
|
2201
2201
|
}
|
|
2202
2202
|
return c() && d(() => {
|
|
2203
|
-
if (
|
|
2203
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2204
2204
|
l && l.off("*", Ar);
|
|
2205
2205
|
let e = s;
|
|
2206
2206
|
e[fr] && e[fr]();
|
|
2207
2207
|
}
|
|
2208
|
-
let
|
|
2209
|
-
|
|
2208
|
+
let t = s[hr];
|
|
2209
|
+
t && (t(), delete s[hr]);
|
|
2210
2210
|
}), s;
|
|
2211
2211
|
}
|
|
2212
|
-
let s = r, l = s.__getInstance(
|
|
2212
|
+
let s = r, l = s.__getInstance(n);
|
|
2213
2213
|
if (l == null) {
|
|
2214
|
-
let
|
|
2215
|
-
"__i18n" in a && (
|
|
2216
|
-
} else
|
|
2214
|
+
let e = k({}, t);
|
|
2215
|
+
"__i18n" in a && (e.__i18n = a.__i18n), i && (e.__root = i), l = Or(e), s.__composerExtend && (l[hr] = s.__composerExtend(l)), zr(s, n, l), s.__setInstance(n, l);
|
|
2216
|
+
} else e.env.NODE_ENV !== "production" && o === "local" && g(_r($.DUPLICATE_USE_I18N_CALLING));
|
|
2217
2217
|
return l;
|
|
2218
2218
|
}
|
|
2219
2219
|
function Pr(e) {
|
|
@@ -2245,20 +2245,20 @@ function Lr(e, t, n = !1) {
|
|
|
2245
2245
|
function Rr(e, t = !1) {
|
|
2246
2246
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2247
2247
|
}
|
|
2248
|
-
function zr(
|
|
2248
|
+
function zr(t, n, r) {
|
|
2249
2249
|
let i = null;
|
|
2250
2250
|
u(() => {
|
|
2251
|
-
if (
|
|
2252
|
-
|
|
2251
|
+
if (e.env.NODE_ENV !== "production") {
|
|
2252
|
+
n.__VUE_I18N__ = r, i = ve();
|
|
2253
2253
|
let e = r;
|
|
2254
2254
|
e[dr] && e[dr](i), i.on("*", Ar);
|
|
2255
2255
|
}
|
|
2256
|
-
},
|
|
2256
|
+
}, n), f(() => {
|
|
2257
2257
|
let a = r;
|
|
2258
|
-
|
|
2258
|
+
e.env.NODE_ENV !== "production" && (i && i.off("*", Ar), a[fr] && a[fr](), delete n.__VUE_I18N__), t.__deleteInstance(n);
|
|
2259
2259
|
let o = a[hr];
|
|
2260
2260
|
o && (o(), delete a[hr]);
|
|
2261
|
-
},
|
|
2261
|
+
}, n);
|
|
2262
2262
|
}
|
|
2263
2263
|
if (k({
|
|
2264
2264
|
value: {
|
|
@@ -2266,10 +2266,10 @@ if (k({
|
|
|
2266
2266
|
required: !0
|
|
2267
2267
|
},
|
|
2268
2268
|
format: { type: [String, Object] }
|
|
2269
|
-
}, jr), ar(), dn(Nt), pn(rn), hn(Wt),
|
|
2269
|
+
}, jr), ar(), dn(Nt), pn(rn), hn(Wt), e.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2270
2270
|
let e = M();
|
|
2271
2271
|
e.__INTLIFY__ = !0, Ft(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2272
2272
|
}
|
|
2273
|
-
|
|
2273
|
+
e.env.NODE_ENV;
|
|
2274
2274
|
//#endregion
|
|
2275
2275
|
export { Nr as t };
|