smarteye-e-components 0.0.39 → 0.0.40

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