smarteye-e-components 0.0.46 → 0.0.48

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,4 +1,4 @@
1
- import { defineComponent as _e, computed as H, openBlock as P, createElementBlock as k, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as ke, ref as x, watch as $e, normalizeStyle as Ie, Fragment as Oe, renderList as De, inject as fn, resolveComponent as ie, normalizeClass as Xe, createVNode as se, withCtx as ce, createCommentVNode as Be, createBlock as _n, getCurrentInstance as it, effectScope as yo, onMounted as dn, onUnmounted as mn, isRef as Io, Text as Lo, provide as So, withDirectives as wo, vShow as Do, pushScopeId as Co, popScopeId as Ao } from "vue";
1
+ import { defineComponent as _e, computed as W, openBlock as P, createElementBlock as k, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as $e, ref as x, watch as Me, normalizeStyle as Ie, Fragment as Oe, renderList as Ce, 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 yo, onMounted as dn, onUnmounted as mn, isRef as Io, Text as Lo, provide as So, withDirectives as wo, vShow as Do, pushScopeId as Co, popScopeId as Ao } from "vue";
2
2
  var bt;
3
3
  ((e) => {
4
4
  ((n) => {
@@ -168,7 +168,7 @@ const Po = _e({
168
168
  }
169
169
  return 0;
170
170
  }
171
- const n = H(() => t((o) => {
171
+ const n = W(() => t((o) => {
172
172
  var a, s;
173
173
  if (o.devices) {
174
174
  let l = (a = o.devices) == null ? void 0 : a.filter((c) => c.online);
@@ -178,7 +178,7 @@ const Po = _e({
178
178
  return 0;
179
179
  }, e.countInfo));
180
180
  return {
181
- totalCount: H(() => t((o) => {
181
+ totalCount: W(() => t((o) => {
182
182
  var a;
183
183
  if (o.devices) {
184
184
  let s = o.devices;
@@ -196,14 +196,14 @@ const de = (e, t) => {
196
196
  for (const [r, o] of t)
197
197
  n[r] = o;
198
198
  return n;
199
- }, Ro = { class: "root" }, Fo = { class: "count-show" };
199
+ }, Fo = { class: "root" }, Ro = { class: "count-show" };
200
200
  function ko(e, t, n, r, o, a) {
201
- return P(), k("div", Ro, [
201
+ return P(), k("div", Fo, [
202
202
  oe(e.$slots, "default", {
203
203
  total: e.totalCount,
204
204
  online: e.onlineCount
205
205
  }, void 0, !0),
206
- C("span", Fo, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
206
+ C("span", Ro, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
207
207
  ]);
208
208
  }
209
209
  const gn = /* @__PURE__ */ de(Po, [["render", ko], ["__scopeId", "data-v-a063c331"]]), pn = Object.freeze(
@@ -417,10 +417,10 @@ for (const e in Lt) {
417
417
  for (const n in It)
418
418
  t[e + n] = It[n];
419
419
  }
420
- const Fe = {};
420
+ const ke = {};
421
421
  ["horizontal", "vertical"].forEach((e) => {
422
422
  const t = e.slice(0, 1) + "Flip";
423
- Fe[e + "-flip"] = t, Fe[e.slice(0, 1) + "-flip"] = t, Fe[e + "Flip"] = t;
423
+ ke[e + "-flip"] = t, ke[e.slice(0, 1) + "-flip"] = t, ke[e + "Flip"] = t;
424
424
  });
425
425
  function St(e) {
426
426
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
@@ -455,7 +455,7 @@ const qo = (e, t) => {
455
455
  E !== !0 && E !== "true" && delete r["aria-hidden"];
456
456
  break;
457
457
  default: {
458
- const N = Fe[O];
458
+ const N = ke[O];
459
459
  N ? (E === !0 || E === "true" || E === 1) && (n[N] = !0) : yt[O] === void 0 && (r[O] = E);
460
460
  }
461
461
  }
@@ -467,7 +467,7 @@ const qo = (e, t) => {
467
467
  ...l
468
468
  }, Object.assign(r, c);
469
469
  let O = 0, E = t.id;
470
- return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"), ke("svg", r);
470
+ return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"), $e("svg", r);
471
471
  }
472
472
  const { body: u, width: _, height: d } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), v = zo(u, {
473
473
  ...c,
@@ -482,7 +482,7 @@ const qo = (e, t) => {
482
482
  ...Jo,
483
483
  ...g ? Qe : On,
484
484
  ...l
485
- }, ke("span", r);
485
+ }, $e("span", r);
486
486
  }, Nn = /* @__PURE__ */ Object.create(null);
487
487
  function Ne(e, t) {
488
488
  Nn[e] = t;
@@ -539,17 +539,17 @@ const lr = {
539
539
  start: x(0),
540
540
  end: x(0)
541
541
  }, n = x(), r = {
542
- listHeight: H(() => e.listData.length * e.itemSize),
543
- visibleCount: H(() => Math.ceil(t.screenHeight.value / e.itemSize)),
544
- getTransform: H(() => `translate3d(0,${t.startOffset.value}px,0)`),
545
- visibleData: H(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
542
+ listHeight: W(() => e.listData.length * e.itemSize),
543
+ visibleCount: W(() => Math.ceil(t.screenHeight.value / e.itemSize)),
544
+ getTransform: W(() => `translate3d(0,${t.startOffset.value}px,0)`),
545
+ visibleData: W(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
546
546
  };
547
547
  return Ct(sr(Ct({}, r), {
548
548
  virList: n
549
549
  }), t);
550
550
  },
551
551
  mounted() {
552
- this.init(), $e(() => this.listData.length, () => ar(this, null, function* () {
552
+ this.init(), Me(() => this.listData.length, () => ar(this, null, function* () {
553
553
  yield this.$nextTick(), this.init();
554
554
  }));
555
555
  },
@@ -579,7 +579,7 @@ function ir(e, t, n, r, o, a) {
579
579
  class: "infinite-list",
580
580
  style: Ie({ transform: e.getTransform })
581
581
  }, [
582
- (P(!0), k(Oe, null, De(e.visibleData, (s) => (P(), k("div", {
582
+ (P(!0), k(Oe, null, Ce(e.visibleData, (s) => (P(), k("div", {
583
583
  ref_for: !0,
584
584
  ref: "items",
585
585
  class: "infinite-list-item",
@@ -628,12 +628,12 @@ const hr = _e({
628
628
  return u.name.length > 0 ? u.name : u.id;
629
629
  }
630
630
  }, a = {
631
- filteredDevices: H(() => {
631
+ filteredDevices: W(() => {
632
632
  var u;
633
633
  const _ = (u = e.deviceGroup) == null ? void 0 : u.devices, d = _ && _.filter((v) => o.filterDevice(v)) || [];
634
634
  return d.filter((v) => v.online).concat(d.filter((v) => !v.online));
635
635
  })
636
- }, s = H(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
636
+ }, s = W(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
637
637
  function l(u, _) {
638
638
  if (_.length == 0)
639
639
  return !0;
@@ -645,7 +645,7 @@ const hr = _e({
645
645
  }
646
646
  return d;
647
647
  }
648
- const i = H(() => {
648
+ const i = W(() => {
649
649
  if (e.controlParams) {
650
650
  const u = e.controlParams.searchStr;
651
651
  if (e.deviceGroup)
@@ -723,7 +723,7 @@ function Lr(e, t, n, r, o, a) {
723
723
  _: 3
724
724
  }, 8, ["countInfo", "controlParams"]),
725
725
  e.bShow ? (P(), k("div", Tr, [
726
- (P(!0), k(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (_, d) => (P(), _n(c, {
726
+ (P(!0), k(Oe, null, Ce((s = e.deviceGroup) == null ? void 0 : s.items, (_, d) => (P(), _n(c, {
727
727
  key: d,
728
728
  deviceGroup: _,
729
729
  controlParams: e.controlParams
@@ -794,7 +794,7 @@ const Sr = /* @__PURE__ */ de(hr, [["render", Lr], ["__scopeId", "data-v-93cfc8d
794
794
  width: 1024,
795
795
  height: 1024,
796
796
  body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
797
- }, Rr = {
797
+ }, Fr = {
798
798
  width: 1024,
799
799
  height: 1024,
800
800
  body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
@@ -812,25 +812,25 @@ if (process.env.NODE_ENV !== "production") {
812
812
  e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
813
813
  });
814
814
  }
815
- const Fr = /\{([0-9a-zA-Z]+)\}/g;
815
+ const Rr = /\{([0-9a-zA-Z]+)\}/g;
816
816
  function ut(e, ...t) {
817
- return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Fr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
817
+ return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Rr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
818
818
  }
819
- const 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;
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]", Ve = (e) => dt(e) === "[object RegExp]", xe = (e) => y(e) && Object.keys(e).length === 0;
820
820
  function be(e, t) {
821
821
  typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
822
822
  }
823
823
  const j = Object.assign;
824
- 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) {
824
+ let Ft;
825
+ const ft = () => Ft || (Ft = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
826
+ function Rt(e) {
827
827
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
828
828
  }
829
829
  const Ur = Object.prototype.hasOwnProperty;
830
830
  function _t(e, t) {
831
831
  return Ur.call(e, t);
832
832
  }
833
- const R = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", bn = Object.prototype.toString, dt = (e) => bn.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : R(e) || y(e) && e.toString === bn ? JSON.stringify(e, null, 2) : String(e), kt = 2;
833
+ const F = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", bn = Object.prototype.toString, dt = (e) => bn.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : F(e) || y(e) && e.toString === bn ? JSON.stringify(e, null, 2) : String(e), kt = 2;
834
834
  function Gr(e, t = 0, n = e.length) {
835
835
  const r = e.split(/\r?\n/);
836
836
  let o = 0;
@@ -1095,7 +1095,7 @@ function rs(e = {}) {
1095
1095
  let p = "text", w = "";
1096
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
1097
  let I = u(N)(E);
1098
- return p === "vnode" && R(I) && w && (I = I[0]), w ? _(w)(I, p) : I;
1098
+ return p === "vnode" && F(I) && w && (I = I[0]), w ? _(w)(I, p) : I;
1099
1099
  },
1100
1100
  message: u,
1101
1101
  type: v,
@@ -1104,12 +1104,12 @@ function rs(e = {}) {
1104
1104
  };
1105
1105
  return E;
1106
1106
  }
1107
- let Se = null;
1107
+ let we = null;
1108
1108
  function ss(e) {
1109
- Se = e;
1109
+ we = e;
1110
1110
  }
1111
1111
  function as(e, t, n) {
1112
- Se && Se.emit(In.I18nInit, {
1112
+ we && we.emit(In.I18nInit, {
1113
1113
  timestamp: Date.now(),
1114
1114
  i18n: e,
1115
1115
  version: t,
@@ -1118,7 +1118,7 @@ function as(e, t, n) {
1118
1118
  }
1119
1119
  const ls = /* @__PURE__ */ is(In.FunctionTranslate);
1120
1120
  function is(e) {
1121
- return (t) => Se && Se.emit(e, t);
1121
+ return (t) => we && we.emit(e, t);
1122
1122
  }
1123
1123
  const K = {
1124
1124
  NOT_FOUND_KEY: 1,
@@ -1142,7 +1142,7 @@ function Ee(e, ...t) {
1142
1142
  function us(e, t, n) {
1143
1143
  return [.../* @__PURE__ */ new Set([
1144
1144
  n,
1145
- ...R(t) ? t : S(t) ? Object.keys(t) : h(t) ? [t] : [n]
1145
+ ...F(t) ? t : S(t) ? Object.keys(t) : h(t) ? [t] : [n]
1146
1146
  ])];
1147
1147
  }
1148
1148
  function Ln(e, t, n) {
@@ -1152,10 +1152,10 @@ function Ln(e, t, n) {
1152
1152
  if (!a) {
1153
1153
  a = [];
1154
1154
  let s = [n];
1155
- for (; R(s); )
1155
+ for (; F(s); )
1156
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);
1157
+ const l = F(t) || !y(t) ? t : t.default ? t.default : null;
1158
+ s = h(l) ? [l] : l, F(s) && Vt(a, s, !1), o.__localeChainCache.set(r, a);
1159
1159
  }
1160
1160
  return a;
1161
1161
  }
@@ -1181,11 +1181,11 @@ function _s(e, t, n) {
1181
1181
  if (!e.includes(t) && (r = !0, t)) {
1182
1182
  r = t[t.length - 1] !== "!";
1183
1183
  const o = t.replace(/!/g, "");
1184
- e.push(o), (R(n) || y(n)) && n[o] && (r = n[o]);
1184
+ e.push(o), (F(n) || y(n)) && n[o] && (r = n[o]);
1185
1185
  }
1186
1186
  return r;
1187
1187
  }
1188
- const ds = "9.2.2", Ge = -1, mt = "en-US", Ve = "", Ut = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1188
+ const ds = "9.2.2", Ge = -1, mt = "en-US", Ue = "", Ut = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1189
1189
  function ms() {
1190
1190
  return {
1191
1191
  upper: (e, t) => t === "text" && h(e) ? e.toUpperCase() : t === "vnode" && S(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
@@ -1211,7 +1211,7 @@ const Gt = (e) => {
1211
1211
  }, Es = () => Cn;
1212
1212
  let Wt = 0;
1213
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 = j({}, e.modifiers || {}, ms()), i = e.pluralRules || {}, c = $(e.missing) ? e.missing : null, u = A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, d = !!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 : Sn || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : wn || 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 : {};
1214
+ const t = h(e.version) ? e.version : ds, n = h(e.locale) ? e.locale : mt, r = F(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 = j({}, e.modifiers || {}, ms()), i = e.pluralRules || {}, c = $(e.missing) ? e.missing : null, u = A(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, d = !!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 : Sn || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : wn || 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
1215
  Wt++;
1216
1216
  const q = {
1217
1217
  version: t,
@@ -1288,7 +1288,7 @@ function jt(e, ...t) {
1288
1288
  i,
1289
1289
  E,
1290
1290
  l[E] || {}
1291
- ] : Rn(e, i, E, s, _, u), T = N, p = i;
1291
+ ] : Fn(e, i, E, s, _, u), T = N, p = i;
1292
1292
  if (!g && !(h(T) || ee(T)) && O && (T = v, p = T), !g && (!(h(T) || ee(T)) || !h(b)))
1293
1293
  return o ? Ge : i;
1294
1294
  if (process.env.NODE_ENV !== "production" && h(T) && e.messageCompiler == null)
@@ -1296,28 +1296,28 @@ function jt(e, ...t) {
1296
1296
  let w = !1;
1297
1297
  const I = () => {
1298
1298
  w = !0;
1299
- }, V = ee(T) ? T : Fn(e, i, b, T, p, I);
1299
+ }, V = ee(T) ? T : Rn(e, i, b, T, p, I);
1300
1300
  if (w)
1301
1301
  return T;
1302
- const z = Is(e, b, L, c), J = rs(z), q = Ts(e, V, J), Ce = r ? r(q, i) : q;
1302
+ const z = Is(e, b, L, c), J = rs(z), q = Ts(e, V, J), Ae = r ? r(q, i) : q;
1303
1303
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1304
- const Ae = {
1304
+ const Pe = {
1305
1305
  timestamp: Date.now(),
1306
1306
  key: h(i) ? i : ee(T) ? T.key : "",
1307
1307
  locale: b || (ee(T) ? T.locale : ""),
1308
1308
  format: h(T) ? T : ee(T) ? T.source : "",
1309
- message: Ce
1309
+ message: Ae
1310
1310
  };
1311
- Ae.meta = j({}, e.__meta, vs() || {}), ls(Ae);
1311
+ Pe.meta = j({}, e.__meta, vs() || {}), ls(Pe);
1312
1312
  }
1313
- return Ce;
1313
+ return Ae;
1314
1314
  }
1315
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]));
1316
+ F(e.list) ? e.list = e.list.map((t) => h(t) ? Rt(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
1317
+ h(e.named[t]) && (e.named[t] = Rt(e.named[t]));
1318
1318
  });
1319
1319
  }
1320
- function Rn(e, t, n, r, o, a) {
1320
+ function Fn(e, t, n, r, o, a) {
1321
1321
  const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
1322
1322
  let _ = {}, d, g = null, v = n, O = null;
1323
1323
  const E = "translate";
@@ -1360,7 +1360,7 @@ function Rn(e, t, n, r, o, a) {
1360
1360
  }
1361
1361
  return [g, d, _];
1362
1362
  }
1363
- function Fn(e, t, n, r, o, a) {
1363
+ function Rn(e, t, n, r, o, a) {
1364
1364
  const { messageCompiler: s, warnHtmlMessage: l } = e;
1365
1365
  if (ee(r)) {
1366
1366
  const d = r;
@@ -1404,7 +1404,7 @@ function Je(...e) {
1404
1404
  if (!h(t) && !M(t) && !ee(t))
1405
1405
  throw ve(re.INVALID_ARGUMENT);
1406
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) && j(o, r), [a, o];
1407
+ return M(n) ? o.plural = n : h(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : F(n) && (o.list = n), M(r) ? o.plural = r : h(r) ? o.default = r : y(r) && j(o, r), [a, o];
1408
1408
  }
1409
1409
  function ys(e, t, n, r, o, a) {
1410
1410
  return {
@@ -1434,12 +1434,12 @@ function Is(e, t, n, r) {
1434
1434
  messages: (g) => {
1435
1435
  let v = s(n, g);
1436
1436
  if (v == null && u) {
1437
- const [, , O] = Rn(u, g, t, l, i, c);
1437
+ const [, , O] = Fn(u, g, t, l, i, c);
1438
1438
  v = s(O, g);
1439
1439
  }
1440
1440
  if (h(v)) {
1441
1441
  let O = !1;
1442
- const N = Fn(e, g, t, v, g, () => {
1442
+ const N = Rn(e, g, t, v, g, () => {
1443
1443
  O = !0;
1444
1444
  });
1445
1445
  return O ? Ht : N;
@@ -1456,7 +1456,7 @@ const Bt = typeof Intl < "u", kn = {
1456
1456
  function Yt(e, ...t) {
1457
1457
  const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
1458
1458
  if (process.env.NODE_ENV !== "production" && !kn.dateTimeFormat)
1459
- return a(Ee(K.CANNOT_FORMAT_DATE)), Ve;
1459
+ return a(Ee(K.CANNOT_FORMAT_DATE)), Ue;
1460
1460
  const [i, c, u, _] = qe(...t), d = 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(
1461
1461
  e,
1462
1462
  o,
@@ -1549,7 +1549,7 @@ function zt(e, t, n) {
1549
1549
  function Kt(e, ...t) {
1550
1550
  const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: l } = e;
1551
1551
  if (process.env.NODE_ENV !== "production" && !kn.numberFormat)
1552
- return a(Ee(K.CANNOT_FORMAT_NUMBER)), Ve;
1552
+ return a(Ee(K.CANNOT_FORMAT_NUMBER)), Ue;
1553
1553
  const [i, c, u, _] = Ze(...t), d = 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(
1554
1554
  e,
1555
1555
  o,
@@ -1701,7 +1701,7 @@ class Ps {
1701
1701
  n.resolve(await this.target[n.method](...n.args));
1702
1702
  }
1703
1703
  }
1704
- function Rs(e, t) {
1704
+ function Fs(e, t) {
1705
1705
  const n = e, r = Vn(), o = Ls(), a = Ss && n.enableEarlyProxy;
1706
1706
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
1707
1707
  o.emit(ws, e, t);
@@ -1723,7 +1723,7 @@ const ze = {
1723
1723
  ["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
1724
1724
  ["vue-i18n-resource-inspector"]: "I18n Resources",
1725
1725
  ["vue-i18n-timeline"]: "Vue I18n"
1726
- }, Fs = {
1726
+ }, Rs = {
1727
1727
  ["vue-i18n-resource-inspector"]: "Search for scopes ..."
1728
1728
  }, ks = {
1729
1729
  ["vue-i18n-timeline"]: 16764185
@@ -1795,7 +1795,7 @@ const Us = {
1795
1795
  [D.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
1796
1796
  [D.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
1797
1797
  [D.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
1798
- }, tt = /* @__PURE__ */ ne("__transrateVNode"), nt = /* @__PURE__ */ ne("__datetimeParts"), ot = /* @__PURE__ */ ne("__numberParts"), we = /* @__PURE__ */ ne("__enableEmitter"), rt = /* @__PURE__ */ ne("__disableEmitter"), xs = ne("__setPluralRules");
1798
+ }, tt = /* @__PURE__ */ ne("__transrateVNode"), nt = /* @__PURE__ */ ne("__datetimeParts"), ot = /* @__PURE__ */ ne("__numberParts"), De = /* @__PURE__ */ ne("__enableEmitter"), rt = /* @__PURE__ */ ne("__disableEmitter"), xs = ne("__setPluralRules");
1799
1799
  ne("__intlifyMeta");
1800
1800
  const Gs = /* @__PURE__ */ ne("__injectWithOption");
1801
1801
  function st(e) {
@@ -1815,8 +1815,8 @@ function st(e) {
1815
1815
  return e;
1816
1816
  }
1817
1817
  function Gn(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) => {
1818
+ const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n : F(r) ? {} : { [e]: {} };
1819
+ if (F(r) && r.forEach((l) => {
1820
1820
  if ("locale" in l && "resource" in l) {
1821
1821
  const { locale: i, resource: c } = l;
1822
1822
  i ? (s[i] = s[i] || {}, Le(c, s[i])) : Le(c, s);
@@ -1827,7 +1827,7 @@ function Gn(e, t) {
1827
1827
  _t(s, l) && st(s[l]);
1828
1828
  return s;
1829
1829
  }
1830
- const Re = (e) => !S(e) || R(e);
1830
+ const Re = (e) => !S(e) || F(e);
1831
1831
  function Le(e, t) {
1832
1832
  if (Re(e) || Re(t))
1833
1833
  throw Q(D.INVALID_VALUE);
@@ -1881,9 +1881,9 @@ function Hn(e = {}, t) {
1881
1881
  const a = x(
1882
1882
  n && o ? n.locale.value : h(e.locale) ? e.locale : mt
1883
1883
  ), s = x(
1884
- n && o ? n.fallbackLocale.value : h(e.fallbackLocale) || R(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
1884
+ n && o ? n.fallbackLocale.value : h(e.fallbackLocale) || F(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
1885
1885
  ), l = x(Gn(a.value, e)), i = x(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = x(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
1886
- let u = n ? n.missingWarn : A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Me(e.fallbackWarn) ? e.fallbackWarn : !0, d = 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;
1886
+ let u = n ? n.missingWarn : A(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, d = 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
1887
  const L = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
1888
1888
  let T = e.pluralRules || n && n.pluralRules, p;
1889
1889
  p = (() => {
@@ -1919,18 +1919,18 @@ function Hn(e = {}, t) {
1919
1919
  c.value
1920
1920
  ];
1921
1921
  }
1922
- const V = H({
1922
+ const V = W({
1923
1923
  get: () => a.value,
1924
1924
  set: (f) => {
1925
1925
  a.value = f, p.locale = a.value;
1926
1926
  }
1927
- }), z = H({
1927
+ }), z = W({
1928
1928
  get: () => s.value,
1929
1929
  set: (f) => {
1930
1930
  s.value = f, p.fallbackLocale = s.value, Te(p, a.value, f);
1931
1931
  }
1932
- }), J = H(() => l.value), q = /* @__PURE__ */ H(() => i.value), Ce = /* @__PURE__ */ H(() => c.value);
1933
- function Ae() {
1932
+ }), J = W(() => l.value), q = /* @__PURE__ */ W(() => i.value), Ae = /* @__PURE__ */ W(() => c.value);
1933
+ function Pe() {
1934
1934
  return $(E) ? E : null;
1935
1935
  }
1936
1936
  function qn(f) {
@@ -1945,7 +1945,7 @@ function Hn(e = {}, t) {
1945
1945
  function to(f, m) {
1946
1946
  return f !== "translate" || !m.resolvedMessage;
1947
1947
  }
1948
- const me = (f, m, B, W, je, Pe) => {
1948
+ const me = (f, m, B, H, je, Fe) => {
1949
1949
  I();
1950
1950
  let ge;
1951
1951
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
@@ -1970,9 +1970,9 @@ function Hn(e = {}, t) {
1970
1970
  groupId: `${B}:${le}`
1971
1971
  });
1972
1972
  }
1973
- return n && d ? W(n) : je(le);
1973
+ return n && d ? H(n) : je(le);
1974
1974
  } else {
1975
- if (Pe(ge))
1975
+ if (Fe(ge))
1976
1976
  return ge;
1977
1977
  throw Q(D.UNEXPECTED_RETURN_TYPE);
1978
1978
  }
@@ -1981,16 +1981,16 @@ function Hn(e = {}, t) {
1981
1981
  return me((m) => Reflect.apply(jt, null, [m, ...f]), () => Je(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => h(m));
1982
1982
  }
1983
1983
  function no(...f) {
1984
- const [m, B, W] = f;
1985
- if (W && !S(W))
1984
+ const [m, B, H] = f;
1985
+ if (H && !S(H))
1986
1986
  throw Q(D.INVALID_ARGUMENT);
1987
- return Et(m, B, j({ resolvedMessage: !0 }, W || {}));
1987
+ return Et(m, B, j({ resolvedMessage: !0 }, H || {}));
1988
1988
  }
1989
1989
  function oo(...f) {
1990
- return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ve, (m) => h(m));
1990
+ return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ue, (m) => h(m));
1991
1991
  }
1992
1992
  function ro(...f) {
1993
- return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ve, (m) => h(m));
1993
+ return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ue, (m) => h(m));
1994
1994
  }
1995
1995
  function so(f) {
1996
1996
  return f.map((m) => h(m) || M(m) || A(m) ? Qt(String(m)) : m);
@@ -2004,11 +2004,11 @@ function Hn(e = {}, t) {
2004
2004
  return me(
2005
2005
  (m) => {
2006
2006
  let B;
2007
- const W = m;
2007
+ const H = m;
2008
2008
  try {
2009
- W.processor = ao, B = Reflect.apply(jt, null, [W, ...f]);
2009
+ H.processor = ao, B = Reflect.apply(jt, null, [H, ...f]);
2010
2010
  } finally {
2011
- W.processor = null;
2011
+ H.processor = null;
2012
2012
  }
2013
2013
  return B;
2014
2014
  },
@@ -2016,7 +2016,7 @@ function Hn(e = {}, t) {
2016
2016
  "translate",
2017
2017
  (m) => m[tt](...f),
2018
2018
  (m) => [Qt(m)],
2019
- (m) => R(m)
2019
+ (m) => F(m)
2020
2020
  );
2021
2021
  }
2022
2022
  function io(...f) {
@@ -2026,7 +2026,7 @@ function Hn(e = {}, t) {
2026
2026
  "number format",
2027
2027
  (m) => m[ot](...f),
2028
2028
  () => [],
2029
- (m) => h(m) || R(m)
2029
+ (m) => h(m) || F(m)
2030
2030
  );
2031
2031
  }
2032
2032
  function co(...f) {
@@ -2036,23 +2036,23 @@ function Hn(e = {}, t) {
2036
2036
  "datetime format",
2037
2037
  (m) => m[nt](...f),
2038
2038
  () => [],
2039
- (m) => h(m) || R(m)
2039
+ (m) => h(m) || F(m)
2040
2040
  );
2041
2041
  }
2042
2042
  function uo(f) {
2043
2043
  T = f, p.pluralRules = T;
2044
2044
  }
2045
2045
  function fo(f, m) {
2046
- const B = h(m) ? m : a.value, W = Ot(B);
2047
- return p.messageResolver(W, f) !== null;
2046
+ const B = h(m) ? m : a.value, H = Ot(B);
2047
+ return p.messageResolver(H, f) !== null;
2048
2048
  }
2049
2049
  function _o(f) {
2050
2050
  let m = null;
2051
2051
  const B = Ln(p, s.value, a.value);
2052
- for (let W = 0; W < B.length; W++) {
2053
- const je = l.value[B[W]] || {}, Pe = p.messageResolver(je, f);
2054
- if (Pe != null) {
2055
- m = Pe;
2052
+ for (let H = 0; H < B.length; H++) {
2053
+ const je = l.value[B[H]] || {}, Fe = p.messageResolver(je, f);
2054
+ if (Fe != null) {
2055
+ m = Fe;
2056
2056
  break;
2057
2057
  }
2058
2058
  }
@@ -2089,12 +2089,12 @@ function Hn(e = {}, t) {
2089
2089
  function bo(f, m) {
2090
2090
  c.value[f] = j(c.value[f] || {}, m), p.numberFormats = c.value, Xt(p, f, m);
2091
2091
  }
2092
- qt++, n && te && ($e(n.locale, (f) => {
2092
+ qt++, n && te && (Me(n.locale, (f) => {
2093
2093
  o && (a.value = f, p.locale = f, Te(p, a.value, s.value));
2094
- }), $e(n.fallbackLocale, (f) => {
2094
+ }), Me(n.fallbackLocale, (f) => {
2095
2095
  o && (s.value = f, p.fallbackLocale = f, Te(p, a.value, s.value));
2096
2096
  }));
2097
- const F = {
2097
+ const R = {
2098
2098
  id: qt,
2099
2099
  locale: V,
2100
2100
  fallbackLocale: z,
@@ -2157,17 +2157,17 @@ function Hn(e = {}, t) {
2157
2157
  getLocaleMessage: Ot,
2158
2158
  setLocaleMessage: go,
2159
2159
  mergeLocaleMessage: po,
2160
- getPostTranslationHandler: Ae,
2160
+ getPostTranslationHandler: Pe,
2161
2161
  setPostTranslationHandler: qn,
2162
2162
  getMissingHandler: Zn,
2163
2163
  setMissingHandler: eo,
2164
2164
  [xs]: uo
2165
2165
  };
2166
- return F.datetimeFormats = q, F.numberFormats = Ce, F.rt = no, F.te = fo, F.tm = mo, F.d = oo, F.n = ro, F.getDateTimeFormat = ho, F.setDateTimeFormat = vo, F.mergeDateTimeFormat = Eo, F.getNumberFormat = Oo, F.setNumberFormat = No, F.mergeNumberFormat = bo, F[Gs] = e.__injectWithOption, F[tt] = lo, F[nt] = co, F[ot] = io, process.env.NODE_ENV !== "production" && (F[we] = (f) => {
2166
+ return R.datetimeFormats = q, R.numberFormats = Ae, R.rt = no, R.te = fo, R.tm = mo, R.d = oo, R.n = ro, R.getDateTimeFormat = ho, R.setDateTimeFormat = vo, R.mergeDateTimeFormat = Eo, R.getNumberFormat = Oo, R.setNumberFormat = No, R.mergeNumberFormat = bo, R[Gs] = e.__injectWithOption, R[tt] = lo, R[nt] = co, R[ot] = io, process.env.NODE_ENV !== "production" && (R[De] = (f) => {
2167
2167
  p.__v_emitter = f;
2168
- }, F[rt] = () => {
2168
+ }, R[rt] = () => {
2169
2169
  p.__v_emitter = void 0;
2170
- }), F;
2170
+ }), R;
2171
2171
  }
2172
2172
  const pt = {
2173
2173
  tag: {
@@ -2188,7 +2188,7 @@ const pt = {
2188
2188
  function js({ slots: e }, t) {
2189
2189
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => r = [
2190
2190
  ...r,
2191
- ...R(o.children) ? o.children : [o]
2191
+ ...F(o.children) ? o.children : [o]
2192
2192
  ], []) : t.reduce((n, r) => {
2193
2193
  const o = e[r];
2194
2194
  return o && (n[r] = o()), n;
@@ -2218,12 +2218,12 @@ const Ke = {
2218
2218
  const a = Object.keys(n).filter((_) => _ !== "_"), s = {};
2219
2219
  e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = h(e.plural) ? +e.plural : e.plural);
2220
2220
  const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u = h(e.tag) || S(e.tag) ? e.tag : jn();
2221
- return ke(u, c, i);
2221
+ return $e(u, c, i);
2222
2222
  };
2223
2223
  }
2224
2224
  };
2225
2225
  function Bs(e) {
2226
- return R(e) && !h(e[0]);
2226
+ return F(e) && !h(e[0]);
2227
2227
  }
2228
2228
  function Bn(e, t, n, r) {
2229
2229
  const { slots: o, attrs: a } = t;
@@ -2233,12 +2233,12 @@ function Bn(e, t, n, r) {
2233
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((d, g) => n.includes(g) ? j({}, d, { [g]: e.format[g] }) : d, {}));
2234
2234
  const i = r(e.value, s, l);
2235
2235
  let c = [s.key];
2236
- R(i) ? c = i.map((d, g) => {
2236
+ F(i) ? c = i.map((d, g) => {
2237
2237
  const v = o[d.type], O = v ? v({ [d.type]: d.value, index: g, parts: i }) : [d.value];
2238
2238
  return Bs(O) && (O[0].key = `${d.type}-${g}`), O;
2239
2239
  }) : h(i) && (c = [i]);
2240
2240
  const u = j({}, a), _ = h(e.tag) || S(e.tag) ? e.tag : jn();
2241
- return ke(_, u, c);
2241
+ return $e(_, u, c);
2242
2242
  };
2243
2243
  }
2244
2244
  const en = {
@@ -2297,7 +2297,7 @@ function zs(e) {
2297
2297
  return {
2298
2298
  created: (s, l) => {
2299
2299
  const [i, c] = t(l);
2300
- te && e.global === c && (s.__i18nWatcher = $e(c.locale, () => {
2300
+ te && e.global === c && (s.__i18nWatcher = Me(c.locale, () => {
2301
2301
  l.instance && l.instance.$forceUpdate();
2302
2302
  })), s.__composer = c, s.textContent = i;
2303
2303
  },
@@ -2343,7 +2343,7 @@ let at;
2343
2343
  async function Xs(e, t) {
2344
2344
  return new Promise((n, r) => {
2345
2345
  try {
2346
- Rs({
2346
+ Fs({
2347
2347
  id: "vue-devtools-plugin-vue-i18n",
2348
2348
  label: ze["vue-devtools-plugin-vue-i18n"],
2349
2349
  packageName: "vue-i18n",
@@ -2360,7 +2360,7 @@ async function Xs(e, t) {
2360
2360
  id: "vue-i18n-resource-inspector",
2361
2361
  label: ze["vue-i18n-resource-inspector"],
2362
2362
  icon: "language",
2363
- treeFilterPlaceholder: Fs["vue-i18n-resource-inspector"]
2363
+ treeFilterPlaceholder: Rs["vue-i18n-resource-inspector"]
2364
2364
  }), o.on.getInspectorTree((s) => {
2365
2365
  s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && ta(s, t);
2366
2366
  });
@@ -2587,7 +2587,7 @@ function sa(e, t) {
2587
2587
  const n = Kn(e.nodeId, t);
2588
2588
  if (n) {
2589
2589
  const [r] = e.path;
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);
2590
+ r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) || F(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && A(e.state.value) && (n.inheritLocale = e.state.value);
2591
2591
  }
2592
2592
  }
2593
2593
  const aa = /* @__PURE__ */ ne("global-vue-i18n");
@@ -2621,7 +2621,7 @@ function la(e = {}, t) {
2621
2621
  const E = Tn();
2622
2622
  {
2623
2623
  const N = s;
2624
- N[we] && N[we](E);
2624
+ N[De] && N[De](E);
2625
2625
  }
2626
2626
  E.on("*", lt);
2627
2627
  }
@@ -2702,7 +2702,7 @@ function da(e, t, n) {
2702
2702
  if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
2703
2703
  t.vnode.el.__VUE_I18N__ = n, r = Tn();
2704
2704
  const o = n;
2705
- o[we] && o[we](r), r.on("*", lt);
2705
+ o[De] && o[De](r), r.on("*", lt);
2706
2706
  }
2707
2707
  }, t), mn(() => {
2708
2708
  if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
@@ -2768,7 +2768,7 @@ Ne("group", Dr);
2768
2768
  Ne("group-closed", Cr);
2769
2769
  Ne("user", Ar);
2770
2770
  Ne("plus", Pr);
2771
- Ne("minus", Rr);
2771
+ Ne("minus", Fr);
2772
2772
  const Ea = _e({
2773
2773
  components: {
2774
2774
  CountShow: gn,
@@ -2837,7 +2837,7 @@ function ya(e, t, n, r, o, a) {
2837
2837
  }, 8, ["countInfo"])
2838
2838
  ]),
2839
2839
  C("div", Ta, [
2840
- (P(!0), k(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (P(), _n(i, {
2840
+ (P(!0), k(Oe, null, Ce((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (P(), _n(i, {
2841
2841
  controlParams: e.controlParams,
2842
2842
  key: u,
2843
2843
  deviceGroup: c
@@ -2871,10 +2871,10 @@ function Pa(e, t) {
2871
2871
  ({ leftTop: { col: n, row: r }, rightBottom: { col: o, row: a } }) => `<line x1="${n * t.col + ye}" y1="${r * t.row + ye}" x2="${o * t.col + ye}" y2="${a * t.row + ye}" stroke="black" stroke-width="5"/>`
2872
2872
  ).join(" ");
2873
2873
  }
2874
- function Ra(e, t, n) {
2874
+ function Fa(e, t, n) {
2875
2875
  return n.findIndex((r) => e >= r.leftTop.row && e < r.rightBottom.row && t >= r.leftTop.col && t < r.rightBottom.col) >= 0;
2876
2876
  }
2877
- function Fa(e, t, n) {
2877
+ function Ra(e, t, n) {
2878
2878
  n.forEach((r) => {
2879
2879
  const o = Aa(Xn({}, r.leftTop), {
2880
2880
  id: Qn(r.leftTop),
@@ -2916,14 +2916,14 @@ function ka(e) {
2916
2916
  }
2917
2917
  return t;
2918
2918
  }
2919
- const Ue = {
2919
+ const Se = {
2920
2920
  TransLayoutToFrams(e) {
2921
2921
  const t = [];
2922
2922
  e.area && t.push(e.area), e.areas && t.push(...e.areas);
2923
2923
  const n = [];
2924
2924
  for (let r = 0; r < e.row; r++)
2925
2925
  for (let o = 0; o < e.col; o++) {
2926
- if (Ra(r, o, t))
2926
+ if (Fa(r, o, t))
2927
2927
  continue;
2928
2928
  const a = Xn({
2929
2929
  layout: {
@@ -2936,7 +2936,7 @@ const Ue = {
2936
2936
  }, { row: r, col: o });
2937
2937
  n.push(a);
2938
2938
  }
2939
- return Fa(n, e, t), n;
2939
+ return Ra(n, e, t), n;
2940
2940
  },
2941
2941
  TransLayoutToSVG(e, t) {
2942
2942
  const n = [];
@@ -3001,7 +3001,7 @@ const Ue = {
3001
3001
  const t = x([]);
3002
3002
  return e.layouts && e.layouts.forEach((n) => {
3003
3003
  t.value.push({
3004
- svg: Ue.TransLayoutToSVG(n, { width: 100, height: 100 }),
3004
+ svg: Se.TransLayoutToSVG(n, { width: 100, height: 100 }),
3005
3005
  layout: n,
3006
3006
  select: JSON.stringify(n) == JSON.stringify(e.defaultLayout)
3007
3007
  });
@@ -3037,7 +3037,7 @@ const Ue = {
3037
3037
  const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
3038
3038
  function Ga(e, t, n, r, o, a) {
3039
3039
  return P(), k("div", null, [
3040
- (P(!0), k(Oe, null, De(e.layoutInfos, (s) => (P(), k("div", {
3040
+ (P(!0), k(Oe, null, Ce(e.layoutInfos, (s) => (P(), k("div", {
3041
3041
  class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
3042
3042
  onClick: (l) => e.selectClick(s)
3043
3043
  }, [
@@ -3053,7 +3053,7 @@ function Ga(e, t, n, r, o, a) {
3053
3053
  }
3054
3054
  const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e731"]]), Ha = _e({
3055
3055
  emits: {
3056
- LayoutChange(e) {
3056
+ LayoutChange(e, t) {
3057
3057
  return !0;
3058
3058
  }
3059
3059
  },
@@ -3081,13 +3081,18 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e73
3081
3081
  U.Test.genLayout(5, 5),
3082
3082
  U.Test.genLayout(6, 6)
3083
3083
  ];
3084
- let r = Ue.StorageDefaultLayout.get();
3084
+ let r = Se.StorageDefaultLayout.get();
3085
3085
  const o = r || n[0];
3086
3086
  function a(u, _) {
3087
- return t.emit("LayoutChange", u), u.cancel || (l.value = _), !u.cancel;
3087
+ const d = Se.TransLayoutToFrams(u.layout).map(({ id: g, row: v, col: O }) => ({
3088
+ id: g,
3089
+ row: v,
3090
+ col: O
3091
+ }));
3092
+ return t.emit("LayoutChange", u, d), u.cancel || (l.value = _), !u.cancel;
3088
3093
  }
3089
3094
  const s = function(u, _) {
3090
- JSON.stringify(r) != JSON.stringify(u) && a(u, _) && (r = u.layout, Ue.StorageDefaultLayout.set(u.layout)), l.value.length == 0 && a(u, _);
3095
+ JSON.stringify(r) != JSON.stringify(u) && a(u, _) && (r = u.layout, Se.StorageDefaultLayout.set(u.layout)), l.value.length == 0 && a(u, _);
3091
3096
  }, l = x(""), i = x(!1), c = (u) => {
3092
3097
  i.value && u.composedPath().findIndex(({ className: d }) => d == "layout-switcher") < 0 && (i.value = !1);
3093
3098
  };
@@ -3105,7 +3110,7 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e73
3105
3110
  },
3106
3111
  expose: []
3107
3112
  });
3108
- const Jn = (e) => (Co("data-v-13ed4e20"), e = e(), Ao(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Jn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
3113
+ const Jn = (e) => (Co("data-v-98aa5a45"), e = e(), Ao(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Jn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
3109
3114
  /* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
3110
3115
  ], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } }, Qa = /* @__PURE__ */ Jn(() => /* @__PURE__ */ C("span", null, "\u6807\u51C6\u6A21\u5F0F\uFF1A", -1));
3111
3116
  function Ja(e, t, n, r, o, a) {
@@ -3137,34 +3142,41 @@ function Ja(e, t, n, r, o, a) {
3137
3142
  ])
3138
3143
  ]);
3139
3144
  }
3140
- const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-13ed4e20"]]), Za = _e({
3145
+ const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-98aa5a45"]]), Za = _e({
3141
3146
  props: {
3142
3147
  layout: {
3143
3148
  type: Object
3144
3149
  }
3145
3150
  },
3146
3151
  setup(e) {
3152
+ const t = W(() => e.layout ? Se.TransLayoutToFrams(e.layout) : []);
3147
3153
  return {
3148
- frameRef: H(() => e.layout ? Ue.TransLayoutToFrams(e.layout) : [])
3154
+ areas: W(() => t.value.map((r) => ({
3155
+ id: r.id,
3156
+ row: r.row,
3157
+ col: r.col
3158
+ }))),
3159
+ frameRef: t
3149
3160
  };
3150
3161
  }
3151
3162
  });
3152
3163
  const el = { style: { position: "relative", height: "100%", width: "100%" } };
3153
3164
  function tl(e, t, n, r, o, a) {
3154
3165
  return P(), k("div", el, [
3155
- (P(!0), k(Oe, null, De(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (P(), k("div", {
3166
+ (P(!0), k(Oe, null, Ce(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (P(), k("div", {
3156
3167
  class: "play-area",
3157
3168
  style: Ie(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
3158
3169
  }, [
3159
3170
  oe(e.$slots, "default", {
3160
3171
  id: l,
3161
3172
  row: i,
3162
- col: c
3173
+ col: c,
3174
+ areas: e.areas
3163
3175
  }, void 0, !0)
3164
3176
  ], 4))), 256))
3165
3177
  ]);
3166
3178
  }
3167
- const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-af6643cc"]]), un = {
3179
+ const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-23b04a63"]]), un = {
3168
3180
  RecursionDeviceGroup: Ia,
3169
3181
  VideoAreasLayoutShow: nl,
3170
3182
  MultiVideoAreaLayoutSwitch: qa