@vc-shell/framework 2.0.0-alpha.0 → 2.0.0-alpha.1
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/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts +2 -2
- package/dist/framework.js +12 -12
- package/dist/test-helpers.d.ts +4 -12
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-menu/vc-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/ColumnFilter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableRowActions.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/TableSearchHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/components/VcColumn.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/components/mobile/PullToRefresh.vue.d.ts.map +1 -1
- package/dist/vendor-intlify-core-base-BmIo1dK4.js +1141 -0
- package/dist/{vendor-intlify-message-compiler-C5QaCXcF.js → vendor-intlify-message-compiler-D9VOavkL.js} +315 -307
- package/dist/{vendor-intlify-shared-BrKs3jCC.js → vendor-intlify-shared-SCAs3ybf.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-BAwEBHgE.js → vendor-prosemirror-gapcursor-S3ikcYX6.js} +14 -14
- package/dist/{vendor-tiptap-core-BfrE48R3.js → vendor-tiptap-core-CDScflP1.js} +665 -628
- package/dist/{vendor-tiptap-extension-blockquote-DG5eEgV_.js → vendor-tiptap-extension-blockquote-ChRAwuus.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-CqPrSfgB.js → vendor-tiptap-extension-bold-BwoVpOFS.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-Dj9HfL9x.js → vendor-tiptap-extension-code-DOlgG3ih.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-YnlbQcbJ.js → vendor-tiptap-extension-code-block-CMeTs87s.js} +29 -29
- package/dist/{vendor-tiptap-extension-document-DyG2LNKD.js → vendor-tiptap-extension-document-DO8oly70.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-mzhqFFEq.js → vendor-tiptap-extension-hard-break-BgDl2sHf.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-DGnriW33.js → vendor-tiptap-extension-heading-DFuYlwHi.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-pR7MlJHI.js → vendor-tiptap-extension-horizontal-rule-uyfttMp9.js} +1 -1
- package/dist/{vendor-tiptap-extension-image-BsXHNscz.js → vendor-tiptap-extension-image-DPeBaTE3.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-aoCbIXRj.js → vendor-tiptap-extension-italic-C9-3jNxO.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-DiV7DqnY.js → vendor-tiptap-extension-link-B57VzStq.js} +1 -1
- package/dist/{vendor-tiptap-extension-list-BGYRWOyu.js → vendor-tiptap-extension-list-spvOF7Mz.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-BEBEvW1W.js → vendor-tiptap-extension-paragraph-Cj7auQB7.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-6vob8J1A.js → vendor-tiptap-extension-strike-yj6UvnkO.js} +1 -1
- package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +1 -0
- package/dist/{vendor-tiptap-extension-table-CH-0UqG-.js → vendor-tiptap-extension-table-ex1kZQ-9.js} +1 -1
- package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +1 -0
- package/dist/{vendor-tiptap-extension-text-CnqQVbB2.js → vendor-tiptap-extension-text-C8FG4KnI.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-Bj4bCZI1.js → vendor-tiptap-extension-text-style-DsQDXowp.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-CVBZMhrs.js → vendor-tiptap-extension-underline-HB3fg6Dc.js} +1 -1
- package/dist/{vendor-tiptap-extensions-2ZbpCG7T.js → vendor-tiptap-extensions-CUGwjzl5.js} +2 -2
- package/dist/{vendor-tiptap-markdown-B7Wvo0s5.js → vendor-tiptap-markdown-DLzeP3KU.js} +1 -1
- package/dist/{vendor-tiptap-starter-kit-ipneJHYV.js → vendor-tiptap-starter-kit-C42PcJ7J.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-IfJcIOl5.js → vendor-tiptap-vue-3-BxWCzu9Z.js} +1 -1
- package/dist/{vendor-vue-i18n-BguHiJqH.js → vendor-vue-i18n-DeO9Fa9I.js} +409 -403
- package/package.json +5 -5
- package/dist/vendor-intlify-core-base-YZqJSEvl.js +0 -1130
- package/dist/vendor-tiptap-extension-placeholder-ZfoeEW0T.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-_uzaJkJG.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-_uzaJkJG.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-_uzaJkJG.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { g as N, k as
|
|
3
|
-
import * as
|
|
4
|
-
import { effectScope as ma, computed as
|
|
1
|
+
import { C as H, D as et, u as z, c as Xt, a as ye, b as Ve, i as Z, A as Jt, s as Kt, g as zt, N as qt, d as Qt, e as Zt, f as ea, h as be, j as Me, p as Ue, t as We, M as we, k as $e, l as xe, m as Ge, n as He, o as ta, q as aa, r as na, v as sa, w as ra, x as la, y as oa, z as ia, B as ca } from "./vendor-intlify-core-base-BmIo1dK4.js";
|
|
2
|
+
import { g as N, k as tt, B as y, f as ua, d as h, i as d, c as C, h as le, b as x, t as oe, C as he, a as S, e as A, D as re, m as ie, l as R, o as ee, w as ce, p as _a, n as Q } from "./vendor-intlify-shared-SCAs3ybf.js";
|
|
3
|
+
import * as Ee from "vue";
|
|
4
|
+
import { effectScope as ma, computed as q, watch as ve, isRef as fa, ref as ga, shallowRef as Ea, defineComponent as Fe, h as at, Fragment as nt, inject as da, onMounted as ba, onUnmounted as va, createVNode as Ia, Text as pa } from "vue";
|
|
5
5
|
import { s as Na } from "./vendor-vue-devtools-api-aVYGocXp.js";
|
|
6
|
-
import { c as Ta } from "./vendor-intlify-message-compiler-
|
|
6
|
+
import { c as Ta } from "./vendor-intlify-message-compiler-D9VOavkL.js";
|
|
7
7
|
/*!
|
|
8
|
-
* vue-i18n v11.
|
|
9
|
-
* (c)
|
|
8
|
+
* vue-i18n v11.3.0
|
|
9
|
+
* (c) 2026 kazuya kawaguchi
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const st = "11.3.0";
|
|
13
13
|
function La() {
|
|
14
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
14
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Q().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Q().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Q().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Q().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
15
15
|
}
|
|
16
16
|
const b = {
|
|
17
17
|
// composer module errors
|
|
@@ -50,88 +50,88 @@ const Oa = {
|
|
|
50
50
|
[b.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
51
51
|
[b.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
52
52
|
[b.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
53
|
-
},
|
|
54
|
-
FALLBACK_TO_ROOT:
|
|
55
|
-
//
|
|
56
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
57
|
-
IGNORE_OBJ_FLATTEN:
|
|
53
|
+
}, Ie = /* @__PURE__ */ y("__translateVNode"), pe = /* @__PURE__ */ y("__datetimeParts"), Ne = /* @__PURE__ */ y("__numberParts"), G = /* @__PURE__ */ y("__enableEmitter"), te = /* @__PURE__ */ y("__disableEmitter"), rt = y("__setPluralRules"), lt = /* @__PURE__ */ y("__injectWithOption"), Te = /* @__PURE__ */ y("__dispose"), D = {
|
|
54
|
+
FALLBACK_TO_ROOT: H,
|
|
55
|
+
// 10
|
|
56
|
+
NOT_FOUND_PARENT_SCOPE: H + 1,
|
|
57
|
+
IGNORE_OBJ_FLATTEN: H + 2,
|
|
58
58
|
/**
|
|
59
59
|
* @deprecated will be removed at vue-i18n v12
|
|
60
60
|
*/
|
|
61
|
-
DEPRECATE_LEGACY_MODE:
|
|
61
|
+
DEPRECATE_LEGACY_MODE: H + 3,
|
|
62
62
|
/**
|
|
63
63
|
* @deprecated will be removed at vue-i18n v12
|
|
64
64
|
*/
|
|
65
|
-
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:
|
|
65
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: H + 4,
|
|
66
66
|
// duplicate `useI18n` calling
|
|
67
|
-
DUPLICATE_USE_I18N_CALLING:
|
|
67
|
+
DUPLICATE_USE_I18N_CALLING: H + 5
|
|
68
68
|
}, ha = {
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
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
72
|
/**
|
|
73
73
|
* @deprecated will be removed at vue-i18n v12
|
|
74
74
|
*/
|
|
75
|
-
[
|
|
75
|
+
[D.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
76
76
|
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
|
|
77
77
|
/**
|
|
78
78
|
* @deprecated will be removed at vue-i18n v12
|
|
79
79
|
*/
|
|
80
|
-
[
|
|
81
|
-
[
|
|
80
|
+
[D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
81
|
+
[D.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function j(e, ...t) {
|
|
84
84
|
return ua(ha[e], ...t);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
if (!R(e) ||
|
|
86
|
+
function ae(e) {
|
|
87
|
+
if (!R(e) || Z(e))
|
|
88
88
|
return e;
|
|
89
89
|
for (const t in e)
|
|
90
|
-
if (
|
|
90
|
+
if (ie(e, t))
|
|
91
91
|
if (!t.includes("."))
|
|
92
|
-
R(e[t]) &&
|
|
92
|
+
R(e[t]) && ae(e[t]);
|
|
93
93
|
else {
|
|
94
|
-
const
|
|
94
|
+
const r = t.split("."), n = r.length - 1;
|
|
95
95
|
let a = e, o = !1;
|
|
96
96
|
for (let l = 0; l < n; l++) {
|
|
97
|
-
if (
|
|
98
|
-
throw new Error(`unsafe key: ${
|
|
99
|
-
if (
|
|
100
|
-
process.env.NODE_ENV !== "production" &&
|
|
101
|
-
key:
|
|
97
|
+
if (r[l] === "__proto__")
|
|
98
|
+
throw new Error(`unsafe key: ${r[l]}`);
|
|
99
|
+
if (r[l] in a || (a[r[l]] = A()), !R(a[r[l]])) {
|
|
100
|
+
process.env.NODE_ENV !== "production" && ce(j(D.IGNORE_OBJ_FLATTEN, {
|
|
101
|
+
key: r[l]
|
|
102
102
|
})), o = !0;
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
|
-
a = a[
|
|
105
|
+
a = a[r[l]];
|
|
106
106
|
}
|
|
107
|
-
if (o || (
|
|
108
|
-
const l = a[
|
|
109
|
-
R(l) &&
|
|
107
|
+
if (o || (Z(a) ? Jt.includes(r[n]) || delete e[t] : (a[r[n]] = e[t], delete e[t])), !Z(a)) {
|
|
108
|
+
const l = a[r[n]];
|
|
109
|
+
R(l) && ae(l);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
return e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
const { messages:
|
|
116
|
-
if (
|
|
114
|
+
function Re(e, t) {
|
|
115
|
+
const { messages: r, __i18n: n, messageResolver: a, flatJson: o } = t, l = h(r) ? r : C(n) ? A() : { [e]: A() };
|
|
116
|
+
if (C(n) && n.forEach((c) => {
|
|
117
117
|
if ("locale" in c && "resource" in c) {
|
|
118
118
|
const { locale: _, resource: m } = c;
|
|
119
|
-
_ ? (l[_] = l[_] ||
|
|
119
|
+
_ ? (l[_] = l[_] || A(), re(m, l[_])) : re(m, l);
|
|
120
120
|
} else
|
|
121
|
-
d(c) &&
|
|
121
|
+
d(c) && re(JSON.parse(c), l);
|
|
122
122
|
}), a == null && o)
|
|
123
123
|
for (const c in l)
|
|
124
|
-
|
|
124
|
+
ie(l, c) && ae(l[c]);
|
|
125
125
|
return l;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ot(e) {
|
|
128
128
|
return e.type;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
let n = R(t.messages) ? t.messages :
|
|
132
|
-
"__i18nGlobal" in
|
|
130
|
+
function it(e, t, r) {
|
|
131
|
+
let n = R(t.messages) ? t.messages : A();
|
|
132
|
+
"__i18nGlobal" in r && (n = Re(e.locale.value, {
|
|
133
133
|
messages: n,
|
|
134
|
-
__i18n:
|
|
134
|
+
__i18n: r.__i18nGlobal
|
|
135
135
|
}));
|
|
136
136
|
const a = Object.keys(n);
|
|
137
137
|
a.length && a.forEach((o) => {
|
|
@@ -152,62 +152,62 @@ function ot(e, t, s) {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ye(e) {
|
|
156
156
|
return Ia(pa, null, e, 0);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Y() {
|
|
159
159
|
const e = "currentInstance";
|
|
160
|
-
return e in
|
|
160
|
+
return e in Ee ? Ee[e] : Ee.getCurrentInstance();
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
function
|
|
165
|
-
return ((t,
|
|
162
|
+
const je = "__INTLIFY_META__", Be = () => [], Fa = () => !1;
|
|
163
|
+
let Xe = 0;
|
|
164
|
+
function Je(e) {
|
|
165
|
+
return ((t, r, n, a) => e(r, n, Y() || void 0, a));
|
|
166
166
|
}
|
|
167
167
|
const Ra = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
168
|
-
const e =
|
|
168
|
+
const e = Y();
|
|
169
169
|
let t = null;
|
|
170
|
-
return e && (t =
|
|
170
|
+
return e && (t = ot(e)[je]) ? { [je]: t } : null;
|
|
171
171
|
};
|
|
172
|
-
function
|
|
173
|
-
const { __root: t, __injectWithOption:
|
|
172
|
+
function ke(e = {}) {
|
|
173
|
+
const { __root: t, __injectWithOption: r } = e, n = t === void 0, a = e.flatJson, o = oe ? ga : Ea;
|
|
174
174
|
let l = N(e.inheritLocale) ? e.inheritLocale : !0;
|
|
175
175
|
const c = o(
|
|
176
176
|
// prettier-ignore
|
|
177
|
-
t && l ? t.locale.value : d(e.locale) ? e.locale :
|
|
177
|
+
t && l ? t.locale.value : d(e.locale) ? e.locale : et
|
|
178
178
|
), _ = o(
|
|
179
179
|
// prettier-ignore
|
|
180
|
-
t && l ? t.fallbackLocale.value : d(e.fallbackLocale) ||
|
|
181
|
-
), m = o(
|
|
182
|
-
let v = t ? t.missingWarn : N(e.missingWarn) ||
|
|
183
|
-
const
|
|
184
|
-
let
|
|
180
|
+
t && l ? t.fallbackLocale.value : d(e.fallbackLocale) || C(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
|
|
181
|
+
), m = o(Re(c.value, e)), E = o(h(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(h(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
|
|
182
|
+
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, L = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, V = x(e.missing) ? e.missing : null, k = x(e.missing) ? Je(e.missing) : null, M = x(e.postTranslation) ? e.postTranslation : null, B = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, X = !!e.escapeParameter;
|
|
183
|
+
const J = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
|
|
184
|
+
let K = e.pluralRules || t && t.pluralRules, u;
|
|
185
185
|
u = (() => {
|
|
186
|
-
n &&
|
|
187
|
-
const
|
|
188
|
-
version:
|
|
186
|
+
n && Me(null);
|
|
187
|
+
const s = {
|
|
188
|
+
version: st,
|
|
189
189
|
locale: c.value,
|
|
190
190
|
fallbackLocale: _.value,
|
|
191
191
|
messages: m.value,
|
|
192
|
-
modifiers:
|
|
193
|
-
pluralRules:
|
|
192
|
+
modifiers: J,
|
|
193
|
+
pluralRules: K,
|
|
194
194
|
missing: k === null ? void 0 : k,
|
|
195
195
|
missingWarn: v,
|
|
196
196
|
fallbackWarn: T,
|
|
197
197
|
fallbackFormat: O,
|
|
198
198
|
unresolving: !0,
|
|
199
|
-
postTranslation:
|
|
200
|
-
warnHtmlMessage:
|
|
201
|
-
escapeParameter:
|
|
199
|
+
postTranslation: M === null ? void 0 : M,
|
|
200
|
+
warnHtmlMessage: B,
|
|
201
|
+
escapeParameter: X,
|
|
202
202
|
messageResolver: e.messageResolver,
|
|
203
203
|
messageCompiler: e.messageCompiler,
|
|
204
204
|
__meta: { framework: "vue" }
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
const i = Xt(
|
|
208
|
-
return n &&
|
|
209
|
-
})(),
|
|
210
|
-
function
|
|
206
|
+
s.datetimeFormats = E.value, s.numberFormats = f.value, s.__datetimeFormatters = h(u) ? u.__datetimeFormatters : void 0, s.__numberFormatters = h(u) ? u.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (s.__v_emitter = h(u) ? u.__v_emitter : void 0);
|
|
207
|
+
const i = Xt(s);
|
|
208
|
+
return n && Me(i), i;
|
|
209
|
+
})(), z(u, c.value, _.value);
|
|
210
|
+
function ge() {
|
|
211
211
|
return [
|
|
212
212
|
c.value,
|
|
213
213
|
_.value,
|
|
@@ -216,192 +216,198 @@ function Fe(e = {}) {
|
|
|
216
216
|
f.value
|
|
217
217
|
];
|
|
218
218
|
}
|
|
219
|
-
const
|
|
219
|
+
const dt = q({
|
|
220
220
|
get: () => c.value,
|
|
221
|
-
set: (
|
|
222
|
-
u.locale =
|
|
221
|
+
set: (s) => {
|
|
222
|
+
u.locale = s, c.value = s;
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), bt = q({
|
|
225
225
|
get: () => _.value,
|
|
226
|
-
set: (
|
|
227
|
-
u.fallbackLocale =
|
|
226
|
+
set: (s) => {
|
|
227
|
+
u.fallbackLocale = s, _.value = s, z(u, c.value, s);
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
230
|
-
function
|
|
231
|
-
return
|
|
229
|
+
}), vt = q(() => m.value), It = /* @__PURE__ */ q(() => E.value), pt = /* @__PURE__ */ q(() => f.value);
|
|
230
|
+
function Nt() {
|
|
231
|
+
return x(M) ? M : null;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function Tt(s) {
|
|
234
|
+
M = s, u.postTranslation = s;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
236
|
+
function Lt() {
|
|
237
|
+
return V;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
239
|
+
function Ot(s) {
|
|
240
|
+
s !== null && (k = Je(s)), V = s, u.missing = k;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
242
|
+
function ht(s, i) {
|
|
243
|
+
return s !== "translate" || !i.resolvedMessage;
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
let
|
|
245
|
+
const U = (s, i, g, I, W, w) => {
|
|
246
|
+
ge();
|
|
247
|
+
let P;
|
|
248
248
|
try {
|
|
249
|
-
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Kt(/* @__PURE__ */ Ra()), n || (u.fallbackContext = t ? zt() : void 0),
|
|
249
|
+
(process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Kt(/* @__PURE__ */ Ra()), n || (u.fallbackContext = t ? zt() : void 0), P = s(u);
|
|
250
250
|
} finally {
|
|
251
251
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (u.fallbackContext = void 0);
|
|
252
252
|
}
|
|
253
253
|
if (g !== "translate exists" && // for not `te` (e.g `t`)
|
|
254
|
-
|
|
255
|
-
const [
|
|
256
|
-
if (process.env.NODE_ENV !== "production" && t && d(
|
|
257
|
-
key:
|
|
254
|
+
ee(P) && P === qt || g === "translate exists" && !P) {
|
|
255
|
+
const [$, Bt] = i();
|
|
256
|
+
if (process.env.NODE_ENV !== "production" && t && d($) && ht(g, Bt) && (L && (Qt(T, $) || Zt(v, $)) && ce(j(D.FALLBACK_TO_ROOT, {
|
|
257
|
+
key: $,
|
|
258
258
|
type: g
|
|
259
259
|
})), process.env.NODE_ENV !== "production")) {
|
|
260
|
-
const { __v_emitter:
|
|
261
|
-
|
|
260
|
+
const { __v_emitter: Se } = u;
|
|
261
|
+
Se && L && Se.emit("fallback", {
|
|
262
262
|
type: g,
|
|
263
|
-
key:
|
|
263
|
+
key: $,
|
|
264
264
|
to: "global",
|
|
265
|
-
groupId: `${g}:${
|
|
265
|
+
groupId: `${g}:${$}`
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
return t && L ? I(t) :
|
|
268
|
+
return t && L ? I(t) : W($);
|
|
269
269
|
} else {
|
|
270
|
-
if (
|
|
271
|
-
return
|
|
270
|
+
if (w(P))
|
|
271
|
+
return P;
|
|
272
272
|
throw F(b.UNEXPECTED_RETURN_TYPE);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
function
|
|
276
|
-
return
|
|
275
|
+
function De(...s) {
|
|
276
|
+
return U((i) => Reflect.apply(We, null, [i, ...s]), () => Ue(...s), "translate", (i) => Reflect.apply(i.t, i, [...s]), (i) => i, (i) => d(i));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
const [i, g, I] =
|
|
278
|
+
function Ft(...s) {
|
|
279
|
+
const [i, g, I] = s;
|
|
280
280
|
if (I && !R(I))
|
|
281
281
|
throw F(b.INVALID_ARGUMENT);
|
|
282
|
-
return
|
|
282
|
+
return De(i, g, S({ resolvedMessage: !0 }, I || {}));
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Rt(...s) {
|
|
285
|
+
return U((i) => Reflect.apply(xe, null, [i, ...s]), () => $e(...s), "datetime format", (i) => Reflect.apply(i.d, i, [...s]), () => we, (i) => d(i) || C(i));
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function kt(...s) {
|
|
288
|
+
return U((i) => Reflect.apply(He, null, [i, ...s]), () => Ge(...s), "number format", (i) => Reflect.apply(i.n, i, [...s]), () => we, (i) => d(i) || C(i));
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function Pt(s) {
|
|
291
|
+
return s.map((i) => d(i) || ee(i) || N(i) ? Ye(String(i)) : i);
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
normalize:
|
|
295
|
-
interpolate: (
|
|
293
|
+
const Ct = {
|
|
294
|
+
normalize: Pt,
|
|
295
|
+
interpolate: (s) => s,
|
|
296
296
|
type: "vnode"
|
|
297
297
|
};
|
|
298
|
-
function
|
|
299
|
-
return
|
|
298
|
+
function Dt(...s) {
|
|
299
|
+
return U((i) => {
|
|
300
300
|
let g;
|
|
301
301
|
const I = i;
|
|
302
302
|
try {
|
|
303
|
-
I.processor =
|
|
303
|
+
I.processor = Ct, g = Reflect.apply(We, null, [I, ...s]);
|
|
304
304
|
} finally {
|
|
305
305
|
I.processor = null;
|
|
306
306
|
}
|
|
307
307
|
return g;
|
|
308
|
-
}, () =>
|
|
308
|
+
}, () => Ue(...s), "translate", (i) => i[Ie](...s), (i) => [Ye(i)], (i) => C(i));
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
return
|
|
310
|
+
function At(...s) {
|
|
311
|
+
return U((i) => Reflect.apply(He, null, [i, ...s]), () => Ge(...s), "number format", (i) => i[Ne](...s), Be, (i) => d(i) || C(i));
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
313
|
+
function St(...s) {
|
|
314
|
+
return U((i) => Reflect.apply(xe, null, [i, ...s]), () => $e(...s), "datetime format", (i) => i[pe](...s), Be, (i) => d(i) || C(i));
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
316
|
+
function yt(s) {
|
|
317
|
+
K = s, u.pluralRules = K;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
return
|
|
321
|
-
if (!
|
|
319
|
+
function Vt(s, i) {
|
|
320
|
+
return U(() => {
|
|
321
|
+
if (!s)
|
|
322
322
|
return !1;
|
|
323
|
-
const g = d(i) ? i : c.value, I =
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
const g = d(i) ? i : c.value, I = d(i) ? [g] : be(u, _.value, g);
|
|
324
|
+
for (let W = 0; W < I.length; W++) {
|
|
325
|
+
const w = Ae(I[W]);
|
|
326
|
+
let P = u.messageResolver(w, s);
|
|
327
|
+
if (P === null && (P = w[s]), Z(P) || ta(P) || d(P))
|
|
328
|
+
return !0;
|
|
329
|
+
}
|
|
330
|
+
return !1;
|
|
331
|
+
}, () => [s], "translate exists", (g) => Reflect.apply(g.te, g, [s, i]), Fa, (g) => N(g));
|
|
326
332
|
}
|
|
327
|
-
function
|
|
333
|
+
function Mt(s) {
|
|
328
334
|
let i = null;
|
|
329
|
-
const g =
|
|
335
|
+
const g = be(u, _.value, c.value);
|
|
330
336
|
for (let I = 0; I < g.length; I++) {
|
|
331
|
-
const
|
|
332
|
-
if (
|
|
333
|
-
i =
|
|
337
|
+
const W = m.value[g[I]] || {}, w = u.messageResolver(W, s);
|
|
338
|
+
if (w != null) {
|
|
339
|
+
i = w;
|
|
334
340
|
break;
|
|
335
341
|
}
|
|
336
342
|
}
|
|
337
343
|
return i;
|
|
338
344
|
}
|
|
339
|
-
function
|
|
340
|
-
const i =
|
|
341
|
-
return i ?? (t ? t.tm(
|
|
345
|
+
function Ut(s) {
|
|
346
|
+
const i = Mt(s);
|
|
347
|
+
return i ?? (t ? t.tm(s) || {} : {});
|
|
342
348
|
}
|
|
343
|
-
function
|
|
344
|
-
return m.value[
|
|
349
|
+
function Ae(s) {
|
|
350
|
+
return m.value[s] || {};
|
|
345
351
|
}
|
|
346
|
-
function
|
|
352
|
+
function Wt(s, i) {
|
|
347
353
|
if (a) {
|
|
348
|
-
const g = { [
|
|
354
|
+
const g = { [s]: i };
|
|
349
355
|
for (const I in g)
|
|
350
|
-
|
|
351
|
-
i = g[
|
|
356
|
+
ie(g, I) && ae(g[I]);
|
|
357
|
+
i = g[s];
|
|
352
358
|
}
|
|
353
|
-
m.value[
|
|
359
|
+
m.value[s] = i, u.messages = m.value;
|
|
354
360
|
}
|
|
355
|
-
function
|
|
356
|
-
m.value[
|
|
357
|
-
const g = { [
|
|
361
|
+
function wt(s, i) {
|
|
362
|
+
m.value[s] = m.value[s] || {};
|
|
363
|
+
const g = { [s]: i };
|
|
358
364
|
if (a)
|
|
359
365
|
for (const I in g)
|
|
360
|
-
|
|
361
|
-
i = g[
|
|
366
|
+
ie(g, I) && ae(g[I]);
|
|
367
|
+
i = g[s], re(i, m.value[s]), u.messages = m.value;
|
|
362
368
|
}
|
|
363
|
-
function
|
|
364
|
-
return E.value[
|
|
369
|
+
function $t(s) {
|
|
370
|
+
return E.value[s] || {};
|
|
365
371
|
}
|
|
366
|
-
function
|
|
367
|
-
E.value[
|
|
372
|
+
function xt(s, i) {
|
|
373
|
+
E.value[s] = i, u.datetimeFormats = E.value, ye(u, s, i);
|
|
368
374
|
}
|
|
369
|
-
function
|
|
370
|
-
E.value[
|
|
375
|
+
function Gt(s, i) {
|
|
376
|
+
E.value[s] = S(E.value[s] || {}, i), u.datetimeFormats = E.value, ye(u, s, i);
|
|
371
377
|
}
|
|
372
|
-
function
|
|
373
|
-
return f.value[
|
|
378
|
+
function Ht(s) {
|
|
379
|
+
return f.value[s] || {};
|
|
374
380
|
}
|
|
375
|
-
function
|
|
376
|
-
f.value[
|
|
381
|
+
function Yt(s, i) {
|
|
382
|
+
f.value[s] = i, u.numberFormats = f.value, Ve(u, s, i);
|
|
377
383
|
}
|
|
378
|
-
function
|
|
379
|
-
f.value[
|
|
384
|
+
function jt(s, i) {
|
|
385
|
+
f.value[s] = S(f.value[s] || {}, i), u.numberFormats = f.value, Ve(u, s, i);
|
|
380
386
|
}
|
|
381
|
-
|
|
382
|
-
l && (c.value =
|
|
383
|
-
}),
|
|
384
|
-
l && (_.value =
|
|
387
|
+
Xe++, t && oe && (ve(t.locale, (s) => {
|
|
388
|
+
l && (c.value = s, u.locale = s, z(u, c.value, _.value));
|
|
389
|
+
}), ve(t.fallbackLocale, (s) => {
|
|
390
|
+
l && (_.value = s, u.fallbackLocale = s, z(u, c.value, _.value));
|
|
385
391
|
}));
|
|
386
392
|
const p = {
|
|
387
|
-
id:
|
|
388
|
-
locale:
|
|
389
|
-
fallbackLocale:
|
|
393
|
+
id: Xe,
|
|
394
|
+
locale: dt,
|
|
395
|
+
fallbackLocale: bt,
|
|
390
396
|
get inheritLocale() {
|
|
391
397
|
return l;
|
|
392
398
|
},
|
|
393
|
-
set inheritLocale(
|
|
394
|
-
l =
|
|
399
|
+
set inheritLocale(s) {
|
|
400
|
+
l = s, s && t && (c.value = t.locale.value, _.value = t.fallbackLocale.value, z(u, c.value, _.value));
|
|
395
401
|
},
|
|
396
402
|
get availableLocales() {
|
|
397
403
|
return Object.keys(m.value).sort();
|
|
398
404
|
},
|
|
399
|
-
messages:
|
|
405
|
+
messages: vt,
|
|
400
406
|
get modifiers() {
|
|
401
|
-
return
|
|
407
|
+
return J;
|
|
402
408
|
},
|
|
403
409
|
get pluralRules() {
|
|
404
|
-
return
|
|
410
|
+
return K || {};
|
|
405
411
|
},
|
|
406
412
|
get isGlobal() {
|
|
407
413
|
return n;
|
|
@@ -409,56 +415,56 @@ function Fe(e = {}) {
|
|
|
409
415
|
get missingWarn() {
|
|
410
416
|
return v;
|
|
411
417
|
},
|
|
412
|
-
set missingWarn(
|
|
413
|
-
v =
|
|
418
|
+
set missingWarn(s) {
|
|
419
|
+
v = s, u.missingWarn = v;
|
|
414
420
|
},
|
|
415
421
|
get fallbackWarn() {
|
|
416
422
|
return T;
|
|
417
423
|
},
|
|
418
|
-
set fallbackWarn(
|
|
419
|
-
T =
|
|
424
|
+
set fallbackWarn(s) {
|
|
425
|
+
T = s, u.fallbackWarn = T;
|
|
420
426
|
},
|
|
421
427
|
get fallbackRoot() {
|
|
422
428
|
return L;
|
|
423
429
|
},
|
|
424
|
-
set fallbackRoot(
|
|
425
|
-
L =
|
|
430
|
+
set fallbackRoot(s) {
|
|
431
|
+
L = s;
|
|
426
432
|
},
|
|
427
433
|
get fallbackFormat() {
|
|
428
434
|
return O;
|
|
429
435
|
},
|
|
430
|
-
set fallbackFormat(
|
|
431
|
-
O =
|
|
436
|
+
set fallbackFormat(s) {
|
|
437
|
+
O = s, u.fallbackFormat = O;
|
|
432
438
|
},
|
|
433
439
|
get warnHtmlMessage() {
|
|
434
|
-
return
|
|
440
|
+
return B;
|
|
435
441
|
},
|
|
436
|
-
set warnHtmlMessage(
|
|
437
|
-
|
|
442
|
+
set warnHtmlMessage(s) {
|
|
443
|
+
B = s, u.warnHtmlMessage = s;
|
|
438
444
|
},
|
|
439
445
|
get escapeParameter() {
|
|
440
|
-
return
|
|
441
|
-
},
|
|
442
|
-
set escapeParameter(
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
t:
|
|
446
|
-
getLocaleMessage:
|
|
447
|
-
setLocaleMessage:
|
|
448
|
-
mergeLocaleMessage:
|
|
449
|
-
getPostTranslationHandler:
|
|
450
|
-
setPostTranslationHandler:
|
|
451
|
-
getMissingHandler:
|
|
452
|
-
setMissingHandler:
|
|
453
|
-
[
|
|
446
|
+
return X;
|
|
447
|
+
},
|
|
448
|
+
set escapeParameter(s) {
|
|
449
|
+
X = s, u.escapeParameter = s;
|
|
450
|
+
},
|
|
451
|
+
t: De,
|
|
452
|
+
getLocaleMessage: Ae,
|
|
453
|
+
setLocaleMessage: Wt,
|
|
454
|
+
mergeLocaleMessage: wt,
|
|
455
|
+
getPostTranslationHandler: Nt,
|
|
456
|
+
setPostTranslationHandler: Tt,
|
|
457
|
+
getMissingHandler: Lt,
|
|
458
|
+
setMissingHandler: Ot,
|
|
459
|
+
[rt]: yt
|
|
454
460
|
};
|
|
455
|
-
return p.datetimeFormats =
|
|
456
|
-
u.__v_emitter =
|
|
457
|
-
}, p[
|
|
461
|
+
return p.datetimeFormats = It, p.numberFormats = pt, p.rt = Ft, p.te = Vt, p.tm = Ut, p.d = Rt, p.n = kt, p.getDateTimeFormat = $t, p.setDateTimeFormat = xt, p.mergeDateTimeFormat = Gt, p.getNumberFormat = Ht, p.setNumberFormat = Yt, p.mergeNumberFormat = jt, p[lt] = r, p[Ie] = Dt, p[pe] = St, p[Ne] = At, process.env.NODE_ENV !== "production" && (p[G] = (s) => {
|
|
462
|
+
u.__v_emitter = s;
|
|
463
|
+
}, p[te] = () => {
|
|
458
464
|
u.__v_emitter = void 0;
|
|
459
465
|
}), p;
|
|
460
466
|
}
|
|
461
|
-
const
|
|
467
|
+
const ct = "vue-i18n: composer properties", de = {
|
|
462
468
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
463
469
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
464
470
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -467,27 +473,27 @@ const it = "vue-i18n: composer properties", Ee = {
|
|
|
467
473
|
}, Pa = {
|
|
468
474
|
"vue-i18n-timeline": 16764185
|
|
469
475
|
};
|
|
470
|
-
let
|
|
476
|
+
let Le;
|
|
471
477
|
async function Ca(e, t) {
|
|
472
|
-
return new Promise((
|
|
478
|
+
return new Promise((r, n) => {
|
|
473
479
|
try {
|
|
474
480
|
Na({
|
|
475
481
|
id: "vue-devtools-plugin-vue-i18n",
|
|
476
|
-
label:
|
|
482
|
+
label: de["vue-devtools-plugin-vue-i18n"],
|
|
477
483
|
packageName: "vue-i18n",
|
|
478
484
|
homepage: "https://vue-i18n.intlify.dev",
|
|
479
485
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
480
|
-
componentStateTypes: [
|
|
486
|
+
componentStateTypes: [ct],
|
|
481
487
|
app: e
|
|
482
488
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
483
489
|
}, (a) => {
|
|
484
|
-
|
|
490
|
+
Le = a, a.on.visitComponentTree(({ componentInstance: l, treeNode: c }) => {
|
|
485
491
|
Da(l, c, t);
|
|
486
492
|
}), a.on.inspectComponent(({ componentInstance: l, instanceData: c }) => {
|
|
487
|
-
l.__VUE_I18N__ && c && (t.mode === "legacy" ? l.__VUE_I18N__ !== t.global.__composer &&
|
|
493
|
+
l.__VUE_I18N__ && c && (t.mode === "legacy" ? l.__VUE_I18N__ !== t.global.__composer && Ke(c, l.__VUE_I18N__) : Ke(c, l.__VUE_I18N__));
|
|
488
494
|
}), a.addInspector({
|
|
489
495
|
id: "vue-i18n-resource-inspector",
|
|
490
|
-
label:
|
|
496
|
+
label: de["vue-i18n-resource-inspector"],
|
|
491
497
|
icon: "language",
|
|
492
498
|
treeFilterPlaceholder: ka["vue-i18n-resource-inspector"]
|
|
493
499
|
}), a.on.getInspectorTree((l) => {
|
|
@@ -510,73 +516,73 @@ async function Ca(e, t) {
|
|
|
510
516
|
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && $a(l, t);
|
|
511
517
|
}), a.addTimelineLayer({
|
|
512
518
|
id: "vue-i18n-timeline",
|
|
513
|
-
label:
|
|
519
|
+
label: de["vue-i18n-timeline"],
|
|
514
520
|
color: Pa["vue-i18n-timeline"]
|
|
515
|
-
}),
|
|
521
|
+
}), r(!0);
|
|
516
522
|
});
|
|
517
523
|
} catch (a) {
|
|
518
524
|
console.error(a), n(!1);
|
|
519
525
|
}
|
|
520
526
|
});
|
|
521
527
|
}
|
|
522
|
-
function
|
|
528
|
+
function ut(e) {
|
|
523
529
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
524
530
|
}
|
|
525
|
-
function Da(e, t,
|
|
526
|
-
const n =
|
|
531
|
+
function Da(e, t, r) {
|
|
532
|
+
const n = r.mode === "composition" ? r.global : r.global.__composer;
|
|
527
533
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== n) {
|
|
528
534
|
const a = {
|
|
529
|
-
label: `i18n (${
|
|
535
|
+
label: `i18n (${ut(e)} Scope)`,
|
|
530
536
|
textColor: 0,
|
|
531
537
|
backgroundColor: 16764185
|
|
532
538
|
};
|
|
533
539
|
t.tags.push(a);
|
|
534
540
|
}
|
|
535
541
|
}
|
|
536
|
-
function
|
|
537
|
-
const
|
|
542
|
+
function Ke(e, t) {
|
|
543
|
+
const r = ct;
|
|
538
544
|
e.state.push({
|
|
539
|
-
type:
|
|
545
|
+
type: r,
|
|
540
546
|
key: "locale",
|
|
541
547
|
editable: !0,
|
|
542
548
|
value: t.locale.value
|
|
543
549
|
}), e.state.push({
|
|
544
|
-
type:
|
|
550
|
+
type: r,
|
|
545
551
|
key: "availableLocales",
|
|
546
552
|
editable: !1,
|
|
547
553
|
value: t.availableLocales
|
|
548
554
|
}), e.state.push({
|
|
549
|
-
type:
|
|
555
|
+
type: r,
|
|
550
556
|
key: "fallbackLocale",
|
|
551
557
|
editable: !0,
|
|
552
558
|
value: t.fallbackLocale.value
|
|
553
559
|
}), e.state.push({
|
|
554
|
-
type:
|
|
560
|
+
type: r,
|
|
555
561
|
key: "inheritLocale",
|
|
556
562
|
editable: !0,
|
|
557
563
|
value: t.inheritLocale
|
|
558
564
|
}), e.state.push({
|
|
559
|
-
type:
|
|
565
|
+
type: r,
|
|
560
566
|
key: "messages",
|
|
561
567
|
editable: !1,
|
|
562
|
-
value:
|
|
568
|
+
value: Pe(t.messages.value)
|
|
563
569
|
}), e.state.push({
|
|
564
|
-
type:
|
|
570
|
+
type: r,
|
|
565
571
|
key: "datetimeFormats",
|
|
566
572
|
editable: !1,
|
|
567
573
|
value: t.datetimeFormats.value
|
|
568
574
|
}), e.state.push({
|
|
569
|
-
type:
|
|
575
|
+
type: r,
|
|
570
576
|
key: "numberFormats",
|
|
571
577
|
editable: !1,
|
|
572
578
|
value: t.numberFormats.value
|
|
573
579
|
});
|
|
574
580
|
}
|
|
575
|
-
function
|
|
581
|
+
function Pe(e) {
|
|
576
582
|
const t = {};
|
|
577
|
-
return Object.keys(e).forEach((
|
|
578
|
-
const n = e[
|
|
579
|
-
|
|
583
|
+
return Object.keys(e).forEach((r) => {
|
|
584
|
+
const n = e[r];
|
|
585
|
+
x(n) && "source" in n ? t[r] = Va(n) : Z(n) && n.loc && n.loc.source ? t[r] = n.loc.source : R(n) ? t[r] = Pe(n) : t[r] = n;
|
|
580
586
|
}), t;
|
|
581
587
|
}
|
|
582
588
|
const Aa = {
|
|
@@ -604,72 +610,72 @@ function Ma(e, t) {
|
|
|
604
610
|
id: "global",
|
|
605
611
|
label: "Global Scope"
|
|
606
612
|
});
|
|
607
|
-
const
|
|
613
|
+
const r = t.mode === "composition" ? t.global : t.global.__composer;
|
|
608
614
|
for (const [n, a] of t.__instances) {
|
|
609
615
|
const o = t.mode === "composition" ? a : a.__composer;
|
|
610
|
-
|
|
616
|
+
r !== o && e.rootNodes.push({
|
|
611
617
|
id: o.id.toString(),
|
|
612
|
-
label: `${
|
|
618
|
+
label: `${ut(n)} Scope`
|
|
613
619
|
});
|
|
614
620
|
}
|
|
615
621
|
}
|
|
616
622
|
function Ua(e, t) {
|
|
617
|
-
let
|
|
623
|
+
let r = null;
|
|
618
624
|
if (e !== "global") {
|
|
619
625
|
for (const [n, a] of t.__instances.entries())
|
|
620
626
|
if (a.id.toString() === e) {
|
|
621
|
-
|
|
627
|
+
r = n;
|
|
622
628
|
break;
|
|
623
629
|
}
|
|
624
630
|
}
|
|
625
|
-
return
|
|
631
|
+
return r;
|
|
626
632
|
}
|
|
627
|
-
function
|
|
633
|
+
function _t(e, t) {
|
|
628
634
|
if (e === "global")
|
|
629
635
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
630
636
|
{
|
|
631
|
-
const
|
|
632
|
-
return
|
|
637
|
+
const r = Array.from(t.__instances.values()).find((n) => n.id.toString() === e);
|
|
638
|
+
return r ? t.mode === "composition" ? r : r.__composer : null;
|
|
633
639
|
}
|
|
634
640
|
}
|
|
635
641
|
function Wa(e, t) {
|
|
636
|
-
const
|
|
637
|
-
return
|
|
642
|
+
const r = _t(e.nodeId, t);
|
|
643
|
+
return r && (e.state = wa(r)), null;
|
|
638
644
|
}
|
|
639
645
|
function wa(e) {
|
|
640
|
-
const t = {},
|
|
646
|
+
const t = {}, r = "Locale related info", n = [
|
|
641
647
|
{
|
|
642
|
-
type:
|
|
648
|
+
type: r,
|
|
643
649
|
key: "locale",
|
|
644
650
|
editable: !0,
|
|
645
651
|
value: e.locale.value
|
|
646
652
|
},
|
|
647
653
|
{
|
|
648
|
-
type:
|
|
654
|
+
type: r,
|
|
649
655
|
key: "fallbackLocale",
|
|
650
656
|
editable: !0,
|
|
651
657
|
value: e.fallbackLocale.value
|
|
652
658
|
},
|
|
653
659
|
{
|
|
654
|
-
type:
|
|
660
|
+
type: r,
|
|
655
661
|
key: "availableLocales",
|
|
656
662
|
editable: !1,
|
|
657
663
|
value: e.availableLocales
|
|
658
664
|
},
|
|
659
665
|
{
|
|
660
|
-
type:
|
|
666
|
+
type: r,
|
|
661
667
|
key: "inheritLocale",
|
|
662
668
|
editable: !0,
|
|
663
669
|
value: e.inheritLocale
|
|
664
670
|
}
|
|
665
671
|
];
|
|
666
|
-
t[
|
|
672
|
+
t[r] = n;
|
|
667
673
|
const a = "Locale messages info", o = [
|
|
668
674
|
{
|
|
669
675
|
type: a,
|
|
670
676
|
key: "messages",
|
|
671
677
|
editable: !1,
|
|
672
|
-
value:
|
|
678
|
+
value: Pe(e.messages.value)
|
|
673
679
|
}
|
|
674
680
|
];
|
|
675
681
|
t[a] = o;
|
|
@@ -695,14 +701,14 @@ function wa(e) {
|
|
|
695
701
|
}
|
|
696
702
|
return t;
|
|
697
703
|
}
|
|
698
|
-
function
|
|
699
|
-
if (
|
|
700
|
-
let
|
|
701
|
-
t && "groupId" in t && (
|
|
704
|
+
function ne(e, t) {
|
|
705
|
+
if (Le) {
|
|
706
|
+
let r;
|
|
707
|
+
t && "groupId" in t && (r = t.groupId, delete t.groupId), Le.addTimelineEvent({
|
|
702
708
|
layerId: "vue-i18n-timeline",
|
|
703
709
|
event: {
|
|
704
710
|
title: e,
|
|
705
|
-
groupId:
|
|
711
|
+
groupId: r,
|
|
706
712
|
time: Date.now(),
|
|
707
713
|
meta: {},
|
|
708
714
|
data: t || {},
|
|
@@ -712,30 +718,30 @@ function te(e, t) {
|
|
|
712
718
|
}
|
|
713
719
|
}
|
|
714
720
|
function $a(e, t) {
|
|
715
|
-
const
|
|
716
|
-
if (
|
|
721
|
+
const r = _t(e.nodeId, t);
|
|
722
|
+
if (r) {
|
|
717
723
|
const [n] = e.path;
|
|
718
|
-
n === "locale" && d(e.state.value) ?
|
|
724
|
+
n === "locale" && d(e.state.value) ? r.locale.value = e.state.value : n === "fallbackLocale" && (d(e.state.value) || C(e.state.value) || R(e.state.value)) ? r.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (r.inheritLocale = e.state.value);
|
|
719
725
|
}
|
|
720
726
|
}
|
|
721
727
|
function xa(e) {
|
|
722
|
-
const t = d(e.locale) ? e.locale :
|
|
728
|
+
const t = d(e.locale) ? e.locale : et, r = d(e.fallbackLocale) || C(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = x(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, l = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, _ = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, E = x(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
|
|
723
729
|
let L = e.messages;
|
|
724
730
|
if (h(e.sharedMessages)) {
|
|
725
|
-
const
|
|
726
|
-
L = Object.keys(
|
|
727
|
-
const
|
|
728
|
-
return
|
|
731
|
+
const J = e.sharedMessages;
|
|
732
|
+
L = Object.keys(J).reduce((u, se) => {
|
|
733
|
+
const ge = u[se] || (u[se] = {});
|
|
734
|
+
return S(ge, J[se]), u;
|
|
729
735
|
}, L || {});
|
|
730
736
|
}
|
|
731
|
-
const { __i18n: O, __root:
|
|
737
|
+
const { __i18n: O, __root: V, __injectWithOption: k } = e, M = e.datetimeFormats, B = e.numberFormats, X = e.flatJson;
|
|
732
738
|
return {
|
|
733
739
|
locale: t,
|
|
734
|
-
fallbackLocale:
|
|
740
|
+
fallbackLocale: r,
|
|
735
741
|
messages: L,
|
|
736
|
-
flatJson:
|
|
737
|
-
datetimeFormats:
|
|
738
|
-
numberFormats:
|
|
742
|
+
flatJson: X,
|
|
743
|
+
datetimeFormats: M,
|
|
744
|
+
numberFormats: B,
|
|
739
745
|
missing: n,
|
|
740
746
|
missingWarn: a,
|
|
741
747
|
fallbackWarn: o,
|
|
@@ -749,12 +755,12 @@ function xa(e) {
|
|
|
749
755
|
messageResolver: e.messageResolver,
|
|
750
756
|
inheritLocale: T,
|
|
751
757
|
__i18n: O,
|
|
752
|
-
__root:
|
|
758
|
+
__root: V,
|
|
753
759
|
__injectWithOption: k
|
|
754
760
|
};
|
|
755
761
|
}
|
|
756
|
-
function
|
|
757
|
-
const t =
|
|
762
|
+
function Oe(e = {}) {
|
|
763
|
+
const t = ke(xa(e)), { __extender: r } = e, n = {
|
|
758
764
|
// id
|
|
759
765
|
id: t.id,
|
|
760
766
|
// locale
|
|
@@ -914,38 +920,38 @@ function Te(e = {}) {
|
|
|
914
920
|
t.mergeNumberFormat(a, o);
|
|
915
921
|
}
|
|
916
922
|
};
|
|
917
|
-
return n.__extender =
|
|
923
|
+
return n.__extender = r, process.env.NODE_ENV !== "production" && (n.__enableEmitter = (a) => {
|
|
918
924
|
const o = t;
|
|
919
|
-
o[
|
|
925
|
+
o[G] && o[G](a);
|
|
920
926
|
}, n.__disableEmitter = () => {
|
|
921
927
|
const a = t;
|
|
922
|
-
a[
|
|
928
|
+
a[te] && a[te]();
|
|
923
929
|
}), n;
|
|
924
930
|
}
|
|
925
|
-
function Ga(e, t,
|
|
931
|
+
function Ga(e, t, r) {
|
|
926
932
|
return {
|
|
927
933
|
beforeCreate() {
|
|
928
|
-
const n =
|
|
934
|
+
const n = Y();
|
|
929
935
|
if (!n)
|
|
930
936
|
throw F(b.UNEXPECTED_ERROR);
|
|
931
937
|
const a = this.$options;
|
|
932
938
|
if (a.i18n) {
|
|
933
939
|
const o = a.i18n;
|
|
934
940
|
if (a.__i18n && (o.__i18n = a.__i18n), o.__root = t, this === this.$root)
|
|
935
|
-
this.$i18n =
|
|
941
|
+
this.$i18n = ze(e, o);
|
|
936
942
|
else {
|
|
937
|
-
o.__injectWithOption = !0, o.__extender =
|
|
943
|
+
o.__injectWithOption = !0, o.__extender = r.__vueI18nExtend, this.$i18n = Oe(o);
|
|
938
944
|
const l = this.$i18n;
|
|
939
945
|
l.__extender && (l.__disposer = l.__extender(this.$i18n));
|
|
940
946
|
}
|
|
941
947
|
} else if (a.__i18n)
|
|
942
948
|
if (this === this.$root)
|
|
943
|
-
this.$i18n =
|
|
949
|
+
this.$i18n = ze(e, a);
|
|
944
950
|
else {
|
|
945
|
-
this.$i18n =
|
|
951
|
+
this.$i18n = Oe({
|
|
946
952
|
__i18n: a.__i18n,
|
|
947
953
|
__injectWithOption: !0,
|
|
948
|
-
__extender:
|
|
954
|
+
__extender: r.__vueI18nExtend,
|
|
949
955
|
__root: t
|
|
950
956
|
});
|
|
951
957
|
const o = this.$i18n;
|
|
@@ -953,37 +959,37 @@ function Ga(e, t, s) {
|
|
|
953
959
|
}
|
|
954
960
|
else
|
|
955
961
|
this.$i18n = e;
|
|
956
|
-
a.__i18nGlobal &&
|
|
962
|
+
a.__i18nGlobal && it(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, l) => this.$i18n.te(o, l), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), r.__setInstance(n, this.$i18n);
|
|
957
963
|
},
|
|
958
964
|
mounted() {
|
|
959
965
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
960
|
-
const n =
|
|
966
|
+
const n = Y();
|
|
961
967
|
if (!n)
|
|
962
968
|
return;
|
|
963
969
|
const a = this.$i18n;
|
|
964
970
|
n.__VUE_I18N__ = a.__composer;
|
|
965
|
-
const o = this.__v_emitter =
|
|
966
|
-
a.__enableEmitter && a.__enableEmitter(o), o.on("*",
|
|
971
|
+
const o = this.__v_emitter = he();
|
|
972
|
+
a.__enableEmitter && a.__enableEmitter(o), o.on("*", ne);
|
|
967
973
|
}
|
|
968
974
|
},
|
|
969
975
|
unmounted() {
|
|
970
|
-
const n =
|
|
976
|
+
const n = Y();
|
|
971
977
|
if (!n)
|
|
972
978
|
throw F(b.UNEXPECTED_ERROR);
|
|
973
979
|
const a = this.$i18n;
|
|
974
|
-
process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*",
|
|
980
|
+
process.env.NODE_ENV !== "production" && n.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", ne), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete n.__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), r.__deleteInstance(n), delete this.$i18n;
|
|
975
981
|
}
|
|
976
982
|
};
|
|
977
983
|
}
|
|
978
|
-
function
|
|
979
|
-
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[
|
|
980
|
-
const
|
|
984
|
+
function ze(e, t) {
|
|
985
|
+
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[rt](t.pluralizationRules || e.pluralizationRules);
|
|
986
|
+
const r = Re(e.locale, {
|
|
981
987
|
messages: t.messages,
|
|
982
988
|
__i18n: t.__i18n
|
|
983
989
|
});
|
|
984
|
-
return Object.keys(
|
|
990
|
+
return Object.keys(r).forEach((n) => e.mergeLocaleMessage(n, r[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;
|
|
985
991
|
}
|
|
986
|
-
const
|
|
992
|
+
const Ce = {
|
|
987
993
|
tag: {
|
|
988
994
|
type: [String, Object]
|
|
989
995
|
},
|
|
@@ -1005,66 +1011,66 @@ function Ha({ slots: e }, t) {
|
|
|
1005
1011
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, a) => [
|
|
1006
1012
|
...n,
|
|
1007
1013
|
// prettier-ignore
|
|
1008
|
-
...a.type ===
|
|
1009
|
-
], []) : t.reduce((
|
|
1014
|
+
...a.type === nt ? a.children : [a]
|
|
1015
|
+
], []) : t.reduce((r, n) => {
|
|
1010
1016
|
const a = e[n];
|
|
1011
|
-
return a && (
|
|
1012
|
-
},
|
|
1017
|
+
return a && (r[n] = a()), r;
|
|
1018
|
+
}, A());
|
|
1013
1019
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1020
|
+
function mt() {
|
|
1021
|
+
return nt;
|
|
1016
1022
|
}
|
|
1017
|
-
const Ya = /* @__PURE__ */
|
|
1023
|
+
const Ya = /* @__PURE__ */ Fe({
|
|
1018
1024
|
/* eslint-disable */
|
|
1019
1025
|
name: "i18n-t",
|
|
1020
|
-
props:
|
|
1026
|
+
props: S({
|
|
1021
1027
|
keypath: {
|
|
1022
1028
|
type: String,
|
|
1023
1029
|
required: !0
|
|
1024
1030
|
},
|
|
1025
1031
|
plural: {
|
|
1026
1032
|
type: [Number, String],
|
|
1027
|
-
validator: (e) =>
|
|
1033
|
+
validator: (e) => ee(e) || !isNaN(e)
|
|
1028
1034
|
}
|
|
1029
|
-
},
|
|
1035
|
+
}, Ce),
|
|
1030
1036
|
/* eslint-enable */
|
|
1031
1037
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1032
1038
|
setup(e, t) {
|
|
1033
|
-
const { slots:
|
|
1039
|
+
const { slots: r, attrs: n } = t, a = e.i18n || fe({
|
|
1034
1040
|
useScope: e.scope,
|
|
1035
1041
|
__useComponent: !0
|
|
1036
1042
|
});
|
|
1037
1043
|
return () => {
|
|
1038
|
-
const o = Object.keys(
|
|
1044
|
+
const o = Object.keys(r).filter((f) => f[0] !== "_"), l = A();
|
|
1039
1045
|
e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = d(e.plural) ? +e.plural : e.plural);
|
|
1040
|
-
const c = Ha(t, o), _ = a[
|
|
1041
|
-
return
|
|
1046
|
+
const c = Ha(t, o), _ = a[Ie](e.keypath, c, l), m = S(A(), n), E = d(e.tag) || R(e.tag) ? e.tag : mt();
|
|
1047
|
+
return at(E, m, _);
|
|
1042
1048
|
};
|
|
1043
1049
|
}
|
|
1044
|
-
}),
|
|
1050
|
+
}), ue = Ya, ja = ue;
|
|
1045
1051
|
function Ba(e) {
|
|
1046
|
-
return
|
|
1052
|
+
return C(e) && !d(e[0]);
|
|
1047
1053
|
}
|
|
1048
|
-
function
|
|
1054
|
+
function ft(e, t, r, n) {
|
|
1049
1055
|
const { slots: a, attrs: o } = t;
|
|
1050
1056
|
return () => {
|
|
1051
1057
|
const l = { part: !0 };
|
|
1052
|
-
let c =
|
|
1053
|
-
e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : R(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((v, T) =>
|
|
1058
|
+
let c = A();
|
|
1059
|
+
e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : R(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => r.includes(T) ? S(A(), v, { [T]: e.format[T] }) : v, A()));
|
|
1054
1060
|
const _ = n(e.value, l, c);
|
|
1055
1061
|
let m = [l.key];
|
|
1056
|
-
|
|
1062
|
+
C(_) ? m = _.map((v, T) => {
|
|
1057
1063
|
const L = a[v.type], O = L ? L({ [v.type]: v.value, index: T, parts: _ }) : [v.value];
|
|
1058
1064
|
return Ba(O) && (O[0].key = `${v.type}-${T}`), O;
|
|
1059
1065
|
}) : d(_) && (m = [_]);
|
|
1060
|
-
const E = A(
|
|
1061
|
-
return
|
|
1066
|
+
const E = S(A(), o), f = d(e.tag) || R(e.tag) ? e.tag : mt();
|
|
1067
|
+
return at(f, E, m);
|
|
1062
1068
|
};
|
|
1063
1069
|
}
|
|
1064
|
-
const Xa = /* @__PURE__ */
|
|
1070
|
+
const Xa = /* @__PURE__ */ Fe({
|
|
1065
1071
|
/* eslint-disable */
|
|
1066
1072
|
name: "i18n-n",
|
|
1067
|
-
props:
|
|
1073
|
+
props: S({
|
|
1068
1074
|
value: {
|
|
1069
1075
|
type: Number,
|
|
1070
1076
|
required: !0
|
|
@@ -1072,56 +1078,56 @@ const Xa = /* @__PURE__ */ Oe({
|
|
|
1072
1078
|
format: {
|
|
1073
1079
|
type: [String, Object]
|
|
1074
1080
|
}
|
|
1075
|
-
},
|
|
1081
|
+
}, Ce),
|
|
1076
1082
|
/* eslint-enable */
|
|
1077
1083
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1078
1084
|
setup(e, t) {
|
|
1079
|
-
const
|
|
1085
|
+
const r = e.i18n || fe({
|
|
1080
1086
|
useScope: e.scope,
|
|
1081
1087
|
__useComponent: !0
|
|
1082
1088
|
});
|
|
1083
|
-
return
|
|
1089
|
+
return ft(e, t, aa, (...n) => (
|
|
1084
1090
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1085
|
-
|
|
1091
|
+
r[Ne](...n)
|
|
1086
1092
|
));
|
|
1087
1093
|
}
|
|
1088
|
-
}),
|
|
1094
|
+
}), _e = Xa, Ja = _e;
|
|
1089
1095
|
function Ka(e, t) {
|
|
1090
|
-
const
|
|
1096
|
+
const r = e;
|
|
1091
1097
|
if (e.mode === "composition")
|
|
1092
|
-
return
|
|
1098
|
+
return r.__getInstance(t) || e.global;
|
|
1093
1099
|
{
|
|
1094
|
-
const n =
|
|
1100
|
+
const n = r.__getInstance(t);
|
|
1095
1101
|
return n != null ? n.__composer : e.global.__composer;
|
|
1096
1102
|
}
|
|
1097
1103
|
}
|
|
1098
|
-
function
|
|
1104
|
+
function gt(e) {
|
|
1099
1105
|
const t = (l) => {
|
|
1100
|
-
process.env.NODE_ENV !== "production" &&
|
|
1106
|
+
process.env.NODE_ENV !== "production" && tt(j(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
1101
1107
|
const { instance: c, value: _ } = l;
|
|
1102
1108
|
if (!c || !c.$)
|
|
1103
1109
|
throw F(b.UNEXPECTED_ERROR);
|
|
1104
|
-
const m = Ka(e, c.$), E =
|
|
1110
|
+
const m = Ka(e, c.$), E = qe(_);
|
|
1105
1111
|
return [
|
|
1106
|
-
Reflect.apply(m.t, m, [...
|
|
1112
|
+
Reflect.apply(m.t, m, [...Qe(E)]),
|
|
1107
1113
|
m
|
|
1108
1114
|
];
|
|
1109
1115
|
};
|
|
1110
1116
|
return {
|
|
1111
1117
|
created: (l, c) => {
|
|
1112
1118
|
const [_, m] = t(c);
|
|
1113
|
-
|
|
1119
|
+
oe && (l.__i18nWatcher = ve(m.locale, () => {
|
|
1114
1120
|
c.instance && c.instance.$forceUpdate();
|
|
1115
1121
|
})), l.__composer = m, l.textContent = _;
|
|
1116
1122
|
},
|
|
1117
1123
|
unmounted: (l) => {
|
|
1118
|
-
|
|
1124
|
+
oe && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
|
|
1119
1125
|
},
|
|
1120
1126
|
beforeUpdate: (l, { value: c }) => {
|
|
1121
1127
|
if (l.__composer) {
|
|
1122
|
-
const _ = l.__composer, m =
|
|
1128
|
+
const _ = l.__composer, m = qe(c);
|
|
1123
1129
|
l.textContent = Reflect.apply(_.t, _, [
|
|
1124
|
-
...
|
|
1130
|
+
...Qe(m)
|
|
1125
1131
|
]);
|
|
1126
1132
|
}
|
|
1127
1133
|
},
|
|
@@ -1131,7 +1137,7 @@ function ft(e) {
|
|
|
1131
1137
|
}
|
|
1132
1138
|
};
|
|
1133
1139
|
}
|
|
1134
|
-
function
|
|
1140
|
+
function qe(e) {
|
|
1135
1141
|
if (d(e))
|
|
1136
1142
|
return { path: e };
|
|
1137
1143
|
if (h(e)) {
|
|
@@ -1141,19 +1147,19 @@ function Ke(e) {
|
|
|
1141
1147
|
} else
|
|
1142
1148
|
throw F(b.INVALID_VALUE);
|
|
1143
1149
|
}
|
|
1144
|
-
function
|
|
1145
|
-
const { path: t, locale:
|
|
1146
|
-
return d(
|
|
1150
|
+
function Qe(e) {
|
|
1151
|
+
const { path: t, locale: r, args: n, choice: a, plural: o } = e, l = {}, c = n || {};
|
|
1152
|
+
return d(r) && (l.locale = r), ee(a) && (l.plural = a), ee(o) && (l.plural = o), [t, c, l];
|
|
1147
1153
|
}
|
|
1148
|
-
function za(e, t, ...
|
|
1149
|
-
const n = h(
|
|
1150
|
-
(N(n.globalInstall) ? n.globalInstall : !0) && ([
|
|
1154
|
+
function za(e, t, ...r) {
|
|
1155
|
+
const n = h(r[0]) ? r[0] : {};
|
|
1156
|
+
(N(n.globalInstall) ? n.globalInstall : !0) && ([ue.name, "I18nT"].forEach((o) => e.component(o, ue)), [_e.name, "I18nN"].forEach((o) => e.component(o, _e)), [me.name, "I18nD"].forEach((o) => e.component(o, me))), e.directive("t", gt(t));
|
|
1151
1157
|
}
|
|
1152
|
-
const
|
|
1158
|
+
const Et = /* @__PURE__ */ y("global-vue-i18n");
|
|
1153
1159
|
function qa(e = {}) {
|
|
1154
1160
|
const t = __VUE_I18N_LEGACY_API__ && N(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
1155
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
1156
|
-
const
|
|
1161
|
+
process.env.NODE_ENV !== "production" && t && tt(j(D.DEPRECATE_LEGACY_MODE));
|
|
1162
|
+
const r = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = Qa(e, t), l = /* @__PURE__ */ y(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1157
1163
|
function c(f) {
|
|
1158
1164
|
return n.get(f) || null;
|
|
1159
1165
|
}
|
|
@@ -1175,22 +1181,22 @@ function qa(e = {}) {
|
|
|
1175
1181
|
E.__composerExtend = O.__composerExtend, E.__vueI18nExtend = O.__vueI18nExtend;
|
|
1176
1182
|
}
|
|
1177
1183
|
let T = null;
|
|
1178
|
-
!t &&
|
|
1184
|
+
!t && r && (T = ln(f, E.global)), __VUE_I18N_FULL_INSTALL__ && za(f, E, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(Ga(o, o.__composer, E));
|
|
1179
1185
|
const L = f.unmount;
|
|
1180
1186
|
if (f.unmount = () => {
|
|
1181
1187
|
T && T(), E.dispose(), L();
|
|
1182
1188
|
}, process.env.NODE_ENV !== "production") {
|
|
1183
1189
|
if (!await Ca(f, E))
|
|
1184
1190
|
throw F(b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1185
|
-
const
|
|
1191
|
+
const V = he();
|
|
1186
1192
|
if (t) {
|
|
1187
1193
|
const k = o;
|
|
1188
|
-
k.__enableEmitter && k.__enableEmitter(
|
|
1194
|
+
k.__enableEmitter && k.__enableEmitter(V);
|
|
1189
1195
|
} else {
|
|
1190
1196
|
const k = o;
|
|
1191
|
-
k[
|
|
1197
|
+
k[G] && k[G](V);
|
|
1192
1198
|
}
|
|
1193
|
-
|
|
1199
|
+
V.on("*", ne);
|
|
1194
1200
|
}
|
|
1195
1201
|
},
|
|
1196
1202
|
// global accessor
|
|
@@ -1211,36 +1217,36 @@ function qa(e = {}) {
|
|
|
1211
1217
|
};
|
|
1212
1218
|
return E;
|
|
1213
1219
|
}
|
|
1214
|
-
function
|
|
1215
|
-
const t =
|
|
1220
|
+
function fe(e = {}) {
|
|
1221
|
+
const t = Y();
|
|
1216
1222
|
if (t == null)
|
|
1217
1223
|
throw F(b.MUST_BE_CALL_SETUP_TOP);
|
|
1218
1224
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1219
1225
|
throw F(b.NOT_INSTALLED);
|
|
1220
|
-
const
|
|
1226
|
+
const r = Za(t), n = tn(r), a = ot(t), o = en(e, a);
|
|
1221
1227
|
if (o === "global")
|
|
1222
|
-
return
|
|
1228
|
+
return it(n, e, a), n;
|
|
1223
1229
|
if (o === "parent") {
|
|
1224
|
-
let _ = an(
|
|
1225
|
-
return _ == null && (process.env.NODE_ENV !== "production" &&
|
|
1230
|
+
let _ = an(r, t, e.__useComponent);
|
|
1231
|
+
return _ == null && (process.env.NODE_ENV !== "production" && ce(j(D.NOT_FOUND_PARENT_SCOPE)), _ = n), _;
|
|
1226
1232
|
}
|
|
1227
|
-
const l =
|
|
1233
|
+
const l = r;
|
|
1228
1234
|
let c = l.__getInstance(t);
|
|
1229
1235
|
if (c == null) {
|
|
1230
|
-
const _ =
|
|
1231
|
-
"__i18n" in a && (_.__i18n = a.__i18n), n && (_.__root = n), c =
|
|
1236
|
+
const _ = S({}, e);
|
|
1237
|
+
"__i18n" in a && (_.__i18n = a.__i18n), n && (_.__root = n), c = ke(_), l.__composerExtend && (c[Te] = l.__composerExtend(c)), sn(l, t, c), l.__setInstance(t, c);
|
|
1232
1238
|
} else
|
|
1233
|
-
process.env.NODE_ENV !== "production" && o === "local" &&
|
|
1239
|
+
process.env.NODE_ENV !== "production" && o === "local" && ce(j(D.DUPLICATE_USE_I18N_CALLING));
|
|
1234
1240
|
return c;
|
|
1235
1241
|
}
|
|
1236
1242
|
function Qa(e, t) {
|
|
1237
|
-
const
|
|
1243
|
+
const r = ma(), n = __VUE_I18N_LEGACY_API__ && t ? r.run(() => Oe(e)) : r.run(() => ke(e));
|
|
1238
1244
|
if (n == null)
|
|
1239
1245
|
throw F(b.UNEXPECTED_ERROR);
|
|
1240
|
-
return [
|
|
1246
|
+
return [r, n];
|
|
1241
1247
|
}
|
|
1242
1248
|
function Za(e) {
|
|
1243
|
-
const t = da(e.isCE ?
|
|
1249
|
+
const t = da(e.isCE ? Et : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1244
1250
|
if (!t)
|
|
1245
1251
|
throw F(e.isCE ? b.NOT_INSTALLED_WITH_PROVIDE : b.UNEXPECTED_ERROR);
|
|
1246
1252
|
return t;
|
|
@@ -1251,17 +1257,17 @@ function en(e, t) {
|
|
|
1251
1257
|
function tn(e) {
|
|
1252
1258
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1253
1259
|
}
|
|
1254
|
-
function an(e, t,
|
|
1260
|
+
function an(e, t, r = !1) {
|
|
1255
1261
|
let n = null;
|
|
1256
1262
|
const a = t.root;
|
|
1257
|
-
let o = nn(t,
|
|
1263
|
+
let o = nn(t, r);
|
|
1258
1264
|
for (; o != null; ) {
|
|
1259
1265
|
const l = e;
|
|
1260
1266
|
if (e.mode === "composition")
|
|
1261
1267
|
n = l.__getInstance(o);
|
|
1262
1268
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
1263
1269
|
const c = l.__getInstance(o);
|
|
1264
|
-
c != null && (n = c.__composer,
|
|
1270
|
+
c != null && (n = c.__composer, r && n && !n[lt] && (n = null));
|
|
1265
1271
|
}
|
|
1266
1272
|
if (n != null || a === o)
|
|
1267
1273
|
break;
|
|
@@ -1272,28 +1278,28 @@ function an(e, t, s = !1) {
|
|
|
1272
1278
|
function nn(e, t = !1) {
|
|
1273
1279
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
1274
1280
|
}
|
|
1275
|
-
function sn(e, t,
|
|
1281
|
+
function sn(e, t, r) {
|
|
1276
1282
|
let n = null;
|
|
1277
1283
|
ba(() => {
|
|
1278
1284
|
if (process.env.NODE_ENV !== "production") {
|
|
1279
|
-
t.__VUE_I18N__ =
|
|
1280
|
-
const a =
|
|
1281
|
-
a[
|
|
1285
|
+
t.__VUE_I18N__ = r, n = he();
|
|
1286
|
+
const a = r;
|
|
1287
|
+
a[G] && a[G](n), n.on("*", ne);
|
|
1282
1288
|
}
|
|
1283
1289
|
}, t), va(() => {
|
|
1284
|
-
const a =
|
|
1285
|
-
process.env.NODE_ENV !== "production" && (n && n.off("*",
|
|
1286
|
-
const o = a[
|
|
1287
|
-
o && (o(), delete a[
|
|
1290
|
+
const a = r;
|
|
1291
|
+
process.env.NODE_ENV !== "production" && (n && n.off("*", ne), a[te] && a[te](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
1292
|
+
const o = a[Te];
|
|
1293
|
+
o && (o(), delete a[Te]);
|
|
1288
1294
|
}, t);
|
|
1289
1295
|
}
|
|
1290
1296
|
const rn = [
|
|
1291
1297
|
"locale",
|
|
1292
1298
|
"fallbackLocale",
|
|
1293
1299
|
"availableLocales"
|
|
1294
|
-
],
|
|
1300
|
+
], Ze = ["t", "rt", "d", "n", "tm", "te"];
|
|
1295
1301
|
function ln(e, t) {
|
|
1296
|
-
const
|
|
1302
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
1297
1303
|
return rn.forEach((a) => {
|
|
1298
1304
|
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1299
1305
|
if (!o)
|
|
@@ -1311,22 +1317,22 @@ function ln(e, t) {
|
|
|
1311
1317
|
return o.get && o.get();
|
|
1312
1318
|
}
|
|
1313
1319
|
};
|
|
1314
|
-
Object.defineProperty(
|
|
1315
|
-
}), e.config.globalProperties.$i18n =
|
|
1320
|
+
Object.defineProperty(r, a, l);
|
|
1321
|
+
}), e.config.globalProperties.$i18n = r, Ze.forEach((a) => {
|
|
1316
1322
|
const o = Object.getOwnPropertyDescriptor(t, a);
|
|
1317
1323
|
if (!o || !o.value)
|
|
1318
1324
|
throw F(b.UNEXPECTED_ERROR);
|
|
1319
1325
|
Object.defineProperty(e.config.globalProperties, `$${a}`, o);
|
|
1320
1326
|
}), () => {
|
|
1321
|
-
delete e.config.globalProperties.$i18n,
|
|
1327
|
+
delete e.config.globalProperties.$i18n, Ze.forEach((a) => {
|
|
1322
1328
|
delete e.config.globalProperties[`$${a}`];
|
|
1323
1329
|
});
|
|
1324
1330
|
};
|
|
1325
1331
|
}
|
|
1326
|
-
const on = /* @__PURE__ */
|
|
1332
|
+
const on = /* @__PURE__ */ Fe({
|
|
1327
1333
|
/* eslint-disable */
|
|
1328
1334
|
name: "i18n-d",
|
|
1329
|
-
props:
|
|
1335
|
+
props: S({
|
|
1330
1336
|
value: {
|
|
1331
1337
|
type: [Number, Date],
|
|
1332
1338
|
required: !0
|
|
@@ -1334,48 +1340,48 @@ const on = /* @__PURE__ */ Oe({
|
|
|
1334
1340
|
format: {
|
|
1335
1341
|
type: [String, Object]
|
|
1336
1342
|
}
|
|
1337
|
-
},
|
|
1343
|
+
}, Ce),
|
|
1338
1344
|
/* eslint-enable */
|
|
1339
1345
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1340
1346
|
setup(e, t) {
|
|
1341
|
-
const
|
|
1347
|
+
const r = e.i18n || fe({
|
|
1342
1348
|
useScope: e.scope,
|
|
1343
1349
|
__useComponent: !0
|
|
1344
1350
|
});
|
|
1345
|
-
return
|
|
1351
|
+
return ft(e, t, na, (...n) => (
|
|
1346
1352
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1347
|
-
|
|
1353
|
+
r[pe](...n)
|
|
1348
1354
|
));
|
|
1349
1355
|
}
|
|
1350
|
-
}),
|
|
1356
|
+
}), me = on, cn = me;
|
|
1351
1357
|
La();
|
|
1352
1358
|
sa(ia);
|
|
1353
1359
|
ra(ca);
|
|
1354
|
-
la(
|
|
1360
|
+
la(be);
|
|
1355
1361
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1356
|
-
const e =
|
|
1362
|
+
const e = Q();
|
|
1357
1363
|
e.__INTLIFY__ = !0, oa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1358
1364
|
}
|
|
1359
1365
|
process.env.NODE_ENV;
|
|
1360
1366
|
const bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1361
1367
|
__proto__: null,
|
|
1362
|
-
DatetimeFormat:
|
|
1368
|
+
DatetimeFormat: me,
|
|
1363
1369
|
I18nD: cn,
|
|
1364
|
-
I18nInjectionKey:
|
|
1370
|
+
I18nInjectionKey: Et,
|
|
1365
1371
|
I18nN: Ja,
|
|
1366
1372
|
I18nT: ja,
|
|
1367
|
-
NumberFormat:
|
|
1368
|
-
Translation:
|
|
1369
|
-
VERSION:
|
|
1373
|
+
NumberFormat: _e,
|
|
1374
|
+
Translation: ue,
|
|
1375
|
+
VERSION: st,
|
|
1370
1376
|
createI18n: qa,
|
|
1371
|
-
useI18n:
|
|
1372
|
-
vTDirective:
|
|
1373
|
-
}, Symbol.toStringTag, { value: "Module" })), un = "11.
|
|
1377
|
+
useI18n: fe,
|
|
1378
|
+
vTDirective: gt
|
|
1379
|
+
}, Symbol.toStringTag, { value: "Module" })), un = "11.3.0", vn = {
|
|
1374
1380
|
version: un
|
|
1375
1381
|
};
|
|
1376
1382
|
export {
|
|
1377
1383
|
bn as V,
|
|
1378
1384
|
qa as c,
|
|
1379
|
-
|
|
1385
|
+
fe as u,
|
|
1380
1386
|
vn as v
|
|
1381
1387
|
};
|