@vc-shell/framework 1.1.59 → 1.1.61
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 +13 -0
- package/dist/framework.js +2875 -2870
- package/dist/index.css +1 -1
- package/dist/injection-keys.d.ts +1 -0
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/{vendor-intlify-core-base-DZ8xhqFL.js → vendor-intlify-core-base-FyGSkd6r.js} +167 -166
- package/dist/{vendor-intlify-message-compiler-8PCyu80g.js → vendor-intlify-message-compiler-D_vL9-DK.js} +2 -2
- package/dist/vendor-intlify-shared-BMbzEQSk.js +144 -0
- package/dist/{vendor-prosemirror-commands-BqYcdumy.js → vendor-prosemirror-commands-C6teL3Xo.js} +3 -3
- package/dist/{vendor-prosemirror-dropcursor-zknUsW5x.js → vendor-prosemirror-dropcursor-CwZhBUcZ.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-DjOZhP78.js → vendor-prosemirror-gapcursor-COcwb4TJ.js} +4 -4
- package/dist/{vendor-prosemirror-history-l8l3CFac.js → vendor-prosemirror-history-DmPvdOpr.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-C17r08p-.js → vendor-prosemirror-keymap-CS1uIBpE.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-WJEDhc-w.js → vendor-prosemirror-markdown-sO1Pn6SW.js} +1 -1
- package/dist/{vendor-prosemirror-model-BN5TnJD_.js → vendor-prosemirror-model-DwojkhDQ.js} +68 -82
- package/dist/{vendor-prosemirror-schema-list-CR0gi7aY.js → vendor-prosemirror-schema-list-rrOzMlj0.js} +2 -2
- package/dist/{vendor-prosemirror-state-B0bFP8WI.js → vendor-prosemirror-state-BN86J-Ko.js} +2 -2
- package/dist/{vendor-prosemirror-tables-B1txTKlC.js → vendor-prosemirror-tables-C7XMqyon.js} +5 -5
- package/dist/{vendor-prosemirror-transform-Bo7kNPme.js → vendor-prosemirror-transform-B0c_LAV_.js} +1 -1
- package/dist/{vendor-prosemirror-view--C7TZvmQ.js → vendor-prosemirror-view-DyWzmy4t.js} +3 -3
- package/dist/{vendor-tiptap-core-CczYXVC4.js → vendor-tiptap-core-BgwY40dr.js} +7 -7
- package/dist/{vendor-tiptap-extension-blockquote-Dm7YbSqy.js → vendor-tiptap-extension-blockquote-BVW0VVC0.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-YKANgJQB.js → vendor-tiptap-extension-bold-xhi5xxPT.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-gh-OpViI.js → vendor-tiptap-extension-bubble-menu-DhWtcCL3.js} +2 -2
- package/dist/{vendor-tiptap-extension-bullet-list-CZWmGEbV.js → vendor-tiptap-extension-bullet-list-Ba21suMY.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-Bg0UZ8tC.js → vendor-tiptap-extension-code-DFTxp7wE.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-DQJ_tCBi.js → vendor-tiptap-extension-code-block-B2KK5g8S.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CpCZXWQI.js → vendor-tiptap-extension-document-CW8jybcc.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-BVniwBbO.js → vendor-tiptap-extension-dropcursor-DdRuETKJ.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-FkBnPfW6.js → vendor-tiptap-extension-floating-menu-Da7fpnr7.js} +2 -2
- package/dist/{vendor-tiptap-extension-gapcursor-XdrpVWvW.js → vendor-tiptap-extension-gapcursor-CafmhWSf.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-N0r28gea.js → vendor-tiptap-extension-hard-break-n9aI6ybJ.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-CY1DvT1I.js → vendor-tiptap-extension-heading-xj24usOy.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-BUL3NsZ9.js → vendor-tiptap-extension-history-C2uOLua2.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule-D27m_G1b.js → vendor-tiptap-extension-horizontal-rule--uXIYeaK.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-CbjGZU8i.js → vendor-tiptap-extension-image-BJx5lyoG.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-zyDDu_SW.js → vendor-tiptap-extension-italic-DPAViC4y.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-Bcv4UeMa.js → vendor-tiptap-extension-link-aDGmrWTi.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DZU6bwbc.js → vendor-tiptap-extension-list-item-DE9dJ64Q.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-BXSeGf29.js → vendor-tiptap-extension-ordered-list-CcNtDDJm.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-PDX7FACk.js → vendor-tiptap-extension-paragraph-DvlrAzIW.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-Ue_ElAEg.js → vendor-tiptap-extension-placeholder-DyW7px66.js} +3 -3
- package/dist/{vendor-tiptap-extension-strike-rl2UQZzW.js → vendor-tiptap-extension-strike-DMMLEFkd.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-B59LhE4D.js → vendor-tiptap-extension-table-BpegTABL.js} +3 -3
- package/dist/{vendor-tiptap-extension-table-cell-9N0NKfpg.js → vendor-tiptap-extension-table-cell-8rHRq4BW.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DJTZtK2Z.js → vendor-tiptap-extension-table-header-DZ1y7iS2.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-D7Upcsrg.js → vendor-tiptap-extension-table-row-DmkNUw4L.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Buc1GYNc.js → vendor-tiptap-extension-text-Cwas3TQT.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-COmEda96.js → vendor-tiptap-extension-underline-Hz5uJRfR.js} +1 -1
- package/dist/{vendor-tiptap-markdown-QcGJtrvN.js → vendor-tiptap-markdown-Dj1XZWg4.js} +4 -4
- package/dist/{vendor-tiptap-starter-kit-rn_ARLXy.js → vendor-tiptap-starter-kit-Cxj07T7v.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-KDP_yBZF.js → vendor-tiptap-vue-3-DF4kzEFI.js} +3 -3
- package/dist/{vendor-vue-i18n-CXIkMpzB.js → vendor-vue-i18n-DC6m6S7G.js} +34 -34
- package/package.json +4 -4
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarContent.vue +13 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarHeader.vue +13 -2
- package/ui/components/organisms/vc-app/vc-app.vue +2 -1
- package/dist/vendor-intlify-shared-BBJw7VuB.js +0 -130
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { i as $, a as D, b as m, c as P, d as x, e as b, f as _e, g as R, w as Ye, h as ee, j as S, k as B, l as Fe, m as de, n as I, o as oe,
|
|
2
|
-
import { c as
|
|
1
|
+
import { i as $, a as D, b as m, c as P, d as x, e as b, f as _e, g as R, w as Ye, h as ee, j as S, k as B, l as Fe, m as de, n as I, o as oe, s as He, p as je, q as ge, r as j, t as y, u as z, v as ze, x as xe, y as Xe, z as Ze, A as qe } from "./vendor-intlify-shared-BMbzEQSk.js";
|
|
2
|
+
import { c as Je, C as Qe, d as et, a as tt, b as nt } from "./vendor-intlify-message-compiler-D_vL9-DK.js";
|
|
3
3
|
/*!
|
|
4
|
-
* core-base v11.1.
|
|
4
|
+
* core-base v11.1.10
|
|
5
5
|
* (c) 2025 kazuya kawaguchi
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
8
|
-
function
|
|
8
|
+
function rt() {
|
|
9
9
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (de().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (de().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
10
10
|
}
|
|
11
11
|
function Y(e) {
|
|
12
12
|
return S(e) && le(e) === 0 && (B(e, "b") || B(e, "body"));
|
|
13
13
|
}
|
|
14
14
|
const Re = ["b", "body"];
|
|
15
|
-
function
|
|
15
|
+
function at(e) {
|
|
16
16
|
return G(e, Re);
|
|
17
17
|
}
|
|
18
18
|
const he = ["c", "cases"];
|
|
19
|
-
function
|
|
19
|
+
function st(e) {
|
|
20
20
|
return G(e, he, []);
|
|
21
21
|
}
|
|
22
22
|
const Le = ["s", "static"];
|
|
23
|
-
function
|
|
23
|
+
function ot(e) {
|
|
24
24
|
return G(e, Le);
|
|
25
25
|
}
|
|
26
26
|
const Se = ["i", "items"];
|
|
27
|
-
function
|
|
27
|
+
function lt(e) {
|
|
28
28
|
return G(e, Se, []);
|
|
29
29
|
}
|
|
30
30
|
const Ie = ["t", "type"];
|
|
@@ -39,11 +39,11 @@ function J(e, t) {
|
|
|
39
39
|
throw Z(t);
|
|
40
40
|
}
|
|
41
41
|
const be = ["m", "modifier"];
|
|
42
|
-
function
|
|
42
|
+
function it(e) {
|
|
43
43
|
return G(e, be);
|
|
44
44
|
}
|
|
45
45
|
const Pe = ["k", "key"];
|
|
46
|
-
function
|
|
46
|
+
function ct(e) {
|
|
47
47
|
const t = G(e, Pe);
|
|
48
48
|
if (t)
|
|
49
49
|
return t;
|
|
@@ -60,7 +60,7 @@ function G(e, t, n) {
|
|
|
60
60
|
}
|
|
61
61
|
return n;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const ut = [
|
|
64
64
|
...Re,
|
|
65
65
|
...he,
|
|
66
66
|
...Le,
|
|
@@ -74,17 +74,17 @@ function Z(e) {
|
|
|
74
74
|
return new Error(`unhandled node type: ${e}`);
|
|
75
75
|
}
|
|
76
76
|
function te(e) {
|
|
77
|
-
return (n) =>
|
|
77
|
+
return (n) => mt(n, e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const n =
|
|
79
|
+
function mt(e, t) {
|
|
80
|
+
const n = at(t);
|
|
81
81
|
if (n == null)
|
|
82
82
|
throw Z(
|
|
83
83
|
0
|
|
84
84
|
/* NodeTypes.Resource */
|
|
85
85
|
);
|
|
86
86
|
if (le(n) === 1) {
|
|
87
|
-
const o =
|
|
87
|
+
const o = st(n);
|
|
88
88
|
return e.plural(o.reduce((l, i) => [
|
|
89
89
|
...l,
|
|
90
90
|
Ee(e, i)
|
|
@@ -93,11 +93,11 @@ function ut(e, t) {
|
|
|
93
93
|
return Ee(e, n);
|
|
94
94
|
}
|
|
95
95
|
function Ee(e, t) {
|
|
96
|
-
const n =
|
|
96
|
+
const n = ot(t);
|
|
97
97
|
if (n != null)
|
|
98
98
|
return e.type === "text" ? n : e.normalize([n]);
|
|
99
99
|
{
|
|
100
|
-
const r =
|
|
100
|
+
const r = lt(t).reduce((a, o) => [...a, ae(e, o)], []);
|
|
101
101
|
return e.normalize(r);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -125,7 +125,7 @@ function ae(e, t) {
|
|
|
125
125
|
throw Z(n);
|
|
126
126
|
}
|
|
127
127
|
case 6: {
|
|
128
|
-
const r = t, a =
|
|
128
|
+
const r = t, a = it(r), o = ct(r);
|
|
129
129
|
return e.linked(ae(e, o), a ? ae(e, a) : void 0, e.type);
|
|
130
130
|
}
|
|
131
131
|
case 7:
|
|
@@ -136,28 +136,28 @@ function ae(e, t) {
|
|
|
136
136
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
function
|
|
141
|
-
t &&
|
|
139
|
+
const ft = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
140
|
+
function _t(e, t) {
|
|
141
|
+
t && et(e) && ee(Fe(ft, { source: e }));
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const dt = (e) => e;
|
|
144
144
|
let Q = P();
|
|
145
|
-
function
|
|
145
|
+
function gt(e, t = {}) {
|
|
146
146
|
let n = !1;
|
|
147
|
-
const r = t.onError ||
|
|
147
|
+
const r = t.onError || tt;
|
|
148
148
|
return t.onError = (a) => {
|
|
149
149
|
n = !0, r(a);
|
|
150
|
-
}, { ...
|
|
150
|
+
}, { ...nt(e, t), detectError: n };
|
|
151
151
|
}
|
|
152
152
|
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function
|
|
153
|
+
function nn(e, t) {
|
|
154
154
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && m(e)) {
|
|
155
155
|
const n = b(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
156
|
-
process.env.NODE_ENV !== "production" &&
|
|
157
|
-
const a = (t.onCacheKey ||
|
|
156
|
+
process.env.NODE_ENV !== "production" && _t(e, n);
|
|
157
|
+
const a = (t.onCacheKey || dt)(e), o = Q[a];
|
|
158
158
|
if (o)
|
|
159
159
|
return o;
|
|
160
|
-
const { ast: l, detectError: i } =
|
|
160
|
+
const { ast: l, detectError: i } = gt(e, {
|
|
161
161
|
...t,
|
|
162
162
|
location: process.env.NODE_ENV !== "production",
|
|
163
163
|
jit: !0
|
|
@@ -175,10 +175,10 @@ function tn(e, t) {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
let q = null;
|
|
178
|
-
function
|
|
178
|
+
function rn(e) {
|
|
179
179
|
q = e;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Et(e, t, n) {
|
|
182
182
|
q && q.emit("i18n:init", {
|
|
183
183
|
timestamp: Date.now(),
|
|
184
184
|
i18n: e,
|
|
@@ -186,12 +186,12 @@ function gt(e, t, n) {
|
|
|
186
186
|
meta: n
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
189
|
+
const Ot = /* @__PURE__ */ Tt("function:translate");
|
|
190
|
+
function Tt(e) {
|
|
191
191
|
return (t) => q && q.emit(e, t);
|
|
192
192
|
}
|
|
193
193
|
const L = {
|
|
194
|
-
INVALID_ARGUMENT:
|
|
194
|
+
INVALID_ARGUMENT: Qe,
|
|
195
195
|
// 17
|
|
196
196
|
INVALID_DATE_ARGUMENT: 18,
|
|
197
197
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -199,11 +199,11 @@ const L = {
|
|
|
199
199
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
200
200
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
201
201
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
202
|
-
},
|
|
202
|
+
}, an = 24;
|
|
203
203
|
function W(e) {
|
|
204
|
-
return
|
|
204
|
+
return Je(e, null, process.env.NODE_ENV !== "production" ? { messages: Nt } : void 0);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const Nt = {
|
|
207
207
|
[L.INVALID_ARGUMENT]: "Invalid arguments",
|
|
208
208
|
[L.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
209
209
|
[L.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -224,7 +224,7 @@ function Oe(e) {
|
|
|
224
224
|
return ne;
|
|
225
225
|
if (e.constructor.name === "Function") {
|
|
226
226
|
const t = e();
|
|
227
|
-
if (
|
|
227
|
+
if (Xe(t))
|
|
228
228
|
throw W(L.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
229
229
|
return ne = t;
|
|
230
230
|
} else
|
|
@@ -232,13 +232,13 @@ function Oe(e) {
|
|
|
232
232
|
} else
|
|
233
233
|
throw W(L.NOT_SUPPORT_LOCALE_TYPE);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function pt(e, t, n) {
|
|
236
236
|
return [.../* @__PURE__ */ new Set([
|
|
237
237
|
n,
|
|
238
238
|
...$(t) ? t : S(t) ? Object.keys(t) : m(t) ? [t] : [n]
|
|
239
239
|
])];
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function sn(e, t, n) {
|
|
242
242
|
const r = m(n) ? n : se, a = e;
|
|
243
243
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
244
244
|
let o = a.__localeChainCache.get(r);
|
|
@@ -256,20 +256,20 @@ function Te(e, t, n) {
|
|
|
256
256
|
let r = !0;
|
|
257
257
|
for (let a = 0; a < t.length && b(r); a++) {
|
|
258
258
|
const o = t[a];
|
|
259
|
-
m(o) && (r =
|
|
259
|
+
m(o) && (r = At(e, t[a], n));
|
|
260
260
|
}
|
|
261
261
|
return r;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function At(e, t, n) {
|
|
264
264
|
let r;
|
|
265
265
|
const a = t.split("-");
|
|
266
266
|
do {
|
|
267
267
|
const o = a.join("-");
|
|
268
|
-
r =
|
|
268
|
+
r = Ct(e, o, n), a.splice(-1, 1);
|
|
269
269
|
} while (a.length && r === !0);
|
|
270
270
|
return r;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ct(e, t, n) {
|
|
273
273
|
let r = !1;
|
|
274
274
|
if (!e.includes(t) && (r = !0, t)) {
|
|
275
275
|
r = t[t.length - 1] !== "!";
|
|
@@ -439,15 +439,15 @@ K[
|
|
|
439
439
|
/* Actions.APPEND */
|
|
440
440
|
]
|
|
441
441
|
};
|
|
442
|
-
const
|
|
443
|
-
function Mt(e) {
|
|
444
|
-
return Ct.test(e);
|
|
445
|
-
}
|
|
442
|
+
const Mt = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
446
443
|
function Dt(e) {
|
|
444
|
+
return Mt.test(e);
|
|
445
|
+
}
|
|
446
|
+
function Ft(e) {
|
|
447
447
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
448
448
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Rt(e) {
|
|
451
451
|
if (e == null)
|
|
452
452
|
return "o";
|
|
453
453
|
switch (e.charCodeAt(0)) {
|
|
@@ -484,11 +484,11 @@ function Ft(e) {
|
|
|
484
484
|
}
|
|
485
485
|
return "i";
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function ht(e) {
|
|
488
488
|
const t = e.trim();
|
|
489
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
489
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Dt(t) ? Ft(t) : "*" + t;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Lt(e) {
|
|
492
492
|
const t = [];
|
|
493
493
|
let n = -1, r = 0, a = 0, o, l, i, s, u, f, E;
|
|
494
494
|
const c = [];
|
|
@@ -520,7 +520,7 @@ function ht(e) {
|
|
|
520
520
|
/* Actions.APPEND */
|
|
521
521
|
]();
|
|
522
522
|
else {
|
|
523
|
-
if (a = 0, l === void 0 || (l =
|
|
523
|
+
if (a = 0, l === void 0 || (l = ht(l), l === !1))
|
|
524
524
|
return !1;
|
|
525
525
|
c[
|
|
526
526
|
1
|
|
@@ -538,27 +538,27 @@ function ht(e) {
|
|
|
538
538
|
}
|
|
539
539
|
for (; r !== null; )
|
|
540
540
|
if (n++, o = e[n], !(o === "\\" && g())) {
|
|
541
|
-
if (s =
|
|
541
|
+
if (s = Rt(o), E = K[r], u = E[s] || E.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (f = c[u[1]], f && (i = o, f() === !1))))
|
|
542
542
|
return;
|
|
543
543
|
if (r === 7)
|
|
544
544
|
return t;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
const Ne = /* @__PURE__ */ new Map();
|
|
548
|
-
function
|
|
548
|
+
function St(e, t) {
|
|
549
549
|
return S(e) ? e[t] : null;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function on(e, t) {
|
|
552
552
|
if (!S(e))
|
|
553
553
|
return null;
|
|
554
554
|
let n = Ne.get(t);
|
|
555
|
-
if (n || (n =
|
|
555
|
+
if (n || (n = Lt(t), n && Ne.set(t, n)), !n)
|
|
556
556
|
return null;
|
|
557
557
|
const r = n.length;
|
|
558
558
|
let a = e, o = 0;
|
|
559
559
|
for (; o < r; ) {
|
|
560
560
|
const l = n[o];
|
|
561
|
-
if (
|
|
561
|
+
if (ut.includes(l) && Y(a))
|
|
562
562
|
return null;
|
|
563
563
|
const i = a[l];
|
|
564
564
|
if (i === void 0 || R(a))
|
|
@@ -575,7 +575,7 @@ const v = {
|
|
|
575
575
|
CANNOT_FORMAT_DATE: 5,
|
|
576
576
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
577
577
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
578
|
-
},
|
|
578
|
+
}, ln = 8, It = {
|
|
579
579
|
[v.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
580
580
|
[v.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
581
581
|
[v.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -585,10 +585,10 @@ const v = {
|
|
|
585
585
|
[v.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
586
586
|
};
|
|
587
587
|
function H(e, ...t) {
|
|
588
|
-
return Fe(
|
|
588
|
+
return Fe(It[e], ...t);
|
|
589
589
|
}
|
|
590
|
-
const
|
|
591
|
-
function
|
|
590
|
+
const vt = "11.1.10", ce = -1, se = "en-US", we = "", pe = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
591
|
+
function bt() {
|
|
592
592
|
return {
|
|
593
593
|
upper: (e, t) => t === "text" && m(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
594
594
|
lower: (e, t) => t === "text" && m(e) ? e.toLowerCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -596,32 +596,32 @@ function vt() {
|
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
let ye;
|
|
599
|
-
function
|
|
599
|
+
function cn(e) {
|
|
600
600
|
ye = e;
|
|
601
601
|
}
|
|
602
602
|
let ke;
|
|
603
|
-
function
|
|
603
|
+
function un(e) {
|
|
604
604
|
ke = e;
|
|
605
605
|
}
|
|
606
606
|
let Ve;
|
|
607
|
-
function
|
|
607
|
+
function mn(e) {
|
|
608
608
|
Ve = e;
|
|
609
609
|
}
|
|
610
610
|
let Ue = null;
|
|
611
|
-
const
|
|
611
|
+
const fn = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
612
612
|
Ue = e;
|
|
613
|
-
},
|
|
613
|
+
}, Pt = /* @__NO_SIDE_EFFECTS__ */ () => Ue;
|
|
614
614
|
let We = null;
|
|
615
|
-
const
|
|
615
|
+
const _n = (e) => {
|
|
616
616
|
We = e;
|
|
617
|
-
},
|
|
617
|
+
}, dn = () => We;
|
|
618
618
|
let Ae = 0;
|
|
619
|
-
function
|
|
620
|
-
const t = R(e.onWarn) ? e.onWarn : ee, n = m(e.version) ? e.version :
|
|
619
|
+
function gn(e = {}) {
|
|
620
|
+
const t = R(e.onWarn) ? e.onWarn : ee, n = m(e.version) ? e.version : vt, r = m(e.locale) || R(e.locale) ? e.locale : se, a = R(r) ? se : r, o = $(e.fallbackLocale) || D(e.fallbackLocale) || m(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, l = D(e.messages) ? e.messages : re(a), i = D(e.datetimeFormats) ? e.datetimeFormats : re(a), s = D(e.numberFormats) ? e.numberFormats : re(a), u = x(P(), e.modifiers, bt()), f = e.pluralRules || P(), E = R(e.missing) ? e.missing : null, c = b(e.missingWarn) || _e(e.missingWarn) ? e.missingWarn : !0, g = b(e.fallbackWarn) || _e(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, N = !!e.unresolving, M = R(e.postTranslation) ? e.postTranslation : null, O = D(e.processor) ? e.processor : null, _ = b(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, d = R(e.messageCompiler) ? e.messageCompiler : ye;
|
|
621
621
|
process.env.NODE_ENV !== "production" && R(e.messageCompiler) && Ye(H(v.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
622
|
-
const p = R(e.messageResolver) ? e.messageResolver : ke ||
|
|
622
|
+
const p = R(e.messageResolver) ? e.messageResolver : ke || St, A = R(e.localeFallbacker) ? e.localeFallbacker : Ve || pt, h = S(e.fallbackContext) ? e.fallbackContext : void 0, C = e, k = S(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), U = S(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), X = S(C.__meta) ? C.__meta : {};
|
|
623
623
|
Ae++;
|
|
624
|
-
const
|
|
624
|
+
const w = {
|
|
625
625
|
version: n,
|
|
626
626
|
cid: Ae,
|
|
627
627
|
locale: r,
|
|
@@ -645,13 +645,13 @@ function dn(e = {}) {
|
|
|
645
645
|
onWarn: t,
|
|
646
646
|
__meta: X
|
|
647
647
|
};
|
|
648
|
-
return
|
|
648
|
+
return w.datetimeFormats = i, w.numberFormats = s, w.__datetimeFormatters = k, w.__numberFormatters = U, process.env.NODE_ENV !== "production" && (w.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Et(w, n, X), w;
|
|
649
649
|
}
|
|
650
650
|
const re = (e) => ({ [e]: P() });
|
|
651
651
|
function ue(e, t) {
|
|
652
652
|
return e instanceof RegExp ? e.test(t) : e;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function wt(e, t) {
|
|
655
655
|
return e instanceof RegExp ? e.test(t) : e;
|
|
656
656
|
}
|
|
657
657
|
function me(e, t, n, r, a) {
|
|
@@ -669,16 +669,16 @@ function me(e, t, n, r, a) {
|
|
|
669
669
|
const i = o(e, n, t, a);
|
|
670
670
|
return m(i) ? i : t;
|
|
671
671
|
} else
|
|
672
|
-
return process.env.NODE_ENV !== "production" &&
|
|
672
|
+
return process.env.NODE_ENV !== "production" && wt(r, t) && l(H(v.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function En(e, t, n) {
|
|
675
675
|
const r = e;
|
|
676
676
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
677
677
|
}
|
|
678
678
|
function $e(e, t) {
|
|
679
679
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function yt(e, t) {
|
|
682
682
|
const n = t.indexOf(e);
|
|
683
683
|
if (n === -1)
|
|
684
684
|
return !1;
|
|
@@ -691,11 +691,11 @@ const Ce = typeof Intl < "u", Ge = {
|
|
|
691
691
|
dateTimeFormat: Ce && typeof Intl.DateTimeFormat < "u",
|
|
692
692
|
numberFormat: Ce && typeof Intl.NumberFormat < "u"
|
|
693
693
|
};
|
|
694
|
-
function
|
|
694
|
+
function On(e, ...t) {
|
|
695
695
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: l } = e, { __datetimeFormatters: i } = e;
|
|
696
696
|
if (process.env.NODE_ENV !== "production" && !Ge.dateTimeFormat)
|
|
697
697
|
return o(H(v.CANNOT_FORMAT_DATE)), we;
|
|
698
|
-
const [s, u, f, E] =
|
|
698
|
+
const [s, u, f, E] = Vt(...t), c = b(f.missingWarn) ? f.missingWarn : e.missingWarn, g = b(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, F = !!f.part, N = ie(e, f), M = l(
|
|
699
699
|
e,
|
|
700
700
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
701
701
|
a,
|
|
@@ -705,8 +705,8 @@ function En(e, ...t) {
|
|
|
705
705
|
return new Intl.DateTimeFormat(N, E).format(u);
|
|
706
706
|
let O = {}, _, T = null, d = N, p = null;
|
|
707
707
|
const A = "datetime format";
|
|
708
|
-
for (let
|
|
709
|
-
if (_ = p = M[
|
|
708
|
+
for (let k = 0; k < M.length; k++) {
|
|
709
|
+
if (_ = p = M[k], process.env.NODE_ENV !== "production" && N !== _ && ue(g, s) && o(H(v.FALLBACK_TO_DATE_FORMAT, {
|
|
710
710
|
key: s,
|
|
711
711
|
target: _
|
|
712
712
|
})), process.env.NODE_ENV !== "production" && N !== _) {
|
|
@@ -730,7 +730,7 @@ function En(e, ...t) {
|
|
|
730
730
|
let C = i.get(h);
|
|
731
731
|
return C || (C = new Intl.DateTimeFormat(_, x({}, T, E)), i.set(h, C)), F ? C.formatToParts(u) : C.format(u);
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const kt = [
|
|
734
734
|
"localeMatcher",
|
|
735
735
|
"weekday",
|
|
736
736
|
"era",
|
|
@@ -752,7 +752,7 @@ const yt = [
|
|
|
752
752
|
"hourCycle",
|
|
753
753
|
"fractionalSecondDigits"
|
|
754
754
|
];
|
|
755
|
-
function
|
|
755
|
+
function Vt(...e) {
|
|
756
756
|
const [t, n, r, a] = e, o = P();
|
|
757
757
|
let l = P(), i;
|
|
758
758
|
if (m(t)) {
|
|
@@ -766,7 +766,7 @@ function kt(...e) {
|
|
|
766
766
|
} catch {
|
|
767
767
|
throw W(L.INVALID_ISO_DATE_ARGUMENT);
|
|
768
768
|
}
|
|
769
|
-
} else if (
|
|
769
|
+
} else if (je(t)) {
|
|
770
770
|
if (isNaN(t.getTime()))
|
|
771
771
|
throw W(L.INVALID_DATE_ARGUMENT);
|
|
772
772
|
i = t;
|
|
@@ -775,21 +775,21 @@ function kt(...e) {
|
|
|
775
775
|
else
|
|
776
776
|
throw W(L.INVALID_ARGUMENT);
|
|
777
777
|
return m(n) ? o.key = n : D(n) && Object.keys(n).forEach((s) => {
|
|
778
|
-
|
|
778
|
+
kt.includes(s) ? l[s] = n[s] : o[s] = n[s];
|
|
779
779
|
}), m(r) ? o.locale = r : D(r) && (l = r), D(a) && (l = a), [o.key || "", i, o, l];
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Tn(e, t, n) {
|
|
782
782
|
const r = e;
|
|
783
783
|
for (const a in n) {
|
|
784
784
|
const o = `${t}__${a}`;
|
|
785
785
|
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Nn(e, ...t) {
|
|
789
789
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: l } = e, { __numberFormatters: i } = e;
|
|
790
790
|
if (process.env.NODE_ENV !== "production" && !Ge.numberFormat)
|
|
791
791
|
return o(H(v.CANNOT_FORMAT_NUMBER)), we;
|
|
792
|
-
const [s, u, f, E] =
|
|
792
|
+
const [s, u, f, E] = Wt(...t), c = b(f.missingWarn) ? f.missingWarn : e.missingWarn, g = b(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, F = !!f.part, N = ie(e, f), M = l(
|
|
793
793
|
e,
|
|
794
794
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
795
795
|
a,
|
|
@@ -799,8 +799,8 @@ function Tn(e, ...t) {
|
|
|
799
799
|
return new Intl.NumberFormat(N, E).format(u);
|
|
800
800
|
let O = {}, _, T = null, d = N, p = null;
|
|
801
801
|
const A = "number format";
|
|
802
|
-
for (let
|
|
803
|
-
if (_ = p = M[
|
|
802
|
+
for (let k = 0; k < M.length; k++) {
|
|
803
|
+
if (_ = p = M[k], process.env.NODE_ENV !== "production" && N !== _ && ue(g, s) && o(H(v.FALLBACK_TO_NUMBER_FORMAT, {
|
|
804
804
|
key: s,
|
|
805
805
|
target: _
|
|
806
806
|
})), process.env.NODE_ENV !== "production" && N !== _) {
|
|
@@ -824,7 +824,7 @@ function Tn(e, ...t) {
|
|
|
824
824
|
let C = i.get(h);
|
|
825
825
|
return C || (C = new Intl.NumberFormat(_, x({}, T, E)), i.set(h, C)), F ? C.formatToParts(u) : C.format(u);
|
|
826
826
|
}
|
|
827
|
-
const
|
|
827
|
+
const Ut = [
|
|
828
828
|
"localeMatcher",
|
|
829
829
|
"style",
|
|
830
830
|
"currency",
|
|
@@ -846,43 +846,43 @@ const Vt = [
|
|
|
846
846
|
"roundingIncrement",
|
|
847
847
|
"trailingZeroDisplay"
|
|
848
848
|
];
|
|
849
|
-
function
|
|
849
|
+
function Wt(...e) {
|
|
850
850
|
const [t, n, r, a] = e, o = P();
|
|
851
851
|
let l = P();
|
|
852
852
|
if (!I(t))
|
|
853
853
|
throw W(L.INVALID_ARGUMENT);
|
|
854
854
|
const i = t;
|
|
855
855
|
return m(n) ? o.key = n : D(n) && Object.keys(n).forEach((s) => {
|
|
856
|
-
|
|
856
|
+
Ut.includes(s) ? l[s] = n[s] : o[s] = n[s];
|
|
857
857
|
}), m(r) ? o.locale = r : D(r) && (l = r), D(a) && (l = a), [o.key || "", i, o, l];
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function pn(e, t, n) {
|
|
860
860
|
const r = e;
|
|
861
861
|
for (const a in n) {
|
|
862
862
|
const o = `${t}__${a}`;
|
|
863
863
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
const
|
|
866
|
+
const $t = (e) => e, Gt = (e) => "", Kt = "text", Bt = (e) => e.length === 0 ? "" : ze(e), Yt = xe;
|
|
867
867
|
function Me(e, t) {
|
|
868
868
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Ht(e) {
|
|
871
871
|
const t = I(e.pluralIndex) ? e.pluralIndex : -1;
|
|
872
872
|
return e.named && (I(e.named.count) || I(e.named.n)) ? I(e.named.count) ? e.named.count : I(e.named.n) ? e.named.n : t : t;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function jt(e, t) {
|
|
875
875
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
const t = e.locale, n =
|
|
879
|
-
I(e.pluralIndex) &&
|
|
877
|
+
function zt(e = {}) {
|
|
878
|
+
const t = e.locale, n = Ht(e), r = S(e.pluralRules) && m(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : Me, a = S(e.pluralRules) && m(t) && R(e.pluralRules[t]) ? Me : void 0, o = (O) => O[r(n, O.length, a)], l = e.list || [], i = (O) => l[O], s = e.named || P();
|
|
879
|
+
I(e.pluralIndex) && jt(n, s);
|
|
880
880
|
const u = (O) => s[O];
|
|
881
881
|
function f(O, _) {
|
|
882
882
|
const T = R(e.messages) ? e.messages(O, !!_) : S(e.messages) ? e.messages[O] : !1;
|
|
883
|
-
return T || (e.parent ? e.parent.message(O) :
|
|
883
|
+
return T || (e.parent ? e.parent.message(O) : Gt);
|
|
884
884
|
}
|
|
885
|
-
const E = (O) => e.modifiers ? e.modifiers[O] :
|
|
885
|
+
const E = (O) => e.modifiers ? e.modifiers[O] : $t, c = D(e.processor) && R(e.processor.normalize) ? e.processor.normalize : Bt, g = D(e.processor) && R(e.processor.interpolate) ? e.processor.interpolate : Yt, F = D(e.processor) && m(e.processor.type) ? e.processor.type : Kt, M = {
|
|
886
886
|
list: i,
|
|
887
887
|
named: u,
|
|
888
888
|
plural: o,
|
|
@@ -904,39 +904,40 @@ function jt(e = {}) {
|
|
|
904
904
|
};
|
|
905
905
|
return M;
|
|
906
906
|
}
|
|
907
|
-
const De = () => "",
|
|
908
|
-
function
|
|
909
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: l, messages: i } = e, [s, u] =
|
|
910
|
-
c &&
|
|
907
|
+
const De = () => "", V = (e) => R(e);
|
|
908
|
+
function An(e, ...t) {
|
|
909
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: o, fallbackLocale: l, messages: i } = e, [s, u] = Zt(...t), f = b(u.missingWarn) ? u.missingWarn : e.missingWarn, E = b(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = b(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, g = !!u.resolvedMessage, F = m(u.default) || b(u.default) ? b(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, N = n || F != null && (m(F) || R(F)), M = ie(e, u);
|
|
910
|
+
c && xt(u);
|
|
911
911
|
let [O, _, T] = g ? [
|
|
912
912
|
s,
|
|
913
913
|
M,
|
|
914
914
|
i[M] || P()
|
|
915
915
|
] : Ke(e, s, M, l, E, f), d = O, p = s;
|
|
916
|
-
if (!g && !(m(d) || Y(d) ||
|
|
916
|
+
if (!g && !(m(d) || Y(d) || V(d)) && N && (d = F, p = d), !g && (!(m(d) || Y(d) || V(d)) || !m(_)))
|
|
917
917
|
return a ? ce : s;
|
|
918
918
|
if (process.env.NODE_ENV !== "production" && m(d) && e.messageCompiler == null)
|
|
919
919
|
return ee(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${s}'.`), s;
|
|
920
920
|
let A = !1;
|
|
921
921
|
const h = () => {
|
|
922
922
|
A = !0;
|
|
923
|
-
}, C =
|
|
923
|
+
}, C = V(d) ? d : Be(e, s, _, d, p, h);
|
|
924
924
|
if (A)
|
|
925
925
|
return d;
|
|
926
|
-
const
|
|
927
|
-
|
|
926
|
+
const k = Qt(e, _, T, u), U = zt(k), X = Xt(e, C, U);
|
|
927
|
+
let w = r ? r(X, s) : X;
|
|
928
|
+
if (c && m(w) && (w = He(w)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
928
929
|
const fe = {
|
|
929
930
|
timestamp: Date.now(),
|
|
930
|
-
key: m(s) ? s :
|
|
931
|
-
locale: _ || (
|
|
932
|
-
format: m(d) ? d :
|
|
933
|
-
message:
|
|
931
|
+
key: m(s) ? s : V(d) ? d.key : "",
|
|
932
|
+
locale: _ || (V(d) ? d.locale : ""),
|
|
933
|
+
format: m(d) ? d : V(d) ? d.source : "",
|
|
934
|
+
message: w
|
|
934
935
|
};
|
|
935
|
-
fe.meta = x({}, e.__meta, /* @__PURE__ */
|
|
936
|
+
fe.meta = x({}, e.__meta, /* @__PURE__ */ Pt() || {}), Ot(fe);
|
|
936
937
|
}
|
|
937
|
-
return
|
|
938
|
+
return w;
|
|
938
939
|
}
|
|
939
|
-
function
|
|
940
|
+
function xt(e) {
|
|
940
941
|
$(e.list) ? e.list = e.list.map((t) => m(t) ? ge(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
|
|
941
942
|
m(e.named[t]) && (e.named[t] = ge(e.named[t]));
|
|
942
943
|
});
|
|
@@ -961,7 +962,7 @@ function Ke(e, t, n, r, a, o) {
|
|
|
961
962
|
}
|
|
962
963
|
E = l[c] || P();
|
|
963
964
|
let _ = null, T, d;
|
|
964
|
-
if (process.env.NODE_ENV !== "production" && j && (_ = window.performance.now(), T = "intlify-message-resolve-start", d = "intlify-message-resolve-end",
|
|
965
|
+
if (process.env.NODE_ENV !== "production" && j && (_ = window.performance.now(), T = "intlify-message-resolve-start", d = "intlify-message-resolve-end", y && y(T)), (g = s(E, t)) === null && (g = E[t]), process.env.NODE_ENV !== "production" && j) {
|
|
965
966
|
const p = window.performance.now(), A = e.__v_emitter;
|
|
966
967
|
A && _ && g && A.emit("message-resolve", {
|
|
967
968
|
type: "message-resolve",
|
|
@@ -969,11 +970,11 @@ function Ke(e, t, n, r, a, o) {
|
|
|
969
970
|
message: g,
|
|
970
971
|
time: p - _,
|
|
971
972
|
groupId: `${M}:${t}`
|
|
972
|
-
}), T && d &&
|
|
973
|
+
}), T && d && y && z && (y(d), z("intlify message resolve", T, d));
|
|
973
974
|
}
|
|
974
|
-
if (m(g) || Y(g) ||
|
|
975
|
+
if (m(g) || Y(g) || V(g))
|
|
975
976
|
break;
|
|
976
|
-
if (!
|
|
977
|
+
if (!yt(c, f)) {
|
|
977
978
|
const p = me(
|
|
978
979
|
e,
|
|
979
980
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -990,7 +991,7 @@ function Ke(e, t, n, r, a, o) {
|
|
|
990
991
|
}
|
|
991
992
|
function Be(e, t, n, r, a, o) {
|
|
992
993
|
const { messageCompiler: l, warnHtmlMessage: i } = e;
|
|
993
|
-
if (
|
|
994
|
+
if (V(r)) {
|
|
994
995
|
const c = r;
|
|
995
996
|
return c.locale = c.locale || n, c.key = c.key || t, c;
|
|
996
997
|
}
|
|
@@ -999,8 +1000,8 @@ function Be(e, t, n, r, a, o) {
|
|
|
999
1000
|
return c.locale = n, c.key = t, c;
|
|
1000
1001
|
}
|
|
1001
1002
|
let s = null, u, f;
|
|
1002
|
-
process.env.NODE_ENV !== "production" && j && (s = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end",
|
|
1003
|
-
const E = l(r,
|
|
1003
|
+
process.env.NODE_ENV !== "production" && j && (s = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", y && y(u));
|
|
1004
|
+
const E = l(r, qt(e, n, a, r, i, o));
|
|
1004
1005
|
if (process.env.NODE_ENV !== "production" && j) {
|
|
1005
1006
|
const c = window.performance.now(), g = e.__v_emitter;
|
|
1006
1007
|
g && s && g.emit("message-compilation", {
|
|
@@ -1008,13 +1009,13 @@ function Be(e, t, n, r, a, o) {
|
|
|
1008
1009
|
message: r,
|
|
1009
1010
|
time: c - s,
|
|
1010
1011
|
groupId: `translate:${t}`
|
|
1011
|
-
}), u && f &&
|
|
1012
|
+
}), u && f && y && z && (y(f), z("intlify message compilation", u, f));
|
|
1012
1013
|
}
|
|
1013
1014
|
return E.locale = n, E.key = t, E.source = r, E;
|
|
1014
1015
|
}
|
|
1015
|
-
function
|
|
1016
|
+
function Xt(e, t, n) {
|
|
1016
1017
|
let r = null, a, o;
|
|
1017
|
-
process.env.NODE_ENV !== "production" && j && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end",
|
|
1018
|
+
process.env.NODE_ENV !== "production" && j && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", y && y(a));
|
|
1018
1019
|
const l = t(n);
|
|
1019
1020
|
if (process.env.NODE_ENV !== "production" && j) {
|
|
1020
1021
|
const i = window.performance.now(), s = e.__v_emitter;
|
|
@@ -1023,25 +1024,25 @@ function xt(e, t, n) {
|
|
|
1023
1024
|
value: l,
|
|
1024
1025
|
time: i - r,
|
|
1025
1026
|
groupId: `translate:${t.key}`
|
|
1026
|
-
}), a && o &&
|
|
1027
|
+
}), a && o && y && z && (y(o), z("intlify message evaluation", a, o));
|
|
1027
1028
|
}
|
|
1028
1029
|
return l;
|
|
1029
1030
|
}
|
|
1030
|
-
function
|
|
1031
|
+
function Zt(...e) {
|
|
1031
1032
|
const [t, n, r] = e, a = P();
|
|
1032
|
-
if (!m(t) && !I(t) && !
|
|
1033
|
+
if (!m(t) && !I(t) && !V(t) && !Y(t))
|
|
1033
1034
|
throw W(L.INVALID_ARGUMENT);
|
|
1034
|
-
const o = I(t) ? String(t) : (
|
|
1035
|
+
const o = I(t) ? String(t) : (V(t), t);
|
|
1035
1036
|
return I(n) ? a.plural = n : m(n) ? a.default = n : D(n) && !oe(n) ? a.named = n : $(n) && (a.list = n), I(r) ? a.plural = r : m(r) ? a.default = r : D(r) && x(a, r), [o, a];
|
|
1036
1037
|
}
|
|
1037
|
-
function
|
|
1038
|
+
function qt(e, t, n, r, a, o) {
|
|
1038
1039
|
return {
|
|
1039
1040
|
locale: t,
|
|
1040
1041
|
key: n,
|
|
1041
1042
|
warnHtmlMessage: a,
|
|
1042
1043
|
onError: (l) => {
|
|
1043
1044
|
if (o && o(l), process.env.NODE_ENV !== "production") {
|
|
1044
|
-
const i =
|
|
1045
|
+
const i = Jt(r), s = `Message compilation error: ${l.message}`, u = l.location && i && qe(i, l.location.start.offset, l.location.end.offset), f = e.__v_emitter;
|
|
1045
1046
|
f && i && f.emit("compile-error", {
|
|
1046
1047
|
message: i,
|
|
1047
1048
|
error: l.message,
|
|
@@ -1053,16 +1054,16 @@ ${u}` : s);
|
|
|
1053
1054
|
} else
|
|
1054
1055
|
throw l;
|
|
1055
1056
|
},
|
|
1056
|
-
onCacheKey: (l) =>
|
|
1057
|
+
onCacheKey: (l) => Ze(t, n, l)
|
|
1057
1058
|
};
|
|
1058
1059
|
}
|
|
1059
|
-
function
|
|
1060
|
+
function Jt(e) {
|
|
1060
1061
|
if (m(e))
|
|
1061
1062
|
return e;
|
|
1062
1063
|
if (e.loc && e.loc.source)
|
|
1063
1064
|
return e.loc.source;
|
|
1064
1065
|
}
|
|
1065
|
-
function
|
|
1066
|
+
function Qt(e, t, n, r) {
|
|
1066
1067
|
const { modifiers: a, pluralRules: o, messageResolver: l, fallbackLocale: i, fallbackWarn: s, missingWarn: u, fallbackContext: f } = e, c = {
|
|
1067
1068
|
locale: t,
|
|
1068
1069
|
modifiers: a,
|
|
@@ -1087,43 +1088,43 @@ function Jt(e, t, n, r) {
|
|
|
1087
1088
|
M = !0;
|
|
1088
1089
|
});
|
|
1089
1090
|
return M ? De : _;
|
|
1090
|
-
} else return
|
|
1091
|
+
} else return V(N) ? N : De;
|
|
1091
1092
|
}
|
|
1092
1093
|
};
|
|
1093
1094
|
return e.processor && (c.processor = e.processor), r.list && (c.list = r.list), r.named && (c.named = r.named), I(r.plural) && (c.pluralIndex = r.plural), c;
|
|
1094
1095
|
}
|
|
1095
|
-
|
|
1096
|
+
rt();
|
|
1096
1097
|
export {
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1098
|
+
ut as A,
|
|
1099
|
+
rn as B,
|
|
1100
|
+
ln as C,
|
|
1100
1101
|
se as D,
|
|
1101
1102
|
we as M,
|
|
1102
1103
|
ce as N,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1104
|
+
Tn as a,
|
|
1105
|
+
pn as b,
|
|
1106
|
+
gn as c,
|
|
1106
1107
|
ue as d,
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1108
|
+
wt as e,
|
|
1109
|
+
sn as f,
|
|
1110
|
+
dn as g,
|
|
1111
|
+
an as h,
|
|
1111
1112
|
Y as i,
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1113
|
+
_n as j,
|
|
1114
|
+
Vt as k,
|
|
1115
|
+
On as l,
|
|
1116
|
+
Wt as m,
|
|
1117
|
+
Nn as n,
|
|
1118
|
+
V as o,
|
|
1119
|
+
Zt as p,
|
|
1120
|
+
Ut as q,
|
|
1121
|
+
kt as r,
|
|
1122
|
+
fn as s,
|
|
1123
|
+
An as t,
|
|
1124
|
+
En as u,
|
|
1125
|
+
cn as v,
|
|
1126
|
+
un as w,
|
|
1127
|
+
mn as x,
|
|
1128
|
+
nn as y,
|
|
1129
|
+
on as z
|
|
1129
1130
|
};
|