@7pmlabs/design-system 0.6.2 → 0.6.3
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/README.md +1 -0
- package/dist/design-system104.mjs +1 -1
- package/dist/design-system107.mjs +1 -1
- package/dist/design-system110.mjs +1 -1
- package/dist/design-system111.mjs +1 -1
- package/dist/design-system112.mjs +1 -1
- package/dist/design-system115.mjs +1 -1
- package/dist/design-system27.mjs +3 -3
- package/dist/design-system28.mjs +4 -4
- package/dist/design-system29.mjs +3 -3
- package/dist/design-system30.mjs +1 -1
- package/dist/design-system31.mjs +3 -3
- package/dist/design-system32.mjs +3 -3
- package/dist/design-system33.mjs +1 -1
- package/dist/design-system34.mjs +1 -1
- package/dist/design-system35.mjs +1 -1
- package/dist/design-system36.mjs +1 -1
- package/dist/design-system37.mjs +3 -3
- package/dist/design-system38.mjs +2 -2
- package/dist/design-system39.mjs +3 -3
- package/dist/design-system40.mjs +3 -3
- package/dist/design-system42.mjs +3 -3
- package/dist/design-system43.mjs +1 -1
- package/dist/design-system44.mjs +1 -1
- package/dist/design-system45.mjs +3 -3
- package/dist/design-system47.mjs +3 -3
- package/dist/design-system48.mjs +3 -3
- package/dist/design-system50.mjs +3 -3
- package/dist/design-system51.mjs +140 -2
- package/dist/design-system51.mjs.map +1 -1
- package/dist/design-system52.mjs +1090 -126
- package/dist/design-system52.mjs.map +1 -1
- package/dist/design-system53.mjs +1002 -2
- package/dist/design-system53.mjs.map +1 -1
- package/dist/design-system54.mjs +2 -7
- package/dist/design-system54.mjs.map +1 -1
- package/dist/design-system55.mjs +124 -20
- package/dist/design-system55.mjs.map +1 -1
- package/dist/design-system57.mjs +7 -2
- package/dist/design-system57.mjs.map +1 -1
- package/dist/design-system58.mjs +19 -61
- package/dist/design-system58.mjs.map +1 -1
- package/dist/design-system60.mjs +2 -2
- package/dist/design-system61.mjs +65 -2
- package/dist/design-system61.mjs.map +1 -1
- package/dist/design-system62.mjs +2 -2
- package/dist/design-system63.mjs +1 -1
- package/dist/design-system64.mjs +1 -1
- package/dist/design-system65.mjs +2 -28
- package/dist/design-system65.mjs.map +1 -1
- package/dist/design-system66.mjs +2 -2
- package/dist/design-system67.mjs +2 -58
- package/dist/design-system67.mjs.map +1 -1
- package/dist/design-system68.mjs +28 -2
- package/dist/design-system68.mjs.map +1 -1
- package/dist/design-system69.mjs +2 -2
- package/dist/design-system70.mjs +58 -2
- package/dist/design-system70.mjs.map +1 -1
- package/dist/design-system71.mjs +2 -2
- package/dist/design-system72.mjs +1 -1
- package/dist/design-system73.mjs +2 -79
- package/dist/design-system73.mjs.map +1 -1
- package/dist/design-system74.mjs +2 -2
- package/dist/design-system75.mjs +1 -1
- package/dist/design-system76.mjs +79 -2
- package/dist/design-system76.mjs.map +1 -1
- package/dist/design-system77.mjs +2 -81
- package/dist/design-system77.mjs.map +1 -1
- package/dist/design-system78.mjs +2 -2
- package/dist/design-system79.mjs +2 -2
- package/dist/design-system80.mjs +71 -109
- package/dist/design-system80.mjs.map +1 -1
- package/dist/design-system82.mjs +1 -1
- package/dist/design-system83.mjs +119 -2
- package/dist/design-system83.mjs.map +1 -1
- package/dist/design-system84.mjs +2 -102
- package/dist/design-system84.mjs.map +1 -1
- package/dist/design-system85.mjs +2 -2
- package/dist/design-system86.mjs +2 -190
- package/dist/design-system86.mjs.map +1 -1
- package/dist/design-system87.mjs +102 -2
- package/dist/design-system87.mjs.map +1 -1
- package/dist/design-system88.mjs +2 -2
- package/dist/design-system89.mjs +170 -122
- package/dist/design-system89.mjs.map +1 -1
- package/dist/design-system91.mjs +2 -49
- package/dist/design-system91.mjs.map +1 -1
- package/dist/design-system92.mjs +142 -2
- package/dist/design-system92.mjs.map +1 -1
- package/dist/design-system93.mjs +2 -2
- package/dist/design-system94.mjs +49 -2
- package/dist/design-system94.mjs.map +1 -1
- package/dist/design-system95.mjs +2 -2
- package/dist/design-system96.mjs +2 -140
- package/dist/design-system96.mjs.map +1 -1
- package/dist/design-system97.mjs +2 -1091
- package/dist/design-system97.mjs.map +1 -1
- package/dist/design-system98.mjs +2 -1002
- package/dist/design-system98.mjs.map +1 -1
- package/package.json +14 -13
package/dist/design-system52.mjs
CHANGED
|
@@ -1,130 +1,1094 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
import { getGlobalThis as Q, isObject as v, isFunction as D, incrementer as pe, isArray as W, isPlainObject as C, isString as m, isBoolean as b, warn as Z, assign as X, isRegExp as ce, warnOnce as We, format as Ae, escapeHtml as ue, inBrowser as H, mark as w, measure as j, isNumber as S, isEmptyObject as re, generateCodeFrame as $e, generateFormatCacheKey as Ge, isDate as Ke, isPromise as Ye, join as Be, toDisplayString as He } from "./design-system51.mjs";
|
|
2
|
+
import { CompileWarnCodes as Me, CompileErrorCodes as je, createCompileError as ze, detectHtmlTag as Xe, defaultOnError as xe, baseCompile as Je } from "./design-system53.mjs";
|
|
3
|
+
/*!
|
|
4
|
+
* core-base v9.13.1
|
|
5
|
+
* (c) 2024 kazuya kawaguchi
|
|
6
|
+
* Released under the MIT License.
|
|
7
|
+
*/
|
|
8
|
+
function Ze() {
|
|
9
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Q().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Q().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Q().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
10
|
+
}
|
|
11
|
+
const $ = [];
|
|
12
|
+
$[
|
|
13
|
+
0
|
|
14
|
+
/* States.BEFORE_PATH */
|
|
15
|
+
] = {
|
|
16
|
+
w: [
|
|
17
|
+
0
|
|
18
|
+
/* States.BEFORE_PATH */
|
|
19
|
+
],
|
|
20
|
+
i: [
|
|
21
|
+
3,
|
|
22
|
+
0
|
|
23
|
+
/* Actions.APPEND */
|
|
24
|
+
],
|
|
25
|
+
"[": [
|
|
26
|
+
4
|
|
27
|
+
/* States.IN_SUB_PATH */
|
|
28
|
+
],
|
|
29
|
+
o: [
|
|
30
|
+
7
|
|
31
|
+
/* States.AFTER_PATH */
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
$[
|
|
35
|
+
1
|
|
36
|
+
/* States.IN_PATH */
|
|
37
|
+
] = {
|
|
38
|
+
w: [
|
|
39
|
+
1
|
|
40
|
+
/* States.IN_PATH */
|
|
41
|
+
],
|
|
42
|
+
".": [
|
|
43
|
+
2
|
|
44
|
+
/* States.BEFORE_IDENT */
|
|
45
|
+
],
|
|
46
|
+
"[": [
|
|
47
|
+
4
|
|
48
|
+
/* States.IN_SUB_PATH */
|
|
49
|
+
],
|
|
50
|
+
o: [
|
|
51
|
+
7
|
|
52
|
+
/* States.AFTER_PATH */
|
|
53
|
+
]
|
|
54
|
+
};
|
|
55
|
+
$[
|
|
56
|
+
2
|
|
57
|
+
/* States.BEFORE_IDENT */
|
|
58
|
+
] = {
|
|
59
|
+
w: [
|
|
60
|
+
2
|
|
61
|
+
/* States.BEFORE_IDENT */
|
|
62
|
+
],
|
|
63
|
+
i: [
|
|
64
|
+
3,
|
|
65
|
+
0
|
|
66
|
+
/* Actions.APPEND */
|
|
67
|
+
],
|
|
68
|
+
0: [
|
|
69
|
+
3,
|
|
70
|
+
0
|
|
71
|
+
/* Actions.APPEND */
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
$[
|
|
75
|
+
3
|
|
76
|
+
/* States.IN_IDENT */
|
|
77
|
+
] = {
|
|
78
|
+
i: [
|
|
79
|
+
3,
|
|
80
|
+
0
|
|
81
|
+
/* Actions.APPEND */
|
|
82
|
+
],
|
|
83
|
+
0: [
|
|
84
|
+
3,
|
|
85
|
+
0
|
|
86
|
+
/* Actions.APPEND */
|
|
87
|
+
],
|
|
88
|
+
w: [
|
|
89
|
+
1,
|
|
90
|
+
1
|
|
91
|
+
/* Actions.PUSH */
|
|
92
|
+
],
|
|
93
|
+
".": [
|
|
94
|
+
2,
|
|
95
|
+
1
|
|
96
|
+
/* Actions.PUSH */
|
|
97
|
+
],
|
|
98
|
+
"[": [
|
|
99
|
+
4,
|
|
100
|
+
1
|
|
101
|
+
/* Actions.PUSH */
|
|
102
|
+
],
|
|
103
|
+
o: [
|
|
104
|
+
7,
|
|
105
|
+
1
|
|
106
|
+
/* Actions.PUSH */
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
$[
|
|
110
|
+
4
|
|
111
|
+
/* States.IN_SUB_PATH */
|
|
112
|
+
] = {
|
|
113
|
+
"'": [
|
|
114
|
+
5,
|
|
115
|
+
0
|
|
116
|
+
/* Actions.APPEND */
|
|
117
|
+
],
|
|
118
|
+
'"': [
|
|
119
|
+
6,
|
|
120
|
+
0
|
|
121
|
+
/* Actions.APPEND */
|
|
122
|
+
],
|
|
123
|
+
"[": [
|
|
124
|
+
4,
|
|
125
|
+
2
|
|
126
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
127
|
+
],
|
|
128
|
+
"]": [
|
|
129
|
+
1,
|
|
130
|
+
3
|
|
131
|
+
/* Actions.PUSH_SUB_PATH */
|
|
132
|
+
],
|
|
133
|
+
o: 8,
|
|
134
|
+
l: [
|
|
135
|
+
4,
|
|
136
|
+
0
|
|
137
|
+
/* Actions.APPEND */
|
|
138
|
+
]
|
|
139
|
+
};
|
|
140
|
+
$[
|
|
141
|
+
5
|
|
142
|
+
/* States.IN_SINGLE_QUOTE */
|
|
143
|
+
] = {
|
|
144
|
+
"'": [
|
|
145
|
+
4,
|
|
146
|
+
0
|
|
147
|
+
/* Actions.APPEND */
|
|
148
|
+
],
|
|
149
|
+
o: 8,
|
|
150
|
+
l: [
|
|
151
|
+
5,
|
|
152
|
+
0
|
|
153
|
+
/* Actions.APPEND */
|
|
154
|
+
]
|
|
155
|
+
};
|
|
156
|
+
$[
|
|
157
|
+
6
|
|
158
|
+
/* States.IN_DOUBLE_QUOTE */
|
|
159
|
+
] = {
|
|
160
|
+
'"': [
|
|
161
|
+
4,
|
|
162
|
+
0
|
|
163
|
+
/* Actions.APPEND */
|
|
164
|
+
],
|
|
165
|
+
o: 8,
|
|
166
|
+
l: [
|
|
167
|
+
6,
|
|
168
|
+
0
|
|
169
|
+
/* Actions.APPEND */
|
|
170
|
+
]
|
|
171
|
+
};
|
|
172
|
+
const Qe = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
173
|
+
function qe(e) {
|
|
174
|
+
return Qe.test(e);
|
|
175
|
+
}
|
|
176
|
+
function et(e) {
|
|
177
|
+
const t = e.charCodeAt(0), r = e.charCodeAt(e.length - 1);
|
|
178
|
+
return t === r && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
179
|
+
}
|
|
180
|
+
function tt(e) {
|
|
181
|
+
if (e == null)
|
|
182
|
+
return "o";
|
|
183
|
+
switch (e.charCodeAt(0)) {
|
|
184
|
+
case 91:
|
|
185
|
+
case 93:
|
|
186
|
+
case 46:
|
|
187
|
+
case 34:
|
|
188
|
+
case 39:
|
|
189
|
+
return e;
|
|
190
|
+
case 95:
|
|
191
|
+
case 36:
|
|
192
|
+
case 45:
|
|
193
|
+
return "i";
|
|
194
|
+
case 9:
|
|
195
|
+
case 10:
|
|
196
|
+
case 13:
|
|
197
|
+
case 160:
|
|
198
|
+
case 65279:
|
|
199
|
+
case 8232:
|
|
200
|
+
case 8233:
|
|
201
|
+
return "w";
|
|
202
|
+
}
|
|
203
|
+
return "i";
|
|
204
|
+
}
|
|
205
|
+
function nt(e) {
|
|
206
|
+
const t = e.trim();
|
|
207
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : qe(t) ? et(t) : "*" + t;
|
|
208
|
+
}
|
|
209
|
+
function rt(e) {
|
|
210
|
+
const t = [];
|
|
211
|
+
let r = -1, n = 0, a = 0, o, l, i, s, u, f, E;
|
|
212
|
+
const c = [];
|
|
213
|
+
c[
|
|
214
|
+
0
|
|
215
|
+
/* Actions.APPEND */
|
|
216
|
+
] = () => {
|
|
217
|
+
l === void 0 ? l = i : l += i;
|
|
218
|
+
}, c[
|
|
219
|
+
1
|
|
220
|
+
/* Actions.PUSH */
|
|
221
|
+
] = () => {
|
|
222
|
+
l !== void 0 && (t.push(l), l = void 0);
|
|
223
|
+
}, c[
|
|
224
|
+
2
|
|
225
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
226
|
+
] = () => {
|
|
227
|
+
c[
|
|
228
|
+
0
|
|
229
|
+
/* Actions.APPEND */
|
|
230
|
+
](), a++;
|
|
231
|
+
}, c[
|
|
232
|
+
3
|
|
233
|
+
/* Actions.PUSH_SUB_PATH */
|
|
234
|
+
] = () => {
|
|
235
|
+
if (a > 0)
|
|
236
|
+
a--, n = 4, c[
|
|
237
|
+
0
|
|
238
|
+
/* Actions.APPEND */
|
|
239
|
+
]();
|
|
240
|
+
else {
|
|
241
|
+
if (a = 0, l === void 0 || (l = nt(l), l === !1))
|
|
242
|
+
return !1;
|
|
243
|
+
c[
|
|
244
|
+
1
|
|
245
|
+
/* Actions.PUSH */
|
|
246
|
+
]();
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
function g() {
|
|
250
|
+
const p = e[r + 1];
|
|
251
|
+
if (n === 5 && p === "'" || n === 6 && p === '"')
|
|
252
|
+
return r++, i = "\\" + p, c[
|
|
253
|
+
0
|
|
254
|
+
/* Actions.APPEND */
|
|
255
|
+
](), !0;
|
|
256
|
+
}
|
|
257
|
+
for (; n !== null; )
|
|
258
|
+
if (r++, o = e[r], !(o === "\\" && g())) {
|
|
259
|
+
if (s = tt(o), E = $[n], u = E[s] || E.l || 8, u === 8 || (n = u[0], u[1] !== void 0 && (f = c[u[1]], f && (i = o, f() === !1))))
|
|
260
|
+
return;
|
|
261
|
+
if (n === 7)
|
|
262
|
+
return t;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
const me = /* @__PURE__ */ new Map();
|
|
266
|
+
function at(e, t) {
|
|
267
|
+
return v(e) ? e[t] : null;
|
|
268
|
+
}
|
|
269
|
+
function $t(e, t) {
|
|
270
|
+
if (!v(e))
|
|
271
|
+
return null;
|
|
272
|
+
let r = me.get(t);
|
|
273
|
+
if (r || (r = rt(t), r && me.set(t, r)), !r)
|
|
274
|
+
return null;
|
|
275
|
+
const n = r.length;
|
|
276
|
+
let a = e, o = 0;
|
|
277
|
+
for (; o < n; ) {
|
|
278
|
+
const l = a[r[o]];
|
|
279
|
+
if (l === void 0 || D(a))
|
|
280
|
+
return null;
|
|
281
|
+
a = l, o++;
|
|
282
|
+
}
|
|
283
|
+
return a;
|
|
284
|
+
}
|
|
285
|
+
const st = (e) => e, ot = (e) => "", lt = "text", it = (e) => e.length === 0 ? "" : Be(e), ct = He;
|
|
286
|
+
function fe(e, t) {
|
|
287
|
+
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
288
|
+
}
|
|
289
|
+
function ut(e) {
|
|
290
|
+
const t = S(e.pluralIndex) ? e.pluralIndex : -1;
|
|
291
|
+
return e.named && (S(e.named.count) || S(e.named.n)) ? S(e.named.count) ? e.named.count : S(e.named.n) ? e.named.n : t : t;
|
|
292
|
+
}
|
|
293
|
+
function mt(e, t) {
|
|
294
|
+
t.count || (t.count = e), t.n || (t.n = e);
|
|
295
|
+
}
|
|
296
|
+
function ft(e = {}) {
|
|
297
|
+
const t = e.locale, r = ut(e), n = v(e.pluralRules) && m(t) && D(e.pluralRules[t]) ? e.pluralRules[t] : fe, a = v(e.pluralRules) && m(t) && D(e.pluralRules[t]) ? fe : void 0, o = (N) => N[n(r, N.length, a)], l = e.list || [], i = (N) => l[N], s = e.named || {};
|
|
298
|
+
S(e.pluralIndex) && mt(r, s);
|
|
299
|
+
const u = (N) => s[N];
|
|
300
|
+
function f(N) {
|
|
301
|
+
const _ = D(e.messages) ? e.messages(N) : v(e.messages) ? e.messages[N] : !1;
|
|
302
|
+
return _ || (e.parent ? e.parent.message(N) : ot);
|
|
303
|
+
}
|
|
304
|
+
const E = (N) => e.modifiers ? e.modifiers[N] : st, c = C(e.processor) && D(e.processor.normalize) ? e.processor.normalize : it, g = C(e.processor) && D(e.processor.interpolate) ? e.processor.interpolate : ct, p = C(e.processor) && m(e.processor.type) ? e.processor.type : lt, F = {
|
|
305
|
+
list: i,
|
|
306
|
+
named: u,
|
|
307
|
+
plural: o,
|
|
308
|
+
linked: (N, ..._) => {
|
|
309
|
+
const [O, d] = _;
|
|
310
|
+
let T = "text", M = "";
|
|
311
|
+
_.length === 1 ? v(O) ? (M = O.modifier || M, T = O.type || T) : m(O) && (M = O || M) : _.length === 2 && (m(O) && (M = O || M), m(d) && (T = d || T));
|
|
312
|
+
const L = f(N)(F), I = (
|
|
313
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
314
|
+
T === "vnode" && W(L) && M ? L[0] : L
|
|
315
|
+
);
|
|
316
|
+
return M ? E(M)(I, T) : I;
|
|
317
|
+
},
|
|
318
|
+
message: f,
|
|
319
|
+
type: p,
|
|
320
|
+
interpolate: g,
|
|
321
|
+
normalize: c,
|
|
322
|
+
values: X({}, l, s)
|
|
323
|
+
};
|
|
324
|
+
return F;
|
|
325
|
+
}
|
|
326
|
+
let J = null;
|
|
327
|
+
function Gt(e) {
|
|
328
|
+
J = e;
|
|
329
|
+
}
|
|
330
|
+
function _t(e, t, r) {
|
|
331
|
+
J && J.emit("i18n:init", {
|
|
332
|
+
timestamp: Date.now(),
|
|
333
|
+
i18n: e,
|
|
334
|
+
version: t,
|
|
335
|
+
meta: r
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
const dt = /* @__PURE__ */ gt(
|
|
339
|
+
"function:translate"
|
|
340
|
+
/* IntlifyDevToolsHooks.FunctionTranslate */
|
|
341
|
+
);
|
|
342
|
+
function gt(e) {
|
|
343
|
+
return (t) => J && J.emit(e, t);
|
|
344
|
+
}
|
|
345
|
+
const Ie = Me.__EXTEND_POINT__, G = pe(Ie), R = {
|
|
346
|
+
NOT_FOUND_KEY: Ie,
|
|
347
|
+
// 2
|
|
348
|
+
FALLBACK_TO_TRANSLATE: G(),
|
|
349
|
+
// 3
|
|
350
|
+
CANNOT_FORMAT_NUMBER: G(),
|
|
351
|
+
// 4
|
|
352
|
+
FALLBACK_TO_NUMBER_FORMAT: G(),
|
|
353
|
+
// 5
|
|
354
|
+
CANNOT_FORMAT_DATE: G(),
|
|
355
|
+
// 6
|
|
356
|
+
FALLBACK_TO_DATE_FORMAT: G(),
|
|
357
|
+
// 7
|
|
358
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: G(),
|
|
359
|
+
// 8
|
|
360
|
+
__EXTEND_POINT__: G()
|
|
361
|
+
// 9
|
|
362
|
+
}, Et = {
|
|
363
|
+
[R.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
364
|
+
[R.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
365
|
+
[R.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
366
|
+
[R.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
367
|
+
[R.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
368
|
+
[R.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
369
|
+
[R.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."
|
|
370
|
+
};
|
|
371
|
+
function Y(e, ...t) {
|
|
372
|
+
return Ae(Et[e], ...t);
|
|
373
|
+
}
|
|
374
|
+
const Ce = je.__EXTEND_POINT__, K = pe(Ce), h = {
|
|
375
|
+
INVALID_ARGUMENT: Ce,
|
|
376
|
+
// 17
|
|
377
|
+
INVALID_DATE_ARGUMENT: K(),
|
|
378
|
+
// 18
|
|
379
|
+
INVALID_ISO_DATE_ARGUMENT: K(),
|
|
380
|
+
// 19
|
|
381
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: K(),
|
|
382
|
+
// 20
|
|
383
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: K(),
|
|
384
|
+
// 21
|
|
385
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: K(),
|
|
386
|
+
// 22
|
|
387
|
+
NOT_SUPPORT_LOCALE_TYPE: K(),
|
|
388
|
+
// 23
|
|
389
|
+
__EXTEND_POINT__: K()
|
|
390
|
+
// 24
|
|
391
|
+
};
|
|
392
|
+
function V(e) {
|
|
393
|
+
return ze(e, null, process.env.NODE_ENV !== "production" ? { messages: Nt } : void 0);
|
|
394
|
+
}
|
|
395
|
+
const Nt = {
|
|
396
|
+
[h.INVALID_ARGUMENT]: "Invalid arguments",
|
|
397
|
+
[h.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
398
|
+
[h.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
399
|
+
[h.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
400
|
+
[h.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
401
|
+
[h.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
402
|
+
[h.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
403
|
+
};
|
|
404
|
+
function ae(e, t) {
|
|
405
|
+
return t.locale != null ? _e(t.locale) : _e(e.locale);
|
|
406
|
+
}
|
|
407
|
+
let q;
|
|
408
|
+
function _e(e) {
|
|
409
|
+
if (m(e))
|
|
410
|
+
return e;
|
|
411
|
+
if (D(e)) {
|
|
412
|
+
if (e.resolvedOnce && q != null)
|
|
413
|
+
return q;
|
|
414
|
+
if (e.constructor.name === "Function") {
|
|
415
|
+
const t = e();
|
|
416
|
+
if (Ye(t))
|
|
417
|
+
throw V(h.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
418
|
+
return q = t;
|
|
419
|
+
} else
|
|
420
|
+
throw V(h.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
421
|
+
} else
|
|
422
|
+
throw V(h.NOT_SUPPORT_LOCALE_TYPE);
|
|
423
|
+
}
|
|
424
|
+
function Tt(e, t, r) {
|
|
425
|
+
return [.../* @__PURE__ */ new Set([
|
|
426
|
+
r,
|
|
427
|
+
...W(t) ? t : v(t) ? Object.keys(t) : m(t) ? [t] : [r]
|
|
428
|
+
])];
|
|
429
|
+
}
|
|
430
|
+
function Kt(e, t, r) {
|
|
431
|
+
const n = m(r) ? r : te, a = e;
|
|
432
|
+
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
433
|
+
let o = a.__localeChainCache.get(n);
|
|
434
|
+
if (!o) {
|
|
435
|
+
o = [];
|
|
436
|
+
let l = [r];
|
|
437
|
+
for (; W(l); )
|
|
438
|
+
l = de(o, l, t);
|
|
439
|
+
const i = W(t) || !C(t) ? t : t.default ? t.default : null;
|
|
440
|
+
l = m(i) ? [i] : i, W(l) && de(o, l, !1), a.__localeChainCache.set(n, o);
|
|
441
|
+
}
|
|
442
|
+
return o;
|
|
443
|
+
}
|
|
444
|
+
function de(e, t, r) {
|
|
445
|
+
let n = !0;
|
|
446
|
+
for (let a = 0; a < t.length && b(n); a++) {
|
|
447
|
+
const o = t[a];
|
|
448
|
+
m(o) && (n = Ot(e, t[a], r));
|
|
449
|
+
}
|
|
450
|
+
return n;
|
|
451
|
+
}
|
|
452
|
+
function Ot(e, t, r) {
|
|
453
|
+
let n;
|
|
454
|
+
const a = t.split("-");
|
|
455
|
+
do {
|
|
456
|
+
const o = a.join("-");
|
|
457
|
+
n = pt(e, o, r), a.splice(-1, 1);
|
|
458
|
+
} while (a.length && n === !0);
|
|
459
|
+
return n;
|
|
460
|
+
}
|
|
461
|
+
function pt(e, t, r) {
|
|
462
|
+
let n = !1;
|
|
463
|
+
if (!e.includes(t) && (n = !0, t)) {
|
|
464
|
+
n = t[t.length - 1] !== "!";
|
|
465
|
+
const a = t.replace(/!/g, "");
|
|
466
|
+
e.push(a), (W(r) || C(r)) && r[a] && (n = r[a]);
|
|
467
|
+
}
|
|
468
|
+
return n;
|
|
469
|
+
}
|
|
470
|
+
const At = "9.13.1", se = -1, te = "en-US", Fe = "", ge = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
471
|
+
function Mt() {
|
|
472
|
+
return {
|
|
473
|
+
upper: (e, t) => t === "text" && m(e) ? e.toUpperCase() : t === "vnode" && v(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
474
|
+
lower: (e, t) => t === "text" && m(e) ? e.toLowerCase() : t === "vnode" && v(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
475
|
+
capitalize: (e, t) => t === "text" && m(e) ? ge(e) : t === "vnode" && v(e) && "__v_isVNode" in e ? ge(e.children) : e
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
let Le;
|
|
479
|
+
function Yt(e) {
|
|
480
|
+
Le = e;
|
|
481
|
+
}
|
|
482
|
+
let De;
|
|
483
|
+
function Bt(e) {
|
|
484
|
+
De = e;
|
|
485
|
+
}
|
|
486
|
+
let he;
|
|
487
|
+
function Ht(e) {
|
|
488
|
+
he = e;
|
|
489
|
+
}
|
|
490
|
+
let ve = null;
|
|
491
|
+
const jt = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
492
|
+
ve = e;
|
|
493
|
+
}, It = /* @__NO_SIDE_EFFECTS__ */ () => ve;
|
|
494
|
+
let be = null;
|
|
495
|
+
const zt = (e) => {
|
|
496
|
+
be = e;
|
|
497
|
+
}, Xt = () => be;
|
|
498
|
+
let Ee = 0;
|
|
499
|
+
function xt(e = {}) {
|
|
500
|
+
const t = D(e.onWarn) ? e.onWarn : Z, r = m(e.version) ? e.version : At, n = m(e.locale) || D(e.locale) ? e.locale : te, a = D(n) ? te : n, o = W(e.fallbackLocale) || C(e.fallbackLocale) || m(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, l = C(e.messages) ? e.messages : { [a]: {} }, i = C(e.datetimeFormats) ? e.datetimeFormats : { [a]: {} }, s = C(e.numberFormats) ? e.numberFormats : { [a]: {} }, u = X({}, e.modifiers || {}, Mt()), f = e.pluralRules || {}, E = D(e.missing) ? e.missing : null, c = b(e.missingWarn) || ce(e.missingWarn) ? e.missingWarn : !0, g = b(e.fallbackWarn) || ce(e.fallbackWarn) ? e.fallbackWarn : !0, p = !!e.fallbackFormat, A = !!e.unresolving, F = D(e.postTranslation) ? e.postTranslation : null, N = C(e.processor) ? e.processor : null, _ = b(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, d = D(e.messageCompiler) ? e.messageCompiler : Le;
|
|
501
|
+
process.env.NODE_ENV !== "production" && D(e.messageCompiler) && We(Y(R.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
502
|
+
const T = D(e.messageResolver) ? e.messageResolver : De || at, M = D(e.localeFallbacker) ? e.localeFallbacker : he || Tt, L = v(e.fallbackContext) ? e.fallbackContext : void 0, I = e, y = v(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), U = v(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), x = v(I.__meta) ? I.__meta : {};
|
|
503
|
+
Ee++;
|
|
504
|
+
const k = {
|
|
505
|
+
version: r,
|
|
506
|
+
cid: Ee,
|
|
507
|
+
locale: n,
|
|
508
|
+
fallbackLocale: o,
|
|
509
|
+
messages: l,
|
|
510
|
+
modifiers: u,
|
|
511
|
+
pluralRules: f,
|
|
512
|
+
missing: E,
|
|
513
|
+
missingWarn: c,
|
|
514
|
+
fallbackWarn: g,
|
|
515
|
+
fallbackFormat: p,
|
|
516
|
+
unresolving: A,
|
|
517
|
+
postTranslation: F,
|
|
518
|
+
processor: N,
|
|
519
|
+
warnHtmlMessage: _,
|
|
520
|
+
escapeParameter: O,
|
|
521
|
+
messageCompiler: d,
|
|
522
|
+
messageResolver: T,
|
|
523
|
+
localeFallbacker: M,
|
|
524
|
+
fallbackContext: L,
|
|
525
|
+
onWarn: t,
|
|
526
|
+
__meta: x
|
|
527
|
+
};
|
|
528
|
+
return k.datetimeFormats = i, k.numberFormats = s, k.__datetimeFormatters = y, k.__numberFormatters = U, process.env.NODE_ENV !== "production" && (k.__v_emitter = I.__v_emitter != null ? I.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && _t(k, r, x), k;
|
|
529
|
+
}
|
|
530
|
+
function oe(e, t) {
|
|
531
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
532
|
+
}
|
|
533
|
+
function Ct(e, t) {
|
|
534
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
535
|
+
}
|
|
536
|
+
function le(e, t, r, n, a) {
|
|
537
|
+
const { missing: o, onWarn: l } = e;
|
|
538
|
+
if (process.env.NODE_ENV !== "production") {
|
|
539
|
+
const i = e.__v_emitter;
|
|
540
|
+
i && i.emit("missing", {
|
|
541
|
+
locale: r,
|
|
542
|
+
key: t,
|
|
543
|
+
type: a,
|
|
544
|
+
groupId: `${a}:${t}`
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
if (o !== null) {
|
|
548
|
+
const i = o(e, r, t, a);
|
|
549
|
+
return m(i) ? i : t;
|
|
550
|
+
} else
|
|
551
|
+
return process.env.NODE_ENV !== "production" && Ct(n, t) && l(Y(R.NOT_FOUND_KEY, { key: t, locale: r })), t;
|
|
552
|
+
}
|
|
553
|
+
function Jt(e, t, r) {
|
|
554
|
+
const n = e;
|
|
555
|
+
n.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, r, t);
|
|
556
|
+
}
|
|
557
|
+
function Re(e, t) {
|
|
558
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
559
|
+
}
|
|
560
|
+
function Ft(e, t) {
|
|
561
|
+
const r = t.indexOf(e);
|
|
562
|
+
if (r === -1)
|
|
563
|
+
return !1;
|
|
564
|
+
for (let n = r + 1; n < t.length; n++)
|
|
565
|
+
if (Re(e, t[n]))
|
|
566
|
+
return !0;
|
|
567
|
+
return !1;
|
|
568
|
+
}
|
|
569
|
+
function ee(e) {
|
|
570
|
+
return (r) => Lt(r, e);
|
|
571
|
+
}
|
|
572
|
+
function Lt(e, t) {
|
|
573
|
+
const r = t.b || t.body;
|
|
574
|
+
if ((r.t || r.type) === 1) {
|
|
575
|
+
const n = r, a = n.c || n.cases;
|
|
576
|
+
return e.plural(a.reduce((o, l) => [
|
|
577
|
+
...o,
|
|
578
|
+
Ne(e, l)
|
|
579
|
+
], []));
|
|
580
|
+
} else
|
|
581
|
+
return Ne(e, r);
|
|
582
|
+
}
|
|
583
|
+
function Ne(e, t) {
|
|
584
|
+
const r = t.s || t.static;
|
|
585
|
+
if (r)
|
|
586
|
+
return e.type === "text" ? r : e.normalize([r]);
|
|
587
|
+
{
|
|
588
|
+
const n = (t.i || t.items).reduce((a, o) => [...a, ne(e, o)], []);
|
|
589
|
+
return e.normalize(n);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
function ne(e, t) {
|
|
593
|
+
const r = t.t || t.type;
|
|
594
|
+
switch (r) {
|
|
595
|
+
case 3: {
|
|
596
|
+
const n = t;
|
|
597
|
+
return n.v || n.value;
|
|
598
|
+
}
|
|
599
|
+
case 9: {
|
|
600
|
+
const n = t;
|
|
601
|
+
return n.v || n.value;
|
|
602
|
+
}
|
|
603
|
+
case 4: {
|
|
604
|
+
const n = t;
|
|
605
|
+
return e.interpolate(e.named(n.k || n.key));
|
|
606
|
+
}
|
|
607
|
+
case 5: {
|
|
608
|
+
const n = t;
|
|
609
|
+
return e.interpolate(e.list(n.i != null ? n.i : n.index));
|
|
610
|
+
}
|
|
611
|
+
case 6: {
|
|
612
|
+
const n = t, a = n.m || n.modifier;
|
|
613
|
+
return e.linked(ne(e, n.k || n.key), a ? ne(e, a) : void 0, e.type);
|
|
614
|
+
}
|
|
615
|
+
case 7: {
|
|
616
|
+
const n = t;
|
|
617
|
+
return n.v || n.value;
|
|
618
|
+
}
|
|
619
|
+
case 8: {
|
|
620
|
+
const n = t;
|
|
621
|
+
return n.v || n.value;
|
|
622
|
+
}
|
|
623
|
+
default:
|
|
624
|
+
throw new Error(`unhandled node type on format message part: ${r}`);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
const Dt = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
628
|
+
function Se(e, t) {
|
|
629
|
+
t && Xe(e) && Z(Ae(Dt, { source: e }));
|
|
630
|
+
}
|
|
631
|
+
const we = (e) => e;
|
|
632
|
+
let B = /* @__PURE__ */ Object.create(null);
|
|
633
|
+
function ye(e) {
|
|
634
|
+
e.code === Me.USE_MODULO_SYNTAX && Z(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
635
|
+
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
636
|
+
(message compiler warning message: ${e.message})`);
|
|
637
|
+
}
|
|
638
|
+
const z = (e) => v(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
|
639
|
+
function Pe(e, t = {}) {
|
|
640
|
+
let r = !1;
|
|
641
|
+
const n = t.onError || xe;
|
|
642
|
+
return t.onError = (a) => {
|
|
643
|
+
r = !0, n(a);
|
|
644
|
+
}, { ...Je(e, t), detectError: r };
|
|
645
|
+
}
|
|
646
|
+
const Zt = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
|
647
|
+
if (!m(e))
|
|
648
|
+
throw V(h.NOT_SUPPORT_NON_STRING_MESSAGE);
|
|
649
|
+
process.env.NODE_ENV !== "production" && (t.onWarn = ye);
|
|
650
|
+
{
|
|
651
|
+
const r = b(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
652
|
+
process.env.NODE_ENV !== "production" && Se(e, r);
|
|
653
|
+
const a = (t.onCacheKey || we)(e), o = B[a];
|
|
654
|
+
if (o)
|
|
655
|
+
return o;
|
|
656
|
+
const { code: l, detectError: i } = Pe(e, t), s = new Function(`return ${l}`)();
|
|
657
|
+
return i ? s : B[a] = s;
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
function Qt(e, t) {
|
|
661
|
+
if (process.env.NODE_ENV !== "production" && (t.onWarn = ye), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && m(e)) {
|
|
662
|
+
const r = b(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
663
|
+
process.env.NODE_ENV !== "production" && Se(e, r);
|
|
664
|
+
const a = (t.onCacheKey || we)(e), o = B[a];
|
|
665
|
+
if (o)
|
|
666
|
+
return o;
|
|
667
|
+
const { ast: l, detectError: i } = Pe(e, {
|
|
668
|
+
...t,
|
|
669
|
+
location: process.env.NODE_ENV !== "production",
|
|
670
|
+
jit: !0
|
|
671
|
+
}), s = ee(l);
|
|
672
|
+
return i ? s : B[a] = s;
|
|
673
|
+
} else {
|
|
674
|
+
if (process.env.NODE_ENV !== "production" && !z(e))
|
|
675
|
+
return Z(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
676
|
+
const r = e.cacheKey;
|
|
677
|
+
if (r) {
|
|
678
|
+
const n = B[r];
|
|
679
|
+
return n || (B[r] = ee(e));
|
|
680
|
+
} else
|
|
681
|
+
return ee(e);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
const Te = () => "", P = (e) => D(e);
|
|
685
|
+
function qt(e, ...t) {
|
|
686
|
+
const { fallbackFormat: r, postTranslation: n, unresolving: a, messageCompiler: o, fallbackLocale: l, messages: i } = e, [s, u] = bt(...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, p = m(u.default) || b(u.default) ? b(u.default) ? o ? s : () => s : u.default : r ? o ? s : () => s : "", A = r || p !== "", F = ae(e, u);
|
|
687
|
+
c && ht(u);
|
|
688
|
+
let [N, _, O] = g ? [
|
|
689
|
+
s,
|
|
690
|
+
F,
|
|
691
|
+
i[F] || {}
|
|
692
|
+
] : ke(e, s, F, l, E, f), d = N, T = s;
|
|
693
|
+
if (!g && !(m(d) || z(d) || P(d)) && A && (d = p, T = d), !g && (!(m(d) || z(d) || P(d)) || !m(_)))
|
|
694
|
+
return a ? se : s;
|
|
695
|
+
if (process.env.NODE_ENV !== "production" && m(d) && e.messageCompiler == null)
|
|
696
|
+
return Z(`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;
|
|
697
|
+
let M = !1;
|
|
698
|
+
const L = () => {
|
|
699
|
+
M = !0;
|
|
700
|
+
}, I = P(d) ? d : Ve(e, s, _, d, T, L);
|
|
701
|
+
if (M)
|
|
702
|
+
return d;
|
|
703
|
+
const y = wt(e, _, O, u), U = ft(y), x = vt(e, I, U), k = n ? n(x, s) : x;
|
|
704
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
705
|
+
const ie = {
|
|
706
|
+
timestamp: Date.now(),
|
|
707
|
+
key: m(s) ? s : P(d) ? d.key : "",
|
|
708
|
+
locale: _ || (P(d) ? d.locale : ""),
|
|
709
|
+
format: m(d) ? d : P(d) ? d.source : "",
|
|
710
|
+
message: k
|
|
92
711
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
712
|
+
ie.meta = X({}, e.__meta, /* @__PURE__ */ It() || {}), dt(ie);
|
|
713
|
+
}
|
|
714
|
+
return k;
|
|
715
|
+
}
|
|
716
|
+
function ht(e) {
|
|
717
|
+
W(e.list) ? e.list = e.list.map((t) => m(t) ? ue(t) : t) : v(e.named) && Object.keys(e.named).forEach((t) => {
|
|
718
|
+
m(e.named[t]) && (e.named[t] = ue(e.named[t]));
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
function ke(e, t, r, n, a, o) {
|
|
722
|
+
const { messages: l, onWarn: i, messageResolver: s, localeFallbacker: u } = e, f = u(e, n, r);
|
|
723
|
+
let E = {}, c, g = null, p = r, A = null;
|
|
724
|
+
const F = "translate";
|
|
725
|
+
for (let N = 0; N < f.length; N++) {
|
|
726
|
+
if (c = A = f[N], process.env.NODE_ENV !== "production" && r !== c && !Re(r, c) && oe(a, t) && i(Y(R.FALLBACK_TO_TRANSLATE, {
|
|
727
|
+
key: t,
|
|
728
|
+
target: c
|
|
729
|
+
})), process.env.NODE_ENV !== "production" && r !== c) {
|
|
730
|
+
const T = e.__v_emitter;
|
|
731
|
+
T && T.emit("fallback", {
|
|
732
|
+
type: F,
|
|
733
|
+
key: t,
|
|
734
|
+
from: p,
|
|
735
|
+
to: A,
|
|
736
|
+
groupId: `${F}:${t}`
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
E = l[c] || {};
|
|
740
|
+
let _ = null, O, d;
|
|
741
|
+
if (process.env.NODE_ENV !== "production" && H && (_ = window.performance.now(), O = "intlify-message-resolve-start", d = "intlify-message-resolve-end", w && w(O)), (g = s(E, t)) === null && (g = E[t]), process.env.NODE_ENV !== "production" && H) {
|
|
742
|
+
const T = window.performance.now(), M = e.__v_emitter;
|
|
743
|
+
M && _ && g && M.emit("message-resolve", {
|
|
744
|
+
type: "message-resolve",
|
|
745
|
+
key: t,
|
|
746
|
+
message: g,
|
|
747
|
+
time: T - _,
|
|
748
|
+
groupId: `${F}:${t}`
|
|
749
|
+
}), O && d && w && j && (w(d), j("intlify message resolve", O, d));
|
|
750
|
+
}
|
|
751
|
+
if (m(g) || z(g) || P(g))
|
|
752
|
+
break;
|
|
753
|
+
if (!Ft(c, f)) {
|
|
754
|
+
const T = le(
|
|
755
|
+
e,
|
|
756
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
757
|
+
t,
|
|
758
|
+
c,
|
|
759
|
+
o,
|
|
760
|
+
F
|
|
761
|
+
);
|
|
762
|
+
T !== t && (g = T);
|
|
763
|
+
}
|
|
764
|
+
p = A;
|
|
765
|
+
}
|
|
766
|
+
return [g, c, E];
|
|
767
|
+
}
|
|
768
|
+
function Ve(e, t, r, n, a, o) {
|
|
769
|
+
const { messageCompiler: l, warnHtmlMessage: i } = e;
|
|
770
|
+
if (P(n)) {
|
|
771
|
+
const c = n;
|
|
772
|
+
return c.locale = c.locale || r, c.key = c.key || t, c;
|
|
773
|
+
}
|
|
774
|
+
if (l == null) {
|
|
775
|
+
const c = () => n;
|
|
776
|
+
return c.locale = r, c.key = t, c;
|
|
777
|
+
}
|
|
778
|
+
let s = null, u, f;
|
|
779
|
+
process.env.NODE_ENV !== "production" && H && (s = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", w && w(u));
|
|
780
|
+
const E = l(n, Rt(e, r, a, n, i, o));
|
|
781
|
+
if (process.env.NODE_ENV !== "production" && H) {
|
|
782
|
+
const c = window.performance.now(), g = e.__v_emitter;
|
|
783
|
+
g && s && g.emit("message-compilation", {
|
|
784
|
+
type: "message-compilation",
|
|
785
|
+
message: n,
|
|
786
|
+
time: c - s,
|
|
787
|
+
groupId: `translate:${t}`
|
|
788
|
+
}), u && f && w && j && (w(f), j("intlify message compilation", u, f));
|
|
789
|
+
}
|
|
790
|
+
return E.locale = r, E.key = t, E.source = n, E;
|
|
791
|
+
}
|
|
792
|
+
function vt(e, t, r) {
|
|
793
|
+
let n = null, a, o;
|
|
794
|
+
process.env.NODE_ENV !== "production" && H && (n = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", w && w(a));
|
|
795
|
+
const l = t(r);
|
|
796
|
+
if (process.env.NODE_ENV !== "production" && H) {
|
|
797
|
+
const i = window.performance.now(), s = e.__v_emitter;
|
|
798
|
+
s && n && s.emit("message-evaluation", {
|
|
799
|
+
type: "message-evaluation",
|
|
800
|
+
value: l,
|
|
801
|
+
time: i - n,
|
|
802
|
+
groupId: `translate:${t.key}`
|
|
803
|
+
}), a && o && w && j && (w(o), j("intlify message evaluation", a, o));
|
|
804
|
+
}
|
|
805
|
+
return l;
|
|
806
|
+
}
|
|
807
|
+
function bt(...e) {
|
|
808
|
+
const [t, r, n] = e, a = {};
|
|
809
|
+
if (!m(t) && !S(t) && !P(t) && !z(t))
|
|
810
|
+
throw V(h.INVALID_ARGUMENT);
|
|
811
|
+
const o = S(t) ? String(t) : (P(t), t);
|
|
812
|
+
return S(r) ? a.plural = r : m(r) ? a.default = r : C(r) && !re(r) ? a.named = r : W(r) && (a.list = r), S(n) ? a.plural = n : m(n) ? a.default = n : C(n) && X(a, n), [o, a];
|
|
813
|
+
}
|
|
814
|
+
function Rt(e, t, r, n, a, o) {
|
|
815
|
+
return {
|
|
816
|
+
locale: t,
|
|
817
|
+
key: r,
|
|
818
|
+
warnHtmlMessage: a,
|
|
819
|
+
onError: (l) => {
|
|
820
|
+
if (o && o(l), process.env.NODE_ENV !== "production") {
|
|
821
|
+
const i = St(n), s = `Message compilation error: ${l.message}`, u = l.location && i && $e(i, l.location.start.offset, l.location.end.offset), f = e.__v_emitter;
|
|
822
|
+
f && i && f.emit("compile-error", {
|
|
823
|
+
message: i,
|
|
824
|
+
error: l.message,
|
|
825
|
+
start: l.location && l.location.start.offset,
|
|
826
|
+
end: l.location && l.location.end.offset,
|
|
827
|
+
groupId: `translate:${r}`
|
|
828
|
+
}), console.error(u ? `${s}
|
|
829
|
+
${u}` : s);
|
|
830
|
+
} else
|
|
831
|
+
throw l;
|
|
832
|
+
},
|
|
833
|
+
onCacheKey: (l) => Ge(t, r, l)
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
function St(e) {
|
|
837
|
+
if (m(e))
|
|
838
|
+
return e;
|
|
839
|
+
if (e.loc && e.loc.source)
|
|
840
|
+
return e.loc.source;
|
|
841
|
+
}
|
|
842
|
+
function wt(e, t, r, n) {
|
|
843
|
+
const { modifiers: a, pluralRules: o, messageResolver: l, fallbackLocale: i, fallbackWarn: s, missingWarn: u, fallbackContext: f } = e, c = {
|
|
844
|
+
locale: t,
|
|
845
|
+
modifiers: a,
|
|
846
|
+
pluralRules: o,
|
|
847
|
+
messages: (g) => {
|
|
848
|
+
let p = l(r, g);
|
|
849
|
+
if (p == null && f) {
|
|
850
|
+
const [, , A] = ke(f, g, t, i, s, u);
|
|
851
|
+
p = l(A, g);
|
|
852
|
+
}
|
|
853
|
+
if (m(p) || z(p)) {
|
|
854
|
+
let A = !1;
|
|
855
|
+
const N = Ve(e, g, t, p, g, () => {
|
|
856
|
+
A = !0;
|
|
857
|
+
});
|
|
858
|
+
return A ? Te : N;
|
|
859
|
+
} else
|
|
860
|
+
return P(p) ? p : Te;
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
return e.processor && (c.processor = e.processor), n.list && (c.list = n.list), n.named && (c.named = n.named), S(n.plural) && (c.pluralIndex = n.plural), c;
|
|
864
|
+
}
|
|
865
|
+
const Oe = typeof Intl < "u", Ue = {
|
|
866
|
+
dateTimeFormat: Oe && typeof Intl.DateTimeFormat < "u",
|
|
867
|
+
numberFormat: Oe && typeof Intl.NumberFormat < "u"
|
|
868
|
+
};
|
|
869
|
+
function en(e, ...t) {
|
|
870
|
+
const { datetimeFormats: r, unresolving: n, fallbackLocale: a, onWarn: o, localeFallbacker: l } = e, { __datetimeFormatters: i } = e;
|
|
871
|
+
if (process.env.NODE_ENV !== "production" && !Ue.dateTimeFormat)
|
|
872
|
+
return o(Y(R.CANNOT_FORMAT_DATE)), Fe;
|
|
873
|
+
const [s, u, f, E] = Pt(...t), c = b(f.missingWarn) ? f.missingWarn : e.missingWarn, g = b(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, p = !!f.part, A = ae(e, f), F = l(
|
|
874
|
+
e,
|
|
875
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
876
|
+
a,
|
|
877
|
+
A
|
|
878
|
+
);
|
|
879
|
+
if (!m(s) || s === "")
|
|
880
|
+
return new Intl.DateTimeFormat(A, E).format(u);
|
|
881
|
+
let N = {}, _, O = null, d = A, T = null;
|
|
882
|
+
const M = "datetime format";
|
|
883
|
+
for (let y = 0; y < F.length; y++) {
|
|
884
|
+
if (_ = T = F[y], process.env.NODE_ENV !== "production" && A !== _ && oe(g, s) && o(Y(R.FALLBACK_TO_DATE_FORMAT, {
|
|
885
|
+
key: s,
|
|
886
|
+
target: _
|
|
887
|
+
})), process.env.NODE_ENV !== "production" && A !== _) {
|
|
888
|
+
const U = e.__v_emitter;
|
|
889
|
+
U && U.emit("fallback", {
|
|
890
|
+
type: M,
|
|
891
|
+
key: s,
|
|
892
|
+
from: d,
|
|
893
|
+
to: T,
|
|
894
|
+
groupId: `${M}:${s}`
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
if (N = r[_] || {}, O = N[s], C(O))
|
|
898
|
+
break;
|
|
899
|
+
le(e, s, _, c, M), d = T;
|
|
900
|
+
}
|
|
901
|
+
if (!C(O) || !m(_))
|
|
902
|
+
return n ? se : s;
|
|
903
|
+
let L = `${_}__${s}`;
|
|
904
|
+
re(E) || (L = `${L}__${JSON.stringify(E)}`);
|
|
905
|
+
let I = i.get(L);
|
|
906
|
+
return I || (I = new Intl.DateTimeFormat(_, X({}, O, E)), i.set(L, I)), p ? I.formatToParts(u) : I.format(u);
|
|
907
|
+
}
|
|
908
|
+
const yt = [
|
|
909
|
+
"localeMatcher",
|
|
910
|
+
"weekday",
|
|
911
|
+
"era",
|
|
912
|
+
"year",
|
|
913
|
+
"month",
|
|
914
|
+
"day",
|
|
915
|
+
"hour",
|
|
916
|
+
"minute",
|
|
917
|
+
"second",
|
|
918
|
+
"timeZoneName",
|
|
919
|
+
"formatMatcher",
|
|
920
|
+
"hour12",
|
|
921
|
+
"timeZone",
|
|
922
|
+
"dateStyle",
|
|
923
|
+
"timeStyle",
|
|
924
|
+
"calendar",
|
|
925
|
+
"dayPeriod",
|
|
926
|
+
"numberingSystem",
|
|
927
|
+
"hourCycle",
|
|
928
|
+
"fractionalSecondDigits"
|
|
929
|
+
];
|
|
930
|
+
function Pt(...e) {
|
|
931
|
+
const [t, r, n, a] = e, o = {};
|
|
932
|
+
let l = {}, i;
|
|
933
|
+
if (m(t)) {
|
|
934
|
+
const s = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
935
|
+
if (!s)
|
|
936
|
+
throw V(h.INVALID_ISO_DATE_ARGUMENT);
|
|
937
|
+
const u = s[3] ? s[3].trim().startsWith("T") ? `${s[1].trim()}${s[3].trim()}` : `${s[1].trim()}T${s[3].trim()}` : s[1].trim();
|
|
938
|
+
i = new Date(u);
|
|
939
|
+
try {
|
|
940
|
+
i.toISOString();
|
|
941
|
+
} catch {
|
|
942
|
+
throw V(h.INVALID_ISO_DATE_ARGUMENT);
|
|
943
|
+
}
|
|
944
|
+
} else if (Ke(t)) {
|
|
945
|
+
if (isNaN(t.getTime()))
|
|
946
|
+
throw V(h.INVALID_DATE_ARGUMENT);
|
|
947
|
+
i = t;
|
|
948
|
+
} else if (S(t))
|
|
949
|
+
i = t;
|
|
950
|
+
else
|
|
951
|
+
throw V(h.INVALID_ARGUMENT);
|
|
952
|
+
return m(r) ? o.key = r : C(r) && Object.keys(r).forEach((s) => {
|
|
953
|
+
yt.includes(s) ? l[s] = r[s] : o[s] = r[s];
|
|
954
|
+
}), m(n) ? o.locale = n : C(n) && (l = n), C(a) && (l = a), [o.key || "", i, o, l];
|
|
955
|
+
}
|
|
956
|
+
function tn(e, t, r) {
|
|
957
|
+
const n = e;
|
|
958
|
+
for (const a in r) {
|
|
959
|
+
const o = `${t}__${a}`;
|
|
960
|
+
n.__datetimeFormatters.has(o) && n.__datetimeFormatters.delete(o);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
function nn(e, ...t) {
|
|
964
|
+
const { numberFormats: r, unresolving: n, fallbackLocale: a, onWarn: o, localeFallbacker: l } = e, { __numberFormatters: i } = e;
|
|
965
|
+
if (process.env.NODE_ENV !== "production" && !Ue.numberFormat)
|
|
966
|
+
return o(Y(R.CANNOT_FORMAT_NUMBER)), Fe;
|
|
967
|
+
const [s, u, f, E] = Vt(...t), c = b(f.missingWarn) ? f.missingWarn : e.missingWarn, g = b(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, p = !!f.part, A = ae(e, f), F = l(
|
|
968
|
+
e,
|
|
969
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
970
|
+
a,
|
|
971
|
+
A
|
|
972
|
+
);
|
|
973
|
+
if (!m(s) || s === "")
|
|
974
|
+
return new Intl.NumberFormat(A, E).format(u);
|
|
975
|
+
let N = {}, _, O = null, d = A, T = null;
|
|
976
|
+
const M = "number format";
|
|
977
|
+
for (let y = 0; y < F.length; y++) {
|
|
978
|
+
if (_ = T = F[y], process.env.NODE_ENV !== "production" && A !== _ && oe(g, s) && o(Y(R.FALLBACK_TO_NUMBER_FORMAT, {
|
|
979
|
+
key: s,
|
|
980
|
+
target: _
|
|
981
|
+
})), process.env.NODE_ENV !== "production" && A !== _) {
|
|
982
|
+
const U = e.__v_emitter;
|
|
983
|
+
U && U.emit("fallback", {
|
|
984
|
+
type: M,
|
|
985
|
+
key: s,
|
|
986
|
+
from: d,
|
|
987
|
+
to: T,
|
|
988
|
+
groupId: `${M}:${s}`
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
if (N = r[_] || {}, O = N[s], C(O))
|
|
992
|
+
break;
|
|
993
|
+
le(e, s, _, c, M), d = T;
|
|
994
|
+
}
|
|
995
|
+
if (!C(O) || !m(_))
|
|
996
|
+
return n ? se : s;
|
|
997
|
+
let L = `${_}__${s}`;
|
|
998
|
+
re(E) || (L = `${L}__${JSON.stringify(E)}`);
|
|
999
|
+
let I = i.get(L);
|
|
1000
|
+
return I || (I = new Intl.NumberFormat(_, X({}, O, E)), i.set(L, I)), p ? I.formatToParts(u) : I.format(u);
|
|
1001
|
+
}
|
|
1002
|
+
const kt = [
|
|
1003
|
+
"localeMatcher",
|
|
1004
|
+
"style",
|
|
1005
|
+
"currency",
|
|
1006
|
+
"currencyDisplay",
|
|
1007
|
+
"currencySign",
|
|
1008
|
+
"useGrouping",
|
|
1009
|
+
"minimumIntegerDigits",
|
|
1010
|
+
"minimumFractionDigits",
|
|
1011
|
+
"maximumFractionDigits",
|
|
1012
|
+
"minimumSignificantDigits",
|
|
1013
|
+
"maximumSignificantDigits",
|
|
1014
|
+
"compactDisplay",
|
|
1015
|
+
"notation",
|
|
1016
|
+
"signDisplay",
|
|
1017
|
+
"unit",
|
|
1018
|
+
"unitDisplay",
|
|
1019
|
+
"roundingMode",
|
|
1020
|
+
"roundingPriority",
|
|
1021
|
+
"roundingIncrement",
|
|
1022
|
+
"trailingZeroDisplay"
|
|
1023
|
+
];
|
|
1024
|
+
function Vt(...e) {
|
|
1025
|
+
const [t, r, n, a] = e, o = {};
|
|
1026
|
+
let l = {};
|
|
1027
|
+
if (!S(t))
|
|
1028
|
+
throw V(h.INVALID_ARGUMENT);
|
|
1029
|
+
const i = t;
|
|
1030
|
+
return m(r) ? o.key = r : C(r) && Object.keys(r).forEach((s) => {
|
|
1031
|
+
kt.includes(s) ? l[s] = r[s] : o[s] = r[s];
|
|
1032
|
+
}), m(n) ? o.locale = n : C(n) && (l = n), C(a) && (l = a), [o.key || "", i, o, l];
|
|
1033
|
+
}
|
|
1034
|
+
function rn(e, t, r) {
|
|
1035
|
+
const n = e;
|
|
1036
|
+
for (const a in r) {
|
|
1037
|
+
const o = `${t}__${a}`;
|
|
1038
|
+
n.__numberFormatters.has(o) && n.__numberFormatters.delete(o);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
Ze();
|
|
127
1042
|
export {
|
|
128
|
-
|
|
1043
|
+
je as CompileErrorCodes,
|
|
1044
|
+
h as CoreErrorCodes,
|
|
1045
|
+
R as CoreWarnCodes,
|
|
1046
|
+
yt as DATETIME_FORMAT_OPTIONS_KEYS,
|
|
1047
|
+
te as DEFAULT_LOCALE,
|
|
1048
|
+
lt as DEFAULT_MESSAGE_DATA_TYPE,
|
|
1049
|
+
Fe as MISSING_RESOLVE_VALUE,
|
|
1050
|
+
se as NOT_REOSLVED,
|
|
1051
|
+
kt as NUMBER_FORMAT_OPTIONS_KEYS,
|
|
1052
|
+
At as VERSION,
|
|
1053
|
+
tn as clearDateTimeFormat,
|
|
1054
|
+
rn as clearNumberFormat,
|
|
1055
|
+
Qt as compile,
|
|
1056
|
+
Zt as compileToFunction,
|
|
1057
|
+
ze as createCompileError,
|
|
1058
|
+
xt as createCoreContext,
|
|
1059
|
+
V as createCoreError,
|
|
1060
|
+
ft as createMessageContext,
|
|
1061
|
+
en as datetime,
|
|
1062
|
+
Kt as fallbackWithLocaleChain,
|
|
1063
|
+
Tt as fallbackWithSimple,
|
|
1064
|
+
It as getAdditionalMeta,
|
|
1065
|
+
Xt as getFallbackContext,
|
|
1066
|
+
ae as getLocale,
|
|
1067
|
+
Y as getWarnMessage,
|
|
1068
|
+
le as handleMissing,
|
|
1069
|
+
_t as initI18nDevTools,
|
|
1070
|
+
Re as isAlmostSameLocale,
|
|
1071
|
+
Ft as isImplicitFallback,
|
|
1072
|
+
z as isMessageAST,
|
|
1073
|
+
P as isMessageFunction,
|
|
1074
|
+
oe as isTranslateFallbackWarn,
|
|
1075
|
+
Ct as isTranslateMissingWarn,
|
|
1076
|
+
nn as number,
|
|
1077
|
+
rt as parse,
|
|
1078
|
+
Pt as parseDateTimeArgs,
|
|
1079
|
+
Vt as parseNumberArgs,
|
|
1080
|
+
bt as parseTranslateArgs,
|
|
1081
|
+
Ht as registerLocaleFallbacker,
|
|
1082
|
+
Yt as registerMessageCompiler,
|
|
1083
|
+
Bt as registerMessageResolver,
|
|
1084
|
+
_e as resolveLocale,
|
|
1085
|
+
$t as resolveValue,
|
|
1086
|
+
at as resolveWithKeyValue,
|
|
1087
|
+
jt as setAdditionalMeta,
|
|
1088
|
+
Gt as setDevToolsHook,
|
|
1089
|
+
zt as setFallbackContext,
|
|
1090
|
+
qt as translate,
|
|
1091
|
+
dt as translateDevTools,
|
|
1092
|
+
Jt as updateFallbackLocale
|
|
129
1093
|
};
|
|
130
1094
|
//# sourceMappingURL=design-system52.mjs.map
|