smarteye-e-components 0.0.55 → 0.0.57

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.
@@ -1,804 +1,4 @@
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
- var bt;
3
- ((e) => {
4
- ((n) => {
5
- function r(s) {
6
- const l = [];
7
- for (let i = 0; i < s; i++)
8
- l.push({
9
- id: "testId",
10
- pid: "",
11
- name: `device-${i}`,
12
- online: i % 2 == 0,
13
- channels: []
14
- });
15
- return l;
16
- }
17
- function o(s) {
18
- const l = [];
19
- for (let i = 0; i < s; i++)
20
- l.push({
21
- id: `groupid-${i}`,
22
- name: `group-${i}`,
23
- pid: "",
24
- onlineCount: 0,
25
- totalCount: 0,
26
- devices: r(14),
27
- items: o(s - i - 1)
28
- });
29
- return l;
30
- }
31
- function a(s) {
32
- const l = o(s);
33
- return l[s - 1].items.push({
34
- id: "groupid-ttttttt",
35
- name: "group-ttttt",
36
- pid: "",
37
- onlineCount: 0,
38
- totalCount: 0,
39
- devices: [{
40
- id: "testId",
41
- pid: "",
42
- name: "999999",
43
- online: !1,
44
- channels: []
45
- }],
46
- items: []
47
- }), console.log(l), {
48
- name: "hah",
49
- onlineCount: 0,
50
- totalCount: 0,
51
- items: l
52
- };
53
- }
54
- n.RandomDeviceGroup = a;
55
- })(e.Test || (e.Test = {}));
56
- function t(n, r) {
57
- for (let o = 0; o < n.length; o++)
58
- r(n[o]), t(n[o].items, r);
59
- }
60
- ((n) => {
61
- function r(o) {
62
- const a = {}, s = {};
63
- return t(o.items, (l) => {
64
- a[l.id] = l;
65
- for (let i = 0; i < l.devices.length; i++)
66
- s[l.devices[i].id] = l.devices[i];
67
- }), {
68
- getGroup(l) {
69
- return a[l];
70
- },
71
- getDevice(l) {
72
- return s[l];
73
- },
74
- foreachGroup(l) {
75
- for (let i in a)
76
- l(a[i]);
77
- }
78
- };
79
- }
80
- n.AccessSession = r;
81
- })(e.Utils || (e.Utils = {}));
82
- })(bt || (bt = {}));
83
- var x;
84
- ((e) => {
85
- function t(n, r, o) {
86
- if (o) {
87
- let s = n * r;
88
- return o.forEach(([l, i, c, u]) => {
89
- s -= (u - i) * (c - l) - 1;
90
- }), {
91
- count: s,
92
- row: n,
93
- col: r,
94
- name: `${s < 10 ? `0${s}` : s}`,
95
- areas: o.map(([l, i, c, u]) => ({
96
- leftTop: {
97
- col: l,
98
- row: i
99
- },
100
- rightBottom: {
101
- col: c,
102
- row: u
103
- }
104
- }))
105
- };
106
- }
107
- const a = n * r;
108
- return {
109
- count: a,
110
- row: n,
111
- col: r,
112
- name: `${a < 10 ? `0${a}` : a}`
113
- };
114
- }
115
- e.genLayout = t, ((n) => {
116
- function r(a, s, l) {
117
- if (l) {
118
- const c = a * s - (l[3] - l[1]) * (l[2] - l[0]) + 1;
119
- return {
120
- count: c,
121
- row: a,
122
- col: s,
123
- name: `${c < 10 ? `0${c}` : c}`,
124
- area: {
125
- leftTop: {
126
- row: l[1],
127
- col: l[0]
128
- },
129
- rightBottom: {
130
- row: l[3],
131
- col: l[2]
132
- }
133
- }
134
- };
135
- }
136
- const i = a * s;
137
- return {
138
- count: i,
139
- row: a,
140
- col: s,
141
- name: `${i < 10 ? `0${i}` : i}`
142
- };
143
- }
144
- n.genLayout = r;
145
- function o() {
146
- return {
147
- count: 25,
148
- row: 5,
149
- col: 5,
150
- name: "12"
151
- };
152
- }
153
- n.getTestLayout = o;
154
- })(e.Test || (e.Test = {}));
155
- })(x || (x = {}));
156
- const Ao = _e({
157
- props: {
158
- countInfo: Object,
159
- controlParams: Object
160
- },
161
- setup(e) {
162
- function t(o, a) {
163
- if (a) {
164
- let s = 0;
165
- return a.items.forEach((l) => {
166
- s += t(o, l);
167
- }), o(a) + s;
168
- }
169
- return 0;
170
- }
171
- const n = W(() => t((o) => {
172
- var a, s;
173
- if (o.devices) {
174
- let l = (a = o.devices) == null ? void 0 : a.filter((c) => c.online);
175
- const i = (s = e.controlParams) == null ? void 0 : s.searchStr;
176
- return i && (l = l.filter((c) => c.name.includes(i) || c.id.includes(i))), l.length;
177
- }
178
- return 0;
179
- }, e.countInfo));
180
- return {
181
- totalCount: W(() => t((o) => {
182
- var a;
183
- if (o.devices) {
184
- let s = o.devices;
185
- const l = (a = e.controlParams) == null ? void 0 : a.searchStr;
186
- return l && (s = s.filter((i) => i.name.includes(l) || i.id.includes(l))), s.length;
187
- }
188
- return o.totalCount;
189
- }, e.countInfo)),
190
- onlineCount: n
191
- };
192
- }
193
- });
194
- const de = (e, t) => {
195
- const n = e.__vccOpts || e;
196
- for (const [r, o] of t)
197
- n[r] = o;
198
- return n;
199
- }, ko = { class: "root" }, Ro = { class: "count-show" };
200
- function Fo(e, t, n, r, o, a) {
201
- return A(), F("div", ko, [
202
- oe(e.$slots, "default", {
203
- total: e.totalCount,
204
- online: e.onlineCount
205
- }, void 0, !0),
206
- C("span", Ro, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
207
- ]);
208
- }
209
- const dn = /* @__PURE__ */ de(Ao, [["render", Fo], ["__scopeId", "data-v-a063c331"]]), mn = Object.freeze(
210
- {
211
- left: 0,
212
- top: 0,
213
- width: 16,
214
- height: 16
215
- }
216
- ), gn = Object.freeze({
217
- rotate: 0,
218
- vFlip: !1,
219
- hFlip: !1
220
- }), ct = Object.freeze({
221
- ...mn,
222
- ...gn
223
- });
224
- Object.freeze({
225
- ...ct,
226
- body: "",
227
- hidden: !1
228
- });
229
- ({
230
- ...mn
231
- });
232
- const pn = Object.freeze({
233
- width: null,
234
- height: null
235
- }), hn = Object.freeze({
236
- ...pn,
237
- ...gn
238
- });
239
- function $o(e, t) {
240
- const n = {
241
- ...e
242
- };
243
- for (const r in t) {
244
- const o = t[r], a = typeof o;
245
- r in pn ? (o === null || o && (a === "string" || a === "number")) && (n[r] = o) : a === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
246
- }
247
- return n;
248
- }
249
- const Mo = /[\s,]+/;
250
- function Vo(e, t) {
251
- t.split(Mo).forEach((n) => {
252
- switch (n.trim()) {
253
- case "horizontal":
254
- e.hFlip = !0;
255
- break;
256
- case "vertical":
257
- e.vFlip = !0;
258
- break;
259
- }
260
- });
261
- }
262
- function Uo(e, t = 0) {
263
- const n = e.replace(/^-?[0-9.]*/, "");
264
- function r(o) {
265
- for (; o < 0; )
266
- o += 4;
267
- return o % 4;
268
- }
269
- if (n === "") {
270
- const o = parseInt(e);
271
- return isNaN(o) ? 0 : r(o);
272
- } else if (n !== e) {
273
- let o = 0;
274
- switch (n) {
275
- case "%":
276
- o = 25;
277
- break;
278
- case "deg":
279
- o = 90;
280
- }
281
- if (o) {
282
- let a = parseFloat(e.slice(0, e.length - n.length));
283
- return isNaN(a) ? 0 : (a = a / o, a % 1 === 0 ? r(a) : 0);
284
- }
285
- }
286
- return t;
287
- }
288
- const xo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Go = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
289
- function Tt(e, t, n) {
290
- if (t === 1)
291
- return e;
292
- if (n = n || 100, typeof e == "number")
293
- return Math.ceil(e * t * n) / n;
294
- if (typeof e != "string")
295
- return e;
296
- const r = e.split(xo);
297
- if (r === null || !r.length)
298
- return e;
299
- const o = [];
300
- let a = r.shift(), s = Go.test(a);
301
- for (; ; ) {
302
- if (s) {
303
- const l = parseFloat(a);
304
- isNaN(l) ? o.push(a) : o.push(Math.ceil(l * t * n) / n);
305
- } else
306
- o.push(a);
307
- if (a = r.shift(), a === void 0)
308
- return o.join("");
309
- s = !s;
310
- }
311
- }
312
- function Wo(e, t) {
313
- const n = {
314
- ...ct,
315
- ...e
316
- }, r = {
317
- ...hn,
318
- ...t
319
- }, o = {
320
- left: n.left,
321
- top: n.top,
322
- width: n.width,
323
- height: n.height
324
- };
325
- let a = n.body;
326
- [n, r].forEach((g) => {
327
- const O = [], p = g.hFlip, h = g.vFlip;
328
- let N = g.rotate;
329
- p ? h ? N += 2 : (O.push(
330
- "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
331
- ), O.push("scale(-1 1)"), o.top = o.left = 0) : h && (O.push(
332
- "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
333
- ), O.push("scale(1 -1)"), o.top = o.left = 0);
334
- let b;
335
- switch (N < 0 && (N -= Math.floor(N / 4) * 4), N = N % 4, N) {
336
- case 1:
337
- b = o.height / 2 + o.top, O.unshift(
338
- "rotate(90 " + b.toString() + " " + b.toString() + ")"
339
- );
340
- break;
341
- case 2:
342
- O.unshift(
343
- "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
344
- );
345
- break;
346
- case 3:
347
- b = o.width / 2 + o.left, O.unshift(
348
- "rotate(-90 " + b.toString() + " " + b.toString() + ")"
349
- );
350
- break;
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)), O.length && (a = '<g transform="' + O.join(" ") + '">' + a + "</g>");
353
- });
354
- const s = r.width, l = r.height, i = o.width, c = o.height;
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
- attributes: {
358
- width: u.toString(),
359
- height: d.toString(),
360
- viewBox: o.left.toString() + " " + o.top.toString() + " " + i.toString() + " " + c.toString()
361
- },
362
- body: a
363
- };
364
- }
365
- const Ho = /\sid="(\S+)"/g, jo = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
366
- let Bo = 0;
367
- function Yo(e, t = jo) {
368
- const n = [];
369
- let r;
370
- for (; r = Ho.exec(e); )
371
- n.push(r[1]);
372
- return n.length && n.forEach((o) => {
373
- const a = typeof t == "function" ? t(o) : t + (Bo++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
374
- e = e.replace(
375
- new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
376
- "$1" + a + "$3"
377
- );
378
- }), e;
379
- }
380
- function zo(e, t) {
381
- let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
382
- for (const r in t)
383
- n += " " + r + '="' + t[r] + '"';
384
- return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
385
- }
386
- function Ko(e) {
387
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
388
- }
389
- function Xo(e) {
390
- return 'url("data:image/svg+xml,' + Ko(e) + '")';
391
- }
392
- const yt = {
393
- ...hn,
394
- inline: !1
395
- }, Jo = {
396
- xmlns: "http://www.w3.org/2000/svg",
397
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
398
- "aria-hidden": !0,
399
- role: "img"
400
- }, Qo = {
401
- display: "inline-block"
402
- }, Je = {
403
- backgroundColor: "currentColor"
404
- }, vn = {
405
- backgroundColor: "transparent"
406
- }, Lt = {
407
- Image: "var(--svg)",
408
- Repeat: "no-repeat",
409
- Size: "100% 100%"
410
- }, It = {
411
- webkitMask: Je,
412
- mask: Je,
413
- background: vn
414
- };
415
- for (const e in It) {
416
- const t = It[e];
417
- for (const n in Lt)
418
- t[e + n] = Lt[n];
419
- }
420
- const Re = {};
421
- ["horizontal", "vertical"].forEach((e) => {
422
- const t = e.slice(0, 1) + "Flip";
423
- Re[e + "-flip"] = t, Re[e.slice(0, 1) + "-flip"] = t, Re[e + "Flip"] = t;
424
- });
425
- function St(e) {
426
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
427
- }
428
- const qo = (e, t) => {
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
- for (let p in t) {
431
- const h = t[p];
432
- if (h !== void 0)
433
- switch (p) {
434
- case "icon":
435
- case "style":
436
- case "onLoad":
437
- case "mode":
438
- break;
439
- case "inline":
440
- case "hFlip":
441
- case "vFlip":
442
- n[p] = h === !0 || h === "true" || h === 1;
443
- break;
444
- case "flip":
445
- typeof h == "string" && Vo(n, h);
446
- break;
447
- case "color":
448
- a.color = h;
449
- break;
450
- case "rotate":
451
- typeof h == "string" ? n[p] = Uo(h) : typeof h == "number" && (n[p] = h);
452
- break;
453
- case "ariaHidden":
454
- case "aria-hidden":
455
- h !== !0 && h !== "true" && delete r["aria-hidden"];
456
- break;
457
- default: {
458
- const N = Re[p];
459
- N ? (h === !0 || h === "true" || h === 1) && (n[N] = !0) : yt[p] === void 0 && (r[p] = h);
460
- }
461
- }
462
- }
463
- const i = Wo(e, n), c = i.attributes;
464
- if (n.inline && (a.verticalAlign = "-0.125em"), o === "svg") {
465
- r.style = {
466
- ...a,
467
- ...l
468
- }, Object.assign(r, c);
469
- let p = 0, h = t.id;
470
- return typeof h == "string" && (h = h.replace(/-/g, "_")), r.innerHTML = Yo(i.body, h ? () => h + "ID" + p++ : "iconifyVue"), Fe("svg", r);
471
- }
472
- const { body: u, width: d, height: _ } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), O = zo(u, {
473
- ...c,
474
- width: d + "",
475
- height: _ + ""
476
- });
477
- return r.style = {
478
- ...a,
479
- "--svg": Xo(O),
480
- width: St(c.width),
481
- height: St(c.height),
482
- ...Qo,
483
- ...g ? Je : vn,
484
- ...l
485
- }, Fe("span", r);
486
- }, En = /* @__PURE__ */ Object.create(null);
487
- function Ne(e, t) {
488
- En[e] = t;
489
- }
490
- const Zo = _e({
491
- inheritAttrs: !1,
492
- render() {
493
- const e = this.$attrs, t = e.icon, n = typeof t == "string" ? En[t] : typeof t == "object" ? t : null;
494
- return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : qo({
495
- ...ct,
496
- ...n
497
- }, e);
498
- }
499
- });
500
- var er = Object.defineProperty, tr = Object.defineProperties, nr = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, Dt = (e, t, n) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ct = (e, t) => {
501
- for (var n in t || (t = {}))
502
- or.call(t, n) && Dt(e, n, t[n]);
503
- if (wt)
504
- for (var n of wt(t))
505
- rr.call(t, n) && Dt(e, n, t[n]);
506
- return e;
507
- }, sr = (e, t) => tr(e, nr(t)), ar = (e, t, n) => new Promise((r, o) => {
508
- var a = (i) => {
509
- try {
510
- l(n.next(i));
511
- } catch (c) {
512
- o(c);
513
- }
514
- }, s = (i) => {
515
- try {
516
- l(n.throw(i));
517
- } catch (c) {
518
- o(c);
519
- }
520
- }, l = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(a, s);
521
- l((n = n.apply(e, t)).next());
522
- });
523
- const lr = {
524
- name: "VirtualList",
525
- props: {
526
- listData: {
527
- type: Object,
528
- default: () => []
529
- },
530
- itemSize: {
531
- type: Number,
532
- default: 200
533
- }
534
- },
535
- setup(e) {
536
- const t = {
537
- screenHeight: M(0),
538
- startOffset: M(0),
539
- start: M(0),
540
- end: M(0)
541
- }, n = M(), r = {
542
- listHeight: W(() => e.listData.length * e.itemSize),
543
- visibleCount: W(() => Math.ceil(t.screenHeight.value / e.itemSize)),
544
- getTransform: W(() => `translate3d(0,${t.startOffset.value}px,0)`),
545
- visibleData: W(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
546
- };
547
- return Ct(sr(Ct({}, r), {
548
- virList: n
549
- }), t);
550
- },
551
- mounted() {
552
- this.init(), $e(() => this.listData.length, () => ar(this, null, function* () {
553
- yield this.$nextTick(), this.init();
554
- }));
555
- },
556
- methods: {
557
- init() {
558
- this.screenHeight = this.$el.clientHeight, this.screenHeight == 0 && (this.screenHeight = 400), this.start = 0, this.end = this.start + this.visibleCount;
559
- },
560
- scrollEvent() {
561
- if (this.virList) {
562
- let e = this.virList.scrollTop;
563
- this.start = Math.floor(e / this.itemSize), this.end = this.start + this.visibleCount, this.startOffset = e - e % this.itemSize;
564
- }
565
- }
566
- }
567
- };
568
- function ir(e, t, n, r, o, a) {
569
- return A(), F("div", {
570
- ref: "virList",
571
- class: "infinite-list-container",
572
- onScroll: t[0] || (t[0] = (s) => a.scrollEvent())
573
- }, [
574
- C("div", {
575
- class: "infinite-list-phantom",
576
- style: Le({ height: e.listHeight + "px" })
577
- }, null, 4),
578
- C("div", {
579
- class: "infinite-list",
580
- style: Le({ transform: e.getTransform })
581
- }, [
582
- (A(!0), F(Oe, null, De(e.visibleData, (s) => (A(), F("div", {
583
- ref_for: !0,
584
- ref: "items",
585
- class: "infinite-list-item",
586
- key: s.id,
587
- style: Le({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
588
- }, [
589
- oe(e.$slots, "default", { data: s }, void 0, !0)
590
- ], 4))), 128))
591
- ], 4)
592
- ], 544);
593
- }
594
- const cr = /* @__PURE__ */ de(lr, [["render", ir], ["__scopeId", "data-v-12d2a294"]]);
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
- for (var n in t || (t = {}))
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
- return e;
602
- }, pr = (e, t) => fr(e, _r(t));
603
- const hr = _e({
604
- components: {
605
- VirtualList: cr,
606
- CountShow: dn,
607
- Icon: Zo
608
- },
609
- name: "group-show",
610
- props: {
611
- deviceGroup: Object,
612
- controlParams: Object
613
- },
614
- setup(e, t) {
615
- const n = M(), r = fn("theme"), o = {
616
- filterDevice(u) {
617
- var d, _, g, O, p;
618
- let h = !0;
619
- (d = e.controlParams) != null && d.searchStr && (h = 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((O = e.controlParams) == null ? void 0 : O.searchStr) >= 0);
620
- let N = !0;
621
- return (p = e.controlParams) != null && p.onlyShowOnline && (N = u.online), h && N;
622
- },
623
- deviceText(u) {
624
- return u.user ? u.name.length > 0 ? `${u.user} [${u.id}] [${u.name}]` : `${u.user} [${u.id}] []` : u.name.length > 0 ? `${u.name} [${u.id}]` : ` [${u.id}]`;
625
- },
626
- groupText(u) {
627
- if (u)
628
- return u.name.length > 0 ? u.name : u.id;
629
- }
630
- }, a = {
631
- filteredDevices: W(() => {
632
- var u;
633
- const d = (u = e.deviceGroup) == null ? void 0 : u.devices, _ = d && d.filter((O) => o.filterDevice(O)) || [];
634
- return _.filter((O) => O.online).concat(_.filter((O) => !O.online));
635
- })
636
- }, s = W(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
637
- function l(u, d) {
638
- if (d.length == 0)
639
- return !0;
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
- for (let g = 0; g < u.items.length; g++)
643
- if (l(u.items[g], d))
644
- return !0;
645
- }
646
- return _;
647
- }
648
- const i = W(() => {
649
- if (e.controlParams) {
650
- const u = e.controlParams.searchStr;
651
- if (e.deviceGroup)
652
- return l(e.deviceGroup, u);
653
- }
654
- return !1;
655
- }), c = M(!1);
656
- return pr(gr({
657
- innerUtils: o
658
- }, a), {
659
- devicePanelHeight: s,
660
- showGroup: i,
661
- bShow: c,
662
- theme: r,
663
- countRef: n
664
- });
665
- }
666
- });
667
- const vr = {
668
- key: 0,
669
- class: "head-op"
670
- }, Er = {
671
- key: 1,
672
- style: { display: "inline-block", width: "25px" }
673
- }, Or = {
674
- key: 0,
675
- class: "group-head-count"
676
- }, Nr = ["title"], br = { class: "group-slot" }, Tr = {
677
- key: 0,
678
- style: { "margin-left": "26px" }
679
- }, yr = ["title"], Lr = { class: "device-slot" };
680
- function Ir(e, t, n, r, o, a) {
681
- var s;
682
- const l = ie("Icon"), i = ie("CountShow"), c = ie("group-show"), u = ie("VirtualList");
683
- return e.showGroup ? (A(), F("div", {
684
- key: 0,
685
- class: Xe("group " + e.theme)
686
- }, [
687
- se(i, {
688
- countInfo: e.deviceGroup,
689
- controlParams: e.controlParams,
690
- ref: "countRef"
691
- }, {
692
- default: ce(({ online: d, total: _ }) => {
693
- var g, O;
694
- return [
695
- e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (A(), F("span", vr, [
696
- se(l, {
697
- icon: e.bShow ? "minus" : "plus",
698
- width: "20",
699
- onClick: t[0] || (t[0] = (p) => e.bShow = !e.bShow),
700
- class: "handle-ls-svg"
701
- }, null, 8, ["icon"])
702
- ])) : (A(), F("span", Er)),
703
- C("span", {
704
- class: "group-head-db-click",
705
- onDblclick: t[1] || (t[1] = (p) => e.bShow = !e.bShow)
706
- }, [
707
- se(l, {
708
- icon: e.bShow ? "group" : "group-closed",
709
- width: "24",
710
- class: "group-avatar"
711
- }, null, 8, ["icon"]),
712
- e.bShow ? Be("", !0) : (A(), F("span", Or, ue((g = e.deviceGroup) == null ? void 0 : g.items.length), 1)),
713
- C("span", {
714
- class: "group-name",
715
- title: (O = e.deviceGroup) == null ? void 0 : O.name
716
- }, ue(e.innerUtils.groupText(e.deviceGroup)), 9, Nr)
717
- ], 32),
718
- C("div", br, [
719
- oe(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
720
- ])
721
- ];
722
- }),
723
- _: 3
724
- }, 8, ["countInfo", "controlParams"]),
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
- controlParams: e.controlParams
730
- }, {
731
- group: ce(({ group: g }) => [
732
- oe(e.$slots, "group", { group: g }, void 0, !0)
733
- ]),
734
- device: ce(({ device: g, group: O }) => [
735
- oe(e.$slots, "device", {
736
- device: g,
737
- group: O
738
- }, void 0, !0)
739
- ]),
740
- _: 2
741
- }, 1032, ["deviceGroup", "controlParams"]))), 128)),
742
- C("div", {
743
- class: "device-show-div",
744
- style: Le(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
745
- }, [
746
- se(u, {
747
- "list-data": e.filteredDevices,
748
- "item-size": 40
749
- }, {
750
- default: ce(({ data: d }) => [
751
- C("div", {
752
- class: Xe(d.online && "online-device")
753
- }, [
754
- se(l, {
755
- icon: "user",
756
- width: "16",
757
- class: "device-avatar"
758
- }),
759
- C("span", {
760
- title: e.innerUtils.deviceText(d),
761
- class: "device-name"
762
- }, ue(e.innerUtils.deviceText(d)), 9, yr),
763
- C("div", Lr, [
764
- oe(e.$slots, "device", {
765
- device: d,
766
- group: e.deviceGroup
767
- }, void 0, !0)
768
- ])
769
- ], 2)
770
- ]),
771
- _: 3
772
- }, 8, ["list-data"])
773
- ], 4)
774
- ])) : Be("", !0)
775
- ], 2)) : Be("", !0);
776
- }
777
- const Sr = /* @__PURE__ */ de(hr, [["render", Ir], ["__scopeId", "data-v-93cfc8dc"]]), wr = {
778
- width: 1024,
779
- height: 1024,
780
- body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
781
- }, Dr = {
782
- width: 1024,
783
- height: 1024,
784
- body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
785
- }, Cr = {
786
- width: 1024,
787
- height: 1024,
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
- }, Pr = {
790
- width: 1024,
791
- height: 1024,
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
- }, Ar = {
794
- width: 1024,
795
- height: 1024,
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"/>'
797
- }, kr = {
798
- width: 1024,
799
- height: 1024,
800
- body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
801
- };
1
+ import { h as Fe, getCurrentInstance as it, effectScope as yo, inject as fn, onMounted as Lo, onUnmounted as Io, ref as M, computed as W, watch as $e, Fragment as Oe, isRef as So, createVNode as ae, Text as wo, defineComponent as _e, openBlock as A, createElementBlock as F, renderSlot as oe, createElementVNode as C, toDisplayString as se, normalizeStyle as Le, renderList as De, resolveComponent as ce, normalizeClass as Xe, withCtx as ue, createCommentVNode as Be, createBlock as _n, provide as Do, withDirectives as Co, vShow as Po } from "vue";
802
2
  /*!
803
3
  * shared v9.2.2
804
4
  * (c) 2022 kazuya kawaguchi
@@ -812,32 +12,32 @@ if (process.env.NODE_ENV !== "production") {
812
12
  e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
813
13
  });
814
14
  }
815
- const Rr = /\{([0-9a-zA-Z]+)\}/g;
816
- function ut(e, ...t) {
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] : "");
15
+ const Ao = /\{([0-9a-zA-Z]+)\}/g;
16
+ function ct(e, ...t) {
17
+ return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ao, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
818
18
  }
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;
19
+ const ko = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ne = (e) => ko ? Symbol(e) : e, Ro = (e, t, n) => Fo({ l: e, k: t, s: n }), Fo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), V = (e) => typeof e == "number" && isFinite(e), $o = (e) => _t(e) === "[object Date]", Me = (e) => _t(e) === "[object RegExp]", xe = (e) => y(e) && Object.keys(e).length === 0;
820
20
  function be(e, t) {
821
21
  typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
822
22
  }
823
- const j = Object.assign;
824
- let kt;
825
- const ft = () => kt || (kt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
826
- function Rt(e) {
23
+ const H = Object.assign;
24
+ let Nt;
25
+ const ut = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
26
+ function Tt(e) {
827
27
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
828
28
  }
829
- const Ur = Object.prototype.hasOwnProperty;
830
- function _t(e, t) {
831
- return Ur.call(e, t);
29
+ const Mo = Object.prototype.hasOwnProperty;
30
+ function ft(e, t) {
31
+ return Mo.call(e, t);
832
32
  }
833
- const k = Array.isArray, $ = (e) => typeof e == "function", E = (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
- function Gr(e, t = 0, n = e.length) {
33
+ const k = Array.isArray, $ = (e) => typeof e == "function", E = (e) => typeof e == "string", P = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", dn = Object.prototype.toString, _t = (e) => dn.call(e), y = (e) => _t(e) === "[object Object]", Vo = (e) => e == null ? "" : k(e) || y(e) && e.toString === dn ? JSON.stringify(e, null, 2) : String(e), yt = 2;
34
+ function Uo(e, t = 0, n = e.length) {
835
35
  const r = e.split(/\r?\n/);
836
36
  let o = 0;
837
37
  const a = [];
838
38
  for (let s = 0; s < r.length; s++)
839
39
  if (o += r[s].length + 1, o >= t) {
840
- for (let l = s - Ft; l <= s + Ft || n > o; l++) {
40
+ for (let l = s - yt; l <= s + yt || n > o; l++) {
841
41
  if (l < 0 || l >= r.length)
842
42
  continue;
843
43
  const i = l + 1;
@@ -859,7 +59,7 @@ function Gr(e, t = 0, n = e.length) {
859
59
  return a.join(`
860
60
  `);
861
61
  }
862
- function Nn() {
62
+ function mn() {
863
63
  const e = /* @__PURE__ */ new Map();
