@bagelink/vue 1.15.486 → 1.15.490

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.mjs CHANGED
@@ -1102,7 +1102,7 @@ function Y3(l) {
1102
1102
  function M(z = 0) {
1103
1103
  n = z;
1104
1104
  }
1105
- function x() {
1105
+ function I() {
1106
1106
  const z = t + n;
1107
1107
  for (; z !== t; ) G();
1108
1108
  n = 0;
@@ -1119,7 +1119,7 @@ function Y3(l) {
1119
1119
  peek: Y,
1120
1120
  reset: X,
1121
1121
  resetPeek: M,
1122
- skipToPeek: x
1122
+ skipToPeek: I
1123
1123
  };
1124
1124
  }
1125
1125
  var Ta = void 0, L3 = ".", iu = "'", X3 = "tokenizer";
@@ -1194,7 +1194,7 @@ function y3(l, e = {}) {
1194
1194
  const Sl = K.currentPeek() === iu;
1195
1195
  return K.resetPeek(), Sl;
1196
1196
  }
1197
- function x(K, P) {
1197
+ function I(K, P) {
1198
1198
  const { currentType: rl } = P;
1199
1199
  if (rl !== 7) return !1;
1200
1200
  h(K);
@@ -1224,7 +1224,7 @@ function y3(l, e = {}) {
1224
1224
  }, Kl = Sl();
1225
1225
  return K.resetPeek(), Kl;
1226
1226
  }
1227
- function I(K) {
1227
+ function x(K) {
1228
1228
  h(K);
1229
1229
  const P = K.currentPeek() === "|";
1230
1230
  return K.resetPeek(), P;
@@ -1285,7 +1285,7 @@ function y3(l, e = {}) {
1285
1285
  if (rl === oa || rl === at) if (U(K))
1286
1286
  P += rl, K.next();
1287
1287
  else {
1288
- if (I(K)) break;
1288
+ if (x(K)) break;
1289
1289
  P += rl, K.next();
1290
1290
  }
1291
1291
  else
@@ -1384,7 +1384,7 @@ function y3(l, e = {}) {
1384
1384
  return P.braceNest > 0 && u(_l.UNTERMINATED_CLOSING_BRACE, n(), 0), rl = q(K, P) || b(P), P.braceNest = 0, rl;
1385
1385
  default: {
1386
1386
  let Sl = !0, Kl = !0, ae = !0;
1387
- if (I(K))
1387
+ if (x(K))
1388
1388
  return P.braceNest > 0 && u(_l.UNTERMINATED_CLOSING_BRACE, n(), 0), rl = Z(P, 1, vl(K)), P.braceNest = 0, P.inLinked = !1, rl;
1389
1389
  if (P.braceNest > 0 && (P.currentType === 4 || P.currentType === 5 || P.currentType === 6))
1390
1390
  return u(_l.UNTERMINATED_CLOSING_BRACE, n(), 0), P.braceNest = 0, nl(K, P);
@@ -1413,7 +1413,7 @@ function y3(l, e = {}) {
1413
1413
  case ":":
1414
1414
  return p(K), K.next(), Z(P, 9, ":");
1415
1415
  default:
1416
- return I(K) ? (Sl = Z(P, 1, vl(K)), P.braceNest = 0, P.inLinked = !1, Sl) : x(K, P) || V(K, P) ? (p(K), q(K, P)) : z(K, P) ? (p(K), Z(P, 11, tl(K))) : S(K, P) ? (p(K), Kl === "{" ? Yl(K, P) || Sl : Z(P, 10, wl(K))) : (rl === 7 && u(_l.INVALID_LINKED_FORMAT, n(), 0), P.braceNest = 0, P.inLinked = !1, nl(K, P));
1416
+ return x(K) ? (Sl = Z(P, 1, vl(K)), P.braceNest = 0, P.inLinked = !1, Sl) : I(K, P) || V(K, P) ? (p(K), q(K, P)) : z(K, P) ? (p(K), Z(P, 11, tl(K))) : S(K, P) ? (p(K), Kl === "{" ? Yl(K, P) || Sl : Z(P, 10, wl(K))) : (rl === 7 && u(_l.INVALID_LINKED_FORMAT, n(), 0), P.braceNest = 0, P.inLinked = !1, nl(K, P));
1417
1417
  }
1418
1418
  }
1419
1419
  function nl(K, P) {
@@ -1428,7 +1428,7 @@ function y3(l, e = {}) {
1428
1428
  case "@":
1429
1429
  return q(K, P) || b(P);
1430
1430
  default:
1431
- if (I(K))
1431
+ if (x(K))
1432
1432
  return rl = Z(P, 1, vl(K)), P.braceNest = 0, P.inLinked = !1, rl;
1433
1433
  if (U(K)) return Z(P, 0, B(K));
1434
1434
  break;
@@ -1465,8 +1465,8 @@ function x3(l, e, t) {
1465
1465
  function z3(l = {}) {
1466
1466
  const e = l.location !== !1, { onError: t } = l;
1467
1467
  function a(W, G, Y, X, ...M) {
1468
- const x = W.currentPosition();
1469
- x.offset += X, x.column += X, t && t(gn(G, e ? rm(Y, x) : null, {
1468
+ const I = W.currentPosition();
1469
+ I.offset += X, I.column += X, t && t(gn(G, e ? rm(Y, I) : null, {
1470
1470
  domain: M3,
1471
1471
  args: M
1472
1472
  }));
@@ -1498,11 +1498,11 @@ function z3(l = {}) {
1498
1498
  return M.value = G.replace(V3, x3), W.nextToken(), n(M, W.currentOffset(), W.currentPosition()), M;
1499
1499
  }
1500
1500
  function m(W) {
1501
- const G = W.nextToken(), Y = W.context(), { lastOffset: X, lastStartLoc: M } = Y, x = d(8, X, M);
1502
- return G.type !== 11 ? (a(W, _l.UNEXPECTED_EMPTY_LINKED_MODIFIER, Y.lastStartLoc, 0), x.value = "", n(x, X, M), {
1501
+ const G = W.nextToken(), Y = W.context(), { lastOffset: X, lastStartLoc: M } = Y, I = d(8, X, M);
1502
+ return G.type !== 11 ? (a(W, _l.UNEXPECTED_EMPTY_LINKED_MODIFIER, Y.lastStartLoc, 0), I.value = "", n(I, X, M), {
1503
1503
  nextConsumeToken: G,
1504
- node: x
1505
- }) : (G.value == null && a(W, _l.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, ma(G)), x.value = G.value || "", n(x, W.currentOffset(), W.currentPosition()), { node: x });
1504
+ node: I
1505
+ }) : (G.value == null && a(W, _l.UNEXPECTED_LEXICAL_ANALYSIS, Y.lastStartLoc, 0, ma(G)), I.value = G.value || "", n(I, W.currentOffset(), W.currentPosition()), { node: I });
1506
1506
  }
1507
1507
  function u(W, G) {
1508
1508
  const Y = W.context(), X = d(7, Y.offset, Y.startLoc);
@@ -1530,8 +1530,8 @@ function z3(l = {}) {
1530
1530
  break;
1531
1531
  default: {
1532
1532
  a(W, _l.UNEXPECTED_EMPTY_LINKED_KEY, G.lastStartLoc, 0);
1533
- const M = W.context(), x = d(7, M.offset, M.startLoc);
1534
- return x.value = "", n(x, M.offset, M.startLoc), Y.key = x, n(Y, M.offset, M.startLoc), {
1533
+ const M = W.context(), I = d(7, M.offset, M.startLoc);
1534
+ return I.value = "", n(I, M.offset, M.startLoc), Y.key = I, n(Y, M.offset, M.startLoc), {
1535
1535
  nextConsumeToken: X,
1536
1536
  node: Y
1537
1537
  };
@@ -1559,8 +1559,8 @@ function z3(l = {}) {
1559
1559
  M.value == null && a(W, _l.UNEXPECTED_LEXICAL_ANALYSIS, G.lastStartLoc, 0, ma(M)), Y.items.push(o(W, M.value || ""));
1560
1560
  break;
1561
1561
  case 7: {
1562
- const x = Z(W);
1563
- Y.items.push(x.node), X = x.nextConsumeToken || null;
1562
+ const I = Z(W);
1563
+ Y.items.push(I.node), X = I.nextConsumeToken || null;
1564
1564
  break;
1565
1565
  }
1566
1566
  }
@@ -1569,14 +1569,14 @@ function z3(l = {}) {
1569
1569
  }
1570
1570
  function r(W, G, Y, X) {
1571
1571
  const M = W.context();
1572
- let x = X.items.length === 0;
1572
+ let I = X.items.length === 0;
1573
1573
  const z = d(1, G, Y);
1574
1574
  z.cases = [], z.cases.push(X);
1575
1575
  do {
1576
1576
  const V = b(W);
1577
- x || (x = V.items.length === 0), z.cases.push(V);
1577
+ I || (I = V.items.length === 0), z.cases.push(V);
1578
1578
  } while (M.currentType !== 13);
1579
- return x && a(W, _l.MUST_HAVE_MESSAGES_IN_PLURAL, Y, 0), n(z, W.currentOffset(), W.currentPosition()), z;
1579
+ return I && a(W, _l.MUST_HAVE_MESSAGES_IN_PLURAL, Y, 0), n(z, W.currentOffset(), W.currentPosition()), z;
1580
1580
  }
1581
1581
  function h(W) {
1582
1582
  const G = W.context(), { offset: Y, startLoc: X } = G, M = b(W);
@@ -2265,7 +2265,7 @@ var s1 = null, ru = /* @__NO_SIDE_EFFECTS__ */ (l) => {
2265
2265
  function VN(l = {}) {
2266
2266
  const e = Me(l.onWarn) ? l.onWarn : $p, t = Cl(l.version) ? l.version : pN, a = Cl(l.locale) || Me(l.locale) ? l.locale : hi, d = Me(a) ? hi : a, n = we(l.fallbackLocale) || oe(l.fallbackLocale) || Cl(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : d, i = oe(l.messages) ? l.messages : po(d), c = oe(l.datetimeFormats) ? l.datetimeFormats : po(d), s = oe(l.numberFormats) ? l.numberFormats : po(d), o = Ue(Le(), l.modifiers, NN()), m = l.pluralRules || Le(), u = Me(l.missing) ? l.missing : null, Z = We(l.missingWarn) || Gn(l.missingWarn) ? l.missingWarn : !0, b = We(l.fallbackWarn) || Gn(l.fallbackWarn) ? l.fallbackWarn : !0, r = !!l.fallbackFormat, h = !!l.unresolving, p = Me(l.postTranslation) ? l.postTranslation : null, W = oe(l.processor) ? l.processor : null, G = We(l.warnHtmlMessage) ? l.warnHtmlMessage : !0, Y = !!l.escapeParameter, X = Me(l.messageCompiler) ? l.messageCompiler : n1;
2267
2267
  process.env.NODE_ENV !== "production" && Me(l.messageCompiler) && F2(Ja(Qe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2268
- const M = Me(l.messageResolver) ? l.messageResolver : i1 || hN, x = Me(l.localeFallbacker) ? l.localeFallbacker : c1 || iN, z = me(l.fallbackContext) ? l.fallbackContext : void 0, V = l, S = me(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), I = me(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), U = me(V.__meta) ? V.__meta : {};
2268
+ const M = Me(l.messageResolver) ? l.messageResolver : i1 || hN, I = Me(l.localeFallbacker) ? l.localeFallbacker : c1 || iN, z = me(l.fallbackContext) ? l.fallbackContext : void 0, V = l, S = me(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), x = me(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), U = me(V.__meta) ? V.__meta : {};
2269
2269
  Wu++;
2270
2270
  const f = {
2271
2271
  version: t,
@@ -2286,12 +2286,12 @@ function VN(l = {}) {
2286
2286
  escapeParameter: Y,
2287
2287
  messageCompiler: X,
2288
2288
  messageResolver: M,
2289
- localeFallbacker: x,
2289
+ localeFallbacker: I,
2290
2290
  fallbackContext: z,
2291
2291
  onWarn: e,
2292
2292
  __meta: U
2293
2293
  };
2294
- return f.datetimeFormats = c, f.numberFormats = s, f.__datetimeFormatters = S, f.__numberFormatters = I, process.env.NODE_ENV !== "production" && (f.__v_emitter = V.__v_emitter != null ? V.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && tN(f, t, U), f;
2294
+ return f.datetimeFormats = c, f.numberFormats = s, f.__datetimeFormatters = S, f.__numberFormatters = x, process.env.NODE_ENV !== "production" && (f.__v_emitter = V.__v_emitter != null ? V.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && tN(f, t, U), f;
2295
2295
  }
2296
2296
  var po = (l) => ({ [l]: Le() });
2297
2297
  function Fs(l, e) {
@@ -2349,23 +2349,23 @@ function pu(l, ...e) {
2349
2349
  return r ? S.formatToParts(o) : S.format(o);
2350
2350
  }
2351
2351
  let W = {}, G, Y = null, X = h, M = null;
2352
- const x = "datetime format";
2352
+ const I = "datetime format";
2353
2353
  for (let S = 0; S < p.length; S++) {
2354
2354
  if (G = M = p[S], process.env.NODE_ENV !== "production" && h !== G && Fs(b, s) && n(Ja(Qe.FALLBACK_TO_DATE_FORMAT, {
2355
2355
  key: s,
2356
2356
  target: G
2357
2357
  })), process.env.NODE_ENV !== "production" && h !== G) {
2358
- const I = l.__v_emitter;
2359
- I && I.emit("fallback", {
2360
- type: x,
2358
+ const x = l.__v_emitter;
2359
+ x && x.emit("fallback", {
2360
+ type: I,
2361
2361
  key: s,
2362
2362
  from: X,
2363
2363
  to: M,
2364
- groupId: `${x}:${s}`
2364
+ groupId: `${I}:${s}`
2365
2365
  });
2366
2366
  }
2367
2367
  if (W = t[G] || {}, Y = W[s], oe(Y)) break;
2368
- U2(l, s, G, Z, x), X = M;
2368
+ U2(l, s, G, Z, I), X = M;
2369
2369
  }
2370
2370
  if (!oe(Y) || !Cl(G)) return a ? -1 : s;
2371
2371
  let z = `${G}__${s}`;
@@ -2441,23 +2441,23 @@ function Yu(l, ...e) {
2441
2441
  return r ? S.formatToParts(o) : S.format(o);
2442
2442
  }
2443
2443
  let W = {}, G, Y = null, X = h, M = null;
2444
- const x = "number format";
2444
+ const I = "number format";
2445
2445
  for (let S = 0; S < p.length; S++) {
2446
2446
  if (G = M = p[S], process.env.NODE_ENV !== "production" && h !== G && Fs(b, s) && n(Ja(Qe.FALLBACK_TO_NUMBER_FORMAT, {
2447
2447
  key: s,
2448
2448
  target: G
2449
2449
  })), process.env.NODE_ENV !== "production" && h !== G) {
2450
- const I = l.__v_emitter;
2451
- I && I.emit("fallback", {
2452
- type: x,
2450
+ const x = l.__v_emitter;
2451
+ x && x.emit("fallback", {
2452
+ type: I,
2453
2453
  key: s,
2454
2454
  from: X,
2455
2455
  to: M,
2456
- groupId: `${x}:${s}`
2456
+ groupId: `${I}:${s}`
2457
2457
  });
2458
2458
  }
2459
2459
  if (W = t[G] || {}, Y = W[s], oe(Y)) break;
2460
- U2(l, s, G, Z, x), X = M;
2460
+ U2(l, s, G, Z, I), X = M;
2461
2461
  }
2462
2462
  if (!oe(Y) || !Cl(G)) return a ? -1 : s;
2463
2463
  let z = `${G}__${s}`;
@@ -2530,10 +2530,10 @@ function SN(l = {}) {
2530
2530
  plural: n,
2531
2531
  linked: (W, ...G) => {
2532
2532
  const [Y, X] = G;
2533
- let M = "text", x = "";
2534
- G.length === 1 ? me(Y) ? (x = Y.modifier || x, M = Y.type || M) : Cl(Y) && (x = Y || x) : G.length === 2 && (Cl(Y) && (x = Y || x), Cl(X) && (M = X || M));
2535
- const z = m(W, !0)(p), V = z === "" || z === void 0 ? W : z, S = M === "vnode" && we(V) && x ? V[0] : V;
2536
- return x ? u(x)(S, M) : S;
2533
+ let M = "text", I = "";
2534
+ G.length === 1 ? me(Y) ? (I = Y.modifier || I, M = Y.type || M) : Cl(Y) && (I = Y || I) : G.length === 2 && (Cl(Y) && (I = Y || I), Cl(X) && (M = X || M));
2535
+ const z = m(W, !0)(p), V = z === "" || z === void 0 ? W : z, S = M === "vnode" && we(V) && I ? V[0] : V;
2536
+ return I ? u(I)(S, M) : S;
2537
2537
  },
2538
2538
  message: m,
2539
2539
  type: r,
@@ -2555,24 +2555,24 @@ function yu(l, ...e) {
2555
2555
  if (!b && !(Cl(X) || Ot(X) || Jt(X)) && h && (X = r, M = X), !b && (!(Cl(X) || Ot(X) || Jt(X)) || !Cl(G))) return d ? -1 : s;
2556
2556
  if (process.env.NODE_ENV !== "production" && Cl(X) && l.messageCompiler == null)
2557
2557
  return `${s}`, s;
2558
- let x = !1;
2558
+ let I = !1;
2559
2559
  const z = () => {
2560
- x = !0;
2560
+ I = !0;
2561
2561
  }, V = Jt(X) ? X : W1(l, s, G, X, M, z);
2562
- if (x) return X;
2562
+ if (I) return X;
2563
2563
  const S = FN(l, V, SN(fN(l, G, Y, o)));
2564
- let I = a ? a(S, s) : S;
2565
- if (Z && Cl(I) && (I = c3(I)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2564
+ let x = a ? a(S, s) : S;
2565
+ if (Z && Cl(x) && (x = c3(x)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2566
2566
  const U = {
2567
2567
  timestamp: Date.now(),
2568
2568
  key: Cl(s) ? s : Jt(X) ? X.key : "",
2569
2569
  locale: G || (Jt(X) ? X.locale : ""),
2570
2570
  format: Cl(X) ? X : Jt(X) ? X.source : "",
2571
- message: I
2571
+ message: x
2572
2572
  };
2573
2573
  U.meta = Ue({}, l.__meta, /* @__PURE__ */ yN() || {}), aN(U);
2574
2574
  }
2575
- return I;
2575
+ return x;
2576
2576
  }
2577
2577
  function vN(l) {
2578
2578
  we(l.list) ? l.list = l.list.map((e) => Cl(e) ? au(e) : e) : me(l.named) && Object.keys(l.named).forEach((e) => {
@@ -2598,19 +2598,19 @@ function h1(l, e, t, a, d, n) {
2598
2598
  }), u = i[Z] || Le();
2599
2599
  let Y = null, X, M;
2600
2600
  if (process.env.NODE_ENV !== "production" && ta && G && (Y = window.performance.now(), X = "intlify-message-resolve-start", M = "intlify-message-resolve-end", St && St(X)), (b = s(u, e)) === null && (b = u[e]), process.env.NODE_ENV !== "production" && ta && G) {
2601
- const x = window.performance.now();
2601
+ const I = window.performance.now();
2602
2602
  G && Y && b && G.emit("message-resolve", {
2603
2603
  type: "message-resolve",
2604
2604
  key: e,
2605
2605
  message: b,
2606
- time: x - Y,
2606
+ time: I - Y,
2607
2607
  groupId: `${p}:${e}`
2608
2608
  }), X && M && St && Id && (St(M), Id("intlify message resolve", X, M));
2609
2609
  }
2610
2610
  if (Cl(b) || Ot(b) || Jt(b)) break;
2611
2611
  if (!TN(Z, m)) {
2612
- const x = U2(l, e, Z, n, p);
2613
- x !== e && (b = x);
2612
+ const I = U2(l, e, Z, n, p);
2613
+ I !== e && (b = I);
2614
2614
  }
2615
2615
  r = h;
2616
2616
  }
@@ -2935,7 +2935,7 @@ function Uc(l = {}) {
2935
2935
  const c = n(e && i ? e.locale.value : Cl(l.locale) ? l.locale : hi), s = n(e && i ? e.fallbackLocale.value : Cl(l.fallbackLocale) || we(l.fallbackLocale) || oe(l.fallbackLocale) || l.fallbackLocale === !1 ? l.fallbackLocale : c.value), o = n(O2(c.value, l)), m = n(oe(l.datetimeFormats) ? l.datetimeFormats : { [c.value]: {} }), u = n(oe(l.numberFormats) ? l.numberFormats : { [c.value]: {} });
2936
2936
  let Z = e ? e.missingWarn : We(l.missingWarn) || Gn(l.missingWarn) ? l.missingWarn : !0, b = e ? e.fallbackWarn : We(l.fallbackWarn) || Gn(l.fallbackWarn) ? l.fallbackWarn : !0, r = e ? e.fallbackRoot : We(l.fallbackRoot) ? l.fallbackRoot : !0, h = !!l.fallbackFormat, p = Me(l.missing) ? l.missing : null, W = Me(l.missing) ? xu(l.missing) : null, G = Me(l.postTranslation) ? l.postTranslation : null, Y = e ? e.warnHtmlMessage : We(l.warnHtmlMessage) ? l.warnHtmlMessage : !0, X = !!l.escapeParameter;
2937
2937
  const M = e ? e.modifiers : oe(l.modifiers) ? l.modifiers : {};
2938
- let x = l.pluralRules || e && e.pluralRules, z;
2938
+ let I = l.pluralRules || e && e.pluralRules, z;
2939
2939
  z = (() => {
2940
2940
  a && hu(null);
2941
2941
  const Vl = {
@@ -2944,7 +2944,7 @@ function Uc(l = {}) {
2944
2944
  fallbackLocale: s.value,
2945
2945
  messages: o.value,
2946
2946
  modifiers: M,
2947
- pluralRules: x,
2947
+ pluralRules: I,
2948
2948
  missing: W === null ? void 0 : W,
2949
2949
  missingWarn: Z,
2950
2950
  fallbackWarn: b,
@@ -2970,7 +2970,7 @@ function Uc(l = {}) {
2970
2970
  u.value
2971
2971
  ];
2972
2972
  }
2973
- const I = T({
2973
+ const x = T({
2974
2974
  get: () => c.value,
2975
2975
  set: (Vl) => {
2976
2976
  z.locale = Vl, c.value = Vl;
@@ -3065,7 +3065,7 @@ function Uc(l = {}) {
3065
3065
  return F((Fl) => Reflect.apply(pu, null, [Fl, ...Vl]), () => Gm(...Vl), "datetime format", (Fl) => Fl[Xm](...Vl), Tu, (Fl) => Cl(Fl) || we(Fl));
3066
3066
  }
3067
3067
  function tl(Vl) {
3068
- x = Vl, z.pluralRules = x;
3068
+ I = Vl, z.pluralRules = I;
3069
3069
  }
3070
3070
  function wl(Vl, Fl) {
3071
3071
  return F(() => {
@@ -3138,7 +3138,7 @@ function Uc(l = {}) {
3138
3138
  }));
3139
3139
  const ne = {
3140
3140
  id: Iu,
3141
- locale: I,
3141
+ locale: x,
3142
3142
  fallbackLocale: U,
3143
3143
  get inheritLocale() {
3144
3144
  return i;
@@ -3154,7 +3154,7 @@ function Uc(l = {}) {
3154
3154
  return M;
3155
3155
  },
3156
3156
  get pluralRules() {
3157
- return x || {};
3157
+ return I || {};
3158
3158
  },
3159
3159
  get isGlobal() {
3160
3160
  return a;
@@ -3460,7 +3460,7 @@ function uY(l) {
3460
3460
  let r = l.messages;
3461
3461
  if (oe(l.sharedMessages)) {
3462
3462
  const M = l.sharedMessages;
3463
- r = Object.keys(M).reduce((x, z) => (Ue(x[z] || (x[z] = {}), M[z]), x), r || {});
3463
+ r = Object.keys(M).reduce((I, z) => (Ue(I[z] || (I[z] = {}), M[z]), I), r || {});
3464
3464
  }
3465
3465
  const { __i18n: h, __root: p, __injectWithOption: W } = l, G = l.datetimeFormats, Y = l.numberFormats, X = l.flatJson;
3466
3466
  return {
@@ -6323,7 +6323,7 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6323
6323
  })), r = T(() => ({
6324
6324
  ...b.value,
6325
6325
  compact: !0
6326
- })), h = T(() => e.stacked && u.value.length > 1), p = T(() => Z.value.map((w, j) => u.value.reduce((v, ml) => v + (ml.points[j]?.y ?? 0), 0))), W = T(() => Hr(h.value ? Math.max(0, ...p.value) : Math.max(0, ...bm(u.value)))), G = T(() => h.value ? 0 : Math.min(0, ...bm(u.value))), Y = T(() => ui(0, Math.max(1, Z.value.length - 1), 0, i.value)), X = T(() => ui(G.value, W.value, c.value, 0)), M = T(() => e.grid ? Pr(G.value, W.value, 4) : []), x = T(() => {
6326
+ })), h = T(() => e.stacked && u.value.length > 1), p = T(() => Z.value.map((w, j) => u.value.reduce((v, ml) => v + (ml.points[j]?.y ?? 0), 0))), W = T(() => Hr(h.value ? Math.max(0, ...p.value) : Math.max(0, ...bm(u.value)))), G = T(() => h.value ? 0 : Math.min(0, ...bm(u.value))), Y = T(() => ui(0, Math.max(1, Z.value.length - 1), 0, i.value)), X = T(() => ui(G.value, W.value, c.value, 0)), M = T(() => e.grid ? Pr(G.value, W.value, 4) : []), I = T(() => {
6327
6327
  const w = c.value, j = Z.value.map(() => 0);
6328
6328
  return u.value.map((v, ml) => {
6329
6329
  const E = qe(v.color, ml);
@@ -6364,7 +6364,7 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6364
6364
  areaPath: tl
6365
6365
  };
6366
6366
  });
6367
- }), z = T(() => e.area || h.value), V = T(() => z.value && e.gradient !== !1), S = gs(), I = (w) => `${S}-grad-${w}`, U = T(() => Math.max(1, Math.ceil(Z.value.length / e.maxLabels))), f = T(() => (i.value + c.value) * 2), H = T(() => f.value * (1 - m.value)), Q = k(null), el = k(0);
6367
+ }), z = T(() => e.area || h.value), V = T(() => z.value && e.gradient !== !1), S = gs(), x = (w) => `${S}-grad-${w}`, U = T(() => Math.max(1, Math.ceil(Z.value.length / e.maxLabels))), f = T(() => (i.value + c.value) * 2), H = T(() => f.value * (1 - m.value)), Q = k(null), el = k(0);
6368
6368
  function dl(w) {
6369
6369
  if (!Z.value.length) return;
6370
6370
  Si(w, el);
@@ -6379,10 +6379,10 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6379
6379
  function O() {
6380
6380
  Q.value = null;
6381
6381
  }
6382
- const ll = T(() => Q.value == null ? 0 : s(Y.value(Q.value))), al = T(() => Q.value == null ? [] : x.value.map((w) => w.coords[Q.value]).filter(Boolean).map((w, j) => ({
6382
+ const ll = T(() => Q.value == null ? 0 : s(Y.value(Q.value))), al = T(() => Q.value == null ? [] : I.value.map((w) => w.coords[Q.value]).filter(Boolean).map((w, j) => ({
6383
6383
  x: w.x,
6384
6384
  y: w.y,
6385
- color: x.value[j].color
6385
+ color: I.value[j].color
6386
6386
  }))), F = T(() => Q.value == null ? [] : u.value.map((w, j) => ({
6387
6387
  name: w.name,
6388
6388
  color: qe(w.color, j),
@@ -6400,8 +6400,8 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6400
6400
  width: N(a),
6401
6401
  height: N(d),
6402
6402
  class: "display-block overflow-hidden"
6403
- }, [V.value ? (L(), y("defs", $X, [(L(!0), y(yl, null, Rl(x.value, (v, ml) => (L(), y("linearGradient", {
6404
- id: I(ml),
6403
+ }, [V.value ? (L(), y("defs", $X, [(L(!0), y(yl, null, Rl(I.value, (v, ml) => (L(), y("linearGradient", {
6404
+ id: x(ml),
6405
6405
  key: ml,
6406
6406
  gradientUnits: "userSpaceOnUse",
6407
6407
  x1: 0,
@@ -6427,14 +6427,14 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6427
6427
  x: -8,
6428
6428
  y: X.value(v) + 3
6429
6429
  }, cl(N(Ke)(v, r.value)), 9, ny)]))), 128))])) : C("", !0),
6430
- z.value ? (L(!0), y(yl, { key: 1 }, Rl(x.value, (v, ml) => (L(), y("path", {
6430
+ z.value ? (L(!0), y(yl, { key: 1 }, Rl(I.value, (v, ml) => (L(), y("path", {
6431
6431
  key: `a${ml}`,
6432
6432
  d: v.areaPath,
6433
- fill: V.value ? `url(#${I(ml)})` : N(ws)(v.color, h.value ? 78 : 14),
6433
+ fill: V.value ? `url(#${x(ml)})` : N(ws)(v.color, h.value ? 78 : 14),
6434
6434
  stroke: "none",
6435
6435
  opacity: N(m)
6436
6436
  }, null, 8, iy))), 128)) : C("", !0),
6437
- (L(!0), y(yl, null, Rl(x.value, (v, ml) => (L(), y("path", {
6437
+ (L(!0), y(yl, null, Rl(I.value, (v, ml) => (L(), y("path", {
6438
6438
  key: `l${ml}`,
6439
6439
  d: v.line,
6440
6440
  stroke: v.color,
@@ -6445,7 +6445,7 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6445
6445
  "stroke-dasharray": f.value,
6446
6446
  "stroke-dashoffset": H.value
6447
6447
  }, null, 8, cy))), 128)),
6448
- l.points ? (L(!0), y(yl, { key: 2 }, Rl(x.value, (v, ml) => (L(), y("g", { key: `p${ml}` }, [(L(!0), y(yl, null, Rl(v.coords, (E, Gl) => (L(), y("circle", {
6448
+ l.points ? (L(!0), y(yl, { key: 2 }, Rl(I.value, (v, ml) => (L(), y("g", { key: `p${ml}` }, [(L(!0), y(yl, null, Rl(v.coords, (E, Gl) => (L(), y("circle", {
6449
6449
  key: Gl,
6450
6450
  cx: E.x,
6451
6451
  cy: E.y,
@@ -6566,7 +6566,7 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6566
6566
  });
6567
6567
  });
6568
6568
  }), ll;
6569
- }), x = T(() => Math.max(1, Math.ceil(u.value.length / e.maxLabels))), z = gs("bar"), V = T(() => [...new Set(M.value.map((ll) => ll.color))]), S = (ll) => `${z}-${V.value.indexOf(ll)}`, I = k(null), U = k(0);
6569
+ }), I = T(() => Math.max(1, Math.ceil(u.value.length / e.maxLabels))), z = gs("bar"), V = T(() => [...new Set(M.value.map((ll) => ll.color))]), S = (ll) => `${z}-${V.value.indexOf(ll)}`, x = k(null), U = k(0);
6570
6570
  function f(ll) {
6571
6571
  if (!u.value.length) return;
6572
6572
  Si(ll, U);
@@ -6576,16 +6576,16 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6576
6576
  let _ = ll.clientX - F.left - n.value.left;
6577
6577
  s(0) !== 0 && (_ = i.value - _);
6578
6578
  const B = Math.floor(_ / Math.max(1, i.value) * u.value.length);
6579
- I.value = Math.min(u.value.length - 1, Math.max(0, B));
6579
+ x.value = Math.min(u.value.length - 1, Math.max(0, B));
6580
6580
  }
6581
6581
  function H() {
6582
- I.value = null;
6582
+ x.value = null;
6583
6583
  }
6584
- const Q = T(() => I.value == null ? "" : Ec(u.value[I.value])), el = T(() => I.value == null ? [] : m.value.map((ll, al) => ({
6584
+ const Q = T(() => x.value == null ? "" : Ec(u.value[x.value])), el = T(() => x.value == null ? [] : m.value.map((ll, al) => ({
6585
6585
  name: ll.name,
6586
6586
  color: qe(ll.color, al),
6587
- value: Ke(ll.points[I.value]?.y ?? 0, b.value)
6588
- }))), dl = T(() => I.value == null || !e.stacked ? null : Ke(h.value[I.value] ?? 0, b.value)), O = w1(U, a);
6587
+ value: Ke(ll.points[x.value]?.y ?? 0, b.value)
6588
+ }))), dl = T(() => x.value == null || !e.stacked ? null : Ke(h.value[x.value] ?? 0, b.value)), O = w1(U, a);
6589
6589
  return (ll, al) => (L(), y("div", hy, [g("div", {
6590
6590
  ref_key: "el",
6591
6591
  ref: t,
@@ -6635,15 +6635,15 @@ var _X = ["width", "height"], $X = { key: 0 }, qX = ["id", "y2"], ly = ["stop-co
6635
6635
  height: Math.max(0, F.h),
6636
6636
  rx: Math.min(l.radius, F.w / 2),
6637
6637
  fill: l.gradient ? `url(#${S(F.color)})` : F.color,
6638
- class: ul(["bgl-chart__bar", { "opacity-5": I.value != null && I.value !== F.cat }])
6638
+ class: ul(["bgl-chart__bar", { "opacity-5": x.value != null && x.value !== F.cat }])
6639
6639
  }, null, 10, Vy))), 128)),
6640
6640
  g("g", Ty, [(L(!0), y(yl, null, Rl(u.value, (F, _) => El((L(), y("text", {
6641
6641
  key: _,
6642
6642
  x: N(s)(Y.value.center(_)),
6643
6643
  y: N(c) + 16,
6644
6644
  "text-anchor": "middle"
6645
- }, cl(N(Ec)(F)), 9, Iy)), [[Td, _ % x.value === 0]])), 128))])
6646
- ], 8, Ly)], 8, Wy)) : C("", !0), I.value != null ? (L(), Zl(Ri, {
6645
+ }, cl(N(Ec)(F)), 9, Iy)), [[Td, _ % I.value === 0]])), 128))])
6646
+ ], 8, Ly)], 8, Wy)) : C("", !0), x.value != null ? (L(), Zl(Ri, {
6647
6647
  key: 1,
6648
6648
  prefer: "top",
6649
6649
  style: Xl(N(O)),
@@ -6747,27 +6747,27 @@ var gy = [
6747
6747
  currency: e.currency,
6748
6748
  compact: !0
6749
6749
  }));
6750
- function i(x) {
6751
- return Ke(x, {
6750
+ function i(I) {
6751
+ return Ke(I, {
6752
6752
  currency: e.currency,
6753
6753
  compact: !0
6754
6754
  });
6755
6755
  }
6756
- const c = T(() => e.data.reduce((x, z) => x + Math.max(0, z.value), 0) || 1), s = T(() => e.size / 2), o = T(() => e.pie ? 0 : s.value * (1 - e.thickness)), m = T(() => {
6757
- const x = s.value, z = o.value, V = x, S = x, I = z + (x - z) * 0.68;
6756
+ const c = T(() => e.data.reduce((I, z) => I + Math.max(0, z.value), 0) || 1), s = T(() => e.size / 2), o = T(() => e.pie ? 0 : s.value * (1 - e.thickness)), m = T(() => {
6757
+ const I = s.value, z = o.value, V = I, S = I, x = z + (I - z) * 0.68;
6758
6758
  let U = -Math.PI / 2;
6759
6759
  return e.data.map((f, H) => {
6760
6760
  const Q = Math.max(0, f.value) / c.value, el = Q * Math.PI * 2 * d.value, dl = U;
6761
6761
  U += el;
6762
6762
  const O = dl + el / 2, ll = f.color ? qe(f.color) : e.mode === "multi" ? qe(void 0, H) : v2(e.color, e.data.length, H), al = Q * 100, F = !!e.labels && Q >= e.labelMinShare;
6763
6763
  return {
6764
- d: wy(V, S, x, z, dl, el),
6764
+ d: wy(V, S, I, z, dl, el),
6765
6765
  color: ll,
6766
6766
  label: f.label,
6767
6767
  value: f.value,
6768
6768
  pct: al,
6769
- lx: V + I * Math.cos(O),
6770
- ly: S + I * Math.sin(O),
6769
+ lx: V + x * Math.cos(O),
6770
+ ly: S + x * Math.sin(O),
6771
6771
  tagged: F,
6772
6772
  tagName: F && e.labels === "full" ? f.label : "",
6773
6773
  tagValue: F && e.labels !== "pct" ? i(f.value) : "",
@@ -6775,14 +6775,14 @@ var gy = [
6775
6775
  };
6776
6776
  });
6777
6777
  }), u = T(() => e.centerValue !== void 0 ? String(e.centerValue) : e.showTotal ? Ke(c.value, n.value) : ""), Z = k(null), b = k(0), r = k(0);
6778
- function h(x) {
6779
- Z.value = x;
6778
+ function h(I) {
6779
+ Z.value = I;
6780
6780
  }
6781
6781
  function p() {
6782
6782
  Z.value = null;
6783
6783
  }
6784
- function W(x) {
6785
- Si(x, b, r);
6784
+ function W(I) {
6785
+ Si(I, b, r);
6786
6786
  }
6787
6787
  const G = T(() => Z.value == null ? null : m.value[Z.value]), Y = T(() => G.value ? [{
6788
6788
  name: G.value.label,
@@ -6792,7 +6792,7 @@ var gy = [
6792
6792
  label: t("charts.share"),
6793
6793
  value: `${G.value.pct.toFixed(0)}%`
6794
6794
  }] : []), M = P2(b, r);
6795
- return (x, z) => (L(), y("div", {
6795
+ return (I, z) => (L(), y("div", {
6796
6796
  ref_key: "el",
6797
6797
  ref: a,
6798
6798
  class: ul(["bgl-donut w-100p inline-flex gap-1", l.legend ? "row flex-wrap justify-content-center" : "column"])
@@ -6814,7 +6814,7 @@ var gy = [
6814
6814
  d: V.d,
6815
6815
  fill: V.color,
6816
6816
  class: ul(["bgl-donut__slice cursor-pointer", { "opacity-5": Z.value != null && Z.value !== S }]),
6817
- onMouseenter: (I) => h(S)
6817
+ onMouseenter: (x) => h(S)
6818
6818
  }, null, 42, Ry))), 128)), (L(!0), y(yl, null, Rl(m.value, (V, S) => El((L(), y("text", {
6819
6819
  key: `t${S}`,
6820
6820
  x: V.lx,
@@ -7001,7 +7001,7 @@ var gy = [
7001
7001
  });
7002
7002
  }), el;
7003
7003
  }), Y = k(null), X = k(0), M = k(0);
7004
- function x(H) {
7004
+ function I(H) {
7005
7005
  Y.value = H;
7006
7006
  }
7007
7007
  function z() {
@@ -7010,7 +7010,7 @@ var gy = [
7010
7010
  function V(H) {
7011
7011
  Si(H, X, M);
7012
7012
  }
7013
- const S = T(() => Y.value == null ? null : o.value[Y.value]), I = T(() => {
7013
+ const S = T(() => Y.value == null ? null : o.value[Y.value]), x = T(() => {
7014
7014
  const H = S.value;
7015
7015
  if (!H) return [];
7016
7016
  const Q = [];
@@ -7066,13 +7066,13 @@ var gy = [
7066
7066
  d: dl.path,
7067
7067
  fill: "transparent",
7068
7068
  class: "bgl-funnel__hit",
7069
- onMouseenter: (ll) => x(O)
7069
+ onMouseenter: (ll) => I(O)
7070
7070
  }, null, 40, $y))), 128))], 64)) : (L(!0), y(yl, { key: 1 }, Rl(W.value, (dl, O) => (L(), y("path", {
7071
7071
  key: O,
7072
7072
  d: dl.path,
7073
7073
  fill: l.gradient ? `url(#${dl.gradId})` : dl.color,
7074
7074
  class: ul(["bgl-funnel__seg", { "opacity-5": Y.value != null && Y.value !== O }]),
7075
- onMouseenter: (ll) => x(O)
7075
+ onMouseenter: (ll) => I(O)
7076
7076
  }, null, 42, Ay))), 128))], 12, Ky)),
7077
7077
  S.value ? (L(), Zl(Ri, {
7078
7078
  key: 0,
@@ -7085,7 +7085,7 @@ var gy = [
7085
7085
  value: S.value.display
7086
7086
  }],
7087
7087
  total: U.value,
7088
- stats: I.value
7088
+ stats: x.value
7089
7089
  }, null, 8, [
7090
7090
  "style",
7091
7091
  "label",
@@ -7648,23 +7648,23 @@ var GM = ["transform"], pM = [
7648
7648
  };
7649
7649
  })), Z = k(null), b = k(0), r = k(0);
7650
7650
  function h(w) {
7651
- I.value || (Z.value = w);
7651
+ x.value || (Z.value = w);
7652
7652
  }
7653
7653
  function p() {
7654
7654
  Z.value = null;
7655
7655
  }
7656
7656
  function W(w) {
7657
- I.value || Si(w, b, r);
7657
+ x.value || Si(w, b, r);
7658
7658
  }
7659
7659
  const G = T(() => {
7660
- if (!Z.value || I.value) return null;
7660
+ if (!Z.value || x.value) return null;
7661
7661
  const w = u.value.find((j) => j.id === Z.value);
7662
7662
  return w?.hasData ? w : null;
7663
7663
  }), Y = T(() => G.value ? [{
7664
7664
  name: G.value.label,
7665
7665
  color: G.value.fill,
7666
7666
  value: Ke(G.value.value, i.value)
7667
- }] : []), X = P2(b, r), M = T(() => Ke(0, i.value)), x = T(() => Ke(s.value, i.value)), z = k(1), V = k(0), S = k(0), I = k(!1), U = k(null), f = T(() => `translate(${V.value} ${S.value}) scale(${z.value})`), H = T(() => z.value > Dd + 1e-3);
7667
+ }] : []), X = P2(b, r), M = T(() => Ke(0, i.value)), I = T(() => Ke(s.value, i.value)), z = k(1), V = k(0), S = k(0), x = k(!1), U = k(null), f = T(() => `translate(${V.value} ${S.value}) scale(${z.value})`), H = T(() => z.value > Dd + 1e-3);
7668
7668
  function Q(w, j, v) {
7669
7669
  return Math.min(v, Math.max(j, w));
7670
7670
  }
@@ -7710,7 +7710,7 @@ var GM = ["transform"], pM = [
7710
7710
  }
7711
7711
  function F(w) {
7712
7712
  if (!t.zoomable || !H.value || w.button !== 0) return;
7713
- I.value = !0, Z.value = null;
7713
+ x.value = !0, Z.value = null;
7714
7714
  const j = el(w.clientX, w.clientY);
7715
7715
  U.value = {
7716
7716
  x: j.x,
@@ -7720,12 +7720,12 @@ var GM = ["transform"], pM = [
7720
7720
  }, w.currentTarget.setPointerCapture?.(w.pointerId);
7721
7721
  }
7722
7722
  function _(w) {
7723
- if (!I.value || !U.value) return;
7723
+ if (!x.value || !U.value) return;
7724
7724
  const j = el(w.clientX, w.clientY);
7725
7725
  V.value = U.value.tx + (j.x - U.value.x), S.value = U.value.ty + (j.y - U.value.y);
7726
7726
  }
7727
7727
  function B(w) {
7728
- I.value && (I.value = !1, U.value = null, w.currentTarget.releasePointerCapture?.(w.pointerId));
7728
+ x.value && (x.value = !1, U.value = null, w.currentTarget.releasePointerCapture?.(w.pointerId));
7729
7729
  }
7730
7730
  const J = `${e.x} ${e.y} ${e.width} ${e.height}`;
7731
7731
  return (w, j) => (L(), y("div", {
@@ -7736,7 +7736,7 @@ var GM = ["transform"], pM = [
7736
7736
  class: ul(["bgl-map__plot relative w-100p overflow-hidden", {
7737
7737
  "bgl-map__plot--zoomable": l.zoomable,
7738
7738
  "bgl-map__plot--zoomed": l.zoomable && H.value,
7739
- "bgl-map__plot--dragging": I.value
7739
+ "bgl-map__plot--dragging": x.value
7740
7740
  }]),
7741
7741
  style: Xl({ height: `${l.height}px` }),
7742
7742
  onMousemove: W,
@@ -7820,7 +7820,7 @@ var GM = ["transform"], pM = [
7820
7820
  class: "bgl-map__ramp flex-1",
7821
7821
  style: Xl({ background: `linear-gradient(to right, color-mix(in srgb, ${o.value} 28%, var(--bgl-box-bg)), ${o.value})` })
7822
7822
  }, null, 4),
7823
- g("span", LM, cl(x.value), 1)
7823
+ g("span", LM, cl(I.value), 1)
7824
7824
  ])) : C("", !0)], 512));
7825
7825
  }
7826
7826
  }), FP = /* @__PURE__ */ Jl(MM, [["__scopeId", "data-v-3a15faba"]]), VM = [
@@ -12505,14 +12505,14 @@ var PM = /* @__PURE__ */ Il({
12505
12505
  return typeof document > "u" ? null : document.fonts ?? null;
12506
12506
  }
12507
12507
  function u() {
12508
- const I = m();
12509
- return I !== null && typeof I.load == "function";
12508
+ const x = m();
12509
+ return x !== null && typeof x.load == "function";
12510
12510
  }
12511
- async function Z(I) {
12511
+ async function Z(x) {
12512
12512
  if (!u()) return !0;
12513
12513
  try {
12514
12514
  const U = m();
12515
- return !U || U.check(`1em "${I}"`) ? !0 : (await U.load(`1em "${I}"`), U.check(`1em "${I}"`));
12515
+ return !U || U.check(`1em "${x}"`) ? !0 : (await U.load(`1em "${x}"`), U.check(`1em "${x}"`));
12516
12516
  } catch {
12517
12517
  return !1;
12518
12518
  }
@@ -12529,37 +12529,37 @@ var PM = /* @__PURE__ */ Il({
12529
12529
  Bl(() => {
12530
12530
  if (u())
12531
12531
  if (n.value === "material") {
12532
- const I = m();
12533
- c.value = I ? I.check('1em "Material Symbols Outlined"') : !0, b();
12532
+ const x = m();
12533
+ c.value = x ? x.check('1em "Material Symbols Outlined"') : !0, b();
12534
12534
  } else if (i.value) {
12535
- const I = m();
12536
- o.value = I ? I.check('1em "Font Awesome 6 Brands"') : !0, h();
12535
+ const x = m();
12536
+ o.value = x ? x.check('1em "Font Awesome 6 Brands"') : !0, h();
12537
12537
  } else {
12538
- const I = m();
12539
- s.value = I ? I.check('1em "Font Awesome 6 Free"') : !0, r();
12538
+ const x = m();
12539
+ s.value = x ? x.check('1em "Font Awesome 6 Free"') : !0, r();
12540
12540
  }
12541
12541
  }), Or(() => {
12542
12542
  u() && (n.value === "material" ? b() : i.value ? h() : r());
12543
12543
  });
12544
12544
  const p = T(() => n.value === "material" ? c.value : i.value ? o.value : s.value), W = T(() => e.animate ? `bgl_icon--${e.animate}` : null), G = T(() => {
12545
12545
  if (!e.animate) return;
12546
- const I = {};
12547
- return e.animateSpeed !== void 0 && (I.animationDuration = `${e.animateSpeed}s`), e.animateOnce && (I.animationIterationCount = "1"), I;
12546
+ const x = {};
12547
+ return e.animateSpeed !== void 0 && (x.animationDuration = `${e.animateSpeed}s`), e.animateOnce && (x.animationIterationCount = "1"), x;
12548
12548
  }), Y = T(() => e.transition === !1 ? "bgl-icon-x-none" : `bgl-icon-x-${e.transition === !0 ? "slide-up" : e.transition}`), X = T(() => {
12549
- const I = e.color?.trim();
12550
- return I ? I.startsWith("#") || I.startsWith("var(") || /^(rgb|hsl|hwb|lab|lch|oklch|color)\(/i.test(I) : !1;
12551
- }), M = T(() => e.round || e.soft), x = T(() => {
12549
+ const x = e.color?.trim();
12550
+ return x ? x.startsWith("#") || x.startsWith("var(") || /^(rgb|hsl|hwb|lab|lch|oklch|color)\(/i.test(x) : !1;
12551
+ }), M = T(() => e.round || e.soft), I = T(() => {
12552
12552
  if (!(!M.value || X.value))
12553
12553
  return e.color ? `pair-${e.color}` : e.soft ? "pair-black" : void 0;
12554
12554
  }), z = T(() => M.value ? "bgl_icon-round" : void 0), V = T(() => e.soft ? "soft" : void 0), S = T(() => {
12555
- const I = {
12555
+ const x = {
12556
12556
  fontSize: `${d.value}rem`,
12557
12557
  visibility: p.value ? "visible" : "hidden",
12558
12558
  ...G.value
12559
12559
  };
12560
- return n.value === "material" ? I["font-variation-settings"] = `'FILL' ${e.fill ? 1 : 0}, 'wght' ${e.weight || 400}` : I["font-variation-settings"] = `'wght' ${e.weight || 400}`, M.value ? (I.width = `calc(${d.value}rem * 2)`, I.height = `calc(${d.value}rem * 2)`, X.value && e.color && (e.soft ? (I.backgroundColor = `color-mix(in srgb, ${e.color} 18%, transparent)`, I.color = e.color, I.border = `1px solid ${e.color}`) : I.backgroundColor = e.color)) : e.color && (I.color = e.color), I;
12560
+ return n.value === "material" ? x["font-variation-settings"] = `'FILL' ${e.fill ? 1 : 0}, 'wght' ${e.weight || 400}` : x["font-variation-settings"] = `'wght' ${e.weight || 400}`, M.value ? (x.width = `calc(${d.value}rem * 2)`, x.height = `calc(${d.value}rem * 2)`, X.value && e.color && (e.soft ? (x.backgroundColor = `color-mix(in srgb, ${e.color} 18%, transparent)`, x.color = e.color, x.border = `1px solid ${e.color}`) : x.backgroundColor = e.color)) : e.color && (x.color = e.color), x;
12561
12561
  });
12562
- return (I, U) => (L(), Zl(Fd, {
12562
+ return (x, U) => (L(), Zl(Fd, {
12563
12563
  name: Y.value,
12564
12564
  mode: "out-in"
12565
12565
  }, {
@@ -12568,7 +12568,7 @@ var PM = /* @__PURE__ */ Il({
12568
12568
  class: ul(["bgl_icon-font notranslate", [
12569
12569
  W.value,
12570
12570
  z.value,
12571
- x.value,
12571
+ I.value,
12572
12572
  V.value,
12573
12573
  { "color-white keep-white": l.round && !l.soft && X.value }
12574
12574
  ]]),
@@ -12580,7 +12580,7 @@ var PM = /* @__PURE__ */ Il({
12580
12580
  `fa-${t.value}`,
12581
12581
  W.value,
12582
12582
  z.value,
12583
- x.value,
12583
+ I.value,
12584
12584
  V.value,
12585
12585
  {
12586
12586
  "fa-brands": i.value,
@@ -13703,9 +13703,9 @@ var UV = ["src", "title"], OV = [
13703
13703
  return X ? `${Y}h ${X}m` : `${Y}h`;
13704
13704
  }
13705
13705
  const o = T(() => {
13706
- const G = c(), Y = (/* @__PURE__ */ new Date()).toDateString(), X = [...t.events].sort((x, z) => new Date(x.start_time).getTime() - new Date(z.start_time).getTime()), M = /* @__PURE__ */ new Map();
13707
- for (const x of X) {
13708
- const z = new Date(x.start_time), V = z.toDateString();
13706
+ const G = c(), Y = (/* @__PURE__ */ new Date()).toDateString(), X = [...t.events].sort((I, z) => new Date(I.start_time).getTime() - new Date(z.start_time).getTime()), M = /* @__PURE__ */ new Map();
13707
+ for (const I of X) {
13708
+ const z = new Date(I.start_time), V = z.toDateString();
13709
13709
  M.has(V) || M.set(V, {
13710
13710
  dateKey: V,
13711
13711
  date: z,
@@ -13715,9 +13715,9 @@ var UV = ["src", "title"], OV = [
13715
13715
  isToday: V === Y,
13716
13716
  events: []
13717
13717
  });
13718
- const S = Math.round((new Date(x.end_time).getTime() - new Date(x.start_time).getTime()) / 6e4);
13718
+ const S = Math.round((new Date(I.end_time).getTime() - new Date(I.start_time).getTime()) / 6e4);
13719
13719
  M.get(V).events.push({
13720
- ...x,
13720
+ ...I,
13721
13721
  durationMin: S
13722
13722
  });
13723
13723
  }
@@ -13731,10 +13731,10 @@ var UV = ["src", "title"], OV = [
13731
13731
  u.value = !1;
13732
13732
  }, 2e3));
13733
13733
  const Y = G.querySelectorAll(".agenda-day-group"), X = G.getBoundingClientRect().top;
13734
- let M = null, x = 1 / 0;
13734
+ let M = null, I = 1 / 0;
13735
13735
  if (Y.forEach((z) => {
13736
13736
  const V = Math.abs(z.getBoundingClientRect().top - X);
13737
- V < x && (x = V, M = z);
13737
+ V < I && (I = V, M = z);
13738
13738
  }), M) {
13739
13739
  const z = M.dataset.date;
13740
13740
  z && a("dateChange", new Date(z));
@@ -13766,24 +13766,24 @@ var UV = ["src", "title"], OV = [
13766
13766
  if (!i.value) return;
13767
13767
  const M = Array.from(i.value.querySelectorAll(".agenda-day-group"));
13768
13768
  if (!M.length) return;
13769
- const x = p(G);
13769
+ const I = p(G);
13770
13770
  let z = null, V = 1 / 0;
13771
13771
  if (X === "forward") for (const S of M) {
13772
- const I = S.dataset.date;
13773
- if (!I) continue;
13774
- const U = p(new Date(I));
13775
- U >= x && U - x < V && (V = U - x, z = S);
13772
+ const x = S.dataset.date;
13773
+ if (!x) continue;
13774
+ const U = p(new Date(x));
13775
+ U >= I && U - I < V && (V = U - I, z = S);
13776
13776
  }
13777
13777
  else if (X === "backward") for (const S of M) {
13778
- const I = S.dataset.date;
13779
- if (!I) continue;
13780
- const U = p(new Date(I));
13781
- U <= x && x - U < V && (V = x - U, z = S);
13778
+ const x = S.dataset.date;
13779
+ if (!x) continue;
13780
+ const U = p(new Date(x));
13781
+ U <= I && I - U < V && (V = I - U, z = S);
13782
13782
  }
13783
13783
  if (!z) for (const S of M) {
13784
- const I = S.dataset.date;
13785
- if (!I) continue;
13786
- const U = Math.abs(p(new Date(I)) - x);
13784
+ const x = S.dataset.date;
13785
+ if (!x) continue;
13786
+ const U = Math.abs(p(new Date(x)) - I);
13787
13787
  U < V && (V = U, z = S);
13788
13788
  }
13789
13789
  z?.scrollIntoView({
@@ -13825,7 +13825,7 @@ var UV = ["src", "title"], OV = [
13825
13825
  ], 2), (L(!0), y(yl, null, Rl(X.events, (M) => (L(), y("article", {
13826
13826
  key: M.id,
13827
13827
  class: "agenda-event-row grid gap-05 hover pe-1",
13828
- onClick: le((x) => h(M, x), ["stop"])
13828
+ onClick: le((I) => h(M, I), ["stop"])
13829
13829
  }, [g("div", aT, cl(N(Fe)(M.start_time, { format: "HH:mm" })), 1), il(N(Oa), {
13830
13830
  class: "agenda-event-card overflow-hidden transition py-025 px-075 my-025",
13831
13831
  frame: "",
@@ -13865,7 +13865,7 @@ var UV = ["src", "title"], OV = [
13865
13865
  });
13866
13866
  return G;
13867
13867
  }), u = T(() => t.events.filter((G) => new Date(G.start_time).toDateString() === t.startDate.toDateString()).map((G) => {
13868
- const Y = new Date(G.start_time), X = new Date(G.end_time), M = Y.getHours() * 60 + Y.getMinutes(), x = X.getHours() * 60 + X.getMinutes(), z = M / Dn * Cn, V = Math.max((x - M) / Dn * Cn, 30);
13868
+ const Y = new Date(G.start_time), X = new Date(G.end_time), M = Y.getHours() * 60 + Y.getMinutes(), I = X.getHours() * 60 + X.getMinutes(), z = M / Dn * Cn, V = Math.max((I - M) / Dn * Cn, 30);
13869
13869
  return {
13870
13870
  ...G,
13871
13871
  top: z,
@@ -13905,7 +13905,7 @@ var UV = ["src", "title"], OV = [
13905
13905
  function p(G) {
13906
13906
  const Y = document.querySelector(".time-slots")?.getBoundingClientRect();
13907
13907
  if (!Y) return /* @__PURE__ */ new Date();
13908
- const X = G - Y.top, M = Dn, x = X / Cn, z = Math.floor(x * M), V = new Date(t.startDate);
13908
+ const X = G - Y.top, M = Dn, I = X / Cn, z = Math.floor(I * M), V = new Date(t.startDate);
13909
13909
  return V.setHours(Math.floor(z / 60)), V.setMinutes(z % 60), V.setSeconds(0), V.setMilliseconds(0), V;
13910
13910
  }
13911
13911
  function W(G, Y) {
@@ -13998,8 +13998,8 @@ var UV = ["src", "title"], OV = [
13998
13998
  }
13999
13999
  for (let G = 1; G <= Z; G++) {
14000
14000
  const Y = new Date(o, m, G), X = t.events.filter((M) => {
14001
- const x = new Date(M.start_time);
14002
- return x.getDate() === G && x.getMonth() === m && x.getFullYear() === o;
14001
+ const I = new Date(M.start_time);
14002
+ return I.getDate() === G && I.getMonth() === m && I.getFullYear() === o;
14003
14003
  });
14004
14004
  h.push({
14005
14005
  date: Y,
@@ -14142,7 +14142,7 @@ var UV = ["src", "title"], OV = [
14142
14142
  function h(B, J) {
14143
14143
  if (!t.availabilityEditable) return;
14144
14144
  B.preventDefault(), B.stopPropagation();
14145
- const w = m.value[J], j = u(I(B.clientY));
14145
+ const w = m.value[J], j = u(x(B.clientY));
14146
14146
  o.value = {
14147
14147
  isDragging: !0,
14148
14148
  mode: r(w, j) ? "remove" : "add",
@@ -14153,7 +14153,7 @@ var UV = ["src", "title"], OV = [
14153
14153
  }
14154
14154
  function p(B) {
14155
14155
  if (!o.value.isDragging) return;
14156
- const J = u(I(B.clientY));
14156
+ const J = u(x(B.clientY));
14157
14157
  o.value.currentMinute = J;
14158
14158
  }
14159
14159
  function W() {
@@ -14216,8 +14216,8 @@ var UV = ["src", "title"], OV = [
14216
14216
  }
14217
14217
  a("availabilityChange", s.value), o.value.isDragging = !1, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", W);
14218
14218
  }
14219
- const G = k(0), Y = k(!1), X = k(), M = k(), x = k(), z = k([]), V = k(), S = k();
14220
- function I(B) {
14219
+ const G = k(0), Y = k(!1), X = k(), M = k(), I = k(), z = k([]), V = k(), S = k();
14220
+ function x(B) {
14221
14221
  if (!V.value) return 0;
14222
14222
  const J = B - V.value.getBoundingClientRect().top;
14223
14223
  return Math.max(0, Math.min(J / Be * Ft, 1440));
@@ -14273,7 +14273,7 @@ var UV = ["src", "title"], OV = [
14273
14273
  }), B;
14274
14274
  });
14275
14275
  function Q(B, J) {
14276
- if (!i.value || !x.value || !V.value) return;
14276
+ if (!i.value || !I.value || !V.value) return;
14277
14277
  let w = -1;
14278
14278
  for (let E = 0; E < z.value.length; E++) {
14279
14279
  const Gl = z.value[E];
@@ -14297,7 +14297,7 @@ var UV = ["src", "title"], OV = [
14297
14297
  c.value.startTime = ml, document.addEventListener("mousemove", el), document.addEventListener("mouseup", dl);
14298
14298
  }
14299
14299
  function el(B) {
14300
- if (!i.value || !c.value.isDragging || !c.value.start || !z.value.length || !x.value || !V.value) return;
14300
+ if (!i.value || !c.value.isDragging || !c.value.start || !z.value.length || !I.value || !V.value) return;
14301
14301
  let J = -1;
14302
14302
  for (let w = 0; w < z.value.length; w++) {
14303
14303
  const j = z.value[w];
@@ -14374,7 +14374,7 @@ var UV = ["src", "title"], OV = [
14374
14374
  }), (B, J) => (L(), y("div", ST, [
14375
14375
  g("div", {
14376
14376
  ref_key: "calendarGrid",
14377
- ref: x,
14377
+ ref: I,
14378
14378
  class: "weekGrid border-bottom me-1"
14379
14379
  }, [J[1] || (J[1] = g("div", null, null, -1)), (L(!0), y(yl, null, Rl(m.value, (w) => (L(), y("div", {
14380
14380
  key: w.toISOString(),
@@ -14518,25 +14518,25 @@ var UV = ["src", "title"], OV = [
14518
14518
  Agenda: "days"
14519
14519
  }, r = T(() => {
14520
14520
  const S = new Date(i.value);
14521
- let I = new Date(i.value);
14521
+ let x = new Date(i.value);
14522
14522
  const U = a.weekStart === "Sunday" ? 0 : 1;
14523
14523
  switch (c.value) {
14524
14524
  case "Week":
14525
- S.setDate(S.getDate() - S.getDay() + U), I.setDate(S.getDate() + 6);
14525
+ S.setDate(S.getDate() - S.getDay() + U), x.setDate(S.getDate() + 6);
14526
14526
  break;
14527
14527
  case "Month":
14528
14528
  case "Agenda":
14529
- S.setDate(-6), I = new Date(S.getFullYear(), S.getMonth() + 2, 7);
14529
+ S.setDate(-6), x = new Date(S.getFullYear(), S.getMonth() + 2, 7);
14530
14530
  break;
14531
14531
  case "Day":
14532
- I.setDate(I.getDate() + 1);
14532
+ x.setDate(x.getDate() + 1);
14533
14533
  break;
14534
14534
  default:
14535
14535
  break;
14536
14536
  }
14537
14537
  return {
14538
14538
  start: S,
14539
- end: I
14539
+ end: x
14540
14540
  };
14541
14541
  }), h = T(() => ({
14542
14542
  visibleDateRange: r.value,
@@ -14565,11 +14565,11 @@ var UV = ["src", "title"], OV = [
14565
14565
  function M(S) {
14566
14566
  d("eventUpdate", S);
14567
14567
  }
14568
- function x(S) {
14568
+ function I(S) {
14569
14569
  d("eventDelete", S);
14570
14570
  }
14571
- function z(S, I) {
14572
- s.value = S, m.value = I, o.value = !0;
14571
+ function z(S, x) {
14572
+ s.value = S, m.value = x, o.value = !0;
14573
14573
  }
14574
14574
  function V() {
14575
14575
  o.value = !1, s.value = void 0, m.value = void 0;
@@ -14582,14 +14582,14 @@ var UV = ["src", "title"], OV = [
14582
14582
  closePopover: V
14583
14583
  }), Bl(() => {
14584
14584
  d("ready", h.value);
14585
- }), (S, I) => (L(), y("div", UT, [
14585
+ }), (S, x) => (L(), y("div", UT, [
14586
14586
  g("div", OT, [g("h3", ET, [g("b", null, cl(N(Fe)(i.value, "MMMM")), 1), Dl(" " + cl(N(Fe)(i.value, "YYYY")), 1)]), g("div", KT, [l.viewSwitcher === "tabs" ? (L(), Zl(N($s), {
14587
14587
  key: 0,
14588
14588
  size: "sm",
14589
14589
  "model-value": c.value,
14590
14590
  tabs: Z.value,
14591
14591
  group: "calendar-view",
14592
- "onUpdate:modelValue": I[0] || (I[0] = (U) => G(U)),
14592
+ "onUpdate:modelValue": x[0] || (x[0] = (U) => G(U)),
14593
14593
  style: { "--bgl_tabs-border-radius": "calc(var(--bgl-btn-border-radius) / 2)" },
14594
14594
  class: "txt12 m_mb-05 m_w-100p",
14595
14595
  "align-txt": "center"
@@ -14614,7 +14614,7 @@ var UV = ["src", "title"], OV = [
14614
14614
  class: "txt12",
14615
14615
  color: "gray",
14616
14616
  value: N(n)("calendar.today"),
14617
- onClick: I[1] || (I[1] = (U) => p(/* @__PURE__ */ new Date()))
14617
+ onClick: x[1] || (x[1] = (U) => p(/* @__PURE__ */ new Date()))
14618
14618
  }, null, 8, ["value"]),
14619
14619
  il(N(Nl), {
14620
14620
  icon: "chevron_left",
@@ -14622,7 +14622,7 @@ var UV = ["src", "title"], OV = [
14622
14622
  size: "sm",
14623
14623
  class: "",
14624
14624
  disabled: c.value === "Agenda",
14625
- onClick: I[2] || (I[2] = (U) => p(N(ba)(i.value, { [b[c.value]]: -1 })))
14625
+ onClick: x[2] || (x[2] = (U) => p(N(ba)(i.value, { [b[c.value]]: -1 })))
14626
14626
  }, null, 8, ["disabled"]),
14627
14627
  il(N(Nl), {
14628
14628
  icon: "chevron_right",
@@ -14630,7 +14630,7 @@ var UV = ["src", "title"], OV = [
14630
14630
  size: "sm",
14631
14631
  class: "",
14632
14632
  disabled: c.value === "Agenda",
14633
- onClick: I[3] || (I[3] = (U) => p(N(ba)(i.value, { [b[c.value]]: 1 })))
14633
+ onClick: x[3] || (x[3] = (U) => p(N(ba)(i.value, { [b[c.value]]: 1 })))
14634
14634
  }, null, 8, ["disabled"])
14635
14635
  ])])]),
14636
14636
  (L(), Zl(je(u[c.value]), {
@@ -14643,11 +14643,11 @@ var UV = ["src", "title"], OV = [
14643
14643
  onEventClick: Y,
14644
14644
  onEventCreate: X,
14645
14645
  onEventUpdate: M,
14646
- onEventDelete: x,
14647
- onDateChange: I[4] || (I[4] = (U) => c.value === "Agenda" ? W(U) : p(U)),
14646
+ onEventDelete: I,
14647
+ onDateChange: x[4] || (x[4] = (U) => c.value === "Agenda" ? W(U) : p(U)),
14648
14648
  onOpenPopover: z,
14649
- onLoadPrevious: I[5] || (I[5] = (U) => d("loadPrevious", U)),
14650
- onAvailabilityChange: I[6] || (I[6] = (U) => d("availabilityChange", U))
14649
+ onLoadPrevious: x[5] || (x[5] = (U) => d("loadPrevious", U)),
14650
+ onAvailabilityChange: x[6] || (x[6] = (U) => d("availabilityChange", U))
14651
14651
  }, Zi({ _: 2 }, [S.$slots.eventContent ? {
14652
14652
  name: "eventContent",
14653
14653
  fn: Tl(({ event: U, close: f }) => [Ll(S.$slots, "eventContent", {
@@ -14753,9 +14753,9 @@ ${u}}` : b.map(([r, h]) => `${r}: ${typeof h == "object" && h !== null ? n(h, m
14753
14753
  if (!jc(Z, b)) return;
14754
14754
  } else if (!b) return;
14755
14755
  }
14756
- const { $el: r, children: h, class: p, id: W, transform: G, validate: Y, onUpdate: X, slots: M, required: x, label: z, placeholder: V, disabled: S, defaultValue: I, ...U } = o, f = o.id ? "get" in (Z || {}) ? Z?.get(o.id) : jc(Z, o.id) : void 0, H = G ? W ? G(f, Z) : G(Z) : f, Q = f0(U, f, Z), el = typeof u == "string" && BT.has(u), dl = typeof u == "string" && QT.has(u), O = {
14756
+ const { $el: r, children: h, class: p, id: W, transform: G, validate: Y, onUpdate: X, slots: M, required: I, label: z, placeholder: V, disabled: S, defaultValue: x, ...U } = o, f = o.id ? "get" in (Z || {}) ? Z?.get(o.id) : jc(Z, o.id) : void 0, H = G ? W ? G(f, Z) : G(Z) : f, Q = f0(U, f, Z), el = typeof u == "string" && BT.has(u), dl = typeof u == "string" && QT.has(u), O = {
14757
14757
  ...Q,
14758
- required: x,
14758
+ required: I,
14759
14759
  label: z,
14760
14760
  placeholder: V,
14761
14761
  disabled: S,
@@ -14763,7 +14763,7 @@ ${u}}` : b.map(([r, h]) => `${r}: ${typeof h == "object" && h !== null ? n(h, m
14763
14763
  id: W,
14764
14764
  getFormData: t,
14765
14765
  onUpdate: X,
14766
- defaultValue: I
14766
+ defaultValue: x
14767
14767
  };
14768
14768
  if (typeof o.onClick == "function") {
14769
14769
  const F = o.onClick;
@@ -14887,8 +14887,8 @@ function P1(l) {
14887
14887
  for (const h of r) {
14888
14888
  const p = h.id, W = Z[p], G = `_transformed_${String(p)}`, Y = `_slot_${String(p)}`, X = `_src_${String(p)}`, M = `_original_${String(p)}`;
14889
14889
  b[M] = W;
14890
- const x = typeof h.$el == "string" && $T.has(h.$el), z = typeof h.$el == "string" && qT.has(h.$el);
14891
- b[Y] = x, b[X] = z, h.transform ? b[G] = h.transform(W, Z) : b[G] = W;
14890
+ const I = typeof h.$el == "string" && $T.has(h.$el), z = typeof h.$el == "string" && qT.has(h.$el);
14891
+ b[Y] = I, b[X] = z, h.transform ? b[G] = h.transform(W, Z) : b[G] = W;
14892
14892
  }
14893
14893
  return b;
14894
14894
  }
@@ -14996,7 +14996,7 @@ function A2(l = {}) {
14996
14996
  const v = j.cloneNode(!0), ml = j.getBoundingClientRect();
14997
14997
  return v.style.position = "fixed", v.style.margin = "0", v.style.top = `${ml.top}px`, v.style.left = `${ml.left}px`, v.style.width = `${ml.width}px`, v.style.height = `${ml.height}px`, v.style.transform = "translate3d(0, 0, 0)", v.style.pointerEvents = "none", v.style.zIndex = "9999", v.style.cursor = "grabbing", v.style.willChange = "transform", v.classList.add(c.value.ghostClass), Y(v), v;
14998
14998
  }
14999
- function x() {
14999
+ function I() {
15000
15000
  if (!i) return null;
15001
15001
  const j = document.createElement("div");
15002
15002
  j.classList.add(c.value.dropIndicatorClass), j.style.position = "fixed", j.style.pointerEvents = "none", j.style.zIndex = "9999", j.style.height = "2px", j.style.background = "var(--primary-color, #0066ff)", j.style.boxShadow = "0 0 4px rgba(0, 102, 255, 0.5)", j.style.transition = "all 0.15s ease", j.style.display = "none";
@@ -15016,7 +15016,7 @@ function A2(l = {}) {
15016
15016
  function S(j) {
15017
15017
  return j.style.opacity = "0.4", j.style.transform = "scale(0.95)", j.offsetHeight;
15018
15018
  }
15019
- function I(j) {
15019
+ function x(j) {
15020
15020
  return j.style.opacity = "0.5", 2;
15021
15021
  }
15022
15022
  function U(j) {
@@ -15056,7 +15056,7 @@ function A2(l = {}) {
15056
15056
  }
15057
15057
  j.preventDefault(), e.value = !0, t.value = v, s = j.clientX, o = j.clientY;
15058
15058
  const ml = v.getBoundingClientRect();
15059
- m = ml.left, u = ml.top, a.value = M(v), a.value && (a.value.style.left = `${m}px`, a.value.style.top = `${u}px`), c.value.mode === "line" && (d.value = x()), v.classList.add(c.value.dragClass), Z = c.value.mode === "ghost" ? S(v) : I(v), c.value.onStart?.(j), i && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", H), document.addEventListener("mousemove", ll), document.addEventListener("mouseup", al), document.addEventListener("keydown", Q));
15059
+ m = ml.left, u = ml.top, a.value = M(v), a.value && (a.value.style.left = `${m}px`, a.value.style.top = `${u}px`), c.value.mode === "line" && (d.value = I()), v.classList.add(c.value.dragClass), Z = c.value.mode === "ghost" ? S(v) : x(v), c.value.onStart?.(j), i && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", H), document.addEventListener("mousemove", ll), document.addEventListener("mouseup", al), document.addEventListener("keydown", Q));
15060
15060
  }
15061
15061
  function dl(j) {
15062
15062
  let v = j.parentElement;
@@ -15137,7 +15137,7 @@ function A2(l = {}) {
15137
15137
  if (Gl && !ml.closest(Gl)) return;
15138
15138
  j.preventDefault(), e.value = !0, t.value = E, s = v.clientX, o = v.clientY;
15139
15139
  const zl = E.getBoundingClientRect();
15140
- m = zl.left, u = zl.top, a.value = M(E), a.value && (a.value.style.left = `${m}px`, a.value.style.top = `${u}px`), c.value.mode === "line" && (d.value = x()), t.value.classList.add(c.value.dragClass), Z = c.value.mode === "ghost" ? S(t.value) : I(t.value), c.value.onStart?.(j), i && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", H), document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", B), document.addEventListener("touchcancel", H), document.addEventListener("keydown", Q));
15140
+ m = zl.left, u = zl.top, a.value = M(E), a.value && (a.value.style.left = `${m}px`, a.value.style.top = `${u}px`), c.value.mode === "line" && (d.value = I()), t.value.classList.add(c.value.dragClass), Z = c.value.mode === "ghost" ? S(t.value) : x(t.value), c.value.onStart?.(j), i && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", H), document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", B), document.addEventListener("touchcancel", H), document.addEventListener("keydown", Q));
15141
15141
  }
15142
15142
  function _(j) {
15143
15143
  j.preventDefault();
@@ -15322,7 +15322,7 @@ var iI = { class: "row first-row" }, cI = {
15322
15322
  onSelect: (J) => {
15323
15323
  a("select", J);
15324
15324
  }
15325
- }), { list: M, containerProps: x, wrapperProps: z, scrollTo: V, lastItemEl: S, registerLastItemObserver: I } = nI({
15325
+ }), { list: M, containerProps: I, wrapperProps: z, scrollTo: V, lastItemEl: S, registerLastItemObserver: x } = nI({
15326
15326
  data: m,
15327
15327
  itemHeight: i.value,
15328
15328
  onLastItemVisible: () => {
@@ -15371,7 +15371,7 @@ var iI = { class: "row first-row" }, cI = {
15371
15371
  }
15372
15372
  const O = T(() => `${i.value}px`);
15373
15373
  xl(() => n.value, async (J, w) => {
15374
- J !== w && (J || (I(), V(0), await $l(), V(0)));
15374
+ J !== w && (J || (x(), V(0), await $l(), V(0)));
15375
15375
  }, { immediate: !0 }), xl(() => h.value.length, () => {
15376
15376
  G();
15377
15377
  }), xl(() => m.value.length, async (J, w) => {
@@ -15382,7 +15382,7 @@ var iI = { class: "row first-row" }, cI = {
15382
15382
  const J = c.value;
15383
15383
  return J == null || J === "" ? null : typeof J == "number" ? `${J}px` : String(J);
15384
15384
  }), _ = T(() => F.value ?? "0.88em"), B = T(() => F.value ? `calc(${F.value} * 0.9)` : "0.8rem");
15385
- return (J, w) => (L(), y("div", ie({ class: "table-list-wrap h-100p relative" }, N(x), { class: { overflowHiddenLoading: ll.value } }), [
15385
+ return (J, w) => (L(), y("div", ie({ class: "table-list-wrap h-100p relative" }, N(I), { class: { overflowHiddenLoading: ll.value } }), [
15386
15386
  ll.value ? (L(), Zl(N(gd), {
15387
15387
  key: 0,
15388
15388
  class: "absolute inset-1"
@@ -15798,7 +15798,7 @@ var zI = 50, $1 = async (l, e, t) => {
15798
15798
  for (let h = 0; h < n.length; h++) {
15799
15799
  const p = n[h];
15800
15800
  if (!p) continue;
15801
- const { name: W, fn: G } = p, { x: Y, y: X, data: M, reset: x } = await G({
15801
+ const { name: W, fn: G } = p, { x: Y, y: X, data: M, reset: I } = await G({
15802
15802
  x: m,
15803
15803
  y: u,
15804
15804
  initialPlacement: a,
@@ -15815,11 +15815,11 @@ var zI = 50, $1 = async (l, e, t) => {
15815
15815
  m = Y ?? m, u = X ?? u, r[W] = {
15816
15816
  ...r[W],
15817
15817
  ...M
15818
- }, x && b < zI && (b++, typeof x == "object" && (x.placement && (Z = x.placement), x.rects && (o = x.rects === !0 ? await i.getElementRects({
15818
+ }, I && b < zI && (b++, typeof I == "object" && (I.placement && (Z = I.placement), I.rects && (o = I.rects === !0 ? await i.getElementRects({
15819
15819
  reference: l,
15820
15820
  floating: e,
15821
15821
  strategy: d
15822
- }) : x.rects), { x: m, y: u } = Au(o, Z, s)), h = -1);
15822
+ }) : I.rects), { x: m, y: u } = Au(o, Z, s)), h = -1);
15823
15823
  }
15824
15824
  return {
15825
15825
  x: m,
@@ -15837,10 +15837,10 @@ var zI = 50, $1 = async (l, e, t) => {
15837
15837
  const u = _1(m), Z = {
15838
15838
  x: t,
15839
15839
  y: a
15840
- }, b = $2(d), r = _2(b), h = await i.getDimensions(o), p = b === "y", W = p ? "top" : "left", G = p ? "bottom" : "right", Y = p ? "clientHeight" : "clientWidth", X = n.reference[r] + n.reference[b] - Z[b] - n.floating[r], M = Z[b] - n.reference[b], x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o));
15841
- let z = x ? x[Y] : 0;
15842
- (!z || !await (i.isElement == null ? void 0 : i.isElement(x))) && (z = c.floating[Y] || n.floating[r]);
15843
- const V = X / 2 - M / 2, S = z / 2 - h[r] / 2 - 1, I = wd(u[W], S), U = wd(u[G], S), f = I, H = z - h[r] - U, Q = z / 2 - h[r] / 2 + V, el = zm(f, Q, H), dl = !s.arrow && la(d) != null && Q !== el && n.reference[r] / 2 - (Q < f ? I : U) - h[r] / 2 < 0, O = dl ? Q < f ? Q - f : Q - H : 0;
15840
+ }, b = $2(d), r = _2(b), h = await i.getDimensions(o), p = b === "y", W = p ? "top" : "left", G = p ? "bottom" : "right", Y = p ? "clientHeight" : "clientWidth", X = n.reference[r] + n.reference[b] - Z[b] - n.floating[r], M = Z[b] - n.reference[b], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o));
15841
+ let z = I ? I[Y] : 0;
15842
+ (!z || !await (i.isElement == null ? void 0 : i.isElement(I))) && (z = c.floating[Y] || n.floating[r]);
15843
+ const V = X / 2 - M / 2, S = z / 2 - h[r] / 2 - 1, x = wd(u[W], S), U = wd(u[G], S), f = x, H = z - h[r] - U, Q = z / 2 - h[r] / 2 + V, el = zm(f, Q, H), dl = !s.arrow && la(d) != null && Q !== el && n.reference[r] / 2 - (Q < f ? x : U) - h[r] / 2 < 0, O = dl ? Q < f ? Q - f : Q - H : 0;
15844
15844
  return {
15845
15845
  [b]: Z[b] + O,
15846
15846
  data: {
@@ -15872,22 +15872,22 @@ var q1 = function(l) {
15872
15872
  ], M = [...((a = i.autoPlacement) == null ? void 0 : a.overflows) || [], {
15873
15873
  placement: G,
15874
15874
  overflows: X
15875
- }], x = h[W + 1];
15876
- if (x) return {
15875
+ }], I = h[W + 1];
15876
+ if (I) return {
15877
15877
  data: {
15878
15878
  index: W + 1,
15879
15879
  overflows: M
15880
15880
  },
15881
- reset: { placement: x }
15881
+ reset: { placement: I }
15882
15882
  };
15883
15883
  const z = M.map((S) => {
15884
- const I = la(S.placement);
15884
+ const x = la(S.placement);
15885
15885
  return [
15886
15886
  S.placement,
15887
- I && m ? S.overflows.slice(0, 2).reduce((U, f) => U + f, 0) : S.overflows[0],
15887
+ x && m ? S.overflows.slice(0, 2).reduce((U, f) => U + f, 0) : S.overflows[0],
15888
15888
  S.overflows
15889
15889
  ];
15890
- }).sort((S, I) => S[1] - I[1]), V = ((d = z.filter((S) => S[2].slice(0, la(S[0]) ? 2 : 3).every((I) => I <= 0))[0]) == null ? void 0 : d[0]) || z[0][0];
15890
+ }).sort((S, x) => S[1] - x[1]), V = ((d = z.filter((S) => S[2].slice(0, la(S[0]) ? 2 : 3).every((x) => x <= 0))[0]) == null ? void 0 : d[0]) || z[0][0];
15891
15891
  return V !== c ? {
15892
15892
  data: {
15893
15893
  index: W + 1,
@@ -15905,34 +15905,34 @@ var q1 = function(l) {
15905
15905
  var t, a;
15906
15906
  const { placement: d, middlewareData: n, rects: i, initialPlacement: c, platform: s, elements: o } = e, { mainAxis: m = !0, crossAxis: u = !0, fallbackPlacements: Z, fallbackStrategy: b = "bestFit", fallbackAxisSideDirection: r = "none", flipAlignment: h = !0, ...p } = fd(l, e);
15907
15907
  if ((t = n.arrow) != null && t.alignmentOffset) return {};
15908
- const W = ya(d), G = Sa(c), Y = ya(c) === c, X = await (s.isRTL == null ? void 0 : s.isRTL(o.floating)), M = Z || (Y || !h ? [Bc(c)] : XI(c)), x = r !== "none";
15909
- !Z && x && M.push(...TI(c, h, r, X));
15908
+ const W = ya(d), G = Sa(c), Y = ya(c) === c, X = await (s.isRTL == null ? void 0 : s.isRTL(o.floating)), M = Z || (Y || !h ? [Bc(c)] : XI(c)), I = r !== "none";
15909
+ !Z && I && M.push(...TI(c, h, r, X));
15910
15910
  const z = [c, ...M], V = await s.detectOverflow(e, p), S = [];
15911
- let I = ((a = n.flip) == null ? void 0 : a.overflows) || [];
15911
+ let x = ((a = n.flip) == null ? void 0 : a.overflows) || [];
15912
15912
  if (m && S.push(V[W]), u) {
15913
15913
  const Q = A1(d, i, X);
15914
15914
  S.push(V[Q[0]], V[Q[1]]);
15915
15915
  }
15916
- if (I = [...I, {
15916
+ if (x = [...x, {
15917
15917
  placement: d,
15918
15918
  overflows: S
15919
15919
  }], !S.every((Q) => Q <= 0)) {
15920
15920
  var U, f;
15921
15921
  const Q = (((U = n.flip) == null ? void 0 : U.index) || 0) + 1, el = z[Q];
15922
- if (el && (!(u === "alignment" && G !== Sa(el)) || I.every((O) => Sa(O.placement) === G ? O.overflows[0] > 0 : !0)))
15922
+ if (el && (!(u === "alignment" && G !== Sa(el)) || x.every((O) => Sa(O.placement) === G ? O.overflows[0] > 0 : !0)))
15923
15923
  return {
15924
15924
  data: {
15925
15925
  index: Q,
15926
- overflows: I
15926
+ overflows: x
15927
15927
  },
15928
15928
  reset: { placement: el }
15929
15929
  };
15930
- let dl = (f = I.filter((O) => O.overflows[0] <= 0).sort((O, ll) => O.overflows[1] - ll.overflows[1])[0]) == null ? void 0 : f.placement;
15930
+ let dl = (f = x.filter((O) => O.overflows[0] <= 0).sort((O, ll) => O.overflows[1] - ll.overflows[1])[0]) == null ? void 0 : f.placement;
15931
15931
  if (!dl) switch (b) {
15932
15932
  case "bestFit": {
15933
15933
  var H;
15934
- const O = (H = I.filter((ll) => {
15935
- if (x) {
15934
+ const O = (H = x.filter((ll) => {
15935
+ if (I) {
15936
15936
  const al = Sa(ll.placement);
15937
15937
  return al === G || al === "y";
15938
15938
  }
@@ -16039,11 +16039,11 @@ var eh = function(l) {
16039
16039
  }, ...o } = fd(l, e), m = await i.detectOverflow(e, o), u = ya(d), Z = la(d), b = Sa(d) === "y", { width: r, height: h } = n.floating;
16040
16040
  let p, W;
16041
16041
  u === "top" || u === "bottom" ? (p = u, W = Z === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (W = u, p = Z === "end" ? "top" : "bottom");
16042
- const G = h - m.top - m.bottom, Y = r - m.left - m.right, X = wd(h - m[p], G), M = wd(r - m[W], Y), x = !e.middlewareData.shift;
16042
+ const G = h - m.top - m.bottom, Y = r - m.left - m.right, X = wd(h - m[p], G), M = wd(r - m[W], Y), I = !e.middlewareData.shift;
16043
16043
  let z = X, V = M;
16044
- if ((t = e.middlewareData.shift) != null && t.enabled.x && (V = Y), (a = e.middlewareData.shift) != null && a.enabled.y && (z = G), x && !Z) {
16045
- const I = kt(m.left, 0), U = kt(m.right, 0), f = kt(m.top, 0), H = kt(m.bottom, 0);
16046
- b ? V = r - 2 * (I !== 0 || U !== 0 ? I + U : kt(m.left, m.right)) : z = h - 2 * (f !== 0 || H !== 0 ? f + H : kt(m.top, m.bottom));
16044
+ if ((t = e.middlewareData.shift) != null && t.enabled.x && (V = Y), (a = e.middlewareData.shift) != null && a.enabled.y && (z = G), I && !Z) {
16045
+ const x = kt(m.left, 0), U = kt(m.right, 0), f = kt(m.top, 0), H = kt(m.bottom, 0);
16046
+ b ? V = r - 2 * (x !== 0 || U !== 0 ? x + U : kt(m.left, m.right)) : z = h - 2 * (f !== 0 || H !== 0 ? f + H : kt(m.top, m.bottom));
16047
16047
  }
16048
16048
  await s({
16049
16049
  ...e,
@@ -16496,7 +16496,7 @@ var $I = {
16496
16496
  show: 0,
16497
16497
  hide: 0
16498
16498
  }), M = /* @__PURE__ */ new Map();
16499
- async function x() {
16499
+ async function I() {
16500
16500
  const Yl = a.referenceEl ?? c.value?.firstElementChild;
16501
16501
  if (!s.value || !Yl || b.value) return;
16502
16502
  const q = a.placement === "auto", { x: nl, y: ol } = await ax(Yl, s.value, {
@@ -16517,12 +16517,12 @@ var $I = {
16517
16517
  if (a.disabled || z() || (i.value = !0, u.value = c.value?.closest("dialog[open]") ?? "body", a.showGroup && M.has(a.showGroup) && M.get(a.showGroup).forEach((q) => q()), await $l(), !s.value)) return;
16518
16518
  s.value.dataset.bglId = m;
16519
16519
  const Yl = c.value?.closest("[data-bgl-id]");
16520
- Yl?.dataset.bglId ? s.value.dataset.bglOwner = Yl.dataset.bglId : delete s.value.dataset.bglOwner, s.value.style.opacity = "0", s.value.showPopover(), await x(), s.value.style.opacity = "", o && (H(), o = !1);
16520
+ Yl?.dataset.bglId ? s.value.dataset.bglOwner = Yl.dataset.bglId : delete s.value.dataset.bglOwner, s.value.style.opacity = "0", s.value.showPopover(), await I(), s.value.style.opacity = "", o && (H(), o = !1);
16521
16521
  }
16522
16522
  function S(Yl) {
16523
16523
  z() && ((Yl?.restoreFocus ?? !0) && !a.noAutoFocus && c.value?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')?.focus(), s.value?.hidePopover());
16524
16524
  }
16525
- const I = [
16525
+ const x = [
16526
16526
  "a[href]",
16527
16527
  "button:not([disabled])",
16528
16528
  "input:not([disabled])",
@@ -16531,7 +16531,7 @@ var $I = {
16531
16531
  '[tabindex]:not([tabindex="-1"])'
16532
16532
  ].join(",");
16533
16533
  function U() {
16534
- return s.value ? Array.from(s.value.querySelectorAll(I)).filter((Yl) => Yl.offsetParent !== null || Yl === document.activeElement) : [];
16534
+ return s.value ? Array.from(s.value.querySelectorAll(x)).filter((Yl) => Yl.offsetParent !== null || Yl === document.activeElement) : [];
16535
16535
  }
16536
16536
  function f(Yl) {
16537
16537
  const q = U();
@@ -16567,7 +16567,7 @@ var $I = {
16567
16567
  Yl && !z() ? V() : !Yl && z() && S();
16568
16568
  });
16569
16569
  function O(Yl) {
16570
- Yl.newState === "open" ? (wl(), n.value = !0, $l(x), d("show")) : (vl(), n.value = !1, d("hide"));
16570
+ Yl.newState === "open" ? (wl(), n.value = !0, $l(I), d("show")) : (vl(), n.value = !1, d("hide"));
16571
16571
  }
16572
16572
  function ll(Yl) {
16573
16573
  if (!a.autoHide || !z()) return;
@@ -16622,7 +16622,7 @@ var $I = {
16622
16622
  G.value && (F = setTimeout(() => S({ restoreFocus: !1 }), X.value.hide));
16623
16623
  }
16624
16624
  function zl() {
16625
- z() && x();
16625
+ z() && I();
16626
16626
  }
16627
16627
  let tl = !1;
16628
16628
  function wl() {
@@ -16929,22 +16929,22 @@ var rx = ["width", "height"], hx = [
16929
16929
  emits: ["move", "card-click"],
16930
16930
  setup(l, { emit: e }) {
16931
16931
  const t = l, a = e, d = Ve(), n = T(() => Array.isArray(t.columns));
16932
- function i(M, x) {
16933
- if (x != null)
16934
- return typeof x == "function" ? x(M) : M[x];
16932
+ function i(M, I) {
16933
+ if (I != null)
16934
+ return typeof I == "function" ? I(M) : M[I];
16935
16935
  }
16936
16936
  const c = (M) => {
16937
- const x = t.itemKey;
16938
- return (x ? i(M, x) : M.id) ?? JSON.stringify(M);
16937
+ const I = t.itemKey;
16938
+ return (I ? i(M, I) : M.id) ?? JSON.stringify(M);
16939
16939
  }, s = T(() => {
16940
16940
  if (n.value) return (t.columns ?? []).map((V) => ({
16941
16941
  ...V,
16942
16942
  items: V.items ?? []
16943
16943
  }));
16944
- const M = t.columnsDef ?? [], x = (V) => String(i(V, t.groupBy) ?? ""), z = /* @__PURE__ */ new Map();
16944
+ const M = t.columnsDef ?? [], I = (V) => String(i(V, t.groupBy) ?? ""), z = /* @__PURE__ */ new Map();
16945
16945
  for (const V of M) z.set(V.id, []);
16946
16946
  for (const V of t.data ?? []) {
16947
- const S = x(V);
16947
+ const S = I(V);
16948
16948
  if (!z.has(S)) if (!M.length) z.set(S, []);
16949
16949
  else continue;
16950
16950
  z.get(S).push(V);
@@ -16962,22 +16962,22 @@ var rx = ["width", "height"], hx = [
16962
16962
  return t.loadMore && typeof M.total == "number" ? M.items.length < M.total : !1;
16963
16963
  }
16964
16964
  async function u(M) {
16965
- const x = (o[M.id] ?? 1) + 1;
16966
- o[M.id] = x, await t.loadMore?.(M.id, x);
16965
+ const I = (o[M.id] ?? 1) + 1;
16966
+ o[M.id] = I, await t.loadMore?.(M.id, I);
16967
16967
  }
16968
16968
  const Z = k(null), b = k(null);
16969
- function r(M, x) {
16969
+ function r(M, I) {
16970
16970
  t.draggable && (Z.value = {
16971
16971
  item: M,
16972
- from: x
16972
+ from: I
16973
16973
  });
16974
16974
  }
16975
16975
  function h() {
16976
16976
  Z.value = null, b.value = null;
16977
16977
  }
16978
- function p(M, x) {
16978
+ function p(M, I) {
16979
16979
  if (!t.draggable || !Z.value) return;
16980
- const { item: z, from: V } = Z.value, S = x ?? M.items.length;
16980
+ const { item: z, from: V } = Z.value, S = I ?? M.items.length;
16981
16981
  a("move", {
16982
16982
  item: z,
16983
16983
  fromColumn: V,
@@ -16995,14 +16995,14 @@ var rx = ["width", "height"], hx = [
16995
16995
  return i(M, t.cardSchema?.id);
16996
16996
  }
16997
16997
  function X(M) {
16998
- const x = [];
16998
+ const I = [];
16999
16999
  for (const z of t.cardSchema?.badges ?? []) {
17000
17000
  const V = i(M, z);
17001
- V == null || V === "" || x.push(typeof V == "object" ? V : { label: String(V) });
17001
+ V == null || V === "" || I.push(typeof V == "object" ? V : { label: String(V) });
17002
17002
  }
17003
- return x;
17003
+ return I;
17004
17004
  }
17005
- return (M, x) => (L(), y("div", Nx, [(L(!0), y(yl, null, Rl(s.value, (z) => (L(), y("div", {
17005
+ return (M, I) => (L(), y("div", Nx, [(L(!0), y(yl, null, Rl(s.value, (z) => (L(), y("div", {
17006
17006
  key: z.id,
17007
17007
  class: ul(["bgl-kanban-col column display-flex", { "is-dragover": b.value === z.id }]),
17008
17008
  onDragover: le((V) => l.draggable && (b.value = z.id), ["prevent"]),
@@ -17035,22 +17035,22 @@ var rx = ["width", "height"], hx = [
17035
17035
  key: c(V),
17036
17036
  class: "bgl-kanban-card-wrap",
17037
17037
  draggable: l.draggable || void 0,
17038
- onDragstart: (I) => r(V, z.id),
17038
+ onDragstart: (x) => r(V, z.id),
17039
17039
  onDragend: h,
17040
- onDrop: le((I) => p(z, S), ["stop"]),
17041
- onClick: (I) => a("card-click", V, z.id)
17040
+ onDrop: le((x) => p(z, S), ["stop"]),
17041
+ onClick: (x) => a("card-click", V, z.id)
17042
17042
  }, [Ll(M.$slots, "card", {
17043
17043
  item: V,
17044
17044
  column: z
17045
17045
  }, () => [g("div", Vx, [
17046
17046
  W(V) ? (L(), y("div", Tx, cl(W(V)), 1)) : C("", !0),
17047
17047
  G(V) ? (L(), y("div", Ix, cl(G(V)), 1)) : C("", !0),
17048
- X(V).length ? (L(), y("div", xx, [(L(!0), y(yl, null, Rl(X(V), (I, U) => (L(), Zl(_i, {
17048
+ X(V).length ? (L(), y("div", xx, [(L(!0), y(yl, null, Rl(X(V), (x, U) => (L(), Zl(_i, {
17049
17049
  key: U,
17050
17050
  sm: "",
17051
17051
  soft: "",
17052
- color: I.color || "gray",
17053
- value: I.label
17052
+ color: x.color || "gray",
17053
+ value: x.label
17054
17054
  }, null, 8, ["color", "value"]))), 128))])) : C("", !0),
17055
17055
  Y(V) ? (L(), y("div", zx, cl(Y(V)), 1)) : C("", !0)
17056
17056
  ])], !0)], 40, Mx))), 128)),
@@ -17546,7 +17546,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
17546
17546
  sm: !0
17547
17547
  });
17548
17548
  function u(q) {
17549
- return !q.field || !q.op ? !1 : x(q.field) ? q.value !== "" && q.value != null : q.op === "pr" || q.op === "is_null" ? !0 : q.op === "in" || q.op === "nin" || q.op === "sw_any" ? Array.isArray(q.value) && q.value.length > 0 : q.op === "between" ? Array.isArray(q.value) && q.value.length === 2 && q.value[0] !== "" && q.value[0] != null && q.value[1] !== "" && q.value[1] != null : q.value !== "" && q.value !== null && q.value !== void 0;
17549
+ return !q.field || !q.op ? !1 : I(q.field) ? q.value !== "" && q.value != null : q.op === "pr" || q.op === "is_null" ? !0 : q.op === "in" || q.op === "nin" || q.op === "sw_any" ? Array.isArray(q.value) && q.value.length > 0 : q.op === "between" ? Array.isArray(q.value) && q.value.length === 2 && q.value[0] !== "" && q.value[0] != null && q.value[1] !== "" && q.value[1] != null : q.value !== "" && q.value !== null && q.value !== void 0;
17550
17550
  }
17551
17551
  const Z = /* @__PURE__ */ Yn(() => {
17552
17552
  const q = V(n.value.filter(u));
@@ -17724,7 +17724,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
17724
17724
  function M(q) {
17725
17725
  return X(q)?.options;
17726
17726
  }
17727
- function x(q) {
17727
+ function I(q) {
17728
17728
  const nl = X(q);
17729
17729
  return !!(nl?.queryOptions && nl.queryOptions.length > 0);
17730
17730
  }
@@ -17777,7 +17777,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
17777
17777
  }
17778
17778
  return ol;
17779
17779
  }
17780
- const I = T(() => [{
17780
+ const x = T(() => [{
17781
17781
  label: h.value.boolean.true,
17782
17782
  value: !0
17783
17783
  }, {
@@ -17948,7 +17948,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
17948
17948
  "class",
17949
17949
  "onUpdate:modelValue"
17950
17950
  ]),
17951
- x(ol.field) ? (L(), Zl(N(xt), {
17951
+ I(ol.field) ? (L(), Zl(N(xt), {
17952
17952
  key: `${ol.id}-${ol.field}-qpreset`,
17953
17953
  "model-value": vl(ol),
17954
17954
  options: X(ol.field).queryOptions,
@@ -18059,7 +18059,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18059
18059
  ])) : dl(ol.field) === "boolean" ? (L(), Zl(N(xt), {
18060
18060
  key: `${ol.id}-${ol.field}-bool`,
18061
18061
  "model-value": B(ol.value),
18062
- options: I.value,
18062
+ options: x.value,
18063
18063
  placeholder: h.value.placeholders.selectOption,
18064
18064
  class: "m-0 light-input borderHover",
18065
18065
  "onUpdate:modelValue": (P) => tl(ol.id, P)
@@ -18216,7 +18216,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18216
18216
  setup(l, { emit: e }) {
18217
18217
  const t = l, a = e, d = k(), n = k(), i = k(1), c = k(t.pages.length), s = k(816 / 1056), o = k(1), m = k(!1), u = k(!1), Z = k(""), b = k([]);
18218
18218
  let r, h = 0;
18219
- const p = T(() => b.value.length ? b.value : t.pages), W = T(() => t.direction === "rtl" ? [...p.value].reverse() : p.value), G = T(() => W.value.length + (t.layout === "single" ? 1 : 0)), Y = T(() => i.value > 1), X = T(() => i.value < c.value), M = T(() => t.sizeMode === "manual" ? Math.max(0.01, t.pageWidth / t.pageHeight) : s.value), x = T(() => ({
18219
+ const p = T(() => b.value.length ? b.value : t.pages), W = T(() => t.direction === "rtl" ? [...p.value].reverse() : p.value), G = T(() => W.value.length + (t.layout === "single" ? 1 : 0)), Y = T(() => i.value > 1), X = T(() => i.value < c.value), M = T(() => t.sizeMode === "manual" ? Math.max(0.01, t.pageWidth / t.pageHeight) : s.value), I = T(() => ({
18220
18220
  aspectRatio: `${M.value * 2} / 1`,
18221
18221
  maxWidth: `${720 * M.value * 2}px`
18222
18222
  })), z = T(() => ({ transform: `scale(${o.value})` })), V = T(() => t.navigation || t.pageCounter || t.zoomControls || t.fullscreen), S = T(() => {
@@ -18226,7 +18226,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18226
18226
  height: Math.round(j * v)
18227
18227
  };
18228
18228
  });
18229
- async function I() {
18229
+ async function x() {
18230
18230
  const w = p.value[0];
18231
18231
  !w || typeof window > "u" || t.sizeMode === "manual" || await new Promise((j) => {
18232
18232
  const v = new Image();
@@ -18276,7 +18276,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18276
18276
  }
18277
18277
  }
18278
18278
  async function el(w = h) {
18279
- if (!n.value || !W.value.length || typeof window > "u" || (await I(), w !== h || !n.value)) return;
18279
+ if (!n.value || !W.value.length || typeof window > "u" || (await x(), w !== h || !n.value)) return;
18280
18280
  const { PageFlip: j } = await import("./page-flip.browser-BXnk8BM6.js").then($G(1));
18281
18281
  if (w !== h || !n.value) return;
18282
18282
  const v = window.document.createElement("div");
@@ -18338,7 +18338,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18338
18338
  w.key === "ArrowLeft" && O(), w.key === "ArrowRight" && ll(), (w.key === "+" || w.key === "=") && al(), w.key === "-" && F();
18339
18339
  }
18340
18340
  return xl(() => t.pages, async () => {
18341
- await I(), await dl();
18341
+ await x(), await dl();
18342
18342
  }, { deep: !0 }), xl(() => [
18343
18343
  t.direction,
18344
18344
  t.layout,
@@ -18346,11 +18346,11 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18346
18346
  t.pageWidth,
18347
18347
  t.pageHeight
18348
18348
  ], async () => {
18349
- i.value = 1, await I(), await dl();
18349
+ i.value = 1, await x(), await dl();
18350
18350
  }), xl(() => t.pdf, async () => {
18351
- await Q(), await $l(), await I(), await dl();
18351
+ await Q(), await $l(), await x(), await dl();
18352
18352
  }, { immediate: !0 }), Bl(() => {
18353
- t.pdf || I().then(() => el()), document.addEventListener("fullscreenchange", B);
18353
+ t.pdf || x().then(() => el()), document.addEventListener("fullscreenchange", B);
18354
18354
  }), Kt(() => {
18355
18355
  document.removeEventListener("fullscreenchange", B), f(), H();
18356
18356
  }), (w, j) => {
@@ -18376,7 +18376,7 @@ var Cx = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18376
18376
  }, null, 8, ["description"])) : C("", !0),
18377
18377
  El(g("div", {
18378
18378
  class: "bgl-flipbook-stage relative mx-auto",
18379
- style: Xl(x.value)
18379
+ style: Xl(I.value)
18380
18380
  }, [g("div", Ax, [g("div", {
18381
18381
  ref_key: "book",
18382
18382
  ref: n,
@@ -18552,9 +18552,9 @@ var nz = {
18552
18552
  },
18553
18553
  emits: ["update:modelValue"],
18554
18554
  setup(l, { emit: e }) {
18555
- const t = l, { shellClass: a, shellStyle: d } = Pe(t), n = e, i = Ve(), { $t: c } = ge(), s = k(Array.isArray(t.modelValue) ? [...t.modelValue] : []), o = k(Array.from({ length: s.value.length }, () => !0)), m = T(() => s.value.some((I) => I != null && I !== "")), u = T(() => {
18556
- const I = Ol(t.itemLabel);
18557
- return typeof I == "string" && I.length > 0 ? I : c("arrayInput.item");
18555
+ const t = l, { shellClass: a, shellStyle: d } = Pe(t), n = e, i = Ve(), { $t: c } = ge(), s = k(Array.isArray(t.modelValue) ? [...t.modelValue] : []), o = k(Array.from({ length: s.value.length }, () => !0)), m = T(() => s.value.some((x) => x != null && x !== "")), u = T(() => {
18556
+ const x = Ol(t.itemLabel);
18557
+ return typeof x == "string" && x.length > 0 ? x : c("arrayInput.item");
18558
18558
  }), Z = [
18559
18559
  "title",
18560
18560
  "name",
@@ -18577,13 +18577,13 @@ var nz = {
18577
18577
  "icon",
18578
18578
  "logo"
18579
18579
  ];
18580
- function r(I) {
18581
- if (typeof I == "string" && I.trim().length > 0) {
18582
- const U = us(I);
18580
+ function r(x) {
18581
+ if (typeof x == "string" && x.trim().length > 0) {
18582
+ const U = us(x);
18583
18583
  return U.length > 0 ? U : null;
18584
18584
  }
18585
- if (I != null && typeof I == "object") for (const U of Z) {
18586
- const f = I[U];
18585
+ if (x != null && typeof x == "object") for (const U of Z) {
18586
+ const f = x[U];
18587
18587
  if (typeof f == "string" && f.trim().length > 0) {
18588
18588
  const H = us(f);
18589
18589
  if (H.length > 0) return H;
@@ -18591,65 +18591,65 @@ var nz = {
18591
18591
  }
18592
18592
  return null;
18593
18593
  }
18594
- function h(I) {
18595
- if (I != null && typeof I == "object") for (const U of b) {
18596
- const f = I[U];
18594
+ function h(x) {
18595
+ if (x != null && typeof x == "object") for (const U of b) {
18596
+ const f = x[U];
18597
18597
  if (typeof f == "string" && f.trim().length > 0) return f.trim();
18598
18598
  }
18599
18599
  return null;
18600
18600
  }
18601
- function p(I) {
18602
- const U = r(s.value[I]);
18603
- return U != null ? `${I + 1}. ${U}` : `${u.value} ${I + 1}`;
18601
+ function p(x) {
18602
+ const U = r(s.value[x]);
18603
+ return U != null ? `${x + 1}. ${U}` : `${u.value} ${x + 1}`;
18604
18604
  }
18605
- xl(() => t.modelValue, (I) => {
18606
- Array.isArray(I) && (s.value = [...I], o.value.length !== I.length && (o.value = Array.from({ length: I.length }, (U, f) => o.value[f] ?? !0)));
18605
+ xl(() => t.modelValue, (x) => {
18606
+ Array.isArray(x) && (s.value = [...x], o.value.length !== x.length && (o.value = Array.from({ length: x.length }, (U, f) => o.value[f] ?? !0)));
18607
18607
  });
18608
18608
  function W() {
18609
- const I = t.createItem ? t.createItem() : {};
18610
- s.value.push(I), o.value.push(!1), x();
18609
+ const x = t.createItem ? t.createItem() : {};
18610
+ s.value.push(x), o.value.push(!1), I();
18611
18611
  }
18612
- function G(I) {
18613
- s.value.splice(I, 1), o.value.splice(I, 1), x();
18612
+ function G(x) {
18613
+ s.value.splice(x, 1), o.value.splice(x, 1), I();
18614
18614
  }
18615
- function Y(I) {
18616
- o.value[I] = !o.value[I];
18615
+ function Y(x) {
18616
+ o.value[x] = !o.value[x];
18617
18617
  }
18618
- function X(I, U) {
18619
- U < 0 || U >= s.value.length || I === U || (s.value = xm(s.value, I, U), o.value = xm(o.value, I, U), x());
18618
+ function X(x, U) {
18619
+ U < 0 || U >= s.value.length || x === U || (s.value = xm(s.value, x, U), o.value = xm(o.value, x, U), I());
18620
18620
  }
18621
- function M(I) {
18622
- X(I.oldIndex, I.newIndex);
18621
+ function M(x) {
18622
+ X(x.oldIndex, x.newIndex);
18623
18623
  }
18624
- function x() {
18624
+ function I() {
18625
18625
  n("update:modelValue", [...s.value]);
18626
18626
  }
18627
- function z(I, U) {
18628
- s.value[U] = I, x();
18627
+ function z(x, U) {
18628
+ s.value[U] = x, I();
18629
18629
  }
18630
18630
  const V = T(() => {
18631
18631
  if (t.simple) return !0;
18632
18632
  if (!i.default) return !1;
18633
- const I = T({
18633
+ const x = T({
18634
18634
  get: () => {
18635
18635
  },
18636
18636
  set: () => {
18637
18637
  }
18638
18638
  });
18639
18639
  return i.default({
18640
- item: I,
18640
+ item: x,
18641
18641
  index: 0
18642
18642
  }).filter((U) => typeof U.type != "symbol").length === 1;
18643
18643
  });
18644
- function S(I) {
18644
+ function S(x) {
18645
18645
  return T({
18646
- get: () => s.value[I],
18646
+ get: () => s.value[x],
18647
18647
  set: (U) => {
18648
- z(U, I);
18648
+ z(U, x);
18649
18649
  }
18650
18650
  });
18651
18651
  }
18652
- return (I, U) => {
18652
+ return (x, U) => {
18653
18653
  const f = lt("tooltip");
18654
18654
  return L(), y("div", {
18655
18655
  class: ul(["bagel-input array-input testMe1", [N(a), { "has-value": m.value }]]),
@@ -18693,7 +18693,7 @@ var nz = {
18693
18693
  icon: "drag_indicator",
18694
18694
  class: "grab"
18695
18695
  }, null, 512)), [[f, N(Ol)("Drag to reorder")]]) : C("", !0),
18696
- Ll(I.$slots, "default", {
18696
+ Ll(x.$slots, "default", {
18697
18697
  item: S(H),
18698
18698
  index: H
18699
18699
  }),
@@ -18750,7 +18750,7 @@ var nz = {
18750
18750
  "icon-size": "0.8"
18751
18751
  }, null, 8, ["confirm", "onClick"])), [[f, N(Ol)(l.deleteTooltip || "Delete")]]) : C("", !0)
18752
18752
  ]), il(Fd, { name: "array-collapse" }, {
18753
- default: Tl(() => [o.value[H] ? C("", !0) : (L(), y("div", hz, [Ll(I.$slots, "default", {
18753
+ default: Tl(() => [o.value[H] ? C("", !0) : (L(), y("div", hz, [Ll(x.$slots, "default", {
18754
18754
  item: S(H),
18755
18755
  index: H
18756
18756
  })]))]),
@@ -19023,12 +19023,12 @@ var Mz = {
19023
19023
  S.key === "Enter" && S.preventDefault();
19024
19024
  return;
19025
19025
  }
19026
- x(S);
19026
+ I(S);
19027
19027
  }
19028
- function x(S) {
19028
+ function I(S) {
19029
19029
  if (S.key !== "Tab") return;
19030
19030
  S.preventDefault();
19031
- const I = S.target, U = I.selectionStart, f = I.selectionEnd;
19031
+ const x = S.target, U = x.selectionStart, f = x.selectionEnd;
19032
19032
  if (s.value = `${s.value.substring(0, U)} ${s.value.substring(f)}`, i.value) try {
19033
19033
  a("update:modelValue", JSON.parse(s.value));
19034
19034
  } catch {
@@ -19036,7 +19036,7 @@ var Mz = {
19036
19036
  }
19037
19037
  else a("update:modelValue", s.value);
19038
19038
  setTimeout(() => {
19039
- I.selectionStart = U + 2, I.selectionEnd = U + 2;
19039
+ x.selectionStart = U + 2, x.selectionEnd = U + 2;
19040
19040
  }, 0);
19041
19041
  }
19042
19042
  Bl(async () => {
@@ -19053,7 +19053,7 @@ var Mz = {
19053
19053
  }
19054
19054
  return xl(() => t.modelValue, () => {
19055
19055
  u.value || z();
19056
- }, { immediate: !0 }), (S, I) => (L(), y("div", {
19056
+ }, { immediate: !0 }), (S, x) => (L(), y("div", {
19057
19057
  class: ul(["bagel-input code-editor-container ltr", [N(d), {
19058
19058
  "": l.label && !l.singleLine,
19059
19059
  "has-value": o.value,
@@ -19078,7 +19078,7 @@ var Mz = {
19078
19078
  autocapitalize: "off",
19079
19079
  onInput: X,
19080
19080
  onKeydown: M,
19081
- onFocus: I[0] || (I[0] = (U) => u.value = !0),
19081
+ onFocus: x[0] || (x[0] = (U) => u.value = !0),
19082
19082
  onBlur: V
19083
19083
  }, null, 40, zz)) : C("", !0)
19084
19084
  ])], 2)) : C("", !0)], 6));
@@ -19616,7 +19616,7 @@ var Wh = class Rm {
19616
19616
  }))
19617
19617
  };
19618
19618
  }
19619
- function x() {
19619
+ function I() {
19620
19620
  return {
19621
19621
  selectMonth: (Sl) => {
19622
19622
  s.value = new Date(s.value.getFullYear(), Sl, 1), o.value = "days";
@@ -19660,7 +19660,7 @@ var Wh = class Rm {
19660
19660
  function V(q) {
19661
19661
  t.enableTime ? a("update:modelValue", q.toISOString()) : a("update:modelValue", ci.date(q));
19662
19662
  }
19663
- const { currentMonthDays: S, currentMonthValue: I, months: U, years: f, weekDays: H, isSelected: Q, isRangeStart: el, isRangeEnd: dl, isInRange: O, isToday: ll, isNotInMonth: al, isHighlighted: F } = M(), { selectMonth: _, selectYear: B, previousMonth: J, nextMonth: w, previousYear: j, nextYear: v } = x(), { hours: ml, minutes: E, handleHourInput: Gl, handleMinuteInput: zl } = z();
19663
+ const { currentMonthDays: S, currentMonthValue: x, months: U, years: f, weekDays: H, isSelected: Q, isRangeStart: el, isRangeEnd: dl, isInRange: O, isToday: ll, isNotInMonth: al, isHighlighted: F } = M(), { selectMonth: _, selectYear: B, previousMonth: J, nextMonth: w, previousYear: j, nextYear: v } = I(), { hours: ml, minutes: E, handleHourInput: Gl, handleMinuteInput: zl } = z();
19664
19664
  function tl(q) {
19665
19665
  return ci.date(q);
19666
19666
  }
@@ -19707,7 +19707,7 @@ var Wh = class Rm {
19707
19707
  class: "month-btn",
19708
19708
  onClick: nl[0] || (nl[0] = (ol) => o.value = "months")
19709
19709
  }, {
19710
- default: Tl(() => [Dl(cl(N(I).formatted.month), 1)]),
19710
+ default: Tl(() => [Dl(cl(N(x).formatted.month), 1)]),
19711
19711
  _: 1
19712
19712
  }), il(N(Nl), {
19713
19713
  flat: "",
@@ -19715,7 +19715,7 @@ var Wh = class Rm {
19715
19715
  class: "year-btn",
19716
19716
  onClick: nl[1] || (nl[1] = (ol) => o.value = "years")
19717
19717
  }, {
19718
- default: Tl(() => [Dl(cl(N(I).formatted.year), 1)]),
19718
+ default: Tl(() => [Dl(cl(N(x).formatted.year), 1)]),
19719
19719
  _: 1
19720
19720
  })]),
19721
19721
  il(N(Nl), {
@@ -19731,7 +19731,7 @@ var Wh = class Rm {
19731
19731
  icon: "chevron_left",
19732
19732
  onClick: N(j)
19733
19733
  }, null, 8, ["onClick"]),
19734
- g("span", kz, cl(N(I).formatted.year), 1),
19734
+ g("span", kz, cl(N(x).formatted.year), 1),
19735
19735
  il(N(Nl), {
19736
19736
  flat: "",
19737
19737
  thin: "",
@@ -19760,7 +19760,7 @@ var Wh = class Rm {
19760
19760
  }, cl(ol?.getDate()), 43, Dz))), 128))])) : o.value === "months" ? (L(), y("div", Uz, [(L(!0), y(yl, null, Rl(N(U), (ol) => (L(), Zl(N(Nl), {
19761
19761
  key: ol.value,
19762
19762
  thin: "",
19763
- flat: ol.value !== N(I).month,
19763
+ flat: ol.value !== N(x).month,
19764
19764
  disabled: ol.disabled,
19765
19765
  value: ol.name,
19766
19766
  onClick: (K) => N(_)(ol.value)
@@ -19772,7 +19772,7 @@ var Wh = class Rm {
19772
19772
  ]))), 128))])) : (L(), y("div", Oz, [(L(!0), y(yl, null, Rl(N(f), (ol) => (L(), Zl(N(Nl), {
19773
19773
  key: ol.value,
19774
19774
  thin: "",
19775
- flat: ol.value !== N(I).year,
19775
+ flat: ol.value !== N(x).year,
19776
19776
  disabled: ol.disabled,
19777
19777
  value: ol.value.toString(),
19778
19778
  onClick: (K) => N(B)(ol.value)
@@ -19922,7 +19922,7 @@ var Wh = class Rm {
19922
19922
  let O = dl.slice(0, 3).join(".");
19923
19923
  return (O.length === 2 && !O.includes(".") || O.length === 5 && dl.length === 2) && (O += "."), O;
19924
19924
  }
19925
- function x(el) {
19925
+ function I(el) {
19926
19926
  const dl = el.target;
19927
19927
  if (o.value = !0, e.range) {
19928
19928
  z(dl);
@@ -19961,7 +19961,7 @@ var Wh = class Rm {
19961
19961
  }, 200));
19962
19962
  }, 100);
19963
19963
  }
19964
- function I(el) {
19964
+ function x(el) {
19965
19965
  const { key: dl, shiftKey: O } = el;
19966
19966
  if (dl === "Escape")
19967
19967
  m.value = !1, o.value = !1, c.value = Y() ? h(i.value) : "", s.value = !0;
@@ -20033,12 +20033,12 @@ var Wh = class Rm {
20033
20033
  "max-width": l.maxWidth,
20034
20034
  "label-color": l.labelColor,
20035
20035
  "label-active-color": l.labelActiveColor,
20036
- onInput: x,
20036
+ onInput: I,
20037
20037
  onFocus: V,
20038
20038
  onBlur: S,
20039
20039
  onClick: dl[1] || (dl[1] = le(() => {
20040
20040
  }, ["stop"])),
20041
- onKeydown: I,
20041
+ onKeydown: x,
20042
20042
  onIconClick: U
20043
20043
  }, null, 8, [
20044
20044
  "modelValue",
@@ -20289,7 +20289,7 @@ var lw = ["title"], ew = ["for"], tw = {
20289
20289
  u.value = null;
20290
20290
  return;
20291
20291
  }
20292
- for (const ll of s) if (x(O, ll) <= 2) {
20292
+ for (const ll of s) if (I(O, ll) <= 2) {
20293
20293
  u.value = `${el}@${ll}`.toLowerCase();
20294
20294
  return;
20295
20295
  }
@@ -20298,7 +20298,7 @@ var lw = ["title"], ew = ["for"], tw = {
20298
20298
  function M() {
20299
20299
  u.value && (m.value = u.value, u.value = null, d("update:modelValue", m.value), W());
20300
20300
  }
20301
- function x(Q, el) {
20301
+ function I(Q, el) {
20302
20302
  const dl = [];
20303
20303
  for (let O = 0; O <= Q.length; O++) dl[O] = [O];
20304
20304
  for (let O = 0; O <= el.length; O++) dl[0][O] = O;
@@ -20455,7 +20455,7 @@ var lw = ["title"], ew = ["for"], tw = {
20455
20455
  }, {
20456
20456
  trigger: Tl(({ shown: Y, show: X, hide: M }) => [g("div", {
20457
20457
  class: "icon-picker-trigger flex gap-05 w-100p bg-input px-075 rounded hover",
20458
- onClick: (x) => Y ? M() : X()
20458
+ onClick: (I) => Y ? M() : X()
20459
20459
  }, [
20460
20460
  g("span", bw, [l.modelValue ? (L(), Zl(N(fl), {
20461
20461
  key: 0,
@@ -20542,23 +20542,23 @@ var lw = ["title"], ew = ["for"], tw = {
20542
20542
  setup(l, { expose: e }) {
20543
20543
  const t = l, { maxLength: a, placeholder: d, label: n, showFormatting: i, rtl: c } = t, { shellClass: s, shellStyle: o } = Pe(t), m = Ce(l, "modelValue"), u = k(), Z = `markdown-editor-${Math.random().toString(36).substring(2, 9)}`, b = T(() => m.value.length);
20544
20544
  function r(h) {
20545
- const p = u.value?.$el.querySelector("textarea"), W = m.value, G = p?.selectionStart ?? W.length, Y = p?.selectionEnd ?? W.length, X = W.slice(0, G), M = W.slice(Y), x = W.slice(G, Y);
20545
+ const p = u.value?.$el.querySelector("textarea"), W = m.value, G = p?.selectionStart ?? W.length, Y = p?.selectionEnd ?? W.length, X = W.slice(0, G), M = W.slice(Y), I = W.slice(G, Y);
20546
20546
  let z = "";
20547
20547
  switch (h) {
20548
20548
  case "bold":
20549
- z = `*${x || "bold"}*`;
20549
+ z = `*${I || "bold"}*`;
20550
20550
  break;
20551
20551
  case "italic":
20552
- z = `_${x || "italic"}_`;
20552
+ z = `_${I || "italic"}_`;
20553
20553
  break;
20554
20554
  case "underline":
20555
- z = `~${x || "underline"}~`;
20555
+ z = `~${I || "underline"}~`;
20556
20556
  break;
20557
20557
  case "code":
20558
- z = `\`${x || "code"}\``;
20558
+ z = `\`${I || "code"}\``;
20559
20559
  break;
20560
20560
  case "pre":
20561
- z = `\`\`\`${x || "pre"}\`\`\``;
20561
+ z = `\`\`\`${I || "pre"}\`\`\``;
20562
20562
  break;
20563
20563
  case "newline":
20564
20564
  z = `
@@ -20720,80 +20720,106 @@ var lw = ["title"], ew = ["for"], tw = {
20720
20720
  labelActiveColor: l.labelActiveColor
20721
20721
  }), d = e, n = k();
20722
20722
  Bl(() => {
20723
- const X = l.modelValue !== void 0 ? Number.parseFloat(`${l.modelValue}`) : void 0, M = l.defaultValue !== void 0 ? Number.parseFloat(`${l.defaultValue}`) : void 0;
20724
- n.value = X ?? M;
20723
+ const M = l.modelValue !== void 0 ? Number.parseFloat(`${l.modelValue}`) : void 0, I = l.defaultValue !== void 0 ? Number.parseFloat(`${l.defaultValue}`) : void 0;
20724
+ n.value = M ?? I;
20725
20725
  });
20726
20726
  const i = ["horizontal", "vertical"], c = /\.\d*0$/;
20727
- function s() {
20728
- return l.step.toString().split(".")[1]?.length || 0;
20727
+ function s(M) {
20728
+ if (!M) return !1;
20729
+ const I = M.replace(/[^\d.-]/g, "");
20730
+ return [
20731
+ "-",
20732
+ ".",
20733
+ "-."
20734
+ ].includes(I) || I.endsWith(".") || c.test(I);
20729
20735
  }
20730
- function o(...X) {
20731
- const M = X.map((x) => x || 0);
20732
- return Number.parseFloat(M.reduce((x, z) => x + z, 0).toFixed(s()));
20736
+ function o() {
20737
+ return l.step.toString().split(".")[1]?.length || 0;
20733
20738
  }
20734
- function m(...X) {
20735
- const M = X.map((z) => z || 0), x = M.shift() || 0;
20736
- return Number.parseFloat(M.reduce((z, V) => z - V, x).toFixed(s()));
20739
+ function m(...M) {
20740
+ const I = M.map((z) => z || 0);
20741
+ return Number.parseFloat(I.reduce((z, V) => z + V, 0).toFixed(o()));
20737
20742
  }
20738
- const u = T(() => l.max === void 0 || o(n.value, l.step) <= l.max), Z = T(() => l.min === void 0 || m(n.value, l.step) >= l.min);
20739
- function b() {
20740
- u.value && (n.value = o(n.value ?? 0, l.step), d("update:modelValue", n.value));
20743
+ function u(...M) {
20744
+ const I = M.map((V) => V || 0), z = I.shift() || 0;
20745
+ return Number.parseFloat(I.reduce((V, S) => V - S, z).toFixed(o()));
20741
20746
  }
20747
+ const Z = T(() => l.max === void 0 || m(n.value, l.step) <= l.max), b = T(() => l.min === void 0 || u(n.value, l.step) >= l.min);
20742
20748
  function r() {
20743
- Z.value && (n.value = m(n.value ?? 0, l.step), d("update:modelValue", n.value));
20749
+ Z.value && (n.value = m(n.value ?? 0, l.step), G.value = W(n.value), d("update:modelValue", n.value));
20750
+ }
20751
+ function h() {
20752
+ b.value && (n.value = u(n.value ?? 0, l.step), G.value = W(n.value), d("update:modelValue", n.value));
20744
20753
  }
20745
- const h = T(() => new Intl.NumberFormat("en-US", {
20754
+ const p = T(() => new Intl.NumberFormat("en-US", {
20746
20755
  minimumFractionDigits: 0,
20747
20756
  maximumFractionDigits: 20,
20748
20757
  useGrouping: l.useGrouping
20749
20758
  }));
20750
- function p(X) {
20751
- if (Number.isNaN(X)) return "";
20752
- const [M, x] = h.value.format(X).split("."), z = M.replace(/,/g, "").length, V = l.padZero && l.padZero > z ? "0".repeat(l.padZero - z) : "";
20753
- return x ? `${V}${M}.${x}` : `${V}${M}`;
20759
+ function W(M) {
20760
+ if (Number.isNaN(M)) return "";
20761
+ const [I, z] = p.value.format(M).split("."), V = I.replace(/,/g, "").length, S = l.padZero && l.padZero > V ? "0".repeat(l.padZero - V) : "";
20762
+ return z ? `${S}${I}.${z}` : `${S}${I}`;
20754
20763
  }
20755
- const W = k("");
20756
- function G() {
20757
- const X = W.value.replace(/[^\d.-]/g, "");
20758
- if ([
20759
- "",
20764
+ const G = k("");
20765
+ function Y() {
20766
+ const M = G.value.replace(/[^\d.-]/g, "");
20767
+ if (M === "" || [
20760
20768
  "-",
20761
20769
  ".",
20762
20770
  "-."
20763
- ].includes(X) || X.endsWith(".") || c.test(X)) {
20764
- d("update:modelValue", X === "-" ? "-" : X);
20771
+ ].includes(M) || M.endsWith(".") || c.test(M)) {
20772
+ M === "" && (n.value = void 0, d("update:modelValue", void 0));
20765
20773
  return;
20766
20774
  }
20767
- n.value = Number.parseFloat(X), W.value = p(n.value), d("update:modelValue", n.value);
20775
+ n.value = Number.parseFloat(M), G.value = W(n.value), d("update:modelValue", n.value);
20768
20776
  }
20769
20777
  xl(() => n.value, () => {
20770
20778
  $l(() => {
20771
- W.value.endsWith(".") || c.test(W.value) || (W.value = n.value !== void 0 ? p(n.value) : "");
20779
+ s(G.value) || (G.value = n.value !== void 0 ? W(n.value) : "");
20772
20780
  });
20773
- }), xl(() => l.modelValue, (X) => {
20774
- if (X == null || X === "") {
20775
- n.value = void 0, W.value = "";
20781
+ }), xl(() => l.modelValue, (M) => {
20782
+ if (s(G.value)) {
20783
+ if (typeof M == "string" && s(M)) {
20784
+ G.value = M;
20785
+ return;
20786
+ }
20787
+ if (typeof M == "number") {
20788
+ const z = Number.parseFloat(G.value);
20789
+ if (!Number.isNaN(z) && z === M) return;
20790
+ n.value = M, G.value = W(M);
20791
+ return;
20792
+ }
20793
+ if (M == null || M === "") {
20794
+ if (n.value === void 0) return;
20795
+ n.value = void 0, G.value = "";
20796
+ return;
20797
+ }
20798
+ return;
20799
+ }
20800
+ if (M == null || M === "") {
20801
+ n.value = void 0, G.value = "";
20776
20802
  return;
20777
20803
  }
20778
- if (typeof X == "string" && (X === "-" || X.endsWith("."))) {
20779
- W.value = X;
20804
+ if (typeof M == "string" && s(M)) {
20805
+ G.value = M;
20780
20806
  return;
20781
20807
  }
20782
- const M = Number.parseFloat(`${X}`);
20783
- if (Number.isNaN(M)) {
20784
- n.value = void 0, W.value = "";
20808
+ const I = Number.parseFloat(`${M}`);
20809
+ if (Number.isNaN(I)) {
20810
+ n.value = void 0, G.value = "";
20785
20811
  return;
20786
20812
  }
20787
- M !== n.value && (n.value = M);
20813
+ I !== n.value && (n.value = I);
20788
20814
  }, { immediate: !0 });
20789
- const Y = T(() => W.value.length > 0);
20790
- return (X, M) => {
20791
- const x = lt("pattern");
20815
+ const X = T(() => G.value.length > 0);
20816
+ return (M, I) => {
20817
+ const z = lt("pattern");
20792
20818
  return L(), y("div", {
20793
20819
  class: ul(["bagel-input num-input", [N(t), {
20794
20820
  underlined: l.underlined,
20795
20821
  "has-error": !!l.error,
20796
- "has-value": Y.value
20822
+ "has-value": X.value
20797
20823
  }]]),
20798
20824
  style: Xl(N(a))
20799
20825
  }, [g("div", null, [
@@ -20808,7 +20834,7 @@ var lw = ["title"], ew = ["for"], tw = {
20808
20834
  icon: "add",
20809
20835
  class: ul(["radius", { "bgl-big-ctrl-num-btn": l.layout === "vertical" }]),
20810
20836
  tabindex: "-1",
20811
- onClick: b
20837
+ onClick: r
20812
20838
  }, null, 8, ["class"])) : C("", !0),
20813
20839
  g("div", xw, [
20814
20840
  l.iconStart ? (L(), Zl(N(fl), {
@@ -20819,7 +20845,7 @@ var lw = ["title"], ew = ["for"], tw = {
20819
20845
  }, null, 8, ["icon"])) : C("", !0),
20820
20846
  El(g("input", {
20821
20847
  id: l.id,
20822
- "onUpdate:modelValue": M[0] || (M[0] = (z) => W.value = z),
20848
+ "onUpdate:modelValue": I[0] || (I[0] = (V) => G.value = V),
20823
20849
  type: "text",
20824
20850
  class: ul({
20825
20851
  "txt-center": l.center,
@@ -20834,15 +20860,15 @@ var lw = ["title"], ew = ["for"], tw = {
20834
20860
  pattern: l.useGrouping ? "^-?\\d{1,3}(,\\d{3})*(.\\d+)?$" : "^-?\\d*.?d*$",
20835
20861
  autocorrect: "off",
20836
20862
  spellcheck: "false",
20837
- onInput: G,
20838
- onKeydown: [ke(le(b, ["prevent"]), ["up"]), ke(le(r, ["prevent"]), ["down"])]
20863
+ onInput: Y,
20864
+ onKeydown: [ke(le(r, ["prevent"]), ["up"]), ke(le(h, ["prevent"]), ["down"])]
20839
20865
  }, null, 42, zw), [[
20840
20866
  Wn,
20841
- W.value,
20867
+ G.value,
20842
20868
  void 0,
20843
20869
  { trim: !0 }
20844
20870
  ], [
20845
- x,
20871
+ z,
20846
20872
  void 0,
20847
20873
  void 0,
20848
20874
  { number: !0 }
@@ -20857,17 +20883,17 @@ var lw = ["title"], ew = ["for"], tw = {
20857
20883
  flat: "",
20858
20884
  thin: "",
20859
20885
  class: "bgl-ctrl-num-btn ctrl-add top-bgl-ctrl-num-btn",
20860
- disabled: !u.value,
20886
+ disabled: !Z.value,
20861
20887
  tabindex: "-1",
20862
- onClick: b
20888
+ onClick: r
20863
20889
  }, null, 8, ["disabled"]), il(N(Nl), {
20864
20890
  icon: "remove",
20865
20891
  flat: "",
20866
20892
  thin: "",
20867
20893
  class: "bgl-ctrl-num-btn ctrl-remove",
20868
- disabled: !Z.value,
20894
+ disabled: !b.value,
20869
20895
  tabindex: "-1",
20870
- onClick: r
20896
+ onClick: h
20871
20897
  }, null, 8, ["disabled"])])) : C("", !0)
20872
20898
  ]),
20873
20899
  l.layout && i.includes(l.layout) ? (L(), Zl(N(Nl), {
@@ -20876,14 +20902,14 @@ var lw = ["title"], ew = ["for"], tw = {
20876
20902
  icon: "remove",
20877
20903
  class: ul(["radius", [{ "bgl-big-ctrl-num-btn": l.layout === "vertical" }]]),
20878
20904
  tabindex: "-1",
20879
- onClick: r
20905
+ onClick: h
20880
20906
  }, null, 8, ["class"])) : C("", !0)
20881
20907
  ], 2),
20882
20908
  l.helptext ? (L(), y("p", gw, cl(l.helptext), 1)) : C("", !0)
20883
20909
  ]), l.error ? (L(), y("div", Rw, cl(l.error), 1)) : C("", !0)], 6);
20884
20910
  };
20885
20911
  }
20886
- }), ga = /* @__PURE__ */ Jl(Sw, [["__scopeId", "data-v-2f0aab5e"]]), vw = ["value", "maxlength"], Fw = {
20912
+ }), ga = /* @__PURE__ */ Jl(Sw, [["__scopeId", "data-v-74fe68ba"]]), vw = ["value", "maxlength"], Fw = {
20887
20913
  key: 0,
20888
20914
  class: "otp-error-message txt-center txt10 pt-05"
20889
20915
  }, jw = /* @__PURE__ */ Il({
@@ -21143,9 +21169,9 @@ var ph = /^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/, Cw = /^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xd
21143
21169
  const p = s * 32, W = Math.min(32, a) + p;
21144
21170
  for (let G = p; G < W; G++) za[l.charCodeAt(G)] |= 1 << G;
21145
21171
  for (let G = 0; G < t; G++) {
21146
- const Y = za[e.charCodeAt(G)], X = n[G / 32 | 0] >>> G & 1, M = d[G / 32 | 0] >>> G & 1, x = Y | r, z = ((Y | M) & h) + h ^ h | Y | M;
21172
+ const Y = za[e.charCodeAt(G)], X = n[G / 32 | 0] >>> G & 1, M = d[G / 32 | 0] >>> G & 1, I = Y | r, z = ((Y | M) & h) + h ^ h | Y | M;
21147
21173
  let V = r | ~(z | h), S = h & z;
21148
- V >>> 31 ^ X && (n[G / 32 | 0] ^= 1 << G), S >>> 31 ^ M && (d[G / 32 | 0] ^= 1 << G), V = V << 1 | X, S = S << 1 | M, h = S | ~(x | V), r = V & x;
21174
+ V >>> 31 ^ X && (n[G / 32 | 0] ^= 1 << G), S >>> 31 ^ M && (d[G / 32 | 0] ^= 1 << G), V = V << 1 | X, S = S << 1 | M, h = S | ~(I | V), r = V & I;
21149
21175
  }
21150
21176
  for (let G = p; G < W; G++) za[l.charCodeAt(G)] = 0;
21151
21177
  }
@@ -22390,16 +22416,16 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22390
22416
  ], ["update:modelValue"]),
22391
22417
  setup(l, { emit: e }) {
22392
22418
  const t = l, a = e, { shellClass: d, shellStyle: n } = Pe(t);
22393
- function i(x, z) {
22394
- const V = s.value === x.value;
22419
+ function i(I, z) {
22420
+ const V = s.value === I.value;
22395
22421
  return m.value.some((S) => S.value === s.value) ? V ? 0 : -1 : z === m.value.findIndex((S) => !(t.disabled || S.disabled)) ? 0 : -1;
22396
22422
  }
22397
- const c = T(() => t.groupName || t.id || Math.random().toString(36).substring(2, 15)), s = Ce(l, "modelValue"), o = k([]), m = T(() => (Array.isArray(t.options) ? t.options : o.value).map((x) => eR(x))), u = k(null), Z = k("90px");
22423
+ const c = T(() => t.groupName || t.id || Math.random().toString(36).substring(2, 15)), s = Ce(l, "modelValue"), o = k([]), m = T(() => (Array.isArray(t.options) ? t.options : o.value).map((I) => eR(I))), u = k(null), Z = k("90px");
22398
22424
  let b;
22399
22425
  function r() {
22400
- const x = u.value, z = m.value.length;
22401
- if (!t.inline || !x || !z) return;
22402
- const V = Number.parseFloat(getComputedStyle(x).columnGap) || 0, S = Math.max(1, Math.min(z, Math.floor((x.clientWidth + V) / (100 + V)))), I = Math.ceil(z / S), U = Math.ceil(z / I);
22426
+ const I = u.value, z = m.value.length;
22427
+ if (!t.inline || !I || !z) return;
22428
+ const V = Number.parseFloat(getComputedStyle(I).columnGap) || 0, S = Math.max(1, Math.min(z, Math.floor((I.clientWidth + V) / (100 + V)))), x = Math.ceil(z / S), U = Math.ceil(z / x);
22403
22429
  Z.value = `calc((100% - ${V * (U - 1)}px) / ${U})`;
22404
22430
  }
22405
22431
  Bl(() => {
@@ -22444,7 +22470,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22444
22470
  function M() {
22445
22471
  a("change", s.value);
22446
22472
  }
22447
- return (x, z) => (L(), y("div", {
22473
+ return (I, z) => (L(), y("div", {
22448
22474
  class: ul(W.value),
22449
22475
  style: Xl(G.value),
22450
22476
  role: "radiogroup",
@@ -22481,7 +22507,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22481
22507
  }, [
22482
22508
  El(g("input", {
22483
22509
  id: V.id || `${c.value}-${S}`,
22484
- "onUpdate:modelValue": z[0] || (z[0] = (I) => s.value = I),
22510
+ "onUpdate:modelValue": z[0] || (z[0] = (x) => s.value = x),
22485
22511
  disabled: l.disabled || V.disabled,
22486
22512
  tabindex: i(V, S),
22487
22513
  class: ul(["radio-input-list", {
@@ -22523,7 +22549,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22523
22549
  class: "m-0 m_txt-14 line-height-14",
22524
22550
  innerHTML: N(QU)(V.label)
22525
22551
  }, null, 8, oR)) : C("", !0), V.subLabel ? (L(), y("p", mR, cl(V.subLabel), 1)) : C("", !0)])) : C("", !0),
22526
- Ll(x.$slots, "radioItem", ie({ ref_for: !0 }, V), void 0, !0)
22552
+ Ll(I.$slots, "radioItem", ie({ ref_for: !0 }, V), void 0, !0)
22527
22553
  ], 6),
22528
22554
  l.deletable ? (L(), Zl(N(Nl), {
22529
22555
  key: 0,
@@ -22531,7 +22557,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22531
22557
  flat: "",
22532
22558
  thin: "",
22533
22559
  icon: "delete",
22534
- onClick: (I) => x.$emit("delete", V)
22560
+ onClick: (x) => I.$emit("delete", V)
22535
22561
  }, null, 8, ["onClick"])) : C("", !0)
22536
22562
  ], 14, nR))), 128))], 6)], 14, tR));
22537
22563
  }
@@ -22592,8 +22618,8 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22592
22618
  xl(() => t.modelValue, (M) => {
22593
22619
  Array.isArray(M) && c ? (u.value = M[0] ?? d, Z.value = M[1] ?? n) : Array.isArray(M) || (u.value = M ?? d, Z.value = n);
22594
22620
  }, { immediate: !0 });
22595
- function W(M, x) {
22596
- x ? u.value = M : Z.value = M, a("update:modelValue", c ? [b.value, r.value] : b.value);
22621
+ function W(M, I) {
22622
+ I ? u.value = M : Z.value = M, a("update:modelValue", c ? [b.value, r.value] : b.value);
22597
22623
  }
22598
22624
  const G = T(() => c ? {
22599
22625
  insetInlineStart: `${h.value}%`,
@@ -22602,7 +22628,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22602
22628
  insetInlineStart: "0",
22603
22629
  width: `${h.value}%`
22604
22630
  }), Y = T(() => s(b.value)), X = T(() => s(r.value));
22605
- return (M, x) => (L(), y("div", {
22631
+ return (M, I) => (L(), y("div", {
22606
22632
  ref_key: "rootEl",
22607
22633
  ref: o,
22608
22634
  dir: l.rtl === void 0 ? void 0 : l.rtl ? "rtl" : "ltr",
@@ -22628,7 +22654,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22628
22654
  required: l.required,
22629
22655
  disabled: l.disabled,
22630
22656
  "aria-label": N(c) ? "Minimum value" : "Value",
22631
- onInput: x[0] || (x[0] = (z) => W(+z.target.value, !0))
22657
+ onInput: I[0] || (I[0] = (z) => W(+z.target.value, !0))
22632
22658
  }, null, 40, WR),
22633
22659
  N(c) ? (L(), y("input", {
22634
22660
  key: 0,
@@ -22641,7 +22667,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22641
22667
  required: l.required,
22642
22668
  disabled: l.disabled,
22643
22669
  "aria-label": "Maximum value",
22644
- onInput: x[1] || (x[1] = (z) => W(+z.target.value, !1))
22670
+ onInput: I[1] || (I[1] = (z) => W(+z.target.value, !1))
22645
22671
  }, null, 40, GR)) : C("", !0),
22646
22672
  g("div", {
22647
22673
  class: "track absolute pointer-events-none overflow-hidden round",
@@ -22880,7 +22906,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22880
22906
  "selectinput-btn--thin": t.thin,
22881
22907
  outline: t.outline,
22882
22908
  border: t.border
22883
- })), M = T(() => r.value === 0 ? Y.value : r.value > 4 ? `${Z.value.slice(0, 4).map((F) => en(F)).join(", ")}... +${r.value - 4}` : Z.value.map((F) => en(F)).join(", ")), x = T(() => t.searchPlaceholder ?? M.value ?? d("select.search")), { results: z, isLoading: V } = LP({
22909
+ })), M = T(() => r.value === 0 ? Y.value : r.value > 4 ? `${Z.value.slice(0, 4).map((F) => en(F)).join(", ")}... +${r.value - 4}` : Z.value.map((F) => en(F)).join(", ")), I = T(() => t.searchPlaceholder ?? M.value ?? d("select.search")), { results: z, isLoading: V } = LP({
22884
22910
  searchTerm: () => h.value,
22885
22911
  serverSearch: c(t.options) ? t.options : void 0,
22886
22912
  items: () => Array.isArray(t.options) ? t.options : [],
@@ -22890,7 +22916,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
22890
22916
  "value"
22891
22917
  ],
22892
22918
  minChars: c(t.options) ? 0 : 2
22893
- }), S = k(-1), I = T(() => S.value >= 0 ? `${m}-option-${S.value}` : void 0), U = (F, _) => {
22919
+ }), S = k(-1), x = T(() => S.value >= 0 ? `${m}-option-${S.value}` : void 0), U = (F, _) => {
22894
22920
  if (S.value >= 0) return S.value === _ ? 0 : -1;
22895
22921
  const B = z.value.findIndex((J) => Q(J));
22896
22922
  return (B >= 0 ? B : 0) === _ ? 0 : -1;
@@ -23013,7 +23039,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
23013
23039
  modelValue: h.value,
23014
23040
  "onUpdate:modelValue": _[0] || (_[0] = (B) => h.value = B),
23015
23041
  class: "mb-0",
23016
- placeholder: x.value,
23042
+ placeholder: I.value,
23017
23043
  icon: "search",
23018
23044
  thin: l.thin,
23019
23045
  onInput: _[1] || (_[1] = (B) => W.value = !1),
@@ -23022,7 +23048,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
23022
23048
  "aria-label": N(Ol)(l.label) || Y.value,
23023
23049
  "aria-expanded": "true",
23024
23050
  "aria-controls": u,
23025
- "aria-activedescendant": I.value,
23051
+ "aria-activedescendant": x.value,
23026
23052
  onKeydown: [_[2] || (_[2] = ke(le((B) => H("down"), ["prevent"]), ["down"])), _[3] || (_[3] = ke(le((B) => H("up"), ["prevent"]), ["up"]))]
23027
23053
  }, null, 8, [
23028
23054
  "modelValue",
@@ -23042,7 +23068,7 @@ var tR = ["aria-labelledby", "aria-label"], aR = ["id"], dR = { key: 0 }, nR = [
23042
23068
  "aria-label": N(Ol)(l.label) || Y.value,
23043
23069
  "aria-expanded": G.value,
23044
23070
  "aria-controls": u,
23045
- "aria-activedescendant": I.value,
23071
+ "aria-activedescendant": x.value,
23046
23072
  onKeydown: [_[6] || (_[6] = ke(le((B) => H("down"), ["prevent"]), ["down"])), _[7] || (_[7] = ke(le((B) => H("up"), ["prevent"]), ["up"]))]
23047
23073
  }, [
23048
23074
  l.icon ? (L(), Zl(N(fl), {
@@ -24680,11 +24706,11 @@ var Vb = 64 * 1024, { isFunction: lc } = hl, C4 = (l) => encodeURIComponent(l).r
24680
24706
  return Y ?? h(G);
24681
24707
  };
24682
24708
  return async (W) => {
24683
- let { url: G, method: Y, data: X, signal: M, cancelToken: x, timeout: z, onDownloadProgress: V, onUploadProgress: S, responseType: I, headers: U, withCredentials: f = "same-origin", fetchOptions: H, maxContentLength: Q, maxBodyLength: el } = Bh(W);
24709
+ let { url: G, method: Y, data: X, signal: M, cancelToken: I, timeout: z, onDownloadProgress: V, onUploadProgress: S, responseType: x, headers: U, withCredentials: f = "same-origin", fetchOptions: H, maxContentLength: Q, maxBodyLength: el } = Bh(W);
24684
24710
  const dl = hl.isNumber(Q) && Q > -1, O = hl.isNumber(el) && el > -1, ll = (w) => hl.hasOwnProp(W, w) ? W[w] : void 0;
24685
24711
  let al = d || fetch;
24686
- I = I ? (I + "").toLowerCase() : "text";
24687
- let F = F4([M, x && x.toAbortSignal()], z), _ = null;
24712
+ x = x ? (x + "").toLowerCase() : "text";
24713
+ let F = F4([M, I && I.toAbortSignal()], z), _ = null;
24688
24714
  const B = F && F.unsubscribe && (() => {
24689
24715
  F.unsubscribe();
24690
24716
  });
@@ -24741,7 +24767,7 @@ var Vb = 64 * 1024, { isFunction: lc } = hl, C4 = (l) => encodeURIComponent(l).r
24741
24767
  const tl = hl.toFiniteNumber(E.headers.get("content-length"));
24742
24768
  if (tl != null && tl > Q) throw new Pl("maxContentLength size of " + Q + " exceeded", Pl.ERR_BAD_RESPONSE, W, _);
24743
24769
  }
24744
- const Gl = b && (I === "stream" || I === "response");
24770
+ const Gl = b && (x === "stream" || x === "response");
24745
24771
  if (b && E.body && (V || dl || Gl && B)) {
24746
24772
  const tl = {};
24747
24773
  [
@@ -24762,8 +24788,8 @@ var Vb = 64 * 1024, { isFunction: lc } = hl, C4 = (l) => encodeURIComponent(l).r
24762
24788
  Yl && Yl(), B && B();
24763
24789
  }), tl);
24764
24790
  }
24765
- I = I || "text";
24766
- let zl = await r[hl.findKey(r, I) || "text"](E, W);
24791
+ x = x || "text";
24792
+ let zl = await r[hl.findKey(r, x) || "text"](E, W);
24767
24793
  if (dl && !b && !Gl) {
24768
24794
  let tl;
24769
24795
  if (zl != null && (typeof zl.byteLength == "number" ? tl = zl.byteLength : typeof zl.size == "number" ? tl = zl.size : typeof zl == "string" && (tl = typeof a == "function" ? new a().encode(zl).byteLength : zl.length)), typeof tl == "number" && tl > Q) throw new Pl("maxContentLength size of " + Q + " exceeded", Pl.ERR_BAD_RESPONSE, W, _);
@@ -25461,16 +25487,16 @@ var q4 = ["data-field"], lv = { key: 0 }, ev = { key: 0 }, tv = ["name"], av = {
25461
25487
  namespace: t.id || "upload",
25462
25488
  upload: t.upload,
25463
25489
  onFileQueued: async () => {
25464
- await o(), x();
25490
+ await o(), I();
25465
25491
  },
25466
- onChange: x
25492
+ onChange: I
25467
25493
  });
25468
25494
  function b(V) {
25469
25495
  if (V != null) {
25470
25496
  if (typeof V == "string") return V || void 0;
25471
25497
  if (typeof V == "object") {
25472
- const S = V, I = S.path_key ?? S.pathKey ?? S.imageURL ?? S.url ?? S.src;
25473
- return typeof I == "string" && I || void 0;
25498
+ const S = V, x = S.path_key ?? S.pathKey ?? S.imageURL ?? S.url ?? S.src;
25499
+ return typeof x == "string" && x || void 0;
25474
25500
  }
25475
25501
  }
25476
25502
  }
@@ -25486,14 +25512,14 @@ var q4 = ["data-field"], lv = { key: 0 }, ev = { key: 0 }, tv = ["name"], av = {
25486
25512
  a("addFileStart"), m(V);
25487
25513
  }
25488
25514
  });
25489
- function x() {
25515
+ function I() {
25490
25516
  t.multiple ? a("update:modelValue", c.value) : a("update:modelValue", c.value[0] || void 0);
25491
25517
  }
25492
25518
  function z(V) {
25493
25519
  return !V || typeof V != "string" ? "file" : V.split("/").pop() || "file";
25494
25520
  }
25495
25521
  return (V, S) => {
25496
- const I = lt("tooltip"), U = lt("lightbox");
25522
+ const x = lt("tooltip"), U = lt("lightbox");
25497
25523
  return L(), y("div", {
25498
25524
  class: ul(["bagel-input", [N(r), {
25499
25525
  "has-error": !!l.error,
@@ -25538,13 +25564,13 @@ var q4 = ["data-field"], lv = { key: 0 }, ev = { key: 0 }, tv = ["name"], av = {
25538
25564
  thin: "",
25539
25565
  icon: "delete",
25540
25566
  onClick: (H) => N(s)(f)
25541
- }, null, 8, ["onClick"]), [[I, "Delete"]]),
25567
+ }, null, 8, ["onClick"]), [[x, "Delete"]]),
25542
25568
  El(il(N(Nl), {
25543
25569
  color: "gray",
25544
25570
  thin: "",
25545
25571
  icon: "autorenew",
25546
25572
  onClick: S[1] || (S[1] = (H) => N(u)())
25547
- }, null, 512), [[I, "Replace"]]),
25573
+ }, null, 512), [[x, "Replace"]]),
25548
25574
  il(N(Nl), {
25549
25575
  icon: "download",
25550
25576
  color: "gray",
@@ -25637,14 +25663,14 @@ var q4 = ["data-field"], lv = { key: 0 }, ev = { key: 0 }, tv = ["name"], av = {
25637
25663
  thin: "",
25638
25664
  icon: "delete",
25639
25665
  onClick: (H) => N(s)(f)
25640
- }, null, 8, ["onClick"]), [[I, "Delete"]]),
25666
+ }, null, 8, ["onClick"]), [[x, "Delete"]]),
25641
25667
  El(il(N(Nl), {
25642
25668
  color: "white",
25643
25669
  frame: "",
25644
25670
  thin: "",
25645
25671
  icon: "autorenew",
25646
25672
  onClick: S[2] || (S[2] = (H) => N(u)())
25647
- }, null, 512), [[I, "Replace"]]),
25673
+ }, null, 512), [[x, "Replace"]]),
25648
25674
  El(il(N(Nl), {
25649
25675
  color: "white",
25650
25676
  frame: "",
@@ -25653,7 +25679,7 @@ var q4 = ["data-field"], lv = { key: 0 }, ev = { key: 0 }, tv = ["name"], av = {
25653
25679
  icon: "download",
25654
25680
  href: N(At)(f),
25655
25681
  download: z(f)
25656
- }, null, 8, ["href", "download"]), [[I, "Download"]])
25682
+ }, null, 8, ["href", "download"]), [[x, "Download"]])
25657
25683
  ], 2), Y(f) ? (L(), y("div", hv, [El(il(N(Kc), {
25658
25684
  class: "single-preview",
25659
25685
  pathKey: f,
@@ -26783,11 +26809,11 @@ function Hv(l) {
26783
26809
  if (!h) return;
26784
26810
  const { range: p, selection: W } = h, G = En(p.commonAncestorContainer);
26785
26811
  if (!G) return;
26786
- const { startContainer: Y } = p, { endContainer: X } = p, { startOffset: M } = p, { endOffset: x } = p, z = p.collapsed, V = G.tagName.toLowerCase() === b.toLowerCase(), S = V ? "p" : b;
26812
+ const { startContainer: Y } = p, { endContainer: X } = p, { startOffset: M } = p, { endOffset: I } = p, z = p.collapsed, V = G.tagName.toLowerCase() === b.toLowerCase(), S = V ? "p" : b;
26787
26813
  try {
26788
- const I = r.doc.createElement(S);
26789
- for (; G.firstChild; ) I.appendChild(G.firstChild);
26790
- G.parentNode?.replaceChild(I, G);
26814
+ const x = r.doc.createElement(S);
26815
+ for (; G.firstChild; ) x.appendChild(G.firstChild);
26816
+ G.parentNode?.replaceChild(x, G);
26791
26817
  try {
26792
26818
  const U = r.doc.createRange(), f = (el, dl, O) => {
26793
26819
  if (el === dl) return O;
@@ -26804,7 +26830,7 @@ function Hv(l) {
26804
26830
  return B;
26805
26831
  }
26806
26832
  return O.firstChild;
26807
- }, H = f(Y, G, I), Q = f(X, G, I);
26833
+ }, H = f(Y, G, x), Q = f(X, G, x);
26808
26834
  if (H && Q) {
26809
26835
  if (H.nodeType === Node.TEXT_NODE) {
26810
26836
  const el = Math.min(M, H.textContent?.length || 0);
@@ -26812,19 +26838,19 @@ function Hv(l) {
26812
26838
  } else U.setStart(H, 0);
26813
26839
  if (z) U.collapse(!0);
26814
26840
  else if (Q.nodeType === Node.TEXT_NODE) {
26815
- const el = Math.min(x, Q.textContent?.length || 0);
26841
+ const el = Math.min(I, Q.textContent?.length || 0);
26816
26842
  U.setEnd(Q, el);
26817
26843
  } else U.setEnd(Q, 0);
26818
26844
  W.removeAllRanges(), W.addRange(U);
26819
26845
  } else
26820
- U.selectNodeContents(I), z && U.collapse(!0), W.removeAllRanges(), W.addRange(U);
26846
+ U.selectNodeContents(x), z && U.collapse(!0), W.removeAllRanges(), W.addRange(U);
26821
26847
  } catch {
26822
26848
  const f = r.doc.createRange();
26823
- f.selectNodeContents(I), f.collapse(!0), W.removeAllRanges(), W.addRange(f);
26849
+ f.selectNodeContents(x), f.collapse(!0), W.removeAllRanges(), W.addRange(f);
26824
26850
  }
26825
- if (!V && !I.nextElementSibling) {
26851
+ if (!V && !x.nextElementSibling) {
26826
26852
  const U = r.doc.createElement("p");
26827
- U.dir = I.dir || r.doc.body.dir, I.parentNode?.insertBefore(U, I.nextSibling);
26853
+ U.dir = x.dir || r.doc.body.dir, x.parentNode?.insertBefore(U, x.nextSibling);
26828
26854
  }
26829
26855
  } catch {
26830
26856
  }
@@ -26881,8 +26907,8 @@ function Hv(l) {
26881
26907
  } catch {
26882
26908
  const M = G.querySelector("li");
26883
26909
  if (M) {
26884
- const x = Z.doc.createRange();
26885
- x.selectNodeContents(M), x.collapse(!0), b.selection.removeAllRanges(), b.selection.addRange(x);
26910
+ const I = Z.doc.createRange();
26911
+ I.selectNodeContents(M), I.collapse(!0), b.selection.removeAllRanges(), b.selection.addRange(I);
26886
26912
  }
26887
26913
  }
26888
26914
  return;
@@ -26918,10 +26944,10 @@ function Hv(l) {
26918
26944
  const M = Z.doc.createRange();
26919
26945
  M.setStart(X, Y), M.collapse(!0), b.selection.removeAllRanges(), b.selection.addRange(M);
26920
26946
  } catch {
26921
- const x = G.querySelector("li");
26922
- if (x) {
26947
+ const I = G.querySelector("li");
26948
+ if (I) {
26923
26949
  const z = Z.doc.createRange();
26924
- z.selectNodeContents(x), z.collapse(!0), b.selection.removeAllRanges(), b.selection.addRange(z);
26950
+ z.selectNodeContents(I), z.collapse(!0), b.selection.removeAllRanges(), b.selection.addRange(z);
26925
26951
  }
26926
26952
  }
26927
26953
  return;
@@ -26991,15 +27017,15 @@ function Hv(l) {
26991
27017
  "small",
26992
27018
  "big"
26993
27019
  ].includes(X)) {
26994
- const x = p(Y.textContent || "");
26995
- return Z.doc.createTextNode(x);
27020
+ const I = p(Y.textContent || "");
27021
+ return Z.doc.createTextNode(I);
26996
27022
  }
26997
27023
  if (M.includes(X)) {
26998
- const x = Z.doc.createElement(X);
26999
- return X === "a" && Y.hasAttribute("href") ? (x.setAttribute("href", Y.getAttribute("href") || ""), Y.hasAttribute("target") && x.setAttribute("target", Y.getAttribute("target") || ""), Y.hasAttribute("rel") && x.setAttribute("rel", Y.getAttribute("rel") || "")) : X === "img" ? (Y.hasAttribute("src") && x.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("alt") && x.setAttribute("alt", Y.getAttribute("alt") || ""), Y.hasAttribute("width") && x.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && x.setAttribute("height", Y.getAttribute("height") || "")) : X === "iframe" ? (Y.hasAttribute("src") && x.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("width") && x.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && x.setAttribute("height", Y.getAttribute("height") || ""), Y.hasAttribute("frameborder") && x.setAttribute("frameborder", Y.getAttribute("frameborder") || ""), Y.hasAttribute("allowfullscreen") && x.setAttribute("allowfullscreen", Y.getAttribute("allowfullscreen") || "")) : (X === "video" || X === "audio") && (Y.hasAttribute("src") && x.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("controls") && x.setAttribute("controls", Y.getAttribute("controls") || ""), Y.hasAttribute("width") && x.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && x.setAttribute("height", Y.getAttribute("height") || "")), Array.from(Y.childNodes).forEach((z) => {
27024
+ const I = Z.doc.createElement(X);
27025
+ return X === "a" && Y.hasAttribute("href") ? (I.setAttribute("href", Y.getAttribute("href") || ""), Y.hasAttribute("target") && I.setAttribute("target", Y.getAttribute("target") || ""), Y.hasAttribute("rel") && I.setAttribute("rel", Y.getAttribute("rel") || "")) : X === "img" ? (Y.hasAttribute("src") && I.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("alt") && I.setAttribute("alt", Y.getAttribute("alt") || ""), Y.hasAttribute("width") && I.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && I.setAttribute("height", Y.getAttribute("height") || "")) : X === "iframe" ? (Y.hasAttribute("src") && I.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("width") && I.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && I.setAttribute("height", Y.getAttribute("height") || ""), Y.hasAttribute("frameborder") && I.setAttribute("frameborder", Y.getAttribute("frameborder") || ""), Y.hasAttribute("allowfullscreen") && I.setAttribute("allowfullscreen", Y.getAttribute("allowfullscreen") || "")) : (X === "video" || X === "audio") && (Y.hasAttribute("src") && I.setAttribute("src", Y.getAttribute("src") || ""), Y.hasAttribute("controls") && I.setAttribute("controls", Y.getAttribute("controls") || ""), Y.hasAttribute("width") && I.setAttribute("width", Y.getAttribute("width") || ""), Y.hasAttribute("height") && I.setAttribute("height", Y.getAttribute("height") || "")), Array.from(Y.childNodes).forEach((z) => {
27000
27026
  const V = W(z);
27001
- (V.textContent?.trim() || V.nodeType === Node.ELEMENT_NODE) && x.appendChild(V);
27002
- }), x;
27027
+ (V.textContent?.trim() || V.nodeType === Node.ELEMENT_NODE) && I.appendChild(V);
27028
+ }), I;
27003
27029
  }
27004
27030
  }
27005
27031
  return Z.doc.createTextNode("");
@@ -27020,8 +27046,8 @@ function Hv(l) {
27020
27046
  Y.appendChild(G);
27021
27047
  const X = Z.doc.createDocumentFragment();
27022
27048
  Array.from(Y.childNodes).forEach((M) => {
27023
- const x = W(M);
27024
- (x.textContent?.trim() || x.nodeType === Node.ELEMENT_NODE) && X.appendChild(x);
27049
+ const I = W(M);
27050
+ (I.textContent?.trim() || I.nodeType === Node.ELEMENT_NODE) && X.appendChild(I);
27025
27051
  }), r.deleteContents(), r.insertNode(X), r.collapse(!1), h.removeAllRanges(), h.addRange(r);
27026
27052
  }
27027
27053
  } catch {
@@ -27817,7 +27843,7 @@ var qv = { key: 0 }, lF = {
27817
27843
  const G = {
27818
27844
  execute: p.execute,
27819
27845
  setBlock: W
27820
- }, Y = k(0), X = T(() => (Y.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim() || "#000")), M = T(() => (Y.value, typeof document < "u" ? document.documentElement.classList.contains("bgl-dark-mode") : !1)), x = T(() => {
27846
+ }, Y = k(0), X = T(() => (Y.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim() || "#000")), M = T(() => (Y.value, typeof document < "u" ? document.documentElement.classList.contains("bgl-dark-mode") : !1)), I = T(() => {
27821
27847
  if (M.value) return a.textColor || "#1a1a1a";
27822
27848
  const D = X.value;
27823
27849
  return a.textColor || (D && D.length > 0 && D !== "#000" ? D : "inherit");
@@ -27850,7 +27876,7 @@ var qv = { key: 0 }, lF = {
27850
27876
  }), a.debug && typeof window < "u" && (window.forceRichTextUpdate = () => {
27851
27877
  Y.value++;
27852
27878
  }, window.debugRichText = Sl);
27853
- const S = T(() => !(a.hideToolbar || a.basic)), I = T(() => !a.hideInlineToolbar), U = T(() => a.toolbarConfig), f = T(() => {
27879
+ const S = T(() => !(a.hideToolbar || a.basic)), x = T(() => !a.hideInlineToolbar), U = T(() => a.toolbarConfig), f = T(() => {
27854
27880
  const D = [...a.hide || []];
27855
27881
  return a.simple && [
27856
27882
  "h1",
@@ -28008,7 +28034,7 @@ var qv = { key: 0 }, lF = {
28008
28034
  }));
28009
28035
  }
28010
28036
  function Kl() {
28011
- if (!I.value) return;
28037
+ if (!x.value) return;
28012
28038
  const { doc: D } = b.state;
28013
28039
  if (!D) return;
28014
28040
  const R = D.getSelection();
@@ -29023,7 +29049,7 @@ var qv = { key: 0 }, lF = {
29023
29049
  min-height: 200px;
29024
29050
  font-family: ${z.value};
29025
29051
  line-height: 1.5;
29026
- color: ${x.value};
29052
+ color: ${I.value};
29027
29053
  background: transparent;
29028
29054
  max-width: 860px;
29029
29055
  margin: 0 auto;
@@ -29313,7 +29339,7 @@ var qv = { key: 0 }, lF = {
29313
29339
  --richtext-font-size: ${A};
29314
29340
  }
29315
29341
  body {
29316
- color: ${x.value} !important;
29342
+ color: ${I.value} !important;
29317
29343
  font-size: ${A} !important;
29318
29344
  font-family: ${z.value} !important;
29319
29345
  }
@@ -29329,7 +29355,7 @@ var qv = { key: 0 }, lF = {
29329
29355
  }
29330
29356
  xl([
29331
29357
  X,
29332
- x,
29358
+ I,
29333
29359
  z,
29334
29360
  m
29335
29361
  ], () => {
@@ -30707,18 +30733,18 @@ var RF = {
30707
30733
  if (t.format === "image/svg+xml")
30708
30734
  m = new File([S], "signature.svg", { type: "image/svg+xml" }), i.value = m;
30709
30735
  else try {
30710
- const I = S.split(",")[1];
30711
- if (!I) throw new Error("Invalid data URL format");
30712
- const U = atob(I), f = new Uint8Array(Array.from(U, (dl) => dl.charCodeAt(0))), H = t.format || "image/png", Q = new Blob([f], { type: H }), el = H.split("/")[1];
30736
+ const x = S.split(",")[1];
30737
+ if (!x) throw new Error("Invalid data URL format");
30738
+ const U = atob(x), f = new Uint8Array(Array.from(U, (dl) => dl.charCodeAt(0))), H = t.format || "image/png", Q = new Blob([f], { type: H }), el = H.split("/")[1];
30713
30739
  m = new File([Q], `signature.${el}`, { type: H }), i.value = m;
30714
30740
  } catch {
30715
30741
  }
30716
30742
  }
30717
30743
  function r(S) {
30718
- const I = c.value?.getBoundingClientRect();
30744
+ const x = c.value?.getBoundingClientRect();
30719
30745
  return s.value?.fromDataURL(S, {
30720
- height: I?.height,
30721
- width: I?.width,
30746
+ height: x?.height,
30747
+ width: x?.width,
30722
30748
  ratio: e5(),
30723
30749
  xOffset: 0,
30724
30750
  yOffset: 0
@@ -30746,7 +30772,7 @@ var RF = {
30746
30772
  function Y(S) {
30747
30773
  if (Object.prototype.toString.call(S) !== "[object Object]") throw new Error(`Expected Object, got ${typeof S}.`);
30748
30774
  {
30749
- const I = {
30775
+ const x = {
30750
30776
  text: S.text || "",
30751
30777
  x: S.x || 20,
30752
30778
  y: S.y || 20,
@@ -30754,7 +30780,7 @@ var RF = {
30754
30780
  sy: S.sy || 40
30755
30781
  }, U = c.value?.getContext("2d");
30756
30782
  if (!U) return;
30757
- U.font = S.font || "20px sans-serif", U.fillStyle = S.fillStyle || "#333", U.strokeStyle = S.strokeStyle || "#333", S.style === "all" ? (U.fillText(I.text, I.x, I.y), U.strokeText(I.text, I.sx, I.sy)) : S.style === "stroke" ? U.strokeText(I.text, I.sx, I.sy) : U.fillText(I.text, I.x, I.y);
30783
+ U.font = S.font || "20px sans-serif", U.fillStyle = S.fillStyle || "#333", U.strokeStyle = S.strokeStyle || "#333", S.style === "all" ? (U.fillText(x.text, x.x, x.y), U.strokeText(x.text, x.sx, x.sy)) : S.style === "stroke" ? U.strokeText(x.text, x.sx, x.sy) : U.fillText(x.text, x.x, x.y);
30758
30784
  }
30759
30785
  }
30760
30786
  function X() {
@@ -30762,12 +30788,12 @@ var RF = {
30762
30788
  }
30763
30789
  function M(S) {
30764
30790
  if (!S) return;
30765
- const I = new FileReader();
30791
+ const x = new FileReader();
30766
30792
  return new Promise((U) => {
30767
- I.onload = (f) => {
30793
+ x.onload = (f) => {
30768
30794
  const H = String(f.target?.result);
30769
30795
  r(H), o.value = !1, n.value = H, U(!0);
30770
- }, I.readAsDataURL(S);
30796
+ }, x.readAsDataURL(S);
30771
30797
  });
30772
30798
  }
30773
30799
  xl(i, (S) => {
@@ -30777,11 +30803,11 @@ var RF = {
30777
30803
  }
30778
30804
  M(S);
30779
30805
  });
30780
- function x() {
30781
- const S = c.value, I = s.value;
30782
- if (!S || !I) return;
30783
- const U = S.width, f = S.height, H = I.isEmpty(), Q = H ? [] : I.toData(), el = !H && Q.length === 0 ? Z() : void 0;
30784
- gF(S) && (S.width === U && S.height === f || (I.clear(), t.clearOnResize ? (o.value = !0, n.value = void 0) : Q.length > 0 ? (I.fromData(Q), o.value = !1) : el && (r(el), o.value = !1), t.waterMark && Y(t.waterMark)));
30806
+ function I() {
30807
+ const S = c.value, x = s.value;
30808
+ if (!S || !x) return;
30809
+ const U = S.width, f = S.height, H = x.isEmpty(), Q = H ? [] : x.toData(), el = !H && Q.length === 0 ? Z() : void 0;
30810
+ gF(S) && (S.width === U && S.height === f || (x.clear(), t.clearOnResize ? (o.value = !0, n.value = void 0) : Q.length > 0 ? (x.fromData(Q), o.value = !1) : el && (r(el), o.value = !1), t.waterMark && Y(t.waterMark)));
30785
30811
  }
30786
30812
  const z = T(() => ({
30787
30813
  ...t.backgroundColor ? { background: t.backgroundColor } : {},
@@ -30792,22 +30818,22 @@ var RF = {
30792
30818
  }
30793
30819
  }));
30794
30820
  async function V() {
30795
- s.value = new wF(c.value, G.value), t.disabled && s.value.off(), o.value = s.value.isEmpty(), i.value && M(i.value), await $l(), requestAnimationFrame(() => requestAnimationFrame(x));
30821
+ s.value = new wF(c.value, G.value), t.disabled && s.value.off(), o.value = s.value.isEmpty(), i.value && M(i.value), await $l(), requestAnimationFrame(() => requestAnimationFrame(I));
30796
30822
  }
30797
30823
  return Bl(() => {
30798
30824
  V();
30799
- }), F1(() => c.value, x), sn(() => s.value, "endStroke", X), e({
30825
+ }), F1(() => c.value, I), sn(() => s.value, "endStroke", X), e({
30800
30826
  save: Z,
30801
30827
  clear: u,
30802
30828
  isEmpty: h,
30803
30829
  undo: p,
30804
30830
  addWaterMark: Y,
30805
30831
  fromDataURL: r
30806
- }), (S, I) => (L(), y("div", {
30832
+ }), (S, x) => (L(), y("div", {
30807
30833
  class: ul(["bagel-input bgl_input signature-pad relative", [N(a), { "has-value": !o.value }]]),
30808
30834
  style: Xl(N(d)),
30809
30835
  tabindex: "-1",
30810
- onTouchmove: I[0] || (I[0] = le(() => {
30836
+ onTouchmove: x[0] || (x[0] = le(() => {
30811
30837
  }, ["prevent"]))
30812
30838
  }, [
30813
30839
  l.label ? (L(), y("label", RF, cl(l.label), 1)) : C("", !0),
@@ -31607,22 +31633,22 @@ Al.prototype = /** @lends Sortable.prototype */
31607
31633
  return W(), t.insertBefore(jl, M), Se = t, Y(), G(!0);
31608
31634
  } else if (a.parentNode === t) {
31609
31635
  n = Ee(a);
31610
- var x = 0, z, V = jl.parentNode !== t, S = !tj(jl.animated && jl.toRect || d, a.animated && a.toRect || n, b), I = b ? "top" : "left", U = Ub(a, "top", "top") || Ub(jl, "top", "top"), f = U ? U.scrollTop : void 0;
31611
- Ed !== a && (z = n[I], ii = !1, ac = !S && c.invertSwap || V), x = oj(e, a, n, b, S ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, ac, Ed === a);
31636
+ var I = 0, z, V = jl.parentNode !== t, S = !tj(jl.animated && jl.toRect || d, a.animated && a.toRect || n, b), x = b ? "top" : "left", U = Ub(a, "top", "top") || Ub(jl, "top", "top"), f = U ? U.scrollTop : void 0;
31637
+ Ed !== a && (z = n[x], ii = !1, ac = !S && c.invertSwap || V), I = oj(e, a, n, b, S ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, ac, Ed === a);
31612
31638
  var H;
31613
- if (x !== 0) {
31639
+ if (I !== 0) {
31614
31640
  var Q = jt(jl);
31615
31641
  do
31616
- Q -= x, H = Se.children[Q];
31642
+ Q -= I, H = Se.children[Q];
31617
31643
  while (H && (Ql(H, "display") === "none" || H === te));
31618
31644
  }
31619
- if (x === 0 || H === a) return G(!1);
31620
- Ed = a, ni = x;
31645
+ if (I === 0 || H === a) return G(!1);
31646
+ Ed = a, ni = I;
31621
31647
  var el = a.nextElementSibling, dl = !1;
31622
- dl = x === 1;
31648
+ dl = I === 1;
31623
31649
  var O = nc(Ie, t, jl, d, a, n, e, dl);
31624
31650
  if (O !== !1)
31625
- return (O === 1 || O === -1) && (dl = O === 1), Hm = !0, setTimeout(ij, 30), W(), dl && !el ? t.appendChild(jl) : a.parentNode.insertBefore(jl, dl ? el : a), U && i5(U, 0, f - U.scrollTop), Se = jl.parentNode, z !== void 0 && !ac && (zc = Math.abs(z - Ee(a)[I])), Y(), G(!0);
31651
+ return (O === 1 || O === -1) && (dl = O === 1), Hm = !0, setTimeout(ij, 30), W(), dl && !el ? t.appendChild(jl) : a.parentNode.insertBefore(jl, dl ? el : a), U && i5(U, 0, f - U.scrollTop), Se = jl.parentNode, z !== void 0 && !ac && (zc = Math.abs(z - Ee(a)[x])), Y(), G(!0);
31626
31652
  }
31627
31653
  if (t.contains(jl)) return G(!1);
31628
31654
  }
@@ -31916,9 +31942,9 @@ var Do = n5(function(l, e, t, a) {
31916
31942
  Bm !== t && (Bm = t, gc(), $n = e.scroll, m = e.scrollFn, $n === !0 && ($n = qa(t, !0)));
31917
31943
  var u = 0, Z = $n;
31918
31944
  do {
31919
- var b = Z, r = Ee(b), h = r.top, p = r.bottom, W = r.left, G = r.right, Y = r.width, X = r.height, M = void 0, x = void 0, z = b.scrollWidth, V = b.scrollHeight, S = Ql(b), I = b.scrollLeft, U = b.scrollTop;
31920
- b === s ? (M = Y < z && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), x = X < V && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (M = Y < z && (S.overflowX === "auto" || S.overflowX === "scroll"), x = X < V && (S.overflowY === "auto" || S.overflowY === "scroll"));
31921
- var f = M && (Math.abs(G - d) <= i && I + Y < z) - (Math.abs(W - d) <= i && !!I), H = x && (Math.abs(p - n) <= i && U + X < V) - (Math.abs(h - n) <= i && !!U);
31945
+ var b = Z, r = Ee(b), h = r.top, p = r.bottom, W = r.left, G = r.right, Y = r.width, X = r.height, M = void 0, I = void 0, z = b.scrollWidth, V = b.scrollHeight, S = Ql(b), x = b.scrollLeft, U = b.scrollTop;
31946
+ b === s ? (M = Y < z && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), I = X < V && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (M = Y < z && (S.overflowX === "auto" || S.overflowX === "scroll"), I = X < V && (S.overflowY === "auto" || S.overflowY === "scroll"));
31947
+ var f = M && (Math.abs(G - d) <= i && x + Y < z) - (Math.abs(W - d) <= i && !!x), H = I && (Math.abs(p - n) <= i && U + X < V) - (Math.abs(h - n) <= i && !!U);
31922
31948
  if (!fe[u])
31923
31949
  for (var Q = 0; Q <= u; Q++) fe[Q] || (fe[Q] = {});
31924
31950
  (fe[u].vx != f || fe[u].vy != H || fe[u].el !== b) && (fe[u].el = b, fe[u].vx = f, fe[u].vy = H, clearInterval(fe[u].pid), (f != 0 || H != 0) && (o = !0, fe[u].pid = setInterval((function() {
@@ -32097,7 +32123,7 @@ var Am = [
32097
32123
  function M(J, w) {
32098
32124
  Y((v) => v.splice(w, 0, v.splice(J, 1)[0]));
32099
32125
  }
32100
- function x(J) {
32126
+ function I(J) {
32101
32127
  const w = s.value, j = w.length;
32102
32128
  return J > j - 1 ? j : w[J];
32103
32129
  }
@@ -32114,11 +32140,11 @@ var Am = [
32114
32140
  function S(J) {
32115
32141
  p(), o.value = W(J.item), o.value && (J.item._underlying_vm_ = l.clone(o.value.element), Uo = J.item);
32116
32142
  }
32117
- function I(J) {
32143
+ function x(J) {
32118
32144
  const w = J.item._underlying_vm_;
32119
32145
  if (w === void 0) return;
32120
32146
  Ro(J.item);
32121
- const j = x(J.newIndex);
32147
+ const j = I(J.newIndex);
32122
32148
  X(j, 0, w), p(), G({ added: {
32123
32149
  element: w,
32124
32150
  newIndex: j
@@ -32138,7 +32164,7 @@ var Am = [
32138
32164
  }
32139
32165
  function f(J) {
32140
32166
  Ro(J.item), fb(J.from, J.item, J.oldIndex);
32141
- const w = o.value?.index, j = x(J.newIndex);
32167
+ const w = o.value?.index, j = I(J.newIndex);
32142
32168
  M(w, j), G({ moved: {
32143
32169
  element: o.value?.element,
32144
32170
  oldIndex: w,
@@ -32208,7 +32234,7 @@ var Am = [
32208
32234
  }
32209
32235
  const B = {
32210
32236
  onDragStart: S,
32211
- onDragAdd: I,
32237
+ onDragAdd: x,
32212
32238
  onDragRemove: U,
32213
32239
  onDragUpdate: f,
32214
32240
  onDragMove: F,
@@ -32232,11 +32258,11 @@ var Am = [
32232
32258
  alterList: Y,
32233
32259
  spliceList: X,
32234
32260
  updatePosition: M,
32235
- getVmIndex: x,
32261
+ getVmIndex: I,
32236
32262
  getComponent: z,
32237
32263
  resetTransitionData: V,
32238
32264
  onDragStart: S,
32239
- onDragAdd: I,
32265
+ onDragAdd: x,
32240
32266
  onDragRemove: U,
32241
32267
  onDragUpdate: f,
32242
32268
  updateProperty: H,
@@ -41476,13 +41502,13 @@ var zf = {
41476
41502
  const O = Y();
41477
41503
  O && W(O);
41478
41504
  }
41479
- function x() {
41505
+ function I() {
41480
41506
  return o.value?.iso2 ? o.value.iso2.toUpperCase() : void 0;
41481
41507
  }
41482
41508
  function z(O) {
41483
41509
  if (!O) return O;
41484
41510
  try {
41485
- const ll = X0(O, x());
41511
+ const ll = X0(O, I());
41486
41512
  if (ll && ll.isValid()) return ll.formatInternational();
41487
41513
  } catch {
41488
41514
  }
@@ -41498,7 +41524,7 @@ var zf = {
41498
41524
  }
41499
41525
  }
41500
41526
  try {
41501
- const O = X0(c.value, x());
41527
+ const O = X0(c.value, I());
41502
41528
  O && O.isValid() ? (Z.value.setCustomValidity(""), b.value = !0) : (Z.value.setCustomValidity(i("tel.invalidPhone")), b.value = !1);
41503
41529
  } catch {
41504
41530
  Z.value.setCustomValidity(i("tel.invalidPhone")), b.value = !1;
@@ -41513,7 +41539,7 @@ var zf = {
41513
41539
  return W(al), !0;
41514
41540
  return !1;
41515
41541
  }
41516
- async function I() {
41542
+ async function x() {
41517
41543
  if (c.value) S(c.value);
41518
41544
  else try {
41519
41545
  await X();
@@ -41548,7 +41574,7 @@ var zf = {
41548
41574
  function dl() {
41549
41575
  setTimeout(() => m.value?.focus(), 100);
41550
41576
  }
41551
- return Bl(I), (O, ll) => {
41577
+ return Bl(x), (O, ll) => {
41552
41578
  const al = lt("pattern");
41553
41579
  return L(), y("div", {
41554
41580
  class: ul(["bagel-input text-input", [N(a), {
@@ -42154,7 +42180,7 @@ var lk = {
42154
42180
  Z.value = !Z.value;
42155
42181
  }, M = () => {
42156
42182
  u.value.end.open = !u.value.end.open;
42157
- }, x = () => {
42183
+ }, I = () => {
42158
42184
  u.value.top.open = !u.value.top.open;
42159
42185
  }, z = () => {
42160
42186
  u.value.bottom.open = !u.value.bottom.open;
@@ -42165,7 +42191,7 @@ var lk = {
42165
42191
  function S() {
42166
42192
  i.value && (Z.value = !1);
42167
42193
  }
42168
- function I(E) {
42194
+ function x(E) {
42169
42195
  if (!E) return !1;
42170
42196
  let Gl;
42171
42197
  try {
@@ -42176,7 +42202,7 @@ var lk = {
42176
42202
  return Gl.some((zl) => !(zl == null || typeof zl == "boolean" || zl.type === x2 || zl.type === z2 && (typeof zl.children != "string" || !zl.children.trim())));
42177
42203
  }
42178
42204
  function U(E) {
42179
- return E === "start" ? I(d.start) || I(d.sidebar) : E === "end" ? I(d.end) || I(d.aside) : !0;
42205
+ return E === "start" ? x(d.start) || x(d.sidebar) : E === "end" ? x(d.end) || x(d.aside) : !0;
42180
42206
  }
42181
42207
  function f(E) {
42182
42208
  return u.value[E].mode === "overlay" || E === "start" && i.value;
@@ -42265,7 +42291,7 @@ var lk = {
42265
42291
  setBottom: Y,
42266
42292
  toggleStart: X,
42267
42293
  toggleEnd: M,
42268
- toggleTop: x,
42294
+ toggleTop: I,
42269
42295
  toggleBottom: z
42270
42296
  }), Bl(() => {
42271
42297
  b(), window.addEventListener("resize", r);
@@ -42889,17 +42915,17 @@ function Jk(l) {
42889
42915
  const Z = YZ();
42890
42916
  xl(i, () => Z.cancel(), { flush: "sync" }), xl(() => n.value.map((p) => `${p.id}:${p.collapsed.value}`).join("|"), () => Z.cancel(), { flush: "sync" }), xl(d, () => Z.cancel(), { flush: "sync" });
42891
42917
  function b(p, W) {
42892
- const G = W - p.startPos, Y = p.isRtl ? -G : G, X = n.value[p.indexA], M = n.value[p.indexB], x = X.config.min, z = X.config.max, V = M.config.min, S = M.config.max;
42893
- let I = p.currentSizeA, U = p.currentSizeB;
42894
- if (p.isFlexB) I = Math.max(x, Math.min(z, p.startSizeA + Y));
42918
+ const G = W - p.startPos, Y = p.isRtl ? -G : G, X = n.value[p.indexA], M = n.value[p.indexB], I = X.config.min, z = X.config.max, V = M.config.min, S = M.config.max;
42919
+ let x = p.currentSizeA, U = p.currentSizeB;
42920
+ if (p.isFlexB) x = Math.max(I, Math.min(z, p.startSizeA + Y));
42895
42921
  else if (p.isFlexA) U = Math.max(V, Math.min(S, p.startSizeB - Y));
42896
42922
  else {
42897
- const H = Math.max(x, Math.min(z, p.startSizeA + Y)) - p.startSizeA;
42898
- U = Math.max(V, Math.min(S, p.startSizeB - H)), I = p.startSizeA + (p.startSizeB - U);
42923
+ const H = Math.max(I, Math.min(z, p.startSizeA + Y)) - p.startSizeA;
42924
+ U = Math.max(V, Math.min(S, p.startSizeB - H)), x = p.startSizeA + (p.startSizeB - U);
42899
42925
  }
42900
- p.currentSizeA = I, p.currentSizeB = U;
42926
+ p.currentSizeA = x, p.currentSizeB = U;
42901
42927
  const f = p.isHorizontal ? "width" : "height";
42902
- p.elA && !p.isFlexA && (p.elA.style.flex = `0 0 ${I}px`, p.elA.style[f] = `${I}px`), p.elB && !p.isFlexB && (p.elB.style.flex = `0 0 ${U}px`, p.elB.style[f] = `${U}px`);
42928
+ p.elA && !p.isFlexA && (p.elA.style.flex = `0 0 ${x}px`, p.elA.style[f] = `${x}px`), p.elB && !p.isFlexB && (p.elB.style.flex = `0 0 ${U}px`, p.elB.style[f] = `${U}px`);
42903
42929
  }
42904
42930
  function r(p, W) {
42905
42931
  if (W.button !== 0 || W.isPrimary === !1) return;
@@ -42909,12 +42935,12 @@ function Jk(l) {
42909
42935
  const Y = n.value[G], X = n.value[G + 1];
42910
42936
  if (Y.collapsed.value || X.collapsed.value || d.value && (Y.config.hideOnMobile || X.config.hideOnMobile)) return;
42911
42937
  W.preventDefault();
42912
- const M = i.value === "horizontal", x = M ? W.clientX : W.clientY, z = M && !!e.value && getComputedStyle(e.value).direction === "rtl", V = {
42938
+ const M = i.value === "horizontal", I = M ? W.clientX : W.clientY, z = M && !!e.value && getComputedStyle(e.value).direction === "rtl", V = {
42913
42939
  panelId: p,
42914
42940
  pointerId: W.pointerId,
42915
42941
  isHorizontal: M,
42916
42942
  isRtl: z,
42917
- startPos: x,
42943
+ startPos: I,
42918
42944
  startSizeA: Y.size.value,
42919
42945
  startSizeB: X.size.value,
42920
42946
  currentSizeA: Y.size.value,
@@ -42925,12 +42951,12 @@ function Jk(l) {
42925
42951
  isFlexB: X.config.flex,
42926
42952
  elA: Y.el.value,
42927
42953
  elB: X.el.value
42928
- }, S = e.value, I = M ? "width" : "height", U = V.elA && {
42954
+ }, S = e.value, x = M ? "width" : "height", U = V.elA && {
42929
42955
  flex: V.elA.style.flex,
42930
- size: V.elA.style[I]
42956
+ size: V.elA.style[x]
42931
42957
  }, f = V.elB && {
42932
42958
  flex: V.elB.style.flex,
42933
- size: V.elB.style[I]
42959
+ size: V.elB.style[x]
42934
42960
  };
42935
42961
  S?.setAttribute("data-resizing", ""), Z.start(W, {
42936
42962
  cursor: M ? "ew-resize" : "ns-resize",
@@ -42939,15 +42965,15 @@ function Jk(l) {
42939
42965
  b(V, M ? H.clientX : H.clientY), Y.size.value = V.currentSizeA, X.size.value = V.currentSizeB, S?.removeAttribute("data-resizing");
42940
42966
  },
42941
42967
  onCancel() {
42942
- V.elA && U && (V.elA.style.flex = U.flex, V.elA.style[I] = U.size), V.elB && f && (V.elB.style.flex = f.flex, V.elB.style[I] = f.size), S?.removeAttribute("data-resizing");
42968
+ V.elA && U && (V.elA.style.flex = U.flex, V.elA.style[x] = U.size), V.elB && f && (V.elB.style.flex = f.flex, V.elB.style[x] = f.size), S?.removeAttribute("data-resizing");
42943
42969
  }
42944
42970
  });
42945
42971
  }
42946
42972
  function h(p, W) {
42947
42973
  const G = i.value === "horizontal", Y = G ? "ArrowLeft" : "ArrowUp", X = G ? "ArrowRight" : "ArrowDown";
42948
42974
  if (W.key !== Y && W.key !== X) return;
42949
- const M = u(p), x = n.value[M], z = n.value[M + 1];
42950
- if (!x || !z || x.collapsed.value || z.collapsed.value || d.value && (x.config.hideOnMobile || z.config.hideOnMobile)) return;
42975
+ const M = u(p), I = n.value[M], z = n.value[M + 1];
42976
+ if (!I || !z || I.collapsed.value || z.collapsed.value || d.value && (I.config.hideOnMobile || z.config.hideOnMobile)) return;
42951
42977
  W.preventDefault(), Z.cancel();
42952
42978
  const V = {
42953
42979
  panelId: p,
@@ -42955,18 +42981,18 @@ function Jk(l) {
42955
42981
  isHorizontal: G,
42956
42982
  isRtl: G && !!e.value && getComputedStyle(e.value).direction === "rtl",
42957
42983
  startPos: 0,
42958
- startSizeA: x.size.value,
42984
+ startSizeA: I.size.value,
42959
42985
  startSizeB: z.size.value,
42960
- currentSizeA: x.size.value,
42986
+ currentSizeA: I.size.value,
42961
42987
  currentSizeB: z.size.value,
42962
42988
  indexA: M,
42963
42989
  indexB: M + 1,
42964
- isFlexA: x.config.flex,
42990
+ isFlexA: I.config.flex,
42965
42991
  isFlexB: z.config.flex,
42966
- elA: x.el.value,
42992
+ elA: I.el.value,
42967
42993
  elB: z.el.value
42968
42994
  };
42969
- b(V, (W.key === Y ? -1 : 1) * (W.shiftKey ? 50 : 10)), x.size.value = V.currentSizeA, z.size.value = V.currentSizeB;
42995
+ b(V, (W.key === Y ? -1 : 1) * (W.shiftKey ? 50 : 10)), I.size.value = V.currentSizeA, z.size.value = V.currentSizeB;
42970
42996
  }
42971
42997
  return { context: {
42972
42998
  direction: i,
@@ -43605,13 +43631,13 @@ var Qk = { class: "bgl_tabs" }, Ak = { key: 0 }, _k = /* @__PURE__ */ Il({
43605
43631
  },
43606
43632
  setup(l) {
43607
43633
  const e = l, t = Ve(), a = R2(), d = T(() => !!(t.end || e.end || e.iconEnd)), n = T(() => {
43608
- const x = {};
43609
- for (const z of Object.keys(a)) /^on[A-Z]/.test(z) && (x[z] = a[z]);
43610
- return x;
43634
+ const I = {};
43635
+ for (const z of Object.keys(a)) /^on[A-Z]/.test(z) && (I[z] = a[z]);
43636
+ return I;
43611
43637
  }), i = T(() => {
43612
- const x = {};
43613
- for (const z of Object.keys(a)) /^on[A-Z]/.test(z) || (x[z] = a[z]);
43614
- return x;
43638
+ const I = {};
43639
+ for (const z of Object.keys(a)) /^on[A-Z]/.test(z) || (I[z] = a[z]);
43640
+ return I;
43615
43641
  }), c = T(() => {
43616
43642
  if (e.size) return e.size;
43617
43643
  if (e.xs) return "xs";
@@ -43631,34 +43657,34 @@ var Qk = { class: "bgl_tabs" }, Ak = { key: 0 }, _k = /* @__PURE__ */ Il({
43631
43657
  md: 1.2,
43632
43658
  lg: 1.5,
43633
43659
  xl: 1.8
43634
- }, m = (x) => x === void 0 ? void 0 : typeof x == "number" ? `${x}rem` : x, u = (x) => x === void 0 ? void 0 : typeof x == "number" ? `${x}px` : x, Z = T(() => e.avatarSize ?? (c.value ? s[c.value] : e.thin ? 30 : 38)), b = T(() => {
43660
+ }, m = (I) => I === void 0 ? void 0 : typeof I == "number" ? `${I}rem` : I, u = (I) => I === void 0 ? void 0 : typeof I == "number" ? `${I}px` : I, Z = T(() => e.avatarSize ?? (c.value ? s[c.value] : e.thin ? 30 : 38)), b = T(() => {
43635
43661
  if (typeof e.iconSize == "number") return e.iconSize;
43636
43662
  if (typeof e.iconSize == "string") {
43637
- const x = Number.parseFloat(e.iconSize);
43638
- if (!Number.isNaN(x)) return x;
43663
+ const I = Number.parseFloat(e.iconSize);
43664
+ if (!Number.isNaN(I)) return I;
43639
43665
  }
43640
43666
  return c.value ? o[c.value] : 1.2;
43641
- }), r = (x) => /^[a-z]+(-[a-z]+)*$/.test(x) ? `var(--bgl-${x})` : x, h = T(() => {
43642
- const x = {};
43643
- e.color && (x["--bgl-list-item-accent"] = `var(--bgl-${e.color})`), e.iconColor && (x["--bgl-list-item-icon-color"] = r(e.iconColor));
43667
+ }), r = (I) => /^[a-z]+(-[a-z]+)*$/.test(I) ? `var(--bgl-${I})` : I, h = T(() => {
43668
+ const I = {};
43669
+ e.color && (I["--bgl-list-item-accent"] = `var(--bgl-${e.color})`), e.iconColor && (I["--bgl-list-item-icon-color"] = r(e.iconColor));
43644
43670
  const z = m(e.titleSize ?? e.fontSize);
43645
- z && (x["--bgl-list-item-title-size"] = z);
43671
+ z && (I["--bgl-list-item-title-size"] = z);
43646
43672
  const V = m(e.subtitleSize);
43647
- V && (x["--bgl-list-item-subtitle-size"] = V);
43673
+ V && (I["--bgl-list-item-subtitle-size"] = V);
43648
43674
  const S = m(e.leadSize);
43649
- S && (x["--bgl-list-item-lead-size"] = S);
43650
- const I = u(e.iconChipSize);
43651
- I && (x["--bgl-list-item-icon-chip-size"] = I);
43675
+ S && (I["--bgl-list-item-lead-size"] = S);
43676
+ const x = u(e.iconChipSize);
43677
+ x && (I["--bgl-list-item-icon-chip-size"] = x);
43652
43678
  const U = e.titleWeight ?? e.fontWeight;
43653
- return U !== void 0 && (x["--bgl-list-item-title-weight"] = String(U)), e.subtitleWeight !== void 0 && (x["--bgl-list-item-subtitle-weight"] = String(e.subtitleWeight)), e.leadWeight !== void 0 && (x["--bgl-list-item-lead-weight"] = String(e.leadWeight)), x;
43654
- }), p = T(() => e.to !== void 0 && e.to !== ""), W = T(() => e.href !== void 0 && e.href !== ""), G = T(() => Object.keys(a).some((x) => /^onClick/i.test(x))), Y = T(() => p.value || W.value || G.value || e.clickable === !0), X = T(() => p.value ? "router-link" : W.value ? "a" : Y.value ? "button" : "div"), M = T(() => {
43655
- const x = { ...n.value };
43656
- return e.to !== void 0 && e.to !== "" ? x.to = e.to : e.href !== void 0 && e.href !== "" && (x.href = e.href), e.target !== void 0 && e.target !== void 0 && (e.to !== void 0 && e.to !== "" || e.href !== void 0 && e.href !== "") && (x.target = e.target), x.class = {
43679
+ return U !== void 0 && (I["--bgl-list-item-title-weight"] = String(U)), e.subtitleWeight !== void 0 && (I["--bgl-list-item-subtitle-weight"] = String(e.subtitleWeight)), e.leadWeight !== void 0 && (I["--bgl-list-item-lead-weight"] = String(e.leadWeight)), I;
43680
+ }), p = T(() => e.to !== void 0 && e.to !== ""), W = T(() => e.href !== void 0 && e.href !== ""), G = T(() => Object.keys(a).some((I) => /^onClick/i.test(I))), Y = T(() => p.value || W.value || G.value || e.clickable === !0), X = T(() => p.value ? "router-link" : W.value ? "a" : Y.value ? "button" : "div"), M = T(() => {
43681
+ const I = { ...n.value };
43682
+ return e.to !== void 0 && e.to !== "" ? I.to = e.to : e.href !== void 0 && e.href !== "" && (I.href = e.href), e.target !== void 0 && e.target !== void 0 && (e.to !== void 0 && e.to !== "" || e.href !== void 0 && e.href !== "") && (I.target = e.target), I.class = {
43657
43683
  notClickable: !Y.value,
43658
43684
  "no-border-list": e.flat
43659
- }, e.disabled && (x.disabled = !0), x;
43685
+ }, e.disabled && (I.disabled = !0), I;
43660
43686
  });
43661
- return (x, z) => {
43687
+ return (I, z) => {
43662
43688
  const V = lt("ripple");
43663
43689
  return L(), y("div", ie(i.value, {
43664
43690
  class: ["flex space-between list-item-row", [{
@@ -43671,12 +43697,12 @@ var Qk = { class: "bgl_tabs" }, Ak = { key: 0 }, _k = /* @__PURE__ */ Il({
43671
43697
  }, c.value ? `list-item-${c.value}` : ""]],
43672
43698
  style: h.value
43673
43699
  }), [
43674
- x.$slots.start ? (L(), y("div", u7, [Ll(x.$slots, "start")])) : C("", !0),
43700
+ I.$slots.start ? (L(), y("div", u7, [Ll(I.$slots, "start")])) : C("", !0),
43675
43701
  El((L(), Zl(je(X.value), ie(M.value, { class: ["flex flex-grow-1 gap-075 align-items-center list-item", {
43676
43702
  "py-075": !e.thin,
43677
43703
  "py-05": e.thin
43678
43704
  }] }), {
43679
- default: Tl(() => [Ll(x.$slots, "media", {}, () => [l.src || l.showAvatar ? (L(), Zl(N(ZV), {
43705
+ default: Tl(() => [Ll(I.$slots, "media", {}, () => [l.src || l.showAvatar ? (L(), Zl(N(ZV), {
43680
43706
  key: 0,
43681
43707
  name: l.title,
43682
43708
  src: l.src,
@@ -43696,16 +43722,16 @@ var Qk = { class: "bgl_tabs" }, Ak = { key: 0 }, _k = /* @__PURE__ */ Il({
43696
43722
  l.lead ? (L(), y("p", {
43697
43723
  key: 0,
43698
43724
  class: ul(["list-item-lead", { ellipsis: l.ellipsis }])
43699
- }, [Dl(cl(l.lead) + " ", 1), Ll(x.$slots, "lead")], 2)) : C("", !0),
43700
- g("p", { class: ul(["list-item-title", { "ellipsis-1": l.ellipsis }]) }, [Dl(cl(l.title) + " ", 1), Ll(x.$slots, "default")], 2),
43701
- l.subtitle || x.$slots.subtitle ? (L(), y("p", {
43725
+ }, [Dl(cl(l.lead) + " ", 1), Ll(I.$slots, "lead")], 2)) : C("", !0),
43726
+ g("p", { class: ul(["list-item-title", { "ellipsis-1": l.ellipsis }]) }, [Dl(cl(l.title) + " ", 1), Ll(I.$slots, "default")], 2),
43727
+ l.subtitle || I.$slots.subtitle ? (L(), y("p", {
43702
43728
  key: 1,
43703
43729
  class: ul(["list-item-subtitle", { "ellipsis-1": l.ellipsis }])
43704
- }, [Dl(cl(l.subtitle) + " ", 1), Ll(x.$slots, "subtitle")], 2)) : C("", !0)
43730
+ }, [Dl(cl(l.subtitle) + " ", 1), Ll(I.$slots, "subtitle")], 2)) : C("", !0)
43705
43731
  ])]),
43706
43732
  _: 3
43707
43733
  }, 16, ["class"])), [[V, l.ripple && Y.value]]),
43708
- g("div", r7, [Ll(x.$slots, "end", {}, () => [l.end ? (L(), y("span", {
43734
+ g("div", r7, [Ll(I.$slots, "end", {}, () => [l.end ? (L(), y("span", {
43709
43735
  key: 0,
43710
43736
  class: ul(["list-item-endtext", { "ellipsis-1": l.ellipsis }]),
43711
43737
  textContent: cl(l.end)
@@ -43994,15 +44020,15 @@ var X7 = /* @__PURE__ */ Jl(G7, [["render", L7]]), y7 = ["id"], M7 = '<svg width
43994
44020
  }, { immediate: !0 }), xl(() => e.rtl, Z);
43995
44021
  const u = T(() => {
43996
44022
  const { maxVisiblePages: Y } = e;
43997
- if (m.value <= Y * 2) return Array.from({ length: m.value }, (x, z) => z + 1);
44023
+ if (m.value <= Y * 2) return Array.from({ length: m.value }, (I, z) => z + 1);
43998
44024
  const X = /* @__PURE__ */ new Set();
43999
44025
  X.add(a.value), a.value > 1 && X.add(a.value - 1), a.value < m.value && X.add(a.value + 1), X.add(1), X.add(m.value);
44000
- const M = Array.from(X).sort((x, z) => x - z);
44001
- if (M.length < Y + 2) for (let x = 0; x < M.length - 1; x++) {
44002
- const z = M[x], V = M[x + 1];
44026
+ const M = Array.from(X).sort((I, z) => I - z);
44027
+ if (M.length < Y + 2) for (let I = 0; I < M.length - 1; I++) {
44028
+ const z = M[I], V = M[I + 1];
44003
44029
  if (V - z > 1) {
44004
- const S = Math.min(V - z - 1, Y + 2 - M.length), I = Array.from({ length: S }, (U, f) => z + f + 1);
44005
- M.splice(x + 1, 0, ...I), x += I.length;
44030
+ const S = Math.min(V - z - 1, Y + 2 - M.length), x = Array.from({ length: S }, (U, f) => z + f + 1);
44031
+ M.splice(I + 1, 0, ...x), I += x.length;
44006
44032
  }
44007
44033
  }
44008
44034
  return M;
@@ -44075,7 +44101,7 @@ var X7 = /* @__PURE__ */ Jl(G7, [["render", L7]]), y7 = ["id"], M7 = '<svg width
44075
44101
  thin: "",
44076
44102
  class: ul({ selected: M.number === a.value }),
44077
44103
  value: M.number ? M.number.toString() : "",
44078
- onClick: (x) => M.number ? r(M.number) : null
44104
+ onClick: (I) => M.number ? r(M.number) : null
44079
44105
  }, null, 8, [
44080
44106
  "class",
44081
44107
  "value",
@@ -44327,17 +44353,17 @@ function sC(l, e) {
44327
44353
  const t = k([]), a = k(/* @__PURE__ */ new Map()), d = k(!1), n = k(null), i = k(0), c = k(0), s = T(() => {
44328
44354
  const W = l.value.length ? new Set(l.value.flatMap((M) => Object.keys(M))) : /* @__PURE__ */ new Set(), G = e(), Y = new Map((G || []).map((M) => [M.key, M])), X = /* @__PURE__ */ new Set([...W, ...G?.map((M) => M.key) || []]);
44329
44355
  return Array.from(X).map((M) => {
44330
- const x = Y.get(M);
44356
+ const I = Y.get(M);
44331
44357
  return {
44332
44358
  key: M,
44333
- label: x?.label ?? M,
44334
- locked: x?.locked ?? !1,
44335
- sortable: x?.sortable ?? !0,
44336
- format: x?.format ?? "text",
44337
- width: x?.width,
44338
- fixed: x?.fixed ?? !1,
44339
- hidden: x?.hidden ?? !1,
44340
- defaultValue: x?.defaultValue
44359
+ label: I?.label ?? M,
44360
+ locked: I?.locked ?? !1,
44361
+ sortable: I?.sortable ?? !0,
44362
+ format: I?.format ?? "text",
44363
+ width: I?.width,
44364
+ fixed: I?.fixed ?? !1,
44365
+ hidden: I?.hidden ?? !1,
44366
+ defaultValue: I?.defaultValue
44341
44367
  };
44342
44368
  });
44343
44369
  }), o = T(() => s.value.filter((W) => W.fixed && !W.hidden && t.value.includes(W.key))), m = T(() => s.value.filter((W) => !W.fixed && !W.hidden && t.value.includes(W.key))), u = T(() => s.value.filter((W) => !W.hidden));
@@ -44697,7 +44723,7 @@ var uC = ["value"], bC = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
44697
44723
  function i() {
44698
44724
  t("update:modelValue", n.value.map((tl) => iC({ ...tl })));
44699
44725
  }
44700
- const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: u, columnWidths: Z, isCellEditable: b, createEmptyRow: r, handleResizeStart: h } = sC(n, () => l.columnConfig), { sortColumn: p, sortDirection: W, sortByColumn: G } = mC(n, c, u, i), { selectionStart: Y, selectionEnd: X, handleMouseDown: M, handleMouseOver: x, handleMouseUp: z, selectEntireRow: V } = oC(c), { canUndo: S, canRedo: I, saveState: U, undo: f, redo: H } = ZC(n, Y, X, i), { copySelection: Q, pasteSelection: el } = cC(n, c, Y, X, U, b, r, i), dl = k(null), O = k(null), ll = k(/* @__PURE__ */ new Map());
44726
+ const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: u, columnWidths: Z, isCellEditable: b, createEmptyRow: r, handleResizeStart: h } = sC(n, () => l.columnConfig), { sortColumn: p, sortDirection: W, sortByColumn: G } = mC(n, c, u, i), { selectionStart: Y, selectionEnd: X, handleMouseDown: M, handleMouseOver: I, handleMouseUp: z, selectEntireRow: V } = oC(c), { canUndo: S, canRedo: x, saveState: U, undo: f, redo: H } = ZC(n, Y, X, i), { copySelection: Q, pasteSelection: el } = cC(n, c, Y, X, U, b, r, i), dl = k(null), O = k(null), ll = k(/* @__PURE__ */ new Map());
44701
44727
  function al(tl, wl) {
44702
44728
  tl?.$el instanceof HTMLInputElement ? ll.value.set(wl, tl.$el) : tl instanceof HTMLInputElement ? ll.value.set(wl, tl) : ll.value.delete(wl);
44703
44729
  }
@@ -44802,7 +44828,7 @@ var uC = ["value"], bC = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
44802
44828
  il(N(ra), {
44803
44829
  title: "Redo",
44804
44830
  icon: "redo",
44805
- disabled: !N(I),
44831
+ disabled: !N(x),
44806
44832
  onClick: N(H)
44807
44833
  }, null, 8, ["disabled", "onClick"]),
44808
44834
  il(N(WZ), {
@@ -44865,7 +44891,7 @@ var uC = ["value"], bC = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
44865
44891
  onResizeStart: N(h),
44866
44892
  onSelectRow: N(V),
44867
44893
  onCellMouseDown: N(M),
44868
- onCellMouseOver: N(x),
44894
+ onCellMouseOver: N(I),
44869
44895
  onCellEditStart: F,
44870
44896
  onCellKeyDown: Gl,
44871
44897
  onUpdateCell: J,
@@ -44904,7 +44930,7 @@ var uC = ["value"], bC = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
44904
44930
  onResizeStart: N(h),
44905
44931
  onSelectRow: N(V),
44906
44932
  onCellMouseDown: N(M),
44907
- onCellMouseOver: N(x),
44933
+ onCellMouseOver: N(I),
44908
44934
  onCellEditStart: F,
44909
44935
  onCellKeyDown: Gl,
44910
44936
  onUpdateCell: J,
@@ -45411,13 +45437,13 @@ function QC({ swiper: l, extendParams: e, on: t, emit: a }) {
45411
45437
  let Y = l.pagination.el;
45412
45438
  Y = Ae(Y);
45413
45439
  let X, M;
45414
- const x = l.virtual && l.params.virtual.enabled ? l.virtual.slides.length : l.slides.length, z = l.params.loop ? Math.ceil(x / l.params.slidesPerGroup) : l.snapGrid.length;
45440
+ const I = l.virtual && l.params.virtual.enabled ? l.virtual.slides.length : l.slides.length, z = l.params.loop ? Math.ceil(I / l.params.slidesPerGroup) : l.snapGrid.length;
45415
45441
  if (l.params.loop ? (M = l.previousRealIndex || 0, X = l.params.slidesPerGroup > 1 ? Math.floor(l.realIndex / l.params.slidesPerGroup) : l.realIndex) : typeof l.snapIndex < "u" ? (X = l.snapIndex, M = l.previousSnapIndex) : (M = l.previousIndex || 0, X = l.activeIndex || 0), G.type === "bullets" && l.pagination.bullets && l.pagination.bullets.length > 0) {
45416
45442
  const V = l.pagination.bullets;
45417
- let S, I, U;
45443
+ let S, x, U;
45418
45444
  if (G.dynamicBullets && (n = i2(V[0], l.isHorizontal() ? "width" : "height", !0), Y.forEach((f) => {
45419
45445
  f.style[l.isHorizontal() ? "width" : "height"] = `${n * (G.dynamicMainBullets + 4)}px`;
45420
- }), G.dynamicMainBullets > 1 && M !== void 0 && (i += X - (M || 0), i > G.dynamicMainBullets - 1 ? i = G.dynamicMainBullets - 1 : i < 0 && (i = 0)), S = Math.max(X - i, 0), I = S + (Math.min(V.length, G.dynamicMainBullets) - 1), U = (I + S) / 2), V.forEach((f) => {
45446
+ }), G.dynamicMainBullets > 1 && M !== void 0 && (i += X - (M || 0), i > G.dynamicMainBullets - 1 ? i = G.dynamicMainBullets - 1 : i < 0 && (i = 0)), S = Math.max(X - i, 0), x = S + (Math.min(V.length, G.dynamicMainBullets) - 1), U = (x + S) / 2), V.forEach((f) => {
45421
45447
  const H = [...[
45422
45448
  "",
45423
45449
  "-next",
@@ -45429,15 +45455,15 @@ function QC({ swiper: l, extendParams: e, on: t, emit: a }) {
45429
45455
  f.classList.remove(...H);
45430
45456
  }), Y.length > 1) V.forEach((f) => {
45431
45457
  const H = Zs(f);
45432
- H === X ? f.classList.add(...G.bulletActiveClass.split(" ")) : l.isElement && f.setAttribute("part", "bullet"), G.dynamicBullets && (H >= S && H <= I && f.classList.add(...`${G.bulletActiveClass}-main`.split(" ")), H === S && s(f, "prev"), H === I && s(f, "next"));
45458
+ H === X ? f.classList.add(...G.bulletActiveClass.split(" ")) : l.isElement && f.setAttribute("part", "bullet"), G.dynamicBullets && (H >= S && H <= x && f.classList.add(...`${G.bulletActiveClass}-main`.split(" ")), H === S && s(f, "prev"), H === x && s(f, "next"));
45433
45459
  });
45434
45460
  else {
45435
45461
  const f = V[X];
45436
45462
  if (f && f.classList.add(...G.bulletActiveClass.split(" ")), l.isElement && V.forEach((H, Q) => {
45437
45463
  H.setAttribute("part", Q === X ? "bullet-active" : "bullet");
45438
45464
  }), G.dynamicBullets) {
45439
- const H = V[S], Q = V[I];
45440
- for (let el = S; el <= I; el += 1) V[el] && V[el].classList.add(...`${G.bulletActiveClass}-main`.split(" "));
45465
+ const H = V[S], Q = V[x];
45466
+ for (let el = S; el <= x; el += 1) V[el] && V[el].classList.add(...`${G.bulletActiveClass}-main`.split(" "));
45441
45467
  s(H, "prev"), s(Q, "next");
45442
45468
  }
45443
45469
  }
@@ -45449,16 +45475,16 @@ function QC({ swiper: l, extendParams: e, on: t, emit: a }) {
45449
45475
  }
45450
45476
  }
45451
45477
  Y.forEach((V, S) => {
45452
- if (G.type === "fraction" && (V.querySelectorAll(Kn(G.currentClass)).forEach((I) => {
45453
- I.textContent = G.formatFractionCurrent(X + 1);
45454
- }), V.querySelectorAll(Kn(G.totalClass)).forEach((I) => {
45455
- I.textContent = G.formatFractionTotal(z);
45478
+ if (G.type === "fraction" && (V.querySelectorAll(Kn(G.currentClass)).forEach((x) => {
45479
+ x.textContent = G.formatFractionCurrent(X + 1);
45480
+ }), V.querySelectorAll(Kn(G.totalClass)).forEach((x) => {
45481
+ x.textContent = G.formatFractionTotal(z);
45456
45482
  })), G.type === "progressbar") {
45457
- let I;
45458
- G.progressbarOpposite ? I = l.isHorizontal() ? "vertical" : "horizontal" : I = l.isHorizontal() ? "horizontal" : "vertical";
45483
+ let x;
45484
+ G.progressbarOpposite ? x = l.isHorizontal() ? "vertical" : "horizontal" : x = l.isHorizontal() ? "horizontal" : "vertical";
45459
45485
  const U = (X + 1) / z;
45460
45486
  let f = 1, H = 1;
45461
- I === "horizontal" ? f = U : H = U, V.querySelectorAll(Kn(G.progressbarFillClass)).forEach((Q) => {
45487
+ x === "horizontal" ? f = U : H = U, V.querySelectorAll(Kn(G.progressbarFillClass)).forEach((Q) => {
45462
45488
  Q.style.transform = `translate3d(0,0,0) scaleX(${f}) scaleY(${H})`, Q.style.transitionDuration = `${l.params.speed}ms`;
45463
45489
  });
45464
45490
  }
@@ -45475,7 +45501,7 @@ function QC({ swiper: l, extendParams: e, on: t, emit: a }) {
45475
45501
  if (W.type === "bullets") {
45476
45502
  let M = l.params.loop ? Math.ceil(G / l.params.slidesPerGroup) : l.snapGrid.length;
45477
45503
  l.params.freeMode && l.params.freeMode.enabled && M > G && (M = G);
45478
- for (let x = 0; x < M; x += 1) W.renderBullet ? X += W.renderBullet.call(l, x, W.bulletClass) : X += `<${W.bulletElement} ${l.isElement ? 'part="bullet"' : ""} class="${W.bulletClass}"></${W.bulletElement}>`;
45504
+ for (let I = 0; I < M; I += 1) W.renderBullet ? X += W.renderBullet.call(l, I, W.bulletClass) : X += `<${W.bulletElement} ${l.isElement ? 'part="bullet"' : ""} class="${W.bulletClass}"></${W.bulletElement}>`;
45479
45505
  }
45480
45506
  W.type === "fraction" && (W.renderFraction ? X = W.renderFraction.call(l, W.currentClass, W.totalClass) : X = `<span class="${W.currentClass}"></span> / <span class="${W.totalClass}"></span>`), W.type === "progressbar" && (W.renderProgressbar ? X = W.renderProgressbar.call(l, W.progressbarFillClass) : X = `<span class="${W.progressbarFillClass}"></span>`), l.pagination.bullets = [], Y.forEach((M) => {
45481
45507
  W.type !== "custom" && Yi(M, X || ""), W.type === "bullets" && l.pagination.bullets.push(...M.querySelectorAll(Kn(W.bulletClass)));
@@ -45593,7 +45619,7 @@ function AC({ swiper: l, extendParams: e, on: t, emit: a, params: d }) {
45593
45619
  }, ll)) : requestAnimationFrame(() => {
45594
45620
  F();
45595
45621
  }), ll;
45596
- }, x = () => {
45622
+ }, I = () => {
45597
45623
  m = (/* @__PURE__ */ new Date()).getTime(), l.autoplay.running = !0, M(), a("autoplayStart");
45598
45624
  }, z = () => {
45599
45625
  l.autoplay.running = !1, clearTimeout(n), cancelAnimationFrame(i), a("autoplayStop");
@@ -45610,7 +45636,7 @@ function AC({ swiper: l, extendParams: e, on: t, emit: a, params: d }) {
45610
45636
  o = (o || l.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - m), !(l.isEnd && o < 0 && !l.params.loop) && (o < 0 && (o = 0), al());
45611
45637
  }, S = () => {
45612
45638
  l.isEnd && o < 0 && !l.params.loop || l.destroyed || !l.autoplay.running || (m = (/* @__PURE__ */ new Date()).getTime(), h ? (h = !1, M(o)) : M(), l.autoplay.paused = !1, a("autoplayResume"));
45613
- }, I = () => {
45639
+ }, x = () => {
45614
45640
  if (l.destroyed || !l.autoplay.running) return;
45615
45641
  const O = Na();
45616
45642
  O.visibilityState === "hidden" && (h = !0, V(!0)), O.visibilityState === "visible" && S();
@@ -45623,12 +45649,12 @@ function AC({ swiper: l, extendParams: e, on: t, emit: a, params: d }) {
45623
45649
  }, Q = () => {
45624
45650
  l.el && typeof l.el != "string" && (l.el.removeEventListener("pointerenter", U), l.el.removeEventListener("pointerleave", f));
45625
45651
  }, el = () => {
45626
- Na().addEventListener("visibilitychange", I);
45652
+ Na().addEventListener("visibilitychange", x);
45627
45653
  }, dl = () => {
45628
- Na().removeEventListener("visibilitychange", I);
45654
+ Na().removeEventListener("visibilitychange", x);
45629
45655
  };
45630
45656
  t("init", () => {
45631
- l.params.autoplay.enabled && (H(), el(), x());
45657
+ l.params.autoplay.enabled && (H(), el(), I());
45632
45658
  }), t("destroy", () => {
45633
45659
  Q(), dl(), l.autoplay.running && z();
45634
45660
  }), t("_freeModeStaticRelease", () => {
@@ -45658,7 +45684,7 @@ function AC({ swiper: l, extendParams: e, on: t, emit: a, params: d }) {
45658
45684
  }), t("slideChange", () => {
45659
45685
  l.destroyed || !l.autoplay.running || l.autoplay.paused && (o = X(), c = X());
45660
45686
  }), Object.assign(l.autoplay, {
45661
- start: x,
45687
+ start: I,
45662
45688
  stop: z,
45663
45689
  pause: V,
45664
45690
  resume: S
@@ -45770,22 +45796,22 @@ function $C({ swiper: l, extendParams: e, on: t }) {
45770
45796
  const { el: c, wrapperEl: s, slides: o, width: m, height: u, rtlTranslate: Z, size: b, browser: r } = l, h = yZ(l), p = l.params.cubeEffect, W = l.isHorizontal(), G = l.virtual && l.params.virtual.enabled;
45771
45797
  let Y = 0, X;
45772
45798
  p.shadow && (W ? (X = l.wrapperEl.querySelector(".swiper-cube-shadow"), X || (X = va("div", "swiper-cube-shadow"), l.wrapperEl.append(X)), X.style.height = `${m}px`) : (X = c.querySelector(".swiper-cube-shadow"), X || (X = va("div", "swiper-cube-shadow"), c.append(X))));
45773
- for (let x = 0; x < o.length; x += 1) {
45774
- const z = o[x];
45775
- let V = x;
45799
+ for (let I = 0; I < o.length; I += 1) {
45800
+ const z = o[I];
45801
+ let V = I;
45776
45802
  G && (V = parseInt(z.getAttribute("data-swiper-slide-index"), 10));
45777
- let S = V * 90, I = Math.floor(S / 360);
45778
- Z && (S = -S, I = Math.floor(-S / 360));
45803
+ let S = V * 90, x = Math.floor(S / 360);
45804
+ Z && (S = -S, x = Math.floor(-S / 360));
45779
45805
  const U = Math.max(Math.min(z.progress, 1), -1);
45780
45806
  let f = 0, H = 0, Q = 0;
45781
- V % 4 === 0 ? (f = -I * 4 * b, Q = 0) : (V - 1) % 4 === 0 ? (f = 0, Q = -I * 4 * b) : (V - 2) % 4 === 0 ? (f = b + I * 4 * b, Q = b) : (V - 3) % 4 === 0 && (f = -b, Q = 3 * b + b * 4 * I), Z && (f = -f), W || (H = f, f = 0);
45807
+ V % 4 === 0 ? (f = -x * 4 * b, Q = 0) : (V - 1) % 4 === 0 ? (f = 0, Q = -x * 4 * b) : (V - 2) % 4 === 0 ? (f = b + x * 4 * b, Q = b) : (V - 3) % 4 === 0 && (f = -b, Q = 3 * b + b * 4 * x), Z && (f = -f), W || (H = f, f = 0);
45782
45808
  const el = `rotateX(${h(W ? 0 : -S)}deg) rotateY(${h(W ? S : 0)}deg) translate3d(${f}px, ${H}px, ${Q}px)`;
45783
45809
  U <= 1 && U > -1 && (Y = V * 90 + U * 90, Z && (Y = -V * 90 - U * 90)), z.style.transform = el, p.slideShadows && a(z, U, W);
45784
45810
  }
45785
45811
  if (s.style.transformOrigin = `50% 50% -${b / 2}px`, s.style["-webkit-transform-origin"] = `50% 50% -${b / 2}px`, p.shadow) if (W) X.style.transform = `translate3d(0px, ${m / 2 + p.shadowOffset}px, ${-m / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;
45786
45812
  else {
45787
- const x = Math.abs(Y) - Math.floor(Math.abs(Y) / 90) * 90, z = 1.5 - (Math.sin(x * 2 * Math.PI / 360) / 2 + Math.cos(x * 2 * Math.PI / 360) / 2), V = p.shadowScale, S = p.shadowScale / z, I = p.shadowOffset;
45788
- X.style.transform = `scale3d(${V}, 1, ${S}) translate3d(0px, ${u / 2 + I}px, ${-u / 2 / S}px) rotateX(-89.99deg)`;
45813
+ const I = Math.abs(Y) - Math.floor(Math.abs(Y) / 90) * 90, z = 1.5 - (Math.sin(I * 2 * Math.PI / 360) / 2 + Math.cos(I * 2 * Math.PI / 360) / 2), V = p.shadowScale, S = p.shadowScale / z, x = p.shadowOffset;
45814
+ X.style.transform = `scale3d(${V}, 1, ${S}) translate3d(0px, ${u / 2 + x}px, ${-u / 2 / S}px) rotateX(-89.99deg)`;
45789
45815
  }
45790
45816
  const M = (r.isSafari || r.isWebView) && r.needPerspectiveFix ? -b / 2 : 0;
45791
45817
  s.style.transform = `translate3d(0px,0,${M}px) rotateX(${h(l.isHorizontal() ? 0 : Y)}deg) rotateY(${h(l.isHorizontal() ? -Y : 0)}deg)`, s.style.setProperty("--swiper-cube-translate-z", `${M}px`);
@@ -45896,11 +45922,11 @@ function lD({ swiper: l, extendParams: e, on: t }) {
45896
45922
  const { width: n, height: i, slides: c, slidesSizesGrid: s } = l, o = l.params.coverflowEffect, m = l.isHorizontal(), u = l.translate, Z = m ? -u + n / 2 : -u + i / 2, b = m ? o.rotate : -o.rotate, r = o.depth, h = yZ(l);
45897
45923
  for (let p = 0, W = c.length; p < W; p += 1) {
45898
45924
  const G = c[p], Y = s[p], X = (Z - G.swiperSlideOffset - Y / 2) / Y, M = typeof o.modifier == "function" ? o.modifier(X) : X * o.modifier;
45899
- let x = m ? b * M : 0, z = m ? 0 : b * M, V = -r * Math.abs(M), S = o.stretch;
45925
+ let I = m ? b * M : 0, z = m ? 0 : b * M, V = -r * Math.abs(M), S = o.stretch;
45900
45926
  typeof S == "string" && S.indexOf("%") !== -1 && (S = parseFloat(o.stretch) / 100 * Y);
45901
- let I = m ? 0 : S * M, U = m ? S * M : 0, f = 1 - (1 - o.scale) * Math.abs(M);
45902
- Math.abs(U) < 1e-3 && (U = 0), Math.abs(I) < 1e-3 && (I = 0), Math.abs(V) < 1e-3 && (V = 0), Math.abs(x) < 1e-3 && (x = 0), Math.abs(z) < 1e-3 && (z = 0), Math.abs(f) < 1e-3 && (f = 0);
45903
- const H = `translate3d(${U}px,${I}px,${V}px) rotateX(${h(z)}deg) rotateY(${h(x)}deg) scale(${f})`, Q = qs(o, G);
45927
+ let x = m ? 0 : S * M, U = m ? S * M : 0, f = 1 - (1 - o.scale) * Math.abs(M);
45928
+ Math.abs(U) < 1e-3 && (U = 0), Math.abs(x) < 1e-3 && (x = 0), Math.abs(V) < 1e-3 && (V = 0), Math.abs(I) < 1e-3 && (I = 0), Math.abs(z) < 1e-3 && (z = 0), Math.abs(f) < 1e-3 && (f = 0);
45929
+ const H = `translate3d(${U}px,${x}px,${V}px) rotateX(${h(z)}deg) rotateY(${h(I)}deg) scale(${f})`, Q = qs(o, G);
45904
45930
  if (Q.style.transform = H, G.style.zIndex = -Math.abs(Math.round(M)) + 1, o.slideShadows) {
45905
45931
  let el = m ? G.querySelector(".swiper-slide-shadow-left") : G.querySelector(".swiper-slide-shadow-top"), dl = m ? G.querySelector(".swiper-slide-shadow-right") : G.querySelector(".swiper-slide-shadow-bottom");
45906
45932
  el || (el = Li("coverflow", G, m ? "left" : "top")), dl || (dl = Li("coverflow", G, m ? "right" : "bottom")), el && (el.style.opacity = M > 0 ? M : 0), dl && (dl.style.opacity = -M > 0 ? -M : 0);
@@ -45936,20 +45962,20 @@ function eD({ swiper: l, extendParams: e, on: t }) {
45936
45962
  l.params.centeredSlides && !l.params.cssMode && (l.wrapperEl.style.transform = `translateX(${l.minTranslate()}px)`), l.params.centeredSlides && l.params.cssMode && (p -= n[0].swiperSlideOffset);
45937
45963
  let W = l.params.cssMode ? -p - l.translate : -p, G = 0;
45938
45964
  const Y = -100 * Math.abs(h);
45939
- let X = 1, M = -s.perSlideRotate * h, x = s.perSlideOffset - Math.abs(h) * 0.75;
45965
+ let X = 1, M = -s.perSlideRotate * h, I = s.perSlideOffset - Math.abs(h) * 0.75;
45940
45966
  const z = l.virtual && l.params.virtual.enabled ? l.virtual.from + Z : Z, V = (z === i || z === i - 1) && h > 0 && h < 1 && (m || l.params.cssMode) && u < o, S = (z === i || z === i + 1) && h < 0 && h > -1 && (m || l.params.cssMode) && u > o;
45941
45967
  if (V || S) {
45942
45968
  const H = (1 - Math.abs((Math.abs(h) - 0.5) / 0.5)) ** 0.5;
45943
- M += -28 * h * H, X += -0.5 * H, x += 96 * H, G = `${(s.rotate || l.isHorizontal() ? -25 : 0) * H * Math.abs(h)}%`;
45969
+ M += -28 * h * H, X += -0.5 * H, I += 96 * H, G = `${(s.rotate || l.isHorizontal() ? -25 : 0) * H * Math.abs(h)}%`;
45944
45970
  }
45945
- if (h < 0 ? W = `calc(${W}px ${c ? "-" : "+"} (${x * Math.abs(h)}%))` : h > 0 ? W = `calc(${W}px ${c ? "-" : "+"} (-${x * Math.abs(h)}%))` : W = `${W}px`, !l.isHorizontal()) {
45971
+ if (h < 0 ? W = `calc(${W}px ${c ? "-" : "+"} (${I * Math.abs(h)}%))` : h > 0 ? W = `calc(${W}px ${c ? "-" : "+"} (-${I * Math.abs(h)}%))` : W = `${W}px`, !l.isHorizontal()) {
45946
45972
  const H = G;
45947
45973
  G = W, W = H;
45948
45974
  }
45949
- const I = h < 0 ? `${1 + (1 - X) * h}` : `${1 - (1 - X) * h}`, U = `
45975
+ const x = h < 0 ? `${1 + (1 - X) * h}` : `${1 - (1 - X) * h}`, U = `
45950
45976
  translate3d(${W}, ${G}, ${Y}px)
45951
45977
  rotateZ(${s.rotate ? c ? -M : M : 0}deg)
45952
- scale(${I})
45978
+ scale(${x})
45953
45979
  `;
45954
45980
  if (s.slideShadows) {
45955
45981
  let H = b.querySelector(".swiper-slide-shadow");
@@ -46179,8 +46205,8 @@ function sD() {
46179
46205
  }
46180
46206
  function oD() {
46181
46207
  const l = this;
46182
- function e(I, U) {
46183
- return parseFloat(I.getPropertyValue(l.getDirectionLabel(U)) || 0);
46208
+ function e(x, U) {
46209
+ return parseFloat(x.getPropertyValue(l.getDirectionLabel(U)) || 0);
46184
46210
  }
46185
46211
  const t = l.params, { wrapperEl: a, slidesEl: d, rtlTranslate: n, wrongRTL: i } = l, c = l.virtual && t.virtual.enabled, s = c ? l.virtual.slides.length : l.slides.length, o = Wa(d, `.${l.params.slideClass}, swiper-slide`), m = c ? l.virtual.slides.length : o.length;
46186
46212
  let u = [];
@@ -46190,19 +46216,19 @@ function oD() {
46190
46216
  let h = t.slidesOffsetAfter;
46191
46217
  typeof h == "function" && (h = t.slidesOffsetAfter.call(l));
46192
46218
  const p = l.snapGrid.length, W = l.slidesGrid.length, G = l.size - r - h;
46193
- let Y = t.spaceBetween, X = -r, M = 0, x = 0;
46219
+ let Y = t.spaceBetween, X = -r, M = 0, I = 0;
46194
46220
  if (typeof G > "u") return;
46195
- typeof Y == "string" && Y.indexOf("%") >= 0 ? Y = parseFloat(Y.replace("%", "")) / 100 * G : typeof Y == "string" && (Y = parseFloat(Y)), l.virtualSize = -Y - r - h, o.forEach((I) => {
46196
- n ? I.style.marginLeft = "" : I.style.marginRight = "", I.style.marginBottom = "", I.style.marginTop = "";
46221
+ typeof Y == "string" && Y.indexOf("%") >= 0 ? Y = parseFloat(Y.replace("%", "")) / 100 * G : typeof Y == "string" && (Y = parseFloat(Y)), l.virtualSize = -Y - r - h, o.forEach((x) => {
46222
+ n ? x.style.marginLeft = "" : x.style.marginRight = "", x.style.marginBottom = "", x.style.marginTop = "";
46197
46223
  }), t.centeredSlides && t.cssMode && (Hd(a, "--swiper-centered-offset-before", ""), Hd(a, "--swiper-centered-offset-after", "")), t.cssMode && (Hd(a, "--swiper-slides-offset-before", `${r}px`), Hd(a, "--swiper-slides-offset-after", `${h}px`));
46198
46224
  const z = t.grid && t.grid.rows > 1 && l.grid;
46199
46225
  z ? l.grid.initSlides(o) : l.grid && l.grid.unsetSlides();
46200
46226
  let V;
46201
- const S = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((I) => typeof t.breakpoints[I].slidesPerView < "u").length > 0;
46202
- for (let I = 0; I < m; I += 1) {
46227
+ const S = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((x) => typeof t.breakpoints[x].slidesPerView < "u").length > 0;
46228
+ for (let x = 0; x < m; x += 1) {
46203
46229
  V = 0;
46204
- const U = o[I];
46205
- if (!(U && (z && l.grid.updateSlide(I, U, o), ld(U, "display") === "none"))) {
46230
+ const U = o[x];
46231
+ if (!(U && (z && l.grid.updateSlide(x, U, o), ld(U, "display") === "none"))) {
46206
46232
  if (c && t.slidesPerView === "auto")
46207
46233
  t.virtual.slidesPerViewAutoSlideSize && (V = t.virtual.slidesPerViewAutoSlideSize), V && U && (t.roundLengths && (V = Math.floor(V)), U.style[l.getDirectionLabel("width")] = `${V}px`);
46208
46234
  else if (t.slidesPerView === "auto") {
@@ -46220,11 +46246,11 @@ function oD() {
46220
46246
  H && (U.style.transform = H), Q && (U.style.webkitTransform = Q), t.roundLengths && (V = Math.floor(V));
46221
46247
  } else
46222
46248
  V = (G - (t.slidesPerView - 1) * Y) / t.slidesPerView, t.roundLengths && (V = Math.floor(V)), U && (U.style[l.getDirectionLabel("width")] = `${V}px`);
46223
- U && (U.swiperSlideSize = V), b.push(V), t.centeredSlides ? (X = X + V / 2 + M / 2 + Y, M === 0 && I !== 0 && (X = X - G / 2 - Y), I === 0 && (X = X - G / 2 - Y), Math.abs(X) < 1 / 1e3 && (X = 0), t.roundLengths && (X = Math.floor(X)), x % t.slidesPerGroup === 0 && u.push(X), Z.push(X)) : (t.roundLengths && (X = Math.floor(X)), (x - Math.min(l.params.slidesPerGroupSkip, x)) % l.params.slidesPerGroup === 0 && u.push(X), Z.push(X), X = X + V + Y), l.virtualSize += V + Y, M = V, x += 1;
46249
+ U && (U.swiperSlideSize = V), b.push(V), t.centeredSlides ? (X = X + V / 2 + M / 2 + Y, M === 0 && x !== 0 && (X = X - G / 2 - Y), x === 0 && (X = X - G / 2 - Y), Math.abs(X) < 1 / 1e3 && (X = 0), t.roundLengths && (X = Math.floor(X)), I % t.slidesPerGroup === 0 && u.push(X), Z.push(X)) : (t.roundLengths && (X = Math.floor(X)), (I - Math.min(l.params.slidesPerGroupSkip, I)) % l.params.slidesPerGroup === 0 && u.push(X), Z.push(X), X = X + V + Y), l.virtualSize += V + Y, M = V, I += 1;
46224
46250
  }
46225
46251
  }
46226
46252
  if (l.virtualSize = Math.max(l.virtualSize, G) + h, n && i && (t.effect === "slide" || t.effect === "coverflow") && (a.style.width = `${l.virtualSize + Y}px`), t.setWrapperSize && (a.style[l.getDirectionLabel("width")] = `${l.virtualSize + Y}px`), z && l.grid.updateWrapperSize(V, u), !t.centeredSlides) {
46227
- const I = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, U = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || I);
46253
+ const x = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, U = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || x);
46228
46254
  let f = u.length;
46229
46255
  if (U) {
46230
46256
  let Q;
@@ -46244,34 +46270,34 @@ function oD() {
46244
46270
  u = H, Math.floor(l.virtualSize - G) - Math.floor(u[u.length - 1]) > 1 && (U || u.push(l.virtualSize - G));
46245
46271
  }
46246
46272
  if (c && t.loop) {
46247
- const I = b[0] + Y;
46273
+ const x = b[0] + Y;
46248
46274
  if (t.slidesPerGroup > 1) {
46249
- const U = Math.ceil((l.virtual.slidesBefore + l.virtual.slidesAfter) / t.slidesPerGroup), f = I * t.slidesPerGroup;
46275
+ const U = Math.ceil((l.virtual.slidesBefore + l.virtual.slidesAfter) / t.slidesPerGroup), f = x * t.slidesPerGroup;
46250
46276
  for (let H = 0; H < U; H += 1) u.push(u[u.length - 1] + f);
46251
46277
  }
46252
46278
  for (let U = 0; U < l.virtual.slidesBefore + l.virtual.slidesAfter; U += 1)
46253
- t.slidesPerGroup === 1 && u.push(u[u.length - 1] + I), Z.push(Z[Z.length - 1] + I), l.virtualSize += I;
46279
+ t.slidesPerGroup === 1 && u.push(u[u.length - 1] + x), Z.push(Z[Z.length - 1] + x), l.virtualSize += x;
46254
46280
  }
46255
46281
  if (u.length === 0 && (u = [0]), Y !== 0) {
46256
- const I = l.isHorizontal() && n ? "marginLeft" : l.getDirectionLabel("marginRight");
46282
+ const x = l.isHorizontal() && n ? "marginLeft" : l.getDirectionLabel("marginRight");
46257
46283
  o.filter((U, f) => !t.cssMode || t.loop ? !0 : f !== o.length - 1).forEach((U) => {
46258
- U.style[I] = `${Y}px`;
46284
+ U.style[x] = `${Y}px`;
46259
46285
  });
46260
46286
  }
46261
46287
  if (t.centeredSlides && t.centeredSlidesBounds) {
46262
- let I = 0;
46288
+ let x = 0;
46263
46289
  b.forEach((f) => {
46264
- I += f + (Y || 0);
46265
- }), I -= Y;
46266
- const U = I > G ? I - G : 0;
46290
+ x += f + (Y || 0);
46291
+ }), x -= Y;
46292
+ const U = x > G ? x - G : 0;
46267
46293
  u = u.map((f) => f <= 0 ? -r : f > U ? U + h : f);
46268
46294
  }
46269
46295
  if (t.centerInsufficientSlides) {
46270
- let I = 0;
46296
+ let x = 0;
46271
46297
  if (b.forEach((U) => {
46272
- I += U + (Y || 0);
46273
- }), I -= Y, I < G) {
46274
- const U = (G - I) / 2;
46298
+ x += U + (Y || 0);
46299
+ }), x -= Y, x < G) {
46300
+ const U = (G - x) / 2;
46275
46301
  u.forEach((f, H) => {
46276
46302
  u[H] = f - U;
46277
46303
  }), Z.forEach((f, H) => {
@@ -46286,12 +46312,12 @@ function oD() {
46286
46312
  slidesSizesGrid: b
46287
46313
  }), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) {
46288
46314
  Hd(a, "--swiper-centered-offset-before", `${-u[0]}px`), Hd(a, "--swiper-centered-offset-after", `${l.size / 2 - b[b.length - 1] / 2}px`);
46289
- const I = -l.snapGrid[0], U = -l.slidesGrid[0];
46290
- l.snapGrid = l.snapGrid.map((f) => f + I), l.slidesGrid = l.slidesGrid.map((f) => f + U);
46315
+ const x = -l.snapGrid[0], U = -l.slidesGrid[0];
46316
+ l.snapGrid = l.snapGrid.map((f) => f + x), l.slidesGrid = l.slidesGrid.map((f) => f + U);
46291
46317
  }
46292
46318
  if (m !== s && l.emit("slidesLengthChange"), u.length !== p && (l.params.watchOverflow && l.checkOverflow(), l.emit("snapGridLengthChange")), Z.length !== W && l.emit("slidesGridLengthChange"), t.watchSlidesProgress && l.updateSlidesOffset(), l.emit("slidesUpdated"), !c && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) {
46293
- const I = `${t.containerModifierClass}backface-hidden`, U = l.el.classList.contains(I);
46294
- m <= t.maxBackfaceHiddenSlides ? U || l.el.classList.add(I) : U && l.el.classList.remove(I);
46319
+ const x = `${t.containerModifierClass}backface-hidden`, U = l.el.classList.contains(x);
46320
+ m <= t.maxBackfaceHiddenSlides ? U || l.el.classList.add(x) : U && l.el.classList.remove(x);
46295
46321
  }
46296
46322
  }
46297
46323
  function mD(l) {
@@ -46591,8 +46617,8 @@ function zD(l = 0, e, t = !0, a, d) {
46591
46617
  p >= s.length && (p = s.length - 1);
46592
46618
  const W = -s[p];
46593
46619
  if (c.normalizeSlideIndex) for (let M = 0; M < o.length; M += 1) {
46594
- const x = -Math.floor(W * 100), z = Math.floor(o[M] * 100), V = Math.floor(o[M + 1] * 100);
46595
- typeof o[M + 1] < "u" ? x >= z && x < V - (V - z) / 2 ? i = M : x >= z && x < V && (i = M + 1) : x >= z && (i = M);
46620
+ const I = -Math.floor(W * 100), z = Math.floor(o[M] * 100), V = Math.floor(o[M + 1] * 100);
46621
+ typeof o[M + 1] < "u" ? I >= z && I < V - (V - z) / 2 ? i = M : I >= z && I < V && (i = M + 1) : I >= z && (i = M);
46596
46622
  }
46597
46623
  if (n.initialized && i !== u && (!n.allowSlideNext && (Z ? W > n.translate && W > n.minTranslate() : W < n.translate && W < n.minTranslate()) || !n.allowSlidePrev && W > n.translate && W > n.maxTranslate() && (u || 0) !== i))
46598
46624
  return !1;
@@ -46603,30 +46629,30 @@ function zD(l = 0, e, t = !0, a, d) {
46603
46629
  if (!(Y && d) && (Z && -W === n.translate || !Z && W === n.translate))
46604
46630
  return n.updateActiveIndex(i), c.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), c.effect !== "slide" && n.setTranslate(W), G !== "reset" && (n.transitionStart(t, G), n.transitionEnd(t, G)), !1;
46605
46631
  if (c.cssMode) {
46606
- const M = n.isHorizontal(), x = Z ? W : -W;
46632
+ const M = n.isHorizontal(), I = Z ? W : -W;
46607
46633
  if (e === 0)
46608
46634
  Y && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = !0), Y && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
46609
- b[M ? "scrollLeft" : "scrollTop"] = x;
46610
- })) : b[M ? "scrollLeft" : "scrollTop"] = x, Y && requestAnimationFrame(() => {
46635
+ b[M ? "scrollLeft" : "scrollTop"] = I;
46636
+ })) : b[M ? "scrollLeft" : "scrollTop"] = I, Y && requestAnimationFrame(() => {
46611
46637
  n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = !1;
46612
46638
  });
46613
46639
  else {
46614
46640
  if (!n.support.smoothScroll)
46615
46641
  return w5({
46616
46642
  swiper: n,
46617
- targetPosition: x,
46643
+ targetPosition: I,
46618
46644
  side: M ? "left" : "top"
46619
46645
  }), !0;
46620
46646
  b.scrollTo({
46621
- [M ? "left" : "top"]: x,
46647
+ [M ? "left" : "top"]: I,
46622
46648
  behavior: "smooth"
46623
46649
  });
46624
46650
  }
46625
46651
  return !0;
46626
46652
  }
46627
46653
  const X = F5().isSafari;
46628
- return Y && !d && X && n.isElement && n.virtual.update(!1, !1, i), n.setTransition(e), n.setTranslate(W), n.updateActiveIndex(i), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, a), n.transitionStart(t, G), e === 0 ? n.transitionEnd(t, G) : n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(x) {
46629
- !n || n.destroyed || x.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(t, G));
46654
+ return Y && !d && X && n.isElement && n.virtual.update(!1, !1, i), n.setTransition(e), n.setTranslate(W), n.updateActiveIndex(i), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, a), n.transitionStart(t, G), e === 0 ? n.transitionEnd(t, G) : n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(I) {
46655
+ !n || n.destroyed || I.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(t, G));
46630
46656
  }), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), !0;
46631
46657
  }
46632
46658
  function wD(l = 0, e, t = !0, a) {
@@ -46796,28 +46822,28 @@ function fD({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
46796
46822
  const X = b.slidesPerGroupAuto ? Y : b.slidesPerGroup;
46797
46823
  let M = G ? Math.max(X, Math.ceil(Y / 2)) : X;
46798
46824
  M % X !== 0 && (M += X - M % X), M += b.loopAdditionalSlides, s.loopedSlides = M;
46799
- const x = s.grid && b.grid && b.grid.rows > 1;
46800
- o.length < Y + M || s.params.effect === "cards" && o.length < Y + M * 2 ? ms("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : x && b.grid.fill === "row" && ms("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
46801
- const z = [], V = [], S = x ? Math.ceil(o.length / b.grid.rows) : o.length, I = n && S - W < Y && !G;
46802
- let U = I ? W : s.activeIndex;
46825
+ const I = s.grid && b.grid && b.grid.rows > 1;
46826
+ o.length < Y + M || s.params.effect === "cards" && o.length < Y + M * 2 ? ms("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : I && b.grid.fill === "row" && ms("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
46827
+ const z = [], V = [], S = I ? Math.ceil(o.length / b.grid.rows) : o.length, x = n && S - W < Y && !G;
46828
+ let U = x ? W : s.activeIndex;
46803
46829
  typeof d > "u" ? d = s.getSlideIndex(o.find((O) => O.classList.contains(b.slideActiveClass))) : U = d;
46804
46830
  const f = t === "next" || !t, H = t === "prev" || !t;
46805
46831
  let Q = 0, el = 0;
46806
- const dl = (x ? o[d].column : d) + (G && typeof a > "u" ? -Y / 2 + 0.5 : 0);
46832
+ const dl = (I ? o[d].column : d) + (G && typeof a > "u" ? -Y / 2 + 0.5 : 0);
46807
46833
  if (dl < M) {
46808
46834
  Q = Math.max(M - dl, X);
46809
46835
  for (let O = 0; O < M - dl; O += 1) {
46810
46836
  const ll = O - Math.floor(O / S) * S;
46811
- if (x) {
46837
+ if (I) {
46812
46838
  const al = S - ll - 1;
46813
46839
  for (let F = o.length - 1; F >= 0; F -= 1) o[F].column === al && z.push(F);
46814
46840
  } else z.push(S - ll - 1);
46815
46841
  }
46816
46842
  } else if (dl + Y > S - M) {
46817
- el = Math.max(dl - (S - M * 2), X), I && (el = Math.max(el, Y - S + W + 1));
46843
+ el = Math.max(dl - (S - M * 2), X), x && (el = Math.max(el, Y - S + W + 1));
46818
46844
  for (let O = 0; O < el; O += 1) {
46819
46845
  const ll = O - Math.floor(O / S) * S;
46820
- x ? o.forEach((al, F) => {
46846
+ I ? o.forEach((al, F) => {
46821
46847
  al.column === ll && V.push(F);
46822
46848
  }) : V.push(ll);
46823
46849
  }
@@ -46828,7 +46854,7 @@ function fD({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
46828
46854
  o[O].swiperLoopMoveDOM = !0, Z.prepend(o[O]), o[O].swiperLoopMoveDOM = !1;
46829
46855
  }), f && V.forEach((O) => {
46830
46856
  o[O].swiperLoopMoveDOM = !0, Z.append(o[O]), o[O].swiperLoopMoveDOM = !1;
46831
- }), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : x && (z.length > 0 && H || V.length > 0 && f) && s.slides.forEach((O, ll) => {
46857
+ }), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : I && (z.length > 0 && H || V.length > 0 && f) && s.slides.forEach((O, ll) => {
46832
46858
  s.grid.updateSlide(ll, O, s.slides);
46833
46859
  }), b.watchSlidesProgress && s.updateSlidesOffset(), e) {
46834
46860
  if (z.length > 0 && H) {
@@ -46836,14 +46862,14 @@ function fD({ slideRealIndex: l, slideTo: e = !0, direction: t, setTranslate: a,
46836
46862
  const O = s.slidesGrid[U], ll = s.slidesGrid[U + Q] - O;
46837
46863
  c ? s.setTranslate(s.translate - ll) : (s.slideTo(U + Math.ceil(Q), 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - ll, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - ll));
46838
46864
  } else if (a) {
46839
- const O = x ? z.length / b.grid.rows : z.length;
46865
+ const O = I ? z.length / b.grid.rows : z.length;
46840
46866
  s.slideTo(s.activeIndex + O, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
46841
46867
  }
46842
46868
  } else if (V.length > 0 && f) if (typeof l > "u") {
46843
46869
  const O = s.slidesGrid[U], ll = s.slidesGrid[U - el] - O;
46844
46870
  c ? s.setTranslate(s.translate - ll) : (s.slideTo(U - el, 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - ll, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - ll));
46845
46871
  } else {
46846
- const O = x ? V.length / b.grid.rows : V.length;
46872
+ const O = I ? V.length / b.grid.rows : V.length;
46847
46873
  s.slideTo(s.activeIndex - O, 0, !1, !0);
46848
46874
  }
46849
46875
  }
@@ -47207,8 +47233,8 @@ function eU() {
47207
47233
  "scrollbar"
47208
47234
  ].forEach((M) => {
47209
47235
  if (typeof m[M] > "u") return;
47210
- const x = a[M] && a[M].enabled, z = m[M] && m[M].enabled;
47211
- x && !z && l[M].disable(), !x && z && l[M].enable();
47236
+ const I = a[M] && a[M].enabled, z = m[M] && m[M].enabled;
47237
+ I && !z && l[M].disable(), !I && z && l[M].enable();
47212
47238
  });
47213
47239
  const p = m.direction && m.direction !== a.direction, W = a.loop && (m.slidesPerView !== a.slidesPerView || p), G = a.loop;
47214
47240
  p && t && l.changeDirection(), zt(l.params, m);
@@ -47811,19 +47837,19 @@ function ZU(l = "") {
47811
47837
  }
47812
47838
  function uU({ swiper: l, slides: e, passedParams: t, changedParams: a, nextEl: d, prevEl: n, scrollbarEl: i, paginationEl: c }) {
47813
47839
  const s = a.filter((V) => V !== "children" && V !== "direction" && V !== "wrapperClass"), { params: o, pagination: m, navigation: u, scrollbar: Z, virtual: b, thumbs: r } = l;
47814
- let h, p, W, G, Y, X, M, x;
47840
+ let h, p, W, G, Y, X, M, I;
47815
47841
  a.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && o.thumbs && (!o.thumbs.swiper || o.thumbs.swiper.destroyed) && (h = !0), a.includes("controller") && t.controller && t.controller.control && o.controller && !o.controller.control && (p = !0), a.includes("pagination") && t.pagination && (t.pagination.el || c) && (o.pagination || o.pagination === !1) && m && !m.el && (W = !0), a.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || i) && (o.scrollbar || o.scrollbar === !1) && Z && !Z.el && (G = !0), a.includes("navigation") && t.navigation && (t.navigation.prevEl || n) && (t.navigation.nextEl || d) && (o.navigation || o.navigation === !1) && u && !u.prevEl && !u.nextEl && (Y = !0);
47816
47842
  const z = (V) => {
47817
47843
  l[V] && (l[V].destroy(), V === "navigation" ? (l.isElement && (l[V].prevEl.remove(), l[V].nextEl.remove()), o[V].prevEl = void 0, o[V].nextEl = void 0, l[V].prevEl = void 0, l[V].nextEl = void 0) : (l.isElement && l[V].el.remove(), o[V].el = void 0, l[V].el = void 0));
47818
47844
  };
47819
- a.includes("loop") && l.isElement && (o.loop && !t.loop ? X = !0 : !o.loop && t.loop ? M = !0 : x = !0), s.forEach((V) => {
47845
+ a.includes("loop") && l.isElement && (o.loop && !t.loop ? X = !0 : !o.loop && t.loop ? M = !0 : I = !0), s.forEach((V) => {
47820
47846
  if (vd(o[V]) && vd(t[V]))
47821
47847
  Object.assign(o[V], t[V]), (V === "navigation" || V === "pagination" || V === "scrollbar") && "enabled" in t[V] && !t[V].enabled && z(V);
47822
47848
  else {
47823
47849
  const S = t[V];
47824
47850
  (S === !0 || S === !1) && (V === "navigation" || V === "pagination" || V === "scrollbar") ? S === !1 && z(V) : o[V] = t[V];
47825
47851
  }
47826
- }), s.includes("controller") && !p && l.controller && l.controller.control && o.controller && o.controller.control && (l.controller.control = o.controller.control), a.includes("children") && e && b && o.virtual.enabled ? (b.slides = e, b.update(!0)) : a.includes("virtual") && b && o.virtual.enabled && (e && (b.slides = e), b.update(!0)), a.includes("children") && e && o.loop && (x = !0), h && r.init() && r.update(!0), p && (l.controller.control = o.controller.control), W && (l.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), l.el.appendChild(c)), c && (o.pagination.el = c), m.init(), m.render(), m.update()), G && (l.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-scrollbar"), i.part.add("scrollbar"), l.el.appendChild(i)), i && (o.scrollbar.el = i), Z.init(), Z.updateSize(), Z.setTranslate()), Y && (l.isElement && ((!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-next"), Yi(d, l.navigation.arrowSvg), d.part.add("button-next"), l.el.appendChild(d)), (!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-prev"), Yi(n, l.navigation.arrowSvg), n.part.add("button-prev"), l.el.appendChild(n))), d && (o.navigation.nextEl = d), n && (o.navigation.prevEl = n), u.init(), u.update()), a.includes("allowSlideNext") && (l.allowSlideNext = t.allowSlideNext), a.includes("allowSlidePrev") && (l.allowSlidePrev = t.allowSlidePrev), a.includes("direction") && l.changeDirection(t.direction, !1), (X || x) && l.loopDestroy(), (M || x) && l.loopCreate(), l.update();
47852
+ }), s.includes("controller") && !p && l.controller && l.controller.control && o.controller && o.controller.control && (l.controller.control = o.controller.control), a.includes("children") && e && b && o.virtual.enabled ? (b.slides = e, b.update(!0)) : a.includes("virtual") && b && o.virtual.enabled && (e && (b.slides = e), b.update(!0)), a.includes("children") && e && o.loop && (I = !0), h && r.init() && r.update(!0), p && (l.controller.control = o.controller.control), W && (l.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), l.el.appendChild(c)), c && (o.pagination.el = c), m.init(), m.render(), m.update()), G && (l.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-scrollbar"), i.part.add("scrollbar"), l.el.appendChild(i)), i && (o.scrollbar.el = i), Z.init(), Z.updateSize(), Z.setTranslate()), Y && (l.isElement && ((!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-next"), Yi(d, l.navigation.arrowSvg), d.part.add("button-next"), l.el.appendChild(d)), (!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-prev"), Yi(n, l.navigation.arrowSvg), n.part.add("button-prev"), l.el.appendChild(n))), d && (o.navigation.nextEl = d), n && (o.navigation.prevEl = n), u.init(), u.update()), a.includes("allowSlideNext") && (l.allowSlideNext = t.allowSlideNext), a.includes("allowSlidePrev") && (l.allowSlidePrev = t.allowSlidePrev), a.includes("direction") && l.changeDirection(t.direction, !1), (X || I) && l.loopDestroy(), (M || I) && l.loopCreate(), l.update();
47827
47853
  }
47828
47854
  function v0(l = {}, e = !0) {
47829
47855
  const t = { on: {} }, a = {}, d = {};
@@ -48512,7 +48538,7 @@ var GU = {
48512
48538
  }), Kt(() => {
48513
48539
  m.value && !m.value.destroyed && m.value.destroy(!0, !1);
48514
48540
  });
48515
- function x(z) {
48541
+ function I(z) {
48516
48542
  return G.virtual ? WU(m, z, i.value) : (z.forEach((V, S) => {
48517
48543
  V.props || (V.props = {}), V.props.swiperRef = m, V.props.swiperSlideIndex = S;
48518
48544
  }), z);
@@ -48526,7 +48552,7 @@ var GU = {
48526
48552
  V["container-start"],
48527
48553
  he(d, { class: ZU(G.wrapperClass) }, [
48528
48554
  V["wrapper-start"],
48529
- x(z),
48555
+ I(z),
48530
48556
  V["wrapper-end"]
48531
48557
  ]),
48532
48558
  k5(l) && [he("div", {
@@ -48750,10 +48776,10 @@ var GU = {
48750
48776
  }, i = k(null), c = k(!0), s = k(!1), o = k(a.index ?? a.initialSlide ?? 0);
48751
48777
  let m = !1, u = null;
48752
48778
  const Z = T(() => {
48753
- const I = {};
48754
- return a.slideWidth !== void 0 && (I.width = typeof a.slideWidth == "number" ? `${a.slideWidth}px` : a.slideWidth), I;
48779
+ const x = {};
48780
+ return a.slideWidth !== void 0 && (x.width = typeof a.slideWidth == "number" ? `${a.slideWidth}px` : a.slideWidth), x;
48755
48781
  }), b = T(() => n[a.variant]), r = T(() => a.slidesPerView !== void 0 ? a.slidesPerView : b.value.slidesPerView !== void 0 ? b.value.slidesPerView : a.slideWidth !== void 0 ? "auto" : 1), h = T(() => {
48756
- const I = (el, dl, O) => el !== void 0 ? el : b.value[dl] !== void 0 ? b.value[dl] : O, U = {
48782
+ const x = (el, dl, O) => el !== void 0 ? el : b.value[dl] !== void 0 ? b.value[dl] : O, U = {
48757
48783
  modules: [
48758
48784
  BC,
48759
48785
  QC,
@@ -48764,21 +48790,21 @@ var GU = {
48764
48790
  qC,
48765
48791
  eD
48766
48792
  ],
48767
- effect: I(a.effect, "effect", "slide"),
48793
+ effect: x(a.effect, "effect", "slide"),
48768
48794
  direction: a.direction ?? "horizontal",
48769
- speed: I(a.speed, "speed", 300),
48770
- loop: I(a.loop, "loop", !1),
48795
+ speed: x(a.speed, "speed", 300),
48796
+ loop: x(a.loop, "loop", !1),
48771
48797
  initialSlide: a.index ?? a.initialSlide,
48772
48798
  slidesPerView: r.value,
48773
- spaceBetween: I(a.spaceBetween, "spaceBetween", 0),
48774
- centeredSlides: I(a.centeredSlides, "centeredSlides", !1),
48799
+ spaceBetween: x(a.spaceBetween, "spaceBetween", 0),
48800
+ centeredSlides: x(a.centeredSlides, "centeredSlides", !1),
48775
48801
  grabCursor: a.grabCursor,
48776
48802
  keyboard: a.keyboard,
48777
48803
  mousewheel: a.mousewheel,
48778
48804
  autoHeight: a.autoHeight
48779
- }, f = I(a.pagination, "pagination", !1);
48805
+ }, f = x(a.pagination, "pagination", !1);
48780
48806
  U.pagination = f ? typeof f == "boolean" ? { clickable: !0 } : f : !1;
48781
- const H = I(a.autoplay, "autoplay", !1);
48807
+ const H = x(a.autoplay, "autoplay", !1);
48782
48808
  U.autoplay = H ? typeof H == "boolean" ? { delay: 3e3 } : H : !1, (U.effect || "slide") === "coverflow" && (U.coverflowEffect = {
48783
48809
  rotate: 0,
48784
48810
  stretch: 0,
@@ -48788,7 +48814,7 @@ var GU = {
48788
48814
  ...b.value.coverflowEffect,
48789
48815
  ...a.coverflowEffect
48790
48816
  });
48791
- const Q = I(a.breakpoints, "breakpoints", void 0);
48817
+ const Q = x(a.breakpoints, "breakpoints", void 0);
48792
48818
  return Q && (U.breakpoints = Q), a.advancedOptions ? {
48793
48819
  ...U,
48794
48820
  ...a.advancedOptions
@@ -48816,57 +48842,57 @@ var GU = {
48816
48842
  function G() {
48817
48843
  if (i.value && !m) {
48818
48844
  c.value = i.value.isBeginning, s.value = i.value.isEnd;
48819
- const I = a.loop ? i.value.realIndex : i.value.activeIndex;
48820
- o.value = I, d("update:index", I);
48845
+ const x = a.loop ? i.value.realIndex : i.value.activeIndex;
48846
+ o.value = x, d("update:index", x);
48821
48847
  }
48822
48848
  }
48823
- function Y(I) {
48824
- i.value && i.value.slideTo(I);
48849
+ function Y(x) {
48850
+ i.value && i.value.slideTo(x);
48825
48851
  }
48826
- function X(I) {
48827
- i.value && (I === "next" ? i.value.slideNext() : i.value.slidePrev());
48852
+ function X(x) {
48853
+ i.value && (x === "next" ? i.value.slideNext() : i.value.slidePrev());
48828
48854
  }
48829
- function M(I) {
48830
- i.value = I, G();
48855
+ function M(x) {
48856
+ i.value = x, G();
48831
48857
  }
48832
- function x(I) {
48858
+ function I(x) {
48833
48859
  u = null;
48834
- const U = I.target.closest("[data-item-index]"), f = Number(U?.dataset.itemIndex);
48860
+ const U = x.target.closest("[data-item-index]"), f = Number(U?.dataset.itemIndex);
48835
48861
  Number.isInteger(f) && (u = {
48836
- id: I.pointerId,
48862
+ id: x.pointerId,
48837
48863
  index: f,
48838
- startX: I.clientX,
48839
- startY: I.clientY,
48864
+ startX: x.clientX,
48865
+ startY: x.clientY,
48840
48866
  dragged: !1
48841
48867
  });
48842
48868
  }
48843
- function z(I) {
48844
- !u || u.id !== I.pointerId || u.dragged || (u.dragged = Math.hypot(I.clientX - u.startX, I.clientY - u.startY) > 6);
48869
+ function z(x) {
48870
+ !u || u.id !== x.pointerId || u.dragged || (u.dragged = Math.hypot(x.clientX - u.startX, x.clientY - u.startY) > 6);
48845
48871
  }
48846
- function V(I) {
48847
- if (!u || u.id !== I.pointerId) return;
48848
- const { index: U, startX: f, startY: H } = u, Q = u.dragged || Math.hypot(I.clientX - f, I.clientY - H) > 6;
48872
+ function V(x) {
48873
+ if (!u || u.id !== x.pointerId) return;
48874
+ const { index: U, startX: f, startY: H } = u, Q = u.dragged || Math.hypot(x.clientX - f, x.clientY - H) > 6;
48849
48875
  u = null;
48850
48876
  const el = a.items?.[U];
48851
48877
  !Q && el !== void 0 && d("item-activate", {
48852
48878
  item: el,
48853
48879
  index: U,
48854
- event: I
48880
+ event: x
48855
48881
  });
48856
48882
  }
48857
48883
  function S() {
48858
48884
  u = null;
48859
48885
  }
48860
- return xl(() => a.initialSlide, (I) => {
48861
- I !== void 0 && i.value && setTimeout(() => {
48862
- i.value && i.value.slideTo(I);
48886
+ return xl(() => a.initialSlide, (x) => {
48887
+ x !== void 0 && i.value && setTimeout(() => {
48888
+ i.value && i.value.slideTo(x);
48863
48889
  }, 1);
48864
- }, { immediate: !0 }), xl(() => a.index, (I) => {
48865
- I !== void 0 && (o.value = I, i.value && I !== (a.loop ? i.value.realIndex : i.value.activeIndex) && (m = !0, i.value.slideTo(I), setTimeout(() => {
48890
+ }, { immediate: !0 }), xl(() => a.index, (x) => {
48891
+ x !== void 0 && (o.value = x, i.value && x !== (a.loop ? i.value.realIndex : i.value.activeIndex) && (m = !0, i.value.slideTo(x), setTimeout(() => {
48866
48892
  m = !1;
48867
48893
  }, 50)));
48868
- }), xl(h, (I) => {
48869
- i.value && (Object.assign(i.value.params, I), i.value.update());
48894
+ }), xl(h, (x) => {
48895
+ i.value && (Object.assign(i.value.params, x), i.value.update());
48870
48896
  }, { deep: !0 }), e({
48871
48897
  swiper: W,
48872
48898
  slideNext: () => {
@@ -48880,13 +48906,13 @@ var GU = {
48880
48906
  isFirst: c,
48881
48907
  isLast: s,
48882
48908
  currentIndex: o
48883
- }), (I, U) => (L(), y("div", {
48909
+ }), (x, U) => (L(), y("div", {
48884
48910
  class: ul(["swi-wrap", {
48885
48911
  "pill-dots": l.pillDots,
48886
48912
  "has-navigation": l.navigation,
48887
48913
  "has-pagination": l.pagination
48888
48914
  }]),
48889
- onPointerdownCapture: x,
48915
+ onPointerdownCapture: I,
48890
48916
  onPointermoveCapture: z,
48891
48917
  onPointerupCapture: V,
48892
48918
  onPointercancelCapture: S
@@ -48904,7 +48930,7 @@ var GU = {
48904
48930
  style: Xl(Z.value),
48905
48931
  "data-item-index": H
48906
48932
  }, {
48907
- default: Tl(() => [Ll(I.$slots, "default", {
48933
+ default: Tl(() => [Ll(x.$slots, "default", {
48908
48934
  item: f,
48909
48935
  index: H,
48910
48936
  currentIndex: o.value
@@ -48913,7 +48939,7 @@ var GU = {
48913
48939
  }, 1032, ["style", "data-item-index"]))), 128))]),
48914
48940
  _: 3
48915
48941
  }, 16),
48916
- Ll(I.$slots, "navigation", {
48942
+ Ll(x.$slots, "navigation", {
48917
48943
  items: l.items || [],
48918
48944
  currentIndex: o.value,
48919
48945
  slideTo: Y,
@@ -48924,19 +48950,19 @@ var GU = {
48924
48950
  }, () => [l.navigation ? (L(), y("div", NU, [g("div", {
48925
48951
  class: "swi-prev hover",
48926
48952
  onClick: U[0] || (U[0] = (f) => X("prev"))
48927
- }, [Ll(I.$slots, "prev-button", { prev: () => X("prev") }, () => [il(N(fl), {
48953
+ }, [Ll(x.$slots, "prev-button", { prev: () => X("prev") }, () => [il(N(fl), {
48928
48954
  name: "chevron_left",
48929
48955
  class: "user-select-none z-99 color-white keep-white",
48930
48956
  size: 2
48931
48957
  })])]), g("div", {
48932
48958
  class: "swi-next hover",
48933
48959
  onClick: U[1] || (U[1] = (f) => X("next"))
48934
- }, [Ll(I.$slots, "next-button", { next: () => X("next") }, () => [il(N(fl), {
48960
+ }, [Ll(x.$slots, "next-button", { next: () => X("next") }, () => [il(N(fl), {
48935
48961
  name: "chevron_right",
48936
48962
  class: "user-select-none z-99 color-white keep-white",
48937
48963
  size: 2
48938
48964
  })])])])) : C("", !0)]),
48939
- l.pagination ? Ll(I.$slots, "pagination", { key: 0 }) : C("", !0)
48965
+ l.pagination ? Ll(x.$slots, "pagination", { key: 0 }) : C("", !0)
48940
48966
  ], 34));
48941
48967
  }
48942
48968
  }), LU = YU, XU = {}, yU = { class: "flex space-between" };
@@ -49041,7 +49067,7 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49041
49067
  set: (nl) => {
49042
49068
  b.value = nl, a("update:zoom", b.value);
49043
49069
  }
49044
- }), h = k(1), p = k(0), W = k(0), G = k("y"), Y = k(!1), X = k(-1), M = k(-1), x = k(0), z = k(!0), V = k(), S = k(), I = k(0), U = k(0), f = k(0), H = k(), Q = T(() => ({
49070
+ }), h = k(1), p = k(0), W = k(0), G = k("y"), Y = k(!1), X = k(-1), M = k(-1), I = k(0), z = k(!0), V = k(), S = k(), x = k(0), U = k(0), f = k(0), H = k(), Q = T(() => ({
49045
49071
  transform: [`translate(${n.value * m.value}px, ${i.value * Z.value}px)`, `scale(${h.value})`].join(" "),
49046
49072
  transformOrigin: "50% 50%"
49047
49073
  }));
@@ -49075,7 +49101,7 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49075
49101
  const K = Date.now(), P = nl - X.value, rl = ol - M.value;
49076
49102
  if (!z.value) {
49077
49103
  const Sl = K - f.value;
49078
- Sl > 0 && (I.value = P / Sl, U.value = rl / Sl);
49104
+ Sl > 0 && (x.value = P / Sl, U.value = rl / Sl);
49079
49105
  const Kl = B(), ae = Kl.x, ne = Kl.y, Vl = o.value + P / n.value, Fl = u.value + rl / i.value;
49080
49106
  o.value = Math.max(-ae, Math.min(ae, Vl)), u.value = Math.max(-ne, Math.min(ne, Fl)), f.value = K;
49081
49107
  }
@@ -49083,15 +49109,15 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49083
49109
  X.value = nl, M.value = ol;
49084
49110
  }
49085
49111
  function al() {
49086
- if (Math.abs(I.value) < 0.01 && Math.abs(U.value) < 0.01) {
49087
- I.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0);
49112
+ if (Math.abs(x.value) < 0.01 && Math.abs(U.value) < 0.01) {
49113
+ x.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0);
49088
49114
  return;
49089
49115
  }
49090
- const nl = B(), ol = o.value + I.value * 16 / n.value, K = u.value + U.value * 16 / i.value;
49091
- o.value = Math.max(-nl.x, Math.min(nl.x, ol)), u.value = Math.max(-nl.y, Math.min(nl.y, K)), I.value *= 0.95, U.value *= 0.95, H.value = requestAnimationFrame(al);
49116
+ const nl = B(), ol = o.value + x.value * 16 / n.value, K = u.value + U.value * 16 / i.value;
49117
+ o.value = Math.max(-nl.x, Math.min(nl.x, ol)), u.value = Math.max(-nl.y, Math.min(nl.y, K)), x.value *= 0.95, U.value *= 0.95, H.value = requestAnimationFrame(al);
49092
49118
  }
49093
49119
  const F = /* @__PURE__ */ Yn(() => {
49094
- _(), z.value = r.value === 1, !z.value && (Math.abs(I.value) > 0.1 || Math.abs(U.value) > 0.1) ? (H.value && cancelAnimationFrame(H.value), al()) : (I.value = 0, U.value = 0);
49120
+ _(), z.value = r.value === 1, !z.value && (Math.abs(x.value) > 0.1 || Math.abs(U.value) > 0.1) ? (H.value && cancelAnimationFrame(H.value), al()) : (x.value = 0, U.value = 0);
49095
49121
  }, 50);
49096
49122
  function _() {
49097
49123
  if (r.value < l.minScale ? r.value = l.minScale : r.value > l.maxScale && dl(l.maxScale / r.value), l.limitTranslation) {
@@ -49116,7 +49142,7 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49116
49142
  dl(1.15 ** (nl / 120)), F();
49117
49143
  }
49118
49144
  function j(nl) {
49119
- tl(), Y.value = !0, X.value = nl.clientX, M.value = nl.clientY, f.value = Date.now(), I.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0), document.addEventListener("mousemove", ml), document.addEventListener("mouseup", v);
49145
+ tl(), Y.value = !0, X.value = nl.clientX, M.value = nl.clientY, f.value = Date.now(), x.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0), document.addEventListener("mousemove", ml), document.addEventListener("mouseup", v);
49120
49146
  }
49121
49147
  function v() {
49122
49148
  Y.value = !1, F(), document.removeEventListener("mouseup", v), document.removeEventListener("mousemove", ml);
@@ -49126,11 +49152,11 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49126
49152
  }
49127
49153
  function E(nl) {
49128
49154
  if (nl.touches.length === 1)
49129
- tl(), X.value = nl.touches[0].clientX, M.value = nl.touches[0].clientY, f.value = Date.now(), I.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0), Y.value = !0;
49155
+ tl(), X.value = nl.touches[0].clientX, M.value = nl.touches[0].clientY, f.value = Date.now(), x.value = 0, U.value = 0, H.value && (cancelAnimationFrame(H.value), H.value = void 0), Y.value = !0;
49130
49156
  else if (nl.touches.length === 2) {
49131
- H.value && (cancelAnimationFrame(H.value), H.value = void 0), I.value = 0, U.value = 0, Y.value = !0, X.value = (nl.touches[0].clientX + nl.touches[1].clientX) / 2, M.value = (nl.touches[0].clientY + nl.touches[1].clientY) / 2;
49157
+ H.value && (cancelAnimationFrame(H.value), H.value = void 0), x.value = 0, U.value = 0, Y.value = !0, X.value = (nl.touches[0].clientX + nl.touches[1].clientX) / 2, M.value = (nl.touches[0].clientY + nl.touches[1].clientY) / 2;
49132
49158
  const ol = nl.touches[0].clientX - nl.touches[1].clientX, K = nl.touches[0].clientY - nl.touches[1].clientY;
49133
- x.value = Math.sqrt(ol * ol + K * K);
49159
+ I.value = Math.sqrt(ol * ol + K * K);
49134
49160
  }
49135
49161
  document.addEventListener("touchend", Gl);
49136
49162
  }
@@ -49143,7 +49169,7 @@ var kB = /* @__PURE__ */ Jl(XU, [["render", MU]]), VU = class {
49143
49169
  else if (nl.touches.length === 2) {
49144
49170
  nl.stopPropagation();
49145
49171
  const ol = nl.touches[0].clientX - nl.touches[1].clientX, K = nl.touches[0].clientY - nl.touches[1].clientY, P = Math.sqrt(ol * ol + K * K);
49146
- dl(P / x.value), x.value = P;
49172
+ dl(P / I.value), I.value = P;
49147
49173
  }
49148
49174
  }
49149
49175
  function tl() {
@@ -50918,9 +50944,9 @@ function s8() {
50918
50944
  }
50919
50945
  async function t(u, Z = "data", b) {
50920
50946
  const r = Ul(b) || tO(u), h = await e(), p = U0(u, r), W = r.length > 0 ? r.map((X) => {
50921
- const { id: M, label: x } = X;
50947
+ const { id: M, label: I } = X;
50922
50948
  return {
50923
- v: x || M,
50949
+ v: I || M,
50924
50950
  t: "s"
50925
50951
  };
50926
50952
  }) : [], G = h.utils.json_to_sheet(p);
@@ -50956,9 +50982,9 @@ function s8() {
50956
50982
  b ? (W = p[0].map((X) => String(X || "").trim()), G = 1) : W = p[0].map((X, M) => String.fromCharCode(65 + M));
50957
50983
  const Y = [];
50958
50984
  for (let X = G; X < p.length; X++) {
50959
- const M = p[X], x = {};
50960
- for (let z = 0; z < W.length; z++) z < M.length ? x[W[z]] = M[z] : x[W[z]] = "";
50961
- Y.push(x);
50985
+ const M = p[X], I = {};
50986
+ for (let z = 0; z < W.length; z++) z < M.length ? I[W[z]] = M[z] : I[W[z]] = "";
50987
+ Y.push(I);
50962
50988
  }
50963
50989
  return {
50964
50990
  headers: W,
@@ -51778,7 +51804,7 @@ var vO = /* @__PURE__ */ Il({
51778
51804
  });
51779
51805
  return F;
51780
51806
  });
51781
- function x(F) {
51807
+ function I(F) {
51782
51808
  if (!a.schema._class?.split(/\s+/).includes("free-grid")) return;
51783
51809
  const { rowStart: _, rowSpan: B, mRowStart: J, mRowSpan: w } = SO(F._class);
51784
51810
  if (!(!_ && !J && !B && !w))
@@ -51801,7 +51827,7 @@ var vO = /* @__PURE__ */ Il({
51801
51827
  }) : F == null || F === "" || F === !1 && _._type === "checkbox" || Array.isArray(F) && F.length === 0 || _._type === "tel" && typeof F == "string" && /^\+\d+$/.test(F);
51802
51828
  }
51803
51829
  function S(F, _) {
51804
- const B = I(F);
51830
+ const B = x(F);
51805
51831
  if (_._config.required === !0 && V(B, _, F))
51806
51832
  return r.value = {
51807
51833
  ...r.value,
@@ -51832,7 +51858,7 @@ var vO = /* @__PURE__ */ Il({
51832
51858
  }
51833
51859
  return r.value = Object.fromEntries(Object.entries(r.value).filter(([w]) => w !== F)), !0;
51834
51860
  }
51835
- function I(F) {
51861
+ function x(F) {
51836
51862
  return i(b.value, F);
51837
51863
  }
51838
51864
  function U(F, _) {
@@ -51881,7 +51907,7 @@ var vO = /* @__PURE__ */ Il({
51881
51907
  function Q(F, _) {
51882
51908
  const B = U(_, F), { helpText: J, ...w } = F._config, j = a.schema._class?.split(/\s+/).includes("free-grid") ?? !1, v = {
51883
51909
  label: B,
51884
- modelValue: I(_),
51910
+ modelValue: x(_),
51885
51911
  "onUpdate:modelValue": (ml) => {
51886
51912
  z(_, ml, F);
51887
51913
  },
@@ -51898,7 +51924,7 @@ var vO = /* @__PURE__ */ Il({
51898
51924
  if (F._type === "json" && (v.language = v.language ?? "json"), F._type === "array") {
51899
51925
  delete v.default, delete v.schema, delete v.itemType;
51900
51926
  const { helpText: ml, ...E } = Object.fromEntries(Object.entries(F._config).filter(([Gl]) => Gl !== "schema" && Gl !== "itemType" && Gl !== "default"));
51901
- Object.assign(v, E), ml != null && (v.helptext = ml), delete v.helpText, v.modelValue = I(_), v["onUpdate:modelValue"] = (Gl) => {
51927
+ Object.assign(v, E), ml != null && (v.helptext = ml), delete v.helpText, v.modelValue = x(_), v["onUpdate:modelValue"] = (Gl) => {
51902
51928
  z(_, Gl, F);
51903
51929
  }, v.allowAdd = v.allowAdd ?? !0, v.allowDelete = v.allowDelete ?? !0;
51904
51930
  }
@@ -51920,7 +51946,7 @@ var vO = /* @__PURE__ */ Il({
51920
51946
  let F = !0;
51921
51947
  const _ = {};
51922
51948
  for (const { key: B, field: J } of M.value) {
51923
- const w = I(B);
51949
+ const w = x(B);
51924
51950
  if (J._config.required === !0 && V(w, J, B)) {
51925
51951
  _[B] = J._config.requiredMessage ?? n("form.required"), F = !1;
51926
51952
  continue;
@@ -51993,9 +52019,9 @@ var vO = /* @__PURE__ */ Il({
51993
52019
  (L(!0), y(yl, null, Rl(M.value, ({ key: J, field: w }) => (L(), y("div", {
51994
52020
  key: X(J, w),
51995
52021
  class: ul([w._class, w._config.class]),
51996
- style: Xl(x(w))
52022
+ style: Xl(I(w))
51997
52023
  }, [Ll(F.$slots, `field:${J}`, {
51998
- value: I(J),
52024
+ value: x(J),
51999
52025
  field: w,
52000
52026
  formData: b.value,
52001
52027
  error: r.value[J],
@@ -53518,7 +53544,7 @@ var iE = { class: "multi-step-form" }, cE = { class: "step-progress" }, sE = ["o
53518
53544
  const H = f.replace(/\[(\d+)\]/g, ".$1");
53519
53545
  return u(s.value, H);
53520
53546
  }
53521
- function x(f) {
53547
+ function I(f) {
53522
53548
  return !!(f == null || typeof f == "string" && f.trim() === "" || Array.isArray(f) && f.length === 0);
53523
53549
  }
53524
53550
  function z() {
@@ -53527,11 +53553,11 @@ var iE = { class: "multi-step-form" }, cE = { class: "step-progress" }, sE = ["o
53527
53553
  for (const [Q, el] of Object.entries(H)) {
53528
53554
  if (el._type === "display" || !X(el)) continue;
53529
53555
  const dl = M(Q), O = el._config;
53530
- if (O.required === !0 && x(dl)) {
53556
+ if (O.required === !0 && I(dl)) {
53531
53557
  f[Q] = `${typeof O.label == "string" ? O.label : Q} is required`;
53532
53558
  continue;
53533
53559
  }
53534
- if (el._validations && !x(dl)) for (const ll of el._validations) {
53560
+ if (el._validations && !I(dl)) for (const ll of el._validations) {
53535
53561
  const al = ll(dl);
53536
53562
  if (al !== !0) {
53537
53563
  f[Q] = al;
@@ -53554,7 +53580,7 @@ var iE = { class: "multi-step-form" }, cE = { class: "step-progress" }, sE = ["o
53554
53580
  H > h.value && !z() || (o.value = f);
53555
53581
  }
53556
53582
  }
53557
- function I() {
53583
+ function x() {
53558
53584
  if (z())
53559
53585
  if (W.value)
53560
53586
  d("complete");
@@ -53572,7 +53598,7 @@ var iE = { class: "multi-step-form" }, cE = { class: "step-progress" }, sE = ["o
53572
53598
  return e({
53573
53599
  validateCurrentStep: z,
53574
53600
  stepErrors: Y,
53575
- nextStep: I,
53601
+ nextStep: x,
53576
53602
  prevStep: U,
53577
53603
  goToStep: S,
53578
53604
  visibleSteps: r,
@@ -53627,7 +53653,7 @@ var iE = { class: "multi-step-form" }, cE = { class: "step-progress" }, sE = ["o
53627
53653
  g("button", {
53628
53654
  type: "button",
53629
53655
  class: "btn-primary",
53630
- onClick: I
53656
+ onClick: x
53631
53657
  }, cl(W.value ? N(n)("multiStep.complete") : N(n)("multiStep.next")), 1)
53632
53658
  ])
53633
53659
  ]));
@@ -53791,8 +53817,8 @@ var XE = {
53791
53817
  const W = T(() => {
53792
53818
  const w = h.value;
53793
53819
  return w ? er(w.schema, { loadOptionsSource: a.loadOptionsSource }) : null;
53794
- }), G = T(() => Object.assign({}, ...a.structure.steps.map((w) => er(w.schema, { loadOptionsSource: a.loadOptionsSource })._fields))), Y = T(() => Z.value ? ps(a.structure, Z.value, m.value) : null), X = T(() => Y.value === null), M = T(() => b.value.length > 0), x = T(() => ar(a.structure, Z.value, m.value));
53795
- xl(x, (w) => d("progress", w), { immediate: !0 });
53820
+ }), G = T(() => Object.assign({}, ...a.structure.steps.map((w) => er(w.schema, { loadOptionsSource: a.loadOptionsSource })._fields))), Y = T(() => Z.value ? ps(a.structure, Z.value, m.value) : null), X = T(() => Y.value === null), M = T(() => b.value.length > 0), I = T(() => ar(a.structure, Z.value, m.value));
53821
+ xl(I, (w) => d("progress", w), { immediate: !0 });
53796
53822
  const z = T(() => {
53797
53823
  const w = [], j = /* @__PURE__ */ new Set();
53798
53824
  let v = G2(a.structure);
@@ -53807,7 +53833,7 @@ var XE = {
53807
53833
  xl([z, V], ([w, j]) => {
53808
53834
  j <= 0 || (b.value.length === 0 && (b.value = w.slice(0, j).map((v) => v.key)), r.value = /* @__PURE__ */ new Set([...r.value, ...w.slice(0, j).map((v) => v.key)]));
53809
53835
  }, { immediate: !0 });
53810
- const S = k(null), I = k(!1);
53836
+ const S = k(null), x = k(!1);
53811
53837
  function U(w) {
53812
53838
  S.value = w;
53813
53839
  }
@@ -53823,14 +53849,14 @@ var XE = {
53823
53849
  isTerminal: X.value
53824
53850
  }) === !1) return;
53825
53851
  if (X.value) {
53826
- I.value = !0;
53852
+ x.value = !0;
53827
53853
  try {
53828
53854
  const v = aW(G.value, m.value);
53829
53855
  w?.skipSubmit || await a.onComplete?.(v), Z.value && d("formComplete", p(Z.value));
53830
53856
  const ml = w?.redirectUrl?.trim();
53831
53857
  ml && (d("redirect", ml), a.redirect && typeof window < "u" && window.location.assign(ml)), d("complete", { ...m.value });
53832
53858
  } finally {
53833
- I.value = !1;
53859
+ x.value = !1;
53834
53860
  }
53835
53861
  return;
53836
53862
  }
@@ -53883,7 +53909,7 @@ var XE = {
53883
53909
  currentKey: Z,
53884
53910
  nextKey: Y,
53885
53911
  isTerminal: X,
53886
- progress: x,
53912
+ progress: I,
53887
53913
  completedKeys: r,
53888
53914
  validateStep: f
53889
53915
  }), (w, j) => (L(), y("div", { class: ul(["form-flow-player", { "form-flow-player--stages": l.showStages }]) }, [
@@ -53913,7 +53939,7 @@ var XE = {
53913
53939
  g("span", null, cl(V.value + 1) + " / " + cl(z.value.length), 1),
53914
53940
  il(eC, {
53915
53941
  class: "w-100p mt-05",
53916
- value: x.value,
53942
+ value: I.value,
53917
53943
  size: 8
53918
53944
  }, null, 8, ["value"])
53919
53945
  ])])) : C("", !0),
@@ -53951,11 +53977,11 @@ var XE = {
53951
53977
  Ll(w.$slots, "nav", {
53952
53978
  canGoBack: M.value,
53953
53979
  isTerminal: X.value,
53954
- submitting: I.value,
53980
+ submitting: x.value,
53955
53981
  goBack: F,
53956
53982
  goPrimary: H,
53957
53983
  stepPosition: J.value,
53958
- progress: x.value,
53984
+ progress: I.value,
53959
53985
  currentKey: Z.value,
53960
53986
  primaryLabel: h.value?.primaryLabel,
53961
53987
  autoAdvances: Q.value
@@ -53973,7 +53999,7 @@ var XE = {
53973
53999
  key: 1,
53974
54000
  class: "ffp-nav-btn",
53975
54001
  value: h.value?.primaryLabel || N(n)?.("multiStep.complete") || "Submit",
53976
- loading: I.value,
54002
+ loading: x.value,
53977
54003
  onClick: H
53978
54004
  }, {
53979
54005
  default: Tl(() => [Ll(w.$slots, "primary-label", { isTerminal: !0 }, () => [Dl(cl(N(n)?.("multiStep.complete") ?? "Submit"), 1)], !0)]),
@@ -53983,7 +54009,7 @@ var XE = {
53983
54009
  class: "ffp-nav-btn",
53984
54010
  "icon-end": "arrow_forward",
53985
54011
  value: N(n)?.("multiStep.next") ?? "Next",
53986
- disabled: I.value,
54012
+ disabled: x.value,
53987
54013
  onClick: H
53988
54014
  }, {
53989
54015
  default: Tl(() => [Ll(w.$slots, "primary-label", { isTerminal: !1 }, () => [Dl(cl(N(n)?.("multiStep.next") ?? "Next"), 1)], !0)]),
@@ -59552,8 +59578,8 @@ function YP(l) {
59552
59578
  const Y = pP(h, String(G));
59553
59579
  if (Y == null) continue;
59554
59580
  if (Array.isArray(Y)) {
59555
- for (const x of Y) if (Nc(x)) {
59556
- const z = pc(Qn(gG(String(x))), s), V = m(String(G));
59581
+ for (const I of Y) if (Nc(I)) {
59582
+ const z = pc(Qn(gG(String(I))), s), V = m(String(G));
59557
59583
  p += z * V;
59558
59584
  }
59559
59585
  continue;
@@ -59591,15 +59617,15 @@ function LP(l, e) {
59591
59617
  o && xl(() => Ul(c), async (X) => {
59592
59618
  const M = ++r;
59593
59619
  b !== null && clearTimeout(b);
59594
- const x = typeof X == "string" ? X : "";
59595
- if (x.length < s && s > 0) {
59620
+ const I = typeof X == "string" ? X : "";
59621
+ if (I.length < s && s > 0) {
59596
59622
  Z.value = [];
59597
59623
  return;
59598
59624
  }
59599
59625
  b = window.setTimeout(async () => {
59600
59626
  try {
59601
59627
  u.value = !0;
59602
- const z = await o(x);
59628
+ const z = await o(I);
59603
59629
  M === r && (Z.value = z);
59604
59630
  } catch {
59605
59631
  M === r && (Z.value = []);