@assemblyvoting/ui-library 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ const bI = Object.prototype.hasOwnProperty;
29
29
  function T3(e, c) {
30
30
  return bI.call(e, c);
31
31
  }
32
- const p2 = Array.isArray, z2 = (e) => typeof e == "function", j = (e) => typeof e == "string", n2 = (e) => typeof e == "boolean", m2 = (e) => e !== null && typeof e == "object", fs = Object.prototype.toString, us = (e) => fs.call(e), c2 = (e) => {
32
+ const p2 = Array.isArray, z2 = (e) => typeof e == "function", R = (e) => typeof e == "string", n2 = (e) => typeof e == "boolean", m2 = (e) => e !== null && typeof e == "object", fs = Object.prototype.toString, us = (e) => fs.call(e), c2 = (e) => {
33
33
  if (!m2(e))
34
34
  return !1;
35
35
  const c = Object.getPrototypeOf(e);
@@ -347,7 +347,7 @@ function jI(e, c = {}) {
347
347
  hasSpace: v.length > 0
348
348
  };
349
349
  }
350
- function R(z, v = !0) {
350
+ function j(z, v = !0) {
351
351
  const x = (Z = !1, u2 = "", Z2 = !1) => {
352
352
  const O2 = z.currentPeek();
353
353
  return O2 === "{" ? u2 === "%" ? !1 : Z : O2 === "@" || !O2 ? u2 === "%" ? !0 : Z : O2 === "%" ? (z.peek(), x(Z, "%", !0)) : O2 === "|" ? u2 === "%" || Z2 ? !0 : !(u2 === g1 || u2 === $2) : O2 === g1 ? (z.peek(), x(!0, g1, Z2)) : O2 === $2 ? (z.peek(), x(!0, $2, Z2)) : !0;
@@ -400,12 +400,12 @@ function jI(e, c = {}) {
400
400
  if (x === "{" || x === "}" || x === "@" || x === "|" || !x)
401
401
  break;
402
402
  if (x === "%")
403
- if (R(z))
403
+ if (j(z))
404
404
  v += x, z.next();
405
405
  else
406
406
  break;
407
407
  else if (x === g1 || x === $2)
408
- if (R(z))
408
+ if (j(z))
409
409
  v += x, z.next();
410
410
  else {
411
411
  if (W(z))
@@ -589,7 +589,7 @@ function jI(e, c = {}) {
589
589
  const { isModulo: Z, hasSpace: u2 } = q(z);
590
590
  if (Z)
591
591
  return u2 ? d(v, 0, M2(z)) : d(v, 4, R2(z));
592
- if (R(z))
592
+ if (j(z))
593
593
  return d(v, 0, M2(z));
594
594
  break;
595
595
  }
@@ -1334,21 +1334,21 @@ function gE(e, c) {
1334
1334
  c.count || (c.count = e), c.n || (c.n = e);
1335
1335
  }
1336
1336
  function ME(e = {}) {
1337
- const c = e.locale, a = HE(e), t = m2(e.pluralRules) && j(c) && z2(e.pluralRules[c]) ? e.pluralRules[c] : D9, n = m2(e.pluralRules) && j(c) && z2(e.pluralRules[c]) ? D9 : void 0, s = (V) => V[t(a, V.length, n)], i = e.list || [], r = (V) => i[V], l = e.named || {};
1337
+ const c = e.locale, a = HE(e), t = m2(e.pluralRules) && R(c) && z2(e.pluralRules[c]) ? e.pluralRules[c] : D9, n = m2(e.pluralRules) && R(c) && z2(e.pluralRules[c]) ? D9 : void 0, s = (V) => V[t(a, V.length, n)], i = e.list || [], r = (V) => i[V], l = e.named || {};
1338
1338
  k2(e.pluralIndex) && gE(a, l);
1339
1339
  const f = (V) => l[V];
1340
1340
  function o(V) {
1341
1341
  const M = z2(e.messages) ? e.messages(V) : m2(e.messages) ? e.messages[V] : !1;
1342
1342
  return M || (e.parent ? e.parent.message(V) : pE);
1343
1343
  }
1344
- const m = (V) => e.modifiers ? e.modifiers[V] : vE, d = c2(e.processor) && z2(e.processor.normalize) ? e.processor.normalize : VE, h = c2(e.processor) && z2(e.processor.interpolate) ? e.processor.interpolate : zE, b = c2(e.processor) && j(e.processor.type) ? e.processor.type : hE, k = {
1344
+ const m = (V) => e.modifiers ? e.modifiers[V] : vE, d = c2(e.processor) && z2(e.processor.normalize) ? e.processor.normalize : VE, h = c2(e.processor) && z2(e.processor.interpolate) ? e.processor.interpolate : zE, b = c2(e.processor) && R(e.processor.type) ? e.processor.type : hE, k = {
1345
1345
  list: r,
1346
1346
  named: f,
1347
1347
  plural: s,
1348
1348
  linked: (V, ...M) => {
1349
1349
  const [L, H] = M;
1350
1350
  let A = "text", y = "";
1351
- M.length === 1 ? m2(L) ? (y = L.modifier || y, A = L.type || A) : j(L) && (y = L || y) : M.length === 2 && (j(L) && (y = L || y), j(H) && (A = H || A));
1351
+ M.length === 1 ? m2(L) ? (y = L.modifier || y, A = L.type || A) : R(L) && (y = L || y) : M.length === 2 && (R(L) && (y = L || y), R(H) && (A = H || A));
1352
1352
  const C = o(V)(k), _ = (
1353
1353
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
1354
1354
  A === "vnode" && p2(C) && y ? C[0] : C
@@ -1408,16 +1408,16 @@ function _0(e, c) {
1408
1408
  }
1409
1409
  let F6;
1410
1410
  function O9(e) {
1411
- return j(e) ? e : F6 != null && e.resolvedOnce ? F6 : F6 = e();
1411
+ return R(e) ? e : F6 != null && e.resolvedOnce ? F6 : F6 = e();
1412
1412
  }
1413
1413
  function AE(e, c, a) {
1414
1414
  return [.../* @__PURE__ */ new Set([
1415
1415
  a,
1416
- ...p2(c) ? c : m2(c) ? Object.keys(c) : j(c) ? [c] : [a]
1416
+ ...p2(c) ? c : m2(c) ? Object.keys(c) : R(c) ? [c] : [a]
1417
1417
  ])];
1418
1418
  }
1419
1419
  function vs(e, c, a) {
1420
- const t = j(a) ? a : f3, n = e;
1420
+ const t = R(a) ? a : f3, n = e;
1421
1421
  n.__localeChainCache || (n.__localeChainCache = /* @__PURE__ */ new Map());
1422
1422
  let s = n.__localeChainCache.get(t);
1423
1423
  if (!s) {
@@ -1426,7 +1426,7 @@ function vs(e, c, a) {
1426
1426
  for (; p2(i); )
1427
1427
  i = P9(s, i, c);
1428
1428
  const r = p2(c) || !c2(c) ? c : c.default ? c.default : null;
1429
- i = j(r) ? [r] : r, p2(i) && P9(s, i, !1), n.__localeChainCache.set(t, s);
1429
+ i = R(r) ? [r] : r, p2(i) && P9(s, i, !1), n.__localeChainCache.set(t, s);
1430
1430
  }
1431
1431
  return s;
1432
1432
  }
@@ -1434,7 +1434,7 @@ function P9(e, c, a) {
1434
1434
  let t = !0;
1435
1435
  for (let n = 0; n < c.length && n2(t); n++) {
1436
1436
  const s = c[n];
1437
- j(s) && (t = NE(e, c[n], a));
1437
+ R(s) && (t = NE(e, c[n], a));
1438
1438
  }
1439
1439
  return t;
1440
1440
  }
@@ -1459,9 +1459,9 @@ function xE(e, c, a) {
1459
1459
  const SE = "9.7.0", B4 = -1, f3 = "en-US", S4 = "", B9 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1460
1460
  function kE() {
1461
1461
  return {
1462
- upper: (e, c) => c === "text" && j(e) ? e.toUpperCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1463
- lower: (e, c) => c === "text" && j(e) ? e.toLowerCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1464
- capitalize: (e, c) => c === "text" && j(e) ? B9(e) : c === "vnode" && m2(e) && "__v_isVNode" in e ? B9(e.children) : e
1462
+ upper: (e, c) => c === "text" && R(e) ? e.toUpperCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1463
+ lower: (e, c) => c === "text" && R(e) ? e.toLowerCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1464
+ capitalize: (e, c) => c === "text" && R(e) ? B9(e) : c === "vnode" && m2(e) && "__v_isVNode" in e ? B9(e.children) : e
1465
1465
  };
1466
1466
  }
1467
1467
  let ps;
@@ -1486,11 +1486,11 @@ const R9 = (e) => {
1486
1486
  }, DE = () => Hs;
1487
1487
  let j9 = 0;
1488
1488
  function OE(e = {}) {
1489
- const c = z2(e.onWarn) ? e.onWarn : D2, a = j(e.version) ? e.version : SE, t = j(e.locale) || z2(e.locale) ? e.locale : f3, n = z2(t) ? f3 : t, s = p2(e.fallbackLocale) || c2(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, i = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = z2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, N = !!e.unresolving, k = z2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, M = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, H = z2(e.messageCompiler) ? e.messageCompiler : ps;
1489
+ const c = z2(e.onWarn) ? e.onWarn : D2, a = R(e.version) ? e.version : SE, t = R(e.locale) || z2(e.locale) ? e.locale : f3, n = z2(t) ? f3 : t, s = p2(e.fallbackLocale) || c2(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, i = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = z2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, N = !!e.unresolving, k = z2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, M = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, H = z2(e.messageCompiler) ? e.messageCompiler : ps;
1490
1490
  process.env.NODE_ENV !== "production" && z2(e.messageCompiler) && AI(Q1(U2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1491
1491
  const A = z2(e.messageResolver) ? e.messageResolver : hs || mE, y = z2(e.localeFallbacker) ? e.localeFallbacker : Vs || AE, C = m2(e.fallbackContext) ? e.fallbackContext : void 0, _ = e, T = m2(_.__datetimeFormatters) ? _.__datetimeFormatters : /* @__PURE__ */ new Map(), W = m2(_.__numberFormatters) ? _.__numberFormatters : /* @__PURE__ */ new Map(), q = m2(_.__meta) ? _.__meta : {};
1492
1492
  j9++;
1493
- const R = {
1493
+ const j = {
1494
1494
  version: a,
1495
1495
  cid: j9,
1496
1496
  locale: t,
@@ -1514,7 +1514,7 @@ function OE(e = {}) {
1514
1514
  onWarn: c,
1515
1515
  __meta: q
1516
1516
  };
1517
- return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = T, R.__numberFormatters = W, process.env.NODE_ENV !== "production" && (R.__v_emitter = _.__v_emitter != null ? _.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bE(R, a, q), R;
1517
+ return j.datetimeFormats = r, j.numberFormats = l, j.__datetimeFormatters = T, j.__numberFormatters = W, process.env.NODE_ENV !== "production" && (j.__v_emitter = _.__v_emitter != null ? _.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bE(j, a, q), j;
1518
1518
  }
1519
1519
  function F4(e, c) {
1520
1520
  return e instanceof RegExp ? e.test(c) : e;
@@ -1535,7 +1535,7 @@ function y0(e, c, a, t, n) {
1535
1535
  }
1536
1536
  if (s !== null) {
1537
1537
  const r = s(e, a, c, n);
1538
- return j(r) ? r : c;
1538
+ return R(r) ? r : c;
1539
1539
  } else
1540
1540
  return process.env.NODE_ENV !== "production" && gs(t, c) && i(Q1(U2.NOT_FOUND_KEY, { key: c, locale: a })), c;
1541
1541
  }
@@ -1625,7 +1625,7 @@ function Ls(e, c = {}) {
1625
1625
  }, { ...nE(e, c), detectError: a };
1626
1626
  }
1627
1627
  const RE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
1628
- if (!j(e))
1628
+ if (!R(e))
1629
1629
  throw U1(e1.NOT_SUPPORT_NON_STRING_MESSAGE);
1630
1630
  {
1631
1631
  const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
@@ -1638,7 +1638,7 @@ const RE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
1638
1638
  }
1639
1639
  };
1640
1640
  function jE(e, c) {
1641
- if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && j(e)) {
1641
+ if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && R(e)) {
1642
1642
  const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
1643
1643
  process.env.NODE_ENV !== "production" && Cs(e, a);
1644
1644
  const n = (c.onCacheKey || bs)(e), s = n3[n];
@@ -1663,16 +1663,16 @@ function jE(e, c) {
1663
1663
  }
1664
1664
  const U9 = () => "", J2 = (e) => z2(e);
1665
1665
  function q9(e, ...c) {
1666
- const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage, b = j(f.default) || n2(f.default) ? n2(f.default) ? s ? l : () => l : f.default : a ? s ? l : () => l : "", N = a || b !== "", k = _0(e, f);
1666
+ const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage, b = R(f.default) || n2(f.default) ? n2(f.default) ? s ? l : () => l : f.default : a ? s ? l : () => l : "", N = a || b !== "", k = _0(e, f);
1667
1667
  d && $E(f);
1668
1668
  let [V, M, L] = h ? [
1669
1669
  l,
1670
1670
  k,
1671
1671
  r[k] || {}
1672
1672
  ] : _s(e, l, k, i, m, o), H = V, A = l;
1673
- if (!h && !(j(H) || E1(H) || J2(H)) && N && (H = b, A = H), !h && (!(j(H) || E1(H) || J2(H)) || !j(M)))
1673
+ if (!h && !(R(H) || E1(H) || J2(H)) && N && (H = b, A = H), !h && (!(R(H) || E1(H) || J2(H)) || !R(M)))
1674
1674
  return n ? B4 : l;
1675
- if (process.env.NODE_ENV !== "production" && j(H) && e.messageCompiler == null)
1675
+ if (process.env.NODE_ENV !== "production" && R(H) && e.messageCompiler == null)
1676
1676
  return D2(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
1677
1677
  let y = !1;
1678
1678
  const C = () => {
@@ -1680,22 +1680,22 @@ function q9(e, ...c) {
1680
1680
  }, _ = J2(H) ? H : ys(e, l, M, H, A, C);
1681
1681
  if (y)
1682
1682
  return H;
1683
- const T = GE(e, M, L, f), W = ME(T), q = UE(e, _, W), R = t ? t(q, l) : q;
1683
+ const T = GE(e, M, L, f), W = ME(T), q = UE(e, _, W), j = t ? t(q, l) : q;
1684
1684
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1685
1685
  const F = {
1686
1686
  timestamp: Date.now(),
1687
- key: j(l) ? l : J2(H) ? H.key : "",
1687
+ key: R(l) ? l : J2(H) ? H.key : "",
1688
1688
  locale: M || (J2(H) ? H.locale : ""),
1689
- format: j(H) ? H : J2(H) ? H.source : "",
1690
- message: R
1689
+ format: R(H) ? H : J2(H) ? H.source : "",
1690
+ message: j
1691
1691
  };
1692
1692
  F.meta = P2({}, e.__meta, /* @__PURE__ */ EE() || {}), LE(F);
1693
1693
  }
1694
- return R;
1694
+ return j;
1695
1695
  }
1696
1696
  function $E(e) {
1697
- p2(e.list) ? e.list = e.list.map((c) => j(c) ? N9(c) : c) : m2(e.named) && Object.keys(e.named).forEach((c) => {
1698
- j(e.named[c]) && (e.named[c] = N9(e.named[c]));
1697
+ p2(e.list) ? e.list = e.list.map((c) => R(c) ? N9(c) : c) : m2(e.named) && Object.keys(e.named).forEach((c) => {
1698
+ R(e.named[c]) && (e.named[c] = N9(e.named[c]));
1699
1699
  });
1700
1700
  }
1701
1701
  function _s(e, c, a, t, n, s) {
@@ -1728,7 +1728,7 @@ function _s(e, c, a, t, n, s) {
1728
1728
  groupId: `${k}:${c}`
1729
1729
  }), L && H && Q2 && Y1 && (Q2(H), Y1("intlify message resolve", L, H));
1730
1730
  }
1731
- if (j(h) || E1(h) || J2(h))
1731
+ if (R(h) || E1(h) || J2(h))
1732
1732
  break;
1733
1733
  const A = y0(
1734
1734
  e,
@@ -1783,10 +1783,10 @@ function UE(e, c, a) {
1783
1783
  }
1784
1784
  function K6(...e) {
1785
1785
  const [c, a, t] = e, n = {};
1786
- if (!j(c) && !k2(c) && !J2(c) && !E1(c))
1786
+ if (!R(c) && !k2(c) && !J2(c) && !E1(c))
1787
1787
  throw U1(e1.INVALID_ARGUMENT);
1788
1788
  const s = k2(c) ? String(c) : (J2(c), c);
1789
- return k2(a) ? n.plural = a : j(a) ? n.default = a : c2(a) && !P4(a) ? n.named = a : p2(a) && (n.list = a), k2(t) ? n.plural = t : j(t) ? n.default = t : c2(t) && P2(n, t), [s, n];
1789
+ return k2(a) ? n.plural = a : R(a) ? n.default = a : c2(a) && !P4(a) ? n.named = a : p2(a) && (n.list = a), k2(t) ? n.plural = t : R(t) ? n.default = t : c2(t) && P2(n, t), [s, n];
1790
1790
  }
1791
1791
  function qE(e, c, a, t, n, s) {
1792
1792
  return {
@@ -1811,7 +1811,7 @@ ${f}` : l);
1811
1811
  };
1812
1812
  }
1813
1813
  function WE(e) {
1814
- if (j(e))
1814
+ if (R(e))
1815
1815
  return e;
1816
1816
  if (e.loc && e.loc.source)
1817
1817
  return e.loc.source;
@@ -1827,7 +1827,7 @@ function GE(e, c, a, t) {
1827
1827
  const [, , N] = _s(o, h, c, r, l, f);
1828
1828
  b = i(N, h);
1829
1829
  }
1830
- if (j(b) || E1(b)) {
1830
+ if (R(b) || E1(b)) {
1831
1831
  let N = !1;
1832
1832
  const V = ys(e, h, c, b, h, () => {
1833
1833
  N = !0;
@@ -1853,7 +1853,7 @@ function G9(e, ...c) {
1853
1853
  n,
1854
1854
  N
1855
1855
  );
1856
- if (!j(l) || l === "")
1856
+ if (!R(l) || l === "")
1857
1857
  return new Intl.DateTimeFormat(N, m).format(f);
1858
1858
  let V = {}, M, L = null, H = N, A = null;
1859
1859
  const y = "datetime format";
@@ -1875,7 +1875,7 @@ function G9(e, ...c) {
1875
1875
  break;
1876
1876
  y0(e, l, M, d, y), H = A;
1877
1877
  }
1878
- if (!c2(L) || !j(M))
1878
+ if (!c2(L) || !R(M))
1879
1879
  return t ? B4 : l;
1880
1880
  let C = `${M}__${l}`;
1881
1881
  P4(m) || (C = `${C}__${JSON.stringify(m)}`);
@@ -1907,7 +1907,7 @@ const Ns = [
1907
1907
  function Z6(...e) {
1908
1908
  const [c, a, t, n] = e, s = {};
1909
1909
  let i = {}, r;
1910
- if (j(c)) {
1910
+ if (R(c)) {
1911
1911
  const l = c.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1912
1912
  if (!l)
1913
1913
  throw U1(e1.INVALID_ISO_DATE_ARGUMENT);
@@ -1926,9 +1926,9 @@ function Z6(...e) {
1926
1926
  r = c;
1927
1927
  else
1928
1928
  throw U1(e1.INVALID_ARGUMENT);
1929
- return j(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
1929
+ return R(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
1930
1930
  Ns.includes(l) ? i[l] = a[l] : s[l] = a[l];
1931
- }), j(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
1931
+ }), R(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
1932
1932
  }
1933
1933
  function Y9(e, c, a) {
1934
1934
  const t = e;
@@ -1947,7 +1947,7 @@ function Q9(e, ...c) {
1947
1947
  n,
1948
1948
  N
1949
1949
  );
1950
- if (!j(l) || l === "")
1950
+ if (!R(l) || l === "")
1951
1951
  return new Intl.NumberFormat(N, m).format(f);
1952
1952
  let V = {}, M, L = null, H = N, A = null;
1953
1953
  const y = "number format";
@@ -1969,7 +1969,7 @@ function Q9(e, ...c) {
1969
1969
  break;
1970
1970
  y0(e, l, M, d, y), H = A;
1971
1971
  }
1972
- if (!c2(L) || !j(M))
1972
+ if (!c2(L) || !R(M))
1973
1973
  return t ? B4 : l;
1974
1974
  let C = `${M}__${l}`;
1975
1975
  P4(m) || (C = `${C}__${JSON.stringify(m)}`);
@@ -2004,9 +2004,9 @@ function J6(...e) {
2004
2004
  if (!k2(c))
2005
2005
  throw U1(e1.INVALID_ARGUMENT);
2006
2006
  const r = c;
2007
- return j(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
2007
+ return R(a) ? s.key = a : c2(a) && Object.keys(a).forEach((l) => {
2008
2008
  xs.includes(l) ? i[l] = a[l] : s[l] = a[l];
2009
- }), j(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
2009
+ }), R(t) ? s.locale = t : c2(t) && (i = t), c2(n) && (i = n), [s.key || "", r, s, i];
2010
2010
  }
2011
2011
  function X9(e, c, a) {
2012
2012
  const t = e;
@@ -2218,7 +2218,7 @@ function R4(e, c) {
2218
2218
  const { locale: l, resource: f } = r;
2219
2219
  l ? (i[l] = i[l] || {}, A3(f, i[l])) : A3(f, i);
2220
2220
  } else
2221
- j(r) && A3(JSON.parse(r), i);
2221
+ R(r) && A3(JSON.parse(r), i);
2222
2222
  }), n == null && s)
2223
2223
  for (const r in i)
2224
2224
  T3(i, r) && D3(i[r]);
@@ -2270,10 +2270,10 @@ function A0(e = {}, c) {
2270
2270
  let i = n2(e.inheritLocale) ? e.inheritLocale : !0;
2271
2271
  const r = e2(
2272
2272
  // prettier-ignore
2273
- a && i ? a.locale.value : j(e.locale) ? e.locale : f3
2273
+ a && i ? a.locale.value : R(e.locale) ? e.locale : f3
2274
2274
  ), l = e2(
2275
2275
  // prettier-ignore
2276
- a && i ? a.fallbackLocale.value : j(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
2276
+ a && i ? a.fallbackLocale.value : R(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
2277
2277
  ), f = e2(R4(r.value, e)), o = e2(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = e2(c2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
2278
2278
  let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, N = !!e.fallbackFormat, k = z2(e.missing) ? e.missing : null, V = z2(e.missing) ? cn(e.missing) : null, M = z2(e.postTranslation) ? e.postTranslation : null, L = a ? a.warnHtmlMessage : n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, H = !!e.escapeParameter;
2279
2279
  const A = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
@@ -2322,7 +2322,7 @@ function A0(e = {}, c) {
2322
2322
  set: (w) => {
2323
2323
  l.value = w, C.fallbackLocale = l.value, b3(C, r.value, w);
2324
2324
  }
2325
- }), R = E(() => f.value), F = /* @__PURE__ */ E(() => o.value), a2 = /* @__PURE__ */ E(() => m.value);
2325
+ }), j = E(() => f.value), F = /* @__PURE__ */ E(() => o.value), a2 = /* @__PURE__ */ E(() => m.value);
2326
2326
  function f2() {
2327
2327
  return z2(M) ? M : null;
2328
2328
  }
@@ -2349,7 +2349,7 @@ function A0(e = {}, c) {
2349
2349
  if (l2 !== "translate exists" && // for not `te` (e.g `t`)
2350
2350
  k2(c3) && c3 === B4 || l2 === "translate exists" && !c3) {
2351
2351
  const [$1, rI] = P();
2352
- if (process.env.NODE_ENV !== "production" && a && j($1) && M2(l2, rI) && (b && (F4(h, $1) || gs(d, $1)) && D2(Y2(N2.FALLBACK_TO_ROOT, {
2352
+ if (process.env.NODE_ENV !== "production" && a && R($1) && M2(l2, rI) && (b && (F4(h, $1) || gs(d, $1)) && D2(Y2(N2.FALLBACK_TO_ROOT, {
2353
2353
  key: $1,
2354
2354
  type: l2
2355
2355
  })), process.env.NODE_ENV !== "production")) {
@@ -2369,7 +2369,7 @@ function A0(e = {}, c) {
2369
2369
  }
2370
2370
  };
2371
2371
  function A2(...w) {
2372
- return v2((P) => Reflect.apply(q9, null, [P, ...w]), () => K6(...w), "translate", (P) => Reflect.apply(P.t, P, [...w]), (P) => P, (P) => j(P));
2372
+ return v2((P) => Reflect.apply(q9, null, [P, ...w]), () => K6(...w), "translate", (P) => Reflect.apply(P.t, P, [...w]), (P) => P, (P) => R(P));
2373
2373
  }
2374
2374
  function S2(...w) {
2375
2375
  const [P, l2, L2] = w;
@@ -2378,13 +2378,13 @@ function A0(e = {}, c) {
2378
2378
  return A2(P, l2, P2({ resolvedMessage: !0 }, L2 || {}));
2379
2379
  }
2380
2380
  function C2(...w) {
2381
- return v2((P) => Reflect.apply(G9, null, [P, ...w]), () => Z6(...w), "datetime format", (P) => Reflect.apply(P.d, P, [...w]), () => S4, (P) => j(P));
2381
+ return v2((P) => Reflect.apply(G9, null, [P, ...w]), () => Z6(...w), "datetime format", (P) => Reflect.apply(P.d, P, [...w]), () => S4, (P) => R(P));
2382
2382
  }
2383
2383
  function E2(...w) {
2384
- return v2((P) => Reflect.apply(Q9, null, [P, ...w]), () => J6(...w), "number format", (P) => Reflect.apply(P.n, P, [...w]), () => S4, (P) => j(P));
2384
+ return v2((P) => Reflect.apply(Q9, null, [P, ...w]), () => J6(...w), "number format", (P) => Reflect.apply(P.n, P, [...w]), () => S4, (P) => R(P));
2385
2385
  }
2386
2386
  function F2(w) {
2387
- return w.map((P) => j(P) || k2(P) || n2(P) ? K9(String(P)) : P);
2387
+ return w.map((P) => R(P) || k2(P) || n2(P) ? K9(String(P)) : P);
2388
2388
  }
2389
2389
  const f1 = {
2390
2390
  normalize: F2,
@@ -2419,7 +2419,7 @@ function A0(e = {}, c) {
2419
2419
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2420
2420
  (P) => P[t0](...w),
2421
2421
  J9,
2422
- (P) => j(P) || p2(P)
2422
+ (P) => R(P) || p2(P)
2423
2423
  );
2424
2424
  }
2425
2425
  function u1(...w) {
@@ -2430,7 +2430,7 @@ function A0(e = {}, c) {
2430
2430
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2431
2431
  (P) => P[a0](...w),
2432
2432
  J9,
2433
- (P) => j(P) || p2(P)
2433
+ (P) => R(P) || p2(P)
2434
2434
  );
2435
2435
  }
2436
2436
  function s1(w) {
@@ -2440,8 +2440,8 @@ function A0(e = {}, c) {
2440
2440
  return v2(() => {
2441
2441
  if (!w)
2442
2442
  return !1;
2443
- const l2 = j(P) ? P : r.value, L2 = x(l2), j1 = C.messageResolver(L2, w);
2444
- return E1(j1) || J2(j1) || j(j1);
2443
+ const l2 = R(P) ? P : r.value, L2 = x(l2), j1 = C.messageResolver(L2, w);
2444
+ return E1(j1) || J2(j1) || R(j1);
2445
2445
  }, () => [w], "translate exists", (l2) => Reflect.apply(l2.te, l2, [w, P]), iD, (l2) => n2(l2));
2446
2446
  }
2447
2447
  function z(w) {
@@ -2515,7 +2515,7 @@ function A0(e = {}, c) {
2515
2515
  get availableLocales() {
2516
2516
  return Object.keys(f.value).sort();
2517
2517
  },
2518
- messages: R,
2518
+ messages: j,
2519
2519
  get modifiers() {
2520
2520
  return A;
2521
2521
  },
@@ -2578,7 +2578,7 @@ function A0(e = {}, c) {
2578
2578
  }), b2;
2579
2579
  }
2580
2580
  function lD(e) {
2581
- const c = j(e.locale) ? e.locale : f3, a = j(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = z2(e.missing) ? e.missing : void 0, n = n2(e.silentTranslationWarn) || I1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = n2(e.silentFallbackWarn) || I1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = n2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = c2(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, o = z2(e.postTranslation) ? e.postTranslation : void 0, m = j(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, h = n2(e.sync) ? e.sync : !0;
2581
+ const c = R(e.locale) ? e.locale : f3, a = R(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = z2(e.missing) ? e.missing : void 0, n = n2(e.silentTranslationWarn) || I1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = n2(e.silentFallbackWarn) || I1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = n2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = c2(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, o = z2(e.postTranslation) ? e.postTranslation : void 0, m = R(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, h = n2(e.sync) ? e.sync : !0;
2582
2582
  process.env.NODE_ENV !== "production" && e.formatter && D2(Y2(N2.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && D2(Y2(N2.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
2583
2583
  let b = e.messages;
2584
2584
  if (c2(e.sharedMessages)) {
@@ -2736,10 +2736,10 @@ function s0(e = {}, c) {
2736
2736
  t(...s) {
2737
2737
  const [i, r, l] = s, f = {};
2738
2738
  let o = null, m = null;
2739
- if (!j(i))
2739
+ if (!R(i))
2740
2740
  throw T2(o2.INVALID_ARGUMENT);
2741
2741
  const d = i;
2742
- return j(r) ? f.locale = r : p2(r) ? o = r : c2(r) && (m = r), p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
2742
+ return R(r) ? f.locale = r : p2(r) ? o = r : c2(r) && (m = r), p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
2743
2743
  d,
2744
2744
  o || m || {},
2745
2745
  f
@@ -2752,10 +2752,10 @@ function s0(e = {}, c) {
2752
2752
  tc(...s) {
2753
2753
  const [i, r, l] = s, f = { plural: 1 };
2754
2754
  let o = null, m = null;
2755
- if (!j(i))
2755
+ if (!R(i))
2756
2756
  throw T2(o2.INVALID_ARGUMENT);
2757
2757
  const d = i;
2758
- return j(r) ? f.locale = r : k2(r) ? f.plural = r : p2(r) ? o = r : c2(r) && (m = r), j(l) ? f.locale = l : p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
2758
+ return R(r) ? f.locale = r : k2(r) ? f.plural = r : p2(r) ? o = r : c2(r) && (m = r), R(l) ? f.locale = l : p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
2759
2759
  d,
2760
2760
  o || m || {},
2761
2761
  f
@@ -2882,28 +2882,28 @@ const fD = /* @__PURE__ */ Q({
2882
2882
  });
2883
2883
  return () => {
2884
2884
  const s = Object.keys(a).filter((m) => m !== "_"), i = {};
2885
- e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = j(e.plural) ? +e.plural : e.plural);
2886
- const r = oD(c, s), l = n[c0](e.keypath, r, i), f = P2({}, t), o = j(e.tag) || m2(e.tag) ? e.tag : Os();
2885
+ e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = R(e.plural) ? +e.plural : e.plural);
2886
+ const r = oD(c, s), l = n[c0](e.keypath, r, i), f = P2({}, t), o = R(e.tag) || m2(e.tag) ? e.tag : Os();
2887
2887
  return M1(o, f, l);
2888
2888
  };
2889
2889
  }
2890
2890
  }), j6 = fD;
2891
2891
  function uD(e) {
2892
- return p2(e) && !j(e[0]);
2892
+ return p2(e) && !R(e[0]);
2893
2893
  }
2894
2894
  function Ps(e, c, a, t) {
2895
2895
  const { slots: n, attrs: s } = c;
2896
2896
  return () => {
2897
2897
  const i = { part: !0 };
2898
2898
  let r = {};
2899
- e.locale && (i.locale = e.locale), j(e.format) ? i.key = e.format : m2(e.format) && (j(e.format.key) && (i.key = e.format.key), r = Object.keys(e.format).reduce((d, h) => a.includes(h) ? P2({}, d, { [h]: e.format[h] }) : d, {}));
2899
+ e.locale && (i.locale = e.locale), R(e.format) ? i.key = e.format : m2(e.format) && (R(e.format.key) && (i.key = e.format.key), r = Object.keys(e.format).reduce((d, h) => a.includes(h) ? P2({}, d, { [h]: e.format[h] }) : d, {}));
2900
2900
  const l = t(e.value, i, r);
2901
2901
  let f = [i.key];
2902
2902
  p2(l) ? f = l.map((d, h) => {
2903
2903
  const b = n[d.type], N = b ? b({ [d.type]: d.value, index: h, parts: l }) : [d.value];
2904
2904
  return uD(N) && (N[0].key = `${d.type}-${h}`), N;
2905
- }) : j(l) && (f = [l]);
2906
- const o = P2({}, s), m = j(e.tag) || m2(e.tag) ? e.tag : Os();
2905
+ }) : R(l) && (f = [l]);
2906
+ const o = P2({}, s), m = R(e.tag) || m2(e.tag) ? e.tag : Os();
2907
2907
  return M1(m, o, f);
2908
2908
  };
2909
2909
  }
@@ -3003,7 +3003,7 @@ function pD(e) {
3003
3003
  };
3004
3004
  }
3005
3005
  function nn(e) {
3006
- if (j(e))
3006
+ if (R(e))
3007
3007
  return { path: e };
3008
3008
  if (c2(e)) {
3009
3009
  if (!("path" in e))
@@ -3014,7 +3014,7 @@ function nn(e) {
3014
3014
  }
3015
3015
  function sn(e) {
3016
3016
  const { path: c, locale: a, args: t, choice: n, plural: s } = e, i = {}, r = t || {};
3017
- return j(a) && (i.locale = a), k2(n) && (i.plural = n), k2(s) && (i.plural = s), [c, r, i];
3017
+ return R(a) && (i.locale = a), k2(n) && (i.plural = n), k2(s) && (i.plural = s), [c, r, i];
3018
3018
  }
3019
3019
  function hD(e, c, ...a) {
3020
3020
  const t = c2(a[0]) ? a[0] : {}, n = !!t.useI18nComponentName, s = n2(t.globalInstall) ? t.globalInstall : !0;
@@ -3294,7 +3294,7 @@ function xD(e, c) {
3294
3294
  const a = Rs(e.nodeId, c);
3295
3295
  if (a) {
3296
3296
  const [t] = e.path;
3297
- t === "locale" && j(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && (j(e.state.value) || p2(e.state.value) || m2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && n2(e.state.value) && (a.inheritLocale = e.state.value);
3297
+ t === "locale" && R(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && (R(e.state.value) || p2(e.state.value) || m2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && n2(e.state.value) && (a.inheritLocale = e.state.value);
3298
3298
  }
3299
3299
  }
3300
3300
  function SD(e, c, a) {
@@ -3511,12 +3511,12 @@ function FD(e, c, a, t = {}) {
3511
3511
  const n = c === "local", s = oI(null);
3512
3512
  if (n && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
3513
3513
  throw T2(o2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
3514
- const i = n2(t.inheritLocale) ? t.inheritLocale : !j(t.locale), r = e2(
3514
+ const i = n2(t.inheritLocale) ? t.inheritLocale : !R(t.locale), r = e2(
3515
3515
  // prettier-ignore
3516
- !n || i ? a.locale.value : j(t.locale) ? t.locale : f3
3516
+ !n || i ? a.locale.value : R(t.locale) ? t.locale : f3
3517
3517
  ), l = e2(
3518
3518
  // prettier-ignore
3519
- !n || i ? a.fallbackLocale.value : j(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
3519
+ !n || i ? a.fallbackLocale.value : R(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
3520
3520
  ), f = e2(R4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, N = !!t.fallbackFormat, k = z2(t.missing) ? t.missing : null, V = z2(t.postTranslation) ? t.postTranslation : null, M = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, L = !!t.escapeParameter, H = n ? a.modifiers : c2(t.modifiers) ? t.modifiers : {}, A = t.pluralRules || n && a.pluralRules;
3521
3521
  function y() {
3522
3522
  return [
@@ -3538,7 +3538,7 @@ function FD(e, c, a, t = {}) {
3538
3538
  s.value && (s.value.fallbackLocale.value = v), l.value = v;
3539
3539
  }
3540
3540
  }), T = E(() => s.value ? s.value.messages.value : f.value), W = E(() => o.value), q = E(() => m.value);
3541
- function R() {
3541
+ function j() {
3542
3542
  return s.value ? s.value.getPostTranslationHandler() : V;
3543
3543
  }
3544
3544
  function F(v) {
@@ -3662,7 +3662,7 @@ function FD(e, c, a, t = {}) {
3662
3662
  s.value && (s.value.escapeParameter = v);
3663
3663
  },
3664
3664
  t: V2,
3665
- getPostTranslationHandler: R,
3665
+ getPostTranslationHandler: j,
3666
3666
  setPostTranslationHandler: F,
3667
3667
  getMissingHandler: a2,
3668
3668
  setMissingHandler: f2,
@@ -5697,14 +5697,14 @@ function dn(e) {
5697
5697
  }
5698
5698
  var q = Object.assign({
5699
5699
  position: r
5700
- }, f && yO), R = o === !0 ? AO({
5700
+ }, f && yO), j = o === !0 ? AO({
5701
5701
  x: h,
5702
5702
  y: N
5703
5703
  }, X2(a)) : {
5704
5704
  x: h,
5705
5705
  y: N
5706
5706
  };
5707
- if (h = R.x, N = R.y, l) {
5707
+ if (h = j.x, N = j.y, l) {
5708
5708
  var F;
5709
5709
  return Object.assign({}, q, (F = {}, F[H] = M ? "0" : "", F[L] = V ? "0" : "", F.transform = (A.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + N + "px)" : "translate3d(" + h + "px, " + N + "px, 0)", F));
5710
5710
  }
@@ -5920,10 +5920,10 @@ function B3(e, c) {
5920
5920
  right: T.right - A.right + V.right
5921
5921
  }, q = e.modifiersData.offset;
5922
5922
  if (d === L3 && q) {
5923
- var R = q[n];
5923
+ var j = q[n];
5924
5924
  Object.keys(W).forEach(function(F) {
5925
5925
  var a2 = [t1, a1].indexOf(F) >= 0 ? 1 : -1, f2 = [W2, a1].indexOf(F) >= 0 ? "y" : "x";
5926
- W[F] += R[f2] * a2;
5926
+ W[F] += j[f2] * a2;
5927
5927
  });
5928
5928
  }
5929
5929
  return W;
@@ -5967,7 +5967,7 @@ function RO(e) {
5967
5967
  allowedAutoPlacements: N
5968
5968
  }) : F2);
5969
5969
  }, []), A = c.rects.reference, y = c.rects.popper, C = /* @__PURE__ */ new Map(), _ = !0, T = H[0], W = 0; W < H.length; W++) {
5970
- var q = H[W], R = v1(q), F = v3(q) === u3, a2 = [W2, a1].indexOf(R) >= 0, f2 = a2 ? "width" : "height", r2 = B3(c, {
5970
+ var q = H[W], j = v1(q), F = v3(q) === u3, a2 = [W2, a1].indexOf(j) >= 0, f2 = a2 ? "width" : "height", r2 = B3(c, {
5971
5971
  placement: q,
5972
5972
  boundary: o,
5973
5973
  rootBoundary: m,
@@ -5976,7 +5976,7 @@ function RO(e) {
5976
5976
  }), V2 = a2 ? F ? t1 : G2 : F ? a1 : W2;
5977
5977
  A[f2] > y[f2] && (V2 = A4(V2));
5978
5978
  var R2 = A4(V2), M2 = [];
5979
- if (s && M2.push(r2[R] <= 0), r && M2.push(r2[V2] <= 0, r2[R2] <= 0), M2.every(function(E2) {
5979
+ if (s && M2.push(r2[j] <= 0), r && M2.push(r2[V2] <= 0, r2[R2] <= 0), M2.every(function(E2) {
5980
5980
  return E2;
5981
5981
  })) {
5982
5982
  T = q, _ = !1;
@@ -6110,7 +6110,7 @@ function KO(e) {
6110
6110
  } : Object.assign({
6111
6111
  mainAxis: 0,
6112
6112
  altAxis: 0
6113
- }, T), q = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, R = {
6113
+ }, T), q = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, j = {
6114
6114
  x: 0,
6115
6115
  y: 0
6116
6116
  };
@@ -6120,13 +6120,13 @@ function KO(e) {
6120
6120
  width: 0,
6121
6121
  height: 0
6122
6122
  }, F2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Gs(), o1 = F2[a2], f1 = F2[f2], j2 = N3(0, C[r2], E2[r2]), n1 = L ? C[r2] / 2 - v2 - j2 - o1 - W.mainAxis : A2 - j2 - o1 - W.mainAxis, u1 = L ? -C[r2] / 2 + v2 + j2 + f1 + W.mainAxis : S2 + j2 + f1 + W.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), R1 = s1 ? H === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (F = q == null ? void 0 : q[H]) != null ? F : 0, v = V2 + n1 - z - R1, x = V2 + u1 - z, $ = N3(h ? k4(R2, v) : R2, V2, h ? G1(M2, x) : M2);
6123
- y[H] = $, R[H] = $ - V2;
6123
+ y[H] = $, j[H] = $ - V2;
6124
6124
  }
6125
6125
  if (r) {
6126
6126
  var Z, u2 = H === "x" ? W2 : G2, Z2 = H === "x" ? a1 : t1, O2 = y[A], e3 = A === "y" ? "height" : "width", m4 = O2 + k[u2], d4 = O2 - k[Z2], b2 = [W2, G2].indexOf(V) !== -1, w = (Z = q == null ? void 0 : q[A]) != null ? Z : 0, P = b2 ? m4 : O2 - C[e3] - _[e3] - w + W.altAxis, l2 = b2 ? O2 + C[e3] + _[e3] - w - W.altAxis : d4, L2 = h && b2 ? MO(P, O2, l2) : N3(h ? P : m4, O2, h ? l2 : d4);
6127
- y[A] = L2, R[A] = L2 - O2;
6127
+ y[A] = L2, j[A] = L2 - O2;
6128
6128
  }
6129
- c.modifiersData[t] = R;
6129
+ c.modifiersData[t] = j;
6130
6130
  }
6131
6131
  }
6132
6132
  const ZO = {
@@ -22006,7 +22006,7 @@ const aI = (e) => (V1("data-v-1e3401a2"), e = e(), z1(), e), LU = ["id", "href",
22006
22006
  (f2) => a.selections.map((r2) => r2.reference).includes(f2.reference)
22007
22007
  ).length;
22008
22008
  return F.reduce((f2, r2) => f2 + q(r2.children), a2);
22009
- }, R = (F) => {
22009
+ }, j = (F) => {
22010
22010
  r.value = !1, F === a.option.reference && (c("accordion-open"), zI(() => {
22011
22011
  r.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
22012
22012
  }));
@@ -22015,7 +22015,7 @@ const aI = (e) => (V1("data-v-1e3401a2"), e = e(), z1(), e), LU = ["id", "href",
22015
22015
  () => i.value.get("highlight-option"),
22016
22016
  (F) => {
22017
22017
  const [a2] = F ?? [];
22018
- R(a2);
22018
+ j(a2);
22019
22019
  }
22020
22020
  ), (F, a2) => {
22021
22021
  const f2 = D("AVIcon"), r2 = D("AVOptionCheckbox"), V2 = D("AVOption", !0), R2 = D("AVCollapser");
@@ -23047,7 +23047,7 @@ const LW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), _W = ["aria-label",
23047
23047
  });
23048
23048
  }, y = (C) => C.flatMap((_) => _.children ? [_, ...y(_.children)] : [_]);
23049
23049
  return (C, _) => {
23050
- const T = D("AVSearchBallot"), W = D("AVWriteInOption"), q = D("AVOption"), R = D("AVBlankOption"), F = D("AVSubmissionHelper");
23050
+ const T = D("AVSearchBallot"), W = D("AVWriteInOption"), q = D("AVOption"), j = D("AVBlankOption"), F = D("AVSubmissionHelper");
23051
23051
  return p(), g("div", {
23052
23052
  class: Y({
23053
23053
  AVBallot: !0,
@@ -23107,7 +23107,7 @@ const LW = (e) => (V1("data-v-aaf72723"), e = e(), z1(), e), _W = ["aria-label",
23107
23107
  onChecked: A
23108
23108
  }, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results"]))
23109
23109
  ], 64))), 128)),
23110
- e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(R, {
23110
+ e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(j, {
23111
23111
  key: 0,
23112
23112
  checked: e.selectionPile.explicitBlank,
23113
23113
  error: h.value.includes("blank"),
@@ -23418,25 +23418,19 @@ const KW = {
23418
23418
  optionSelections: [],
23419
23419
  explicitBlank: !1
23420
23420
  }), l = e2("assign");
23421
- y9(
23422
- () => {
23423
- var R;
23424
- return r.value = ((R = a.contestSelection.piles) == null ? void 0 : R[0]) || {
23425
- multiplier: a.weight,
23426
- optionSelections: [],
23427
- explicitBlank: !1
23428
- };
23429
- }
23430
- ), y9(
23431
- () => {
23432
- var R;
23433
- return l.value = ((R = a.contestSelection.piles) == null ? void 0 : R.length) === 0 || a.contest.markingType.maxPiles === 1 ? "ballot" : "overview";
23434
- }
23435
- );
23421
+ y9(() => {
23422
+ r.value = {
23423
+ multiplier: a.weight,
23424
+ optionSelections: [],
23425
+ explicitBlank: !1
23426
+ };
23427
+ }), y9(() => {
23428
+ l.value = a.contest.markingType.maxPiles === 1 ? "ballot" : "overview";
23429
+ });
23436
23430
  const f = e2([]), o = E(() => a.contestSelection.piles), m = E(
23437
23431
  () => {
23438
- var R;
23439
- return (R = o.value) == null ? void 0 : R.reduce((F, a2) => F - a2.multiplier, a.weight);
23432
+ var j;
23433
+ return (j = o.value) == null ? void 0 : j.reduce((F, a2) => F - a2.multiplier, a.weight);
23440
23434
  }
23441
23435
  ), d = E(
23442
23436
  () => new nI(a.contest)
@@ -23446,58 +23440,58 @@ const KW = {
23446
23440
  voterWeight: a.weight
23447
23441
  })
23448
23442
  ), b = E(() => m.value === 0 && f.value.length == 0 && o.value.every(
23449
- (R) => d.value.isComplete(R)
23443
+ (j) => d.value.isComplete(j)
23450
23444
  )), N = E(
23451
23445
  () => {
23452
- var R;
23453
- return (R = o.value) == null ? void 0 : R.reduce((F, a2) => F + a2.multiplier, 0);
23446
+ var j;
23447
+ return (j = o.value) == null ? void 0 : j.reduce((F, a2) => F + a2.multiplier, 0);
23454
23448
  }
23455
23449
  ), k = E(() => {
23456
- var R;
23457
- return (R = r.value) == null ? void 0 : R.multiplier;
23450
+ var j;
23451
+ return (j = r.value) == null ? void 0 : j.multiplier;
23458
23452
  }), V = E(
23459
- () => o.value.filter((R, F) => F !== i.value).reduce((R, F) => R - F.multiplier, a.weight)
23453
+ () => o.value.filter((j, F) => F !== i.value).reduce((j, F) => j - F.multiplier, a.weight)
23460
23454
  ), M = E(
23461
23455
  () => a.contest.markingType.maxPiles !== 1 && a.weight > 1
23462
- ), L = E(() => i.value !== null), H = (R) => d.value.isComplete(R), A = (R) => d.value.validate(R).length > 0, y = () => {
23456
+ ), L = E(() => i.value !== null), H = (j) => d.value.isComplete(j), A = (j) => d.value.validate(j).length > 0, y = () => {
23463
23457
  if (M.value) {
23464
- const R = [...o.value];
23465
- i.value === null ? R.push({ ...r.value }) : R.splice(i.value, 1, {
23458
+ const j = [...o.value];
23459
+ i.value === null ? j.push({ ...r.value }) : j.splice(i.value, 1, {
23466
23460
  ...r.value
23467
23461
  }), c("update:contestSelection", {
23468
23462
  ...a.contestSelection,
23469
- piles: R
23463
+ piles: j
23470
23464
  }), i.value = null, l.value = "overview";
23471
23465
  } else
23472
23466
  r.value.multiplier = a.weight, c("update:contestSelection", {
23473
23467
  ...a.contestSelection,
23474
23468
  piles: [r.value]
23475
23469
  });
23476
- }, C = (R) => {
23477
- r.value = R, M.value || y();
23470
+ }, C = (j) => {
23471
+ r.value = j, M.value || y();
23478
23472
  }, _ = () => {
23479
23473
  r.value = {
23480
23474
  optionSelections: [],
23481
23475
  multiplier: V.value,
23482
23476
  explicitBlank: !1
23483
23477
  }, i.value = null, l.value = "ballot";
23484
- }, T = (R) => {
23485
- o.value.splice(R, 1);
23486
- }, W = (R) => {
23487
- r.value = { ...o.value[R] }, i.value = R, l.value = "ballot";
23488
- }, q = (R) => {
23489
- f.value = R;
23478
+ }, T = (j) => {
23479
+ o.value.splice(j, 1);
23480
+ }, W = (j) => {
23481
+ r.value = { ...o.value[j] }, i.value = j, l.value = "ballot";
23482
+ }, q = (j) => {
23483
+ f.value = j;
23490
23484
  };
23491
- return i2(b, (R) => c("update:complete", R)), i2(k, () => {
23485
+ return i2(b, (j) => c("update:complete", j)), i2(k, () => {
23492
23486
  r.value && (r.value.multiplier = Math.max(
23493
23487
  0,
23494
23488
  Math.min(k.value, V.value)
23495
23489
  ));
23496
- }), i2(r, (R) => {
23497
- c("update:activePile", R);
23498
- }), i2(l, (R) => c("update:activeState", R)), h2(() => {
23490
+ }), i2(r, (j) => {
23491
+ c("update:activePile", j);
23492
+ }), i2(l, (j) => c("update:activeState", j)), h2(() => {
23499
23493
  c("update:activePile", r.value), c("update:activeState", l.value), c("update:complete", b.value), M.value || y();
23500
- }), (R, F) => {
23494
+ }), (j, F) => {
23501
23495
  var M2;
23502
23496
  const a2 = D("AVSplitWizardHeader"), f2 = D("AVBallot"), r2 = D("AVPileSummary"), V2 = D("AVSplitWeightHelper"), R2 = D("AVIcon");
23503
23497
  return p(), g(t2, null, [
@@ -23657,7 +23651,7 @@ const KW = {
23657
23651
  };
23658
23652
  }
23659
23653
  });
23660
- const HG = /* @__PURE__ */ X(zG, [["__scopeId", "data-v-e40b48a6"]]);
23654
+ const HG = /* @__PURE__ */ X(zG, [["__scopeId", "data-v-5c32efb7"]]);
23661
23655
  var gG = {}, MG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), CG = { class: "flex items-center" }, bG = { class: "flex flex-col items-center justify-center p-3 w-full" }, LG = /* @__PURE__ */ u("h2", { class: "mb-4" }, "Election Name", -1), _G = /* @__PURE__ */ u("div", null, [
23662
23656
  /* @__PURE__ */ u("p", null, " Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),
23663
23657
  /* @__PURE__ */ u("br"),