smarteye-e-components 0.0.27 → 0.0.28
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.
|
@@ -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 = [];
|
|
@@ -264,11 +264,11 @@ function Do(e, t) {
|
|
|
264
264
|
O % 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
|
|
@@ -360,7 +360,7 @@ const Uo = (e, t) => {
|
|
|
360
360
|
a.color = E;
|
|
361
361
|
break;
|
|
362
362
|
case "rotate":
|
|
363
|
-
typeof E == "string" ? n[b] =
|
|
363
|
+
typeof E == "string" ? n[b] = Lo(E) : typeof E == "number" && (n[b] = E);
|
|
364
364
|
break;
|
|
365
365
|
case "ariaHidden":
|
|
366
366
|
case "aria-hidden":
|
|
@@ -381,9 +381,9 @@ const Uo = (e, t) => {
|
|
|
381
381
|
let b = 0, E = t.id;
|
|
382
382
|
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = wo(l.body, E ? () => E + "ID" + b++ : "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,7 +589,7 @@ 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, [
|
|
@@ -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-af859703"]]), dr = {
|
|
680
678
|
width: 1024,
|
|
681
679
|
height: 1024,
|
|
682
680
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
@@ -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
|
}
|
|
@@ -988,16 +986,16 @@ function jr(e = {}) {
|
|
|
988
986
|
const N = R(e.messages) ? e.messages(O) : y(e.messages) ? e.messages[O] : !1;
|
|
989
987
|
return N || (e.parent ? e.parent.message(O) : Ur);
|
|
990
988
|
}
|
|
991
|
-
const
|
|
989
|
+
const _ = (O) => e.modifiers ? e.modifiers[O] : 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
993
|
linked: (O, ...N) => {
|
|
996
|
-
const [
|
|
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(O)(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,
|
|
@@ -1113,7 +1111,7 @@ const Ut = (e) => {
|
|
|
1113
1111
|
}, ss = () => bn;
|
|
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, b = I(e.processor) ? e.processor : null, E = A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!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,7 +1123,7 @@ 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,
|
|
@@ -1133,13 +1131,13 @@ function as(e = {}) {
|
|
|
1133
1131
|
warnHtmlMessage: E,
|
|
1134
1132
|
escapeParameter: O,
|
|
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;
|
|
@@ -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 : "", b = n || v !== "", E = p(c.locale) ? c.locale : e.locale;
|
|
1188
1186
|
f && is(c);
|
|
1189
|
-
let [O, N,
|
|
1187
|
+
let [O, N, S] = h ? [
|
|
1190
1188
|
l,
|
|
1191
1189
|
E,
|
|
1192
1190
|
i[E] || {}
|
|
1193
|
-
] : In(e, l, E, s,
|
|
1191
|
+
] : In(e, l, E, s, _, d), T = O, g = l;
|
|
1194
1192
|
if (!h && !(p(T) || Z(T)) && b && (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,7 +1219,7 @@ 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, b = null;
|
|
1225
1223
|
const E = "translate";
|
|
1226
1224
|
for (let O = 0; O < d.length; O++) {
|
|
1227
1225
|
if (f = b = d[O], process.env.NODE_ENV !== "production" && n !== f && Ue(o, t) && i(pe(z.FALLBACK_TO_TRANSLATE, {
|
|
@@ -1237,17 +1235,17 @@ function In(e, t, n, r, o, a) {
|
|
|
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;
|
|
@@ -1260,9 +1258,9 @@ function In(e, t, n, r, o, a) {
|
|
|
1260
1258
|
);
|
|
1261
1259
|
g !== t && (h = g), v = b;
|
|
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;
|
|
@@ -1341,7 +1339,7 @@ function fs(e, t, n, r) {
|
|
|
1341
1339
|
}
|
|
1342
1340
|
if (p(v)) {
|
|
1343
1341
|
let b = !1;
|
|
1344
|
-
const O =
|
|
1342
|
+
const O = Ln(e, h, t, v, h, () => {
|
|
1345
1343
|
b = !0;
|
|
1346
1344
|
});
|
|
1347
1345
|
return b ? Wt : O;
|
|
@@ -1351,22 +1349,22 @@ function fs(e, t, n, r) {
|
|
|
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, b = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1363
1361
|
e,
|
|
1364
1362
|
o,
|
|
1365
1363
|
b
|
|
1366
1364
|
);
|
|
1367
1365
|
if (!p(l) || l === "")
|
|
1368
|
-
return new Intl.DateTimeFormat(b,
|
|
1369
|
-
let O = {}, N,
|
|
1366
|
+
return new Intl.DateTimeFormat(b, _).format(c);
|
|
1367
|
+
let O = {}, N, S = null, T = b, g = null;
|
|
1370
1368
|
const D = "datetime format";
|
|
1371
1369
|
for (let B = 0; B < E.length; B++) {
|
|
1372
1370
|
if (N = g = E[B], process.env.NODE_ENV !== "production" && b !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -1382,16 +1380,16 @@ function Ht(e, ...t) {
|
|
|
1382
1380
|
groupId: `${D}:${l}`
|
|
1383
1381
|
});
|
|
1384
1382
|
}
|
|
1385
|
-
if (O = n[N] || {},
|
|
1383
|
+
if (O = n[N] || {}, S = O[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,16 +1448,16 @@ 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, b = p(d.locale) ? d.locale : e.locale, E = s(
|
|
1456
1454
|
e,
|
|
1457
1455
|
o,
|
|
1458
1456
|
b
|
|
1459
1457
|
);
|
|
1460
1458
|
if (!p(l) || l === "")
|
|
1461
|
-
return new Intl.NumberFormat(b,
|
|
1462
|
-
let O = {}, N,
|
|
1459
|
+
return new Intl.NumberFormat(b, _).format(c);
|
|
1460
|
+
let O = {}, N, S = null, T = b, g = null;
|
|
1463
1461
|
const D = "number format";
|
|
1464
1462
|
for (let B = 0; B < E.length; B++) {
|
|
1465
1463
|
if (N = g = E[B], process.env.NODE_ENV !== "production" && b !== N && Ue(h, l) && a(pe(z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -1475,16 +1473,16 @@ function Bt(e, ...t) {
|
|
|
1475
1473
|
groupId: `${D}:${l}`
|
|
1476
1474
|
});
|
|
1477
1475
|
}
|
|
1478
|
-
if (O = n[N] || {},
|
|
1476
|
+
if (O = n[N] || {}, S = O[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",
|
|
@@ -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"), Oe = /* @__PURE__ */ te("__enableEmitter"), Ze = /* @__PURE__ */ te("__disableEmitter"),
|
|
1698
|
+
}, Qe = /* @__PURE__ */ te("__transrateVNode"), Je = /* @__PURE__ */ te("__datetimeParts"), qe = /* @__PURE__ */ te("__numberParts"), Oe = /* @__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,8 +1783,8 @@ 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, b = R(e.missing) ? Qt(e.missing) : null, E = R(e.postTranslation) ? e.postTranslation : null, O = 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);
|
|
@@ -1795,11 +1793,11 @@ function Fn(e = {}, t) {
|
|
|
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
1798
|
missing: b === null ? void 0 : b,
|
|
1801
1799
|
missingWarn: d,
|
|
1802
|
-
fallbackWarn:
|
|
1800
|
+
fallbackWarn: _,
|
|
1803
1801
|
fallbackFormat: h,
|
|
1804
1802
|
unresolving: !0,
|
|
1805
1803
|
postTranslation: E === null ? void 0 : E,
|
|
@@ -1809,10 +1807,10 @@ function Fn(e = {}, t) {
|
|
|
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,
|
|
@@ -1844,11 +1842,11 @@ function Fn(e = {}, t) {
|
|
|
1844
1842
|
function Gn(u) {
|
|
1845
1843
|
u !== null && (b = Qt(u)), v = u, g.missing = b;
|
|
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) || On(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;
|
|
@@ -2063,7 +2061,7 @@ function Fn(e = {}, t) {
|
|
|
2063
2061
|
setPostTranslationHandler: Wn,
|
|
2064
2062
|
getMissingHandler: xn,
|
|
2065
2063
|
setMissingHandler: Gn,
|
|
2066
|
-
[
|
|
2064
|
+
[Ss]: qn
|
|
2067
2065
|
};
|
|
2068
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[Oe] = (u) => {
|
|
2069
2067
|
g.__v_emitter = u;
|
|
@@ -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);
|
|
@@ -2139,8 +2137,8 @@ function Mn(e, t, n, r) {
|
|
|
2139
2137
|
const v = o[f.type], b = v ? v({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
2140
2138
|
return Ps(b) && (b[0].key = `${f.type}-${h}`), b;
|
|
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
|
};
|
|
@@ -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,12 +2511,12 @@ 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
|
{
|
|
@@ -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 = {}) {
|
|
@@ -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
|
]),
|