smarteye-e-components 0.0.27 → 0.0.29
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/smarteye-e-components.js +5 -5
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +241 -243
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/recursion-device-group/index.vue.d.ts +2 -2
- package/package.json +1 -1
|
@@ -109,7 +109,7 @@ const ke = (e, t) => {
|
|
|
109
109
|
n[r] = o;
|
|
110
110
|
return n;
|
|
111
111
|
}, vo = { class: "root" }, No = { class: "count-show" };
|
|
112
|
-
function
|
|
112
|
+
function Oo(e, t, n, r, o, a) {
|
|
113
113
|
return x(), J("div", vo, [
|
|
114
114
|
oe(e.$slots, "default", {
|
|
115
115
|
total: e.totalCount,
|
|
@@ -118,7 +118,7 @@ function bo(e, t, n, r, o, a) {
|
|
|
118
118
|
G("span", No, ge(e.onlineCount) + "/" + ge(e.totalCount), 1)
|
|
119
119
|
]);
|
|
120
120
|
}
|
|
121
|
-
const sn = /* @__PURE__ */ ke(Eo, [["render",
|
|
121
|
+
const sn = /* @__PURE__ */ ke(Eo, [["render", Oo], ["__scopeId", "data-v-a063c331"]]), an = Object.freeze(
|
|
122
122
|
{
|
|
123
123
|
left: 0,
|
|
124
124
|
top: 0,
|
|
@@ -148,7 +148,7 @@ const cn = Object.freeze({
|
|
|
148
148
|
...cn,
|
|
149
149
|
...ln
|
|
150
150
|
});
|
|
151
|
-
function
|
|
151
|
+
function bo(e, t) {
|
|
152
152
|
const n = {
|
|
153
153
|
...e
|
|
154
154
|
};
|
|
@@ -171,7 +171,7 @@ function Io(e, t) {
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Lo(e, t = 0) {
|
|
175
175
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
176
176
|
function r(o) {
|
|
177
177
|
for (; o < 0; )
|
|
@@ -197,7 +197,7 @@ function So(e, t = 0) {
|
|
|
197
197
|
}
|
|
198
198
|
return t;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const So = /(-?[0-9.]*[0-9]+[0-9.]*)/g, yo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
201
201
|
function Nt(e, t, n) {
|
|
202
202
|
if (t === 1)
|
|
203
203
|
return e;
|
|
@@ -205,7 +205,7 @@ function Nt(e, t, n) {
|
|
|
205
205
|
return Math.ceil(e * t * n) / n;
|
|
206
206
|
if (typeof e != "string")
|
|
207
207
|
return e;
|
|
208
|
-
const r = e.split(
|
|
208
|
+
const r = e.split(So);
|
|
209
209
|
if (r === null || !r.length)
|
|
210
210
|
return e;
|
|
211
211
|
const o = [];
|
|
@@ -236,15 +236,15 @@ function Do(e, t) {
|
|
|
236
236
|
};
|
|
237
237
|
let a = n.body;
|
|
238
238
|
[n, r].forEach((h) => {
|
|
239
|
-
const v = [],
|
|
240
|
-
let
|
|
241
|
-
|
|
239
|
+
const v = [], O = h.hFlip, E = h.vFlip;
|
|
240
|
+
let b = h.rotate;
|
|
241
|
+
O ? E ? b += 2 : (v.push(
|
|
242
242
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
243
243
|
), v.push("scale(-1 1)"), o.top = o.left = 0) : E && (v.push(
|
|
244
244
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
245
245
|
), v.push("scale(1 -1)"), o.top = o.left = 0);
|
|
246
246
|
let N;
|
|
247
|
-
switch (
|
|
247
|
+
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
|
248
248
|
case 1:
|
|
249
249
|
N = o.height / 2 + o.top, v.unshift(
|
|
250
250
|
"rotate(90 " + N.toString() + " " + N.toString() + ")"
|
|
@@ -261,14 +261,14 @@ function Do(e, t) {
|
|
|
261
261
|
);
|
|
262
262
|
break;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
b % 2 === 1 && (o.left !== o.top && (N = o.left, o.left = o.top, o.top = N), o.width !== o.height && (N = o.width, o.width = o.height, o.height = N)), v.length && (a = '<g transform="' + v.join(" ") + '">' + a + "</g>");
|
|
265
265
|
});
|
|
266
266
|
const s = r.width, i = r.height, l = o.width, c = o.height;
|
|
267
|
-
let d,
|
|
268
|
-
return s === null ? (
|
|
267
|
+
let d, _;
|
|
268
|
+
return s === null ? (_ = i === null ? "1em" : i === "auto" ? c : i, d = Nt(_, l / c)) : (d = s === "auto" ? l : s, _ = i === null ? Nt(d, c / l) : i === "auto" ? c : i), {
|
|
269
269
|
attributes: {
|
|
270
270
|
width: d.toString(),
|
|
271
|
-
height:
|
|
271
|
+
height: _.toString(),
|
|
272
272
|
viewBox: o.left.toString() + " " + o.top.toString() + " " + l.toString() + " " + c.toString()
|
|
273
273
|
},
|
|
274
274
|
body: a
|
|
@@ -301,7 +301,7 @@ function Fo(e) {
|
|
|
301
301
|
function ko(e) {
|
|
302
302
|
return 'url("data:image/svg+xml,' + Fo(e) + '")';
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const Ot = {
|
|
305
305
|
...un,
|
|
306
306
|
inline: !1
|
|
307
307
|
}, Mo = {
|
|
@@ -315,7 +315,7 @@ const bt = {
|
|
|
315
315
|
backgroundColor: "currentColor"
|
|
316
316
|
}, fn = {
|
|
317
317
|
backgroundColor: "transparent"
|
|
318
|
-
},
|
|
318
|
+
}, bt = {
|
|
319
319
|
Image: "var(--svg)",
|
|
320
320
|
Repeat: "no-repeat",
|
|
321
321
|
Size: "100% 100%"
|
|
@@ -326,8 +326,8 @@ const bt = {
|
|
|
326
326
|
};
|
|
327
327
|
for (const e in Tt) {
|
|
328
328
|
const t = Tt[e];
|
|
329
|
-
for (const n in
|
|
330
|
-
t[e + n] =
|
|
329
|
+
for (const n in bt)
|
|
330
|
+
t[e + n] = bt[n];
|
|
331
331
|
}
|
|
332
332
|
const De = {};
|
|
333
333
|
["horizontal", "vertical"].forEach((e) => {
|
|
@@ -338,11 +338,11 @@ function It(e) {
|
|
|
338
338
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
339
339
|
}
|
|
340
340
|
const Uo = (e, t) => {
|
|
341
|
-
const n =
|
|
342
|
-
for (let
|
|
343
|
-
const E = t[
|
|
341
|
+
const n = bo(Ot, t), r = { ...Mo }, o = t.mode || "svg", a = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
342
|
+
for (let O in t) {
|
|
343
|
+
const E = t[O];
|
|
344
344
|
if (E !== void 0)
|
|
345
|
-
switch (
|
|
345
|
+
switch (O) {
|
|
346
346
|
case "icon":
|
|
347
347
|
case "style":
|
|
348
348
|
case "onLoad":
|
|
@@ -351,7 +351,7 @@ const Uo = (e, t) => {
|
|
|
351
351
|
case "inline":
|
|
352
352
|
case "hFlip":
|
|
353
353
|
case "vFlip":
|
|
354
|
-
n[
|
|
354
|
+
n[O] = E === !0 || E === "true" || E === 1;
|
|
355
355
|
break;
|
|
356
356
|
case "flip":
|
|
357
357
|
typeof E == "string" && Io(n, E);
|
|
@@ -360,15 +360,15 @@ const Uo = (e, t) => {
|
|
|
360
360
|
a.color = E;
|
|
361
361
|
break;
|
|
362
362
|
case "rotate":
|
|
363
|
-
typeof E == "string" ? n[
|
|
363
|
+
typeof E == "string" ? n[O] = Lo(E) : typeof E == "number" && (n[O] = E);
|
|
364
364
|
break;
|
|
365
365
|
case "ariaHidden":
|
|
366
366
|
case "aria-hidden":
|
|
367
367
|
E !== !0 && E !== "true" && delete r["aria-hidden"];
|
|
368
368
|
break;
|
|
369
369
|
default: {
|
|
370
|
-
const
|
|
371
|
-
|
|
370
|
+
const b = De[O];
|
|
371
|
+
b ? (E === !0 || E === "true" || E === 1) && (n[b] = !0) : Ot[O] === void 0 && (r[O] = E);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,12 +378,12 @@ const Uo = (e, t) => {
|
|
|
378
378
|
...a,
|
|
379
379
|
...i
|
|
380
380
|
}, Object.assign(r, c);
|
|
381
|
-
let
|
|
382
|
-
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = wo(l.body, E ? () => E + "ID" +
|
|
381
|
+
let O = 0, E = t.id;
|
|
382
|
+
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = wo(l.body, E ? () => E + "ID" + O++ : "iconifyVue"), Ce("svg", r);
|
|
383
383
|
}
|
|
384
|
-
const { body: d, width:
|
|
384
|
+
const { body: d, width: _, height: f } = e, h = o === "mask" || (o === "bg" ? !1 : d.indexOf("currentColor") !== -1), v = Ro(d, {
|
|
385
385
|
...c,
|
|
386
|
-
width:
|
|
386
|
+
width: _ + "",
|
|
387
387
|
height: f + ""
|
|
388
388
|
});
|
|
389
389
|
return r.style = {
|
|
@@ -409,12 +409,12 @@ const $o = Re({
|
|
|
409
409
|
}, e);
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
|
-
var Wo = Object.defineProperty, xo = Object.defineProperties, Go = Object.getOwnPropertyDescriptors,
|
|
412
|
+
var Wo = Object.defineProperty, xo = Object.defineProperties, Go = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Ho = Object.prototype.hasOwnProperty, jo = Object.prototype.propertyIsEnumerable, St = (e, t, n) => t in e ? Wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yt = (e, t) => {
|
|
413
413
|
for (var n in t || (t = {}))
|
|
414
|
-
Ho.call(t, n) &&
|
|
415
|
-
if (
|
|
416
|
-
for (var n of
|
|
417
|
-
jo.call(t, n) &&
|
|
414
|
+
Ho.call(t, n) && St(e, n, t[n]);
|
|
415
|
+
if (Lt)
|
|
416
|
+
for (var n of Lt(t))
|
|
417
|
+
jo.call(t, n) && St(e, n, t[n]);
|
|
418
418
|
return e;
|
|
419
419
|
}, Bo = (e, t) => xo(e, Go(t)), zo = (e, t, n) => new Promise((r, o) => {
|
|
420
420
|
var a = (l) => {
|
|
@@ -526,9 +526,9 @@ const or = Re({
|
|
|
526
526
|
setup(e) {
|
|
527
527
|
const t = j(), n = on("theme"), r = {
|
|
528
528
|
filterDevice(l) {
|
|
529
|
-
var c, d,
|
|
529
|
+
var c, d, _, f;
|
|
530
530
|
let h = !0;
|
|
531
|
-
(c = e.controlParams) != null && c.searchStr && (h = l.name.indexOf((d = e.controlParams) == null ? void 0 : d.searchStr) >= 0 || l.id.indexOf((
|
|
531
|
+
(c = e.controlParams) != null && c.searchStr && (h = l.name.indexOf((d = e.controlParams) == null ? void 0 : d.searchStr) >= 0 || l.id.indexOf((_ = e.controlParams) == null ? void 0 : _.searchStr) >= 0);
|
|
532
532
|
let v = !0;
|
|
533
533
|
return (f = e.controlParams) != null && f.onlyShowOnline && (v = l.online), h && v;
|
|
534
534
|
},
|
|
@@ -546,12 +546,10 @@ const or = Re({
|
|
|
546
546
|
return d.filter((f) => f.online).concat(d.filter((f) => !f.online));
|
|
547
547
|
})
|
|
548
548
|
}, a = H(() => o.filteredDevices.value.length > 10 ? "400px" : `${o.filteredDevices.value.length * 40}px`), s = H(() => {
|
|
549
|
-
var l, c
|
|
549
|
+
var l, c;
|
|
550
550
|
if (e.controlParams) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
const f = e.controlParams.searchStr;
|
|
554
|
-
return f.length == 0 || e.deviceGroup && ((c = e.deviceGroup) == null ? void 0 : c.name.indexOf(f)) > 0 ? !0 : (d = e.deviceGroup) == null ? void 0 : d.devices.find((h) => h.name.indexOf(e.controlParams.searchStr) >= 0 || h.id.indexOf(e.controlParams.searchStr) >= 0);
|
|
551
|
+
const d = e.controlParams.searchStr;
|
|
552
|
+
return d.length == 0 || e.deviceGroup && ((l = e.deviceGroup) == null ? void 0 : l.name.indexOf(d)) > 0 ? !0 : (c = e.deviceGroup) == null ? void 0 : c.devices.find((_) => _.name.indexOf(e.controlParams.searchStr) >= 0 || _.id.indexOf(e.controlParams.searchStr) >= 0);
|
|
555
553
|
}
|
|
556
554
|
return !1;
|
|
557
555
|
}), i = j(!1);
|
|
@@ -591,20 +589,20 @@ function _r(e, t, n, r, o, a) {
|
|
|
591
589
|
controlParams: e.controlParams,
|
|
592
590
|
ref: "countRef"
|
|
593
591
|
}, {
|
|
594
|
-
default: le(({ online:
|
|
592
|
+
default: le(({ online: _, total: f }) => {
|
|
595
593
|
var h, v;
|
|
596
594
|
return [
|
|
597
595
|
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (x(), J("span", rr, [
|
|
598
596
|
ae(i, {
|
|
599
597
|
icon: e.bShow ? "minus" : "plus",
|
|
600
598
|
width: "20",
|
|
601
|
-
onClick: t[0] || (t[0] = (
|
|
599
|
+
onClick: t[0] || (t[0] = (O) => e.bShow = !e.bShow),
|
|
602
600
|
class: "handle-ls-svg"
|
|
603
601
|
}, null, 8, ["icon"])
|
|
604
602
|
])) : (x(), J("span", sr)),
|
|
605
603
|
G("span", {
|
|
606
604
|
class: "group-head-db-click",
|
|
607
|
-
onDblclick: t[1] || (t[1] = (
|
|
605
|
+
onDblclick: t[1] || (t[1] = (O) => e.bShow = !e.bShow)
|
|
608
606
|
}, [
|
|
609
607
|
ae(i, {
|
|
610
608
|
icon: e.bShow ? "group" : "group-closed",
|
|
@@ -625,9 +623,9 @@ function _r(e, t, n, r, o, a) {
|
|
|
625
623
|
_: 3
|
|
626
624
|
}, 8, ["countInfo", "controlParams"]),
|
|
627
625
|
e.bShow ? (x(), J("div", cr, [
|
|
628
|
-
(x(!0), J(Fe, null, ot((s = e.deviceGroup) == null ? void 0 : s.items, (
|
|
626
|
+
(x(!0), J(Fe, null, ot((s = e.deviceGroup) == null ? void 0 : s.items, (_, f) => (x(), rn(c, {
|
|
629
627
|
key: f,
|
|
630
|
-
deviceGroup:
|
|
628
|
+
deviceGroup: _,
|
|
631
629
|
controlParams: e.controlParams
|
|
632
630
|
}, {
|
|
633
631
|
group: le(({ group: h }) => [
|
|
@@ -649,9 +647,9 @@ function _r(e, t, n, r, o, a) {
|
|
|
649
647
|
"list-data": e.filteredDevices,
|
|
650
648
|
"item-size": 40
|
|
651
649
|
}, {
|
|
652
|
-
default: le(({ data:
|
|
650
|
+
default: le(({ data: _ }) => [
|
|
653
651
|
G("div", {
|
|
654
|
-
class: Et(
|
|
652
|
+
class: Et(_.online && "online-device")
|
|
655
653
|
}, [
|
|
656
654
|
ae(i, {
|
|
657
655
|
icon: "user",
|
|
@@ -659,12 +657,12 @@ function _r(e, t, n, r, o, a) {
|
|
|
659
657
|
class: "device-avatar"
|
|
660
658
|
}),
|
|
661
659
|
G("span", {
|
|
662
|
-
title:
|
|
660
|
+
title: _.id,
|
|
663
661
|
class: "device-name"
|
|
664
|
-
}, ge(e.innerUtils.deviceText(
|
|
662
|
+
}, ge(e.innerUtils.deviceText(_)), 9, ur),
|
|
665
663
|
G("div", fr, [
|
|
666
664
|
oe(e.$slots, "device", {
|
|
667
|
-
device:
|
|
665
|
+
device: _,
|
|
668
666
|
group: e.deviceGroup
|
|
669
667
|
}, void 0, !0)
|
|
670
668
|
])
|
|
@@ -676,7 +674,7 @@ function _r(e, t, n, r, o, a) {
|
|
|
676
674
|
])) : xe("", !0)
|
|
677
675
|
], 2)) : xe("", !0);
|
|
678
676
|
}
|
|
679
|
-
const mr = /* @__PURE__ */ ke(or, [["render", _r], ["__scopeId", "data-v-
|
|
677
|
+
const mr = /* @__PURE__ */ ke(or, [["render", _r], ["__scopeId", "data-v-6dae84d2"]]), dr = {
|
|
680
678
|
width: 1024,
|
|
681
679
|
height: 1024,
|
|
682
680
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
@@ -718,7 +716,7 @@ const Nr = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
718
716
|
function at(e, ...t) {
|
|
719
717
|
return t.length === 1 && y(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Nr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
720
718
|
}
|
|
721
|
-
const
|
|
719
|
+
const Or = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", te = (e) => Or ? Symbol(e) : e, br = (e, t, n) => Tr({ l: e, k: t, s: n }), Tr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), F = (e) => typeof e == "number" && isFinite(e), Ir = (e) => ct(e) === "[object Date]", Pe = (e) => ct(e) === "[object RegExp]", Me = (e) => I(e) && Object.keys(e).length === 0;
|
|
722
720
|
function Ee(e, t) {
|
|
723
721
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
724
722
|
}
|
|
@@ -728,11 +726,11 @@ const lt = () => At || (At = typeof globalThis < "u" ? globalThis : typeof self
|
|
|
728
726
|
function Pt(e) {
|
|
729
727
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
730
728
|
}
|
|
731
|
-
const
|
|
729
|
+
const Lr = Object.prototype.hasOwnProperty;
|
|
732
730
|
function it(e, t) {
|
|
733
|
-
return
|
|
731
|
+
return Lr.call(e, t);
|
|
734
732
|
}
|
|
735
|
-
const P = Array.isArray, R = (e) => typeof e == "function", p = (e) => typeof e == "string", A = (e) => typeof e == "boolean", y = (e) => e !== null && typeof e == "object", mn = Object.prototype.toString, ct = (e) => mn.call(e), I = (e) => ct(e) === "[object Object]",
|
|
733
|
+
const P = Array.isArray, R = (e) => typeof e == "function", p = (e) => typeof e == "string", A = (e) => typeof e == "boolean", y = (e) => e !== null && typeof e == "object", mn = Object.prototype.toString, ct = (e) => mn.call(e), I = (e) => ct(e) === "[object Object]", Sr = (e) => e == null ? "" : P(e) || I(e) && e.toString === mn ? JSON.stringify(e, null, 2) : String(e), wt = 2;
|
|
736
734
|
function yr(e, t = 0, n = e.length) {
|
|
737
735
|
const r = e.split(/\r?\n/);
|
|
738
736
|
let o = 0;
|
|
@@ -746,8 +744,8 @@ function yr(e, t = 0, n = e.length) {
|
|
|
746
744
|
a.push(`${l}${" ".repeat(3 - String(l).length)}| ${r[i]}`);
|
|
747
745
|
const c = r[i].length;
|
|
748
746
|
if (i === s) {
|
|
749
|
-
const d = t - (o - c) + 1,
|
|
750
|
-
a.push(" | " + " ".repeat(d) + "^".repeat(
|
|
747
|
+
const d = t - (o - c) + 1, _ = Math.max(1, n > o ? c - d : n - t);
|
|
748
|
+
a.push(" | " + " ".repeat(d) + "^".repeat(_));
|
|
751
749
|
} else if (i > s) {
|
|
752
750
|
if (n > o) {
|
|
753
751
|
const d = Math.max(Math.min(n - o, c), 1);
|
|
@@ -919,7 +917,7 @@ function Rr(e) {
|
|
|
919
917
|
}
|
|
920
918
|
function Fr(e) {
|
|
921
919
|
const t = [];
|
|
922
|
-
let n = -1, r = 0, o = 0, a, s, i, l, c, d,
|
|
920
|
+
let n = -1, r = 0, o = 0, a, s, i, l, c, d, _;
|
|
923
921
|
const f = [];
|
|
924
922
|
f[0] = () => {
|
|
925
923
|
s === void 0 ? s = i : s += i;
|
|
@@ -943,7 +941,7 @@ function Fr(e) {
|
|
|
943
941
|
}
|
|
944
942
|
for (; r !== null; )
|
|
945
943
|
if (n++, a = e[n], !(a === "\\" && h())) {
|
|
946
|
-
if (l = wr(a),
|
|
944
|
+
if (l = wr(a), _ = re[r], c = _[l] || _.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (d = f[c[1]], d && (i = a, d() === !1))))
|
|
947
945
|
return;
|
|
948
946
|
if (r === 7)
|
|
949
947
|
return t;
|
|
@@ -969,7 +967,7 @@ function Mr(e, t) {
|
|
|
969
967
|
}
|
|
970
968
|
return o;
|
|
971
969
|
}
|
|
972
|
-
const Vr = (e) => e, Ur = (e) => "", $r = "text", Wr = (e) => e.length === 0 ? "" : e.join(""), xr =
|
|
970
|
+
const Vr = (e) => e, Ur = (e) => "", $r = "text", Wr = (e) => e.length === 0 ? "" : e.join(""), xr = Sr;
|
|
973
971
|
function Ft(e, t) {
|
|
974
972
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
975
973
|
}
|
|
@@ -981,23 +979,23 @@ function Hr(e, t) {
|
|
|
981
979
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
982
980
|
}
|
|
983
981
|
function jr(e = {}) {
|
|
984
|
-
const t = e.locale, n = Gr(e), r = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : Ft, o = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? Ft : void 0, a = (
|
|
982
|
+
const t = e.locale, n = Gr(e), r = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? e.pluralRules[t] : Ft, o = y(e.pluralRules) && p(t) && R(e.pluralRules[t]) ? Ft : void 0, a = (b) => b[r(n, b.length, o)], s = e.list || [], i = (b) => s[b], l = e.named || {};
|
|
985
983
|
F(e.pluralIndex) && Hr(n, l);
|
|
986
|
-
const c = (
|
|
987
|
-
function d(
|
|
988
|
-
const N = R(e.messages) ? e.messages(
|
|
989
|
-
return N || (e.parent ? e.parent.message(
|
|
984
|
+
const c = (b) => l[b];
|
|
985
|
+
function d(b) {
|
|
986
|
+
const N = R(e.messages) ? e.messages(b) : y(e.messages) ? e.messages[b] : !1;
|
|
987
|
+
return N || (e.parent ? e.parent.message(b) : Ur);
|
|
990
988
|
}
|
|
991
|
-
const
|
|
989
|
+
const _ = (b) => e.modifiers ? e.modifiers[b] : Vr, f = I(e.processor) && R(e.processor.normalize) ? e.processor.normalize : Wr, h = I(e.processor) && R(e.processor.interpolate) ? e.processor.interpolate : xr, v = I(e.processor) && p(e.processor.type) ? e.processor.type : $r, E = {
|
|
992
990
|
list: i,
|
|
993
991
|
named: c,
|
|
994
992
|
plural: a,
|
|
995
|
-
linked: (
|
|
996
|
-
const [
|
|
993
|
+
linked: (b, ...N) => {
|
|
994
|
+
const [S, T] = N;
|
|
997
995
|
let g = "text", D = "";
|
|
998
|
-
N.length === 1 ? y(
|
|
999
|
-
let
|
|
1000
|
-
return g === "vnode" && P(
|
|
996
|
+
N.length === 1 ? y(S) ? (D = S.modifier || D, g = S.type || g) : p(S) && (D = S || D) : N.length === 2 && (p(S) && (D = S || D), p(T) && (g = T || g));
|
|
997
|
+
let L = d(b)(E);
|
|
998
|
+
return g === "vnode" && P(L) && D && (L = L[0]), D ? _(D)(L, g) : L;
|
|
1001
999
|
},
|
|
1002
1000
|
message: d,
|
|
1003
1001
|
type: v,
|
|
@@ -1006,12 +1004,12 @@ function jr(e = {}) {
|
|
|
1006
1004
|
};
|
|
1007
1005
|
return E;
|
|
1008
1006
|
}
|
|
1009
|
-
let
|
|
1007
|
+
let Oe = null;
|
|
1010
1008
|
function Br(e) {
|
|
1011
|
-
|
|
1009
|
+
Oe = e;
|
|
1012
1010
|
}
|
|
1013
1011
|
function zr(e, t, n) {
|
|
1014
|
-
|
|
1012
|
+
Oe && Oe.emit(pn.I18nInit, {
|
|
1015
1013
|
timestamp: Date.now(),
|
|
1016
1014
|
i18n: e,
|
|
1017
1015
|
version: t,
|
|
@@ -1020,7 +1018,7 @@ function zr(e, t, n) {
|
|
|
1020
1018
|
}
|
|
1021
1019
|
const Yr = /* @__PURE__ */ Kr(pn.FunctionTranslate);
|
|
1022
1020
|
function Kr(e) {
|
|
1023
|
-
return (t) =>
|
|
1021
|
+
return (t) => Oe && Oe.emit(e, t);
|
|
1024
1022
|
}
|
|
1025
1023
|
const z = {
|
|
1026
1024
|
NOT_FOUND_KEY: 1,
|
|
@@ -1107,13 +1105,13 @@ let Nn = null;
|
|
|
1107
1105
|
const Vt = (e) => {
|
|
1108
1106
|
Nn = e;
|
|
1109
1107
|
}, rs = () => Nn;
|
|
1110
|
-
let
|
|
1108
|
+
let On = null;
|
|
1111
1109
|
const Ut = (e) => {
|
|
1112
|
-
|
|
1113
|
-
}, ss = () =>
|
|
1110
|
+
On = e;
|
|
1111
|
+
}, ss = () => On;
|
|
1114
1112
|
let $t = 0;
|
|
1115
1113
|
function as(e = {}) {
|
|
1116
|
-
const t = p(e.version) ? e.version : Zr, n = p(e.locale) ? e.locale : ut, r = P(e.fallbackLocale) || I(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = I(e.messages) ? e.messages : { [n]: {} }, a = I(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = I(e.numberFormats) ? e.numberFormats : { [n]: {} }, i = U({}, e.modifiers || {}, es()), l = e.pluralRules || {}, c = R(e.missing) ? e.missing : null, d = A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0,
|
|
1114
|
+
const t = p(e.version) ? e.version : Zr, n = p(e.locale) ? e.locale : ut, r = P(e.fallbackLocale) || I(e.fallbackLocale) || p(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = I(e.messages) ? e.messages : { [n]: {} }, a = I(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = I(e.numberFormats) ? e.numberFormats : { [n]: {} }, i = U({}, e.modifiers || {}, es()), l = e.pluralRules || {}, c = R(e.missing) ? e.missing : null, d = A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = !!e.fallbackFormat, h = !!e.unresolving, v = R(e.postTranslation) ? e.postTranslation : null, O = I(e.processor) ? e.processor : null, E = A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, N = R(e.messageCompiler) ? e.messageCompiler : ts, S = R(e.messageResolver) ? e.messageResolver : En || kr, T = R(e.localeFallbacker) ? e.localeFallbacker : vn || Qr, g = y(e.fallbackContext) ? e.fallbackContext : void 0, D = R(e.onWarn) ? e.onWarn : Ee, L = e, k = y(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), B = y(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), X = y(L.__meta) ? L.__meta : {};
|
|
1117
1115
|
$t++;
|
|
1118
1116
|
const Q = {
|
|
1119
1117
|
version: t,
|
|
@@ -1125,26 +1123,26 @@ function as(e = {}) {
|
|
|
1125
1123
|
pluralRules: l,
|
|
1126
1124
|
missing: c,
|
|
1127
1125
|
missingWarn: d,
|
|
1128
|
-
fallbackWarn:
|
|
1126
|
+
fallbackWarn: _,
|
|
1129
1127
|
fallbackFormat: f,
|
|
1130
1128
|
unresolving: h,
|
|
1131
1129
|
postTranslation: v,
|
|
1132
|
-
processor:
|
|
1130
|
+
processor: O,
|
|
1133
1131
|
warnHtmlMessage: E,
|
|
1134
|
-
escapeParameter:
|
|
1132
|
+
escapeParameter: b,
|
|
1135
1133
|
messageCompiler: N,
|
|
1136
|
-
messageResolver:
|
|
1134
|
+
messageResolver: S,
|
|
1137
1135
|
localeFallbacker: T,
|
|
1138
1136
|
fallbackContext: g,
|
|
1139
1137
|
onWarn: D,
|
|
1140
1138
|
__meta: X
|
|
1141
1139
|
};
|
|
1142
|
-
return Q.datetimeFormats = a, Q.numberFormats = s, Q.__datetimeFormatters = k, Q.__numberFormatters = B, process.env.NODE_ENV !== "production" && (Q.__v_emitter =
|
|
1140
|
+
return Q.datetimeFormats = a, Q.numberFormats = s, Q.__datetimeFormatters = k, Q.__numberFormatters = B, process.env.NODE_ENV !== "production" && (Q.__v_emitter = L.__v_emitter != null ? L.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && zr(Q, t, X), Q;
|
|
1143
1141
|
}
|
|
1144
1142
|
function Ue(e, t) {
|
|
1145
1143
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1146
1144
|
}
|
|
1147
|
-
function
|
|
1145
|
+
function bn(e, t) {
|
|
1148
1146
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1149
1147
|
}
|
|
1150
1148
|
function ft(e, t, n, r, o) {
|
|
@@ -1162,7 +1160,7 @@ function ft(e, t, n, r, o) {
|
|
|
1162
1160
|
const i = a(e, n, t, o);
|
|
1163
1161
|
return p(i) ? i : t;
|
|
1164
1162
|
} else
|
|
1165
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1163
|
+
return process.env.NODE_ENV !== "production" && bn(r, t) && s(pe(z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1166
1164
|
}
|
|
1167
1165
|
function ve(e, t, n) {
|
|
1168
1166
|
const r = e;
|
|
@@ -1184,24 +1182,24 @@ const ls = {
|
|
|
1184
1182
|
[ne.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1185
1183
|
}, Wt = () => "", Z = (e) => R(e);
|
|
1186
1184
|
function xt(e, ...t) {
|
|
1187
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: i } = e, [l, c] = ze(...t), d = A(c.missingWarn) ? c.missingWarn : e.missingWarn,
|
|
1185
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: i } = e, [l, c] = ze(...t), d = A(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = A(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, f = A(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, h = !!c.resolvedMessage, v = p(c.default) || A(c.default) ? A(c.default) ? a ? l : () => l : c.default : n ? a ? l : () => l : "", O = n || v !== "", E = p(c.locale) ? c.locale : e.locale;
|
|
1188
1186
|
f && is(c);
|
|
1189
|
-
let [
|
|
1187
|
+
let [b, N, S] = h ? [
|
|
1190
1188
|
l,
|
|
1191
1189
|
E,
|
|
1192
1190
|
i[E] || {}
|
|
1193
|
-
] : In(e, l, E, s,
|
|
1194
|
-
if (!h && !(p(T) || Z(T)) &&
|
|
1191
|
+
] : In(e, l, E, s, _, d), T = b, g = l;
|
|
1192
|
+
if (!h && !(p(T) || Z(T)) && O && (T = v, g = T), !h && (!(p(T) || Z(T)) || !p(N)))
|
|
1195
1193
|
return o ? Ve : l;
|
|
1196
1194
|
if (process.env.NODE_ENV !== "production" && p(T) && e.messageCompiler == null)
|
|
1197
1195
|
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 '${l}'.`), l;
|
|
1198
1196
|
let D = !1;
|
|
1199
|
-
const
|
|
1197
|
+
const L = () => {
|
|
1200
1198
|
D = !0;
|
|
1201
|
-
}, k = Z(T) ? T :
|
|
1199
|
+
}, k = Z(T) ? T : Ln(e, l, N, T, g, L);
|
|
1202
1200
|
if (D)
|
|
1203
1201
|
return T;
|
|
1204
|
-
const B = fs(e, N,
|
|
1202
|
+
const B = fs(e, N, S, c), X = jr(B), Q = cs(e, k, X), Te = r ? r(Q, l) : Q;
|
|
1205
1203
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1206
1204
|
const Ie = {
|
|
1207
1205
|
timestamp: Date.now(),
|
|
@@ -1221,10 +1219,10 @@ function is(e) {
|
|
|
1221
1219
|
}
|
|
1222
1220
|
function In(e, t, n, r, o, a) {
|
|
1223
1221
|
const { messages: s, onWarn: i, messageResolver: l, localeFallbacker: c } = e, d = c(e, r, n);
|
|
1224
|
-
let
|
|
1222
|
+
let _ = {}, f, h = null, v = n, O = null;
|
|
1225
1223
|
const E = "translate";
|
|
1226
|
-
for (let
|
|
1227
|
-
if (f =
|
|
1224
|
+
for (let b = 0; b < d.length; b++) {
|
|
1225
|
+
if (f = O = d[b], process.env.NODE_ENV !== "production" && n !== f && Ue(o, t) && i(pe(z.FALLBACK_TO_TRANSLATE, {
|
|
1228
1226
|
key: t,
|
|
1229
1227
|
target: f
|
|
1230
1228
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -1233,21 +1231,21 @@ function In(e, t, n, r, o, a) {
|
|
|
1233
1231
|
type: E,
|
|
1234
1232
|
key: t,
|
|
1235
1233
|
from: v,
|
|
1236
|
-
to:
|
|
1234
|
+
to: O,
|
|
1237
1235
|
groupId: `${E}:${t}`
|
|
1238
1236
|
});
|
|
1239
1237
|
}
|
|
1240
|
-
|
|
1241
|
-
let N = null,
|
|
1242
|
-
if (process.env.NODE_ENV !== "production" && ee && (N = window.performance.now(),
|
|
1243
|
-
const D = window.performance.now(),
|
|
1244
|
-
|
|
1238
|
+
_ = s[f] || {};
|
|
1239
|
+
let N = null, S, T;
|
|
1240
|
+
if (process.env.NODE_ENV !== "production" && ee && (N = window.performance.now(), S = "intlify-message-resolve-start", T = "intlify-message-resolve-end", Y && Y(S)), (h = l(_, t)) === null && (h = _[t]), process.env.NODE_ENV !== "production" && ee) {
|
|
1241
|
+
const D = window.performance.now(), L = e.__v_emitter;
|
|
1242
|
+
L && N && h && L.emit("message-resolve", {
|
|
1245
1243
|
type: "message-resolve",
|
|
1246
1244
|
key: t,
|
|
1247
1245
|
message: h,
|
|
1248
1246
|
time: D - N,
|
|
1249
1247
|
groupId: `${E}:${t}`
|
|
1250
|
-
}),
|
|
1248
|
+
}), S && T && Y && ie && (Y(T), ie("intlify message resolve", S, T));
|
|
1251
1249
|
}
|
|
1252
1250
|
if (p(h) || R(h))
|
|
1253
1251
|
break;
|
|
@@ -1258,11 +1256,11 @@ function In(e, t, n, r, o, a) {
|
|
|
1258
1256
|
a,
|
|
1259
1257
|
E
|
|
1260
1258
|
);
|
|
1261
|
-
g !== t && (h = g), v =
|
|
1259
|
+
g !== t && (h = g), v = O;
|
|
1262
1260
|
}
|
|
1263
|
-
return [h, f,
|
|
1261
|
+
return [h, f, _];
|
|
1264
1262
|
}
|
|
1265
|
-
function
|
|
1263
|
+
function Ln(e, t, n, r, o, a) {
|
|
1266
1264
|
const { messageCompiler: s, warnHtmlMessage: i } = e;
|
|
1267
1265
|
if (Z(r)) {
|
|
1268
1266
|
const f = r;
|
|
@@ -1274,7 +1272,7 @@ function Sn(e, t, n, r, o, a) {
|
|
|
1274
1272
|
}
|
|
1275
1273
|
let l = null, c, d;
|
|
1276
1274
|
process.env.NODE_ENV !== "production" && ee && (l = window.performance.now(), c = "intlify-message-compilation-start", d = "intlify-message-compilation-end", Y && Y(c));
|
|
1277
|
-
const
|
|
1275
|
+
const _ = s(r, us(e, n, o, r, i, a));
|
|
1278
1276
|
if (process.env.NODE_ENV !== "production" && ee) {
|
|
1279
1277
|
const f = window.performance.now(), h = e.__v_emitter;
|
|
1280
1278
|
h && l && h.emit("message-compilation", {
|
|
@@ -1284,7 +1282,7 @@ function Sn(e, t, n, r, o, a) {
|
|
|
1284
1282
|
groupId: `translate:${t}`
|
|
1285
1283
|
}), c && d && Y && ie && (Y(d), ie("intlify message compilation", c, d));
|
|
1286
1284
|
}
|
|
1287
|
-
return
|
|
1285
|
+
return _.locale = n, _.key = t, _.source = r, _;
|
|
1288
1286
|
}
|
|
1289
1287
|
function cs(e, t, n) {
|
|
1290
1288
|
let r = null, o, a;
|
|
@@ -1325,7 +1323,7 @@ ${l}` : i);
|
|
|
1325
1323
|
} else
|
|
1326
1324
|
throw s;
|
|
1327
1325
|
},
|
|
1328
|
-
onCacheKey: (s) =>
|
|
1326
|
+
onCacheKey: (s) => br(t, n, s)
|
|
1329
1327
|
};
|
|
1330
1328
|
}
|
|
1331
1329
|
function fs(e, t, n, r) {
|
|
@@ -1336,43 +1334,43 @@ function fs(e, t, n, r) {
|
|
|
1336
1334
|
messages: (h) => {
|
|
1337
1335
|
let v = s(n, h);
|
|
1338
1336
|
if (v == null && d) {
|
|
1339
|
-
const [, ,
|
|
1340
|
-
v = s(
|
|
1337
|
+
const [, , O] = In(d, h, t, i, l, c);
|
|
1338
|
+
v = s(O, h);
|
|
1341
1339
|
}
|
|
1342
1340
|
if (p(v)) {
|
|
1343
|
-
let
|
|
1344
|
-
const
|
|
1345
|
-
|
|
1341
|
+
let O = !1;
|
|
1342
|
+
const b = Ln(e, h, t, v, h, () => {
|
|
1343
|
+
O = !0;
|
|
1346
1344
|
});
|
|
1347
|
-
return
|
|
1345
|
+
return O ? Wt : b;
|
|
1348
1346
|
} else
|
|
1349
1347
|
return Z(v) ? v : Wt;
|
|
1350
1348
|
}
|
|
1351
1349
|
};
|
|
1352
1350
|
return e.processor && (f.processor = e.processor), r.list && (f.list = r.list), r.named && (f.named = r.named), F(r.plural) && (f.pluralIndex = r.plural), f;
|
|
1353
1351
|
}
|
|
1354
|
-
const Gt = typeof Intl < "u",
|
|
1352
|
+
const Gt = typeof Intl < "u", Sn = {
|
|
1355
1353
|
dateTimeFormat: Gt && typeof Intl.DateTimeFormat < "u",
|
|
1356
1354
|
numberFormat: Gt && typeof Intl.NumberFormat < "u"
|
|
1357
1355
|
};
|
|
1358
1356
|
function Ht(e, ...t) {
|
|
1359
1357
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: i } = e;
|
|
1360
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1358
|
+
if (process.env.NODE_ENV !== "production" && !Sn.dateTimeFormat)
|
|
1361
1359
|
return a(pe(z.CANNOT_FORMAT_DATE)), we;
|
|
1362
|
-
const [l, c, d,
|
|
1360
|
+
const [l, c, d, _] = Ye(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, O = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1363
1361
|
e,
|
|
1364
1362
|
o,
|
|
1365
|
-
|
|
1363
|
+
O
|
|
1366
1364
|
);
|
|
1367
1365
|
if (!p(l) || l === "")
|
|
1368
|
-
return new Intl.DateTimeFormat(
|
|
1369
|
-
let
|
|
1366
|
+
return new Intl.DateTimeFormat(O, _).format(c);
|
|
1367
|
+
let b = {}, N, S = null, T = O, g = null;
|
|
1370
1368
|
const D = "datetime format";
|
|
1371
1369
|
for (let B = 0; B < E.length; B++) {
|
|
1372
|
-
if (N = g = E[B], process.env.NODE_ENV !== "production" &&
|
|
1370
|
+
if (N = g = E[B], process.env.NODE_ENV !== "production" && O !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_DATE_FORMAT, {
|
|
1373
1371
|
key: l,
|
|
1374
1372
|
target: N
|
|
1375
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1373
|
+
})), process.env.NODE_ENV !== "production" && O !== N) {
|
|
1376
1374
|
const X = e.__v_emitter;
|
|
1377
1375
|
X && X.emit("fallback", {
|
|
1378
1376
|
type: D,
|
|
@@ -1382,16 +1380,16 @@ function Ht(e, ...t) {
|
|
|
1382
1380
|
groupId: `${D}:${l}`
|
|
1383
1381
|
});
|
|
1384
1382
|
}
|
|
1385
|
-
if (
|
|
1383
|
+
if (b = n[N] || {}, S = b[l], I(S))
|
|
1386
1384
|
break;
|
|
1387
1385
|
ft(e, l, N, f, D), T = g;
|
|
1388
1386
|
}
|
|
1389
|
-
if (!I(
|
|
1387
|
+
if (!I(S) || !p(N))
|
|
1390
1388
|
return r ? Ve : l;
|
|
1391
|
-
let
|
|
1392
|
-
Me(
|
|
1393
|
-
let k = i.get(
|
|
1394
|
-
return k || (k = new Intl.DateTimeFormat(N, U({},
|
|
1389
|
+
let L = `${N}__${l}`;
|
|
1390
|
+
Me(_) || (L = `${L}__${JSON.stringify(_)}`);
|
|
1391
|
+
let k = i.get(L);
|
|
1392
|
+
return k || (k = new Intl.DateTimeFormat(N, U({}, S, _)), i.set(L, k)), v ? k.formatToParts(c) : k.format(c);
|
|
1395
1393
|
}
|
|
1396
1394
|
const yn = [
|
|
1397
1395
|
"localeMatcher",
|
|
@@ -1450,22 +1448,22 @@ function jt(e, t, n) {
|
|
|
1450
1448
|
}
|
|
1451
1449
|
function Bt(e, ...t) {
|
|
1452
1450
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: i } = e;
|
|
1453
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1451
|
+
if (process.env.NODE_ENV !== "production" && !Sn.numberFormat)
|
|
1454
1452
|
return a(pe(z.CANNOT_FORMAT_NUMBER)), we;
|
|
1455
|
-
const [l, c, d,
|
|
1453
|
+
const [l, c, d, _] = Ke(...t), f = A(d.missingWarn) ? d.missingWarn : e.missingWarn, h = A(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, v = !!d.part, O = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1456
1454
|
e,
|
|
1457
1455
|
o,
|
|
1458
|
-
|
|
1456
|
+
O
|
|
1459
1457
|
);
|
|
1460
1458
|
if (!p(l) || l === "")
|
|
1461
|
-
return new Intl.NumberFormat(
|
|
1462
|
-
let
|
|
1459
|
+
return new Intl.NumberFormat(O, _).format(c);
|
|
1460
|
+
let b = {}, N, S = null, T = O, g = null;
|
|
1463
1461
|
const D = "number format";
|
|
1464
1462
|
for (let B = 0; B < E.length; B++) {
|
|
1465
|
-
if (N = g = E[B], process.env.NODE_ENV !== "production" &&
|
|
1463
|
+
if (N = g = E[B], process.env.NODE_ENV !== "production" && O !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1466
1464
|
key: l,
|
|
1467
1465
|
target: N
|
|
1468
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1466
|
+
})), process.env.NODE_ENV !== "production" && O !== N) {
|
|
1469
1467
|
const X = e.__v_emitter;
|
|
1470
1468
|
X && X.emit("fallback", {
|
|
1471
1469
|
type: D,
|
|
@@ -1475,16 +1473,16 @@ function Bt(e, ...t) {
|
|
|
1475
1473
|
groupId: `${D}:${l}`
|
|
1476
1474
|
});
|
|
1477
1475
|
}
|
|
1478
|
-
if (
|
|
1476
|
+
if (b = n[N] || {}, S = b[l], I(S))
|
|
1479
1477
|
break;
|
|
1480
1478
|
ft(e, l, N, f, D), T = g;
|
|
1481
1479
|
}
|
|
1482
|
-
if (!I(
|
|
1480
|
+
if (!I(S) || !p(N))
|
|
1483
1481
|
return r ? Ve : l;
|
|
1484
|
-
let
|
|
1485
|
-
Me(
|
|
1486
|
-
let k = i.get(
|
|
1487
|
-
return k || (k = new Intl.NumberFormat(N, U({},
|
|
1482
|
+
let L = `${N}__${l}`;
|
|
1483
|
+
Me(_) || (L = `${L}__${JSON.stringify(_)}`);
|
|
1484
|
+
let k = i.get(L);
|
|
1485
|
+
return k || (k = new Intl.NumberFormat(N, U({}, S, _)), i.set(L, k)), v ? k.formatToParts(c) : k.format(c);
|
|
1488
1486
|
}
|
|
1489
1487
|
const Dn = [
|
|
1490
1488
|
"localeMatcher",
|
|
@@ -1627,7 +1625,7 @@ const He = {
|
|
|
1627
1625
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
1628
1626
|
}, Ns = {
|
|
1629
1627
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1630
|
-
},
|
|
1628
|
+
}, Os = {
|
|
1631
1629
|
["vue-i18n-timeline"]: 16764185
|
|
1632
1630
|
};
|
|
1633
1631
|
/*!
|
|
@@ -1635,7 +1633,7 @@ const He = {
|
|
|
1635
1633
|
* (c) 2022 kazuya kawaguchi
|
|
1636
1634
|
* Released under the MIT License.
|
|
1637
1635
|
*/
|
|
1638
|
-
const
|
|
1636
|
+
const bs = "9.2.2";
|
|
1639
1637
|
function Ts() {
|
|
1640
1638
|
let e = !1;
|
|
1641
1639
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (lt().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
@@ -1680,9 +1678,9 @@ const W = () => ++Pn, C = {
|
|
|
1680
1678
|
__EXTEND_POINT__: W()
|
|
1681
1679
|
};
|
|
1682
1680
|
function K(e, ...t) {
|
|
1683
|
-
return gn(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1681
|
+
return gn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ls, args: t } : void 0);
|
|
1684
1682
|
}
|
|
1685
|
-
const
|
|
1683
|
+
const Ls = {
|
|
1686
1684
|
[C.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1687
1685
|
[C.INVALID_ARGUMENT]: "Invalid argument",
|
|
1688
1686
|
[C.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -1697,7 +1695,7 @@ const Ss = {
|
|
|
1697
1695
|
[C.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
1698
1696
|
[C.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
|
1699
1697
|
[C.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1700
|
-
}, Qe = /* @__PURE__ */ te("__transrateVNode"), Je = /* @__PURE__ */ te("__datetimeParts"), qe = /* @__PURE__ */ te("__numberParts"),
|
|
1698
|
+
}, Qe = /* @__PURE__ */ te("__transrateVNode"), Je = /* @__PURE__ */ te("__datetimeParts"), qe = /* @__PURE__ */ te("__numberParts"), be = /* @__PURE__ */ te("__enableEmitter"), Ze = /* @__PURE__ */ te("__disableEmitter"), Ss = te("__setPluralRules");
|
|
1701
1699
|
te("__intlifyMeta");
|
|
1702
1700
|
const ys = /* @__PURE__ */ te("__injectWithOption");
|
|
1703
1701
|
function et(e) {
|
|
@@ -1729,12 +1727,12 @@ function wn(e, t) {
|
|
|
1729
1727
|
it(s, i) && et(s[i]);
|
|
1730
1728
|
return s;
|
|
1731
1729
|
}
|
|
1732
|
-
const
|
|
1730
|
+
const Se = (e) => !y(e) || P(e);
|
|
1733
1731
|
function Ne(e, t) {
|
|
1734
|
-
if (
|
|
1732
|
+
if (Se(e) || Se(t))
|
|
1735
1733
|
throw K(C.INVALID_VALUE);
|
|
1736
1734
|
for (const n in e)
|
|
1737
|
-
it(e, n) && (
|
|
1735
|
+
it(e, n) && (Se(e[n]) || Se(t[n]) ? t[n] = e[n] : Ne(e[n], t[n]));
|
|
1738
1736
|
}
|
|
1739
1737
|
function Rn(e) {
|
|
1740
1738
|
return e.type;
|
|
@@ -1785,34 +1783,34 @@ function Fn(e = {}, t) {
|
|
|
1785
1783
|
), s = j(
|
|
1786
1784
|
n && o ? n.fallbackLocale.value : p(e.fallbackLocale) || P(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1787
1785
|
), i = j(wn(a.value, e)), l = j(I(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = j(I(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1788
|
-
let d = n ? n.missingWarn : A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0,
|
|
1789
|
-
const
|
|
1786
|
+
let d = n ? n.missingWarn : A(e.missingWarn) || Pe(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Pe(e.fallbackWarn) ? e.fallbackWarn : !0, f = n ? n.fallbackRoot : A(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, v = R(e.missing) ? e.missing : null, O = R(e.missing) ? Qt(e.missing) : null, E = R(e.postTranslation) ? e.postTranslation : null, b = n ? n.warnHtmlMessage : A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter;
|
|
1787
|
+
const S = n ? n.modifiers : I(e.modifiers) ? e.modifiers : {};
|
|
1790
1788
|
let T = e.pluralRules || n && n.pluralRules, g;
|
|
1791
1789
|
g = (() => {
|
|
1792
1790
|
r && Ut(null);
|
|
1793
1791
|
const u = {
|
|
1794
|
-
version:
|
|
1792
|
+
version: bs,
|
|
1795
1793
|
locale: a.value,
|
|
1796
1794
|
fallbackLocale: s.value,
|
|
1797
1795
|
messages: i.value,
|
|
1798
|
-
modifiers:
|
|
1796
|
+
modifiers: S,
|
|
1799
1797
|
pluralRules: T,
|
|
1800
|
-
missing:
|
|
1798
|
+
missing: O === null ? void 0 : O,
|
|
1801
1799
|
missingWarn: d,
|
|
1802
|
-
fallbackWarn:
|
|
1800
|
+
fallbackWarn: _,
|
|
1803
1801
|
fallbackFormat: h,
|
|
1804
1802
|
unresolving: !0,
|
|
1805
1803
|
postTranslation: E === null ? void 0 : E,
|
|
1806
|
-
warnHtmlMessage:
|
|
1804
|
+
warnHtmlMessage: b,
|
|
1807
1805
|
escapeParameter: N,
|
|
1808
1806
|
messageResolver: e.messageResolver,
|
|
1809
1807
|
__meta: { framework: "vue" }
|
|
1810
1808
|
};
|
|
1811
1809
|
u.datetimeFormats = l.value, u.numberFormats = c.value, u.__datetimeFormatters = I(g) ? g.__datetimeFormatters : void 0, u.__numberFormatters = I(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (u.__v_emitter = I(g) ? g.__v_emitter : void 0);
|
|
1812
|
-
const
|
|
1813
|
-
return r && Ut(
|
|
1810
|
+
const m = as(u);
|
|
1811
|
+
return r && Ut(m), m;
|
|
1814
1812
|
})(), ve(g, a.value, s.value);
|
|
1815
|
-
function
|
|
1813
|
+
function L() {
|
|
1816
1814
|
return [
|
|
1817
1815
|
a.value,
|
|
1818
1816
|
s.value,
|
|
@@ -1842,13 +1840,13 @@ function Fn(e = {}, t) {
|
|
|
1842
1840
|
return v;
|
|
1843
1841
|
}
|
|
1844
1842
|
function Gn(u) {
|
|
1845
|
-
u !== null && (
|
|
1843
|
+
u !== null && (O = Qt(u)), v = u, g.missing = O;
|
|
1846
1844
|
}
|
|
1847
|
-
function Hn(u,
|
|
1848
|
-
return u !== "translate" || !
|
|
1845
|
+
function Hn(u, m) {
|
|
1846
|
+
return u !== "translate" || !m.resolvedMessage;
|
|
1849
1847
|
}
|
|
1850
|
-
const ce = (u,
|
|
1851
|
-
|
|
1848
|
+
const ce = (u, m, $, V, We, Le) => {
|
|
1849
|
+
L();
|
|
1852
1850
|
let ue;
|
|
1853
1851
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1854
1852
|
try {
|
|
@@ -1859,8 +1857,8 @@ function Fn(e = {}, t) {
|
|
|
1859
1857
|
else
|
|
1860
1858
|
ue = u(g);
|
|
1861
1859
|
if (F(ue) && ue === Ve) {
|
|
1862
|
-
const [se, uo] =
|
|
1863
|
-
if (process.env.NODE_ENV !== "production" && n && p(se) && Hn($, uo) && (f && (Ue(
|
|
1860
|
+
const [se, uo] = m();
|
|
1861
|
+
if (process.env.NODE_ENV !== "production" && n && p(se) && Hn($, uo) && (f && (Ue(_, se) || bn(d, se)) && Ee($e(q.FALLBACK_TO_ROOT, {
|
|
1864
1862
|
key: se,
|
|
1865
1863
|
type: $
|
|
1866
1864
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -1874,28 +1872,28 @@ function Fn(e = {}, t) {
|
|
|
1874
1872
|
}
|
|
1875
1873
|
return n && f ? V(n) : We(se);
|
|
1876
1874
|
} else {
|
|
1877
|
-
if (
|
|
1875
|
+
if (Le(ue))
|
|
1878
1876
|
return ue;
|
|
1879
1877
|
throw K(C.UNEXPECTED_RETURN_TYPE);
|
|
1880
1878
|
}
|
|
1881
1879
|
};
|
|
1882
1880
|
function gt(...u) {
|
|
1883
|
-
return ce((
|
|
1881
|
+
return ce((m) => Reflect.apply(xt, null, [m, ...u]), () => ze(...u), "translate", (m) => Reflect.apply(m.t, m, [...u]), (m) => m, (m) => p(m));
|
|
1884
1882
|
}
|
|
1885
1883
|
function jn(...u) {
|
|
1886
|
-
const [
|
|
1884
|
+
const [m, $, V] = u;
|
|
1887
1885
|
if (V && !y(V))
|
|
1888
1886
|
throw K(C.INVALID_ARGUMENT);
|
|
1889
|
-
return gt(
|
|
1887
|
+
return gt(m, $, U({ resolvedMessage: !0 }, V || {}));
|
|
1890
1888
|
}
|
|
1891
1889
|
function Bn(...u) {
|
|
1892
|
-
return ce((
|
|
1890
|
+
return ce((m) => Reflect.apply(Ht, null, [m, ...u]), () => Ye(...u), "datetime format", (m) => Reflect.apply(m.d, m, [...u]), () => we, (m) => p(m));
|
|
1893
1891
|
}
|
|
1894
1892
|
function zn(...u) {
|
|
1895
|
-
return ce((
|
|
1893
|
+
return ce((m) => Reflect.apply(Bt, null, [m, ...u]), () => Ke(...u), "number format", (m) => Reflect.apply(m.n, m, [...u]), () => we, (m) => p(m));
|
|
1896
1894
|
}
|
|
1897
1895
|
function Yn(u) {
|
|
1898
|
-
return u.map((
|
|
1896
|
+
return u.map((m) => p(m) || F(m) || A(m) ? Yt(String(m)) : m);
|
|
1899
1897
|
}
|
|
1900
1898
|
const Kn = {
|
|
1901
1899
|
normalize: Yn,
|
|
@@ -1904,9 +1902,9 @@ function Fn(e = {}, t) {
|
|
|
1904
1902
|
};
|
|
1905
1903
|
function Xn(...u) {
|
|
1906
1904
|
return ce(
|
|
1907
|
-
(
|
|
1905
|
+
(m) => {
|
|
1908
1906
|
let $;
|
|
1909
|
-
const V =
|
|
1907
|
+
const V = m;
|
|
1910
1908
|
try {
|
|
1911
1909
|
V.processor = Kn, $ = Reflect.apply(xt, null, [V, ...u]);
|
|
1912
1910
|
} finally {
|
|
@@ -1916,80 +1914,80 @@ function Fn(e = {}, t) {
|
|
|
1916
1914
|
},
|
|
1917
1915
|
() => ze(...u),
|
|
1918
1916
|
"translate",
|
|
1919
|
-
(
|
|
1920
|
-
(
|
|
1921
|
-
(
|
|
1917
|
+
(m) => m[Qe](...u),
|
|
1918
|
+
(m) => [Yt(m)],
|
|
1919
|
+
(m) => P(m)
|
|
1922
1920
|
);
|
|
1923
1921
|
}
|
|
1924
1922
|
function Qn(...u) {
|
|
1925
1923
|
return ce(
|
|
1926
|
-
(
|
|
1924
|
+
(m) => Reflect.apply(Bt, null, [m, ...u]),
|
|
1927
1925
|
() => Ke(...u),
|
|
1928
1926
|
"number format",
|
|
1929
|
-
(
|
|
1927
|
+
(m) => m[qe](...u),
|
|
1930
1928
|
() => [],
|
|
1931
|
-
(
|
|
1929
|
+
(m) => p(m) || P(m)
|
|
1932
1930
|
);
|
|
1933
1931
|
}
|
|
1934
1932
|
function Jn(...u) {
|
|
1935
1933
|
return ce(
|
|
1936
|
-
(
|
|
1934
|
+
(m) => Reflect.apply(Ht, null, [m, ...u]),
|
|
1937
1935
|
() => Ye(...u),
|
|
1938
1936
|
"datetime format",
|
|
1939
|
-
(
|
|
1937
|
+
(m) => m[Je](...u),
|
|
1940
1938
|
() => [],
|
|
1941
|
-
(
|
|
1939
|
+
(m) => p(m) || P(m)
|
|
1942
1940
|
);
|
|
1943
1941
|
}
|
|
1944
1942
|
function qn(u) {
|
|
1945
1943
|
T = u, g.pluralRules = T;
|
|
1946
1944
|
}
|
|
1947
|
-
function Zn(u,
|
|
1948
|
-
const $ = p(
|
|
1945
|
+
function Zn(u, m) {
|
|
1946
|
+
const $ = p(m) ? m : a.value, V = pt($);
|
|
1949
1947
|
return g.messageResolver(V, u) !== null;
|
|
1950
1948
|
}
|
|
1951
1949
|
function eo(u) {
|
|
1952
|
-
let
|
|
1950
|
+
let m = null;
|
|
1953
1951
|
const $ = hn(g, s.value, a.value);
|
|
1954
1952
|
for (let V = 0; V < $.length; V++) {
|
|
1955
|
-
const We = i.value[$[V]] || {},
|
|
1956
|
-
if (
|
|
1957
|
-
|
|
1953
|
+
const We = i.value[$[V]] || {}, Le = g.messageResolver(We, u);
|
|
1954
|
+
if (Le != null) {
|
|
1955
|
+
m = Le;
|
|
1958
1956
|
break;
|
|
1959
1957
|
}
|
|
1960
1958
|
}
|
|
1961
|
-
return
|
|
1959
|
+
return m;
|
|
1962
1960
|
}
|
|
1963
1961
|
function to(u) {
|
|
1964
|
-
const
|
|
1965
|
-
return
|
|
1962
|
+
const m = eo(u);
|
|
1963
|
+
return m != null ? m : n ? n.tm(u) || {} : {};
|
|
1966
1964
|
}
|
|
1967
1965
|
function pt(u) {
|
|
1968
1966
|
return i.value[u] || {};
|
|
1969
1967
|
}
|
|
1970
|
-
function no(u,
|
|
1971
|
-
i.value[u] =
|
|
1968
|
+
function no(u, m) {
|
|
1969
|
+
i.value[u] = m, g.messages = i.value;
|
|
1972
1970
|
}
|
|
1973
|
-
function oo(u,
|
|
1974
|
-
i.value[u] = i.value[u] || {}, Ne(
|
|
1971
|
+
function oo(u, m) {
|
|
1972
|
+
i.value[u] = i.value[u] || {}, Ne(m, i.value[u]), g.messages = i.value;
|
|
1975
1973
|
}
|
|
1976
1974
|
function ro(u) {
|
|
1977
1975
|
return l.value[u] || {};
|
|
1978
1976
|
}
|
|
1979
|
-
function so(u,
|
|
1980
|
-
l.value[u] =
|
|
1977
|
+
function so(u, m) {
|
|
1978
|
+
l.value[u] = m, g.datetimeFormats = l.value, jt(g, u, m);
|
|
1981
1979
|
}
|
|
1982
|
-
function ao(u,
|
|
1983
|
-
l.value[u] = U(l.value[u] || {},
|
|
1980
|
+
function ao(u, m) {
|
|
1981
|
+
l.value[u] = U(l.value[u] || {}, m), g.datetimeFormats = l.value, jt(g, u, m);
|
|
1984
1982
|
}
|
|
1985
1983
|
function lo(u) {
|
|
1986
1984
|
return c.value[u] || {};
|
|
1987
1985
|
}
|
|
1988
|
-
function io(u,
|
|
1989
|
-
c.value[u] =
|
|
1986
|
+
function io(u, m) {
|
|
1987
|
+
c.value[u] = m, g.numberFormats = c.value, zt(g, u, m);
|
|
1990
1988
|
}
|
|
1991
|
-
function co(u,
|
|
1992
|
-
c.value[u] = U(c.value[u] || {},
|
|
1989
|
+
function co(u, m) {
|
|
1990
|
+
c.value[u] = U(c.value[u] || {}, m), g.numberFormats = c.value, zt(g, u, m);
|
|
1993
1991
|
}
|
|
1994
1992
|
Xt++, n && ee && (Ae(n.locale, (u) => {
|
|
1995
1993
|
o && (a.value = u, g.locale = u, ve(g, a.value, s.value));
|
|
@@ -2011,7 +2009,7 @@ function Fn(e = {}, t) {
|
|
|
2011
2009
|
},
|
|
2012
2010
|
messages: X,
|
|
2013
2011
|
get modifiers() {
|
|
2014
|
-
return
|
|
2012
|
+
return S;
|
|
2015
2013
|
},
|
|
2016
2014
|
get pluralRules() {
|
|
2017
2015
|
return T || {};
|
|
@@ -2026,10 +2024,10 @@ function Fn(e = {}, t) {
|
|
|
2026
2024
|
d = u, g.missingWarn = d;
|
|
2027
2025
|
},
|
|
2028
2026
|
get fallbackWarn() {
|
|
2029
|
-
return
|
|
2027
|
+
return _;
|
|
2030
2028
|
},
|
|
2031
2029
|
set fallbackWarn(u) {
|
|
2032
|
-
|
|
2030
|
+
_ = u, g.fallbackWarn = _;
|
|
2033
2031
|
},
|
|
2034
2032
|
get fallbackRoot() {
|
|
2035
2033
|
return f;
|
|
@@ -2044,10 +2042,10 @@ function Fn(e = {}, t) {
|
|
|
2044
2042
|
h = u, g.fallbackFormat = h;
|
|
2045
2043
|
},
|
|
2046
2044
|
get warnHtmlMessage() {
|
|
2047
|
-
return
|
|
2045
|
+
return b;
|
|
2048
2046
|
},
|
|
2049
2047
|
set warnHtmlMessage(u) {
|
|
2050
|
-
|
|
2048
|
+
b = u, g.warnHtmlMessage = u;
|
|
2051
2049
|
},
|
|
2052
2050
|
get escapeParameter() {
|
|
2053
2051
|
return N;
|
|
@@ -2063,9 +2061,9 @@ function Fn(e = {}, t) {
|
|
|
2063
2061
|
setPostTranslationHandler: Wn,
|
|
2064
2062
|
getMissingHandler: xn,
|
|
2065
2063
|
setMissingHandler: Gn,
|
|
2066
|
-
[
|
|
2064
|
+
[Ss]: qn
|
|
2067
2065
|
};
|
|
2068
|
-
return w.datetimeFormats = Q, w.numberFormats = Te, w.rt = jn, w.te = Zn, w.tm = to, w.d = Bn, w.n = zn, w.getDateTimeFormat = ro, w.setDateTimeFormat = so, w.mergeDateTimeFormat = ao, w.getNumberFormat = lo, w.setNumberFormat = io, w.mergeNumberFormat = co, w[ys] = e.__injectWithOption, w[Qe] = Xn, w[Je] = Jn, w[qe] = Qn, process.env.NODE_ENV !== "production" && (w[
|
|
2066
|
+
return w.datetimeFormats = Q, w.numberFormats = Te, w.rt = jn, w.te = Zn, w.tm = to, w.d = Bn, w.n = zn, w.getDateTimeFormat = ro, w.setDateTimeFormat = so, w.mergeDateTimeFormat = ao, w.getNumberFormat = lo, w.setNumberFormat = io, w.mergeNumberFormat = co, w[ys] = e.__injectWithOption, w[Qe] = Xn, w[Je] = Jn, w[qe] = Qn, process.env.NODE_ENV !== "production" && (w[be] = (u) => {
|
|
2069
2067
|
g.__v_emitter = u;
|
|
2070
2068
|
}, w[Ze] = () => {
|
|
2071
2069
|
g.__v_emitter = void 0;
|
|
@@ -2117,7 +2115,7 @@ const je = {
|
|
|
2117
2115
|
__useComponent: !0
|
|
2118
2116
|
});
|
|
2119
2117
|
return () => {
|
|
2120
|
-
const a = Object.keys(n).filter((
|
|
2118
|
+
const a = Object.keys(n).filter((_) => _ !== "_"), s = {};
|
|
2121
2119
|
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = p(e.plural) ? +e.plural : e.plural);
|
|
2122
2120
|
const i = As(t, a), l = o[Qe](e.keypath, i, s), c = U({}, r), d = p(e.tag) || y(e.tag) ? e.tag : kn();
|
|
2123
2121
|
return Ce(d, c, l);
|
|
@@ -2136,11 +2134,11 @@ function Mn(e, t, n, r) {
|
|
|
2136
2134
|
const l = r(e.value, s, i);
|
|
2137
2135
|
let c = [s.key];
|
|
2138
2136
|
P(l) ? c = l.map((f, h) => {
|
|
2139
|
-
const v = o[f.type],
|
|
2140
|
-
return Ps(
|
|
2137
|
+
const v = o[f.type], O = v ? v({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
2138
|
+
return Ps(O) && (O[0].key = `${f.type}-${h}`), O;
|
|
2141
2139
|
}) : p(l) && (c = [l]);
|
|
2142
|
-
const d = U({}, a),
|
|
2143
|
-
return Ce(
|
|
2140
|
+
const d = U({}, a), _ = p(e.tag) || y(e.tag) ? e.tag : kn();
|
|
2141
|
+
return Ce(_, d, c);
|
|
2144
2142
|
};
|
|
2145
2143
|
}
|
|
2146
2144
|
const Jt = {
|
|
@@ -2190,9 +2188,9 @@ function Rs(e) {
|
|
|
2190
2188
|
throw K(C.UNEXPECTED_ERROR);
|
|
2191
2189
|
const d = ws(e, i.$);
|
|
2192
2190
|
process.env.NODE_ENV !== "production" && l.preserve && Ee($e(q.NOT_SUPPORTED_PRESERVE));
|
|
2193
|
-
const
|
|
2191
|
+
const _ = Zt(c);
|
|
2194
2192
|
return [
|
|
2195
|
-
Reflect.apply(d.t, d, [...en(
|
|
2193
|
+
Reflect.apply(d.t, d, [...en(_)]),
|
|
2196
2194
|
d
|
|
2197
2195
|
];
|
|
2198
2196
|
};
|
|
@@ -2284,7 +2282,7 @@ async function ks(e, t) {
|
|
|
2284
2282
|
}), o.addTimelineLayer({
|
|
2285
2283
|
id: "vue-i18n-timeline",
|
|
2286
2284
|
label: He["vue-i18n-timeline"],
|
|
2287
|
-
color:
|
|
2285
|
+
color: Os["vue-i18n-timeline"]
|
|
2288
2286
|
}), n(!0);
|
|
2289
2287
|
});
|
|
2290
2288
|
} catch (o) {
|
|
@@ -2495,17 +2493,17 @@ function Bs(e, t) {
|
|
|
2495
2493
|
const zs = /* @__PURE__ */ te("global-vue-i18n");
|
|
2496
2494
|
function Ys(e = {}, t) {
|
|
2497
2495
|
const n = A(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] = Ks(e), i = te(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
2498
|
-
function l(
|
|
2499
|
-
return o.get(
|
|
2496
|
+
function l(_) {
|
|
2497
|
+
return o.get(_) || null;
|
|
2500
2498
|
}
|
|
2501
|
-
function c(
|
|
2502
|
-
o.set(
|
|
2499
|
+
function c(_, f) {
|
|
2500
|
+
o.set(_, f);
|
|
2503
2501
|
}
|
|
2504
|
-
function d(
|
|
2505
|
-
o.delete(
|
|
2502
|
+
function d(_) {
|
|
2503
|
+
o.delete(_);
|
|
2506
2504
|
}
|
|
2507
2505
|
{
|
|
2508
|
-
const
|
|
2506
|
+
const _ = {
|
|
2509
2507
|
get mode() {
|
|
2510
2508
|
return "composition";
|
|
2511
2509
|
},
|
|
@@ -2513,17 +2511,17 @@ function Ys(e = {}, t) {
|
|
|
2513
2511
|
return r;
|
|
2514
2512
|
},
|
|
2515
2513
|
async install(f, ...h) {
|
|
2516
|
-
process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ =
|
|
2514
|
+
process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = _), f.__VUE_I18N_SYMBOL__ = i, f.provide(f.__VUE_I18N_SYMBOL__, _), n && na(f, _.global), Fs(f, _, ...h);
|
|
2517
2515
|
const v = f.unmount;
|
|
2518
2516
|
if (f.unmount = () => {
|
|
2519
|
-
|
|
2517
|
+
_.dispose(), v();
|
|
2520
2518
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
2521
|
-
if (!await ks(f,
|
|
2519
|
+
if (!await ks(f, _))
|
|
2522
2520
|
throw K(C.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2523
2521
|
const E = dn();
|
|
2524
2522
|
{
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2523
|
+
const b = s;
|
|
2524
|
+
b[be] && b[be](E);
|
|
2527
2525
|
}
|
|
2528
2526
|
E.on("*", nt);
|
|
2529
2527
|
}
|
|
@@ -2539,7 +2537,7 @@ function Ys(e = {}, t) {
|
|
|
2539
2537
|
__setInstance: c,
|
|
2540
2538
|
__deleteInstance: d
|
|
2541
2539
|
};
|
|
2542
|
-
return
|
|
2540
|
+
return _;
|
|
2543
2541
|
}
|
|
2544
2542
|
}
|
|
2545
2543
|
function dt(e = {}) {
|
|
@@ -2604,7 +2602,7 @@ function Zs(e, t, n) {
|
|
|
2604
2602
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
2605
2603
|
t.vnode.el.__VUE_I18N__ = n, r = dn();
|
|
2606
2604
|
const o = n;
|
|
2607
|
-
o[
|
|
2605
|
+
o[be] && o[be](r), r.on("*", nt);
|
|
2608
2606
|
}
|
|
2609
2607
|
}, t), mo(() => {
|
|
2610
2608
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
@@ -2698,7 +2696,7 @@ const sa = Re({
|
|
|
2698
2696
|
},
|
|
2699
2697
|
setup(e) {
|
|
2700
2698
|
const t = Ys({
|
|
2701
|
-
locale:
|
|
2699
|
+
locale: e.locale,
|
|
2702
2700
|
messages: {
|
|
2703
2701
|
"zh-cn": oa,
|
|
2704
2702
|
"en-us": ra
|
|
@@ -2744,12 +2742,12 @@ function ua(e, t, n, r, o, a) {
|
|
|
2744
2742
|
key: d,
|
|
2745
2743
|
deviceGroup: c
|
|
2746
2744
|
}, {
|
|
2747
|
-
group: le(({ group:
|
|
2748
|
-
oe(e.$slots, "group", { group:
|
|
2745
|
+
group: le(({ group: _ }) => [
|
|
2746
|
+
oe(e.$slots, "group", { group: _ }, void 0, !0)
|
|
2749
2747
|
]),
|
|
2750
|
-
device: le(({ device:
|
|
2748
|
+
device: le(({ device: _, group: f }) => [
|
|
2751
2749
|
oe(e.$slots, "device", {
|
|
2752
|
-
device:
|
|
2750
|
+
device: _,
|
|
2753
2751
|
group: f
|
|
2754
2752
|
}, void 0, !0)
|
|
2755
2753
|
]),
|
|
@@ -2758,7 +2756,7 @@ function ua(e, t, n, r, o, a) {
|
|
|
2758
2756
|
])
|
|
2759
2757
|
]);
|
|
2760
2758
|
}
|
|
2761
|
-
const fa = /* @__PURE__ */ ke(sa, [["render", ua], ["__scopeId", "data-v-
|
|
2759
|
+
const fa = /* @__PURE__ */ ke(sa, [["render", ua], ["__scopeId", "data-v-17e4082a"]]), nn = {
|
|
2762
2760
|
RecursionDeviceGroup: fa
|
|
2763
2761
|
}, da = {
|
|
2764
2762
|
install(e) {
|