864
64
  return {
865
65
  events: e,
@@ -897,7 +97,7 @@ const G = {
897
97
  UNEXPECTED_EMPTY_LINKED_KEY: 13,
898
98
  UNEXPECTED_LEXICAL_ANALYSIS: 14,
899
99
  __EXTEND_POINT__: 15
900
- }, Wr = {
100
+ }, xo = {
901
101
  [G.EXPECTED_TOKEN]: "Expected token: '{0}'",
902
102
  [G.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
903
103
  [G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
@@ -913,8 +113,8 @@ const G = {
913
113
  [G.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
914
114
  [G.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
915
115
  };
916
- function bn(e, t, n = {}) {
917
- const { domain: r, messages: o, args: a } = n, s = process.env.NODE_ENV !== "production" ? ut((o || Wr)[e] || "", ...a || []) : e, l = new SyntaxError(String(s));
116
+ function gn(e, t, n = {}) {
117
+ const { domain: r, messages: o, args: a } = n, s = process.env.NODE_ENV !== "production" ? ct((o || xo)[e] || "", ...a || []) : e, l = new SyntaxError(String(s));
918
118
  return l.code = e, t && (l.location = t), l.domain = r, l;
919
119
  }
920
120
  /*!
@@ -922,7 +122,7 @@ function bn(e, t, n = {}) {
922
122
  * (c) 2022 kazuya kawaguchi
923
123
  * Released under the MIT License.
924
124
  */
925
- const Tn = {
125
+ const pn = {
926
126
  I18nInit: "i18n:init",
927
127
  FunctionTranslate: "function:translate"
928
128
  };
@@ -931,25 +131,25 @@ const Tn = {
931
131
  * (c) 2022 kazuya kawaguchi
932
132
  * Released under the MIT License.
933
133
  */
934
- const ae = [];
935
- ae[0] = {
134
+ const le = [];
135
+ le[0] = {
936
136
  w: [0],
937
137
  i: [3, 0],
938
138
  ["["]: [4],
939
139
  o: [7]
940
140
  };
941
- ae[1] = {
141
+ le[1] = {
942
142
  w: [1],
943
143
  ["."]: [2],
944
144
  ["["]: [4],
945
145
  o: [7]
946
146
  };
947
- ae[2] = {
147
+ le[2] = {
948
148
  w: [2],
949
149
  i: [3, 0],
950
150
  [0]: [3, 0]
951
151
  };
952
- ae[3] = {
152
+ le[3] = {
953
153
  i: [3, 0],
954
154
  [0]: [3, 0],
955
155
  w: [1, 1],
@@ -957,7 +157,7 @@ ae[3] = {
957
157
  ["["]: [4, 1],
958
158
  o: [7, 1]
959
159
  };
960
- ae[4] = {
160
+ le[4] = {
961
161
  ["'"]: [5, 0],
962
162
  ['"']: [6, 0],
963
163
  ["["]: [
@@ -968,25 +168,25 @@ ae[4] = {
968
168
  o: 8,
969
169
  l: [4, 0]
970
170
  };
971
- ae[5] = {
171
+ le[5] = {
972
172
  ["'"]: [4, 0],
973
173
  o: 8,
974
174
  l: [5, 0]
975
175
  };
976
- ae[6] = {
176
+ le[6] = {
977
177
  ['"']: [4, 0],
978
178
  o: 8,
979
179
  l: [6, 0]
980
180
  };
981
- const Hr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
982
- function jr(e) {
983
- return Hr.test(e);
181
+ const Go = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
182
+ function Wo(e) {
183
+ return Go.test(e);
984
184
  }
985
- function Br(e) {
185
+ function jo(e) {
986
186
  const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
987
187
  return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
988
188
  }
989
- function Yr(e) {
189
+ function Ho(e) {
990
190
  if (e == null)
991
191
  return "o";
992
192
  switch (e.charCodeAt(0)) {
@@ -1011,11 +211,11 @@ function Yr(e) {
1011
211
  }
1012
212
  return "i";
1013
213
  }
1014
- function zr(e) {
214
+ function Bo(e) {
1015
215
  const t = e.trim();
1016
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : jr(t) ? Br(t) : "*" + t;
216
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Wo(t) ? jo(t) : "*" + t;
1017
217
  }
1018
- function Kr(e) {
218
+ function zo(e) {
1019
219
  const t = [];
1020
220
  let n = -1, r = 0, o = 0, a, s, l, i, c, u, d;
1021
221
  const _ = [];
@@ -1029,7 +229,7 @@ function Kr(e) {
1029
229
  if (o > 0)
1030
230
  o--, r = 4, _[0]();
1031
231
  else {
1032
- if (o = 0, s === void 0 || (s = zr(s), s === !1))
232
+ if (o = 0, s === void 0 || (s = Bo(s), s === !1))
1033
233
  return !1;
1034
234
  _[1]();
1035
235
  }
@@ -1041,21 +241,21 @@ function Kr(e) {
1041
241
  }
1042
242
  for (; r !== null; )
1043
243
  if (n++, a = e[n], !(a === "\\" && g())) {
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))))
244
+ if (i = Ho(a), d = le[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
245
  return;
1046
246
  if (r === 7)
1047
247
  return t;
1048
248
  }
1049
249
  }
1050
- const $t = /* @__PURE__ */ new Map();
1051
- function Xr(e, t) {
250
+ const Lt = /* @__PURE__ */ new Map();
251
+ function Yo(e, t) {
1052
252
  return S(e) ? e[t] : null;
1053
253
  }
1054
- function Jr(e, t) {
254
+ function Ko(e, t) {
1055
255
  if (!S(e))
1056
256
  return null;
1057
- let n = $t.get(t);
1058
- if (n || (n = Kr(t), n && $t.set(t, n)), !n)
257
+ let n = Lt.get(t);
258
+ if (n || (n = zo(t), n && Lt.set(t, n)), !n)
1059
259
  return null;
1060
260
  const r = n.length;
1061
261
  let o = e, a = 0;
@@ -1067,34 +267,34 @@ function Jr(e, t) {
1067
267
  }
1068
268
  return o;
1069
269
  }
1070
- const Qr = (e) => e, qr = (e) => "", Zr = "text", es = (e) => e.length === 0 ? "" : e.join(""), ts = xr;
1071
- function Mt(e, t) {
270
+ const Xo = (e) => e, Jo = (e) => "", Qo = "text", qo = (e) => e.length === 0 ? "" : e.join(""), Zo = Vo;
271
+ function It(e, t) {
1072
272
  return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1073
273
  }
1074
- function ns(e) {
274
+ function er(e) {
1075
275
  const t = V(e.pluralIndex) ? e.pluralIndex : -1;
1076
276
  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
277
  }
1078
- function os(e, t) {
278
+ function tr(e, t) {
1079
279
  t.count || (t.count = e), t.n || (t.n = e);
1080
280
  }
1081
- function rs(e = {}) {
1082
- const t = e.locale, n = ns(e), r = S(e.pluralRules) && E(t) && $(e.pluralRules[t]) ? e.pluralRules[t] : Mt, o = S(e.pluralRules) && E(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
- const c = (N) => i[N];
1085
- function u(N) {
1086
- const b = $(e.messages) ? e.messages(N) : S(e.messages) ? e.messages[N] : !1;
1087
- return b || (e.parent ? e.parent.message(N) : qr);
281
+ function nr(e = {}) {
282
+ const t = e.locale, n = er(e), r = S(e.pluralRules) && E(t) && $(e.pluralRules[t]) ? e.pluralRules[t] : It, o = S(e.pluralRules) && E(t) && $(e.pluralRules[t]) ? It : void 0, a = (b) => b[r(n, b.length, o)], s = e.list || [], l = (b) => s[b], i = e.named || {};
283
+ V(e.pluralIndex) && tr(n, i);
284
+ const c = (b) => i[b];
285
+ function u(b) {
286
+ const N = $(e.messages) ? e.messages(b) : S(e.messages) ? e.messages[b] : !1;
287
+ return N || (e.parent ? e.parent.message(b) : Jo);
1088
288
  }
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, O = y(e.processor) && E(e.processor.type) ? e.processor.type : Zr, h = {
289
+ const d = (b) => e.modifiers ? e.modifiers[b] : Xo, _ = y(e.processor) && $(e.processor.normalize) ? e.processor.normalize : qo, g = y(e.processor) && $(e.processor.interpolate) ? e.processor.interpolate : Zo, O = y(e.processor) && E(e.processor.type) ? e.processor.type : Qo, h = {
1090
290
  list: l,
1091
291
  named: c,
1092
292
  plural: a,
1093
- linked: (N, ...b) => {
1094
- const [L, T] = b;
293
+ linked: (b, ...N) => {
294
+ const [L, T] = N;
1095
295
  let v = "text", w = "";
1096
- b.length === 1 ? S(L) ? (w = L.modifier || w, v = L.type || v) : E(L) && (w = L || w) : b.length === 2 && (E(L) && (w = L || w), E(T) && (v = T || v));
1097
- let I = u(N)(h);
296
+ N.length === 1 ? S(L) ? (w = L.modifier || w, v = L.type || v) : E(L) && (w = L || w) : N.length === 2 && (E(L) && (w = L || w), E(T) && (v = T || v));
297
+ let I = u(b)(h);
1098
298
  return v === "vnode" && k(I) && w && (I = I[0]), w ? d(w)(I, v) : I;
1099
299
  },
1100
300
  message: u,
@@ -1105,19 +305,19 @@ function rs(e = {}) {
1105
305
  return h;
1106
306
  }
1107
307
  let Se = null;
1108
- function ss(e) {
308
+ function or(e) {
1109
309
  Se = e;
1110
310
  }
1111
- function as(e, t, n) {
1112
- Se && Se.emit(Tn.I18nInit, {
311
+ function rr(e, t, n) {
312
+ Se && Se.emit(pn.I18nInit, {
1113
313
  timestamp: Date.now(),
1114
314
  i18n: e,
1115
315
  version: t,
1116
316
  meta: n
1117
317
  });
1118
318
  }
1119
- const ls = /* @__PURE__ */ is(Tn.FunctionTranslate);
1120
- function is(e) {
319
+ const sr = /* @__PURE__ */ ar(pn.FunctionTranslate);
320
+ function ar(e) {
1121
321
  return (t) => Se && Se.emit(e, t);
1122
322
  }
1123
323
  const K = {
@@ -1128,7 +328,7 @@ const K = {
1128
328
  CANNOT_FORMAT_DATE: 5,
1129
329
  FALLBACK_TO_DATE_FORMAT: 6,
1130
330
  __EXTEND_POINT__: 7
1131
- }, cs = {
331
+ }, lr = {
1132
332
  [K.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1133
333
  [K.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1134
334
  [K.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
@@ -1137,46 +337,46 @@ const K = {
1137
337
  [K.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
1138
338
  };
1139
339
  function Ee(e, ...t) {
1140
- return ut(cs[e], ...t);
340
+ return ct(lr[e], ...t);
1141
341
  }
1142
- function us(e, t, n) {
342
+ function ir(e, t, n) {
1143
343
  return [.../* @__PURE__ */ new Set([
1144
344
  n,
1145
345
  ...k(t) ? t : S(t) ? Object.keys(t) : E(t) ? [t] : [n]
1146
346
  ])];
1147
347
  }
1148
- function yn(e, t, n) {
1149
- const r = E(n) ? n : mt, o = e;
348
+ function hn(e, t, n) {
349
+ const r = E(n) ? n : dt, o = e;
1150
350
  o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
1151
351
  let a = o.__localeChainCache.get(r);
1152
352
  if (!a) {
1153
353
  a = [];
1154
354
  let s = [n];
1155
355
  for (; k(s); )
1156
- s = Vt(a, s, t);
356
+ s = St(a, s, t);
1157
357
  const l = k(t) || !y(t) ? t : t.default ? t.default : null;
1158
- s = E(l) ? [l] : l, k(s) && Vt(a, s, !1), o.__localeChainCache.set(r, a);
358
+ s = E(l) ? [l] : l, k(s) && St(a, s, !1), o.__localeChainCache.set(r, a);
1159
359
  }
1160
360
  return a;
1161
361
  }
1162
- function Vt(e, t, n) {
362
+ function St(e, t, n) {
1163
363
  let r = !0;
1164
364
  for (let o = 0; o < t.length && P(r); o++) {
1165
365
  const a = t[o];
1166
- E(a) && (r = fs(e, t[o], n));
366
+ E(a) && (r = cr(e, t[o], n));
1167
367
  }
1168
368
  return r;
1169
369
  }
1170
- function fs(e, t, n) {
370
+ function cr(e, t, n) {
1171
371
  let r;
1172
372
  const o = t.split("-");
1173
373
  do {
1174
374
  const a = o.join("-");
1175
- r = _s(e, a, n), o.splice(-1, 1);
375
+ r = ur(e, a, n), o.splice(-1, 1);
1176
376
  } while (o.length && r === !0);
1177
377
  return r;
1178
378
  }
1179
- function _s(e, t, n) {
379
+ function ur(e, t, n) {
1180
380
  let r = !1;
1181
381
  if (!e.includes(t) && (r = !0, t)) {
1182
382
  r = t[t.length - 1] !== "!";
@@ -1185,37 +385,37 @@ function _s(e, t, n) {
1185
385
  }
1186
386
  return r;
1187
387
  }
1188
- const ds = "9.2.2", Ge = -1, mt = "en-US", Ve = "", Ut = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1189
- function ms() {
388
+ const fr = "9.2.2", Ge = -1, dt = "en-US", Ve = "", wt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
389
+ function _r() {
1190
390
  return {
1191
391
  upper: (e, t) => t === "text" && E(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1192
392
  lower: (e, t) => t === "text" && E(e) ? e.toLowerCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1193
- capitalize: (e, t) => t === "text" && E(e) ? Ut(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? Ut(e.children) : e
393
+ capitalize: (e, t) => t === "text" && E(e) ? wt(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? wt(e.children) : e
1194
394
  };
1195
395
  }
1196
- let gs, Ln;
1197
- function ps(e) {
1198
- Ln = e;
1199
- }
1200
- let In;
1201
- function hs(e) {
1202
- In = e;
1203
- }
1204
- let Sn = null;
1205
- const xt = (e) => {
1206
- Sn = e;
1207
- }, vs = () => Sn;
1208
- let wn = null;
1209
- const Gt = (e) => {
1210
- wn = e;
1211
- }, Es = () => wn;
1212
- let Wt = 0;
1213
- function Os(e = {}) {
1214
- const t = E(e.version) ? e.version : ds, n = E(e.locale) ? e.locale : mt, r = k(e.fallbackLocale) || y(e.fallbackLocale) || E(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, O = $(e.postTranslation) ? e.postTranslation : null, p = y(e.processor) ? e.processor : null, h = P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, b = $(e.messageCompiler) ? e.messageCompiler : gs, L = $(e.messageResolver) ? e.messageResolver : Ln || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : In || us, v = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, I = e, U = S(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), z = S(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), Q = S(I.__meta) ? I.__meta : {};
1215
- Wt++;
396
+ let dr, vn;
397
+ function mr(e) {
398
+ vn = e;
399
+ }
400
+ let En;
401
+ function gr(e) {
402
+ En = e;
403
+ }
404
+ let On = null;
405
+ const Dt = (e) => {
406
+ On = e;
407
+ }, pr = () => On;
408
+ let bn = null;
409
+ const Ct = (e) => {
410
+ bn = e;
411
+ }, hr = () => bn;
412
+ let Pt = 0;
413
+ function vr(e = {}) {
414
+ const t = E(e.version) ? e.version : fr, n = E(e.locale) ? e.locale : dt, r = k(e.fallbackLocale) || y(e.fallbackLocale) || E(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 = H({}, e.modifiers || {}, _r()), 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, O = $(e.postTranslation) ? e.postTranslation : null, p = y(e.processor) ? e.processor : null, h = P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, N = $(e.messageCompiler) ? e.messageCompiler : dr, L = $(e.messageResolver) ? e.messageResolver : vn || Yo, T = $(e.localeFallbacker) ? e.localeFallbacker : En || ir, v = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, I = e, U = S(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = S(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), Q = S(I.__meta) ? I.__meta : {};
415
+ Pt++;
1216
416
  const q = {
1217
417
  version: t,
1218
- cid: Wt,
418
+ cid: Pt,
1219
419
  locale: n,
1220
420
  fallbackLocale: r,
1221
421
  messages: o,
@@ -1229,23 +429,23 @@ function Os(e = {}) {
1229
429
  postTranslation: O,
1230
430
  processor: p,
1231
431
  warnHtmlMessage: h,
1232
- escapeParameter: N,
1233
- messageCompiler: b,
432
+ escapeParameter: b,
433
+ messageCompiler: N,
1234
434
  messageResolver: L,
1235
435
  localeFallbacker: T,
1236
436
  fallbackContext: v,
1237
437
  onWarn: w,
1238
438
  __meta: Q
1239
439
  };
1240
- return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = U, q.__numberFormatters = z, process.env.NODE_ENV !== "production" && (q.__v_emitter = I.__v_emitter != null ? I.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && as(q, t, Q), q;
440
+ return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = U, q.__numberFormatters = Y, process.env.NODE_ENV !== "production" && (q.__v_emitter = I.__v_emitter != null ? I.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && rr(q, t, Q), q;
1241
441
  }
1242
442
  function We(e, t) {
1243
443
  return e instanceof RegExp ? e.test(t) : e;
1244
444
  }
1245
- function Dn(e, t) {
445
+ function Nn(e, t) {
1246
446
  return e instanceof RegExp ? e.test(t) : e;
1247
447
  }
1248
- function gt(e, t, n, r, o) {
448
+ function mt(e, t, n, r, o) {
1249
449
  const { missing: a, onWarn: s } = e;
1250
450
  if (process.env.NODE_ENV !== "production") {
1251
451
  const l = e.__v_emitter;
@@ -1260,69 +460,69 @@ function gt(e, t, n, r, o) {
1260
460
  const l = a(e, n, t, o);
1261
461
  return E(l) ? l : t;
1262
462
  } else
1263
- return process.env.NODE_ENV !== "production" && Dn(r, t) && s(Ee(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
463
+ return process.env.NODE_ENV !== "production" && Nn(r, t) && s(Ee(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
1264
464
  }
1265
465
  function Te(e, t, n) {
1266
466
  const r = e;
1267
467
  r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1268
468
  }
1269
- let Cn = G.__EXTEND_POINT__;
1270
- const Ye = () => ++Cn, re = {
1271
- INVALID_ARGUMENT: Cn,
1272
- INVALID_DATE_ARGUMENT: Ye(),
1273
- INVALID_ISO_DATE_ARGUMENT: Ye(),
1274
- __EXTEND_POINT__: Ye()
469
+ let Tn = G.__EXTEND_POINT__;
470
+ const ze = () => ++Tn, re = {
471
+ INVALID_ARGUMENT: Tn,
472
+ INVALID_DATE_ARGUMENT: ze(),
473
+ INVALID_ISO_DATE_ARGUMENT: ze(),
474
+ __EXTEND_POINT__: ze()
1275
475
  };
1276
476
  function ve(e) {
1277
- return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ns } : void 0);
477
+ return gn(e, null, process.env.NODE_ENV !== "production" ? { messages: Er } : void 0);
1278
478
  }
1279
- const Ns = {
479
+ const Er = {
1280
480
  [re.INVALID_ARGUMENT]: "Invalid arguments",
1281
481
  [re.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1282
482
  [re.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
1283
- }, Ht = () => "", ee = (e) => $(e);
1284
- function jt(e, ...t) {
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, O = E(c.default) || P(c.default) ? P(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", p = n || O !== "", h = E(c.locale) ? c.locale : e.locale;
1286
- _ && bs(c);
1287
- let [N, b, L] = g ? [
483
+ }, At = () => "", ee = (e) => $(e);
484
+ function kt(e, ...t) {
485
+ const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] = Je(...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, O = E(c.default) || P(c.default) ? P(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", p = n || O !== "", h = E(c.locale) ? c.locale : e.locale;
486
+ _ && Or(c);
487
+ let [b, N, L] = g ? [
1288
488
  i,
1289
489
  h,
1290
490
  l[h] || {}
1291
- ] : Pn(e, i, h, s, d, u), T = N, v = i;
1292
- if (!g && !(E(T) || ee(T)) && p && (T = O, v = T), !g && (!(E(T) || ee(T)) || !E(b)))
491
+ ] : yn(e, i, h, s, d, u), T = b, v = i;
492
+ if (!g && !(E(T) || ee(T)) && p && (T = O, v = T), !g && (!(E(T) || ee(T)) || !E(N)))
1293
493
  return o ? Ge : i;
1294
494
  if (process.env.NODE_ENV !== "production" && E(T) && e.messageCompiler == null)
1295
495
  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
496
  let w = !1;
1297
497
  const I = () => {
1298
498
  w = !0;
1299
- }, U = ee(T) ? T : An(e, i, b, T, v, I);
499
+ }, U = ee(T) ? T : Ln(e, i, N, T, v, I);
1300
500
  if (w)
1301
501
  return T;
1302
- const z = Ls(e, b, L, c), Q = rs(z), q = Ts(e, U, Q), Ce = r ? r(q, i) : q;
502
+ const Y = Tr(e, N, L, c), Q = nr(Y), q = br(e, U, Q), Ce = r ? r(q, i) : q;
1303
503
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1304
504
  const Pe = {
1305
505
  timestamp: Date.now(),
1306
506
  key: E(i) ? i : ee(T) ? T.key : "",
1307
- locale: b || (ee(T) ? T.locale : ""),
507
+ locale: N || (ee(T) ? T.locale : ""),
1308
508
  format: E(T) ? T : ee(T) ? T.source : "",
1309
509
  message: Ce
1310
510
  };
1311
- Pe.meta = j({}, e.__meta, vs() || {}), ls(Pe);
511
+ Pe.meta = H({}, e.__meta, pr() || {}), sr(Pe);
1312
512
  }
1313
513
  return Ce;
1314
514
  }
1315
- function bs(e) {
1316
- k(e.list) ? e.list = e.list.map((t) => E(t) ? Rt(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
1317
- E(e.named[t]) && (e.named[t] = Rt(e.named[t]));
515
+ function Or(e) {
516
+ k(e.list) ? e.list = e.list.map((t) => E(t) ? Tt(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
517
+ E(e.named[t]) && (e.named[t] = Tt(e.named[t]));
1318
518
  });
1319
519
  }
1320
- function Pn(e, t, n, r, o, a) {
520
+ function yn(e, t, n, r, o, a) {
1321
521
  const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
1322
522
  let d = {}, _, g = null, O = n, p = null;
1323
523
  const h = "translate";
1324
- for (let N = 0; N < u.length; N++) {
1325
- if (_ = p = u[N], process.env.NODE_ENV !== "production" && n !== _ && We(o, t) && l(Ee(K.FALLBACK_TO_TRANSLATE, {
524
+ for (let b = 0; b < u.length; b++) {
525
+ if (_ = p = u[b], process.env.NODE_ENV !== "production" && n !== _ && We(o, t) && l(Ee(K.FALLBACK_TO_TRANSLATE, {
1326
526
  key: t,
1327
527
  target: _
1328
528
  })), process.env.NODE_ENV !== "production" && n !== _) {
@@ -1336,20 +536,20 @@ function Pn(e, t, n, r, o, a) {
1336
536
  });
1337
537
  }
1338
538
  d = s[_] || {};
1339
- let b = null, L, T;
1340
- if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), L = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(L)), (g = i(d, t)) === null && (g = d[t]), process.env.NODE_ENV !== "production" && te) {
539
+ let N = null, L, T;
540
+ if (process.env.NODE_ENV !== "production" && te && (N = window.performance.now(), L = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(L)), (g = i(d, t)) === null && (g = d[t]), process.env.NODE_ENV !== "production" && te) {
1341
541
  const w = window.performance.now(), I = e.__v_emitter;
1342
- I && b && g && I.emit("message-resolve", {
542
+ I && N && g && I.emit("message-resolve", {
1343
543
  type: "message-resolve",
1344
544
  key: t,
1345
545
  message: g,
1346
- time: w - b,
546
+ time: w - N,
1347
547
  groupId: `${h}:${t}`
1348
548
  }), L && T && X && fe && (X(T), fe("intlify message resolve", L, T));
1349
549
  }
1350
550
  if (E(g) || $(g))
1351
551
  break;
1352
- const v = gt(
552
+ const v = mt(
1353
553
  e,
1354
554
  t,
1355
555
  _,
@@ -1360,7 +560,7 @@ function Pn(e, t, n, r, o, a) {
1360
560
  }
1361
561
  return [g, _, d];
1362
562
  }
1363
- function An(e, t, n, r, o, a) {
563
+ function Ln(e, t, n, r, o, a) {
1364
564
  const { messageCompiler: s, warnHtmlMessage: l } = e;
1365
565
  if (ee(r)) {
1366
566
  const _ = r;
@@ -1372,7 +572,7 @@ function An(e, t, n, r, o, a) {
1372
572
  }
1373
573
  let i = null, c, u;
1374
574
  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 d = s(r, ys(e, n, o, r, l, a));
575
+ const d = s(r, Nr(e, n, o, r, l, a));
1376
576
  if (process.env.NODE_ENV !== "production" && te) {
1377
577
  const _ = window.performance.now(), g = e.__v_emitter;
1378
578
  g && i && g.emit("message-compilation", {
@@ -1384,7 +584,7 @@ function An(e, t, n, r, o, a) {
1384
584
  }
1385
585
  return d.locale = n, d.key = t, d.source = r, d;
1386
586
  }
1387
- function Ts(e, t, n) {
587
+ function br(e, t, n) {
1388
588
  let r = null, o, a;
1389
589
  process.env.NODE_ENV !== "production" && te && (r = window.performance.now(), o = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", X && X(o));
1390
590
  const s = t(n);
@@ -1399,19 +599,19 @@ function Ts(e, t, n) {
1399
599
  }
1400
600
  return s;
1401
601
  }
1402
- function Qe(...e) {
602
+ function Je(...e) {
1403
603
  const [t, n, r] = e, o = {};
1404
604
  if (!E(t) && !V(t) && !ee(t))
1405
605
  throw ve(re.INVALID_ARGUMENT);
1406
606
  const a = V(t) ? String(t) : (ee(t), t);
1407
- return V(n) ? o.plural = n : E(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : k(n) && (o.list = n), V(r) ? o.plural = r : E(r) ? o.default = r : y(r) && j(o, r), [a, o];
607
+ return V(n) ? o.plural = n : E(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : k(n) && (o.list = n), V(r) ? o.plural = r : E(r) ? o.default = r : y(r) && H(o, r), [a, o];
1408
608
  }
1409
- function ys(e, t, n, r, o, a) {
609
+ function Nr(e, t, n, r, o, a) {
1410
610
  return {
1411
611
  warnHtmlMessage: o,
1412
612
  onError: (s) => {
1413
613
  if (a && a(s), process.env.NODE_ENV !== "production") {
1414
- const l = `Message compilation error: ${s.message}`, i = s.location && Gr(r, s.location.start.offset, s.location.end.offset), c = e.__v_emitter;
614
+ const l = `Message compilation error: ${s.message}`, i = s.location && Uo(r, s.location.start.offset, s.location.end.offset), c = e.__v_emitter;
1415
615
  c && c.emit("compile-error", {
1416
616
  message: r,
1417
617
  error: s.message,
@@ -1423,10 +623,10 @@ ${i}` : l);
1423
623
  } else
1424
624
  throw s;
1425
625
  },
1426
- onCacheKey: (s) => $r(t, n, s)
626
+ onCacheKey: (s) => Ro(t, n, s)
1427
627
  };
1428
628
  }
1429
- function Ls(e, t, n, r) {
629
+ function Tr(e, t, n, r) {
1430
630
  const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e, _ = {
1431
631
  locale: t,
1432
632
  modifiers: o,
@@ -1434,43 +634,43 @@ function Ls(e, t, n, r) {
1434
634
  messages: (g) => {
1435
635
  let O = s(n, g);
1436
636
  if (O == null && u) {
1437
- const [, , p] = Pn(u, g, t, l, i, c);
637
+ const [, , p] = yn(u, g, t, l, i, c);
1438
638
  O = s(p, g);
1439
639
  }
1440
640
  if (E(O)) {
1441
641
  let p = !1;
1442
- const N = An(e, g, t, O, g, () => {
642
+ const b = Ln(e, g, t, O, g, () => {
1443
643
  p = !0;
1444
644
  });
1445
- return p ? Ht : N;
645
+ return p ? At : b;
1446
646
  } else
1447
- return ee(O) ? O : Ht;
647
+ return ee(O) ? O : At;
1448
648
  }
1449
649
  };
1450
650
  return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), V(r.plural) && (_.pluralIndex = r.plural), _;
1451
651
  }
1452
- const Bt = typeof Intl < "u", kn = {
1453
- dateTimeFormat: Bt && typeof Intl.DateTimeFormat < "u",
1454
- numberFormat: Bt && typeof Intl.NumberFormat < "u"
652
+ const Rt = typeof Intl < "u", In = {
653
+ dateTimeFormat: Rt && typeof Intl.DateTimeFormat < "u",
654
+ numberFormat: Rt && typeof Intl.NumberFormat < "u"
1455
655
  };
1456
- function Yt(e, ...t) {
656
+ function Ft(e, ...t) {
1457
657
  const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
1458
- if (process.env.NODE_ENV !== "production" && !kn.dateTimeFormat)
658
+ if (process.env.NODE_ENV !== "production" && !In.dateTimeFormat)
1459
659
  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, O = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = s(
660
+ const [i, c, u, d] = Qe(...t), _ = P(u.missingWarn) ? u.missingWarn : e.missingWarn, g = P(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, O = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = s(
1461
661
  e,
1462
662
  o,
1463
663
  p
1464
664
  );
1465
665
  if (!E(i) || i === "")
1466
666
  return new Intl.DateTimeFormat(p, d).format(c);
1467
- let N = {}, b, L = null, T = p, v = null;
667
+ let b = {}, N, L = null, T = p, v = null;
1468
668
  const w = "datetime format";
1469
- for (let z = 0; z < h.length; z++) {
1470
- if (b = v = h[z], process.env.NODE_ENV !== "production" && p !== b && We(g, i) && a(Ee(K.FALLBACK_TO_DATE_FORMAT, {
669
+ for (let Y = 0; Y < h.length; Y++) {
670
+ if (N = v = h[Y], process.env.NODE_ENV !== "production" && p !== N && We(g, i) && a(Ee(K.FALLBACK_TO_DATE_FORMAT, {
1471
671
  key: i,
1472
- target: b
1473
- })), process.env.NODE_ENV !== "production" && p !== b) {
672
+ target: N
673
+ })), process.env.NODE_ENV !== "production" && p !== N) {
1474
674
  const Q = e.__v_emitter;
1475
675
  Q && Q.emit("fallback", {
1476
676
  type: w,
@@ -1480,18 +680,18 @@ function Yt(e, ...t) {
1480
680
  groupId: `${w}:${i}`
1481
681
  });
1482
682
  }
1483
- if (N = n[b] || {}, L = N[i], y(L))
683
+ if (b = n[N] || {}, L = b[i], y(L))
1484
684
  break;
1485
- gt(e, i, b, _, w), T = v;
685
+ mt(e, i, N, _, w), T = v;
1486
686
  }
1487
- if (!y(L) || !E(b))
687
+ if (!y(L) || !E(N))
1488
688
  return r ? Ge : i;
1489
- let I = `${b}__${i}`;
689
+ let I = `${N}__${i}`;
1490
690
  xe(d) || (I = `${I}__${JSON.stringify(d)}`);
1491
691
  let U = l.get(I);
1492
- return U || (U = new Intl.DateTimeFormat(b, j({}, L, d)), l.set(I, U)), O ? U.formatToParts(c) : U.format(c);
692
+ return U || (U = new Intl.DateTimeFormat(N, H({}, L, d)), l.set(I, U)), O ? U.formatToParts(c) : U.format(c);
1493
693
  }
1494
- const Rn = [
694
+ const Sn = [
1495
695
  "localeMatcher",
1496
696
  "weekday",
1497
697
  "era",
@@ -1513,7 +713,7 @@ const Rn = [
1513
713
  "hourCycle",
1514
714
  "fractionalSecondDigits"
1515
715
  ];
1516
- function qe(...e) {
716
+ function Qe(...e) {
1517
717
  const [t, n, r, o] = e, a = {};
1518
718
  let s = {}, l;
1519
719
  if (E(t)) {
@@ -1527,7 +727,7 @@ function qe(...e) {
1527
727
  } catch {
1528
728
  throw ve(re.INVALID_ISO_DATE_ARGUMENT);
1529
729
  }
1530
- } else if (Vr(t)) {
730
+ } else if ($o(t)) {
1531
731
  if (isNaN(t.getTime()))
1532
732
  throw ve(re.INVALID_DATE_ARGUMENT);
1533
733
  l = t;
@@ -1536,34 +736,34 @@ function qe(...e) {
1536
736
  else
1537
737
  throw ve(re.INVALID_ARGUMENT);
1538
738
  return E(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
1539
- Rn.includes(i) ? s[i] = n[i] : a[i] = n[i];
739
+ Sn.includes(i) ? s[i] = n[i] : a[i] = n[i];
1540
740
  }), E(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
1541
741
  }
1542
- function zt(e, t, n) {
742
+ function $t(e, t, n) {
1543
743
  const r = e;
1544
744
  for (const o in n) {
1545
745
  const a = `${t}__${o}`;
1546
746
  !r.__datetimeFormatters.has(a) || r.__datetimeFormatters.delete(a);
1547
747
  }
1548
748
  }
1549
- function Kt(e, ...t) {
749
+ function Mt(e, ...t) {
1550
750
  const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: l } = e;
1551
- if (process.env.NODE_ENV !== "production" && !kn.numberFormat)
751
+ if (process.env.NODE_ENV !== "production" && !In.numberFormat)
1552
752
  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, O = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = s(
753
+ const [i, c, u, d] = qe(...t), _ = P(u.missingWarn) ? u.missingWarn : e.missingWarn, g = P(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, O = !!u.part, p = E(u.locale) ? u.locale : e.locale, h = s(
1554
754
  e,
1555
755
  o,
1556
756
  p
1557
757
  );
1558
758
  if (!E(i) || i === "")
1559
759
  return new Intl.NumberFormat(p, d).format(c);
1560
- let N = {}, b, L = null, T = p, v = null;
760
+ let b = {}, N, L = null, T = p, v = null;
1561
761
  const w = "number format";
1562
- for (let z = 0; z < h.length; z++) {
1563
- if (b = v = h[z], process.env.NODE_ENV !== "production" && p !== b && We(g, i) && a(Ee(K.FALLBACK_TO_NUMBER_FORMAT, {
762
+ for (let Y = 0; Y < h.length; Y++) {
763
+ if (N = v = h[Y], process.env.NODE_ENV !== "production" && p !== N && We(g, i) && a(Ee(K.FALLBACK_TO_NUMBER_FORMAT, {
1564
764
  key: i,
1565
- target: b
1566
- })), process.env.NODE_ENV !== "production" && p !== b) {
765
+ target: N
766
+ })), process.env.NODE_ENV !== "production" && p !== N) {
1567
767
  const Q = e.__v_emitter;
1568
768
  Q && Q.emit("fallback", {
1569
769
  type: w,
@@ -1573,18 +773,18 @@ function Kt(e, ...t) {
1573
773
  groupId: `${w}:${i}`
1574
774
  });
1575
775
  }
1576
- if (N = n[b] || {}, L = N[i], y(L))
776
+ if (b = n[N] || {}, L = b[i], y(L))
1577
777
  break;
1578
- gt(e, i, b, _, w), T = v;
778
+ mt(e, i, N, _, w), T = v;
1579
779
  }
1580
- if (!y(L) || !E(b))
780
+ if (!y(L) || !E(N))
1581
781
  return r ? Ge : i;
1582
- let I = `${b}__${i}`;
782
+ let I = `${N}__${i}`;
1583
783
  xe(d) || (I = `${I}__${JSON.stringify(d)}`);
1584
784
  let U = l.get(I);
1585
- return U || (U = new Intl.NumberFormat(b, j({}, L, d)), l.set(I, U)), O ? U.formatToParts(c) : U.format(c);
785
+ return U || (U = new Intl.NumberFormat(N, H({}, L, d)), l.set(I, U)), O ? U.formatToParts(c) : U.format(c);
1586
786
  }
1587
- const Fn = [
787
+ const wn = [
1588
788
  "localeMatcher",
1589
789
  "style",
1590
790
  "currency",
@@ -1606,40 +806,40 @@ const Fn = [
1606
806
  "roundingIncrement",
1607
807
  "trailingZeroDisplay"
1608
808
  ];
1609
- function Ze(...e) {
809
+ function qe(...e) {
1610
810
  const [t, n, r, o] = e, a = {};
1611
811
  let s = {};
1612
812
  if (!V(t))
1613
813
  throw ve(re.INVALID_ARGUMENT);
1614
814
  const l = t;
1615
815
  return E(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
1616
- Fn.includes(i) ? s[i] = n[i] : a[i] = n[i];
816
+ wn.includes(i) ? s[i] = n[i] : a[i] = n[i];
1617
817
  }), E(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
1618
818
  }
1619
- function Xt(e, t, n) {
819
+ function Vt(e, t, n) {
1620
820
  const r = e;
1621
821
  for (const o in n) {
1622
822
  const a = `${t}__${o}`;
1623
823
  !r.__numberFormatters.has(a) || r.__numberFormatters.delete(a);
1624
824
  }
1625
825
  }
1626
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1);
1627
- function Is() {
1628
- return $n().__VUE_DEVTOOLS_GLOBAL_HOOK__;
826
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ut().__INTLIFY_PROD_DEVTOOLS__ = !1);
827
+ function yr() {
828
+ return Dn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1629
829
  }
1630
- function $n() {
830
+ function Dn() {
1631
831
  return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
1632
832
  }
1633
- const Ss = typeof Proxy == "function", ws = "devtools-plugin:setup", Ds = "plugin:settings:set";
1634
- let pe, et;
1635
- function Cs() {
833
+ const Lr = typeof Proxy == "function", Ir = "devtools-plugin:setup", Sr = "plugin:settings:set";
834
+ let pe, Ze;
835
+ function wr() {
1636
836
  var e;
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;
837
+ return pe !== void 0 || (typeof window < "u" && window.performance ? (pe = !0, Ze = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (pe = !0, Ze = global.perf_hooks.performance) : pe = !1), pe;
1638
838
  }
1639
- function Ps() {
1640
- return Cs() ? et.now() : Date.now();
839
+ function Dr() {
840
+ return wr() ? Ze.now() : Date.now();
1641
841
  }
1642
- class As {
842
+ class Cr {
1643
843
  constructor(t, n) {
1644
844
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
1645
845
  const r = {};
@@ -1667,9 +867,9 @@ class As {
1667
867
  a = s;
1668
868
  },
1669
869
  now() {
1670
- return Ps();
870
+ return Dr();
1671
871
  }
1672
- }, n && n.on(Ds, (s, l) => {
872
+ }, n && n.on(Sr, (s, l) => {
1673
873
  s === this.plugin.id && this.fallbacks.setSettings(l);
1674
874
  }), this.proxiedOn = new Proxy({}, {
1675
875
  get: (s, l) => this.target ? this.target.on[l] : (...i) => {
@@ -1701,12 +901,12 @@ class As {
1701
901
  n.resolve(await this.target[n.method](...n.args));
1702
902
  }
1703
903
  }
1704
- function ks(e, t) {
1705
- const n = e, r = $n(), o = Is(), a = Ss && n.enableEarlyProxy;
904
+ function Pr(e, t) {
905
+ const n = e, r = Dn(), o = yr(), a = Lr && n.enableEarlyProxy;
1706
906
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
1707
- o.emit(ws, e, t);
907
+ o.emit(Ir, e, t);
1708
908
  else {
1709
- const s = a ? new As(n, o) : null;
909
+ const s = a ? new Cr(n, o) : null;
1710
910
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1711
911
  pluginDescriptor: n,
1712
912
  setupFn: t,
@@ -1719,13 +919,13 @@ function ks(e, t) {
1719
919
  * (c) 2022 kazuya kawaguchi
1720
920
  * Released under the MIT License.
1721
921
  */
1722
- const ze = {
922
+ const Ye = {
1723
923
  ["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
1724
924
  ["vue-i18n-resource-inspector"]: "I18n Resources",
1725
925
  ["vue-i18n-timeline"]: "Vue I18n"
1726
- }, Rs = {
926
+ }, Ar = {
1727
927
  ["vue-i18n-resource-inspector"]: "Search for scopes ..."
1728
- }, Fs = {
928
+ }, kr = {
1729
929
  ["vue-i18n-timeline"]: 16764185
1730
930
  };
1731
931
  /*!
@@ -1733,21 +933,21 @@ const ze = {
1733
933
  * (c) 2022 kazuya kawaguchi
1734
934
  * Released under the MIT License.
1735
935
  */
1736
- const $s = "9.2.2";
1737
- function Ms() {
936
+ const Rr = "9.2.2";
937
+ function Fr() {
1738
938
  let e = !1;
1739
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
939
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ut().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
1740
940
  }
1741
- let Mn = K.__EXTEND_POINT__;
1742
- const he = () => ++Mn, Z = {
1743
- FALLBACK_TO_ROOT: Mn,
941
+ let Cn = K.__EXTEND_POINT__;
942
+ const he = () => ++Cn, Z = {
943
+ FALLBACK_TO_ROOT: Cn,
1744
944
  NOT_SUPPORTED_PRESERVE: he(),
1745
945
  NOT_SUPPORTED_FORMATTER: he(),
1746
946
  NOT_SUPPORTED_PRESERVE_DIRECTIVE: he(),
1747
947
  NOT_SUPPORTED_GET_CHOICE_INDEX: he(),
1748
948
  COMPONENT_NAME_LEGACY_COMPATIBLE: he(),
1749
949
  NOT_FOUND_PARENT_SCOPE: he()
1750
- }, Vs = {
950
+ }, $r = {
1751
951
  [Z.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
1752
952
  [Z.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
1753
953
  [Z.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
@@ -1756,31 +956,31 @@ const he = () => ++Mn, Z = {
1756
956
  [Z.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
1757
957
  [Z.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
1758
958
  };
1759
- function He(e, ...t) {
1760
- return ut(Vs[e], ...t);
1761
- }
1762
- let Vn = G.__EXTEND_POINT__;
1763
- const Y = () => ++Vn, D = {
1764
- UNEXPECTED_RETURN_TYPE: Vn,
1765
- INVALID_ARGUMENT: Y(),
1766
- MUST_BE_CALL_SETUP_TOP: Y(),
1767
- NOT_INSLALLED: Y(),
1768
- NOT_AVAILABLE_IN_LEGACY_MODE: Y(),
1769
- REQUIRED_VALUE: Y(),
1770
- INVALID_VALUE: Y(),
1771
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: Y(),
1772
- NOT_INSLALLED_WITH_PROVIDE: Y(),
1773
- UNEXPECTED_ERROR: Y(),
1774
- NOT_COMPATIBLE_LEGACY_VUE_I18N: Y(),
1775
- BRIDGE_SUPPORT_VUE_2_ONLY: Y(),
1776
- MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: Y(),
1777
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Y(),
1778
- __EXTEND_POINT__: Y()
959
+ function je(e, ...t) {
960
+ return ct($r[e], ...t);
961
+ }
962
+ let Pn = G.__EXTEND_POINT__;
963
+ const z = () => ++Pn, D = {
964
+ UNEXPECTED_RETURN_TYPE: Pn,
965
+ INVALID_ARGUMENT: z(),
966
+ MUST_BE_CALL_SETUP_TOP: z(),
967
+ NOT_INSLALLED: z(),
968
+ NOT_AVAILABLE_IN_LEGACY_MODE: z(),
969
+ REQUIRED_VALUE: z(),
970
+ INVALID_VALUE: z(),
971
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: z(),
972
+ NOT_INSLALLED_WITH_PROVIDE: z(),
973
+ UNEXPECTED_ERROR: z(),
974
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: z(),
975
+ BRIDGE_SUPPORT_VUE_2_ONLY: z(),
976
+ MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: z(),
977
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: z(),
978
+ __EXTEND_POINT__: z()
1779
979
  };
1780
980
  function J(e, ...t) {
1781
- return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Us, args: t } : void 0);
981
+ return gn(e, null, process.env.NODE_ENV !== "production" ? { messages: Mr, args: t } : void 0);
1782
982
  }
1783
- const Us = {
983
+ const Mr = {
1784
984
  [D.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
1785
985
  [D.INVALID_ARGUMENT]: "Invalid argument",
1786
986
  [D.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
@@ -1795,26 +995,26 @@ const Us = {
1795
995
  [D.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
1796
996
  [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
997
  [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"), we = /* @__PURE__ */ ne("__enableEmitter"), rt = /* @__PURE__ */ ne("__disableEmitter"), xs = ne("__setPluralRules");
998
+ }, et = /* @__PURE__ */ ne("__transrateVNode"), tt = /* @__PURE__ */ ne("__datetimeParts"), nt = /* @__PURE__ */ ne("__numberParts"), we = /* @__PURE__ */ ne("__enableEmitter"), ot = /* @__PURE__ */ ne("__disableEmitter"), Vr = ne("__setPluralRules");
1799
999
  ne("__intlifyMeta");
1800
- const Gs = /* @__PURE__ */ ne("__injectWithOption");
1801
- function st(e) {
1000
+ const Ur = /* @__PURE__ */ ne("__injectWithOption");
1001
+ function rt(e) {
1802
1002
  if (!S(e))
1803
1003
  return e;
1804
1004
  for (const t in e)
1805
- if (!!_t(e, t))
1005
+ if (!!ft(e, t))
1806
1006
  if (!t.includes("."))
1807
- S(e[t]) && st(e[t]);
1007
+ S(e[t]) && rt(e[t]);
1808
1008
  else {
1809
1009
  const n = t.split("."), r = n.length - 1;
1810
1010
  let o = e;
1811
1011
  for (let a = 0; a < r; a++)
1812
1012
  n[a] in o || (o[n[a]] = {}), o = o[n[a]];
1813
- o[n[r]] = e[t], delete e[t], S(o[n[r]]) && st(o[n[r]]);
1013
+ o[n[r]] = e[t], delete e[t], S(o[n[r]]) && rt(o[n[r]]);
1814
1014
  }
1815
1015
  return e;
1816
1016
  }
1817
- function Un(e, t) {
1017
+ function An(e, t) {
1818
1018
  const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n : k(r) ? {} : { [e]: {} };
1819
1019
  if (k(r) && r.forEach((l) => {
1820
1020
  if ("locale" in l && "resource" in l) {
@@ -1824,7 +1024,7 @@ function Un(e, t) {
1824
1024
  E(l) && Ie(JSON.parse(l), s);
1825
1025
  }), o == null && a)
1826
1026
  for (const l in s)
1827
- _t(s, l) && st(s[l]);
1027
+ ft(s, l) && rt(s[l]);
1828
1028
  return s;
1829
1029
  }
1830
1030
  const ke = (e) => !S(e) || k(e);
@@ -1832,14 +1032,14 @@ function Ie(e, t) {
1832
1032
  if (ke(e) || ke(t))
1833
1033
  throw J(D.INVALID_VALUE);
1834
1034
  for (const n in e)
1835
- _t(e, n) && (ke(e[n]) || ke(t[n]) ? t[n] = e[n] : Ie(e[n], t[n]));
1035
+ ft(e, n) && (ke(e[n]) || ke(t[n]) ? t[n] = e[n] : Ie(e[n], t[n]));
1836
1036
  }
1837
- function xn(e) {
1037
+ function kn(e) {
1838
1038
  return e.type;
1839
1039
  }
1840
- function Ws(e, t, n) {
1040
+ function xr(e, t, n) {
1841
1041
  let r = S(t.messages) ? t.messages : {};
1842
- "__i18nGlobal" in n && (r = Un(e.locale.value, {
1042
+ "__i18nGlobal" in n && (r = An(e.locale.value, {
1843
1043
  messages: r,
1844
1044
  __i18n: n.__i18nGlobal
1845
1045
  }));
@@ -1862,34 +1062,34 @@ function Ws(e, t, n) {
1862
1062
  }
1863
1063
  }
1864
1064
  }
1865
- function Jt(e) {
1866
- return se(Io, null, e, 0);
1065
+ function Ut(e) {
1066
+ return ae(wo, null, e, 0);
1867
1067
  }
1868
- const Qt = "__INTLIFY_META__";
1869
- let qt = 0;
1870
- function Zt(e) {
1068
+ const xt = "__INTLIFY_META__";
1069
+ let Gt = 0;
1070
+ function Wt(e) {
1871
1071
  return (t, n, r, o) => e(n, r, it() || void 0, o);
1872
1072
  }
1873
- const Hs = () => {
1073
+ const Gr = () => {
1874
1074
  const e = it();
1875
1075
  let t = null;
1876
- return e && (t = xn(e)[Qt]) ? { [Qt]: t } : null;
1076
+ return e && (t = kn(e)[xt]) ? { [xt]: t } : null;
1877
1077
  };
1878
- function Gn(e = {}, t) {
1078
+ function Rn(e = {}, t) {
1879
1079
  const { __root: n } = e, r = n === void 0;
1880
1080
  let o = P(e.inheritLocale) ? e.inheritLocale : !0;
1881
1081
  const a = M(
1882
- n && o ? n.locale.value : E(e.locale) ? e.locale : mt
1082
+ n && o ? n.locale.value : E(e.locale) ? e.locale : dt
1883
1083
  ), s = M(
1884
1084
  n && o ? n.fallbackLocale.value : E(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, O = $(e.missing) ? e.missing : null, p = $(e.missing) ? Zt(e.missing) : null, h = $(e.postTranslation) ? e.postTranslation : null, N = n ? n.warnHtmlMessage : P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
1085
+ ), l = M(An(a.value, e)), i = M(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = M(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
1086
+ 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, O = $(e.missing) ? e.missing : null, p = $(e.missing) ? Wt(e.missing) : null, h = $(e.postTranslation) ? e.postTranslation : null, b = n ? n.warnHtmlMessage : P(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter;
1887
1087
  const L = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
1888
1088
  let T = e.pluralRules || n && n.pluralRules, v;
1889
1089
  v = (() => {
1890
- r && Gt(null);
1090
+ r && Ct(null);
1891
1091
  const f = {
1892
- version: $s,
1092
+ version: Rr,
1893
1093
  locale: a.value,
1894
1094
  fallbackLocale: s.value,
1895
1095
  messages: l.value,
@@ -1901,14 +1101,14 @@ function Gn(e = {}, t) {
1901
1101
  fallbackFormat: g,
1902
1102
  unresolving: !0,
1903
1103
  postTranslation: h === null ? void 0 : h,
1904
- warnHtmlMessage: N,
1905
- escapeParameter: b,
1104
+ warnHtmlMessage: b,
1105
+ escapeParameter: N,
1906
1106
  messageResolver: e.messageResolver,
1907
1107
  __meta: { framework: "vue" }
1908
1108
  };
1909
1109
  f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = y(v) ? v.__datetimeFormatters : void 0, f.__numberFormatters = y(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = y(v) ? v.__v_emitter : void 0);
1910
- const m = Os(f);
1911
- return r && Gt(m), m;
1110
+ const m = vr(f);
1111
+ return r && Ct(m), m;
1912
1112
  })(), Te(v, a.value, s.value);
1913
1113
  function I() {
1914
1114
  return [
@@ -1924,7 +1124,7 @@ function Gn(e = {}, t) {
1924
1124
  set: (f) => {
1925
1125
  a.value = f, v.locale = a.value;
1926
1126
  }
1927
- }), z = W({
1127
+ }), Y = W({
1928
1128
  get: () => s.value,
1929
1129
  set: (f) => {
1930
1130
  s.value = f, v.fallbackLocale = s.value, Te(v, a.value, f);
@@ -1933,44 +1133,44 @@ function Gn(e = {}, t) {
1933
1133
  function Pe() {
1934
1134
  return $(h) ? h : null;
1935
1135
  }
1936
- function Jn(f) {
1136
+ function qn(f) {
1937
1137
  h = f, v.postTranslation = f;
1938
1138
  }
1939
- function Qn() {
1139
+ function Zn() {
1940
1140
  return O;
1941
1141
  }
1942
- function qn(f) {
1943
- f !== null && (p = Zt(f)), O = f, v.missing = p;
1142
+ function eo(f) {
1143
+ f !== null && (p = Wt(f)), O = f, v.missing = p;
1944
1144
  }
1945
- function Zn(f, m) {
1145
+ function to(f, m) {
1946
1146
  return f !== "translate" || !m.resolvedMessage;
1947
1147
  }
1948
- const me = (f, m, B, H, je, Ae) => {
1148
+ const me = (f, m, B, j, He, Ae) => {
1949
1149
  I();
1950
1150
  let ge;
1951
1151
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
1952
1152
  try {
1953
- xt(Hs()), r || (v.fallbackContext = n ? Es() : void 0), ge = f(v);
1153
+ Dt(Gr()), r || (v.fallbackContext = n ? hr() : void 0), ge = f(v);
1954
1154
  } finally {
1955
- xt(null), r || (v.fallbackContext = void 0);
1155
+ Dt(null), r || (v.fallbackContext = void 0);
1956
1156
  }
1957
1157
  else
1958
1158
  ge = f(v);
1959
1159
  if (V(ge) && ge === Ge) {
1960
- const [le, No] = m();
1961
- if (process.env.NODE_ENV !== "production" && n && E(le) && Zn(B, No) && (_ && (We(d, le) || Dn(u, le)) && be(He(Z.FALLBACK_TO_ROOT, {
1962
- key: le,
1160
+ const [ie, To] = m();
1161
+ if (process.env.NODE_ENV !== "production" && n && E(ie) && to(B, To) && (_ && (We(d, ie) || Nn(u, ie)) && be(je(Z.FALLBACK_TO_ROOT, {
1162
+ key: ie,
1963
1163
  type: B
1964
1164
  })), process.env.NODE_ENV !== "production")) {
1965
- const { __v_emitter: Nt } = v;
1966
- Nt && _ && Nt.emit("fallback", {
1165
+ const { __v_emitter: bt } = v;
1166
+ bt && _ && bt.emit("fallback", {
1967
1167
  type: B,
1968
- key: le,
1168
+ key: ie,
1969
1169
  to: "global",
1970
- groupId: `${B}:${le}`
1170
+ groupId: `${B}:${ie}`
1971
1171
  });
1972
1172
  }
1973
- return n && _ ? H(n) : je(le);
1173
+ return n && _ ? j(n) : He(ie);
1974
1174
  } else {
1975
1175
  if (Ae(ge))
1976
1176
  return ge;
@@ -1978,79 +1178,79 @@ function Gn(e = {}, t) {
1978
1178
  }
1979
1179
  };
1980
1180
  function Et(...f) {
1981
- return me((m) => Reflect.apply(jt, null, [m, ...f]), () => Qe(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => E(m));
1181
+ return me((m) => Reflect.apply(kt, null, [m, ...f]), () => Je(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => E(m));
1982
1182
  }
1983
- function eo(...f) {
1984
- const [m, B, H] = f;
1985
- if (H && !S(H))
1183
+ function no(...f) {
1184
+ const [m, B, j] = f;
1185
+ if (j && !S(j))
1986
1186
  throw J(D.INVALID_ARGUMENT);
1987
- return Et(m, B, j({ resolvedMessage: !0 }, H || {}));
1187
+ return Et(m, B, H({ resolvedMessage: !0 }, j || {}));
1988
1188
  }
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]), () => Ve, (m) => E(m));
1189
+ function oo(...f) {
1190
+ return me((m) => Reflect.apply(Ft, null, [m, ...f]), () => Qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ve, (m) => E(m));
1991
1191
  }
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]), () => Ve, (m) => E(m));
1192
+ function ro(...f) {
1193
+ return me((m) => Reflect.apply(Mt, null, [m, ...f]), () => qe(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ve, (m) => E(m));
1994
1194
  }
1995
- function oo(f) {
1996
- return f.map((m) => E(m) || V(m) || P(m) ? Jt(String(m)) : m);
1195
+ function so(f) {
1196
+ return f.map((m) => E(m) || V(m) || P(m) ? Ut(String(m)) : m);
1997
1197
  }
1998
- const ro = {
1999
- normalize: oo,
1198
+ const ao = {
1199
+ normalize: so,
2000
1200
  interpolate: (f) => f,
2001
1201
  type: "vnode"
2002
1202
  };
2003
- function so(...f) {
1203
+ function lo(...f) {
2004
1204
  return me(
2005
1205
  (m) => {
2006
1206
  let B;
2007
- const H = m;
1207
+ const j = m;
2008
1208
  try {
2009
- H.processor = ro, B = Reflect.apply(jt, null, [H, ...f]);
1209
+ j.processor = ao, B = Reflect.apply(kt, null, [j, ...f]);
2010
1210
  } finally {
2011
- H.processor = null;
1211
+ j.processor = null;
2012
1212
  }
2013
1213
  return B;
2014
1214
  },
2015
- () => Qe(...f),
1215
+ () => Je(...f),
2016
1216
  "translate",
2017
- (m) => m[tt](...f),
2018
- (m) => [Jt(m)],
1217
+ (m) => m[et](...f),
1218
+ (m) => [Ut(m)],
2019
1219
  (m) => k(m)
2020
1220
  );
2021
1221
  }
2022
- function ao(...f) {
1222
+ function io(...f) {
2023
1223
  return me(
2024
- (m) => Reflect.apply(Kt, null, [m, ...f]),
2025
- () => Ze(...f),
1224
+ (m) => Reflect.apply(Mt, null, [m, ...f]),
1225
+ () => qe(...f),
2026
1226
  "number format",
2027
- (m) => m[ot](...f),
1227
+ (m) => m[nt](...f),
2028
1228
  () => [],
2029
1229
  (m) => E(m) || k(m)
2030
1230
  );
2031
1231
  }
2032
- function lo(...f) {
1232
+ function co(...f) {
2033
1233
  return me(
2034
- (m) => Reflect.apply(Yt, null, [m, ...f]),
2035
- () => qe(...f),
1234
+ (m) => Reflect.apply(Ft, null, [m, ...f]),
1235
+ () => Qe(...f),
2036
1236
  "datetime format",
2037
- (m) => m[nt](...f),
1237
+ (m) => m[tt](...f),
2038
1238
  () => [],
2039
1239
  (m) => E(m) || k(m)
2040
1240
  );
2041
1241
  }
2042
- function io(f) {
1242
+ function uo(f) {
2043
1243
  T = f, v.pluralRules = T;
2044
1244
  }
2045
- function co(f, m) {
2046
- const B = E(m) ? m : a.value, H = Ot(B);
2047
- return v.messageResolver(H, f) !== null;
1245
+ function fo(f, m) {
1246
+ const B = E(m) ? m : a.value, j = Ot(B);
1247
+ return v.messageResolver(j, f) !== null;
2048
1248
  }
2049
- function uo(f) {
1249
+ function _o(f) {
2050
1250
  let m = null;
2051
- const B = yn(v, s.value, a.value);
2052
- for (let H = 0; H < B.length; H++) {
2053
- const je = l.value[B[H]] || {}, Ae = v.messageResolver(je, f);
1251
+ const B = hn(v, s.value, a.value);
1252
+ for (let j = 0; j < B.length; j++) {
1253
+ const He = l.value[B[j]] || {}, Ae = v.messageResolver(He, f);
2054
1254
  if (Ae != null) {
2055
1255
  m = Ae;
2056
1256
  break;
@@ -2058,46 +1258,46 @@ function Gn(e = {}, t) {
2058
1258
  }
2059
1259
  return m;
2060
1260
  }
2061
- function fo(f) {
2062
- const m = uo(f);
1261
+ function mo(f) {
1262
+ const m = _o(f);
2063
1263
  return m != null ? m : n ? n.tm(f) || {} : {};
2064
1264
  }
2065
1265
  function Ot(f) {
2066
1266
  return l.value[f] || {};
2067
1267
  }
2068
- function _o(f, m) {
1268
+ function go(f, m) {
2069
1269
  l.value[f] = m, v.messages = l.value;
2070
1270
  }
2071
- function mo(f, m) {
1271
+ function po(f, m) {
2072
1272
  l.value[f] = l.value[f] || {}, Ie(m, l.value[f]), v.messages = l.value;
2073
1273
  }
2074
- function go(f) {
1274
+ function ho(f) {
2075
1275
  return i.value[f] || {};
2076
1276
  }
2077
- function po(f, m) {
2078
- i.value[f] = m, v.datetimeFormats = i.value, zt(v, f, m);
1277
+ function vo(f, m) {
1278
+ i.value[f] = m, v.datetimeFormats = i.value, $t(v, f, m);
2079
1279
  }
2080
- function ho(f, m) {
2081
- i.value[f] = j(i.value[f] || {}, m), v.datetimeFormats = i.value, zt(v, f, m);
1280
+ function Eo(f, m) {
1281
+ i.value[f] = H(i.value[f] || {}, m), v.datetimeFormats = i.value, $t(v, f, m);
2082
1282
  }
2083
- function vo(f) {
1283
+ function Oo(f) {
2084
1284
  return c.value[f] || {};
2085
1285
  }
2086
- function Eo(f, m) {
2087
- c.value[f] = m, v.numberFormats = c.value, Xt(v, f, m);
1286
+ function bo(f, m) {
1287
+ c.value[f] = m, v.numberFormats = c.value, Vt(v, f, m);
2088
1288
  }
2089
- function Oo(f, m) {
2090
- c.value[f] = j(c.value[f] || {}, m), v.numberFormats = c.value, Xt(v, f, m);
1289
+ function No(f, m) {
1290
+ c.value[f] = H(c.value[f] || {}, m), v.numberFormats = c.value, Vt(v, f, m);
2091
1291
  }
2092
- qt++, n && te && ($e(n.locale, (f) => {
1292
+ Gt++, n && te && ($e(n.locale, (f) => {
2093
1293
  o && (a.value = f, v.locale = f, Te(v, a.value, s.value));
2094
1294
  }), $e(n.fallbackLocale, (f) => {
2095
1295
  o && (s.value = f, v.fallbackLocale = f, Te(v, a.value, s.value));
2096
1296
  }));
2097
1297
  const R = {
2098
- id: qt,
1298
+ id: Gt,
2099
1299
  locale: U,
2100
- fallbackLocale: z,
1300
+ fallbackLocale: Y,
2101
1301
  get inheritLocale() {
2102
1302
  return o;
2103
1303
  },
@@ -2142,34 +1342,34 @@ function Gn(e = {}, t) {
2142
1342
  g = f, v.fallbackFormat = g;
2143
1343
  },
2144
1344
  get warnHtmlMessage() {
2145
- return N;
1345
+ return b;
2146
1346
  },
2147
1347
  set warnHtmlMessage(f) {
2148
- N = f, v.warnHtmlMessage = f;
1348
+ b = f, v.warnHtmlMessage = f;
2149
1349
  },
2150
1350
  get escapeParameter() {
2151
- return b;
1351
+ return N;
2152
1352
  },
2153
1353
  set escapeParameter(f) {
2154
- b = f, v.escapeParameter = f;
1354
+ N = f, v.escapeParameter = f;
2155
1355
  },
2156
1356
  t: Et,
2157
1357
  getLocaleMessage: Ot,
2158
- setLocaleMessage: _o,
2159
- mergeLocaleMessage: mo,
1358
+ setLocaleMessage: go,
1359
+ mergeLocaleMessage: po,
2160
1360
  getPostTranslationHandler: Pe,
2161
- setPostTranslationHandler: Jn,
2162
- getMissingHandler: Qn,
2163
- setMissingHandler: qn,
2164
- [xs]: io
1361
+ setPostTranslationHandler: qn,
1362
+ getMissingHandler: Zn,
1363
+ setMissingHandler: eo,
1364
+ [Vr]: uo
2165
1365
  };
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) => {
1366
+ return R.datetimeFormats = q, R.numberFormats = Ce, R.rt = no, R.te = fo, R.tm = mo, R.d = oo, R.n = ro, R.getDateTimeFormat = ho, R.setDateTimeFormat = vo, R.mergeDateTimeFormat = Eo, R.getNumberFormat = Oo, R.setNumberFormat = bo, R.mergeNumberFormat = No, R[Ur] = e.__injectWithOption, R[et] = lo, R[tt] = co, R[nt] = io, process.env.NODE_ENV !== "production" && (R[we] = (f) => {
2167
1367
  v.__v_emitter = f;
2168
- }, R[rt] = () => {
1368
+ }, R[ot] = () => {
2169
1369
  v.__v_emitter = void 0;
2170
1370
  }), R;
2171
1371
  }
2172
- const pt = {
1372
+ const gt = {
2173
1373
  tag: {
2174
1374
  type: [String, Object]
2175
1375
  },
@@ -2185,7 +1385,7 @@ const pt = {
2185
1385
  type: Object
2186
1386
  }
2187
1387
  };
2188
- function js({ slots: e }, t) {
1388
+ function Wr({ slots: e }, t) {
2189
1389
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => r = [
2190
1390
  ...r,
2191
1391
  ...k(o.children) ? o.children : [o]
@@ -2194,585 +1394,1419 @@ function js({ slots: e }, t) {
2194
1394
  return o && (n[r] = o()), n;
2195
1395
  }, {});
2196
1396
  }
2197
- function Wn(e) {
2198
- return Oe;
1397
+ function Fn(e) {
1398
+ return Oe;
1399
+ }
1400
+ const Ke = {
1401
+ name: "i18n-t",
1402
+ props: H({
1403
+ keypath: {
1404
+ type: String,
1405
+ required: !0
1406
+ },
1407
+ plural: {
1408
+ type: [Number, String],
1409
+ validator: (e) => V(e) || !isNaN(e)
1410
+ }
1411
+ }, gt),
1412
+ setup(e, t) {
1413
+ const { slots: n, attrs: r } = t, o = e.i18n || ht({
1414
+ useScope: e.scope,
1415
+ __useComponent: !0
1416
+ });
1417
+ return () => {
1418
+ const a = Object.keys(n).filter((d) => d !== "_"), s = {};
1419
+ e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = E(e.plural) ? +e.plural : e.plural);
1420
+ const l = Wr(t, a), i = o[et](e.keypath, l, s), c = H({}, r), u = E(e.tag) || S(e.tag) ? e.tag : Fn();
1421
+ return Fe(u, c, i);
1422
+ };
1423
+ }
1424
+ };
1425
+ function jr(e) {
1426
+ return k(e) && !E(e[0]);
1427
+ }
1428
+ function $n(e, t, n, r) {
1429
+ const { slots: o, attrs: a } = t;
1430
+ return () => {
1431
+ const s = { part: !0 };
1432
+ let l = {};
1433
+ e.locale && (s.locale = e.locale), E(e.format) ? s.key = e.format : S(e.format) && (E(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? H({}, _, { [g]: e.format[g] }) : _, {}));
1434
+ const i = r(e.value, s, l);
1435
+ let c = [s.key];
1436
+ k(i) ? c = i.map((_, g) => {
1437
+ const O = o[_.type], p = O ? O({ [_.type]: _.value, index: g, parts: i }) : [_.value];
1438
+ return jr(p) && (p[0].key = `${_.type}-${g}`), p;
1439
+ }) : E(i) && (c = [i]);
1440
+ const u = H({}, a), d = E(e.tag) || S(e.tag) ? e.tag : Fn();
1441
+ return Fe(d, u, c);
1442
+ };
1443
+ }
1444
+ const jt = {
1445
+ name: "i18n-n",
1446
+ props: H({
1447
+ value: {
1448
+ type: Number,
1449
+ required: !0
1450
+ },
1451
+ format: {
1452
+ type: [String, Object]
1453
+ }
1454
+ }, gt),
1455
+ setup(e, t) {
1456
+ const n = e.i18n || ht({ useScope: "parent", __useComponent: !0 });
1457
+ return $n(e, t, wn, (...r) => n[nt](...r));
1458
+ }
1459
+ }, Ht = {
1460
+ name: "i18n-d",
1461
+ props: H({
1462
+ value: {
1463
+ type: [Number, Date],
1464
+ required: !0
1465
+ },
1466
+ format: {
1467
+ type: [String, Object]
1468
+ }
1469
+ }, gt),
1470
+ setup(e, t) {
1471
+ const n = e.i18n || ht({ useScope: "parent", __useComponent: !0 });
1472
+ return $n(e, t, Sn, (...r) => n[tt](...r));
1473
+ }
1474
+ };
1475
+ function Hr(e, t) {
1476
+ const n = e;
1477
+ if (e.mode === "composition")
1478
+ return n.__getInstance(t) || e.global;
1479
+ {
1480
+ const r = n.__getInstance(t);
1481
+ return r != null ? r.__composer : e.global.__composer;
1482
+ }
1483
+ }
1484
+ function Br(e) {
1485
+ const t = (s) => {
1486
+ const { instance: l, modifiers: i, value: c } = s;
1487
+ if (!l || !l.$)
1488
+ throw J(D.UNEXPECTED_ERROR);
1489
+ const u = Hr(e, l.$);
1490
+ process.env.NODE_ENV !== "production" && i.preserve && be(je(Z.NOT_SUPPORTED_PRESERVE));
1491
+ const d = Bt(c);
1492
+ return [
1493
+ Reflect.apply(u.t, u, [...zt(d)]),
1494
+ u
1495
+ ];
1496
+ };
1497
+ return {
1498
+ created: (s, l) => {
1499
+ const [i, c] = t(l);
1500
+ te && e.global === c && (s.__i18nWatcher = $e(c.locale, () => {
1501
+ l.instance && l.instance.$forceUpdate();
1502
+ })), s.__composer = c, s.textContent = i;
1503
+ },
1504
+ unmounted: (s) => {
1505
+ te && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
1506
+ },
1507
+ beforeUpdate: (s, { value: l }) => {
1508
+ if (s.__composer) {
1509
+ const i = s.__composer, c = Bt(l);
1510
+ s.textContent = Reflect.apply(i.t, i, [
1511
+ ...zt(c)
1512
+ ]);
1513
+ }
1514
+ },
1515
+ getSSRProps: (s) => {
1516
+ const [l] = t(s);
1517
+ return { textContent: l };
1518
+ }
1519
+ };
1520
+ }
1521
+ function Bt(e) {
1522
+ if (E(e))
1523
+ return { path: e };
1524
+ if (y(e)) {
1525
+ if (!("path" in e))
1526
+ throw J(D.REQUIRED_VALUE, "path");
1527
+ return e;
1528
+ } else
1529
+ throw J(D.INVALID_VALUE);
1530
+ }
1531
+ function zt(e) {
1532
+ const { path: t, locale: n, args: r, choice: o, plural: a } = e, s = {}, l = r || {};
1533
+ return E(n) && (s.locale = n), V(o) && (s.plural = o), V(a) && (s.plural = a), [t, l, s];
1534
+ }
1535
+ function zr(e, t, ...n) {
1536
+ const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a = P(r.globalInstall) ? r.globalInstall : !0;
1537
+ process.env.NODE_ENV !== "production" && a && o && be(je(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
1538
+ name: Ke.name
1539
+ })), a && (e.component(o ? "i18n" : Ke.name, Ke), e.component(jt.name, jt), e.component(Ht.name, Ht)), e.directive("t", Br(t));
1540
+ }
1541
+ const Mn = "vue-i18n: composer properties";
1542
+ let st;
1543
+ async function Yr(e, t) {
1544
+ return new Promise((n, r) => {
1545
+ try {
1546
+ Pr({
1547
+ id: "vue-devtools-plugin-vue-i18n",
1548
+ label: Ye["vue-devtools-plugin-vue-i18n"],
1549
+ packageName: "vue-i18n",
1550
+ homepage: "https://vue-i18n.intlify.dev",
1551
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
1552
+ componentStateTypes: [Mn],
1553
+ app: e
1554
+ }, (o) => {
1555
+ st = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
1556
+ Kr(s, l, t);
1557
+ }), o.on.inspectComponent(({ componentInstance: s, instanceData: l }) => {
1558
+ s.vnode.el && s.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? s.vnode.el.__VUE_I18N__ !== t.global.__composer && Yt(l, s.vnode.el.__VUE_I18N__) : Yt(l, s.vnode.el.__VUE_I18N__));
1559
+ }), o.addInspector({
1560
+ id: "vue-i18n-resource-inspector",
1561
+ label: Ye["vue-i18n-resource-inspector"],
1562
+ icon: "language",
1563
+ treeFilterPlaceholder: Ar["vue-i18n-resource-inspector"]
1564
+ }), o.on.getInspectorTree((s) => {
1565
+ s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && Zr(s, t);
1566
+ });
1567
+ const a = /* @__PURE__ */ new Map();
1568
+ o.on.getInspectorState(async (s) => {
1569
+ if (s.app === e && s.inspectorId === "vue-i18n-resource-inspector")
1570
+ if (o.unhighlightElement(), ts(s, t), s.nodeId === "global") {
1571
+ if (!a.has(s.app)) {
1572
+ const [l] = await o.getComponentInstances(s.app);
1573
+ a.set(s.app, l);
1574
+ }
1575
+ o.highlightElement(a.get(s.app));
1576
+ } else {
1577
+ const l = es(s.nodeId, t);
1578
+ l && o.highlightElement(l);
1579
+ }
1580
+ }), o.on.editInspectorState((s) => {
1581
+ s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && os(s, t);
1582
+ }), o.addTimelineLayer({
1583
+ id: "vue-i18n-timeline",
1584
+ label: Ye["vue-i18n-timeline"],
1585
+ color: kr["vue-i18n-timeline"]
1586
+ }), n(!0);
1587
+ });
1588
+ } catch (o) {
1589
+ console.error(o), r(!1);
1590
+ }
1591
+ });
1592
+ }
1593
+ function Vn(e) {
1594
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
1595
+ }
1596
+ function Kr(e, t, n) {
1597
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
1598
+ if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
1599
+ const o = {
1600
+ label: `i18n (${Vn(e)} Scope)`,
1601
+ textColor: 0,
1602
+ backgroundColor: 16764185
1603
+ };
1604
+ t.tags.push(o);
1605
+ }
1606
+ }
1607
+ function Yt(e, t) {
1608
+ const n = Mn;
1609
+ e.state.push({
1610
+ type: n,
1611
+ key: "locale",
1612
+ editable: !0,
1613
+ value: t.locale.value
1614
+ }), e.state.push({
1615
+ type: n,
1616
+ key: "availableLocales",
1617
+ editable: !1,
1618
+ value: t.availableLocales
1619
+ }), e.state.push({
1620
+ type: n,
1621
+ key: "fallbackLocale",
1622
+ editable: !0,
1623
+ value: t.fallbackLocale.value
1624
+ }), e.state.push({
1625
+ type: n,
1626
+ key: "inheritLocale",
1627
+ editable: !0,
1628
+ value: t.inheritLocale
1629
+ }), e.state.push({
1630
+ type: n,
1631
+ key: "messages",
1632
+ editable: !1,
1633
+ value: pt(t.messages.value)
1634
+ }), e.state.push({
1635
+ type: n,
1636
+ key: "datetimeFormats",
1637
+ editable: !1,
1638
+ value: t.datetimeFormats.value
1639
+ }), e.state.push({
1640
+ type: n,
1641
+ key: "numberFormats",
1642
+ editable: !1,
1643
+ value: t.numberFormats.value
1644
+ });
1645
+ }
1646
+ function pt(e) {
1647
+ const t = {};
1648
+ return Object.keys(e).forEach((n) => {
1649
+ const r = e[n];
1650
+ $(r) && "source" in r ? t[n] = qr(r) : S(r) ? t[n] = pt(r) : t[n] = r;
1651
+ }), t;
2199
1652
  }
2200
- const Ke = {
2201
- name: "i18n-t",
2202
- props: j({
2203
- keypath: {
2204
- type: String,
2205
- required: !0
2206
- },
2207
- plural: {
2208
- type: [Number, String],
2209
- validator: (e) => V(e) || !isNaN(e)
2210
- }
2211
- }, pt),
2212
- setup(e, t) {
2213
- const { slots: n, attrs: r } = t, o = e.i18n || vt({
2214
- useScope: e.scope,
2215
- __useComponent: !0
2216
- });
2217
- return () => {
2218
- const a = Object.keys(n).filter((d) => d !== "_"), s = {};
2219
- e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = E(e.plural) ? +e.plural : e.plural);
2220
- const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u = E(e.tag) || S(e.tag) ? e.tag : Wn();
2221
- return Fe(u, c, i);
2222
- };
2223
- }
1653
+ const Xr = {
1654
+ "<": "&lt;",
1655
+ ">": "&gt;",
1656
+ '"': "&quot;",
1657
+ "&": "&amp;"
2224
1658
  };
2225
- function Bs(e) {
2226
- return k(e) && !E(e[0]);
1659
+ function Jr(e) {
1660
+ return e.replace(/[<>"&]/g, Qr);
2227
1661
  }
2228
- function Hn(e, t, n, r) {
2229
- const { slots: o, attrs: a } = t;
2230
- return () => {
2231
- const s = { part: !0 };
2232
- let l = {};
2233
- e.locale && (s.locale = e.locale), E(e.format) ? s.key = e.format : S(e.format) && (E(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((_, g) => n.includes(g) ? j({}, _, { [g]: e.format[g] }) : _, {}));
2234
- const i = r(e.value, s, l);
2235
- let c = [s.key];
2236
- k(i) ? c = i.map((_, g) => {
2237
- const O = o[_.type], p = O ? O({ [_.type]: _.value, index: g, parts: i }) : [_.value];
2238
- return Bs(p) && (p[0].key = `${_.type}-${g}`), p;
2239
- }) : E(i) && (c = [i]);
2240
- const u = j({}, a), d = E(e.tag) || S(e.tag) ? e.tag : Wn();
2241
- return Fe(d, u, c);
2242
- };
1662
+ function Qr(e) {
1663
+ return Xr[e] || e;
2243
1664
  }
2244
- const en = {
2245
- name: "i18n-n",
2246
- props: j({
2247
- value: {
2248
- type: Number,
2249
- required: !0
2250
- },
2251
- format: {
2252
- type: [String, Object]
1665
+ function qr(e) {
1666
+ const t = e.source ? `("${Jr(e.source)}")` : "(?)";
1667
+ return {
1668
+ _custom: {
1669
+ type: "function",
1670
+ display: `<span>\u0192</span> ${t}`
2253
1671
  }
2254
- }, pt),
2255
- setup(e, t) {
2256
- const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
2257
- return Hn(e, t, Fn, (...r) => n[ot](...r));
1672
+ };
1673
+ }
1674
+ function Zr(e, t) {
1675
+ e.rootNodes.push({
1676
+ id: "global",
1677
+ label: "Global Scope"
1678
+ });
1679
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
1680
+ for (const [r, o] of t.__instances) {
1681
+ const a = t.mode === "composition" ? o : o.__composer;
1682
+ n !== a && e.rootNodes.push({
1683
+ id: a.id.toString(),
1684
+ label: `${Vn(r)} Scope`
1685
+ });
2258
1686
  }
2259
- }, tn = {
2260
- name: "i18n-d",
2261
- props: j({
2262
- value: {
2263
- type: [Number, Date],
2264
- required: !0
2265
- },
2266
- format: {
2267
- type: [String, Object]
2268
- }
2269
- }, pt),
2270
- setup(e, t) {
2271
- const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
2272
- return Hn(e, t, Rn, (...r) => n[nt](...r));
1687
+ }
1688
+ function es(e, t) {
1689
+ let n = null;
1690
+ if (e !== "global") {
1691
+ for (const [r, o] of t.__instances.entries())
1692
+ if (o.id.toString() === e) {
1693
+ n = r;
1694
+ break;
1695
+ }
2273
1696
  }
2274
- };
2275
- function Ys(e, t) {
2276
- const n = e;
2277
- if (e.mode === "composition")
2278
- return n.__getInstance(t) || e.global;
1697
+ return n;
1698
+ }
1699
+ function Un(e, t) {
1700
+ if (e === "global")
1701
+ return t.mode === "composition" ? t.global : t.global.__composer;
2279
1702
  {
2280
- const r = n.__getInstance(t);
2281
- return r != null ? r.__composer : e.global.__composer;
1703
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
1704
+ return n ? t.mode === "composition" ? n : n.__composer : null;
2282
1705
  }
2283
1706
  }
2284
- function zs(e) {
2285
- const t = (s) => {
2286
- const { instance: l, modifiers: i, value: c } = s;
2287
- if (!l || !l.$)
2288
- throw J(D.UNEXPECTED_ERROR);
2289
- const u = Ys(e, l.$);
2290
- process.env.NODE_ENV !== "production" && i.preserve && be(He(Z.NOT_SUPPORTED_PRESERVE));
2291
- const d = nn(c);
2292
- return [
2293
- Reflect.apply(u.t, u, [...on(d)]),
2294
- u
2295
- ];
2296
- };
2297
- return {
2298
- created: (s, l) => {
2299
- const [i, c] = t(l);
2300
- te && e.global === c && (s.__i18nWatcher = $e(c.locale, () => {
2301
- l.instance && l.instance.$forceUpdate();
2302
- })), s.__composer = c, s.textContent = i;
1707
+ function ts(e, t) {
1708
+ const n = Un(e.nodeId, t);
1709
+ return n && (e.state = ns(n)), null;
1710
+ }
1711
+ function ns(e) {
1712
+ const t = {}, n = "Locale related info", r = [
1713
+ {
1714
+ type: n,
1715
+ key: "locale",
1716
+ editable: !0,
1717
+ value: e.locale.value
2303
1718
  },
2304
- unmounted: (s) => {
2305
- te && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
1719
+ {
1720
+ type: n,
1721
+ key: "fallbackLocale",
1722
+ editable: !0,
1723
+ value: e.fallbackLocale.value
2306
1724
  },
2307
- beforeUpdate: (s, { value: l }) => {
2308
- if (s.__composer) {
2309
- const i = s.__composer, c = nn(l);
2310
- s.textContent = Reflect.apply(i.t, i, [
2311
- ...on(c)
2312
- ]);
2313
- }
1725
+ {
1726
+ type: n,
1727
+ key: "availableLocales",
1728
+ editable: !1,
1729
+ value: e.availableLocales
2314
1730
  },
2315
- getSSRProps: (s) => {
2316
- const [l] = t(s);
2317
- return { textContent: l };
1731
+ {
1732
+ type: n,
1733
+ key: "inheritLocale",
1734
+ editable: !0,
1735
+ value: e.inheritLocale
2318
1736
  }
2319
- };
1737
+ ];
1738
+ t[n] = r;
1739
+ const o = "Locale messages info", a = [
1740
+ {
1741
+ type: o,
1742
+ key: "messages",
1743
+ editable: !1,
1744
+ value: pt(e.messages.value)
1745
+ }
1746
+ ];
1747
+ t[o] = a;
1748
+ {
1749
+ const s = "Datetime formats info", l = [
1750
+ {
1751
+ type: s,
1752
+ key: "datetimeFormats",
1753
+ editable: !1,
1754
+ value: e.datetimeFormats.value
1755
+ }
1756
+ ];
1757
+ t[s] = l;
1758
+ const i = "Datetime formats info", c = [
1759
+ {
1760
+ type: i,
1761
+ key: "numberFormats",
1762
+ editable: !1,
1763
+ value: e.numberFormats.value
1764
+ }
1765
+ ];
1766
+ t[i] = c;
1767
+ }
1768
+ return t;
2320
1769
  }
2321
- function nn(e) {
2322
- if (E(e))
2323
- return { path: e };
2324
- if (y(e)) {
2325
- if (!("path" in e))
2326
- throw J(D.REQUIRED_VALUE, "path");
2327
- return e;
2328
- } else
2329
- throw J(D.INVALID_VALUE);
1770
+ function at(e, t) {
1771
+ if (st) {
1772
+ let n;
1773
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), st.addTimelineEvent({
1774
+ layerId: "vue-i18n-timeline",
1775
+ event: {
1776
+ title: e,
1777
+ groupId: n,
1778
+ time: Date.now(),
1779
+ meta: {},
1780
+ data: t || {},
1781
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
1782
+ }
1783
+ });
1784
+ }
1785
+ }
1786
+ function os(e, t) {
1787
+ const n = Un(e.nodeId, t);
1788
+ if (n) {
1789
+ const [r] = e.path;
1790
+ r === "locale" && E(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (E(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);
1791
+ }
1792
+ }
1793
+ const rs = /* @__PURE__ */ ne("global-vue-i18n");
1794
+ function ss(e = {}, t) {
1795
+ const n = P(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] = as(e), l = ne(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1796
+ function i(d) {
1797
+ return o.get(d) || null;
1798
+ }
1799
+ function c(d, _) {
1800
+ o.set(d, _);
1801
+ }
1802
+ function u(d) {
1803
+ o.delete(d);
1804
+ }
1805
+ {
1806
+ const d = {
1807
+ get mode() {
1808
+ return "composition";
1809
+ },
1810
+ get allowComposition() {
1811
+ return r;
1812
+ },
1813
+ async install(_, ...g) {
1814
+ process.env.NODE_ENV !== "production" && (_.__VUE_I18N__ = d), _.__VUE_I18N_SYMBOL__ = l, _.provide(_.__VUE_I18N_SYMBOL__, d), n && ms(_, d.global), zr(_, d, ...g);
1815
+ const O = _.unmount;
1816
+ if (_.unmount = () => {
1817
+ d.dispose(), O();
1818
+ }, process.env.NODE_ENV !== "production" || !1) {
1819
+ if (!await Yr(_, d))
1820
+ throw J(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1821
+ const h = mn();
1822
+ {
1823
+ const b = s;
1824
+ b[we] && b[we](h);
1825
+ }
1826
+ h.on("*", at);
1827
+ }
1828
+ },
1829
+ get global() {
1830
+ return s;
1831
+ },
1832
+ dispose() {
1833
+ a.stop();
1834
+ },
1835
+ __instances: o,
1836
+ __getInstance: i,
1837
+ __setInstance: c,
1838
+ __deleteInstance: u
1839
+ };
1840
+ return d;
1841
+ }
1842
+ }
1843
+ function ht(e = {}) {
1844
+ const t = it();
1845
+ if (t == null)
1846
+ throw J(D.MUST_BE_CALL_SETUP_TOP);
1847
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
1848
+ throw J(D.NOT_INSLALLED);
1849
+ const n = ls(t), r = cs(n), o = kn(t), a = is(e, o);
1850
+ if (a === "global")
1851
+ return xr(r, e, o), r;
1852
+ if (a === "parent") {
1853
+ let i = us(n, t, e.__useComponent);
1854
+ return i == null && (process.env.NODE_ENV !== "production" && be(je(Z.NOT_FOUND_PARENT_SCOPE)), i = r), i;
1855
+ }
1856
+ const s = n;
1857
+ let l = s.__getInstance(t);
1858
+ if (l == null) {
1859
+ const i = H({}, e);
1860
+ "__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l = Rn(i), fs(s, t, l), s.__setInstance(t, l);
1861
+ }
1862
+ return l;
2330
1863
  }
2331
- function on(e) {
2332
- const { path: t, locale: n, args: r, choice: o, plural: a } = e, s = {}, l = r || {};
2333
- return E(n) && (s.locale = n), V(o) && (s.plural = o), V(a) && (s.plural = a), [t, l, s];
1864
+ function as(e, t, n) {
1865
+ const r = yo();
1866
+ {
1867
+ const o = r.run(() => Rn(e));
1868
+ if (o == null)
1869
+ throw J(D.UNEXPECTED_ERROR);
1870
+ return [r, o];
1871
+ }
2334
1872
  }
2335
- function Ks(e, t, ...n) {
2336
- const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a = P(r.globalInstall) ? r.globalInstall : !0;
2337
- process.env.NODE_ENV !== "production" && a && o && be(He(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
2338
- name: Ke.name
2339
- })), a && (e.component(o ? "i18n" : Ke.name, Ke), e.component(en.name, en), e.component(tn.name, tn)), e.directive("t", zs(t));
1873
+ function ls(e) {
1874
+ {
1875
+ const t = fn(e.isCE ? rs : e.appContext.app.__VUE_I18N_SYMBOL__);
1876
+ if (!t)
1877
+ throw J(e.isCE ? D.NOT_INSLALLED_WITH_PROVIDE : D.UNEXPECTED_ERROR);
1878
+ return t;
1879
+ }
2340
1880
  }
2341
- const jn = "vue-i18n: composer properties";
2342
- let at;
2343
- async function Xs(e, t) {
2344
- return new Promise((n, r) => {
2345
- try {
2346
- ks({
2347
- id: "vue-devtools-plugin-vue-i18n",
2348
- label: ze["vue-devtools-plugin-vue-i18n"],
2349
- packageName: "vue-i18n",
2350
- homepage: "https://vue-i18n.intlify.dev",
2351
- logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2352
- componentStateTypes: [jn],
2353
- app: e
2354
- }, (o) => {
2355
- at = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
2356
- Js(s, l, t);
2357
- }), o.on.inspectComponent(({ componentInstance: s, instanceData: l }) => {
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
- }), o.addInspector({
2360
- id: "vue-i18n-resource-inspector",
2361
- label: ze["vue-i18n-resource-inspector"],
2362
- icon: "language",
2363
- treeFilterPlaceholder: Rs["vue-i18n-resource-inspector"]
2364
- }), o.on.getInspectorTree((s) => {
2365
- s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && ta(s, t);
2366
- });
2367
- const a = /* @__PURE__ */ new Map();
2368
- o.on.getInspectorState(async (s) => {
2369
- if (s.app === e && s.inspectorId === "vue-i18n-resource-inspector")
2370
- if (o.unhighlightElement(), oa(s, t), s.nodeId === "global") {
2371
- if (!a.has(s.app)) {
2372
- const [l] = await o.getComponentInstances(s.app);
2373
- a.set(s.app, l);
2374
- }
2375
- o.highlightElement(a.get(s.app));
2376
- } else {
2377
- const l = na(s.nodeId, t);
2378
- l && o.highlightElement(l);
2379
- }
2380
- }), o.on.editInspectorState((s) => {
2381
- s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && sa(s, t);
2382
- }), o.addTimelineLayer({
2383
- id: "vue-i18n-timeline",
2384
- label: ze["vue-i18n-timeline"],
2385
- color: Fs["vue-i18n-timeline"]
2386
- }), n(!0);
2387
- });
2388
- } catch (o) {
2389
- console.error(o), r(!1);
2390
- }
2391
- });
1881
+ function is(e, t) {
1882
+ return xe(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2392
1883
  }
2393
- function Bn(e) {
2394
- return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
1884
+ function cs(e) {
1885
+ return e.mode === "composition" ? e.global : e.global.__composer;
2395
1886
  }
2396
- function Js(e, t, n) {
2397
- const r = n.mode === "composition" ? n.global : n.global.__composer;
2398
- if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
2399
- const o = {
2400
- label: `i18n (${Bn(e)} Scope)`,
2401
- textColor: 0,
2402
- backgroundColor: 16764185
2403
- };
2404
- t.tags.push(o);
1887
+ function us(e, t, n = !1) {
1888
+ let r = null;
1889
+ const o = t.root;
1890
+ let a = t.parent;
1891
+ for (; a != null; ) {
1892
+ const s = e;
1893
+ if (e.mode === "composition" && (r = s.__getInstance(a)), r != null || o === a)
1894
+ break;
1895
+ a = a.parent;
2405
1896
  }
1897
+ return r;
2406
1898
  }
2407
- function rn(e, t) {
2408
- const n = jn;
2409
- e.state.push({
2410
- type: n,
2411
- key: "locale",
2412
- editable: !0,
2413
- value: t.locale.value
2414
- }), e.state.push({
2415
- type: n,
2416
- key: "availableLocales",
2417
- editable: !1,
2418
- value: t.availableLocales
2419
- }), e.state.push({
2420
- type: n,
2421
- key: "fallbackLocale",
2422
- editable: !0,
2423
- value: t.fallbackLocale.value
2424
- }), e.state.push({
2425
- type: n,
2426
- key: "inheritLocale",
2427
- editable: !0,
2428
- value: t.inheritLocale
2429
- }), e.state.push({
2430
- type: n,
2431
- key: "messages",
2432
- editable: !1,
2433
- value: ht(t.messages.value)
2434
- }), e.state.push({
2435
- type: n,
2436
- key: "datetimeFormats",
2437
- editable: !1,
2438
- value: t.datetimeFormats.value
2439
- }), e.state.push({
2440
- type: n,
2441
- key: "numberFormats",
2442
- editable: !1,
2443
- value: t.numberFormats.value
1899
+ function fs(e, t, n) {
1900
+ let r = null;
1901
+ Lo(() => {
1902
+ if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
1903
+ t.vnode.el.__VUE_I18N__ = n, r = mn();
1904
+ const o = n;
1905
+ o[we] && o[we](r), r.on("*", at);
1906
+ }
1907
+ }, t), Io(() => {
1908
+ if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
1909
+ r && r.off("*", at);
1910
+ const o = n;
1911
+ o[ot] && o[ot](), delete t.vnode.el.__VUE_I18N__;
1912
+ }
1913
+ e.__deleteInstance(t);
1914
+ }, t);
1915
+ }
1916
+ const _s = [
1917
+ "locale",
1918
+ "fallbackLocale",
1919
+ "availableLocales"
1920
+ ], ds = ["t", "rt", "d", "n", "tm"];
1921
+ function ms(e, t) {
1922
+ const n = /* @__PURE__ */ Object.create(null);
1923
+ _s.forEach((r) => {
1924
+ const o = Object.getOwnPropertyDescriptor(t, r);
1925
+ if (!o)
1926
+ throw J(D.UNEXPECTED_ERROR);
1927
+ const a = So(o.value) ? {
1928
+ get() {
1929
+ return o.value.value;
1930
+ },
1931
+ set(s) {
1932
+ o.value.value = s;
1933
+ }
1934
+ } : {
1935
+ get() {
1936
+ return o.get && o.get();
1937
+ }
1938
+ };
1939
+ Object.defineProperty(n, r, a);
1940
+ }), e.config.globalProperties.$i18n = n, ds.forEach((r) => {
1941
+ const o = Object.getOwnPropertyDescriptor(t, r);
1942
+ if (!o || !o.value)
1943
+ throw J(D.UNEXPECTED_ERROR);
1944
+ Object.defineProperty(e.config.globalProperties, `$${r}`, o);
2444
1945
  });
2445
1946
  }
2446
- function ht(e) {
2447
- const t = {};
2448
- return Object.keys(e).forEach((n) => {
2449
- const r = e[n];
2450
- $(r) && "source" in r ? t[n] = ea(r) : S(r) ? t[n] = ht(r) : t[n] = r;
2451
- }), t;
1947
+ mr(Ko);
1948
+ gr(hn);
1949
+ Fr();
1950
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1951
+ const e = ut();
1952
+ e.__INTLIFY__ = !0, or(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2452
1953
  }
2453
- const Qs = {
2454
- "<": "&lt;",
2455
- ">": "&gt;",
2456
- '"': "&quot;",
2457
- "&": "&amp;"
1954
+ process.env.NODE_ENV;
1955
+ const gs = {
1956
+ "zhi-xian-shi-zai-xian-she-bei": (e) => {
1957
+ const { normalize: t } = e;
1958
+ return t(["\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907"]);
1959
+ },
1960
+ "qing-xuan-ze-bu-ju-yang-shi": (e) => {
1961
+ const { normalize: t } = e;
1962
+ return t(["\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F"]);
1963
+ },
1964
+ "biao-zhun-bu-ju": (e) => {
1965
+ const { normalize: t } = e;
1966
+ return t(["\u6807\u51C6\u5E03\u5C40"]);
1967
+ }
1968
+ }, ps = {
1969
+ "zhi-xian-shi-zai-xian-she-bei": (e) => {
1970
+ const { normalize: t } = e;
1971
+ return t(["online only"]);
1972
+ },
1973
+ "qing-xuan-ze-bu-ju-yang-shi": (e) => {
1974
+ const { normalize: t } = e;
1975
+ return t(["Please Select Play Area Layout"]);
1976
+ },
1977
+ "biao-zhun-bu-ju": (e) => {
1978
+ const { normalize: t } = e;
1979
+ return t(["Classical"]);
1980
+ }
2458
1981
  };
2459
- function qs(e) {
2460
- return e.replace(/[<>"&]/g, Zs);
1982
+ var xn = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(xn || {});
1983
+ const Gn = ss({
1984
+ locale: "en",
1985
+ messages: {
1986
+ zh: gs,
1987
+ en: ps
1988
+ },
1989
+ legacy: !0,
1990
+ fallbackLocale: "en",
1991
+ silentTranslationWarn: !0,
1992
+ silentFallbackWarn: !0
1993
+ });
1994
+ function hs(e) {
1995
+ Gn.global.locale = e;
2461
1996
  }
2462
- function Zs(e) {
2463
- return Qs[e] || e;
1997
+ function Wn(e) {
1998
+ return Gn.global.t(e);
2464
1999
  }
2465
- function ea(e) {
2466
- const t = e.source ? `("${qs(e.source)}")` : "(?)";
2467
- return {
2468
- _custom: {
2469
- type: "function",
2470
- display: `<span>\u0192</span> ${t}`
2000
+ var Kt;
2001
+ ((e) => {
2002
+ ((n) => {
2003
+ function r(s) {
2004
+ const l = [];
2005
+ for (let i = 0; i < s; i++)
2006
+ l.push({
2007
+ id: "testId",
2008
+ pid: "",
2009
+ name: `device-${i}`,
2010
+ online: i % 2 == 0,
2011
+ channels: []
2012
+ });
2013
+ return l;
2014
+ }
2015
+ function o(s) {
2016
+ const l = [];
2017
+ for (let i = 0; i < s; i++)
2018
+ l.push({
2019
+ id: `groupid-${i}`,
2020
+ name: `group-${i}`,
2021
+ pid: "",
2022
+ onlineCount: 0,
2023
+ totalCount: 0,
2024
+ devices: r(14),
2025
+ items: o(s - i - 1)
2026
+ });
2027
+ return l;
2028
+ }
2029
+ function a(s) {
2030
+ const l = o(s);
2031
+ return l[s - 1].items.push({
2032
+ id: "groupid-ttttttt",
2033
+ name: "group-ttttt",
2034
+ pid: "",
2035
+ onlineCount: 0,
2036
+ totalCount: 0,
2037
+ devices: [{
2038
+ id: "testId",
2039
+ pid: "",
2040
+ name: "999999",
2041
+ online: !1,
2042
+ channels: []
2043
+ }],
2044
+ items: []
2045
+ }), console.log(l), {
2046
+ name: "hah",
2047
+ onlineCount: 0,
2048
+ totalCount: 0,
2049
+ items: l
2050
+ };
2051
+ }
2052
+ n.RandomDeviceGroup = a;
2053
+ })(e.Test || (e.Test = {}));
2054
+ function t(n, r) {
2055
+ for (let o = 0; o < n.length; o++)
2056
+ r(n[o]), t(n[o].items, r);
2057
+ }
2058
+ ((n) => {
2059
+ function r(o) {
2060
+ const a = {}, s = {};
2061
+ return t(o.items, (l) => {
2062
+ a[l.id] = l;
2063
+ for (let i = 0; i < l.devices.length; i++)
2064
+ s[l.devices[i].id] = l.devices[i];
2065
+ }), {
2066
+ getGroup(l) {
2067
+ return a[l];
2068
+ },
2069
+ getDevice(l) {
2070
+ return s[l];
2071
+ },
2072
+ foreachGroup(l) {
2073
+ for (let i in a)
2074
+ l(a[i]);
2075
+ }
2076
+ };
2077
+ }
2078
+ n.AccessSession = r;
2079
+ })(e.Utils || (e.Utils = {}));
2080
+ })(Kt || (Kt = {}));
2081
+ var x;
2082
+ ((e) => {
2083
+ function t(n, r, o) {
2084
+ if (o) {
2085
+ let s = n * r;
2086
+ return o.forEach(([l, i, c, u]) => {
2087
+ s -= (u - i) * (c - l) - 1;
2088
+ }), {
2089
+ count: s,
2090
+ row: n,
2091
+ col: r,
2092
+ name: `${s < 10 ? `0${s}` : s}`,
2093
+ areas: o.map(([l, i, c, u]) => ({
2094
+ leftTop: {
2095
+ col: l,
2096
+ row: i
2097
+ },
2098
+ rightBottom: {
2099
+ col: c,
2100
+ row: u
2101
+ }
2102
+ }))
2103
+ };
2471
2104
  }
2472
- };
2473
- }
2474
- function ta(e, t) {
2475
- e.rootNodes.push({
2476
- id: "global",
2477
- label: "Global Scope"
2478
- });
2479
- const n = t.mode === "composition" ? t.global : t.global.__composer;
2480
- for (const [r, o] of t.__instances) {
2481
- const a = t.mode === "composition" ? o : o.__composer;
2482
- n !== a && e.rootNodes.push({
2483
- id: a.id.toString(),
2484
- label: `${Bn(r)} Scope`
2485
- });
2105
+ const a = n * r;
2106
+ return {
2107
+ count: a,
2108
+ row: n,
2109
+ col: r,
2110
+ name: `${a < 10 ? `0${a}` : a}`
2111
+ };
2486
2112
  }
2487
- }
2488
- function na(e, t) {
2489
- let n = null;
2490
- if (e !== "global") {
2491
- for (const [r, o] of t.__instances.entries())
2492
- if (o.id.toString() === e) {
2493
- n = r;
2494
- break;
2113
+ e.genLayout = t, ((n) => {
2114
+ function r(a, s, l) {
2115
+ if (l) {
2116
+ const c = a * s - (l[3] - l[1]) * (l[2] - l[0]) + 1;
2117
+ return {
2118
+ count: c,
2119
+ row: a,
2120
+ col: s,
2121
+ name: `${c < 10 ? `0${c}` : c}`,
2122
+ area: {
2123
+ leftTop: {
2124
+ row: l[1],
2125
+ col: l[0]
2126
+ },
2127
+ rightBottom: {
2128
+ row: l[3],
2129
+ col: l[2]
2130
+ }
2131
+ }
2132
+ };
2495
2133
  }
2496
- }
2497
- return n;
2498
- }
2499
- function Yn(e, t) {
2500
- if (e === "global")
2501
- return t.mode === "composition" ? t.global : t.global.__composer;
2502
- {
2503
- const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e);
2504
- return n ? t.mode === "composition" ? n : n.__composer : null;
2505
- }
2506
- }
2507
- function oa(e, t) {
2508
- const n = Yn(e.nodeId, t);
2509
- return n && (e.state = ra(n)), null;
2510
- }
2511
- function ra(e) {
2512
- const t = {}, n = "Locale related info", r = [
2513
- {
2514
- type: n,
2515
- key: "locale",
2516
- editable: !0,
2517
- value: e.locale.value
2518
- },
2519
- {
2520
- type: n,
2521
- key: "fallbackLocale",
2522
- editable: !0,
2523
- value: e.fallbackLocale.value
2524
- },
2525
- {
2526
- type: n,
2527
- key: "availableLocales",
2528
- editable: !1,
2529
- value: e.availableLocales
2530
- },
2531
- {
2532
- type: n,
2533
- key: "inheritLocale",
2534
- editable: !0,
2535
- value: e.inheritLocale
2134
+ const i = a * s;
2135
+ return {
2136
+ count: i,
2137
+ row: a,
2138
+ col: s,
2139
+ name: `${i < 10 ? `0${i}` : i}`
2140
+ };
2536
2141
  }
2537
- ];
2538
- t[n] = r;
2539
- const o = "Locale messages info", a = [
2540
- {
2541
- type: o,
2542
- key: "messages",
2543
- editable: !1,
2544
- value: ht(e.messages.value)
2142
+ n.genLayout = r;
2143
+ function o() {
2144
+ return {
2145
+ count: 25,
2146
+ row: 5,
2147
+ col: 5,
2148
+ name: "12"
2149
+ };
2545
2150
  }
2546
- ];
2547
- t[o] = a;
2548
- {
2549
- const s = "Datetime formats info", l = [
2550
- {
2551
- type: s,
2552
- key: "datetimeFormats",
2553
- editable: !1,
2554
- value: e.datetimeFormats.value
2555
- }
2556
- ];
2557
- t[s] = l;
2558
- const i = "Datetime formats info", c = [
2559
- {
2560
- type: i,
2561
- key: "numberFormats",
2562
- editable: !1,
2563
- value: e.numberFormats.value
2151
+ n.getTestLayout = o;
2152
+ })(e.Test || (e.Test = {}));
2153
+ })(x || (x = {}));
2154
+ const vs = _e({
2155
+ props: {
2156
+ countInfo: Object,
2157
+ controlParams: Object
2158
+ },
2159
+ setup(e) {
2160
+ function t(o, a) {
2161
+ if (a) {
2162
+ let s = 0;
2163
+ return a.items.forEach((l) => {
2164
+ s += t(o, l);
2165
+ }), o(a) + s;
2564
2166
  }
2565
- ];
2566
- t[i] = c;
2567
- }
2568
- return t;
2569
- }
2570
- function lt(e, t) {
2571
- if (at) {
2572
- let n;
2573
- t && "groupId" in t && (n = t.groupId, delete t.groupId), at.addTimelineEvent({
2574
- layerId: "vue-i18n-timeline",
2575
- event: {
2576
- title: e,
2577
- groupId: n,
2578
- time: Date.now(),
2579
- meta: {},
2580
- data: t || {},
2581
- logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2167
+ return 0;
2168
+ }
2169
+ const n = W(() => t((o) => {
2170
+ var a, s;
2171
+ if (o.devices) {
2172
+ let l = (a = o.devices) == null ? void 0 : a.filter((c) => c.online);
2173
+ const i = (s = e.controlParams) == null ? void 0 : s.searchStr;
2174
+ return i && (l = l.filter((c) => c.name.includes(i) || c.id.includes(i))), l.length;
2582
2175
  }
2583
- });
2584
- }
2585
- }
2586
- function sa(e, t) {
2587
- const n = Yn(e.nodeId, t);
2588
- if (n) {
2589
- const [r] = e.path;
2590
- r === "locale" && E(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (E(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);
2176
+ return 0;
2177
+ }, e.countInfo));
2178
+ return {
2179
+ totalCount: W(() => t((o) => {
2180
+ var a;
2181
+ if (o.devices) {
2182
+ let s = o.devices;
2183
+ const l = (a = e.controlParams) == null ? void 0 : a.searchStr;
2184
+ return l && (s = s.filter((i) => i.name.includes(l) || i.id.includes(l))), s.length;
2185
+ }
2186
+ return o.totalCount;
2187
+ }, e.countInfo)),
2188
+ onlineCount: n
2189
+ };
2591
2190
  }
2191
+ });
2192
+ const de = (e, t) => {
2193
+ const n = e.__vccOpts || e;
2194
+ for (const [r, o] of t)
2195
+ n[r] = o;
2196
+ return n;
2197
+ }, Es = { class: "root" }, Os = { class: "count-show" };
2198
+ function bs(e, t, n, r, o, a) {
2199
+ return A(), F("div", Es, [
2200
+ oe(e.$slots, "default", {
2201
+ total: e.totalCount,
2202
+ online: e.onlineCount
2203
+ }, void 0, !0),
2204
+ C("span", Os, se(e.onlineCount) + "/" + se(e.totalCount), 1)
2205
+ ]);
2592
2206
  }
2593
- const aa = /* @__PURE__ */ ne("global-vue-i18n");
2594
- function la(e = {}, t) {
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
- }
2599
- function c(d, _) {
2600
- o.set(d, _);
2601
- }
2602
- function u(d) {
2603
- o.delete(d);
2604
- }
2207
+ const jn = /* @__PURE__ */ de(vs, [["render", bs], ["__scopeId", "data-v-a063c331"]]), Hn = Object.freeze(
2605
2208
  {
2606
- const d = {
2607
- get mode() {
2608
- return "composition";
2609
- },
2610
- get allowComposition() {
2611
- return r;
2612
- },
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 O = _.unmount;
2616
- if (_.unmount = () => {
2617
- d.dispose(), O();
2618
- }, process.env.NODE_ENV !== "production" || !1) {
2619
- if (!await Xs(_, d))
2620
- throw J(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
2621
- const h = Nn();
2622
- {
2623
- const N = s;
2624
- N[we] && N[we](h);
2625
- }
2626
- h.on("*", lt);
2627
- }
2628
- },
2629
- get global() {
2630
- return s;
2631
- },
2632
- dispose() {
2633
- a.stop();
2634
- },
2635
- __instances: o,
2636
- __getInstance: i,
2637
- __setInstance: c,
2638
- __deleteInstance: u
2639
- };
2640
- return d;
2209
+ left: 0,
2210
+ top: 0,
2211
+ width: 16,
2212
+ height: 16
2213
+ }
2214
+ ), Bn = Object.freeze({
2215
+ rotate: 0,
2216
+ vFlip: !1,
2217
+ hFlip: !1
2218
+ }), vt = Object.freeze({
2219
+ ...Hn,
2220
+ ...Bn
2221
+ });
2222
+ Object.freeze({
2223
+ ...vt,
2224
+ body: "",
2225
+ hidden: !1
2226
+ });
2227
+ ({
2228
+ ...Hn
2229
+ });
2230
+ const zn = Object.freeze({
2231
+ width: null,
2232
+ height: null
2233
+ }), Yn = Object.freeze({
2234
+ ...zn,
2235
+ ...Bn
2236
+ });
2237
+ function Ns(e, t) {
2238
+ const n = {
2239
+ ...e
2240
+ };
2241
+ for (const r in t) {
2242
+ const o = t[r], a = typeof o;
2243
+ r in zn ? (o === null || o && (a === "string" || a === "number")) && (n[r] = o) : a === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
2641
2244
  }
2245
+ return n;
2642
2246
  }
2643
- function vt(e = {}) {
2644
- const t = it();
2645
- if (t == null)
2646
- throw J(D.MUST_BE_CALL_SETUP_TOP);
2647
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
2648
- throw J(D.NOT_INSLALLED);
2649
- const n = ca(t), r = fa(n), o = xn(t), a = ua(e, o);
2650
- if (a === "global")
2651
- return Ws(r, e, o), r;
2652
- if (a === "parent") {
2653
- let i = _a(n, t, e.__useComponent);
2654
- return i == null && (process.env.NODE_ENV !== "production" && be(He(Z.NOT_FOUND_PARENT_SCOPE)), i = r), i;
2247
+ const Ts = /[\s,]+/;
2248
+ function ys(e, t) {
2249
+ t.split(Ts).forEach((n) => {
2250
+ switch (n.trim()) {
2251
+ case "horizontal":
2252
+ e.hFlip = !0;
2253
+ break;
2254
+ case "vertical":
2255
+ e.vFlip = !0;
2256
+ break;
2257
+ }
2258
+ });
2259
+ }
2260
+ function Ls(e, t = 0) {
2261
+ const n = e.replace(/^-?[0-9.]*/, "");
2262
+ function r(o) {
2263
+ for (; o < 0; )
2264
+ o += 4;
2265
+ return o % 4;
2655
2266
  }
2656
- const s = n;
2657
- let l = s.__getInstance(t);
2658
- if (l == null) {
2659
- const i = j({}, e);
2660
- "__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l = Gn(i), da(s, t, l), s.__setInstance(t, l);
2267
+ if (n === "") {
2268
+ const o = parseInt(e);
2269
+ return isNaN(o) ? 0 : r(o);
2270
+ } else if (n !== e) {
2271
+ let o = 0;
2272
+ switch (n) {
2273
+ case "%":
2274
+ o = 25;
2275
+ break;
2276
+ case "deg":
2277
+ o = 90;
2278
+ }
2279
+ if (o) {
2280
+ let a = parseFloat(e.slice(0, e.length - n.length));
2281
+ return isNaN(a) ? 0 : (a = a / o, a % 1 === 0 ? r(a) : 0);
2282
+ }
2661
2283
  }
2662
- return l;
2284
+ return t;
2663
2285
  }
2664
- function ia(e, t, n) {
2665
- const r = bo();
2666
- {
2667
- const o = r.run(() => Gn(e));
2668
- if (o == null)
2669
- throw J(D.UNEXPECTED_ERROR);
2670
- return [r, o];
2286
+ const Is = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ss = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2287
+ function Xt(e, t, n) {
2288
+ if (t === 1)
2289
+ return e;
2290
+ if (n = n || 100, typeof e == "number")
2291
+ return Math.ceil(e * t * n) / n;
2292
+ if (typeof e != "string")
2293
+ return e;
2294
+ const r = e.split(Is);
2295
+ if (r === null || !r.length)
2296
+ return e;
2297
+ const o = [];
2298
+ let a = r.shift(), s = Ss.test(a);
2299
+ for (; ; ) {
2300
+ if (s) {
2301
+ const l = parseFloat(a);
2302
+ isNaN(l) ? o.push(a) : o.push(Math.ceil(l * t * n) / n);
2303
+ } else
2304
+ o.push(a);
2305
+ if (a = r.shift(), a === void 0)
2306
+ return o.join("");
2307
+ s = !s;
2671
2308
  }
2672
2309
  }
2673
- function ca(e) {
2674
- {
2675
- const t = fn(e.isCE ? aa : e.appContext.app.__VUE_I18N_SYMBOL__);
2676
- if (!t)
2677
- throw J(e.isCE ? D.NOT_INSLALLED_WITH_PROVIDE : D.UNEXPECTED_ERROR);
2678
- return t;
2679
- }
2310
+ function ws(e, t) {
2311
+ const n = {
2312
+ ...vt,
2313
+ ...e
2314
+ }, r = {
2315
+ ...Yn,
2316
+ ...t
2317
+ }, o = {
2318
+ left: n.left,
2319
+ top: n.top,
2320
+ width: n.width,
2321
+ height: n.height
2322
+ };
2323
+ let a = n.body;
2324
+ [n, r].forEach((g) => {
2325
+ const O = [], p = g.hFlip, h = g.vFlip;
2326
+ let b = g.rotate;
2327
+ p ? h ? b += 2 : (O.push(
2328
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
2329
+ ), O.push("scale(-1 1)"), o.top = o.left = 0) : h && (O.push(
2330
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
2331
+ ), O.push("scale(1 -1)"), o.top = o.left = 0);
2332
+ let N;
2333
+ switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
2334
+ case 1:
2335
+ N = o.height / 2 + o.top, O.unshift(
2336
+ "rotate(90 " + N.toString() + " " + N.toString() + ")"
2337
+ );
2338
+ break;
2339
+ case 2:
2340
+ O.unshift(
2341
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
2342
+ );
2343
+ break;
2344
+ case 3:
2345
+ N = o.width / 2 + o.left, O.unshift(
2346
+ "rotate(-90 " + N.toString() + " " + N.toString() + ")"
2347
+ );
2348
+ break;
2349
+ }
2350
+ b % 2 === 1 && (o.left !== o.top && (N = o.left, o.left = o.top, o.top = N), o.width !== o.height && (N = o.width, o.width = o.height, o.height = N)), O.length && (a = '<g transform="' + O.join(" ") + '">' + a + "</g>");
2351
+ });
2352
+ const s = r.width, l = r.height, i = o.width, c = o.height;
2353
+ let u, d;
2354
+ return s === null ? (d = l === null ? "1em" : l === "auto" ? c : l, u = Xt(d, i / c)) : (u = s === "auto" ? i : s, d = l === null ? Xt(u, c / i) : l === "auto" ? c : l), {
2355
+ attributes: {
2356
+ width: u.toString(),
2357
+ height: d.toString(),
2358
+ viewBox: o.left.toString() + " " + o.top.toString() + " " + i.toString() + " " + c.toString()
2359
+ },
2360
+ body: a
2361
+ };
2680
2362
  }
2681
- function ua(e, t) {
2682
- return xe(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2363
+ const Ds = /\sid="(\S+)"/g, Cs = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2364
+ let Ps = 0;
2365
+ function As(e, t = Cs) {
2366
+ const n = [];
2367
+ let r;
2368
+ for (; r = Ds.exec(e); )
2369
+ n.push(r[1]);
2370
+ return n.length && n.forEach((o) => {
2371
+ const a = typeof t == "function" ? t(o) : t + (Ps++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2372
+ e = e.replace(
2373
+ new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
2374
+ "$1" + a + "$3"
2375
+ );
2376
+ }), e;
2683
2377
  }
2684
- function fa(e) {
2685
- return e.mode === "composition" ? e.global : e.global.__composer;
2378
+ function ks(e, t) {
2379
+ let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
2380
+ for (const r in t)
2381
+ n += " " + r + '="' + t[r] + '"';
2382
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
2686
2383
  }
2687
- function _a(e, t, n = !1) {
2688
- let r = null;
2689
- const o = t.root;
2690
- let a = t.parent;
2691
- for (; a != null; ) {
2692
- const s = e;
2693
- if (e.mode === "composition" && (r = s.__getInstance(a)), r != null || o === a)
2694
- break;
2695
- a = a.parent;
2384
+ function Rs(e) {
2385
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
2386
+ }
2387
+ function Fs(e) {
2388
+ return 'url("data:image/svg+xml,' + Rs(e) + '")';
2389
+ }
2390
+ const Jt = {
2391
+ ...Yn,
2392
+ inline: !1
2393
+ }, $s = {
2394
+ xmlns: "http://www.w3.org/2000/svg",
2395
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2396
+ "aria-hidden": !0,
2397
+ role: "img"
2398
+ }, Ms = {
2399
+ display: "inline-block"
2400
+ }, lt = {
2401
+ backgroundColor: "currentColor"
2402
+ }, Kn = {
2403
+ backgroundColor: "transparent"
2404
+ }, Qt = {
2405
+ Image: "var(--svg)",
2406
+ Repeat: "no-repeat",
2407
+ Size: "100% 100%"
2408
+ }, qt = {
2409
+ webkitMask: lt,
2410
+ mask: lt,
2411
+ background: Kn
2412
+ };
2413
+ for (const e in qt) {
2414
+ const t = qt[e];
2415
+ for (const n in Qt)
2416
+ t[e + n] = Qt[n];
2417
+ }
2418
+ const Re = {};
2419
+ ["horizontal", "vertical"].forEach((e) => {
2420
+ const t = e.slice(0, 1) + "Flip";
2421
+ Re[e + "-flip"] = t, Re[e.slice(0, 1) + "-flip"] = t, Re[e + "Flip"] = t;
2422
+ });
2423
+ function Zt(e) {
2424
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
2425
+ }
2426
+ const Vs = (e, t) => {
2427
+ const n = Ns(Jt, t), r = { ...$s }, o = t.mode || "svg", a = {}, s = t.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
2428
+ for (let p in t) {
2429
+ const h = t[p];
2430
+ if (h !== void 0)
2431
+ switch (p) {
2432
+ case "icon":
2433
+ case "style":
2434
+ case "onLoad":
2435
+ case "mode":
2436
+ break;
2437
+ case "inline":
2438
+ case "hFlip":
2439
+ case "vFlip":
2440
+ n[p] = h === !0 || h === "true" || h === 1;
2441
+ break;
2442
+ case "flip":
2443
+ typeof h == "string" && ys(n, h);
2444
+ break;
2445
+ case "color":
2446
+ a.color = h;
2447
+ break;
2448
+ case "rotate":
2449
+ typeof h == "string" ? n[p] = Ls(h) : typeof h == "number" && (n[p] = h);
2450
+ break;
2451
+ case "ariaHidden":
2452
+ case "aria-hidden":
2453
+ h !== !0 && h !== "true" && delete r["aria-hidden"];
2454
+ break;
2455
+ default: {
2456
+ const b = Re[p];
2457
+ b ? (h === !0 || h === "true" || h === 1) && (n[b] = !0) : Jt[p] === void 0 && (r[p] = h);
2458
+ }
2459
+ }
2696
2460
  }
2697
- return r;
2461
+ const i = ws(e, n), c = i.attributes;
2462
+ if (n.inline && (a.verticalAlign = "-0.125em"), o === "svg") {
2463
+ r.style = {
2464
+ ...a,
2465
+ ...l
2466
+ }, Object.assign(r, c);
2467
+ let p = 0, h = t.id;
2468
+ return typeof h == "string" && (h = h.replace(/-/g, "_")), r.innerHTML = As(i.body, h ? () => h + "ID" + p++ : "iconifyVue"), Fe("svg", r);
2469
+ }
2470
+ const { body: u, width: d, height: _ } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), O = ks(u, {
2471
+ ...c,
2472
+ width: d + "",
2473
+ height: _ + ""
2474
+ });
2475
+ return r.style = {
2476
+ ...a,
2477
+ "--svg": Fs(O),
2478
+ width: Zt(c.width),
2479
+ height: Zt(c.height),
2480
+ ...Ms,
2481
+ ...g ? lt : Kn,
2482
+ ...l
2483
+ }, Fe("span", r);
2484
+ }, Xn = /* @__PURE__ */ Object.create(null);
2485
+ function Ne(e, t) {
2486
+ Xn[e] = t;
2698
2487
  }
2699
- function da(e, t, n) {
2700
- let r = null;
2701
- To(() => {
2702
- if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
2703
- t.vnode.el.__VUE_I18N__ = n, r = Nn();
2704
- const o = n;
2705
- o[we] && o[we](r), r.on("*", lt);
2488
+ const Us = _e({
2489
+ inheritAttrs: !1,
2490
+ render() {
2491
+ const e = this.$attrs, t = e.icon, n = typeof t == "string" ? Xn[t] : typeof t == "object" ? t : null;
2492
+ return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : Vs({
2493
+ ...vt,
2494
+ ...n
2495
+ }, e);
2496
+ }
2497
+ });
2498
+ var xs = Object.defineProperty, Gs = Object.defineProperties, Ws = Object.getOwnPropertyDescriptors, en = Object.getOwnPropertySymbols, js = Object.prototype.hasOwnProperty, Hs = Object.prototype.propertyIsEnumerable, tn = (e, t, n) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nn = (e, t) => {
2499
+ for (var n in t || (t = {}))
2500
+ js.call(t, n) && tn(e, n, t[n]);
2501
+ if (en)
2502
+ for (var n of en(t))
2503
+ Hs.call(t, n) && tn(e, n, t[n]);
2504
+ return e;
2505
+ }, Bs = (e, t) => Gs(e, Ws(t)), zs = (e, t, n) => new Promise((r, o) => {
2506
+ var a = (i) => {
2507
+ try {
2508
+ l(n.next(i));
2509
+ } catch (c) {
2510
+ o(c);
2706
2511
  }
2707
- }, t), yo(() => {
2708
- if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
2709
- r && r.off("*", lt);
2710
- const o = n;
2711
- o[rt] && o[rt](), delete t.vnode.el.__VUE_I18N__;
2512
+ }, s = (i) => {
2513
+ try {
2514
+ l(n.throw(i));
2515
+ } catch (c) {
2516
+ o(c);
2517
+ }
2518
+ }, l = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(a, s);
2519
+ l((n = n.apply(e, t)).next());
2520
+ });
2521
+ const Ys = {
2522
+ name: "VirtualList",
2523
+ props: {
2524
+ listData: {
2525
+ type: Object,
2526
+ default: () => []
2527
+ },
2528
+ itemSize: {
2529
+ type: Number,
2530
+ default: 200
2531
+ }
2532
+ },
2533
+ setup(e) {
2534
+ const t = {
2535
+ screenHeight: M(0),
2536
+ startOffset: M(0),
2537
+ start: M(0),
2538
+ end: M(0)
2539
+ }, n = M(), r = {
2540
+ listHeight: W(() => e.listData.length * e.itemSize),
2541
+ visibleCount: W(() => Math.ceil(t.screenHeight.value / e.itemSize)),
2542
+ getTransform: W(() => `translate3d(0,${t.startOffset.value}px,0)`),
2543
+ visibleData: W(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
2544
+ };
2545
+ return nn(Bs(nn({}, r), {
2546
+ virList: n
2547
+ }), t);
2548
+ },
2549
+ mounted() {
2550
+ this.init(), $e(() => this.listData.length, () => zs(this, null, function* () {
2551
+ yield this.$nextTick(), this.init();
2552
+ }));
2553
+ },
2554
+ methods: {
2555
+ init() {
2556
+ this.screenHeight = this.$el.clientHeight, this.screenHeight == 0 && (this.screenHeight = 400), this.start = 0, this.end = this.start + this.visibleCount;
2557
+ },
2558
+ scrollEvent() {
2559
+ if (this.virList) {
2560
+ let e = this.virList.scrollTop;
2561
+ this.start = Math.floor(e / this.itemSize), this.end = this.start + this.visibleCount, this.startOffset = e - e % this.itemSize;
2562
+ }
2712
2563
  }
2713
- e.__deleteInstance(t);
2714
- }, t);
2564
+ }
2565
+ };
2566
+ function Ks(e, t, n, r, o, a) {
2567
+ return A(), F("div", {
2568
+ ref: "virList",
2569
+ class: "infinite-list-container",
2570
+ onScroll: t[0] || (t[0] = (s) => a.scrollEvent())
2571
+ }, [
2572
+ C("div", {
2573
+ class: "infinite-list-phantom",
2574
+ style: Le({ height: e.listHeight + "px" })
2575
+ }, null, 4),
2576
+ C("div", {
2577
+ class: "infinite-list",
2578
+ style: Le({ transform: e.getTransform })
2579
+ }, [
2580
+ (A(!0), F(Oe, null, De(e.visibleData, (s) => (A(), F("div", {
2581
+ ref_for: !0,
2582
+ ref: "items",
2583
+ class: "infinite-list-item",
2584
+ key: s.id,
2585
+ style: Le({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
2586
+ }, [
2587
+ oe(e.$slots, "default", { data: s }, void 0, !0)
2588
+ ], 4))), 128))
2589
+ ], 4)
2590
+ ], 544);
2715
2591
  }
2716
- const ma = [
2717
- "locale",
2718
- "fallbackLocale",
2719
- "availableLocales"
2720
- ], ga = ["t", "rt", "d", "n", "tm"];
2721
- function pa(e, t) {
2722
- const n = /* @__PURE__ */ Object.create(null);
2723
- ma.forEach((r) => {
2724
- const o = Object.getOwnPropertyDescriptor(t, r);
2725
- if (!o)
2726
- throw J(D.UNEXPECTED_ERROR);
2727
- const a = Lo(o.value) ? {
2728
- get() {
2729
- return o.value.value;
2592
+ const Xs = /* @__PURE__ */ de(Ys, [["render", Ks], ["__scopeId", "data-v-12d2a294"]]);
2593
+ var Js = Object.defineProperty, Qs = Object.defineProperties, qs = Object.getOwnPropertyDescriptors, on = Object.getOwnPropertySymbols, Zs = Object.prototype.hasOwnProperty, ea = Object.prototype.propertyIsEnumerable, rn = (e, t, n) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ta = (e, t) => {
2594
+ for (var n in t || (t = {}))
2595
+ Zs.call(t, n) && rn(e, n, t[n]);
2596
+ if (on)
2597
+ for (var n of on(t))
2598
+ ea.call(t, n) && rn(e, n, t[n]);
2599
+ return e;
2600
+ }, na = (e, t) => Qs(e, qs(t));
2601
+ const oa = _e({
2602
+ components: {
2603
+ VirtualList: Xs,
2604
+ CountShow: jn,
2605
+ Icon: Us
2606
+ },
2607
+ name: "group-show",
2608
+ props: {
2609
+ deviceGroup: Object,
2610
+ controlParams: Object
2611
+ },
2612
+ setup(e, t) {
2613
+ const n = M(), r = fn("theme"), o = {
2614
+ filterDevice(u) {
2615
+ var d, _, g, O, p;
2616
+ let h = !0;
2617
+ (d = e.controlParams) != null && d.searchStr && (h = 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((O = e.controlParams) == null ? void 0 : O.searchStr) >= 0);
2618
+ let b = !0;
2619
+ return (p = e.controlParams) != null && p.onlyShowOnline && (b = u.online), h && b;
2730
2620
  },
2731
- set(s) {
2732
- o.value.value = s;
2621
+ deviceText(u) {
2622
+ return u.user ? u.name.length > 0 ? `${u.user} [${u.id}] [${u.name}]` : `${u.user} [${u.id}] []` : u.name.length > 0 ? `${u.name} [${u.id}]` : ` [${u.id}]`;
2623
+ },
2624
+ groupText(u) {
2625
+ if (u)
2626
+ return u.name.length > 0 ? u.name : u.id;
2733
2627
  }
2734
- } : {
2735
- get() {
2736
- return o.get && o.get();
2628
+ }, a = {
2629
+ filteredDevices: W(() => {
2630
+ var u;
2631
+ const d = (u = e.deviceGroup) == null ? void 0 : u.devices, _ = d && d.filter((O) => o.filterDevice(O)) || [];
2632
+ return _.filter((O) => O.online).concat(_.filter((O) => !O.online));
2633
+ })
2634
+ }, s = W(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
2635
+ function l(u, d) {
2636
+ if (d.length == 0)
2637
+ return !0;
2638
+ let _ = !1;
2639
+ 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), !_) {
2640
+ for (let g = 0; g < u.items.length; g++)
2641
+ if (l(u.items[g], d))
2642
+ return !0;
2737
2643
  }
2738
- };
2739
- Object.defineProperty(n, r, a);
2740
- }), e.config.globalProperties.$i18n = n, ga.forEach((r) => {
2741
- const o = Object.getOwnPropertyDescriptor(t, r);
2742
- if (!o || !o.value)
2743
- throw J(D.UNEXPECTED_ERROR);
2744
- Object.defineProperty(e.config.globalProperties, `$${r}`, o);
2745
- });
2746
- }
2747
- ps(Jr);
2748
- hs(yn);
2749
- Ms();
2750
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2751
- const e = ft();
2752
- e.__INTLIFY__ = !0, ss(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2753
- }
2754
- process.env.NODE_ENV;
2755
- const ha = {
2756
- "zhi-xian-shi-zai-xian-she-bei": (e) => {
2757
- const { normalize: t } = e;
2758
- return t(["\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907"]);
2644
+ return _;
2645
+ }
2646
+ const i = W(() => {
2647
+ if (e.controlParams) {
2648
+ const u = e.controlParams.searchStr;
2649
+ if (e.deviceGroup)
2650
+ return l(e.deviceGroup, u);
2651
+ }
2652
+ return !1;
2653
+ }), c = M(!1);
2654
+ return na(ta({
2655
+ innerUtils: o
2656
+ }, a), {
2657
+ devicePanelHeight: s,
2658
+ showGroup: i,
2659
+ bShow: c,
2660
+ theme: r,
2661
+ countRef: n
2662
+ });
2759
2663
  }
2664
+ });
2665
+ const ra = {
2666
+ key: 0,
2667
+ class: "head-op"
2668
+ }, sa = {
2669
+ key: 1,
2670
+ style: { display: "inline-block", width: "25px" }
2671
+ }, aa = {
2672
+ key: 0,
2673
+ class: "group-head-count"
2674
+ }, la = ["title"], ia = { class: "group-slot" }, ca = {
2675
+ key: 0,
2676
+ style: { "margin-left": "26px" }
2677
+ }, ua = ["title"], fa = { class: "device-slot" };
2678
+ function _a(e, t, n, r, o, a) {
2679
+ var s;
2680
+ const l = ce("Icon"), i = ce("CountShow"), c = ce("group-show"), u = ce("VirtualList");
2681
+ return e.showGroup ? (A(), F("div", {
2682
+ key: 0,
2683
+ class: Xe("group " + e.theme)
2684
+ }, [
2685
+ ae(i, {
2686
+ countInfo: e.deviceGroup,
2687
+ controlParams: e.controlParams,
2688
+ ref: "countRef"
2689
+ }, {
2690
+ default: ue(({ online: d, total: _ }) => {
2691
+ var g, O;
2692
+ return [
2693
+ e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (A(), F("span", ra, [
2694
+ ae(l, {
2695
+ icon: e.bShow ? "minus" : "plus",
2696
+ width: "20",
2697
+ onClick: t[0] || (t[0] = (p) => e.bShow = !e.bShow),
2698
+ class: "handle-ls-svg"
2699
+ }, null, 8, ["icon"])
2700
+ ])) : (A(), F("span", sa)),
2701
+ C("span", {
2702
+ class: "group-head-db-click",
2703
+ onDblclick: t[1] || (t[1] = (p) => e.bShow = !e.bShow)
2704
+ }, [
2705
+ ae(l, {
2706
+ icon: e.bShow ? "group" : "group-closed",
2707
+ width: "24",
2708
+ class: "group-avatar"
2709
+ }, null, 8, ["icon"]),
2710
+ e.bShow ? Be("", !0) : (A(), F("span", aa, se((g = e.deviceGroup) == null ? void 0 : g.items.length), 1)),
2711
+ C("span", {
2712
+ class: "group-name",
2713
+ title: (O = e.deviceGroup) == null ? void 0 : O.name
2714
+ }, se(e.innerUtils.groupText(e.deviceGroup)), 9, la)
2715
+ ], 32),
2716
+ C("div", ia, [
2717
+ oe(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
2718
+ ])
2719
+ ];
2720
+ }),
2721
+ _: 3
2722
+ }, 8, ["countInfo", "controlParams"]),
2723
+ e.bShow ? (A(), F("div", ca, [
2724
+ (A(!0), F(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (d, _) => (A(), _n(c, {
2725
+ key: _,
2726
+ deviceGroup: d,
2727
+ controlParams: e.controlParams
2728
+ }, {
2729
+ group: ue(({ group: g }) => [
2730
+ oe(e.$slots, "group", { group: g }, void 0, !0)
2731
+ ]),
2732
+ device: ue(({ device: g, group: O }) => [
2733
+ oe(e.$slots, "device", {
2734
+ device: g,
2735
+ group: O
2736
+ }, void 0, !0)
2737
+ ]),
2738
+ _: 2
2739
+ }, 1032, ["deviceGroup", "controlParams"]))), 128)),
2740
+ C("div", {
2741
+ class: "device-show-div",
2742
+ style: Le(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
2743
+ }, [
2744
+ ae(u, {
2745
+ "list-data": e.filteredDevices,
2746
+ "item-size": 40
2747
+ }, {
2748
+ default: ue(({ data: d }) => [
2749
+ C("div", {
2750
+ class: Xe(d.online && "online-device")
2751
+ }, [
2752
+ ae(l, {
2753
+ icon: "user",
2754
+ width: "16",
2755
+ class: "device-avatar"
2756
+ }),
2757
+ C("span", {
2758
+ title: e.innerUtils.deviceText(d),
2759
+ class: "device-name"
2760
+ }, se(e.innerUtils.deviceText(d)), 9, ua),
2761
+ C("div", fa, [
2762
+ oe(e.$slots, "device", {
2763
+ device: d,
2764
+ group: e.deviceGroup
2765
+ }, void 0, !0)
2766
+ ])
2767
+ ], 2)
2768
+ ]),
2769
+ _: 3
2770
+ }, 8, ["list-data"])
2771
+ ], 4)
2772
+ ])) : Be("", !0)
2773
+ ], 2)) : Be("", !0);
2774
+ }
2775
+ const da = /* @__PURE__ */ de(oa, [["render", _a], ["__scopeId", "data-v-93cfc8dc"]]), ma = {
2776
+ width: 1024,
2777
+ height: 1024,
2778
+ body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
2779
+ }, ga = {
2780
+ width: 1024,
2781
+ height: 1024,
2782
+ body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
2783
+ }, pa = {
2784
+ width: 1024,
2785
+ height: 1024,
2786
+ 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"/>'
2787
+ }, ha = {
2788
+ width: 1024,
2789
+ height: 1024,
2790
+ 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"/>'
2760
2791
  }, va = {
2761
- "zhi-xian-shi-zai-xian-she-bei": (e) => {
2762
- const { normalize: t } = e;
2763
- return t(["online only"]);
2764
- }
2792
+ width: 1024,
2793
+ height: 1024,
2794
+ 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"/>'
2795
+ }, Ea = {
2796
+ width: 1024,
2797
+ height: 1024,
2798
+ body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
2765
2799
  };
2766
- Ne("right", wr);
2767
- Ne("group", Dr);
2768
- Ne("group-closed", Cr);
2769
- Ne("user", Pr);
2770
- Ne("plus", Ar);
2771
- Ne("minus", kr);
2772
- const Ea = _e({
2800
+ Ne("right", ma);
2801
+ Ne("group", ga);
2802
+ Ne("group-closed", pa);
2803
+ Ne("user", ha);
2804
+ Ne("plus", va);
2805
+ Ne("minus", Ea);
2806
+ const Oa = _e({
2773
2807
  components: {
2774
- CountShow: dn,
2775
- GroupShow: Sr
2808
+ CountShow: jn,
2809
+ GroupShow: da
2776
2810
  },
2777
2811
  props: {
2778
2812
  deviceGroup: Object,
@@ -2795,57 +2829,47 @@ const Ea = _e({
2795
2829
  }
2796
2830
  },
2797
2831
  setup(e) {
2798
- const t = la({
2799
- locale: e.locale,
2800
- messages: {
2801
- "zh-cn": ha,
2802
- "en-us": va
2803
- },
2804
- fallbackLocale: "en-us",
2805
- silentTranslationWarn: !0,
2806
- silentFallbackWarn: !0
2807
- });
2808
- So("theme", e.theme);
2809
- const n = M({
2832
+ Do("theme", e.theme);
2833
+ const t = M({
2810
2834
  onlyShowOnline: !1,
2811
2835
  searchStr: ""
2812
- }), r = M();
2836
+ }), n = M();
2813
2837
  return {
2814
- i18nHello: t.global,
2815
- inputSearchRef: r,
2816
- controlParams: n
2838
+ i18nT: Wn,
2839
+ inputSearchRef: n,
2840
+ controlParams: t
2817
2841
  };
2818
2842
  }
2819
2843
  });
2820
- const Oa = { class: "device-group-list" }, Na = { class: "search-panel" }, ba = { for: "onlineShow" }, Ta = { class: "device-panel" };
2821
- function ya(e, t, n, r, o, a) {
2844
+ const ba = { class: "device-group-list" }, Na = { class: "search-panel" }, Ta = { for: "onlineShow" }, ya = { class: "device-panel" };
2845
+ function La(e, t, n, r, o, a) {
2822
2846
  var s;
2823
- const l = ie("CountShow"), i = ie("group-show");
2824
- return A(), F("div", Oa, [
2847
+ const l = ce("CountShow"), i = ce("group-show");
2848
+ return A(), F("div", ba, [
2825
2849
  C("div", Na, [
2826
- se(l, { countInfo: e.deviceGroup }, {
2827
- default: ce(() => [
2850
+ ae(l, { countInfo: e.deviceGroup }, {
2851
+ default: ue(() => [
2828
2852
  C("input", {
2829
2853
  type: "checkbox",
2830
2854
  id: "onlineShow",
2831
2855
  value: "onlineShow",
2832
2856
  onChange: t[0] || (t[0] = (...c) => e.onCheckBoxChange && e.onCheckBoxChange(...c))
2833
2857
  }, null, 32),
2834
- C("label", ba, ue(e.i18nHello.t("zhi-xian-shi-zai-xian-she-bei")), 1)
2858
+ C("label", Ta, se(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 1)
2835
2859
  ]),
2836
2860
  _: 1
2837
2861
  }, 8, ["countInfo"])
2838
2862
  ]),
2839
- C("div", Ta, [
2863
+ C("div", ya, [
2840
2864
  (A(!0), F(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (A(), _n(i, {
2841
2865
  controlParams: e.controlParams,
2842
2866
  key: u,
2843
2867
  deviceGroup: c
2844
2868
  }, {
2845
- group: ce(({ group: d }) => [
2869
+ group: ue(({ group: d }) => [
2846
2870
  oe(e.$slots, "group", { group: d }, void 0, !0)
2847
2871
  ]),
2848
- device: ce(({ device: d, group: _ }) => [
2872
+ device: ue(({ device: d, group: _ }) => [
2849
2873
  oe(e.$slots, "device", {
2850
2874
  device: d,
2851
2875
  group: _
@@ -2856,28 +2880,28 @@ function ya(e, t, n, r, o, a) {
2856
2880
  ])
2857
2881
  ]);
2858
2882
  }
2859
- const La = /* @__PURE__ */ de(Ea, [["render", ya], ["__scopeId", "data-v-17e4082a"]]);
2860
- var Ia = Object.defineProperty, Sa = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, sn = Object.getOwnPropertySymbols, Da = Object.prototype.hasOwnProperty, Ca = Object.prototype.propertyIsEnumerable, an = (e, t, n) => t in e ? Ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zn = (e, t) => {
2883
+ const Ia = /* @__PURE__ */ de(Oa, [["render", La], ["__scopeId", "data-v-309f0551"]]);
2884
+ var Sa = Object.defineProperty, wa = Object.defineProperties, Da = Object.getOwnPropertyDescriptors, sn = Object.getOwnPropertySymbols, Ca = Object.prototype.hasOwnProperty, Pa = Object.prototype.propertyIsEnumerable, an = (e, t, n) => t in e ? Sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Jn = (e, t) => {
2861
2885
  for (var n in t || (t = {}))
2862
- Da.call(t, n) && an(e, n, t[n]);
2886
+ Ca.call(t, n) && an(e, n, t[n]);
2863
2887
  if (sn)
2864
2888
  for (var n of sn(t))
2865
- Ca.call(t, n) && an(e, n, t[n]);
2889
+ Pa.call(t, n) && an(e, n, t[n]);
2866
2890
  return e;
2867
- }, Pa = (e, t) => Sa(e, wa(t));
2891
+ }, Aa = (e, t) => wa(e, Da(t));
2868
2892
  const ye = 6, ln = ye * 2;
2869
- function Aa(e, t) {
2893
+ function ka(e, t) {
2870
2894
  return e.map(
2871
2895
  ({ 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
2896
  ).join(" ");
2873
2897
  }
2874
- function ka(e, t, n) {
2898
+ function Ra(e, t, n) {
2875
2899
  return n.findIndex((r) => e >= r.leftTop.row && e < r.rightBottom.row && t >= r.leftTop.col && t < r.rightBottom.col) >= 0;
2876
2900
  }
2877
- function Ra(e, t, n) {
2901
+ function Fa(e, t, n) {
2878
2902
  n.forEach((r) => {
2879
- const o = Pa(zn({}, r.leftTop), {
2880
- id: Kn(r.leftTop),
2903
+ const o = Aa(Jn({}, r.leftTop), {
2904
+ id: Qn(r.leftTop),
2881
2905
  layout: {
2882
2906
  left: 100 / t.col * r.leftTop.col,
2883
2907
  top: 100 / t.row * r.leftTop.row,
@@ -2888,11 +2912,11 @@ function Ra(e, t, n) {
2888
2912
  e.push(o);
2889
2913
  });
2890
2914
  }
2891
- function Kn(e) {
2915
+ function Qn(e) {
2892
2916
  return `${e.row}-${e.col}`;
2893
2917
  }
2894
2918
  const cn = "ComponentsDefaultLayoutKeyAF84566";
2895
- function Fa(e) {
2919
+ function $a(e) {
2896
2920
  const t = [], n = [];
2897
2921
  for (let r = 0; r < e.points.length / 2; r++)
2898
2922
  n.push(e.points.slice(r * 2, r * 2 + 2));
@@ -2923,20 +2947,20 @@ const Ue = {
2923
2947
  const n = [];
2924
2948
  for (let r = 0; r < e.row; r++)
2925
2949
  for (let o = 0; o < e.col; o++) {
2926
- if (ka(r, o, t))
2950
+ if (Ra(r, o, t))
2927
2951
  continue;
2928
- const a = zn({
2952
+ const a = Jn({
2929
2953
  layout: {
2930
2954
  left: 100 / e.col * o,
2931
2955
  top: 100 / e.row * r,
2932
2956
  width: 100 / e.col,
2933
2957
  height: 100 / e.row
2934
2958
  },
2935
- id: Kn({ row: r, col: o })
2959
+ id: Qn({ row: r, col: o })
2936
2960
  }, { row: r, col: o });
2937
2961
  n.push(a);
2938
2962
  }
2939
- return Ra(n, e, t), n;
2963
+ return Fa(n, e, t), n;
2940
2964
  },
2941
2965
  TransLayoutToSVG(e, t) {
2942
2966
  const n = [];
@@ -2960,12 +2984,12 @@ const Ue = {
2960
2984
  });
2961
2985
  const a = r.concat(...o), s = [];
2962
2986
  a.forEach((c) => {
2963
- c.points = c.points.sort(), s.push(...Fa(c));
2987
+ c.points = c.points.sort(), s.push(...$a(c));
2964
2988
  });
2965
2989
  const l = {
2966
2990
  row: t.height / e.row,
2967
2991
  col: t.width / e.col
2968
- }, i = Aa(s, l);
2992
+ }, i = ka(s, l);
2969
2993
  return `<svg viewBox='0 0 ${t.width + ln} ${t.height + ln} ' width="100%" height="100%"> ${i} </svg>`;
2970
2994
  },
2971
2995
  StorageDefaultLayout: {
@@ -2983,7 +3007,7 @@ const Ue = {
2983
3007
  localStorage.setItem(cn, JSON.stringify(e));
2984
3008
  }
2985
3009
  }
2986
- }, $a = _e({
3010
+ }, Ma = _e({
2987
3011
  emits: {
2988
3012
  onselect(e, t) {
2989
3013
  return !0;
@@ -3038,31 +3062,31 @@ const Ue = {
3038
3062
  }
3039
3063
  }
3040
3064
  });
3041
- const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
3042
- function Ga(e, t, n, r, o, a) {
3065
+ const Va = ["onClick"], Ua = { style: { position: "relative", display: "inline-block", margin: "10px" } }, xa = ["innerHTML"], Ga = { style: { "vertical-align": "middle" } };
3066
+ function Wa(e, t, n, r, o, a) {
3043
3067
  return A(), F("div", null, [
3044
3068
  (A(!0), F(Oe, null, De(e.layoutInfos, (s) => (A(), F("div", {
3045
3069
  class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
3046
3070
  onClick: (l) => e.selectClick(s)
3047
3071
  }, [
3048
- C("div", Va, [
3072
+ C("div", Ua, [
3049
3073
  C("div", {
3050
3074
  innerHTML: s.svg,
3051
3075
  class: "svg-style"
3052
- }, null, 8, Ua),
3053
- C("span", xa, ue(s.layout.name), 1)
3076
+ }, null, 8, xa),
3077
+ C("span", Ga, se(s.layout.name), 1)
3054
3078
  ])
3055
- ], 10, Ma))), 256))
3079
+ ], 10, Va))), 256))
3056
3080
  ]);
3057
3081
  }
3058
- const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-36f7a9fc"]]), Ha = _e({
3082
+ const ja = /* @__PURE__ */ de(Ma, [["render", Wa], ["__scopeId", "data-v-36f7a9fc"]]), Ha = _e({
3059
3083
  emits: {
3060
3084
  LayoutChange(e, t, n) {
3061
3085
  return !0;
3062
3086
  }
3063
3087
  },
3064
3088
  components: {
3065
- LayoutShow: Wa
3089
+ LayoutShow: ja
3066
3090
  },
3067
3091
  setup(e, t) {
3068
3092
  const n = [
@@ -3103,18 +3127,19 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-36f7a9f
3103
3127
  }, c = M(""), u = M(!1), d = () => {
3104
3128
  u.value = !u.value, u.value ? window.addEventListener("click", _) : window.removeEventListener("click", _);
3105
3129
  }, _ = (p) => {
3106
- u.value && p.composedPath().findIndex(({ className: N }) => N == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", _));
3130
+ u.value && p.composedPath().findIndex(({ className: b }) => b == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", _));
3107
3131
  };
3108
3132
  return {
3109
- selectClassicalLayout: (p, h, N) => {
3110
- var b;
3111
- N || (l = !1);
3133
+ i18nT: Wn,
3134
+ selectClassicalLayout: (p, h, b) => {
3135
+ var N;
3136
+ b || (l = !1);
3112
3137
  const L = n.find((T) => T.row == p && T.col == h && typeof T.area > "u" && typeof T.areas > "u");
3113
- L && ((b = r.value) == null || b.SelectLayoutById(JSON.stringify(L))), N = !0;
3138
+ L && ((N = r.value) == null || N.SelectLayoutById(JSON.stringify(L))), b = !0;
3114
3139
  },
3115
3140
  selectLoyoutById: (p, h) => {
3116
- var N;
3117
- h || (l = !1), (N = r.value) == null || N.SelectLayoutById(p), h = !0;
3141
+ var b;
3142
+ h || (l = !1), (b = r.value) == null || b.SelectLayoutById(p), h = !0;
3118
3143
  },
3119
3144
  refLayoutShow: r,
3120
3145
  clickShowSelectPanel: d,
@@ -3125,14 +3150,12 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-36f7a9f
3125
3150
  defaultLayout: a
3126
3151
  };
3127
3152
  },
3128
- expose: ["selectLoyoutById"]
3153
+ expose: ["selectLoyoutById", "selectClassicalLayout"]
3129
3154
  });
3130
- const Xn = (e) => (Co("data-v-11aff58a"), e = e(), Po(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
3131
- /* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
3132
- ], -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));
3155
+ const Ba = { class: "layout-switcher" }, za = ["innerHTML"], Ya = { class: "switch-panel" }, Ka = { style: { "margin-left": "10px" } }, Xa = { style: { "margin-left": "10px", padding: "10px" } }, Ja = { style: { "margin-left": "10px" } };
3133
3156
  function Qa(e, t, n, r, o, a) {
3134
- const s = ie("LayoutShow");
3135
- return A(), F("div", ja, [
3157
+ const s = ce("LayoutShow");
3158
+ return A(), F("div", Ba, [
3136
3159
  C("div", {
3137
3160
  onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
3138
3161
  class: "switch-switcher"
@@ -3140,14 +3163,16 @@ function Qa(e, t, n, r, o, a) {
3140
3163
  C("div", {
3141
3164
  innerHTML: e.svgSelect,
3142
3165
  style: { height: "32px", display: "inline-block", "vertical-align": "middle" }
3143
- }, null, 8, Ba)
3166
+ }, null, 8, za)
3144
3167
  ]),
3145
- wo(C("div", Ya, [
3146
- za,
3168
+ Co(C("div", Ya, [
3147
3169
  C("div", Ka, [
3148
- C("div", Xa, [
3149
- Ja,
3150
- se(s, {
3170
+ C("span", null, se(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
3171
+ ]),
3172
+ C("div", Xa, [
3173
+ C("div", Ja, [
3174
+ C("span", null, se(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
3175
+ ae(s, {
3151
3176
  ref: "refLayoutShow",
3152
3177
  layouts: e.layout,
3153
3178
  defaultLayout: e.defaultLayout,
@@ -3156,11 +3181,11 @@ function Qa(e, t, n, r, o, a) {
3156
3181
  ])
3157
3182
  ])
3158
3183
  ], 512), [
3159
- [Do, e.showSelectPanel]
3184
+ [Po, e.showSelectPanel]
3160
3185
  ])
3161
3186
  ]);
3162
3187
  }
3163
- const qa = /* @__PURE__ */ de(Ha, [["render", Qa], ["__scopeId", "data-v-11aff58a"]]), Za = _e({
3188
+ const qa = /* @__PURE__ */ de(Ha, [["render", Qa], ["__scopeId", "data-v-d76cdc4b"]]), Za = _e({
3164
3189
  props: {
3165
3190
  layout: {
3166
3191
  type: Object
@@ -3195,19 +3220,20 @@ function tl(e, t, n, r, o, a) {
3195
3220
  ]);
3196
3221
  }
3197
3222
  const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-efd900be"]]), un = {
3198
- RecursionDeviceGroup: La,
3223
+ RecursionDeviceGroup: Ia,
3199
3224
  VideoAreasLayoutShow: nl,
3200
3225
  MultiVideoAreaLayoutSwitch: qa
3201
3226
  }, sl = {
3202
- install(e) {
3203
- for (const t in un) {
3204
- const n = un[t];
3205
- e.component(t, n);
3227
+ install(e, t) {
3228
+ hs(t && typeof t.locale < "u" ? t.locale : xn.en);
3229
+ for (const n in un) {
3230
+ const r = un[n];
3231
+ e.component(n, r);
3206
3232
  }
3207
3233
  }
3208
3234
  };
3209
3235
  export {
3210
- bt as RecursionDeviceGroup,
3236
+ Kt as RecursionDeviceGroup,
3211
3237
  x as VideoAreaLayout,
3212
3238
  sl as default
3213
3239
  };