@vc-shell/framework 1.1.61 → 1.1.63
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/CHANGELOG.md +8 -0
- package/core/composables/useLanguages/index.ts +16 -73
- package/core/services/index.ts +1 -0
- package/core/services/language-service.ts +88 -0
- package/core/services/menu-service.ts +9 -20
- package/core/types/index.ts +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +4 -15
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +1 -0
- package/dist/core/services/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts +15 -0
- package/dist/core/services/language-service.d.ts.map +1 -0
- package/dist/core/services/menu-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +12621 -9109
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
- package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
- package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
- package/dist/vendor-core-js-DFA7rceR.js +1206 -0
- package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
- package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
- package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
- package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
- package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
- package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
- package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
- package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
- package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
- package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
- package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
- package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
- package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
- package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
- package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
- package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
- package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
- package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
- package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
- package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
- package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
- package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
- package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
- package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
- package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
- package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
- package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
- package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
- package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
- package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
- package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
- package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
- package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
- package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
- package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
- package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
- package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
- package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
- package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
- package/package.json +5 -5
- package/shared/components/language-selector/language-selector.vue +16 -8
- package/shared/components/theme-selector/theme-selector.vue +5 -10
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
- package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
- package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
- package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
- package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
- package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
- package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
- package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
- package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
|
@@ -1,1359 +0,0 @@
|
|
|
1
|
-
import { C as Yt, D as qe, u as B, c as jt, a as Ae, b as De, i as K, A as Bt, s as Xt, g as Jt, N as Kt, d as zt, e as qt, f as Qe, h as Qt, j as Se, p as ye, t as Ve, M as Me, k as Ue, l as We, m as $e, n as we, o as Zt, q as ea, r as ta, v as aa, w as na, x as sa, y as la, z as ra, B as oa } from "./vendor-intlify-core-base-FyGSkd6r.js";
|
|
2
|
-
import { w as Ze, e as N, l as ia, B as S, a as F, C as Ne, b, i as P, f as le, r as re, d as A, c as C, D as se, k as oe, j as R, g as $, n as z, h as Te, o as ca, m as J } from "./vendor-intlify-shared-BMbzEQSk.js";
|
|
3
|
-
import { effectScope as _a, ref as ua, shallowRef as ma, computed as X, watch as ge, isRef as fa, defineComponent as Le, getCurrentInstance as q, h as et, Fragment as tt, inject as ga, onMounted as Ea, onUnmounted as da, createVNode as ba, Text as va } from "vue";
|
|
4
|
-
import { s as Ia } from "./vendor-vue-devtools-api-aVYGocXp.js";
|
|
5
|
-
import { c as pa } from "./vendor-intlify-message-compiler-D_vL9-DK.js";
|
|
6
|
-
/*!
|
|
7
|
-
* vue-i18n v11.1.10
|
|
8
|
-
* (c) 2025 kazuya kawaguchi
|
|
9
|
-
* Released under the MIT License.
|
|
10
|
-
*/
|
|
11
|
-
const at = "11.1.10";
|
|
12
|
-
function Na() {
|
|
13
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (J().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (J().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (J().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (J().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
14
|
-
}
|
|
15
|
-
const E = {
|
|
16
|
-
// composer module errors
|
|
17
|
-
UNEXPECTED_RETURN_TYPE: Qt,
|
|
18
|
-
// 24
|
|
19
|
-
// legacy module errors
|
|
20
|
-
INVALID_ARGUMENT: 25,
|
|
21
|
-
// i18n module errors
|
|
22
|
-
MUST_BE_CALL_SETUP_TOP: 26,
|
|
23
|
-
NOT_INSTALLED: 27,
|
|
24
|
-
// directive module errors
|
|
25
|
-
REQUIRED_VALUE: 28,
|
|
26
|
-
INVALID_VALUE: 29,
|
|
27
|
-
// vue-devtools errors
|
|
28
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
|
|
29
|
-
NOT_INSTALLED_WITH_PROVIDE: 31,
|
|
30
|
-
// unexpected error
|
|
31
|
-
UNEXPECTED_ERROR: 32,
|
|
32
|
-
// not compatible legacy vue-i18n constructor
|
|
33
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
34
|
-
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
35
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34,
|
|
36
|
-
// duplicate `useI18n` calling
|
|
37
|
-
DUPLICATE_USE_I18N_CALLING: 35
|
|
38
|
-
};
|
|
39
|
-
function L(e, ...t) {
|
|
40
|
-
return pa(e, null, process.env.NODE_ENV !== "production" ? { messages: Ta, args: t } : void 0);
|
|
41
|
-
}
|
|
42
|
-
const Ta = {
|
|
43
|
-
[E.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
44
|
-
[E.INVALID_ARGUMENT]: "Invalid argument",
|
|
45
|
-
[E.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
46
|
-
[E.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
47
|
-
[E.UNEXPECTED_ERROR]: "Unexpected error",
|
|
48
|
-
[E.REQUIRED_VALUE]: "Required in value: {0}",
|
|
49
|
-
[E.INVALID_VALUE]: "Invalid value",
|
|
50
|
-
[E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
51
|
-
[E.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
52
|
-
[E.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
53
|
-
[E.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly",
|
|
54
|
-
[E.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope"
|
|
55
|
-
}, Ee = /* @__PURE__ */ S("__translateVNode"), de = /* @__PURE__ */ S("__datetimeParts"), be = /* @__PURE__ */ S("__numberParts"), w = /* @__PURE__ */ S("__enableEmitter"), Q = /* @__PURE__ */ S("__disableEmitter"), nt = S("__setPluralRules"), st = /* @__PURE__ */ S("__injectWithOption"), ve = /* @__PURE__ */ S("__dispose"), D = {
|
|
56
|
-
FALLBACK_TO_ROOT: Yt,
|
|
57
|
-
// 8
|
|
58
|
-
NOT_FOUND_PARENT_SCOPE: 9,
|
|
59
|
-
IGNORE_OBJ_FLATTEN: 10,
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated will be removed at vue-i18n v12
|
|
62
|
-
*/
|
|
63
|
-
DEPRECATE_LEGACY_MODE: 11,
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated will be removed at vue-i18n v12
|
|
66
|
-
*/
|
|
67
|
-
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
68
|
-
}, La = {
|
|
69
|
-
[D.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
70
|
-
[D.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
71
|
-
[D.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated will be removed at vue-i18n v12
|
|
74
|
-
*/
|
|
75
|
-
[D.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
76
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated will be removed at vue-i18n v12
|
|
79
|
-
*/
|
|
80
|
-
[D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
81
|
-
};
|
|
82
|
-
function te(e, ...t) {
|
|
83
|
-
return ia(La[e], ...t);
|
|
84
|
-
}
|
|
85
|
-
function Z(e) {
|
|
86
|
-
if (!R(e) || K(e))
|
|
87
|
-
return e;
|
|
88
|
-
for (const t in e)
|
|
89
|
-
if (oe(e, t))
|
|
90
|
-
if (!t.includes("."))
|
|
91
|
-
R(e[t]) && Z(e[t]);
|
|
92
|
-
else {
|
|
93
|
-
const s = t.split("."), n = s.length - 1;
|
|
94
|
-
let a = e, o = !1;
|
|
95
|
-
for (let r = 0; r < n; r++) {
|
|
96
|
-
if (s[r] === "__proto__")
|
|
97
|
-
throw new Error(`unsafe key: ${s[r]}`);
|
|
98
|
-
if (s[r] in a || (a[s[r]] = C()), !R(a[s[r]])) {
|
|
99
|
-
process.env.NODE_ENV !== "production" && Te(te(D.IGNORE_OBJ_FLATTEN, {
|
|
100
|
-
key: s[r]
|
|
101
|
-
})), o = !0;
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
a = a[s[r]];
|
|
105
|
-
}
|
|
106
|
-
if (o || (K(a) ? Bt.includes(s[n]) || delete e[t] : (a[s[n]] = e[t], delete e[t])), !K(a)) {
|
|
107
|
-
const r = a[s[n]];
|
|
108
|
-
R(r) && Z(r);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return e;
|
|
112
|
-
}
|
|
113
|
-
function Oe(e, t) {
|
|
114
|
-
const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t, r = F(s) ? s : P(n) ? C() : { [e]: C() };
|
|
115
|
-
if (P(n) && n.forEach((c) => {
|
|
116
|
-
if ("locale" in c && "resource" in c) {
|
|
117
|
-
const { locale: u, resource: m } = c;
|
|
118
|
-
u ? (r[u] = r[u] || C(), se(m, r[u])) : se(m, r);
|
|
119
|
-
} else
|
|
120
|
-
b(c) && se(JSON.parse(c), r);
|
|
121
|
-
}), a == null && o)
|
|
122
|
-
for (const c in r)
|
|
123
|
-
oe(r, c) && Z(r[c]);
|
|
124
|
-
return r;
|
|
125
|
-
}
|
|
126
|
-
function lt(e) {
|
|
127
|
-
return e.type;
|
|
128
|
-
}
|
|
129
|
-
function rt(e, t, s) {
|
|
130
|
-
let n = R(t.messages) ? t.messages : C();
|
|
131
|
-
"__i18nGlobal" in s && (n = Oe(e.locale.value, {
|
|
132
|
-
messages: n,
|
|
133
|
-
__i18n: s.__i18nGlobal
|
|
134
|
-
}));
|
|
135
|
-
const a = Object.keys(n);
|
|
136
|
-
a.length && a.forEach((o) => {
|
|
137
|
-
e.mergeLocaleMessage(o, n[o]);
|
|
138
|
-
});
|
|
139
|
-
{
|
|
140
|
-
if (R(t.datetimeFormats)) {
|
|
141
|
-
const o = Object.keys(t.datetimeFormats);
|
|
142
|
-
o.length && o.forEach((r) => {
|
|
143
|
-
e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
if (R(t.numberFormats)) {
|
|
147
|
-
const o = Object.keys(t.numberFormats);
|
|
148
|
-
o.length && o.forEach((r) => {
|
|
149
|
-
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function xe(e) {
|
|
155
|
-
return ba(va, null, e, 0);
|
|
156
|
-
}
|
|
157
|
-
const Ge = "__INTLIFY_META__", He = () => [], Oa = () => !1;
|
|
158
|
-
let Ye = 0;
|
|
159
|
-
function je(e) {
|
|
160
|
-
return (t, s, n, a) => e(s, n, q() || void 0, a);
|
|
161
|
-
}
|
|
162
|
-
const ha = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
163
|
-
const e = q();
|
|
164
|
-
let t = null;
|
|
165
|
-
return e && (t = lt(e)[Ge]) ? { [Ge]: t } : null;
|
|
166
|
-
};
|
|
167
|
-
function he(e = {}) {
|
|
168
|
-
const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o = re ? ua : ma;
|
|
169
|
-
let r = N(e.inheritLocale) ? e.inheritLocale : !0;
|
|
170
|
-
const c = o(
|
|
171
|
-
// prettier-ignore
|
|
172
|
-
t && r ? t.locale.value : b(e.locale) ? e.locale : qe
|
|
173
|
-
), u = o(
|
|
174
|
-
// prettier-ignore
|
|
175
|
-
t && r ? t.fallbackLocale.value : b(e.fallbackLocale) || P(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
176
|
-
), m = o(Oe(c.value, e)), d = o(F(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(F(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
177
|
-
let v = t ? t.missingWarn : N(e.missingWarn) || le(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : N(e.fallbackWarn) || le(e.fallbackWarn) ? e.fallbackWarn : !0, O = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, y = $(e.missing) ? e.missing : null, k = $(e.missing) ? je(e.missing) : null, V = $(e.postTranslation) ? e.postTranslation : null, G = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, H = !!e.escapeParameter;
|
|
178
|
-
const Y = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
179
|
-
let j = e.pluralRules || t && t.pluralRules, _;
|
|
180
|
-
_ = (() => {
|
|
181
|
-
n && Se(null);
|
|
182
|
-
const l = {
|
|
183
|
-
version: at,
|
|
184
|
-
locale: c.value,
|
|
185
|
-
fallbackLocale: u.value,
|
|
186
|
-
messages: m.value,
|
|
187
|
-
modifiers: Y,
|
|
188
|
-
pluralRules: j,
|
|
189
|
-
missing: k === null ? void 0 : k,
|
|
190
|
-
missingWarn: v,
|
|
191
|
-
fallbackWarn: T,
|
|
192
|
-
fallbackFormat: h,
|
|
193
|
-
unresolving: !0,
|
|
194
|
-
postTranslation: V === null ? void 0 : V,
|
|
195
|
-
warnHtmlMessage: G,
|
|
196
|
-
escapeParameter: H,
|
|
197
|
-
messageResolver: e.messageResolver,
|
|
198
|
-
messageCompiler: e.messageCompiler,
|
|
199
|
-
__meta: { framework: "vue" }
|
|
200
|
-
};
|
|
201
|
-
l.datetimeFormats = d.value, l.numberFormats = f.value, l.__datetimeFormatters = F(_) ? _.__datetimeFormatters : void 0, l.__numberFormatters = F(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (l.__v_emitter = F(_) ? _.__v_emitter : void 0);
|
|
202
|
-
const i = jt(l);
|
|
203
|
-
return n && Se(i), i;
|
|
204
|
-
})(), B(_, c.value, u.value);
|
|
205
|
-
const me = X({
|
|
206
|
-
get: () => c.value,
|
|
207
|
-
set: (l) => {
|
|
208
|
-
_.locale = l, c.value = l;
|
|
209
|
-
}
|
|
210
|
-
}), gt = X({
|
|
211
|
-
get: () => u.value,
|
|
212
|
-
set: (l) => {
|
|
213
|
-
_.fallbackLocale = l, u.value = l, B(_, c.value, l);
|
|
214
|
-
}
|
|
215
|
-
}), Et = X(() => m.value), dt = /* @__PURE__ */ X(() => d.value), bt = /* @__PURE__ */ X(() => f.value);
|
|
216
|
-
function vt() {
|
|
217
|
-
return $(V) ? V : null;
|
|
218
|
-
}
|
|
219
|
-
function It(l) {
|
|
220
|
-
V = l, _.postTranslation = l;
|
|
221
|
-
}
|
|
222
|
-
function pt() {
|
|
223
|
-
return y;
|
|
224
|
-
}
|
|
225
|
-
function Nt(l) {
|
|
226
|
-
l !== null && (k = je(l)), y = l, _.missing = k;
|
|
227
|
-
}
|
|
228
|
-
function Tt(l, i) {
|
|
229
|
-
return l !== "translate" || !i.resolvedMessage;
|
|
230
|
-
}
|
|
231
|
-
const M = (l, i, g, I, U, ne) => {
|
|
232
|
-
let x;
|
|
233
|
-
try {
|
|
234
|
-
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Xt(/* @__PURE__ */ ha()), n || (_.fallbackContext = t ? Jt() : void 0), x = l(_);
|
|
235
|
-
} finally {
|
|
236
|
-
n || (_.fallbackContext = void 0);
|
|
237
|
-
}
|
|
238
|
-
if (g !== "translate exists" && // for not `te` (e.g `t`)
|
|
239
|
-
z(x) && x === Kt || g === "translate exists" && !x) {
|
|
240
|
-
const [W, Ht] = i();
|
|
241
|
-
if (process.env.NODE_ENV !== "production" && t && b(W) && Tt(g, Ht) && (O && (zt(T, W) || qt(v, W)) && Te(te(D.FALLBACK_TO_ROOT, {
|
|
242
|
-
key: W,
|
|
243
|
-
type: g
|
|
244
|
-
})), process.env.NODE_ENV !== "production")) {
|
|
245
|
-
const { __v_emitter: Ce } = _;
|
|
246
|
-
Ce && O && Ce.emit("fallback", {
|
|
247
|
-
type: g,
|
|
248
|
-
key: W,
|
|
249
|
-
to: "global",
|
|
250
|
-
groupId: `${g}:${W}`
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
return t && O ? I(t) : U(W);
|
|
254
|
-
} else {
|
|
255
|
-
if (ne(x))
|
|
256
|
-
return x;
|
|
257
|
-
throw L(E.UNEXPECTED_RETURN_TYPE);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
function ke(...l) {
|
|
261
|
-
return M((i) => Reflect.apply(Ve, null, [i, ...l]), () => ye(...l), "translate", (i) => Reflect.apply(i.t, i, [...l]), (i) => i, (i) => b(i));
|
|
262
|
-
}
|
|
263
|
-
function Lt(...l) {
|
|
264
|
-
const [i, g, I] = l;
|
|
265
|
-
if (I && !R(I))
|
|
266
|
-
throw L(E.INVALID_ARGUMENT);
|
|
267
|
-
return ke(i, g, A({ resolvedMessage: !0 }, I || {}));
|
|
268
|
-
}
|
|
269
|
-
function Ot(...l) {
|
|
270
|
-
return M((i) => Reflect.apply(We, null, [i, ...l]), () => Ue(...l), "datetime format", (i) => Reflect.apply(i.d, i, [...l]), () => Me, (i) => b(i) || P(i));
|
|
271
|
-
}
|
|
272
|
-
function ht(...l) {
|
|
273
|
-
return M((i) => Reflect.apply(we, null, [i, ...l]), () => $e(...l), "number format", (i) => Reflect.apply(i.n, i, [...l]), () => Me, (i) => b(i) || P(i));
|
|
274
|
-
}
|
|
275
|
-
function Ft(l) {
|
|
276
|
-
return l.map((i) => b(i) || z(i) || N(i) ? xe(String(i)) : i);
|
|
277
|
-
}
|
|
278
|
-
const Rt = {
|
|
279
|
-
normalize: Ft,
|
|
280
|
-
interpolate: (l) => l,
|
|
281
|
-
type: "vnode"
|
|
282
|
-
};
|
|
283
|
-
function kt(...l) {
|
|
284
|
-
return M((i) => {
|
|
285
|
-
let g;
|
|
286
|
-
const I = i;
|
|
287
|
-
try {
|
|
288
|
-
I.processor = Rt, g = Reflect.apply(Ve, null, [I, ...l]);
|
|
289
|
-
} finally {
|
|
290
|
-
I.processor = null;
|
|
291
|
-
}
|
|
292
|
-
return g;
|
|
293
|
-
}, () => ye(...l), "translate", (i) => i[Ee](...l), (i) => [xe(i)], (i) => P(i));
|
|
294
|
-
}
|
|
295
|
-
function Pt(...l) {
|
|
296
|
-
return M((i) => Reflect.apply(we, null, [i, ...l]), () => $e(...l), "number format", (i) => i[be](...l), He, (i) => b(i) || P(i));
|
|
297
|
-
}
|
|
298
|
-
function Ct(...l) {
|
|
299
|
-
return M((i) => Reflect.apply(We, null, [i, ...l]), () => Ue(...l), "datetime format", (i) => i[de](...l), He, (i) => b(i) || P(i));
|
|
300
|
-
}
|
|
301
|
-
function At(l) {
|
|
302
|
-
j = l, _.pluralRules = j;
|
|
303
|
-
}
|
|
304
|
-
function Dt(l, i) {
|
|
305
|
-
return M(() => {
|
|
306
|
-
if (!l)
|
|
307
|
-
return !1;
|
|
308
|
-
const g = b(i) ? i : c.value, I = Pe(g), U = _.messageResolver(I, l);
|
|
309
|
-
return K(U) || Zt(U) || b(U);
|
|
310
|
-
}, () => [l], "translate exists", (g) => Reflect.apply(g.te, g, [l, i]), Oa, (g) => N(g));
|
|
311
|
-
}
|
|
312
|
-
function St(l) {
|
|
313
|
-
let i = null;
|
|
314
|
-
const g = Qe(_, u.value, c.value);
|
|
315
|
-
for (let I = 0; I < g.length; I++) {
|
|
316
|
-
const U = m.value[g[I]] || {}, ne = _.messageResolver(U, l);
|
|
317
|
-
if (ne != null) {
|
|
318
|
-
i = ne;
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
return i;
|
|
323
|
-
}
|
|
324
|
-
function yt(l) {
|
|
325
|
-
const i = St(l);
|
|
326
|
-
return i ?? (t ? t.tm(l) || {} : {});
|
|
327
|
-
}
|
|
328
|
-
function Pe(l) {
|
|
329
|
-
return m.value[l] || {};
|
|
330
|
-
}
|
|
331
|
-
function Vt(l, i) {
|
|
332
|
-
if (a) {
|
|
333
|
-
const g = { [l]: i };
|
|
334
|
-
for (const I in g)
|
|
335
|
-
oe(g, I) && Z(g[I]);
|
|
336
|
-
i = g[l];
|
|
337
|
-
}
|
|
338
|
-
m.value[l] = i, _.messages = m.value;
|
|
339
|
-
}
|
|
340
|
-
function Mt(l, i) {
|
|
341
|
-
m.value[l] = m.value[l] || {};
|
|
342
|
-
const g = { [l]: i };
|
|
343
|
-
if (a)
|
|
344
|
-
for (const I in g)
|
|
345
|
-
oe(g, I) && Z(g[I]);
|
|
346
|
-
i = g[l], se(i, m.value[l]), _.messages = m.value;
|
|
347
|
-
}
|
|
348
|
-
function Ut(l) {
|
|
349
|
-
return d.value[l] || {};
|
|
350
|
-
}
|
|
351
|
-
function Wt(l, i) {
|
|
352
|
-
d.value[l] = i, _.datetimeFormats = d.value, Ae(_, l, i);
|
|
353
|
-
}
|
|
354
|
-
function $t(l, i) {
|
|
355
|
-
d.value[l] = A(d.value[l] || {}, i), _.datetimeFormats = d.value, Ae(_, l, i);
|
|
356
|
-
}
|
|
357
|
-
function wt(l) {
|
|
358
|
-
return f.value[l] || {};
|
|
359
|
-
}
|
|
360
|
-
function xt(l, i) {
|
|
361
|
-
f.value[l] = i, _.numberFormats = f.value, De(_, l, i);
|
|
362
|
-
}
|
|
363
|
-
function Gt(l, i) {
|
|
364
|
-
f.value[l] = A(f.value[l] || {}, i), _.numberFormats = f.value, De(_, l, i);
|
|
365
|
-
}
|
|
366
|
-
Ye++, t && re && (ge(t.locale, (l) => {
|
|
367
|
-
r && (c.value = l, _.locale = l, B(_, c.value, u.value));
|
|
368
|
-
}), ge(t.fallbackLocale, (l) => {
|
|
369
|
-
r && (u.value = l, _.fallbackLocale = l, B(_, c.value, u.value));
|
|
370
|
-
}));
|
|
371
|
-
const p = {
|
|
372
|
-
id: Ye,
|
|
373
|
-
locale: me,
|
|
374
|
-
fallbackLocale: gt,
|
|
375
|
-
get inheritLocale() {
|
|
376
|
-
return r;
|
|
377
|
-
},
|
|
378
|
-
set inheritLocale(l) {
|
|
379
|
-
r = l, l && t && (c.value = t.locale.value, u.value = t.fallbackLocale.value, B(_, c.value, u.value));
|
|
380
|
-
},
|
|
381
|
-
get availableLocales() {
|
|
382
|
-
return Object.keys(m.value).sort();
|
|
383
|
-
},
|
|
384
|
-
messages: Et,
|
|
385
|
-
get modifiers() {
|
|
386
|
-
return Y;
|
|
387
|
-
},
|
|
388
|
-
get pluralRules() {
|
|
389
|
-
return j || {};
|
|
390
|
-
},
|
|
391
|
-
get isGlobal() {
|
|
392
|
-
return n;
|
|
393
|
-
},
|
|
394
|
-
get missingWarn() {
|
|
395
|
-
return v;
|
|
396
|
-
},
|
|
397
|
-
set missingWarn(l) {
|
|
398
|
-
v = l, _.missingWarn = v;
|
|
399
|
-
},
|
|
400
|
-
get fallbackWarn() {
|
|
401
|
-
return T;
|
|
402
|
-
},
|
|
403
|
-
set fallbackWarn(l) {
|
|
404
|
-
T = l, _.fallbackWarn = T;
|
|
405
|
-
},
|
|
406
|
-
get fallbackRoot() {
|
|
407
|
-
return O;
|
|
408
|
-
},
|
|
409
|
-
set fallbackRoot(l) {
|
|
410
|
-
O = l;
|
|
411
|
-
},
|
|
412
|
-
get fallbackFormat() {
|
|
413
|
-
return h;
|
|
414
|
-
},
|
|
415
|
-
set fallbackFormat(l) {
|
|
416
|
-
h = l, _.fallbackFormat = h;
|
|
417
|
-
},
|
|
418
|
-
get warnHtmlMessage() {
|
|
419
|
-
return G;
|
|
420
|
-
},
|
|
421
|
-
set warnHtmlMessage(l) {
|
|
422
|
-
G = l, _.warnHtmlMessage = l;
|
|
423
|
-
},
|
|
424
|
-
get escapeParameter() {
|
|
425
|
-
return H;
|
|
426
|
-
},
|
|
427
|
-
set escapeParameter(l) {
|
|
428
|
-
H = l, _.escapeParameter = l;
|
|
429
|
-
},
|
|
430
|
-
t: ke,
|
|
431
|
-
getLocaleMessage: Pe,
|
|
432
|
-
setLocaleMessage: Vt,
|
|
433
|
-
mergeLocaleMessage: Mt,
|
|
434
|
-
getPostTranslationHandler: vt,
|
|
435
|
-
setPostTranslationHandler: It,
|
|
436
|
-
getMissingHandler: pt,
|
|
437
|
-
setMissingHandler: Nt,
|
|
438
|
-
[nt]: At
|
|
439
|
-
};
|
|
440
|
-
return p.datetimeFormats = dt, p.numberFormats = bt, p.rt = Lt, p.te = Dt, p.tm = yt, p.d = Ot, p.n = ht, p.getDateTimeFormat = Ut, p.setDateTimeFormat = Wt, p.mergeDateTimeFormat = $t, p.getNumberFormat = wt, p.setNumberFormat = xt, p.mergeNumberFormat = Gt, p[st] = s, p[Ee] = kt, p[de] = Ct, p[be] = Pt, process.env.NODE_ENV !== "production" && (p[w] = (l) => {
|
|
441
|
-
_.__v_emitter = l;
|
|
442
|
-
}, p[Q] = () => {
|
|
443
|
-
_.__v_emitter = void 0;
|
|
444
|
-
}), p;
|
|
445
|
-
}
|
|
446
|
-
const ot = "vue-i18n: composer properties", fe = {
|
|
447
|
-
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
448
|
-
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
449
|
-
"vue-i18n-timeline": "Vue I18n"
|
|
450
|
-
}, Fa = {
|
|
451
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
452
|
-
}, Ra = {
|
|
453
|
-
"vue-i18n-timeline": 16764185
|
|
454
|
-
};
|
|
455
|
-
let Ie;
|
|
456
|
-
async function ka(e, t) {
|
|
457
|
-
return new Promise((s, n) => {
|
|
458
|
-
try {
|
|
459
|
-
Ia({
|
|
460
|
-
id: "vue-devtools-plugin-vue-i18n",
|
|
461
|
-
label: fe["vue-devtools-plugin-vue-i18n"],
|
|
462
|
-
packageName: "vue-i18n",
|
|
463
|
-
homepage: "https://vue-i18n.intlify.dev",
|
|
464
|
-
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
465
|
-
componentStateTypes: [ot],
|
|
466
|
-
app: e
|
|
467
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
468
|
-
}, (a) => {
|
|
469
|
-
Ie = a, a.on.visitComponentTree(({ componentInstance: r, treeNode: c }) => {
|
|
470
|
-
Pa(r, c, t);
|
|
471
|
-
}), a.on.inspectComponent(({ componentInstance: r, instanceData: c }) => {
|
|
472
|
-
r.vnode.el && r.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && Be(c, r.vnode.el.__VUE_I18N__) : Be(c, r.vnode.el.__VUE_I18N__));
|
|
473
|
-
}), a.addInspector({
|
|
474
|
-
id: "vue-i18n-resource-inspector",
|
|
475
|
-
label: fe["vue-i18n-resource-inspector"],
|
|
476
|
-
icon: "language",
|
|
477
|
-
treeFilterPlaceholder: Fa["vue-i18n-resource-inspector"]
|
|
478
|
-
}), a.on.getInspectorTree((r) => {
|
|
479
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && ya(r, t);
|
|
480
|
-
});
|
|
481
|
-
const o = /* @__PURE__ */ new Map();
|
|
482
|
-
a.on.getInspectorState(async (r) => {
|
|
483
|
-
if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
|
|
484
|
-
if (a.unhighlightElement(), Ma(r, t), r.nodeId === "global") {
|
|
485
|
-
if (!o.has(r.app)) {
|
|
486
|
-
const [c] = await a.getComponentInstances(r.app);
|
|
487
|
-
o.set(r.app, c);
|
|
488
|
-
}
|
|
489
|
-
a.highlightElement(o.get(r.app));
|
|
490
|
-
} else {
|
|
491
|
-
const c = Va(r.nodeId, t);
|
|
492
|
-
c && a.highlightElement(c);
|
|
493
|
-
}
|
|
494
|
-
}), a.on.editInspectorState((r) => {
|
|
495
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Wa(r, t);
|
|
496
|
-
}), a.addTimelineLayer({
|
|
497
|
-
id: "vue-i18n-timeline",
|
|
498
|
-
label: fe["vue-i18n-timeline"],
|
|
499
|
-
color: Ra["vue-i18n-timeline"]
|
|
500
|
-
}), s(!0);
|
|
501
|
-
});
|
|
502
|
-
} catch (a) {
|
|
503
|
-
console.error(a), n(!1);
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
function it(e) {
|
|
508
|
-
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
509
|
-
}
|
|
510
|
-
function Pa(e, t, s) {
|
|
511
|
-
const n = s.mode === "composition" ? s.global : s.global.__composer;
|
|
512
|
-
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== n) {
|
|
513
|
-
const a = {
|
|
514
|
-
label: `i18n (${it(e)} Scope)`,
|
|
515
|
-
textColor: 0,
|
|
516
|
-
backgroundColor: 16764185
|
|
517
|
-
};
|
|
518
|
-
t.tags.push(a);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
function Be(e, t) {
|
|
522
|
-
const s = ot;
|
|
523
|
-
e.state.push({
|
|
524
|
-
type: s,
|
|
525
|
-
key: "locale",
|
|
526
|
-
editable: !0,
|
|
527
|
-
value: t.locale.value
|
|
528
|
-
}), e.state.push({
|
|
529
|
-
type: s,
|
|
530
|
-
key: "availableLocales",
|
|
531
|
-
editable: !1,
|
|
532
|
-
value: t.availableLocales
|
|
533
|
-
}), e.state.push({
|
|
534
|
-
type: s,
|
|
535
|
-
key: "fallbackLocale",
|
|
536
|
-
editable: !0,
|
|
537
|
-
value: t.fallbackLocale.value
|
|
538
|
-
}), e.state.push({
|
|
539
|
-
type: s,
|
|
540
|
-
key: "inheritLocale",
|
|
541
|
-
editable: !0,
|
|
542
|
-
value: t.inheritLocale
|
|
543
|
-
}), e.state.push({
|
|
544
|
-
type: s,
|
|
545
|
-
key: "messages",
|
|
546
|
-
editable: !1,
|
|
547
|
-
value: Fe(t.messages.value)
|
|
548
|
-
}), e.state.push({
|
|
549
|
-
type: s,
|
|
550
|
-
key: "datetimeFormats",
|
|
551
|
-
editable: !1,
|
|
552
|
-
value: t.datetimeFormats.value
|
|
553
|
-
}), e.state.push({
|
|
554
|
-
type: s,
|
|
555
|
-
key: "numberFormats",
|
|
556
|
-
editable: !1,
|
|
557
|
-
value: t.numberFormats.value
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
function Fe(e) {
|
|
561
|
-
const t = {};
|
|
562
|
-
return Object.keys(e).forEach((s) => {
|
|
563
|
-
const n = e[s];
|
|
564
|
-
$(n) && "source" in n ? t[s] = Sa(n) : K(n) && n.loc && n.loc.source ? t[s] = n.loc.source : R(n) ? t[s] = Fe(n) : t[s] = n;
|
|
565
|
-
}), t;
|
|
566
|
-
}
|
|
567
|
-
const Ca = {
|
|
568
|
-
"<": "<",
|
|
569
|
-
">": ">",
|
|
570
|
-
'"': """,
|
|
571
|
-
"&": "&"
|
|
572
|
-
};
|
|
573
|
-
function Aa(e) {
|
|
574
|
-
return e.replace(/[<>"&]/g, Da);
|
|
575
|
-
}
|
|
576
|
-
function Da(e) {
|
|
577
|
-
return Ca[e] || e;
|
|
578
|
-
}
|
|
579
|
-
function Sa(e) {
|
|
580
|
-
return {
|
|
581
|
-
_custom: {
|
|
582
|
-
type: "function",
|
|
583
|
-
display: `<span>ƒ</span> ${e.source ? `("${Aa(e.source)}")` : "(?)"}`
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
function ya(e, t) {
|
|
588
|
-
e.rootNodes.push({
|
|
589
|
-
id: "global",
|
|
590
|
-
label: "Global Scope"
|
|
591
|
-
});
|
|
592
|
-
const s = t.mode === "composition" ? t.global : t.global.__composer;
|
|
593
|
-
for (const [n, a] of t.__instances) {
|
|
594
|
-
const o = t.mode === "composition" ? a : a.__composer;
|
|
595
|
-
s !== o && e.rootNodes.push({
|
|
596
|
-
id: o.id.toString(),
|
|
597
|
-
label: `${it(n)} Scope`
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
function Va(e, t) {
|
|
602
|
-
let s = null;
|
|
603
|
-
if (e !== "global") {
|
|
604
|
-
for (const [n, a] of t.__instances.entries())
|
|
605
|
-
if (a.id.toString() === e) {
|
|
606
|
-
s = n;
|
|
607
|
-
break;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
return s;
|
|
611
|
-
}
|
|
612
|
-
function ct(e, t) {
|
|
613
|
-
if (e === "global")
|
|
614
|
-
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
615
|
-
{
|
|
616
|
-
const s = Array.from(t.__instances.values()).find((n) => n.id.toString() === e);
|
|
617
|
-
return s ? t.mode === "composition" ? s : s.__composer : null;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
function Ma(e, t) {
|
|
621
|
-
const s = ct(e.nodeId, t);
|
|
622
|
-
return s && (e.state = Ua(s)), null;
|
|
623
|
-
}
|
|
624
|
-
function Ua(e) {
|
|
625
|
-
const t = {}, s = "Locale related info", n = [
|
|
626
|
-
{
|
|
627
|
-
type: s,
|
|
628
|
-
key: "locale",
|
|
629
|
-
editable: !0,
|
|
630
|
-
value: e.locale.value
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
type: s,
|
|
634
|
-
key: "fallbackLocale",
|
|
635
|
-
editable: !0,
|
|
636
|
-
value: e.fallbackLocale.value
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
type: s,
|
|
640
|
-
key: "availableLocales",
|
|
641
|
-
editable: !1,
|
|
642
|
-
value: e.availableLocales
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
type: s,
|
|
646
|
-
key: "inheritLocale",
|
|
647
|
-
editable: !0,
|
|
648
|
-
value: e.inheritLocale
|
|
649
|
-
}
|
|
650
|
-
];
|
|
651
|
-
t[s] = n;
|
|
652
|
-
const a = "Locale messages info", o = [
|
|
653
|
-
{
|
|
654
|
-
type: a,
|
|
655
|
-
key: "messages",
|
|
656
|
-
editable: !1,
|
|
657
|
-
value: Fe(e.messages.value)
|
|
658
|
-
}
|
|
659
|
-
];
|
|
660
|
-
t[a] = o;
|
|
661
|
-
{
|
|
662
|
-
const r = "Datetime formats info", c = [
|
|
663
|
-
{
|
|
664
|
-
type: r,
|
|
665
|
-
key: "datetimeFormats",
|
|
666
|
-
editable: !1,
|
|
667
|
-
value: e.datetimeFormats.value
|
|
668
|
-
}
|
|
669
|
-
];
|
|
670
|
-
t[r] = c;
|
|
671
|
-
const u = "Datetime formats info", m = [
|
|
672
|
-
{
|
|
673
|
-
type: u,
|
|
674
|
-
key: "numberFormats",
|
|
675
|
-
editable: !1,
|
|
676
|
-
value: e.numberFormats.value
|
|
677
|
-
}
|
|
678
|
-
];
|
|
679
|
-
t[u] = m;
|
|
680
|
-
}
|
|
681
|
-
return t;
|
|
682
|
-
}
|
|
683
|
-
function ee(e, t) {
|
|
684
|
-
if (Ie) {
|
|
685
|
-
let s;
|
|
686
|
-
t && "groupId" in t && (s = t.groupId, delete t.groupId), Ie.addTimelineEvent({
|
|
687
|
-
layerId: "vue-i18n-timeline",
|
|
688
|
-
event: {
|
|
689
|
-
title: e,
|
|
690
|
-
groupId: s,
|
|
691
|
-
time: Date.now(),
|
|
692
|
-
meta: {},
|
|
693
|
-
data: t || {},
|
|
694
|
-
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
695
|
-
}
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
function Wa(e, t) {
|
|
700
|
-
const s = ct(e.nodeId, t);
|
|
701
|
-
if (s) {
|
|
702
|
-
const [n] = e.path;
|
|
703
|
-
n === "locale" && b(e.state.value) ? s.locale.value = e.state.value : n === "fallbackLocale" && (b(e.state.value) || P(e.state.value) || R(e.state.value)) ? s.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (s.inheritLocale = e.state.value);
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
function $a(e) {
|
|
707
|
-
const t = b(e.locale) ? e.locale : qe, s = b(e.fallbackLocale) || P(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = $(e.missing) ? e.missing : void 0, a = N(e.silentTranslationWarn) || le(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = N(e.silentFallbackWarn) || le(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, u = F(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, d = $(e.postTranslation) ? e.postTranslation : void 0, f = b(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
|
|
708
|
-
let O = e.messages;
|
|
709
|
-
if (F(e.sharedMessages)) {
|
|
710
|
-
const Y = e.sharedMessages;
|
|
711
|
-
O = Object.keys(Y).reduce((_, ae) => {
|
|
712
|
-
const me = _[ae] || (_[ae] = {});
|
|
713
|
-
return A(me, Y[ae]), _;
|
|
714
|
-
}, O || {});
|
|
715
|
-
}
|
|
716
|
-
const { __i18n: h, __root: y, __injectWithOption: k } = e, V = e.datetimeFormats, G = e.numberFormats, H = e.flatJson;
|
|
717
|
-
return {
|
|
718
|
-
locale: t,
|
|
719
|
-
fallbackLocale: s,
|
|
720
|
-
messages: O,
|
|
721
|
-
flatJson: H,
|
|
722
|
-
datetimeFormats: V,
|
|
723
|
-
numberFormats: G,
|
|
724
|
-
missing: n,
|
|
725
|
-
missingWarn: a,
|
|
726
|
-
fallbackWarn: o,
|
|
727
|
-
fallbackRoot: r,
|
|
728
|
-
fallbackFormat: c,
|
|
729
|
-
modifiers: u,
|
|
730
|
-
pluralRules: m,
|
|
731
|
-
postTranslation: d,
|
|
732
|
-
warnHtmlMessage: f,
|
|
733
|
-
escapeParameter: v,
|
|
734
|
-
messageResolver: e.messageResolver,
|
|
735
|
-
inheritLocale: T,
|
|
736
|
-
__i18n: h,
|
|
737
|
-
__root: y,
|
|
738
|
-
__injectWithOption: k
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
function pe(e = {}) {
|
|
742
|
-
const t = he($a(e)), { __extender: s } = e, n = {
|
|
743
|
-
// id
|
|
744
|
-
id: t.id,
|
|
745
|
-
// locale
|
|
746
|
-
get locale() {
|
|
747
|
-
return t.locale.value;
|
|
748
|
-
},
|
|
749
|
-
set locale(a) {
|
|
750
|
-
t.locale.value = a;
|
|
751
|
-
},
|
|
752
|
-
// fallbackLocale
|
|
753
|
-
get fallbackLocale() {
|
|
754
|
-
return t.fallbackLocale.value;
|
|
755
|
-
},
|
|
756
|
-
set fallbackLocale(a) {
|
|
757
|
-
t.fallbackLocale.value = a;
|
|
758
|
-
},
|
|
759
|
-
// messages
|
|
760
|
-
get messages() {
|
|
761
|
-
return t.messages.value;
|
|
762
|
-
},
|
|
763
|
-
// datetimeFormats
|
|
764
|
-
get datetimeFormats() {
|
|
765
|
-
return t.datetimeFormats.value;
|
|
766
|
-
},
|
|
767
|
-
// numberFormats
|
|
768
|
-
get numberFormats() {
|
|
769
|
-
return t.numberFormats.value;
|
|
770
|
-
},
|
|
771
|
-
// availableLocales
|
|
772
|
-
get availableLocales() {
|
|
773
|
-
return t.availableLocales;
|
|
774
|
-
},
|
|
775
|
-
// missing
|
|
776
|
-
get missing() {
|
|
777
|
-
return t.getMissingHandler();
|
|
778
|
-
},
|
|
779
|
-
set missing(a) {
|
|
780
|
-
t.setMissingHandler(a);
|
|
781
|
-
},
|
|
782
|
-
// silentTranslationWarn
|
|
783
|
-
get silentTranslationWarn() {
|
|
784
|
-
return N(t.missingWarn) ? !t.missingWarn : t.missingWarn;
|
|
785
|
-
},
|
|
786
|
-
set silentTranslationWarn(a) {
|
|
787
|
-
t.missingWarn = N(a) ? !a : a;
|
|
788
|
-
},
|
|
789
|
-
// silentFallbackWarn
|
|
790
|
-
get silentFallbackWarn() {
|
|
791
|
-
return N(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
|
|
792
|
-
},
|
|
793
|
-
set silentFallbackWarn(a) {
|
|
794
|
-
t.fallbackWarn = N(a) ? !a : a;
|
|
795
|
-
},
|
|
796
|
-
// modifiers
|
|
797
|
-
get modifiers() {
|
|
798
|
-
return t.modifiers;
|
|
799
|
-
},
|
|
800
|
-
// formatFallbackMessages
|
|
801
|
-
get formatFallbackMessages() {
|
|
802
|
-
return t.fallbackFormat;
|
|
803
|
-
},
|
|
804
|
-
set formatFallbackMessages(a) {
|
|
805
|
-
t.fallbackFormat = a;
|
|
806
|
-
},
|
|
807
|
-
// postTranslation
|
|
808
|
-
get postTranslation() {
|
|
809
|
-
return t.getPostTranslationHandler();
|
|
810
|
-
},
|
|
811
|
-
set postTranslation(a) {
|
|
812
|
-
t.setPostTranslationHandler(a);
|
|
813
|
-
},
|
|
814
|
-
// sync
|
|
815
|
-
get sync() {
|
|
816
|
-
return t.inheritLocale;
|
|
817
|
-
},
|
|
818
|
-
set sync(a) {
|
|
819
|
-
t.inheritLocale = a;
|
|
820
|
-
},
|
|
821
|
-
// warnInHtmlMessage
|
|
822
|
-
get warnHtmlInMessage() {
|
|
823
|
-
return t.warnHtmlMessage ? "warn" : "off";
|
|
824
|
-
},
|
|
825
|
-
set warnHtmlInMessage(a) {
|
|
826
|
-
t.warnHtmlMessage = a !== "off";
|
|
827
|
-
},
|
|
828
|
-
// escapeParameterHtml
|
|
829
|
-
get escapeParameterHtml() {
|
|
830
|
-
return t.escapeParameter;
|
|
831
|
-
},
|
|
832
|
-
set escapeParameterHtml(a) {
|
|
833
|
-
t.escapeParameter = a;
|
|
834
|
-
},
|
|
835
|
-
// pluralizationRules
|
|
836
|
-
get pluralizationRules() {
|
|
837
|
-
return t.pluralRules || {};
|
|
838
|
-
},
|
|
839
|
-
// for internal
|
|
840
|
-
__composer: t,
|
|
841
|
-
// t
|
|
842
|
-
t(...a) {
|
|
843
|
-
return Reflect.apply(t.t, t, [...a]);
|
|
844
|
-
},
|
|
845
|
-
// rt
|
|
846
|
-
rt(...a) {
|
|
847
|
-
return Reflect.apply(t.rt, t, [...a]);
|
|
848
|
-
},
|
|
849
|
-
// te
|
|
850
|
-
te(a, o) {
|
|
851
|
-
return t.te(a, o);
|
|
852
|
-
},
|
|
853
|
-
// tm
|
|
854
|
-
tm(a) {
|
|
855
|
-
return t.tm(a);
|
|
856
|
-
},
|
|
857
|
-
// getLocaleMessage
|
|
858
|
-
getLocaleMessage(a) {
|
|
859
|
-
return t.getLocaleMessage(a);
|
|
860
|
-
},
|
|
861
|
-
// setLocaleMessage
|
|
862
|
-
setLocaleMessage(a, o) {
|
|
863
|
-
t.setLocaleMessage(a, o);
|
|
864
|
-
},
|
|
865
|
-
// mergeLocaleMessage
|
|
866
|
-
mergeLocaleMessage(a, o) {
|
|
867
|
-
t.mergeLocaleMessage(a, o);
|
|
868
|
-
},
|
|
869
|
-
// d
|
|
870
|
-
d(...a) {
|
|
871
|
-
return Reflect.apply(t.d, t, [...a]);
|
|
872
|
-
},
|
|
873
|
-
// getDateTimeFormat
|
|
874
|
-
getDateTimeFormat(a) {
|
|
875
|
-
return t.getDateTimeFormat(a);
|
|
876
|
-
},
|
|
877
|
-
// setDateTimeFormat
|
|
878
|
-
setDateTimeFormat(a, o) {
|
|
879
|
-
t.setDateTimeFormat(a, o);
|
|
880
|
-
},
|
|
881
|
-
// mergeDateTimeFormat
|
|
882
|
-
mergeDateTimeFormat(a, o) {
|
|
883
|
-
t.mergeDateTimeFormat(a, o);
|
|
884
|
-
},
|
|
885
|
-
// n
|
|
886
|
-
n(...a) {
|
|
887
|
-
return Reflect.apply(t.n, t, [...a]);
|
|
888
|
-
},
|
|
889
|
-
// getNumberFormat
|
|
890
|
-
getNumberFormat(a) {
|
|
891
|
-
return t.getNumberFormat(a);
|
|
892
|
-
},
|
|
893
|
-
// setNumberFormat
|
|
894
|
-
setNumberFormat(a, o) {
|
|
895
|
-
t.setNumberFormat(a, o);
|
|
896
|
-
},
|
|
897
|
-
// mergeNumberFormat
|
|
898
|
-
mergeNumberFormat(a, o) {
|
|
899
|
-
t.mergeNumberFormat(a, o);
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
return n.__extender = s, process.env.NODE_ENV !== "production" && (n.__enableEmitter = (a) => {
|
|
903
|
-
const o = t;
|
|
904
|
-
o[w] && o[w](a);
|
|
905
|
-
}, n.__disableEmitter = () => {
|
|
906
|
-
const a = t;
|
|
907
|
-
a[Q] && a[Q]();
|
|
908
|
-
}), n;
|
|
909
|
-
}
|
|
910
|
-
function wa(e, t, s) {
|
|
911
|
-
return {
|
|
912
|
-
beforeCreate() {
|
|
913
|
-
const n = q();
|
|
914
|
-
if (!n)
|
|
915
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
916
|
-
const a = this.$options;
|
|
917
|
-
if (a.i18n) {
|
|
918
|
-
const o = a.i18n;
|
|
919
|
-
if (a.__i18n && (o.__i18n = a.__i18n), o.__root = t, this === this.$root)
|
|
920
|
-
this.$i18n = Xe(e, o);
|
|
921
|
-
else {
|
|
922
|
-
o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n = pe(o);
|
|
923
|
-
const r = this.$i18n;
|
|
924
|
-
r.__extender && (r.__disposer = r.__extender(this.$i18n));
|
|
925
|
-
}
|
|
926
|
-
} else if (a.__i18n)
|
|
927
|
-
if (this === this.$root)
|
|
928
|
-
this.$i18n = Xe(e, a);
|
|
929
|
-
else {
|
|
930
|
-
this.$i18n = pe({
|
|
931
|
-
__i18n: a.__i18n,
|
|
932
|
-
__injectWithOption: !0,
|
|
933
|
-
__extender: s.__vueI18nExtend,
|
|
934
|
-
__root: t
|
|
935
|
-
});
|
|
936
|
-
const o = this.$i18n;
|
|
937
|
-
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
938
|
-
}
|
|
939
|
-
else
|
|
940
|
-
this.$i18n = e;
|
|
941
|
-
a.__i18nGlobal && rt(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, r) => this.$i18n.te(o, r), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), s.__setInstance(n, this.$i18n);
|
|
942
|
-
},
|
|
943
|
-
mounted() {
|
|
944
|
-
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
945
|
-
const n = this.$i18n;
|
|
946
|
-
this.$el.__VUE_I18N__ = n.__composer;
|
|
947
|
-
const a = this.__v_emitter = Ne();
|
|
948
|
-
n.__enableEmitter && n.__enableEmitter(a), a.on("*", ee);
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
unmounted() {
|
|
952
|
-
const n = q();
|
|
953
|
-
if (!n)
|
|
954
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
955
|
-
const a = this.$i18n;
|
|
956
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ee), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), s.__deleteInstance(n), delete this.$i18n;
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
}
|
|
960
|
-
function Xe(e, t) {
|
|
961
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[nt](t.pluralizationRules || e.pluralizationRules);
|
|
962
|
-
const s = Oe(e.locale, {
|
|
963
|
-
messages: t.messages,
|
|
964
|
-
__i18n: t.__i18n
|
|
965
|
-
});
|
|
966
|
-
return Object.keys(s).forEach((n) => e.mergeLocaleMessage(n, s[n])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
967
|
-
}
|
|
968
|
-
const Re = {
|
|
969
|
-
tag: {
|
|
970
|
-
type: [String, Object]
|
|
971
|
-
},
|
|
972
|
-
locale: {
|
|
973
|
-
type: String
|
|
974
|
-
},
|
|
975
|
-
scope: {
|
|
976
|
-
type: String,
|
|
977
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
978
|
-
validator: (e) => e === "parent" || e === "global",
|
|
979
|
-
default: "parent"
|
|
980
|
-
/* ComponentI18nScope */
|
|
981
|
-
},
|
|
982
|
-
i18n: {
|
|
983
|
-
type: Object
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
|
-
function xa({ slots: e }, t) {
|
|
987
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, a) => [
|
|
988
|
-
...n,
|
|
989
|
-
// prettier-ignore
|
|
990
|
-
...a.type === tt ? a.children : [a]
|
|
991
|
-
], []) : t.reduce((s, n) => {
|
|
992
|
-
const a = e[n];
|
|
993
|
-
return a && (s[n] = a()), s;
|
|
994
|
-
}, C());
|
|
995
|
-
}
|
|
996
|
-
function _t() {
|
|
997
|
-
return tt;
|
|
998
|
-
}
|
|
999
|
-
const Ga = /* @__PURE__ */ Le({
|
|
1000
|
-
/* eslint-disable */
|
|
1001
|
-
name: "i18n-t",
|
|
1002
|
-
props: A({
|
|
1003
|
-
keypath: {
|
|
1004
|
-
type: String,
|
|
1005
|
-
required: !0
|
|
1006
|
-
},
|
|
1007
|
-
plural: {
|
|
1008
|
-
type: [Number, String],
|
|
1009
|
-
validator: (e) => z(e) || !isNaN(e)
|
|
1010
|
-
}
|
|
1011
|
-
}, Re),
|
|
1012
|
-
/* eslint-enable */
|
|
1013
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1014
|
-
setup(e, t) {
|
|
1015
|
-
const { slots: s, attrs: n } = t, a = e.i18n || ue({
|
|
1016
|
-
useScope: e.scope,
|
|
1017
|
-
__useComponent: !0
|
|
1018
|
-
});
|
|
1019
|
-
return () => {
|
|
1020
|
-
const o = Object.keys(s).filter((f) => f[0] !== "_"), r = C();
|
|
1021
|
-
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = b(e.plural) ? +e.plural : e.plural);
|
|
1022
|
-
const c = xa(t, o), u = a[Ee](e.keypath, c, r), m = A(C(), n), d = b(e.tag) || R(e.tag) ? e.tag : _t();
|
|
1023
|
-
return et(d, m, u);
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
}), ie = Ga, Ha = ie;
|
|
1027
|
-
function Ya(e) {
|
|
1028
|
-
return P(e) && !b(e[0]);
|
|
1029
|
-
}
|
|
1030
|
-
function ut(e, t, s, n) {
|
|
1031
|
-
const { slots: a, attrs: o } = t;
|
|
1032
|
-
return () => {
|
|
1033
|
-
const r = { part: !0 };
|
|
1034
|
-
let c = C();
|
|
1035
|
-
e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format : R(e.format) && (b(e.format.key) && (r.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => s.includes(T) ? A(C(), v, { [T]: e.format[T] }) : v, C()));
|
|
1036
|
-
const u = n(e.value, r, c);
|
|
1037
|
-
let m = [r.key];
|
|
1038
|
-
P(u) ? m = u.map((v, T) => {
|
|
1039
|
-
const O = a[v.type], h = O ? O({ [v.type]: v.value, index: T, parts: u }) : [v.value];
|
|
1040
|
-
return Ya(h) && (h[0].key = `${v.type}-${T}`), h;
|
|
1041
|
-
}) : b(u) && (m = [u]);
|
|
1042
|
-
const d = A(C(), o), f = b(e.tag) || R(e.tag) ? e.tag : _t();
|
|
1043
|
-
return et(f, d, m);
|
|
1044
|
-
};
|
|
1045
|
-
}
|
|
1046
|
-
const ja = /* @__PURE__ */ Le({
|
|
1047
|
-
/* eslint-disable */
|
|
1048
|
-
name: "i18n-n",
|
|
1049
|
-
props: A({
|
|
1050
|
-
value: {
|
|
1051
|
-
type: Number,
|
|
1052
|
-
required: !0
|
|
1053
|
-
},
|
|
1054
|
-
format: {
|
|
1055
|
-
type: [String, Object]
|
|
1056
|
-
}
|
|
1057
|
-
}, Re),
|
|
1058
|
-
/* eslint-enable */
|
|
1059
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1060
|
-
setup(e, t) {
|
|
1061
|
-
const s = e.i18n || ue({
|
|
1062
|
-
useScope: e.scope,
|
|
1063
|
-
__useComponent: !0
|
|
1064
|
-
});
|
|
1065
|
-
return ut(e, t, ea, (...n) => (
|
|
1066
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1067
|
-
s[be](...n)
|
|
1068
|
-
));
|
|
1069
|
-
}
|
|
1070
|
-
}), ce = ja, Ba = ce;
|
|
1071
|
-
function Xa(e, t) {
|
|
1072
|
-
const s = e;
|
|
1073
|
-
if (e.mode === "composition")
|
|
1074
|
-
return s.__getInstance(t) || e.global;
|
|
1075
|
-
{
|
|
1076
|
-
const n = s.__getInstance(t);
|
|
1077
|
-
return n != null ? n.__composer : e.global.__composer;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
function mt(e) {
|
|
1081
|
-
const t = (r) => {
|
|
1082
|
-
process.env.NODE_ENV !== "production" && Ze(te(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
1083
|
-
const { instance: c, value: u } = r;
|
|
1084
|
-
if (!c || !c.$)
|
|
1085
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
1086
|
-
const m = Xa(e, c.$), d = Je(u);
|
|
1087
|
-
return [
|
|
1088
|
-
Reflect.apply(m.t, m, [...Ke(d)]),
|
|
1089
|
-
m
|
|
1090
|
-
];
|
|
1091
|
-
};
|
|
1092
|
-
return {
|
|
1093
|
-
created: (r, c) => {
|
|
1094
|
-
const [u, m] = t(c);
|
|
1095
|
-
re && e.global === m && (r.__i18nWatcher = ge(m.locale, () => {
|
|
1096
|
-
c.instance && c.instance.$forceUpdate();
|
|
1097
|
-
})), r.__composer = m, r.textContent = u;
|
|
1098
|
-
},
|
|
1099
|
-
unmounted: (r) => {
|
|
1100
|
-
re && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
|
1101
|
-
},
|
|
1102
|
-
beforeUpdate: (r, { value: c }) => {
|
|
1103
|
-
if (r.__composer) {
|
|
1104
|
-
const u = r.__composer, m = Je(c);
|
|
1105
|
-
r.textContent = Reflect.apply(u.t, u, [
|
|
1106
|
-
...Ke(m)
|
|
1107
|
-
]);
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
getSSRProps: (r) => {
|
|
1111
|
-
const [c] = t(r);
|
|
1112
|
-
return { textContent: c };
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
function Je(e) {
|
|
1117
|
-
if (b(e))
|
|
1118
|
-
return { path: e };
|
|
1119
|
-
if (F(e)) {
|
|
1120
|
-
if (!("path" in e))
|
|
1121
|
-
throw L(E.REQUIRED_VALUE, "path");
|
|
1122
|
-
return e;
|
|
1123
|
-
} else
|
|
1124
|
-
throw L(E.INVALID_VALUE);
|
|
1125
|
-
}
|
|
1126
|
-
function Ke(e) {
|
|
1127
|
-
const { path: t, locale: s, args: n, choice: a, plural: o } = e, r = {}, c = n || {};
|
|
1128
|
-
return b(s) && (r.locale = s), z(a) && (r.plural = a), z(o) && (r.plural = o), [t, c, r];
|
|
1129
|
-
}
|
|
1130
|
-
function Ja(e, t, ...s) {
|
|
1131
|
-
const n = F(s[0]) ? s[0] : {};
|
|
1132
|
-
(N(n.globalInstall) ? n.globalInstall : !0) && ([ie.name, "I18nT"].forEach((o) => e.component(o, ie)), [ce.name, "I18nN"].forEach((o) => e.component(o, ce)), [_e.name, "I18nD"].forEach((o) => e.component(o, _e))), e.directive("t", mt(t));
|
|
1133
|
-
}
|
|
1134
|
-
const ft = /* @__PURE__ */ S("global-vue-i18n");
|
|
1135
|
-
function Ka(e = {}) {
|
|
1136
|
-
const t = __VUE_I18N_LEGACY_API__ && N(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
1137
|
-
process.env.NODE_ENV !== "production" && t && Ze(te(D.DEPRECATE_LEGACY_MODE));
|
|
1138
|
-
const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = za(e, t), r = /* @__PURE__ */ S(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1139
|
-
function c(f) {
|
|
1140
|
-
return n.get(f) || null;
|
|
1141
|
-
}
|
|
1142
|
-
function u(f, v) {
|
|
1143
|
-
n.set(f, v);
|
|
1144
|
-
}
|
|
1145
|
-
function m(f) {
|
|
1146
|
-
n.delete(f);
|
|
1147
|
-
}
|
|
1148
|
-
const d = {
|
|
1149
|
-
// mode
|
|
1150
|
-
get mode() {
|
|
1151
|
-
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
1152
|
-
},
|
|
1153
|
-
// install plugin
|
|
1154
|
-
async install(f, ...v) {
|
|
1155
|
-
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = d), f.__VUE_I18N_SYMBOL__ = r, f.provide(f.__VUE_I18N_SYMBOL__, d), F(v[0])) {
|
|
1156
|
-
const h = v[0];
|
|
1157
|
-
d.__composerExtend = h.__composerExtend, d.__vueI18nExtend = h.__vueI18nExtend;
|
|
1158
|
-
}
|
|
1159
|
-
let T = null;
|
|
1160
|
-
!t && s && (T = sn(f, d.global)), __VUE_I18N_FULL_INSTALL__ && Ja(f, d, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(wa(o, o.__composer, d));
|
|
1161
|
-
const O = f.unmount;
|
|
1162
|
-
if (f.unmount = () => {
|
|
1163
|
-
T && T(), d.dispose(), O();
|
|
1164
|
-
}, process.env.NODE_ENV !== "production") {
|
|
1165
|
-
if (!await ka(f, d))
|
|
1166
|
-
throw L(E.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1167
|
-
const y = Ne();
|
|
1168
|
-
if (t) {
|
|
1169
|
-
const k = o;
|
|
1170
|
-
k.__enableEmitter && k.__enableEmitter(y);
|
|
1171
|
-
} else {
|
|
1172
|
-
const k = o;
|
|
1173
|
-
k[w] && k[w](y);
|
|
1174
|
-
}
|
|
1175
|
-
y.on("*", ee);
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
// global accessor
|
|
1179
|
-
get global() {
|
|
1180
|
-
return o;
|
|
1181
|
-
},
|
|
1182
|
-
dispose() {
|
|
1183
|
-
a.stop();
|
|
1184
|
-
},
|
|
1185
|
-
// @internal
|
|
1186
|
-
__instances: n,
|
|
1187
|
-
// @internal
|
|
1188
|
-
__getInstance: c,
|
|
1189
|
-
// @internal
|
|
1190
|
-
__setInstance: u,
|
|
1191
|
-
// @internal
|
|
1192
|
-
__deleteInstance: m
|
|
1193
|
-
};
|
|
1194
|
-
return d;
|
|
1195
|
-
}
|
|
1196
|
-
function ue(e = {}) {
|
|
1197
|
-
const t = q();
|
|
1198
|
-
if (t == null)
|
|
1199
|
-
throw L(E.MUST_BE_CALL_SETUP_TOP);
|
|
1200
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1201
|
-
throw L(E.NOT_INSTALLED);
|
|
1202
|
-
const s = qa(t), n = Za(s), a = lt(t), o = Qa(e, a);
|
|
1203
|
-
if (o === "global")
|
|
1204
|
-
return rt(n, e, a), n;
|
|
1205
|
-
if (o === "parent") {
|
|
1206
|
-
let u = en(s, t, e.__useComponent);
|
|
1207
|
-
return u == null && (process.env.NODE_ENV !== "production" && Te(te(D.NOT_FOUND_PARENT_SCOPE)), u = n), u;
|
|
1208
|
-
}
|
|
1209
|
-
const r = s;
|
|
1210
|
-
let c = r.__getInstance(t);
|
|
1211
|
-
if (c == null) {
|
|
1212
|
-
const u = A({}, e);
|
|
1213
|
-
"__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u), r.__composerExtend && (c[ve] = r.__composerExtend(c)), an(r, t, c), r.__setInstance(t, c);
|
|
1214
|
-
} else if (process.env.NODE_ENV !== "production" && o === "local")
|
|
1215
|
-
throw L(E.DUPLICATE_USE_I18N_CALLING);
|
|
1216
|
-
return c;
|
|
1217
|
-
}
|
|
1218
|
-
function za(e, t) {
|
|
1219
|
-
const s = _a(), n = __VUE_I18N_LEGACY_API__ && t ? s.run(() => pe(e)) : s.run(() => he(e));
|
|
1220
|
-
if (n == null)
|
|
1221
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
1222
|
-
return [s, n];
|
|
1223
|
-
}
|
|
1224
|
-
function qa(e) {
|
|
1225
|
-
const t = ga(e.isCE ? ft : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1226
|
-
if (!t)
|
|
1227
|
-
throw L(e.isCE ? E.NOT_INSTALLED_WITH_PROVIDE : E.UNEXPECTED_ERROR);
|
|
1228
|
-
return t;
|
|
1229
|
-
}
|
|
1230
|
-
function Qa(e, t) {
|
|
1231
|
-
return ca(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1232
|
-
}
|
|
1233
|
-
function Za(e) {
|
|
1234
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1235
|
-
}
|
|
1236
|
-
function en(e, t, s = !1) {
|
|
1237
|
-
let n = null;
|
|
1238
|
-
const a = t.root;
|
|
1239
|
-
let o = tn(t, s);
|
|
1240
|
-
for (; o != null; ) {
|
|
1241
|
-
const r = e;
|
|
1242
|
-
if (e.mode === "composition")
|
|
1243
|
-
n = r.__getInstance(o);
|
|
1244
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
|
1245
|
-
const c = r.__getInstance(o);
|
|
1246
|
-
c != null && (n = c.__composer, s && n && !n[st] && (n = null));
|
|
1247
|
-
}
|
|
1248
|
-
if (n != null || a === o)
|
|
1249
|
-
break;
|
|
1250
|
-
o = o.parent;
|
|
1251
|
-
}
|
|
1252
|
-
return n;
|
|
1253
|
-
}
|
|
1254
|
-
function tn(e, t = !1) {
|
|
1255
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
1256
|
-
}
|
|
1257
|
-
function an(e, t, s) {
|
|
1258
|
-
let n = null;
|
|
1259
|
-
Ea(() => {
|
|
1260
|
-
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
1261
|
-
t.vnode.el.__VUE_I18N__ = s, n = Ne();
|
|
1262
|
-
const a = s;
|
|
1263
|
-
a[w] && a[w](n), n.on("*", ee);
|
|
1264
|
-
}
|
|
1265
|
-
}, t), da(() => {
|
|
1266
|
-
const a = s;
|
|
1267
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*", ee), a[Q] && a[Q](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
1268
|
-
const o = a[ve];
|
|
1269
|
-
o && (o(), delete a[ve]);
|
|
1270
|
-
}, t);
|
|
1271
|
-
}
|
|
1272
|
-
const nn = [
|
|
1273
|
-
"locale",
|
|
1274
|
-
"fallbackLocale",
|
|
1275
|
-
"availableLocales"
|
|
1276
|
-
], ze = ["t", "rt", "d", "n", "tm", "te"];
|
|
1277
|
-
function sn(e, t) {
|
|
1278
|
-
const s = /* @__PURE__ */ Object.create(null);
|
|
1279
|
-
return nn.forEach((a) => {
|
|
1280
|
-
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1281
|
-
if (!o)
|
|
1282
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
1283
|
-
const r = fa(o.value) ? {
|
|
1284
|
-
get() {
|
|
1285
|
-
return o.value.value;
|
|
1286
|
-
},
|
|
1287
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1288
|
-
set(c) {
|
|
1289
|
-
o.value.value = c;
|
|
1290
|
-
}
|
|
1291
|
-
} : {
|
|
1292
|
-
get() {
|
|
1293
|
-
return o.get && o.get();
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
Object.defineProperty(s, a, r);
|
|
1297
|
-
}), e.config.globalProperties.$i18n = s, ze.forEach((a) => {
|
|
1298
|
-
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1299
|
-
if (!o || !o.value)
|
|
1300
|
-
throw L(E.UNEXPECTED_ERROR);
|
|
1301
|
-
Object.defineProperty(e.config.globalProperties, `$${a}`, o);
|
|
1302
|
-
}), () => {
|
|
1303
|
-
delete e.config.globalProperties.$i18n, ze.forEach((a) => {
|
|
1304
|
-
delete e.config.globalProperties[`$${a}`];
|
|
1305
|
-
});
|
|
1306
|
-
};
|
|
1307
|
-
}
|
|
1308
|
-
const ln = /* @__PURE__ */ Le({
|
|
1309
|
-
/* eslint-disable */
|
|
1310
|
-
name: "i18n-d",
|
|
1311
|
-
props: A({
|
|
1312
|
-
value: {
|
|
1313
|
-
type: [Number, Date],
|
|
1314
|
-
required: !0
|
|
1315
|
-
},
|
|
1316
|
-
format: {
|
|
1317
|
-
type: [String, Object]
|
|
1318
|
-
}
|
|
1319
|
-
}, Re),
|
|
1320
|
-
/* eslint-enable */
|
|
1321
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1322
|
-
setup(e, t) {
|
|
1323
|
-
const s = e.i18n || ue({
|
|
1324
|
-
useScope: e.scope,
|
|
1325
|
-
__useComponent: !0
|
|
1326
|
-
});
|
|
1327
|
-
return ut(e, t, ta, (...n) => (
|
|
1328
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1329
|
-
s[de](...n)
|
|
1330
|
-
));
|
|
1331
|
-
}
|
|
1332
|
-
}), _e = ln, rn = _e;
|
|
1333
|
-
Na();
|
|
1334
|
-
aa(la);
|
|
1335
|
-
na(ra);
|
|
1336
|
-
sa(Qe);
|
|
1337
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1338
|
-
const e = J();
|
|
1339
|
-
e.__INTLIFY__ = !0, oa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1340
|
-
}
|
|
1341
|
-
const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1342
|
-
__proto__: null,
|
|
1343
|
-
DatetimeFormat: _e,
|
|
1344
|
-
I18nD: rn,
|
|
1345
|
-
I18nInjectionKey: ft,
|
|
1346
|
-
I18nN: Ba,
|
|
1347
|
-
I18nT: Ha,
|
|
1348
|
-
NumberFormat: ce,
|
|
1349
|
-
Translation: ie,
|
|
1350
|
-
VERSION: at,
|
|
1351
|
-
createI18n: Ka,
|
|
1352
|
-
useI18n: ue,
|
|
1353
|
-
vTDirective: mt
|
|
1354
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1355
|
-
export {
|
|
1356
|
-
gn as V,
|
|
1357
|
-
Ka as c,
|
|
1358
|
-
ue as u
|
|
1359
|
-
};
|