smarteye-e-components 0.0.50 → 0.0.52
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 +460 -447
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/multi-video-area-layout-switch/index.vue.d.ts +144 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _e, computed as W, openBlock as
|
|
1
|
+
import { defineComponent as _e, computed as W, openBlock as A, createElementBlock as F, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as Fe, ref as M, watch as $e, normalizeStyle as Le, Fragment as Oe, renderList as De, inject as fn, resolveComponent as ie, normalizeClass as Xe, createVNode as se, withCtx as ce, createCommentVNode as Be, createBlock as _n, getCurrentInstance as it, effectScope as bo, onMounted as To, onUnmounted as yo, isRef as Lo, Text as Io, provide as So, withDirectives as wo, vShow as Do, pushScopeId as Co, popScopeId as Po } from "vue";
|
|
2
2
|
var bt;
|
|
3
3
|
((e) => {
|
|
4
4
|
((n) => {
|
|
@@ -80,7 +80,7 @@ var bt;
|
|
|
80
80
|
n.AccessSession = r;
|
|
81
81
|
})(e.Utils || (e.Utils = {}));
|
|
82
82
|
})(bt || (bt = {}));
|
|
83
|
-
var
|
|
83
|
+
var x;
|
|
84
84
|
((e) => {
|
|
85
85
|
function t(n, r, o) {
|
|
86
86
|
if (o) {
|
|
@@ -152,8 +152,8 @@ var U;
|
|
|
152
152
|
}
|
|
153
153
|
n.getTestLayout = o;
|
|
154
154
|
})(e.Test || (e.Test = {}));
|
|
155
|
-
})(
|
|
156
|
-
const
|
|
155
|
+
})(x || (x = {}));
|
|
156
|
+
const Ao = _e({
|
|
157
157
|
props: {
|
|
158
158
|
countInfo: Object,
|
|
159
159
|
controlParams: Object
|
|
@@ -196,17 +196,17 @@ const de = (e, t) => {
|
|
|
196
196
|
for (const [r, o] of t)
|
|
197
197
|
n[r] = o;
|
|
198
198
|
return n;
|
|
199
|
-
}, ko = { class: "root" },
|
|
200
|
-
function
|
|
201
|
-
return
|
|
199
|
+
}, ko = { class: "root" }, Ro = { class: "count-show" };
|
|
200
|
+
function Fo(e, t, n, r, o, a) {
|
|
201
|
+
return A(), F("div", ko, [
|
|
202
202
|
oe(e.$slots, "default", {
|
|
203
203
|
total: e.totalCount,
|
|
204
204
|
online: e.onlineCount
|
|
205
205
|
}, void 0, !0),
|
|
206
|
-
C("span",
|
|
206
|
+
C("span", Ro, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
|
|
207
207
|
]);
|
|
208
208
|
}
|
|
209
|
-
const dn = /* @__PURE__ */ de(
|
|
209
|
+
const dn = /* @__PURE__ */ de(Ao, [["render", Fo], ["__scopeId", "data-v-a063c331"]]), mn = Object.freeze(
|
|
210
210
|
{
|
|
211
211
|
left: 0,
|
|
212
212
|
top: 0,
|
|
@@ -324,39 +324,39 @@ function Wo(e, t) {
|
|
|
324
324
|
};
|
|
325
325
|
let a = n.body;
|
|
326
326
|
[n, r].forEach((g) => {
|
|
327
|
-
const
|
|
327
|
+
const p = [], O = g.hFlip, E = g.vFlip;
|
|
328
328
|
let N = g.rotate;
|
|
329
|
-
O ? E ? N += 2 : (
|
|
329
|
+
O ? E ? N += 2 : (p.push(
|
|
330
330
|
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
331
|
-
),
|
|
331
|
+
), p.push("scale(-1 1)"), o.top = o.left = 0) : E && (p.push(
|
|
332
332
|
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
333
|
-
),
|
|
333
|
+
), p.push("scale(1 -1)"), o.top = o.left = 0);
|
|
334
334
|
let b;
|
|
335
335
|
switch (N < 0 && (N -= Math.floor(N / 4) * 4), N = N % 4, N) {
|
|
336
336
|
case 1:
|
|
337
|
-
b = o.height / 2 + o.top,
|
|
337
|
+
b = o.height / 2 + o.top, p.unshift(
|
|
338
338
|
"rotate(90 " + b.toString() + " " + b.toString() + ")"
|
|
339
339
|
);
|
|
340
340
|
break;
|
|
341
341
|
case 2:
|
|
342
|
-
|
|
342
|
+
p.unshift(
|
|
343
343
|
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
344
344
|
);
|
|
345
345
|
break;
|
|
346
346
|
case 3:
|
|
347
|
-
b = o.width / 2 + o.left,
|
|
347
|
+
b = o.width / 2 + o.left, p.unshift(
|
|
348
348
|
"rotate(-90 " + b.toString() + " " + b.toString() + ")"
|
|
349
349
|
);
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
N % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)),
|
|
352
|
+
N % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), p.length && (a = '<g transform="' + p.join(" ") + '">' + a + "</g>");
|
|
353
353
|
});
|
|
354
354
|
const s = r.width, l = r.height, i = o.width, c = o.height;
|
|
355
|
-
let u,
|
|
356
|
-
return s === null ? (
|
|
355
|
+
let u, d;
|
|
356
|
+
return s === null ? (d = l === null ? "1em" : l === "auto" ? c : l, u = Tt(d, i / c)) : (u = s === "auto" ? i : s, d = l === null ? Tt(u, c / i) : l === "auto" ? c : l), {
|
|
357
357
|
attributes: {
|
|
358
358
|
width: u.toString(),
|
|
359
|
-
height:
|
|
359
|
+
height: d.toString(),
|
|
360
360
|
viewBox: o.left.toString() + " " + o.top.toString() + " " + i.toString() + " " + c.toString()
|
|
361
361
|
},
|
|
362
362
|
body: a
|
|
@@ -392,14 +392,14 @@ function Xo(e) {
|
|
|
392
392
|
const yt = {
|
|
393
393
|
...hn,
|
|
394
394
|
inline: !1
|
|
395
|
-
},
|
|
395
|
+
}, Jo = {
|
|
396
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
397
397
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
398
398
|
"aria-hidden": !0,
|
|
399
399
|
role: "img"
|
|
400
|
-
},
|
|
400
|
+
}, Qo = {
|
|
401
401
|
display: "inline-block"
|
|
402
|
-
},
|
|
402
|
+
}, Je = {
|
|
403
403
|
backgroundColor: "currentColor"
|
|
404
404
|
}, vn = {
|
|
405
405
|
backgroundColor: "transparent"
|
|
@@ -408,8 +408,8 @@ const yt = {
|
|
|
408
408
|
Repeat: "no-repeat",
|
|
409
409
|
Size: "100% 100%"
|
|
410
410
|
}, It = {
|
|
411
|
-
webkitMask:
|
|
412
|
-
mask:
|
|
411
|
+
webkitMask: Je,
|
|
412
|
+
mask: Je,
|
|
413
413
|
background: vn
|
|
414
414
|
};
|
|
415
415
|
for (const e in It) {
|
|
@@ -426,7 +426,7 @@ function St(e) {
|
|
|
426
426
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
427
427
|
}
|
|
428
428
|
const qo = (e, t) => {
|
|
429
|
-
const n = $o(yt, t), r = { ...
|
|
429
|
+
const n = $o(yt, t), r = { ...Jo }, o = t.mode || "svg", a = {}, s = t.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
430
430
|
for (let O in t) {
|
|
431
431
|
const E = t[O];
|
|
432
432
|
if (E !== void 0)
|
|
@@ -467,22 +467,22 @@ const qo = (e, t) => {
|
|
|
467
467
|
...l
|
|
468
468
|
}, Object.assign(r, c);
|
|
469
469
|
let O = 0, E = t.id;
|
|
470
|
-
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"),
|
|
470
|
+
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"), Fe("svg", r);
|
|
471
471
|
}
|
|
472
|
-
const { body: u, width:
|
|
472
|
+
const { body: u, width: d, height: _ } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), p = zo(u, {
|
|
473
473
|
...c,
|
|
474
|
-
width:
|
|
475
|
-
height:
|
|
474
|
+
width: d + "",
|
|
475
|
+
height: _ + ""
|
|
476
476
|
});
|
|
477
477
|
return r.style = {
|
|
478
478
|
...a,
|
|
479
|
-
"--svg": Xo(
|
|
479
|
+
"--svg": Xo(p),
|
|
480
480
|
width: St(c.width),
|
|
481
481
|
height: St(c.height),
|
|
482
|
-
...
|
|
483
|
-
...g ?
|
|
482
|
+
...Qo,
|
|
483
|
+
...g ? Je : vn,
|
|
484
484
|
...l
|
|
485
|
-
},
|
|
485
|
+
}, Fe("span", r);
|
|
486
486
|
}, En = /* @__PURE__ */ Object.create(null);
|
|
487
487
|
function Ne(e, t) {
|
|
488
488
|
En[e] = t;
|
|
@@ -534,11 +534,11 @@ const lr = {
|
|
|
534
534
|
},
|
|
535
535
|
setup(e) {
|
|
536
536
|
const t = {
|
|
537
|
-
screenHeight:
|
|
538
|
-
startOffset:
|
|
539
|
-
start:
|
|
540
|
-
end:
|
|
541
|
-
}, n =
|
|
537
|
+
screenHeight: M(0),
|
|
538
|
+
startOffset: M(0),
|
|
539
|
+
start: M(0),
|
|
540
|
+
end: M(0)
|
|
541
|
+
}, n = M(), r = {
|
|
542
542
|
listHeight: W(() => e.listData.length * e.itemSize),
|
|
543
543
|
visibleCount: W(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
544
544
|
getTransform: W(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
@@ -549,7 +549,7 @@ const lr = {
|
|
|
549
549
|
}), t);
|
|
550
550
|
},
|
|
551
551
|
mounted() {
|
|
552
|
-
this.init(),
|
|
552
|
+
this.init(), $e(() => this.listData.length, () => ar(this, null, function* () {
|
|
553
553
|
yield this.$nextTick(), this.init();
|
|
554
554
|
}));
|
|
555
555
|
},
|
|
@@ -566,7 +566,7 @@ const lr = {
|
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
function ir(e, t, n, r, o, a) {
|
|
569
|
-
return
|
|
569
|
+
return A(), F("div", {
|
|
570
570
|
ref: "virList",
|
|
571
571
|
class: "infinite-list-container",
|
|
572
572
|
onScroll: t[0] || (t[0] = (s) => a.scrollEvent())
|
|
@@ -579,7 +579,7 @@ function ir(e, t, n, r, o, a) {
|
|
|
579
579
|
class: "infinite-list",
|
|
580
580
|
style: Le({ transform: e.getTransform })
|
|
581
581
|
}, [
|
|
582
|
-
(
|
|
582
|
+
(A(!0), F(Oe, null, De(e.visibleData, (s) => (A(), F("div", {
|
|
583
583
|
ref_for: !0,
|
|
584
584
|
ref: "items",
|
|
585
585
|
class: "infinite-list-item",
|
|
@@ -592,12 +592,12 @@ function ir(e, t, n, r, o, a) {
|
|
|
592
592
|
], 544);
|
|
593
593
|
}
|
|
594
594
|
const cr = /* @__PURE__ */ de(lr, [["render", ir], ["__scopeId", "data-v-12d2a294"]]);
|
|
595
|
-
var ur = Object.defineProperty, fr = Object.defineProperties, _r = Object.getOwnPropertyDescriptors,
|
|
595
|
+
var ur = Object.defineProperty, fr = Object.defineProperties, _r = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, At = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gr = (e, t) => {
|
|
596
596
|
for (var n in t || (t = {}))
|
|
597
|
-
dr.call(t, n) &&
|
|
598
|
-
if (
|
|
599
|
-
for (var n of
|
|
600
|
-
mr.call(t, n) &&
|
|
597
|
+
dr.call(t, n) && At(e, n, t[n]);
|
|
598
|
+
if (Pt)
|
|
599
|
+
for (var n of Pt(t))
|
|
600
|
+
mr.call(t, n) && At(e, n, t[n]);
|
|
601
601
|
return e;
|
|
602
602
|
}, pr = (e, t) => fr(e, _r(t));
|
|
603
603
|
const hr = _e({
|
|
@@ -612,11 +612,11 @@ const hr = _e({
|
|
|
612
612
|
controlParams: Object
|
|
613
613
|
},
|
|
614
614
|
setup(e, t) {
|
|
615
|
-
const n =
|
|
615
|
+
const n = M(), r = fn("theme"), o = {
|
|
616
616
|
filterDevice(u) {
|
|
617
|
-
var
|
|
617
|
+
var d, _, g, p, O;
|
|
618
618
|
let E = !0;
|
|
619
|
-
(
|
|
619
|
+
(d = e.controlParams) != null && d.searchStr && (E = u.name.indexOf((_ = e.controlParams) == null ? void 0 : _.searchStr) >= 0 || u.id.indexOf((g = e.controlParams) == null ? void 0 : g.searchStr) >= 0 || typeof u.user == "string" && u.user.indexOf((p = e.controlParams) == null ? void 0 : p.searchStr) >= 0);
|
|
620
620
|
let N = !0;
|
|
621
621
|
return (O = e.controlParams) != null && O.onlyShowOnline && (N = u.online), E && N;
|
|
622
622
|
},
|
|
@@ -630,20 +630,20 @@ const hr = _e({
|
|
|
630
630
|
}, a = {
|
|
631
631
|
filteredDevices: W(() => {
|
|
632
632
|
var u;
|
|
633
|
-
const
|
|
634
|
-
return
|
|
633
|
+
const d = (u = e.deviceGroup) == null ? void 0 : u.devices, _ = d && d.filter((p) => o.filterDevice(p)) || [];
|
|
634
|
+
return _.filter((p) => p.online).concat(_.filter((p) => !p.online));
|
|
635
635
|
})
|
|
636
636
|
}, s = W(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
|
|
637
|
-
function l(u,
|
|
638
|
-
if (
|
|
637
|
+
function l(u, d) {
|
|
638
|
+
if (d.length == 0)
|
|
639
639
|
return !0;
|
|
640
|
-
let
|
|
641
|
-
if ((u == null ? void 0 : u.name.indexOf(
|
|
640
|
+
let _ = !1;
|
|
641
|
+
if ((u == null ? void 0 : u.name.indexOf(d)) > 0 && (_ = !0), _ || (_ = (u == null ? void 0 : u.devices.find((g) => g.name.indexOf(d) >= 0 || g.id.indexOf(d) >= 0 || g.user && g.user.indexOf(d) >= 0)) != null), !_) {
|
|
642
642
|
for (let g = 0; g < u.items.length; g++)
|
|
643
|
-
if (l(u.items[g],
|
|
643
|
+
if (l(u.items[g], d))
|
|
644
644
|
return !0;
|
|
645
645
|
}
|
|
646
|
-
return
|
|
646
|
+
return _;
|
|
647
647
|
}
|
|
648
648
|
const i = W(() => {
|
|
649
649
|
if (e.controlParams) {
|
|
@@ -652,7 +652,7 @@ const hr = _e({
|
|
|
652
652
|
return l(e.deviceGroup, u);
|
|
653
653
|
}
|
|
654
654
|
return !1;
|
|
655
|
-
}), c =
|
|
655
|
+
}), c = M(!1);
|
|
656
656
|
return pr(gr({
|
|
657
657
|
innerUtils: o
|
|
658
658
|
}, a), {
|
|
@@ -680,7 +680,7 @@ const vr = {
|
|
|
680
680
|
function Ir(e, t, n, r, o, a) {
|
|
681
681
|
var s;
|
|
682
682
|
const l = ie("Icon"), i = ie("CountShow"), c = ie("group-show"), u = ie("VirtualList");
|
|
683
|
-
return e.showGroup ? (
|
|
683
|
+
return e.showGroup ? (A(), F("div", {
|
|
684
684
|
key: 0,
|
|
685
685
|
class: Xe("group " + e.theme)
|
|
686
686
|
}, [
|
|
@@ -689,17 +689,17 @@ function Ir(e, t, n, r, o, a) {
|
|
|
689
689
|
controlParams: e.controlParams,
|
|
690
690
|
ref: "countRef"
|
|
691
691
|
}, {
|
|
692
|
-
default: ce(({ online:
|
|
693
|
-
var g,
|
|
692
|
+
default: ce(({ online: d, total: _ }) => {
|
|
693
|
+
var g, p;
|
|
694
694
|
return [
|
|
695
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (
|
|
695
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (A(), F("span", vr, [
|
|
696
696
|
se(l, {
|
|
697
697
|
icon: e.bShow ? "minus" : "plus",
|
|
698
698
|
width: "20",
|
|
699
699
|
onClick: t[0] || (t[0] = (O) => e.bShow = !e.bShow),
|
|
700
700
|
class: "handle-ls-svg"
|
|
701
701
|
}, null, 8, ["icon"])
|
|
702
|
-
])) : (
|
|
702
|
+
])) : (A(), F("span", Er)),
|
|
703
703
|
C("span", {
|
|
704
704
|
class: "group-head-db-click",
|
|
705
705
|
onDblclick: t[1] || (t[1] = (O) => e.bShow = !e.bShow)
|
|
@@ -709,10 +709,10 @@ function Ir(e, t, n, r, o, a) {
|
|
|
709
709
|
width: "24",
|
|
710
710
|
class: "group-avatar"
|
|
711
711
|
}, null, 8, ["icon"]),
|
|
712
|
-
e.bShow ? Be("", !0) : (
|
|
712
|
+
e.bShow ? Be("", !0) : (A(), F("span", Or, ue((g = e.deviceGroup) == null ? void 0 : g.items.length), 1)),
|
|
713
713
|
C("span", {
|
|
714
714
|
class: "group-name",
|
|
715
|
-
title: (
|
|
715
|
+
title: (p = e.deviceGroup) == null ? void 0 : p.name
|
|
716
716
|
}, ue(e.innerUtils.groupText(e.deviceGroup)), 9, Nr)
|
|
717
717
|
], 32),
|
|
718
718
|
C("div", br, [
|
|
@@ -722,19 +722,19 @@ function Ir(e, t, n, r, o, a) {
|
|
|
722
722
|
}),
|
|
723
723
|
_: 3
|
|
724
724
|
}, 8, ["countInfo", "controlParams"]),
|
|
725
|
-
e.bShow ? (
|
|
726
|
-
(
|
|
727
|
-
key:
|
|
728
|
-
deviceGroup:
|
|
725
|
+
e.bShow ? (A(), F("div", Tr, [
|
|
726
|
+
(A(!0), F(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (d, _) => (A(), _n(c, {
|
|
727
|
+
key: _,
|
|
728
|
+
deviceGroup: d,
|
|
729
729
|
controlParams: e.controlParams
|
|
730
730
|
}, {
|
|
731
731
|
group: ce(({ group: g }) => [
|
|
732
732
|
oe(e.$slots, "group", { group: g }, void 0, !0)
|
|
733
733
|
]),
|
|
734
|
-
device: ce(({ device: g, group:
|
|
734
|
+
device: ce(({ device: g, group: p }) => [
|
|
735
735
|
oe(e.$slots, "device", {
|
|
736
736
|
device: g,
|
|
737
|
-
group:
|
|
737
|
+
group: p
|
|
738
738
|
}, void 0, !0)
|
|
739
739
|
]),
|
|
740
740
|
_: 2
|
|
@@ -747,9 +747,9 @@ function Ir(e, t, n, r, o, a) {
|
|
|
747
747
|
"list-data": e.filteredDevices,
|
|
748
748
|
"item-size": 40
|
|
749
749
|
}, {
|
|
750
|
-
default: ce(({ data:
|
|
750
|
+
default: ce(({ data: d }) => [
|
|
751
751
|
C("div", {
|
|
752
|
-
class: Xe(
|
|
752
|
+
class: Xe(d.online && "online-device")
|
|
753
753
|
}, [
|
|
754
754
|
se(l, {
|
|
755
755
|
icon: "user",
|
|
@@ -757,12 +757,12 @@ function Ir(e, t, n, r, o, a) {
|
|
|
757
757
|
class: "device-avatar"
|
|
758
758
|
}),
|
|
759
759
|
C("span", {
|
|
760
|
-
title: e.innerUtils.deviceText(
|
|
760
|
+
title: e.innerUtils.deviceText(d),
|
|
761
761
|
class: "device-name"
|
|
762
|
-
}, ue(e.innerUtils.deviceText(
|
|
762
|
+
}, ue(e.innerUtils.deviceText(d)), 9, yr),
|
|
763
763
|
C("div", Lr, [
|
|
764
764
|
oe(e.$slots, "device", {
|
|
765
|
-
device:
|
|
765
|
+
device: d,
|
|
766
766
|
group: e.deviceGroup
|
|
767
767
|
}, void 0, !0)
|
|
768
768
|
])
|
|
@@ -786,11 +786,11 @@ const Sr = /* @__PURE__ */ de(hr, [["render", Ir], ["__scopeId", "data-v-93cfc8d
|
|
|
786
786
|
width: 1024,
|
|
787
787
|
height: 1024,
|
|
788
788
|
body: '<path fill="currentColor" d="M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"/>'
|
|
789
|
-
},
|
|
789
|
+
}, Pr = {
|
|
790
790
|
width: 1024,
|
|
791
791
|
height: 1024,
|
|
792
792
|
body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
|
|
793
|
-
},
|
|
793
|
+
}, Ar = {
|
|
794
794
|
width: 1024,
|
|
795
795
|
height: 1024,
|
|
796
796
|
body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
|
|
@@ -812,40 +812,40 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
812
812
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Rr = /\{([0-9a-zA-Z]+)\}/g;
|
|
816
816
|
function ut(e, ...t) {
|
|
817
|
-
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
817
|
+
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Rr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
818
818
|
}
|
|
819
|
-
const
|
|
819
|
+
const Fr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ne = (e) => Fr ? Symbol(e) : e, $r = (e, t, n) => Mr({ l: e, k: t, s: n }), Mr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), V = (e) => typeof e == "number" && isFinite(e), Vr = (e) => dt(e) === "[object Date]", Me = (e) => dt(e) === "[object RegExp]", xe = (e) => y(e) && Object.keys(e).length === 0;
|
|
820
820
|
function be(e, t) {
|
|
821
821
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
822
822
|
}
|
|
823
823
|
const j = Object.assign;
|
|
824
824
|
let kt;
|
|
825
825
|
const ft = () => kt || (kt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
826
|
-
function
|
|
826
|
+
function Rt(e) {
|
|
827
827
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
828
828
|
}
|
|
829
829
|
const Ur = Object.prototype.hasOwnProperty;
|
|
830
830
|
function _t(e, t) {
|
|
831
831
|
return Ur.call(e, t);
|
|
832
832
|
}
|
|
833
|
-
const k = Array.isArray, $ = (e) => typeof e == "function",
|
|
833
|
+
const k = Array.isArray, $ = (e) => typeof e == "function", v = (e) => typeof e == "string", P = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", On = Object.prototype.toString, dt = (e) => On.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : k(e) || y(e) && e.toString === On ? JSON.stringify(e, null, 2) : String(e), Ft = 2;
|
|
834
834
|
function Gr(e, t = 0, n = e.length) {
|
|
835
835
|
const r = e.split(/\r?\n/);
|
|
836
836
|
let o = 0;
|
|
837
837
|
const a = [];
|
|
838
838
|
for (let s = 0; s < r.length; s++)
|
|
839
839
|
if (o += r[s].length + 1, o >= t) {
|
|
840
|
-
for (let l = s -
|
|
840
|
+
for (let l = s - Ft; l <= s + Ft || n > o; l++) {
|
|
841
841
|
if (l < 0 || l >= r.length)
|
|
842
842
|
continue;
|
|
843
843
|
const i = l + 1;
|
|
844
844
|
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${r[l]}`);
|
|
845
845
|
const c = r[l].length;
|
|
846
846
|
if (l === s) {
|
|
847
|
-
const u = t - (o - c) + 1,
|
|
848
|
-
a.push(" | " + " ".repeat(u) + "^".repeat(
|
|
847
|
+
const u = t - (o - c) + 1, d = Math.max(1, n > o ? c - u : n - t);
|
|
848
|
+
a.push(" | " + " ".repeat(u) + "^".repeat(d));
|
|
849
849
|
} else if (l > s) {
|
|
850
850
|
if (n > o) {
|
|
851
851
|
const u = Math.max(Math.min(n - o, c), 1);
|
|
@@ -1017,31 +1017,31 @@ function zr(e) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
function Kr(e) {
|
|
1019
1019
|
const t = [];
|
|
1020
|
-
let n = -1, r = 0, o = 0, a, s, l, i, c, u,
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1020
|
+
let n = -1, r = 0, o = 0, a, s, l, i, c, u, d;
|
|
1021
|
+
const _ = [];
|
|
1022
|
+
_[0] = () => {
|
|
1023
1023
|
s === void 0 ? s = l : s += l;
|
|
1024
|
-
},
|
|
1024
|
+
}, _[1] = () => {
|
|
1025
1025
|
s !== void 0 && (t.push(s), s = void 0);
|
|
1026
|
-
},
|
|
1027
|
-
|
|
1028
|
-
},
|
|
1026
|
+
}, _[2] = () => {
|
|
1027
|
+
_[0](), o++;
|
|
1028
|
+
}, _[3] = () => {
|
|
1029
1029
|
if (o > 0)
|
|
1030
|
-
o--, r = 4,
|
|
1030
|
+
o--, r = 4, _[0]();
|
|
1031
1031
|
else {
|
|
1032
1032
|
if (o = 0, s === void 0 || (s = zr(s), s === !1))
|
|
1033
1033
|
return !1;
|
|
1034
|
-
|
|
1034
|
+
_[1]();
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
1037
|
function g() {
|
|
1038
|
-
const
|
|
1039
|
-
if (r === 5 &&
|
|
1040
|
-
return n++, l = "\\" +
|
|
1038
|
+
const p = e[n + 1];
|
|
1039
|
+
if (r === 5 && p === "'" || r === 6 && p === '"')
|
|
1040
|
+
return n++, l = "\\" + p, _[0](), !0;
|
|
1041
1041
|
}
|
|
1042
1042
|
for (; r !== null; )
|
|
1043
1043
|
if (n++, a = e[n], !(a === "\\" && g())) {
|
|
1044
|
-
if (i = Yr(a),
|
|
1044
|
+
if (i = Yr(a), d = ae[r], c = d[i] || d.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (u = _[c[1]], u && (l = a, u() === !1))))
|
|
1045
1045
|
return;
|
|
1046
1046
|
if (r === 7)
|
|
1047
1047
|
return t;
|
|
@@ -1051,7 +1051,7 @@ const $t = /* @__PURE__ */ new Map();
|
|
|
1051
1051
|
function Xr(e, t) {
|
|
1052
1052
|
return S(e) ? e[t] : null;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function Jr(e, t) {
|
|
1055
1055
|
if (!S(e))
|
|
1056
1056
|
return null;
|
|
1057
1057
|
let n = $t.get(t);
|
|
@@ -1067,49 +1067,49 @@ function Qr(e, t) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
return o;
|
|
1069
1069
|
}
|
|
1070
|
-
const
|
|
1070
|
+
const Qr = (e) => e, qr = (e) => "", Zr = "text", es = (e) => e.length === 0 ? "" : e.join(""), ts = xr;
|
|
1071
1071
|
function Mt(e, t) {
|
|
1072
1072
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1073
1073
|
}
|
|
1074
1074
|
function ns(e) {
|
|
1075
|
-
const t =
|
|
1076
|
-
return e.named && (
|
|
1075
|
+
const t = V(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1076
|
+
return e.named && (V(e.named.count) || V(e.named.n)) ? V(e.named.count) ? e.named.count : V(e.named.n) ? e.named.n : t : t;
|
|
1077
1077
|
}
|
|
1078
1078
|
function os(e, t) {
|
|
1079
1079
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1080
1080
|
}
|
|
1081
1081
|
function rs(e = {}) {
|
|
1082
|
-
const t = e.locale, n = ns(e), r = S(e.pluralRules) &&
|
|
1083
|
-
|
|
1082
|
+
const t = e.locale, n = ns(e), r = S(e.pluralRules) && v(t) && $(e.pluralRules[t]) ? e.pluralRules[t] : Mt, o = S(e.pluralRules) && v(t) && $(e.pluralRules[t]) ? Mt : void 0, a = (N) => N[r(n, N.length, o)], s = e.list || [], l = (N) => s[N], i = e.named || {};
|
|
1083
|
+
V(e.pluralIndex) && os(n, i);
|
|
1084
1084
|
const c = (N) => i[N];
|
|
1085
1085
|
function u(N) {
|
|
1086
1086
|
const b = $(e.messages) ? e.messages(N) : S(e.messages) ? e.messages[N] : !1;
|
|
1087
1087
|
return b || (e.parent ? e.parent.message(N) : qr);
|
|
1088
1088
|
}
|
|
1089
|
-
const
|
|
1089
|
+
const d = (N) => e.modifiers ? e.modifiers[N] : Qr, _ = y(e.processor) && $(e.processor.normalize) ? e.processor.normalize : es, g = y(e.processor) && $(e.processor.interpolate) ? e.processor.interpolate : ts, p = y(e.processor) && v(e.processor.type) ? e.processor.type : Zr, E = {
|
|
1090
1090
|
list: l,
|
|
1091
1091
|
named: c,
|
|
1092
1092
|
plural: a,
|
|
1093
1093
|
linked: (N, ...b) => {
|
|
1094
1094
|
const [I, T] = b;
|
|
1095
|
-
let
|
|
1096
|
-
b.length === 1 ? S(I) ? (w = I.modifier || w,
|
|
1095
|
+
let h = "text", w = "";
|
|
1096
|
+
b.length === 1 ? S(I) ? (w = I.modifier || w, h = I.type || h) : v(I) && (w = I || w) : b.length === 2 && (v(I) && (w = I || w), v(T) && (h = T || h));
|
|
1097
1097
|
let L = u(N)(E);
|
|
1098
|
-
return
|
|
1098
|
+
return h === "vnode" && k(L) && w && (L = L[0]), w ? d(w)(L, h) : L;
|
|
1099
1099
|
},
|
|
1100
1100
|
message: u,
|
|
1101
|
-
type:
|
|
1101
|
+
type: p,
|
|
1102
1102
|
interpolate: g,
|
|
1103
|
-
normalize:
|
|
1103
|
+
normalize: _
|
|
1104
1104
|
};
|
|
1105
1105
|
return E;
|
|
1106
1106
|
}
|
|
1107
|
-
let
|
|
1107
|
+
let Se = null;
|
|
1108
1108
|
function ss(e) {
|
|
1109
|
-
|
|
1109
|
+
Se = e;
|
|
1110
1110
|
}
|
|
1111
1111
|
function as(e, t, n) {
|
|
1112
|
-
|
|
1112
|
+
Se && Se.emit(Tn.I18nInit, {
|
|
1113
1113
|
timestamp: Date.now(),
|
|
1114
1114
|
i18n: e,
|
|
1115
1115
|
version: t,
|
|
@@ -1118,7 +1118,7 @@ function as(e, t, n) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
const ls = /* @__PURE__ */ is(Tn.FunctionTranslate);
|
|
1120
1120
|
function is(e) {
|
|
1121
|
-
return (t) =>
|
|
1121
|
+
return (t) => Se && Se.emit(e, t);
|
|
1122
1122
|
}
|
|
1123
1123
|
const K = {
|
|
1124
1124
|
NOT_FOUND_KEY: 1,
|
|
@@ -1142,11 +1142,11 @@ function Ee(e, ...t) {
|
|
|
1142
1142
|
function us(e, t, n) {
|
|
1143
1143
|
return [.../* @__PURE__ */ new Set([
|
|
1144
1144
|
n,
|
|
1145
|
-
...k(t) ? t : S(t) ? Object.keys(t) :
|
|
1145
|
+
...k(t) ? t : S(t) ? Object.keys(t) : v(t) ? [t] : [n]
|
|
1146
1146
|
])];
|
|
1147
1147
|
}
|
|
1148
1148
|
function yn(e, t, n) {
|
|
1149
|
-
const r =
|
|
1149
|
+
const r = v(n) ? n : mt, o = e;
|
|
1150
1150
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1151
1151
|
let a = o.__localeChainCache.get(r);
|
|
1152
1152
|
if (!a) {
|
|
@@ -1155,15 +1155,15 @@ function yn(e, t, n) {
|
|
|
1155
1155
|
for (; k(s); )
|
|
1156
1156
|
s = Vt(a, s, t);
|
|
1157
1157
|
const l = k(t) || !y(t) ? t : t.default ? t.default : null;
|
|
1158
|
-
s =
|
|
1158
|
+
s = v(l) ? [l] : l, k(s) && Vt(a, s, !1), o.__localeChainCache.set(r, a);
|
|
1159
1159
|
}
|
|
1160
1160
|
return a;
|
|
1161
1161
|
}
|
|
1162
1162
|
function Vt(e, t, n) {
|
|
1163
1163
|
let r = !0;
|
|
1164
|
-
for (let o = 0; o < t.length &&
|
|
1164
|
+
for (let o = 0; o < t.length && P(r); o++) {
|
|
1165
1165
|
const a = t[o];
|
|
1166
|
-
|
|
1166
|
+
v(a) && (r = fs(e, t[o], n));
|
|
1167
1167
|
}
|
|
1168
1168
|
return r;
|
|
1169
1169
|
}
|
|
@@ -1185,12 +1185,12 @@ function _s(e, t, n) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
return r;
|
|
1187
1187
|
}
|
|
1188
|
-
const ds = "9.2.2", Ge = -1, mt = "en-US",
|
|
1188
|
+
const ds = "9.2.2", Ge = -1, mt = "en-US", Ve = "", Ut = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1189
1189
|
function ms() {
|
|
1190
1190
|
return {
|
|
1191
|
-
upper: (e, t) => t === "text" &&
|
|
1192
|
-
lower: (e, t) => t === "text" &&
|
|
1193
|
-
capitalize: (e, t) => t === "text" &&
|
|
1191
|
+
upper: (e, t) => t === "text" && v(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1192
|
+
lower: (e, t) => t === "text" && v(e) ? e.toLowerCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1193
|
+
capitalize: (e, t) => t === "text" && v(e) ? Ut(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? Ut(e.children) : e
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
1196
|
let gs, Ln;
|
|
@@ -1211,7 +1211,7 @@ const Gt = (e) => {
|
|
|
1211
1211
|
}, Es = () => wn;
|
|
1212
1212
|
let Wt = 0;
|
|
1213
1213
|
function Os(e = {}) {
|
|
1214
|
-
const t =
|
|
1214
|
+
const t = v(e.version) ? e.version : ds, n = v(e.locale) ? e.locale : mt, r = k(e.fallbackLocale) || y(e.fallbackLocale) || v(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = y(e.messages) ? e.messages : { [n]: {} }, a = y(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = y(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = j({}, e.modifiers || {}, ms()), i = e.pluralRules || {}, c = $(e.missing) ? e.missing : null, u = P(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, d = P(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, _ = !!e.fallbackFormat, g = !!e.unresolving, p = $(e.postTranslation) ? e.postTranslation : null, O = y(e.processor) ? e.processor : null, E = P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, b = $(e.messageCompiler) ? e.messageCompiler : gs, I = $(e.messageResolver) ? e.messageResolver : Ln || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : In || us, h = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, L = e, U = S(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), z = S(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), Q = S(L.__meta) ? L.__meta : {};
|
|
1215
1215
|
Wt++;
|
|
1216
1216
|
const q = {
|
|
1217
1217
|
version: t,
|
|
@@ -1223,21 +1223,21 @@ function Os(e = {}) {
|
|
|
1223
1223
|
pluralRules: i,
|
|
1224
1224
|
missing: c,
|
|
1225
1225
|
missingWarn: u,
|
|
1226
|
-
fallbackWarn:
|
|
1227
|
-
fallbackFormat:
|
|
1226
|
+
fallbackWarn: d,
|
|
1227
|
+
fallbackFormat: _,
|
|
1228
1228
|
unresolving: g,
|
|
1229
|
-
postTranslation:
|
|
1229
|
+
postTranslation: p,
|
|
1230
1230
|
processor: O,
|
|
1231
1231
|
warnHtmlMessage: E,
|
|
1232
1232
|
escapeParameter: N,
|
|
1233
1233
|
messageCompiler: b,
|
|
1234
1234
|
messageResolver: I,
|
|
1235
1235
|
localeFallbacker: T,
|
|
1236
|
-
fallbackContext:
|
|
1236
|
+
fallbackContext: h,
|
|
1237
1237
|
onWarn: w,
|
|
1238
|
-
__meta:
|
|
1238
|
+
__meta: Q
|
|
1239
1239
|
};
|
|
1240
|
-
return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters =
|
|
1240
|
+
return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = U, q.__numberFormatters = z, 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__) && as(q, t, Q), q;
|
|
1241
1241
|
}
|
|
1242
1242
|
function We(e, t) {
|
|
1243
1243
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -1258,7 +1258,7 @@ function gt(e, t, n, r, o) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
if (a !== null) {
|
|
1260
1260
|
const l = a(e, n, t, o);
|
|
1261
|
-
return
|
|
1261
|
+
return v(l) ? l : t;
|
|
1262
1262
|
} else
|
|
1263
1263
|
return process.env.NODE_ENV !== "production" && Dn(r, t) && s(Ee(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1264
1264
|
}
|
|
@@ -1282,62 +1282,62 @@ const Ns = {
|
|
|
1282
1282
|
[re.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1283
1283
|
}, Ht = () => "", ee = (e) => $(e);
|
|
1284
1284
|
function jt(e, ...t) {
|
|
1285
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] =
|
|
1286
|
-
|
|
1285
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] = Qe(...t), u = P(c.missingWarn) ? c.missingWarn : e.missingWarn, d = P(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, _ = P(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, p = v(c.default) || P(c.default) ? P(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", O = n || p !== "", E = v(c.locale) ? c.locale : e.locale;
|
|
1286
|
+
_ && bs(c);
|
|
1287
1287
|
let [N, b, I] = g ? [
|
|
1288
1288
|
i,
|
|
1289
1289
|
E,
|
|
1290
1290
|
l[E] || {}
|
|
1291
|
-
] :
|
|
1292
|
-
if (!g && !(
|
|
1291
|
+
] : Pn(e, i, E, s, d, u), T = N, h = i;
|
|
1292
|
+
if (!g && !(v(T) || ee(T)) && O && (T = p, h = T), !g && (!(v(T) || ee(T)) || !v(b)))
|
|
1293
1293
|
return o ? Ge : i;
|
|
1294
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1294
|
+
if (process.env.NODE_ENV !== "production" && v(T) && e.messageCompiler == null)
|
|
1295
1295
|
return be(`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 '${i}'.`), i;
|
|
1296
1296
|
let w = !1;
|
|
1297
1297
|
const L = () => {
|
|
1298
1298
|
w = !0;
|
|
1299
|
-
},
|
|
1299
|
+
}, U = ee(T) ? T : An(e, i, b, T, h, L);
|
|
1300
1300
|
if (w)
|
|
1301
1301
|
return T;
|
|
1302
|
-
const z = Ls(e, b, I, c),
|
|
1302
|
+
const z = Ls(e, b, I, c), Q = rs(z), q = Ts(e, U, Q), Ce = r ? r(q, i) : q;
|
|
1303
1303
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1304
1304
|
const Pe = {
|
|
1305
1305
|
timestamp: Date.now(),
|
|
1306
|
-
key:
|
|
1306
|
+
key: v(i) ? i : ee(T) ? T.key : "",
|
|
1307
1307
|
locale: b || (ee(T) ? T.locale : ""),
|
|
1308
|
-
format:
|
|
1309
|
-
message:
|
|
1308
|
+
format: v(T) ? T : ee(T) ? T.source : "",
|
|
1309
|
+
message: Ce
|
|
1310
1310
|
};
|
|
1311
1311
|
Pe.meta = j({}, e.__meta, vs() || {}), ls(Pe);
|
|
1312
1312
|
}
|
|
1313
|
-
return
|
|
1313
|
+
return Ce;
|
|
1314
1314
|
}
|
|
1315
1315
|
function bs(e) {
|
|
1316
|
-
k(e.list) ? e.list = e.list.map((t) =>
|
|
1317
|
-
|
|
1316
|
+
k(e.list) ? e.list = e.list.map((t) => v(t) ? Rt(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1317
|
+
v(e.named[t]) && (e.named[t] = Rt(e.named[t]));
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Pn(e, t, n, r, o, a) {
|
|
1321
1321
|
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
|
|
1322
|
-
let
|
|
1322
|
+
let d = {}, _, g = null, p = n, O = null;
|
|
1323
1323
|
const E = "translate";
|
|
1324
1324
|
for (let N = 0; N < u.length; N++) {
|
|
1325
|
-
if (
|
|
1325
|
+
if (_ = O = u[N], process.env.NODE_ENV !== "production" && n !== _ && We(o, t) && l(Ee(K.FALLBACK_TO_TRANSLATE, {
|
|
1326
1326
|
key: t,
|
|
1327
|
-
target:
|
|
1328
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
1327
|
+
target: _
|
|
1328
|
+
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
1329
1329
|
const w = e.__v_emitter;
|
|
1330
1330
|
w && w.emit("fallback", {
|
|
1331
1331
|
type: E,
|
|
1332
1332
|
key: t,
|
|
1333
|
-
from:
|
|
1333
|
+
from: p,
|
|
1334
1334
|
to: O,
|
|
1335
1335
|
groupId: `${E}:${t}`
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
|
-
|
|
1338
|
+
d = s[_] || {};
|
|
1339
1339
|
let b = null, I, T;
|
|
1340
|
-
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), I = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(I)), (g = i(
|
|
1340
|
+
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), I = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(I)), (g = i(d, t)) === null && (g = d[t]), process.env.NODE_ENV !== "production" && te) {
|
|
1341
1341
|
const w = window.performance.now(), L = e.__v_emitter;
|
|
1342
1342
|
L && b && g && L.emit("message-resolve", {
|
|
1343
1343
|
type: "message-resolve",
|
|
@@ -1347,42 +1347,42 @@ function An(e, t, n, r, o, a) {
|
|
|
1347
1347
|
groupId: `${E}:${t}`
|
|
1348
1348
|
}), I && T && X && fe && (X(T), fe("intlify message resolve", I, T));
|
|
1349
1349
|
}
|
|
1350
|
-
if (
|
|
1350
|
+
if (v(g) || $(g))
|
|
1351
1351
|
break;
|
|
1352
|
-
const
|
|
1352
|
+
const h = gt(
|
|
1353
1353
|
e,
|
|
1354
1354
|
t,
|
|
1355
|
-
|
|
1355
|
+
_,
|
|
1356
1356
|
a,
|
|
1357
1357
|
E
|
|
1358
1358
|
);
|
|
1359
|
-
|
|
1359
|
+
h !== t && (g = h), p = O;
|
|
1360
1360
|
}
|
|
1361
|
-
return [g,
|
|
1361
|
+
return [g, _, d];
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function An(e, t, n, r, o, a) {
|
|
1364
1364
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
1365
1365
|
if (ee(r)) {
|
|
1366
|
-
const
|
|
1367
|
-
return
|
|
1366
|
+
const _ = r;
|
|
1367
|
+
return _.locale = _.locale || n, _.key = _.key || t, _;
|
|
1368
1368
|
}
|
|
1369
1369
|
if (s == null) {
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1370
|
+
const _ = () => r;
|
|
1371
|
+
return _.locale = n, _.key = t, _;
|
|
1372
1372
|
}
|
|
1373
1373
|
let i = null, c, u;
|
|
1374
1374
|
process.env.NODE_ENV !== "production" && te && (i = window.performance.now(), c = "intlify-message-compilation-start", u = "intlify-message-compilation-end", X && X(c));
|
|
1375
|
-
const
|
|
1375
|
+
const d = s(r, ys(e, n, o, r, l, a));
|
|
1376
1376
|
if (process.env.NODE_ENV !== "production" && te) {
|
|
1377
|
-
const
|
|
1377
|
+
const _ = window.performance.now(), g = e.__v_emitter;
|
|
1378
1378
|
g && i && g.emit("message-compilation", {
|
|
1379
1379
|
type: "message-compilation",
|
|
1380
1380
|
message: r,
|
|
1381
|
-
time:
|
|
1381
|
+
time: _ - i,
|
|
1382
1382
|
groupId: `translate:${t}`
|
|
1383
1383
|
}), c && u && X && fe && (X(u), fe("intlify message compilation", c, u));
|
|
1384
1384
|
}
|
|
1385
|
-
return
|
|
1385
|
+
return d.locale = n, d.key = t, d.source = r, d;
|
|
1386
1386
|
}
|
|
1387
1387
|
function Ts(e, t, n) {
|
|
1388
1388
|
let r = null, o, a;
|
|
@@ -1399,12 +1399,12 @@ function Ts(e, t, n) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
return s;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Qe(...e) {
|
|
1403
1403
|
const [t, n, r] = e, o = {};
|
|
1404
|
-
if (!
|
|
1404
|
+
if (!v(t) && !V(t) && !ee(t))
|
|
1405
1405
|
throw ve(re.INVALID_ARGUMENT);
|
|
1406
|
-
const a =
|
|
1407
|
-
return
|
|
1406
|
+
const a = V(t) ? String(t) : (ee(t), t);
|
|
1407
|
+
return V(n) ? o.plural = n : v(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : k(n) && (o.list = n), V(r) ? o.plural = r : v(r) ? o.default = r : y(r) && j(o, r), [a, o];
|
|
1408
1408
|
}
|
|
1409
1409
|
function ys(e, t, n, r, o, a) {
|
|
1410
1410
|
return {
|
|
@@ -1427,27 +1427,27 @@ ${i}` : l);
|
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
1429
|
function Ls(e, t, n, r) {
|
|
1430
|
-
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e,
|
|
1430
|
+
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e, _ = {
|
|
1431
1431
|
locale: t,
|
|
1432
1432
|
modifiers: o,
|
|
1433
1433
|
pluralRules: a,
|
|
1434
1434
|
messages: (g) => {
|
|
1435
|
-
let
|
|
1436
|
-
if (
|
|
1437
|
-
const [, , O] =
|
|
1438
|
-
|
|
1435
|
+
let p = s(n, g);
|
|
1436
|
+
if (p == null && u) {
|
|
1437
|
+
const [, , O] = Pn(u, g, t, l, i, c);
|
|
1438
|
+
p = s(O, g);
|
|
1439
1439
|
}
|
|
1440
|
-
if (
|
|
1440
|
+
if (v(p)) {
|
|
1441
1441
|
let O = !1;
|
|
1442
|
-
const N =
|
|
1442
|
+
const N = An(e, g, t, p, g, () => {
|
|
1443
1443
|
O = !0;
|
|
1444
1444
|
});
|
|
1445
1445
|
return O ? Ht : N;
|
|
1446
1446
|
} else
|
|
1447
|
-
return ee(
|
|
1447
|
+
return ee(p) ? p : Ht;
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
|
-
return e.processor && (
|
|
1450
|
+
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), V(r.plural) && (_.pluralIndex = r.plural), _;
|
|
1451
1451
|
}
|
|
1452
1452
|
const Bt = typeof Intl < "u", kn = {
|
|
1453
1453
|
dateTimeFormat: Bt && typeof Intl.DateTimeFormat < "u",
|
|
@@ -1456,42 +1456,42 @@ const Bt = typeof Intl < "u", kn = {
|
|
|
1456
1456
|
function Yt(e, ...t) {
|
|
1457
1457
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
1458
1458
|
if (process.env.NODE_ENV !== "production" && !kn.dateTimeFormat)
|
|
1459
|
-
return a(Ee(K.CANNOT_FORMAT_DATE)),
|
|
1460
|
-
const [i, c, u,
|
|
1459
|
+
return a(Ee(K.CANNOT_FORMAT_DATE)), Ve;
|
|
1460
|
+
const [i, c, u, d] = qe(...t), _ = P(u.missingWarn) ? u.missingWarn : e.missingWarn, g = P(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = !!u.part, O = v(u.locale) ? u.locale : e.locale, E = s(
|
|
1461
1461
|
e,
|
|
1462
1462
|
o,
|
|
1463
1463
|
O
|
|
1464
1464
|
);
|
|
1465
|
-
if (!
|
|
1466
|
-
return new Intl.DateTimeFormat(O,
|
|
1467
|
-
let N = {}, b, I = null, T = O,
|
|
1465
|
+
if (!v(i) || i === "")
|
|
1466
|
+
return new Intl.DateTimeFormat(O, d).format(c);
|
|
1467
|
+
let N = {}, b, I = null, T = O, h = null;
|
|
1468
1468
|
const w = "datetime format";
|
|
1469
1469
|
for (let z = 0; z < E.length; z++) {
|
|
1470
|
-
if (b =
|
|
1470
|
+
if (b = h = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_DATE_FORMAT, {
|
|
1471
1471
|
key: i,
|
|
1472
1472
|
target: b
|
|
1473
1473
|
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1474
|
+
const Q = e.__v_emitter;
|
|
1475
|
+
Q && Q.emit("fallback", {
|
|
1476
1476
|
type: w,
|
|
1477
1477
|
key: i,
|
|
1478
1478
|
from: T,
|
|
1479
|
-
to:
|
|
1479
|
+
to: h,
|
|
1480
1480
|
groupId: `${w}:${i}`
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
1483
|
if (N = n[b] || {}, I = N[i], y(I))
|
|
1484
1484
|
break;
|
|
1485
|
-
gt(e, i, b,
|
|
1485
|
+
gt(e, i, b, _, w), T = h;
|
|
1486
1486
|
}
|
|
1487
|
-
if (!y(I) || !
|
|
1487
|
+
if (!y(I) || !v(b))
|
|
1488
1488
|
return r ? Ge : i;
|
|
1489
1489
|
let L = `${b}__${i}`;
|
|
1490
|
-
xe(
|
|
1491
|
-
let
|
|
1492
|
-
return
|
|
1490
|
+
xe(d) || (L = `${L}__${JSON.stringify(d)}`);
|
|
1491
|
+
let U = l.get(L);
|
|
1492
|
+
return U || (U = new Intl.DateTimeFormat(b, j({}, I, d)), l.set(L, U)), p ? U.formatToParts(c) : U.format(c);
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const Rn = [
|
|
1495
1495
|
"localeMatcher",
|
|
1496
1496
|
"weekday",
|
|
1497
1497
|
"era",
|
|
@@ -1516,7 +1516,7 @@ const Fn = [
|
|
|
1516
1516
|
function qe(...e) {
|
|
1517
1517
|
const [t, n, r, o] = e, a = {};
|
|
1518
1518
|
let s = {}, l;
|
|
1519
|
-
if (
|
|
1519
|
+
if (v(t)) {
|
|
1520
1520
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1521
1521
|
if (!i)
|
|
1522
1522
|
throw ve(re.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1531,13 +1531,13 @@ function qe(...e) {
|
|
|
1531
1531
|
if (isNaN(t.getTime()))
|
|
1532
1532
|
throw ve(re.INVALID_DATE_ARGUMENT);
|
|
1533
1533
|
l = t;
|
|
1534
|
-
} else if (
|
|
1534
|
+
} else if (V(t))
|
|
1535
1535
|
l = t;
|
|
1536
1536
|
else
|
|
1537
1537
|
throw ve(re.INVALID_ARGUMENT);
|
|
1538
|
-
return
|
|
1539
|
-
|
|
1540
|
-
}),
|
|
1538
|
+
return v(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1539
|
+
Rn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1540
|
+
}), v(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1541
1541
|
}
|
|
1542
1542
|
function zt(e, t, n) {
|
|
1543
1543
|
const r = e;
|
|
@@ -1549,42 +1549,42 @@ function zt(e, t, n) {
|
|
|
1549
1549
|
function Kt(e, ...t) {
|
|
1550
1550
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
1551
1551
|
if (process.env.NODE_ENV !== "production" && !kn.numberFormat)
|
|
1552
|
-
return a(Ee(K.CANNOT_FORMAT_NUMBER)),
|
|
1553
|
-
const [i, c, u,
|
|
1552
|
+
return a(Ee(K.CANNOT_FORMAT_NUMBER)), Ve;
|
|
1553
|
+
const [i, c, u, d] = Ze(...t), _ = P(u.missingWarn) ? u.missingWarn : e.missingWarn, g = P(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = !!u.part, O = v(u.locale) ? u.locale : e.locale, E = s(
|
|
1554
1554
|
e,
|
|
1555
1555
|
o,
|
|
1556
1556
|
O
|
|
1557
1557
|
);
|
|
1558
|
-
if (!
|
|
1559
|
-
return new Intl.NumberFormat(O,
|
|
1560
|
-
let N = {}, b, I = null, T = O,
|
|
1558
|
+
if (!v(i) || i === "")
|
|
1559
|
+
return new Intl.NumberFormat(O, d).format(c);
|
|
1560
|
+
let N = {}, b, I = null, T = O, h = null;
|
|
1561
1561
|
const w = "number format";
|
|
1562
1562
|
for (let z = 0; z < E.length; z++) {
|
|
1563
|
-
if (b =
|
|
1563
|
+
if (b = h = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1564
1564
|
key: i,
|
|
1565
1565
|
target: b
|
|
1566
1566
|
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1567
|
+
const Q = e.__v_emitter;
|
|
1568
|
+
Q && Q.emit("fallback", {
|
|
1569
1569
|
type: w,
|
|
1570
1570
|
key: i,
|
|
1571
1571
|
from: T,
|
|
1572
|
-
to:
|
|
1572
|
+
to: h,
|
|
1573
1573
|
groupId: `${w}:${i}`
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
if (N = n[b] || {}, I = N[i], y(I))
|
|
1577
1577
|
break;
|
|
1578
|
-
gt(e, i, b,
|
|
1578
|
+
gt(e, i, b, _, w), T = h;
|
|
1579
1579
|
}
|
|
1580
|
-
if (!y(I) || !
|
|
1580
|
+
if (!y(I) || !v(b))
|
|
1581
1581
|
return r ? Ge : i;
|
|
1582
1582
|
let L = `${b}__${i}`;
|
|
1583
|
-
xe(
|
|
1584
|
-
let
|
|
1585
|
-
return
|
|
1583
|
+
xe(d) || (L = `${L}__${JSON.stringify(d)}`);
|
|
1584
|
+
let U = l.get(L);
|
|
1585
|
+
return U || (U = new Intl.NumberFormat(b, j({}, I, d)), l.set(L, U)), p ? U.formatToParts(c) : U.format(c);
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const Fn = [
|
|
1588
1588
|
"localeMatcher",
|
|
1589
1589
|
"style",
|
|
1590
1590
|
"currency",
|
|
@@ -1609,12 +1609,12 @@ const Rn = [
|
|
|
1609
1609
|
function Ze(...e) {
|
|
1610
1610
|
const [t, n, r, o] = e, a = {};
|
|
1611
1611
|
let s = {};
|
|
1612
|
-
if (!
|
|
1612
|
+
if (!V(t))
|
|
1613
1613
|
throw ve(re.INVALID_ARGUMENT);
|
|
1614
1614
|
const l = t;
|
|
1615
|
-
return
|
|
1616
|
-
|
|
1617
|
-
}),
|
|
1615
|
+
return v(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1616
|
+
Fn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1617
|
+
}), v(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1618
1618
|
}
|
|
1619
1619
|
function Xt(e, t, n) {
|
|
1620
1620
|
const r = e;
|
|
@@ -1636,10 +1636,10 @@ function Cs() {
|
|
|
1636
1636
|
var e;
|
|
1637
1637
|
return pe !== void 0 || (typeof window < "u" && window.performance ? (pe = !0, et = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (pe = !0, et = global.perf_hooks.performance) : pe = !1), pe;
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Ps() {
|
|
1640
1640
|
return Cs() ? et.now() : Date.now();
|
|
1641
1641
|
}
|
|
1642
|
-
class
|
|
1642
|
+
class As {
|
|
1643
1643
|
constructor(t, n) {
|
|
1644
1644
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
1645
1645
|
const r = {};
|
|
@@ -1667,7 +1667,7 @@ class Ps {
|
|
|
1667
1667
|
a = s;
|
|
1668
1668
|
},
|
|
1669
1669
|
now() {
|
|
1670
|
-
return
|
|
1670
|
+
return Ps();
|
|
1671
1671
|
}
|
|
1672
1672
|
}, n && n.on(Ds, (s, l) => {
|
|
1673
1673
|
s === this.plugin.id && this.fallbacks.setSettings(l);
|
|
@@ -1706,7 +1706,7 @@ function ks(e, t) {
|
|
|
1706
1706
|
if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
1707
1707
|
o.emit(ws, e, t);
|
|
1708
1708
|
else {
|
|
1709
|
-
const s = a ? new
|
|
1709
|
+
const s = a ? new As(n, o) : null;
|
|
1710
1710
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1711
1711
|
pluginDescriptor: n,
|
|
1712
1712
|
setupFn: t,
|
|
@@ -1723,9 +1723,9 @@ const ze = {
|
|
|
1723
1723
|
["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
|
|
1724
1724
|
["vue-i18n-resource-inspector"]: "I18n Resources",
|
|
1725
1725
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
1726
|
-
}, Fs = {
|
|
1727
|
-
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1728
1726
|
}, Rs = {
|
|
1727
|
+
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1728
|
+
}, Fs = {
|
|
1729
1729
|
["vue-i18n-timeline"]: 16764185
|
|
1730
1730
|
};
|
|
1731
1731
|
/*!
|
|
@@ -1777,7 +1777,7 @@ const Y = () => ++Vn, D = {
|
|
|
1777
1777
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Y(),
|
|
1778
1778
|
__EXTEND_POINT__: Y()
|
|
1779
1779
|
};
|
|
1780
|
-
function
|
|
1780
|
+
function J(e, ...t) {
|
|
1781
1781
|
return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Us, args: t } : void 0);
|
|
1782
1782
|
}
|
|
1783
1783
|
const Us = {
|
|
@@ -1795,7 +1795,7 @@ const Us = {
|
|
|
1795
1795
|
[D.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
1796
1796
|
[D.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",
|
|
1797
1797
|
[D.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1798
|
-
}, tt = /* @__PURE__ */ ne("__transrateVNode"), nt = /* @__PURE__ */ ne("__datetimeParts"), ot = /* @__PURE__ */ ne("__numberParts"),
|
|
1798
|
+
}, tt = /* @__PURE__ */ ne("__transrateVNode"), nt = /* @__PURE__ */ ne("__datetimeParts"), ot = /* @__PURE__ */ ne("__numberParts"), we = /* @__PURE__ */ ne("__enableEmitter"), rt = /* @__PURE__ */ ne("__disableEmitter"), xs = ne("__setPluralRules");
|
|
1799
1799
|
ne("__intlifyMeta");
|
|
1800
1800
|
const Gs = /* @__PURE__ */ ne("__injectWithOption");
|
|
1801
1801
|
function st(e) {
|
|
@@ -1821,18 +1821,18 @@ function Un(e, t) {
|
|
|
1821
1821
|
const { locale: i, resource: c } = l;
|
|
1822
1822
|
i ? (s[i] = s[i] || {}, Ie(c, s[i])) : Ie(c, s);
|
|
1823
1823
|
} else
|
|
1824
|
-
|
|
1824
|
+
v(l) && Ie(JSON.parse(l), s);
|
|
1825
1825
|
}), o == null && a)
|
|
1826
1826
|
for (const l in s)
|
|
1827
1827
|
_t(s, l) && st(s[l]);
|
|
1828
1828
|
return s;
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1830
|
+
const ke = (e) => !S(e) || k(e);
|
|
1831
1831
|
function Ie(e, t) {
|
|
1832
|
-
if (
|
|
1833
|
-
throw
|
|
1832
|
+
if (ke(e) || ke(t))
|
|
1833
|
+
throw J(D.INVALID_VALUE);
|
|
1834
1834
|
for (const n in e)
|
|
1835
|
-
_t(e, n) && (
|
|
1835
|
+
_t(e, n) && (ke(e[n]) || ke(t[n]) ? t[n] = e[n] : Ie(e[n], t[n]));
|
|
1836
1836
|
}
|
|
1837
1837
|
function xn(e) {
|
|
1838
1838
|
return e.type;
|
|
@@ -1862,10 +1862,10 @@ function Ws(e, t, n) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function Jt(e) {
|
|
1866
1866
|
return se(Io, null, e, 0);
|
|
1867
1867
|
}
|
|
1868
|
-
const
|
|
1868
|
+
const Qt = "__INTLIFY_META__";
|
|
1869
1869
|
let qt = 0;
|
|
1870
1870
|
function Zt(e) {
|
|
1871
1871
|
return (t, n, r, o) => e(n, r, it() || void 0, o);
|
|
@@ -1873,20 +1873,20 @@ function Zt(e) {
|
|
|
1873
1873
|
const Hs = () => {
|
|
1874
1874
|
const e = it();
|
|
1875
1875
|
let t = null;
|
|
1876
|
-
return e && (t = xn(e)[
|
|
1876
|
+
return e && (t = xn(e)[Qt]) ? { [Qt]: t } : null;
|
|
1877
1877
|
};
|
|
1878
1878
|
function Gn(e = {}, t) {
|
|
1879
1879
|
const { __root: n } = e, r = n === void 0;
|
|
1880
|
-
let o =
|
|
1881
|
-
const a =
|
|
1882
|
-
n && o ? n.locale.value :
|
|
1883
|
-
), s =
|
|
1884
|
-
n && o ? n.fallbackLocale.value :
|
|
1885
|
-
), l =
|
|
1886
|
-
let u = n ? n.missingWarn :
|
|
1880
|
+
let o = P(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1881
|
+
const a = M(
|
|
1882
|
+
n && o ? n.locale.value : v(e.locale) ? e.locale : mt
|
|
1883
|
+
), s = M(
|
|
1884
|
+
n && o ? n.fallbackLocale.value : v(e.fallbackLocale) || k(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1885
|
+
), l = M(Un(a.value, e)), i = M(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = M(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1886
|
+
let u = n ? n.missingWarn : P(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, d = n ? n.fallbackWarn : P(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, _ = n ? n.fallbackRoot : P(e.fallbackRoot) ? e.fallbackRoot : !0, g = !!e.fallbackFormat, p = $(e.missing) ? e.missing : null, O = $(e.missing) ? Zt(e.missing) : null, E = $(e.postTranslation) ? e.postTranslation : null, N = n ? n.warnHtmlMessage : P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
1887
1887
|
const I = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
|
|
1888
|
-
let T = e.pluralRules || n && n.pluralRules,
|
|
1889
|
-
|
|
1888
|
+
let T = e.pluralRules || n && n.pluralRules, h;
|
|
1889
|
+
h = (() => {
|
|
1890
1890
|
r && Gt(null);
|
|
1891
1891
|
const f = {
|
|
1892
1892
|
version: $s,
|
|
@@ -1897,7 +1897,7 @@ function Gn(e = {}, t) {
|
|
|
1897
1897
|
pluralRules: T,
|
|
1898
1898
|
missing: O === null ? void 0 : O,
|
|
1899
1899
|
missingWarn: u,
|
|
1900
|
-
fallbackWarn:
|
|
1900
|
+
fallbackWarn: d,
|
|
1901
1901
|
fallbackFormat: g,
|
|
1902
1902
|
unresolving: !0,
|
|
1903
1903
|
postTranslation: E === null ? void 0 : E,
|
|
@@ -1906,10 +1906,10 @@ function Gn(e = {}, t) {
|
|
|
1906
1906
|
messageResolver: e.messageResolver,
|
|
1907
1907
|
__meta: { framework: "vue" }
|
|
1908
1908
|
};
|
|
1909
|
-
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = y(
|
|
1909
|
+
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = y(h) ? h.__datetimeFormatters : void 0, f.__numberFormatters = y(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = y(h) ? h.__v_emitter : void 0);
|
|
1910
1910
|
const m = Os(f);
|
|
1911
1911
|
return r && Gt(m), m;
|
|
1912
|
-
})(), Te(
|
|
1912
|
+
})(), Te(h, a.value, s.value);
|
|
1913
1913
|
function L() {
|
|
1914
1914
|
return [
|
|
1915
1915
|
a.value,
|
|
@@ -1919,81 +1919,81 @@ function Gn(e = {}, t) {
|
|
|
1919
1919
|
c.value
|
|
1920
1920
|
];
|
|
1921
1921
|
}
|
|
1922
|
-
const
|
|
1922
|
+
const U = W({
|
|
1923
1923
|
get: () => a.value,
|
|
1924
1924
|
set: (f) => {
|
|
1925
|
-
a.value = f,
|
|
1925
|
+
a.value = f, h.locale = a.value;
|
|
1926
1926
|
}
|
|
1927
1927
|
}), z = W({
|
|
1928
1928
|
get: () => s.value,
|
|
1929
1929
|
set: (f) => {
|
|
1930
|
-
s.value = f,
|
|
1930
|
+
s.value = f, h.fallbackLocale = s.value, Te(h, a.value, f);
|
|
1931
1931
|
}
|
|
1932
|
-
}),
|
|
1932
|
+
}), Q = W(() => l.value), q = /* @__PURE__ */ W(() => i.value), Ce = /* @__PURE__ */ W(() => c.value);
|
|
1933
1933
|
function Pe() {
|
|
1934
1934
|
return $(E) ? E : null;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1937
|
-
E = f,
|
|
1936
|
+
function Jn(f) {
|
|
1937
|
+
E = f, h.postTranslation = f;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return
|
|
1939
|
+
function Qn() {
|
|
1940
|
+
return p;
|
|
1941
1941
|
}
|
|
1942
1942
|
function qn(f) {
|
|
1943
|
-
f !== null && (O = Zt(f)),
|
|
1943
|
+
f !== null && (O = Zt(f)), p = f, h.missing = O;
|
|
1944
1944
|
}
|
|
1945
1945
|
function Zn(f, m) {
|
|
1946
1946
|
return f !== "translate" || !m.resolvedMessage;
|
|
1947
1947
|
}
|
|
1948
|
-
const me = (f, m, B, H, je,
|
|
1948
|
+
const me = (f, m, B, H, je, Ae) => {
|
|
1949
1949
|
L();
|
|
1950
1950
|
let ge;
|
|
1951
1951
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1952
1952
|
try {
|
|
1953
|
-
xt(Hs()), r || (
|
|
1953
|
+
xt(Hs()), r || (h.fallbackContext = n ? Es() : void 0), ge = f(h);
|
|
1954
1954
|
} finally {
|
|
1955
|
-
xt(null), r || (
|
|
1955
|
+
xt(null), r || (h.fallbackContext = void 0);
|
|
1956
1956
|
}
|
|
1957
1957
|
else
|
|
1958
|
-
ge = f(
|
|
1959
|
-
if (
|
|
1958
|
+
ge = f(h);
|
|
1959
|
+
if (V(ge) && ge === Ge) {
|
|
1960
1960
|
const [le, No] = m();
|
|
1961
|
-
if (process.env.NODE_ENV !== "production" && n &&
|
|
1961
|
+
if (process.env.NODE_ENV !== "production" && n && v(le) && Zn(B, No) && (_ && (We(d, le) || Dn(u, le)) && be(He(Z.FALLBACK_TO_ROOT, {
|
|
1962
1962
|
key: le,
|
|
1963
1963
|
type: B
|
|
1964
1964
|
})), process.env.NODE_ENV !== "production")) {
|
|
1965
|
-
const { __v_emitter: Nt } =
|
|
1966
|
-
Nt &&
|
|
1965
|
+
const { __v_emitter: Nt } = h;
|
|
1966
|
+
Nt && _ && Nt.emit("fallback", {
|
|
1967
1967
|
type: B,
|
|
1968
1968
|
key: le,
|
|
1969
1969
|
to: "global",
|
|
1970
1970
|
groupId: `${B}:${le}`
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
return n &&
|
|
1973
|
+
return n && _ ? H(n) : je(le);
|
|
1974
1974
|
} else {
|
|
1975
|
-
if (
|
|
1975
|
+
if (Ae(ge))
|
|
1976
1976
|
return ge;
|
|
1977
|
-
throw
|
|
1977
|
+
throw J(D.UNEXPECTED_RETURN_TYPE);
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
1980
|
function Et(...f) {
|
|
1981
|
-
return me((m) => Reflect.apply(jt, null, [m, ...f]), () =>
|
|
1981
|
+
return me((m) => Reflect.apply(jt, null, [m, ...f]), () => Qe(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => v(m));
|
|
1982
1982
|
}
|
|
1983
1983
|
function eo(...f) {
|
|
1984
1984
|
const [m, B, H] = f;
|
|
1985
1985
|
if (H && !S(H))
|
|
1986
|
-
throw
|
|
1986
|
+
throw J(D.INVALID_ARGUMENT);
|
|
1987
1987
|
return Et(m, B, j({ resolvedMessage: !0 }, H || {}));
|
|
1988
1988
|
}
|
|
1989
1989
|
function to(...f) {
|
|
1990
|
-
return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () =>
|
|
1990
|
+
return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ve, (m) => v(m));
|
|
1991
1991
|
}
|
|
1992
1992
|
function no(...f) {
|
|
1993
|
-
return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () =>
|
|
1993
|
+
return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ve, (m) => v(m));
|
|
1994
1994
|
}
|
|
1995
1995
|
function oo(f) {
|
|
1996
|
-
return f.map((m) =>
|
|
1996
|
+
return f.map((m) => v(m) || V(m) || P(m) ? Jt(String(m)) : m);
|
|
1997
1997
|
}
|
|
1998
1998
|
const ro = {
|
|
1999
1999
|
normalize: oo,
|
|
@@ -2012,10 +2012,10 @@ function Gn(e = {}, t) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
return B;
|
|
2014
2014
|
},
|
|
2015
|
-
() =>
|
|
2015
|
+
() => Qe(...f),
|
|
2016
2016
|
"translate",
|
|
2017
2017
|
(m) => m[tt](...f),
|
|
2018
|
-
(m) => [
|
|
2018
|
+
(m) => [Jt(m)],
|
|
2019
2019
|
(m) => k(m)
|
|
2020
2020
|
);
|
|
2021
2021
|
}
|
|
@@ -2026,7 +2026,7 @@ function Gn(e = {}, t) {
|
|
|
2026
2026
|
"number format",
|
|
2027
2027
|
(m) => m[ot](...f),
|
|
2028
2028
|
() => [],
|
|
2029
|
-
(m) =>
|
|
2029
|
+
(m) => v(m) || k(m)
|
|
2030
2030
|
);
|
|
2031
2031
|
}
|
|
2032
2032
|
function lo(...f) {
|
|
@@ -2036,23 +2036,23 @@ function Gn(e = {}, t) {
|
|
|
2036
2036
|
"datetime format",
|
|
2037
2037
|
(m) => m[nt](...f),
|
|
2038
2038
|
() => [],
|
|
2039
|
-
(m) =>
|
|
2039
|
+
(m) => v(m) || k(m)
|
|
2040
2040
|
);
|
|
2041
2041
|
}
|
|
2042
2042
|
function io(f) {
|
|
2043
|
-
T = f,
|
|
2043
|
+
T = f, h.pluralRules = T;
|
|
2044
2044
|
}
|
|
2045
2045
|
function co(f, m) {
|
|
2046
|
-
const B =
|
|
2047
|
-
return
|
|
2046
|
+
const B = v(m) ? m : a.value, H = Ot(B);
|
|
2047
|
+
return h.messageResolver(H, f) !== null;
|
|
2048
2048
|
}
|
|
2049
2049
|
function uo(f) {
|
|
2050
2050
|
let m = null;
|
|
2051
|
-
const B = yn(
|
|
2051
|
+
const B = yn(h, s.value, a.value);
|
|
2052
2052
|
for (let H = 0; H < B.length; H++) {
|
|
2053
|
-
const je = l.value[B[H]] || {},
|
|
2054
|
-
if (
|
|
2055
|
-
m =
|
|
2053
|
+
const je = l.value[B[H]] || {}, Ae = h.messageResolver(je, f);
|
|
2054
|
+
if (Ae != null) {
|
|
2055
|
+
m = Ae;
|
|
2056
2056
|
break;
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
@@ -2066,48 +2066,48 @@ function Gn(e = {}, t) {
|
|
|
2066
2066
|
return l.value[f] || {};
|
|
2067
2067
|
}
|
|
2068
2068
|
function _o(f, m) {
|
|
2069
|
-
l.value[f] = m,
|
|
2069
|
+
l.value[f] = m, h.messages = l.value;
|
|
2070
2070
|
}
|
|
2071
2071
|
function mo(f, m) {
|
|
2072
|
-
l.value[f] = l.value[f] || {}, Ie(m, l.value[f]),
|
|
2072
|
+
l.value[f] = l.value[f] || {}, Ie(m, l.value[f]), h.messages = l.value;
|
|
2073
2073
|
}
|
|
2074
2074
|
function go(f) {
|
|
2075
2075
|
return i.value[f] || {};
|
|
2076
2076
|
}
|
|
2077
2077
|
function po(f, m) {
|
|
2078
|
-
i.value[f] = m,
|
|
2078
|
+
i.value[f] = m, h.datetimeFormats = i.value, zt(h, f, m);
|
|
2079
2079
|
}
|
|
2080
2080
|
function ho(f, m) {
|
|
2081
|
-
i.value[f] = j(i.value[f] || {}, m),
|
|
2081
|
+
i.value[f] = j(i.value[f] || {}, m), h.datetimeFormats = i.value, zt(h, f, m);
|
|
2082
2082
|
}
|
|
2083
2083
|
function vo(f) {
|
|
2084
2084
|
return c.value[f] || {};
|
|
2085
2085
|
}
|
|
2086
2086
|
function Eo(f, m) {
|
|
2087
|
-
c.value[f] = m,
|
|
2087
|
+
c.value[f] = m, h.numberFormats = c.value, Xt(h, f, m);
|
|
2088
2088
|
}
|
|
2089
2089
|
function Oo(f, m) {
|
|
2090
|
-
c.value[f] = j(c.value[f] || {}, m),
|
|
2090
|
+
c.value[f] = j(c.value[f] || {}, m), h.numberFormats = c.value, Xt(h, f, m);
|
|
2091
2091
|
}
|
|
2092
|
-
qt++, n && te && (
|
|
2093
|
-
o && (a.value = f,
|
|
2094
|
-
}),
|
|
2095
|
-
o && (s.value = f,
|
|
2092
|
+
qt++, n && te && ($e(n.locale, (f) => {
|
|
2093
|
+
o && (a.value = f, h.locale = f, Te(h, a.value, s.value));
|
|
2094
|
+
}), $e(n.fallbackLocale, (f) => {
|
|
2095
|
+
o && (s.value = f, h.fallbackLocale = f, Te(h, a.value, s.value));
|
|
2096
2096
|
}));
|
|
2097
|
-
const
|
|
2097
|
+
const R = {
|
|
2098
2098
|
id: qt,
|
|
2099
|
-
locale:
|
|
2099
|
+
locale: U,
|
|
2100
2100
|
fallbackLocale: z,
|
|
2101
2101
|
get inheritLocale() {
|
|
2102
2102
|
return o;
|
|
2103
2103
|
},
|
|
2104
2104
|
set inheritLocale(f) {
|
|
2105
|
-
o = f, f && n && (a.value = n.locale.value, s.value = n.fallbackLocale.value, Te(
|
|
2105
|
+
o = f, f && n && (a.value = n.locale.value, s.value = n.fallbackLocale.value, Te(h, a.value, s.value));
|
|
2106
2106
|
},
|
|
2107
2107
|
get availableLocales() {
|
|
2108
2108
|
return Object.keys(l.value).sort();
|
|
2109
2109
|
},
|
|
2110
|
-
messages:
|
|
2110
|
+
messages: Q,
|
|
2111
2111
|
get modifiers() {
|
|
2112
2112
|
return I;
|
|
2113
2113
|
},
|
|
@@ -2121,53 +2121,53 @@ function Gn(e = {}, t) {
|
|
|
2121
2121
|
return u;
|
|
2122
2122
|
},
|
|
2123
2123
|
set missingWarn(f) {
|
|
2124
|
-
u = f,
|
|
2124
|
+
u = f, h.missingWarn = u;
|
|
2125
2125
|
},
|
|
2126
2126
|
get fallbackWarn() {
|
|
2127
|
-
return
|
|
2127
|
+
return d;
|
|
2128
2128
|
},
|
|
2129
2129
|
set fallbackWarn(f) {
|
|
2130
|
-
|
|
2130
|
+
d = f, h.fallbackWarn = d;
|
|
2131
2131
|
},
|
|
2132
2132
|
get fallbackRoot() {
|
|
2133
|
-
return
|
|
2133
|
+
return _;
|
|
2134
2134
|
},
|
|
2135
2135
|
set fallbackRoot(f) {
|
|
2136
|
-
|
|
2136
|
+
_ = f;
|
|
2137
2137
|
},
|
|
2138
2138
|
get fallbackFormat() {
|
|
2139
2139
|
return g;
|
|
2140
2140
|
},
|
|
2141
2141
|
set fallbackFormat(f) {
|
|
2142
|
-
g = f,
|
|
2142
|
+
g = f, h.fallbackFormat = g;
|
|
2143
2143
|
},
|
|
2144
2144
|
get warnHtmlMessage() {
|
|
2145
2145
|
return N;
|
|
2146
2146
|
},
|
|
2147
2147
|
set warnHtmlMessage(f) {
|
|
2148
|
-
N = f,
|
|
2148
|
+
N = f, h.warnHtmlMessage = f;
|
|
2149
2149
|
},
|
|
2150
2150
|
get escapeParameter() {
|
|
2151
2151
|
return b;
|
|
2152
2152
|
},
|
|
2153
2153
|
set escapeParameter(f) {
|
|
2154
|
-
b = f,
|
|
2154
|
+
b = f, h.escapeParameter = f;
|
|
2155
2155
|
},
|
|
2156
2156
|
t: Et,
|
|
2157
2157
|
getLocaleMessage: Ot,
|
|
2158
2158
|
setLocaleMessage: _o,
|
|
2159
2159
|
mergeLocaleMessage: mo,
|
|
2160
2160
|
getPostTranslationHandler: Pe,
|
|
2161
|
-
setPostTranslationHandler:
|
|
2162
|
-
getMissingHandler:
|
|
2161
|
+
setPostTranslationHandler: Jn,
|
|
2162
|
+
getMissingHandler: Qn,
|
|
2163
2163
|
setMissingHandler: qn,
|
|
2164
2164
|
[xs]: io
|
|
2165
2165
|
};
|
|
2166
|
-
return
|
|
2167
|
-
|
|
2168
|
-
},
|
|
2169
|
-
|
|
2170
|
-
}),
|
|
2166
|
+
return R.datetimeFormats = q, R.numberFormats = Ce, R.rt = eo, R.te = co, R.tm = fo, R.d = to, R.n = no, R.getDateTimeFormat = go, R.setDateTimeFormat = po, R.mergeDateTimeFormat = ho, R.getNumberFormat = vo, R.setNumberFormat = Eo, R.mergeNumberFormat = Oo, R[Gs] = e.__injectWithOption, R[tt] = so, R[nt] = lo, R[ot] = ao, process.env.NODE_ENV !== "production" && (R[we] = (f) => {
|
|
2167
|
+
h.__v_emitter = f;
|
|
2168
|
+
}, R[rt] = () => {
|
|
2169
|
+
h.__v_emitter = void 0;
|
|
2170
|
+
}), R;
|
|
2171
2171
|
}
|
|
2172
2172
|
const pt = {
|
|
2173
2173
|
tag: {
|
|
@@ -2206,7 +2206,7 @@ const Ke = {
|
|
|
2206
2206
|
},
|
|
2207
2207
|
plural: {
|
|
2208
2208
|
type: [Number, String],
|
|
2209
|
-
validator: (e) =>
|
|
2209
|
+
validator: (e) => V(e) || !isNaN(e)
|
|
2210
2210
|
}
|
|
2211
2211
|
}, pt),
|
|
2212
2212
|
setup(e, t) {
|
|
@@ -2215,30 +2215,30 @@ const Ke = {
|
|
|
2215
2215
|
__useComponent: !0
|
|
2216
2216
|
});
|
|
2217
2217
|
return () => {
|
|
2218
|
-
const a = Object.keys(n).filter((
|
|
2219
|
-
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural =
|
|
2220
|
-
const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u =
|
|
2221
|
-
return
|
|
2218
|
+
const a = Object.keys(n).filter((d) => d !== "_"), s = {};
|
|
2219
|
+
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = v(e.plural) ? +e.plural : e.plural);
|
|
2220
|
+
const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u = v(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2221
|
+
return Fe(u, c, i);
|
|
2222
2222
|
};
|
|
2223
2223
|
}
|
|
2224
2224
|
};
|
|
2225
2225
|
function Bs(e) {
|
|
2226
|
-
return k(e) && !
|
|
2226
|
+
return k(e) && !v(e[0]);
|
|
2227
2227
|
}
|
|
2228
2228
|
function Hn(e, t, n, r) {
|
|
2229
2229
|
const { slots: o, attrs: a } = t;
|
|
2230
2230
|
return () => {
|
|
2231
2231
|
const s = { part: !0 };
|
|
2232
2232
|
let l = {};
|
|
2233
|
-
e.locale && (s.locale = e.locale),
|
|
2233
|
+
e.locale && (s.locale = e.locale), v(e.format) ? s.key = e.format : S(e.format) && (v(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? j({}, _, { [g]: e.format[g] }) : _, {}));
|
|
2234
2234
|
const i = r(e.value, s, l);
|
|
2235
2235
|
let c = [s.key];
|
|
2236
|
-
k(i) ? c = i.map((
|
|
2237
|
-
const
|
|
2238
|
-
return Bs(O) && (O[0].key = `${
|
|
2239
|
-
}) :
|
|
2240
|
-
const u = j({}, a),
|
|
2241
|
-
return
|
|
2236
|
+
k(i) ? c = i.map((_, g) => {
|
|
2237
|
+
const p = o[_.type], O = p ? p({ [_.type]: _.value, index: g, parts: i }) : [_.value];
|
|
2238
|
+
return Bs(O) && (O[0].key = `${_.type}-${g}`), O;
|
|
2239
|
+
}) : v(i) && (c = [i]);
|
|
2240
|
+
const u = j({}, a), d = v(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2241
|
+
return Fe(d, u, c);
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
2244
|
const en = {
|
|
@@ -2254,7 +2254,7 @@ const en = {
|
|
|
2254
2254
|
}, pt),
|
|
2255
2255
|
setup(e, t) {
|
|
2256
2256
|
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2257
|
-
return Hn(e, t,
|
|
2257
|
+
return Hn(e, t, Fn, (...r) => n[ot](...r));
|
|
2258
2258
|
}
|
|
2259
2259
|
}, tn = {
|
|
2260
2260
|
name: "i18n-d",
|
|
@@ -2269,7 +2269,7 @@ const en = {
|
|
|
2269
2269
|
}, pt),
|
|
2270
2270
|
setup(e, t) {
|
|
2271
2271
|
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2272
|
-
return Hn(e, t,
|
|
2272
|
+
return Hn(e, t, Rn, (...r) => n[nt](...r));
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
function Ys(e, t) {
|
|
@@ -2285,19 +2285,19 @@ function zs(e) {
|
|
|
2285
2285
|
const t = (s) => {
|
|
2286
2286
|
const { instance: l, modifiers: i, value: c } = s;
|
|
2287
2287
|
if (!l || !l.$)
|
|
2288
|
-
throw
|
|
2288
|
+
throw J(D.UNEXPECTED_ERROR);
|
|
2289
2289
|
const u = Ys(e, l.$);
|
|
2290
2290
|
process.env.NODE_ENV !== "production" && i.preserve && be(He(Z.NOT_SUPPORTED_PRESERVE));
|
|
2291
|
-
const
|
|
2291
|
+
const d = nn(c);
|
|
2292
2292
|
return [
|
|
2293
|
-
Reflect.apply(u.t, u, [...on(
|
|
2293
|
+
Reflect.apply(u.t, u, [...on(d)]),
|
|
2294
2294
|
u
|
|
2295
2295
|
];
|
|
2296
2296
|
};
|
|
2297
2297
|
return {
|
|
2298
2298
|
created: (s, l) => {
|
|
2299
2299
|
const [i, c] = t(l);
|
|
2300
|
-
te && e.global === c && (s.__i18nWatcher =
|
|
2300
|
+
te && e.global === c && (s.__i18nWatcher = $e(c.locale, () => {
|
|
2301
2301
|
l.instance && l.instance.$forceUpdate();
|
|
2302
2302
|
})), s.__composer = c, s.textContent = i;
|
|
2303
2303
|
},
|
|
@@ -2319,21 +2319,21 @@ function zs(e) {
|
|
|
2319
2319
|
};
|
|
2320
2320
|
}
|
|
2321
2321
|
function nn(e) {
|
|
2322
|
-
if (
|
|
2322
|
+
if (v(e))
|
|
2323
2323
|
return { path: e };
|
|
2324
2324
|
if (y(e)) {
|
|
2325
2325
|
if (!("path" in e))
|
|
2326
|
-
throw
|
|
2326
|
+
throw J(D.REQUIRED_VALUE, "path");
|
|
2327
2327
|
return e;
|
|
2328
2328
|
} else
|
|
2329
|
-
throw
|
|
2329
|
+
throw J(D.INVALID_VALUE);
|
|
2330
2330
|
}
|
|
2331
2331
|
function on(e) {
|
|
2332
2332
|
const { path: t, locale: n, args: r, choice: o, plural: a } = e, s = {}, l = r || {};
|
|
2333
|
-
return
|
|
2333
|
+
return v(n) && (s.locale = n), V(o) && (s.plural = o), V(a) && (s.plural = a), [t, l, s];
|
|
2334
2334
|
}
|
|
2335
2335
|
function Ks(e, t, ...n) {
|
|
2336
|
-
const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a =
|
|
2336
|
+
const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a = P(r.globalInstall) ? r.globalInstall : !0;
|
|
2337
2337
|
process.env.NODE_ENV !== "production" && a && o && be(He(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
2338
2338
|
name: Ke.name
|
|
2339
2339
|
})), a && (e.component(o ? "i18n" : Ke.name, Ke), e.component(en.name, en), e.component(tn.name, tn)), e.directive("t", zs(t));
|
|
@@ -2353,14 +2353,14 @@ async function Xs(e, t) {
|
|
|
2353
2353
|
app: e
|
|
2354
2354
|
}, (o) => {
|
|
2355
2355
|
at = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
|
|
2356
|
-
|
|
2356
|
+
Js(s, l, t);
|
|
2357
2357
|
}), o.on.inspectComponent(({ componentInstance: s, instanceData: l }) => {
|
|
2358
2358
|
s.vnode.el && s.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? s.vnode.el.__VUE_I18N__ !== t.global.__composer && rn(l, s.vnode.el.__VUE_I18N__) : rn(l, s.vnode.el.__VUE_I18N__));
|
|
2359
2359
|
}), o.addInspector({
|
|
2360
2360
|
id: "vue-i18n-resource-inspector",
|
|
2361
2361
|
label: ze["vue-i18n-resource-inspector"],
|
|
2362
2362
|
icon: "language",
|
|
2363
|
-
treeFilterPlaceholder:
|
|
2363
|
+
treeFilterPlaceholder: Rs["vue-i18n-resource-inspector"]
|
|
2364
2364
|
}), o.on.getInspectorTree((s) => {
|
|
2365
2365
|
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && ta(s, t);
|
|
2366
2366
|
});
|
|
@@ -2382,7 +2382,7 @@ async function Xs(e, t) {
|
|
|
2382
2382
|
}), o.addTimelineLayer({
|
|
2383
2383
|
id: "vue-i18n-timeline",
|
|
2384
2384
|
label: ze["vue-i18n-timeline"],
|
|
2385
|
-
color:
|
|
2385
|
+
color: Fs["vue-i18n-timeline"]
|
|
2386
2386
|
}), n(!0);
|
|
2387
2387
|
});
|
|
2388
2388
|
} catch (o) {
|
|
@@ -2393,7 +2393,7 @@ async function Xs(e, t) {
|
|
|
2393
2393
|
function Bn(e) {
|
|
2394
2394
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Js(e, t, n) {
|
|
2397
2397
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2398
2398
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2399
2399
|
const o = {
|
|
@@ -2450,7 +2450,7 @@ function ht(e) {
|
|
|
2450
2450
|
$(r) && "source" in r ? t[n] = ea(r) : S(r) ? t[n] = ht(r) : t[n] = r;
|
|
2451
2451
|
}), t;
|
|
2452
2452
|
}
|
|
2453
|
-
const
|
|
2453
|
+
const Qs = {
|
|
2454
2454
|
"<": "<",
|
|
2455
2455
|
">": ">",
|
|
2456
2456
|
'"': """,
|
|
@@ -2460,7 +2460,7 @@ function qs(e) {
|
|
|
2460
2460
|
return e.replace(/[<>"&]/g, Zs);
|
|
2461
2461
|
}
|
|
2462
2462
|
function Zs(e) {
|
|
2463
|
-
return
|
|
2463
|
+
return Qs[e] || e;
|
|
2464
2464
|
}
|
|
2465
2465
|
function ea(e) {
|
|
2466
2466
|
const t = e.source ? `("${qs(e.source)}")` : "(?)";
|
|
@@ -2587,41 +2587,41 @@ function sa(e, t) {
|
|
|
2587
2587
|
const n = Yn(e.nodeId, t);
|
|
2588
2588
|
if (n) {
|
|
2589
2589
|
const [r] = e.path;
|
|
2590
|
-
r === "locale" &&
|
|
2590
|
+
r === "locale" && v(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (v(e.state.value) || k(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && P(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
const aa = /* @__PURE__ */ ne("global-vue-i18n");
|
|
2594
2594
|
function la(e = {}, t) {
|
|
2595
|
-
const n =
|
|
2596
|
-
function i(
|
|
2597
|
-
return o.get(
|
|
2595
|
+
const n = P(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] = ia(e), l = ne(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
2596
|
+
function i(d) {
|
|
2597
|
+
return o.get(d) || null;
|
|
2598
2598
|
}
|
|
2599
|
-
function c(
|
|
2600
|
-
o.set(
|
|
2599
|
+
function c(d, _) {
|
|
2600
|
+
o.set(d, _);
|
|
2601
2601
|
}
|
|
2602
|
-
function u(
|
|
2603
|
-
o.delete(
|
|
2602
|
+
function u(d) {
|
|
2603
|
+
o.delete(d);
|
|
2604
2604
|
}
|
|
2605
2605
|
{
|
|
2606
|
-
const
|
|
2606
|
+
const d = {
|
|
2607
2607
|
get mode() {
|
|
2608
2608
|
return "composition";
|
|
2609
2609
|
},
|
|
2610
2610
|
get allowComposition() {
|
|
2611
2611
|
return r;
|
|
2612
2612
|
},
|
|
2613
|
-
async install(
|
|
2614
|
-
process.env.NODE_ENV !== "production" && (
|
|
2615
|
-
const
|
|
2616
|
-
if (
|
|
2617
|
-
|
|
2613
|
+
async install(_, ...g) {
|
|
2614
|
+
process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = d), _.__VUE_I18N_SYMBOL__ = l, _.provide(_.__VUE_I18N_SYMBOL__, d), n && pa(_, d.global), Ks(_, d, ...g);
|
|
2615
|
+
const p = _.unmount;
|
|
2616
|
+
if (_.unmount = () => {
|
|
2617
|
+
d.dispose(), p();
|
|
2618
2618
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
2619
|
-
if (!await Xs(
|
|
2620
|
-
throw
|
|
2619
|
+
if (!await Xs(_, d))
|
|
2620
|
+
throw J(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2621
2621
|
const E = Nn();
|
|
2622
2622
|
{
|
|
2623
2623
|
const N = s;
|
|
2624
|
-
N[
|
|
2624
|
+
N[we] && N[we](E);
|
|
2625
2625
|
}
|
|
2626
2626
|
E.on("*", lt);
|
|
2627
2627
|
}
|
|
@@ -2637,15 +2637,15 @@ function la(e = {}, t) {
|
|
|
2637
2637
|
__setInstance: c,
|
|
2638
2638
|
__deleteInstance: u
|
|
2639
2639
|
};
|
|
2640
|
-
return
|
|
2640
|
+
return d;
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
2643
|
function vt(e = {}) {
|
|
2644
2644
|
const t = it();
|
|
2645
2645
|
if (t == null)
|
|
2646
|
-
throw
|
|
2646
|
+
throw J(D.MUST_BE_CALL_SETUP_TOP);
|
|
2647
2647
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2648
|
-
throw
|
|
2648
|
+
throw J(D.NOT_INSLALLED);
|
|
2649
2649
|
const n = ca(t), r = fa(n), o = xn(t), a = ua(e, o);
|
|
2650
2650
|
if (a === "global")
|
|
2651
2651
|
return Ws(r, e, o), r;
|
|
@@ -2666,7 +2666,7 @@ function ia(e, t, n) {
|
|
|
2666
2666
|
{
|
|
2667
2667
|
const o = r.run(() => Gn(e));
|
|
2668
2668
|
if (o == null)
|
|
2669
|
-
throw
|
|
2669
|
+
throw J(D.UNEXPECTED_ERROR);
|
|
2670
2670
|
return [r, o];
|
|
2671
2671
|
}
|
|
2672
2672
|
}
|
|
@@ -2674,7 +2674,7 @@ function ca(e) {
|
|
|
2674
2674
|
{
|
|
2675
2675
|
const t = fn(e.isCE ? aa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2676
2676
|
if (!t)
|
|
2677
|
-
throw
|
|
2677
|
+
throw J(e.isCE ? D.NOT_INSLALLED_WITH_PROVIDE : D.UNEXPECTED_ERROR);
|
|
2678
2678
|
return t;
|
|
2679
2679
|
}
|
|
2680
2680
|
}
|
|
@@ -2702,7 +2702,7 @@ function da(e, t, n) {
|
|
|
2702
2702
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
2703
2703
|
t.vnode.el.__VUE_I18N__ = n, r = Nn();
|
|
2704
2704
|
const o = n;
|
|
2705
|
-
o[
|
|
2705
|
+
o[we] && o[we](r), r.on("*", lt);
|
|
2706
2706
|
}
|
|
2707
2707
|
}, t), yo(() => {
|
|
2708
2708
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
@@ -2723,7 +2723,7 @@ function pa(e, t) {
|
|
|
2723
2723
|
ma.forEach((r) => {
|
|
2724
2724
|
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
2725
2725
|
if (!o)
|
|
2726
|
-
throw
|
|
2726
|
+
throw J(D.UNEXPECTED_ERROR);
|
|
2727
2727
|
const a = Lo(o.value) ? {
|
|
2728
2728
|
get() {
|
|
2729
2729
|
return o.value.value;
|
|
@@ -2740,11 +2740,11 @@ function pa(e, t) {
|
|
|
2740
2740
|
}), e.config.globalProperties.$i18n = n, ga.forEach((r) => {
|
|
2741
2741
|
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
2742
2742
|
if (!o || !o.value)
|
|
2743
|
-
throw
|
|
2743
|
+
throw J(D.UNEXPECTED_ERROR);
|
|
2744
2744
|
Object.defineProperty(e.config.globalProperties, `$${r}`, o);
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
|
-
ps(
|
|
2747
|
+
ps(Jr);
|
|
2748
2748
|
hs(yn);
|
|
2749
2749
|
Ms();
|
|
2750
2750
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
@@ -2766,8 +2766,8 @@ const ha = {
|
|
|
2766
2766
|
Ne("right", wr);
|
|
2767
2767
|
Ne("group", Dr);
|
|
2768
2768
|
Ne("group-closed", Cr);
|
|
2769
|
-
Ne("user",
|
|
2770
|
-
Ne("plus",
|
|
2769
|
+
Ne("user", Pr);
|
|
2770
|
+
Ne("plus", Ar);
|
|
2771
2771
|
Ne("minus", kr);
|
|
2772
2772
|
const Ea = _e({
|
|
2773
2773
|
components: {
|
|
@@ -2806,10 +2806,10 @@ const Ea = _e({
|
|
|
2806
2806
|
silentFallbackWarn: !0
|
|
2807
2807
|
});
|
|
2808
2808
|
So("theme", e.theme);
|
|
2809
|
-
const n =
|
|
2809
|
+
const n = M({
|
|
2810
2810
|
onlyShowOnline: !1,
|
|
2811
2811
|
searchStr: ""
|
|
2812
|
-
}), r =
|
|
2812
|
+
}), r = M();
|
|
2813
2813
|
return {
|
|
2814
2814
|
i18nHello: t.global,
|
|
2815
2815
|
inputSearchRef: r,
|
|
@@ -2821,7 +2821,7 @@ const Oa = { class: "device-group-list" }, Na = { class: "search-panel" }, ba =
|
|
|
2821
2821
|
function ya(e, t, n, r, o, a) {
|
|
2822
2822
|
var s;
|
|
2823
2823
|
const l = ie("CountShow"), i = ie("group-show");
|
|
2824
|
-
return
|
|
2824
|
+
return A(), F("div", Oa, [
|
|
2825
2825
|
C("div", Na, [
|
|
2826
2826
|
se(l, { countInfo: e.deviceGroup }, {
|
|
2827
2827
|
default: ce(() => [
|
|
@@ -2837,18 +2837,18 @@ function ya(e, t, n, r, o, a) {
|
|
|
2837
2837
|
}, 8, ["countInfo"])
|
|
2838
2838
|
]),
|
|
2839
2839
|
C("div", Ta, [
|
|
2840
|
-
(
|
|
2840
|
+
(A(!0), F(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (A(), _n(i, {
|
|
2841
2841
|
controlParams: e.controlParams,
|
|
2842
2842
|
key: u,
|
|
2843
2843
|
deviceGroup: c
|
|
2844
2844
|
}, {
|
|
2845
|
-
group: ce(({ group:
|
|
2846
|
-
oe(e.$slots, "group", { group:
|
|
2845
|
+
group: ce(({ group: d }) => [
|
|
2846
|
+
oe(e.$slots, "group", { group: d }, void 0, !0)
|
|
2847
2847
|
]),
|
|
2848
|
-
device: ce(({ device:
|
|
2848
|
+
device: ce(({ device: d, group: _ }) => [
|
|
2849
2849
|
oe(e.$slots, "device", {
|
|
2850
|
-
device:
|
|
2851
|
-
group:
|
|
2850
|
+
device: d,
|
|
2851
|
+
group: _
|
|
2852
2852
|
}, void 0, !0)
|
|
2853
2853
|
]),
|
|
2854
2854
|
_: 2
|
|
@@ -2864,9 +2864,9 @@ var Ia = Object.defineProperty, Sa = Object.defineProperties, wa = Object.getOwn
|
|
|
2864
2864
|
for (var n of sn(t))
|
|
2865
2865
|
Ca.call(t, n) && an(e, n, t[n]);
|
|
2866
2866
|
return e;
|
|
2867
|
-
},
|
|
2867
|
+
}, Pa = (e, t) => Sa(e, wa(t));
|
|
2868
2868
|
const ye = 6, ln = ye * 2;
|
|
2869
|
-
function
|
|
2869
|
+
function Aa(e, t) {
|
|
2870
2870
|
return e.map(
|
|
2871
2871
|
({ leftTop: { col: n, row: r }, rightBottom: { col: o, row: a } }) => `<line x1="${n * t.col + ye}" y1="${r * t.row + ye}" x2="${o * t.col + ye}" y2="${a * t.row + ye}" stroke="black" stroke-width="5"/>`
|
|
2872
2872
|
).join(" ");
|
|
@@ -2874,9 +2874,9 @@ function Pa(e, t) {
|
|
|
2874
2874
|
function ka(e, t, n) {
|
|
2875
2875
|
return n.findIndex((r) => e >= r.leftTop.row && e < r.rightBottom.row && t >= r.leftTop.col && t < r.rightBottom.col) >= 0;
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2877
|
+
function Ra(e, t, n) {
|
|
2878
2878
|
n.forEach((r) => {
|
|
2879
|
-
const o =
|
|
2879
|
+
const o = Pa(zn({}, r.leftTop), {
|
|
2880
2880
|
id: Kn(r.leftTop),
|
|
2881
2881
|
layout: {
|
|
2882
2882
|
left: 100 / t.col * r.leftTop.col,
|
|
@@ -2892,7 +2892,7 @@ function Kn(e) {
|
|
|
2892
2892
|
return `${e.row}-${e.col}`;
|
|
2893
2893
|
}
|
|
2894
2894
|
const cn = "ComponentsDefaultLayoutKeyAF84566";
|
|
2895
|
-
function
|
|
2895
|
+
function Fa(e) {
|
|
2896
2896
|
const t = [], n = [];
|
|
2897
2897
|
for (let r = 0; r < e.points.length / 2; r++)
|
|
2898
2898
|
n.push(e.points.slice(r * 2, r * 2 + 2));
|
|
@@ -2916,7 +2916,7 @@ function Ra(e) {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
return t;
|
|
2918
2918
|
}
|
|
2919
|
-
const
|
|
2919
|
+
const Ue = {
|
|
2920
2920
|
TransLayoutToFrams(e) {
|
|
2921
2921
|
const t = [];
|
|
2922
2922
|
e.area && t.push(e.area), e.areas && t.push(...e.areas);
|
|
@@ -2936,7 +2936,7 @@ const Se = {
|
|
|
2936
2936
|
}, { row: r, col: o });
|
|
2937
2937
|
n.push(a);
|
|
2938
2938
|
}
|
|
2939
|
-
return
|
|
2939
|
+
return Ra(n, e, t), n;
|
|
2940
2940
|
},
|
|
2941
2941
|
TransLayoutToSVG(e, t) {
|
|
2942
2942
|
const n = [];
|
|
@@ -2952,20 +2952,20 @@ const Se = {
|
|
|
2952
2952
|
col: c,
|
|
2953
2953
|
points: [0, e.row]
|
|
2954
2954
|
});
|
|
2955
|
-
n.forEach(({ leftTop: { row: c, col: u }, rightBottom: { row:
|
|
2956
|
-
for (let g = c + 1; g <
|
|
2957
|
-
r[g].points.push(u,
|
|
2958
|
-
for (let g = u + 1; g <
|
|
2959
|
-
o[g].points.push(c,
|
|
2955
|
+
n.forEach(({ leftTop: { row: c, col: u }, rightBottom: { row: d, col: _ } }) => {
|
|
2956
|
+
for (let g = c + 1; g < d; g++)
|
|
2957
|
+
r[g].points.push(u, _);
|
|
2958
|
+
for (let g = u + 1; g < _; g++)
|
|
2959
|
+
o[g].points.push(c, d);
|
|
2960
2960
|
});
|
|
2961
2961
|
const a = r.concat(...o), s = [];
|
|
2962
2962
|
a.forEach((c) => {
|
|
2963
|
-
c.points = c.points.sort(), s.push(...
|
|
2963
|
+
c.points = c.points.sort(), s.push(...Fa(c));
|
|
2964
2964
|
});
|
|
2965
2965
|
const l = {
|
|
2966
2966
|
row: t.height / e.row,
|
|
2967
2967
|
col: t.width / e.col
|
|
2968
|
-
}, i =
|
|
2968
|
+
}, i = Aa(s, l);
|
|
2969
2969
|
return `<svg viewBox='0 0 ${t.width + ln} ${t.height + ln} ' width="100%" height="100%"> ${i} </svg>`;
|
|
2970
2970
|
},
|
|
2971
2971
|
StorageDefaultLayout: {
|
|
@@ -2998,10 +2998,10 @@ const Se = {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
},
|
|
3000
3000
|
setup(e) {
|
|
3001
|
-
const t =
|
|
3001
|
+
const t = M([]);
|
|
3002
3002
|
return e.layouts && e.layouts.forEach((n) => {
|
|
3003
3003
|
t.value.push({
|
|
3004
|
-
svg:
|
|
3004
|
+
svg: Ue.TransLayoutToSVG(n, { width: 100, height: 100 }),
|
|
3005
3005
|
layout: n,
|
|
3006
3006
|
select: JSON.stringify(n) == JSON.stringify(e.defaultLayout)
|
|
3007
3007
|
});
|
|
@@ -3021,6 +3021,10 @@ const Se = {
|
|
|
3021
3021
|
);
|
|
3022
3022
|
},
|
|
3023
3023
|
methods: {
|
|
3024
|
+
SelectLayoutById(e) {
|
|
3025
|
+
const t = this.layoutInfos.find((n) => JSON.stringify(n.layout) == e);
|
|
3026
|
+
return t ? (t.select || this.selectClick(t), !0) : !1;
|
|
3027
|
+
},
|
|
3024
3028
|
selectClick(e) {
|
|
3025
3029
|
if (e.select == !1) {
|
|
3026
3030
|
const t = {
|
|
@@ -3036,8 +3040,8 @@ const Se = {
|
|
|
3036
3040
|
});
|
|
3037
3041
|
const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
|
|
3038
3042
|
function Ga(e, t, n, r, o, a) {
|
|
3039
|
-
return
|
|
3040
|
-
(
|
|
3043
|
+
return A(), F("div", null, [
|
|
3044
|
+
(A(!0), F(Oe, null, De(e.layoutInfos, (s) => (A(), F("div", {
|
|
3041
3045
|
class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3042
3046
|
onClick: (l) => e.selectClick(s)
|
|
3043
3047
|
}, [
|
|
@@ -3051,9 +3055,9 @@ function Ga(e, t, n, r, o, a) {
|
|
|
3051
3055
|
], 10, Ma))), 256))
|
|
3052
3056
|
]);
|
|
3053
3057
|
}
|
|
3054
|
-
const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-
|
|
3058
|
+
const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-36f7a9fc"]]), Ha = _e({
|
|
3055
3059
|
emits: {
|
|
3056
|
-
LayoutChange(e, t) {
|
|
3060
|
+
LayoutChange(e, t, n) {
|
|
3057
3061
|
return !0;
|
|
3058
3062
|
}
|
|
3059
3063
|
},
|
|
@@ -3062,59 +3066,67 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e73
|
|
|
3062
3066
|
},
|
|
3063
3067
|
setup(e, t) {
|
|
3064
3068
|
const n = [
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3069
|
+
x.Test.genLayout(1, 1),
|
|
3070
|
+
x.Test.genLayout(1, 2),
|
|
3071
|
+
x.Test.genLayout(2, 2),
|
|
3072
|
+
x.Test.genLayout(2, 3),
|
|
3073
|
+
x.genLayout(3, 3, [
|
|
3070
3074
|
[0, 0, 2, 2],
|
|
3071
3075
|
[2, 0, 3, 2]
|
|
3072
3076
|
]),
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
];
|
|
3084
|
-
let
|
|
3085
|
-
const
|
|
3086
|
-
function
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3077
|
+
x.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3078
|
+
x.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3079
|
+
x.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3080
|
+
x.Test.genLayout(3, 3),
|
|
3081
|
+
x.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3082
|
+
x.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3083
|
+
x.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3084
|
+
x.Test.genLayout(4, 4),
|
|
3085
|
+
x.Test.genLayout(5, 5),
|
|
3086
|
+
x.Test.genLayout(6, 6)
|
|
3087
|
+
], r = M();
|
|
3088
|
+
let o = Ue.StorageDefaultLayout.get();
|
|
3089
|
+
const a = o || n[0];
|
|
3090
|
+
function s(p, O) {
|
|
3091
|
+
return t.emit(
|
|
3092
|
+
"LayoutChange",
|
|
3093
|
+
JSON.stringify(p.layout),
|
|
3094
|
+
p,
|
|
3095
|
+
() => {
|
|
3096
|
+
d();
|
|
3097
|
+
}
|
|
3098
|
+
), p.cancel || (c.value = O), !p.cancel;
|
|
3093
3099
|
}
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
+
let l = !0;
|
|
3101
|
+
const i = function(p, O) {
|
|
3102
|
+
JSON.stringify(o) != JSON.stringify(p) && s(p, O) && l && (o = p.layout, Ue.StorageDefaultLayout.set(p.layout)), c.value.length == 0 && s(p, O);
|
|
3103
|
+
}, c = M(""), u = M(!1), d = () => {
|
|
3104
|
+
u.value = !u.value, u.value ? window.addEventListener("click", _) : window.removeEventListener("click", _);
|
|
3105
|
+
}, _ = (p) => {
|
|
3106
|
+
u.value && p.composedPath().findIndex(({ className: E }) => E == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", _));
|
|
3100
3107
|
};
|
|
3101
3108
|
return {
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3109
|
+
selectLoyoutById: (p, O) => {
|
|
3110
|
+
var E;
|
|
3111
|
+
O || (l = !1), (E = r.value) == null || E.SelectLayoutById(p), O = !0;
|
|
3112
|
+
},
|
|
3113
|
+
refLayoutShow: r,
|
|
3114
|
+
clickShowSelectPanel: d,
|
|
3115
|
+
showSelectPanel: u,
|
|
3116
|
+
onselect: i,
|
|
3117
|
+
svgSelect: c,
|
|
3106
3118
|
layout: n,
|
|
3107
|
-
defaultLayout:
|
|
3119
|
+
defaultLayout: a
|
|
3108
3120
|
};
|
|
3109
3121
|
},
|
|
3110
|
-
expose: []
|
|
3122
|
+
expose: ["selectLoyoutById"]
|
|
3111
3123
|
});
|
|
3112
|
-
const Xn = (e) => (Co("data-v-
|
|
3124
|
+
const Xn = (e) => (Co("data-v-22d9dfa1"), e = e(), Po(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
|
|
3113
3125
|
/* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
|
|
3114
|
-
], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } },
|
|
3115
|
-
function
|
|
3126
|
+
], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } }, Ja = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("span", null, "\u6807\u51C6\u6A21\u5F0F\uFF1A", -1));
|
|
3127
|
+
function Qa(e, t, n, r, o, a) {
|
|
3116
3128
|
const s = ie("LayoutShow");
|
|
3117
|
-
return
|
|
3129
|
+
return A(), F("div", ja, [
|
|
3118
3130
|
C("div", {
|
|
3119
3131
|
onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
|
|
3120
3132
|
class: "switch-switcher"
|
|
@@ -3128,8 +3140,9 @@ function Ja(e, t, n, r, o, a) {
|
|
|
3128
3140
|
za,
|
|
3129
3141
|
C("div", Ka, [
|
|
3130
3142
|
C("div", Xa, [
|
|
3131
|
-
|
|
3143
|
+
Ja,
|
|
3132
3144
|
se(s, {
|
|
3145
|
+
ref: "refLayoutShow",
|
|
3133
3146
|
layouts: e.layout,
|
|
3134
3147
|
defaultLayout: e.defaultLayout,
|
|
3135
3148
|
onOnselect: e.onselect
|
|
@@ -3141,14 +3154,14 @@ function Ja(e, t, n, r, o, a) {
|
|
|
3141
3154
|
])
|
|
3142
3155
|
]);
|
|
3143
3156
|
}
|
|
3144
|
-
const qa = /* @__PURE__ */ de(Ha, [["render",
|
|
3157
|
+
const qa = /* @__PURE__ */ de(Ha, [["render", Qa], ["__scopeId", "data-v-22d9dfa1"]]), Za = _e({
|
|
3145
3158
|
props: {
|
|
3146
3159
|
layout: {
|
|
3147
3160
|
type: Object
|
|
3148
3161
|
}
|
|
3149
3162
|
},
|
|
3150
3163
|
setup(e) {
|
|
3151
|
-
const t = W(() => e.layout ?
|
|
3164
|
+
const t = W(() => e.layout ? Ue.TransLayoutToFrams(e.layout).sort((r, o) => r.row == o.row ? r.col - o.col : r.row - o.row) : []);
|
|
3152
3165
|
return {
|
|
3153
3166
|
areas: W(() => t.value.map((r) => ({
|
|
3154
3167
|
id: r.id,
|
|
@@ -3161,8 +3174,8 @@ const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-095d33f
|
|
|
3161
3174
|
});
|
|
3162
3175
|
const el = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3163
3176
|
function tl(e, t, n, r, o, a) {
|
|
3164
|
-
return
|
|
3165
|
-
(
|
|
3177
|
+
return A(), F("div", el, [
|
|
3178
|
+
(A(!0), F(Oe, null, De(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (A(), F("div", {
|
|
3166
3179
|
class: "play-area",
|
|
3167
3180
|
style: Le(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
|
|
3168
3181
|
}, [
|
|
@@ -3189,7 +3202,7 @@ const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-efd900b
|
|
|
3189
3202
|
};
|
|
3190
3203
|
export {
|
|
3191
3204
|
bt as RecursionDeviceGroup,
|
|
3192
|
-
|
|
3205
|
+
x as VideoAreaLayout,
|
|
3193
3206
|
sl as default
|
|
3194
3207
|
};
|
|
3195
3208
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|