@romainbx/wpic-components 0.0.116 → 0.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as xn, inject as Ci, computed as ae, toValue as Ve, toRef as Pr, resolveDynamicComponent as Wi, h as Ut, getCurrentInstance as dn, ref as se, reactive as vr, unref as U, onMounted as Sn, isRef as Ts, watch as Qe, provide as bo, readonly as O0, onBeforeUnmount as ni, watchEffect as kh, nextTick as _t, shallowRef as rl, warn as C0, onUnmounted as Wo, createElementBlock as L, openBlock as S, createElementVNode as F, createVNode as ve, normalizeClass as ne, createCommentVNode as ce, createBlock as Te, withCtx as Ae, renderSlot as Fe, createTextVNode as tt, toDisplayString as Ee, Fragment as je, renderList as ut, withModifiers as Ei, Teleport as xh, normalizeStyle as Un, onBeforeMount as E0, Text as T0, withDirectives as Ti, vModelText as va, vShow as ba, resolveComponent as _s, createStaticVNode as il, pushScopeId as _0, popScopeId as M0, useSlots as Sh, markRaw as N0, customRef as A0 } from "vue";
1
+ import { defineComponent as xn, inject as Ci, computed as ae, toValue as Ve, toRef as Pr, resolveDynamicComponent as Wi, h as Ut, getCurrentInstance as dn, ref as se, reactive as vr, unref as U, onMounted as Sn, isRef as Ts, watch as Qe, provide as bo, readonly as O0, onBeforeUnmount as ni, watchEffect as kh, nextTick as Mt, shallowRef as rl, warn as C0, onUnmounted as Wo, createElementBlock as L, openBlock as S, createElementVNode as F, createVNode as ve, normalizeClass as ne, createCommentVNode as ce, createBlock as Te, withCtx as Ae, renderSlot as Fe, createTextVNode as tt, toDisplayString as Ee, Fragment as je, renderList as ut, withModifiers as Ei, Teleport as xh, normalizeStyle as Un, onBeforeMount as E0, Text as T0, withDirectives as Ti, vModelText as va, vShow as ba, resolveComponent as Ms, createStaticVNode as il, pushScopeId as M0, popScopeId as _0, useSlots as Sh, markRaw as N0, customRef as A0 } from "vue";
2
2
  function L0() {
3
3
  return Oh().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
4
  }
@@ -176,7 +176,7 @@ function Ye(t) {
176
176
  }
177
177
  return i || t;
178
178
  }
179
- const Uo = Symbol("vee-validate-form"), Th = Symbol("vee-validate-field-instance"), Ms = Symbol("Default empty value"), U0 = typeof window < "u";
179
+ const Uo = Symbol("vee-validate-form"), Th = Symbol("vee-validate-field-instance"), _s = Symbol("Default empty value"), U0 = typeof window < "u";
180
180
  function ka(t) {
181
181
  return pt(t) && !!t.__locatorRef;
182
182
  }
@@ -199,9 +199,9 @@ function ol(t) {
199
199
  return /^\[.+\]$/i.test(t);
200
200
  }
201
201
  function K0(t) {
202
- return _h(t) && t.multiple;
202
+ return Mh(t) && t.multiple;
203
203
  }
204
- function _h(t) {
204
+ function Mh(t) {
205
205
  return t.tagName === "SELECT";
206
206
  }
207
207
  function G0(t, e) {
@@ -211,14 +211,14 @@ function G0(t, e) {
211
211
  function J0(t, e) {
212
212
  return !G0(t, e) && e.type !== "file" && !Yo(e.type);
213
213
  }
214
- function Mh(t) {
214
+ function _h(t) {
215
215
  return yc(t) && t.target && "submit" in t.target;
216
216
  }
217
217
  function yc(t) {
218
218
  return t ? !!(typeof Event < "u" && pt(Event) && t instanceof Event || t && t.srcElement) : !1;
219
219
  }
220
220
  function ku(t, e) {
221
- return e in t && t[e] !== Ms;
221
+ return e in t && t[e] !== _s;
222
222
  }
223
223
  function $t(t, e) {
224
224
  if (t === e)
@@ -390,7 +390,7 @@ function is(t, e) {
390
390
  function Q0(t) {
391
391
  let e = null, n = [];
392
392
  return function(...r) {
393
- const i = _t(() => {
393
+ const i = Mt(() => {
394
394
  if (e !== i)
395
395
  return;
396
396
  const o = t(...r);
@@ -429,7 +429,7 @@ function As(t) {
429
429
  }
430
430
  if (K0(e))
431
431
  return Array.from(e.options).filter((n) => n.selected && !n.disabled).map(Dl);
432
- if (_h(e)) {
432
+ if (Mh(e)) {
433
433
  const n = Array.from(e.options).find((r) => r.selected);
434
434
  return n ? Dl(n) : e.value;
435
435
  }
@@ -754,9 +754,9 @@ function $h(t) {
754
754
  }
755
755
  const co = {}, uo = {};
756
756
  let zn;
757
- const _i = Z0(() => {
757
+ const Mi = Z0(() => {
758
758
  setTimeout(async () => {
759
- await _t(), zn == null || zn.sendInspectorState(gi), zn == null || zn.sendInspectorTree(gi);
759
+ await Mt(), zn == null || zn.sendInspectorState(gi), zn == null || zn.sendInspectorTree(gi);
760
760
  }, 100);
761
761
  }, 100);
762
762
  function by(t) {
@@ -768,8 +768,8 @@ function by(t) {
768
768
  $h(n);
769
769
  }
770
770
  co[t.formId] = Object.assign({}, t), co[t.formId]._vm = e, Wo(() => {
771
- delete co[t.formId], _i();
772
- }), _i();
771
+ delete co[t.formId], Mi();
772
+ }), Mi();
773
773
  }
774
774
  function wy(t) {
775
775
  const e = dn();
@@ -780,8 +780,8 @@ function wy(t) {
780
780
  $h(n);
781
781
  }
782
782
  uo[t.id] = Object.assign({}, t), uo[t.id]._vm = e, Wo(() => {
783
- delete uo[t.id], _i();
784
- }), _i();
783
+ delete uo[t.id], Mi();
784
+ }), Mi();
785
785
  }
786
786
  const gi = "vee-validate-inspector", zt = {
787
787
  error: 12405579,
@@ -854,11 +854,11 @@ function ky(t) {
854
854
  return;
855
855
  }
856
856
  if (o && s === "pathState" && r) {
857
- e.state = _u(o), ot = { type: "pathState", state: o, form: r };
857
+ e.state = Mu(o), ot = { type: "pathState", state: o, form: r };
858
858
  return;
859
859
  }
860
860
  if (i && s === "field") {
861
- e.state = _u({
861
+ e.state = Mu({
862
862
  errors: i.errors.value,
863
863
  dirty: i.meta.dirty,
864
864
  valid: i.meta.valid,
@@ -977,7 +977,7 @@ function Cy(t) {
977
977
  }
978
978
  return {};
979
979
  }
980
- function _u(t) {
980
+ function Mu(t) {
981
981
  return {
982
982
  "Field state": [
983
983
  { key: "errors", value: t.errors },
@@ -1058,10 +1058,10 @@ function Rh(t) {
1058
1058
  };
1059
1059
  }
1060
1060
  function Ty(t, e, n) {
1061
- return Yo(n == null ? void 0 : n.type) ? My(t, e, n) : Vh(t, e, n);
1061
+ return Yo(n == null ? void 0 : n.type) ? _y(t, e, n) : Vh(t, e, n);
1062
1062
  }
1063
1063
  function Vh(t, e, n) {
1064
- const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: l, label: a, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = _y(n), m = d ? bc(Uo) : void 0, g = p || m, v = ae(() => oo(Ve(t))), k = ae(() => {
1064
+ const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: l, label: a, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = My(n), m = d ? bc(Uo) : void 0, g = p || m, v = ae(() => oo(Ve(t))), k = ae(() => {
1065
1065
  if (Ve(g == null ? void 0 : g.schema))
1066
1066
  return;
1067
1067
  const Y = U(e);
@@ -1164,7 +1164,7 @@ function Vh(t, e, n) {
1164
1164
  $t(J, Y) || (T.validated ? z() : D());
1165
1165
  }, {
1166
1166
  deep: !0
1167
- }), process.env.NODE_ENV !== "production" && (q._vm = dn(), Qe(() => Object.assign(Object.assign({ errors: A.value }, T), { value: C.value }), _i, {
1167
+ }), process.env.NODE_ENV !== "production" && (q._vm = dn(), Qe(() => Object.assign(Object.assign({ errors: A.value }, T), { value: C.value }), Mi, {
1168
1168
  deep: !0
1169
1169
  }), g || wy(q)), !g)
1170
1170
  return q;
@@ -1205,7 +1205,7 @@ function Vh(t, e, n) {
1205
1205
  }
1206
1206
  }), q;
1207
1207
  }
1208
- function _y(t) {
1208
+ function My(t) {
1209
1209
  const e = () => ({
1210
1210
  initialValue: void 0,
1211
1211
  validateOnMount: !1,
@@ -1226,7 +1226,7 @@ function _y(t) {
1226
1226
  syncVModel: l
1227
1227
  });
1228
1228
  }
1229
- function My(t, e, n) {
1229
+ function _y(t, e, n) {
1230
1230
  const r = n != null && n.standalone ? void 0 : bc(Uo), i = n == null ? void 0 : n.checkedValue, o = n == null ? void 0 : n.uncheckedValue;
1231
1231
  function s(l) {
1232
1232
  const a = l.handleChange, c = ae(() => {
@@ -1262,9 +1262,9 @@ function Ny({ prop: t, value: e, handleChange: n, shouldValidate: r }) {
1262
1262
  o in i.props && (Qe(e, (l) => {
1263
1263
  $t(l, Oa(i, o)) || i.emit(s, l);
1264
1264
  }), Qe(() => Oa(i, o), (l) => {
1265
- if (l === Ms && e.value === void 0)
1265
+ if (l === _s && e.value === void 0)
1266
1266
  return;
1267
- const a = l === Ms ? void 0 : l;
1267
+ const a = l === _s ? void 0 : l;
1268
1268
  $t(a, e.value) || n(a, r());
1269
1269
  }));
1270
1270
  }
@@ -1322,7 +1322,7 @@ const Ay = /* @__PURE__ */ xn({
1322
1322
  },
1323
1323
  modelValue: {
1324
1324
  type: null,
1325
- default: Ms
1325
+ default: _s
1326
1326
  },
1327
1327
  modelModifiers: {
1328
1328
  type: null,
@@ -1378,7 +1378,7 @@ const Ay = /* @__PURE__ */ xn({
1378
1378
  }), C = ae(() => {
1379
1379
  const $ = Object.assign({}, y.value);
1380
1380
  Yo(e.attrs.type) && v && ($.checked = v.value);
1381
- const A = Mu(t, e);
1381
+ const A = _u(t, e);
1382
1382
  return J0(A, e.attrs) && ($.value = a.value), $;
1383
1383
  }), w = ae(() => Object.assign(Object.assign({}, y.value), { modelValue: a.value }));
1384
1384
  function T() {
@@ -1410,12 +1410,12 @@ const Ay = /* @__PURE__ */ xn({
1410
1410
  validate: u,
1411
1411
  handleChange: d
1412
1412
  }), () => {
1413
- const $ = Wi(Mu(t, e)), A = wc($, e, T);
1413
+ const $ = Wi(_u(t, e)), A = wc($, e, T);
1414
1414
  return $ ? Ut($, Object.assign(Object.assign({}, e.attrs), C.value), A) : A;
1415
1415
  };
1416
1416
  }
1417
1417
  });
1418
- function Mu(t, e) {
1418
+ function _u(t, e) {
1419
1419
  let n = t.as || "";
1420
1420
  return !t.as && !e.slots.default && (n = "input"), n;
1421
1421
  }
@@ -1444,59 +1444,59 @@ function $y(t) {
1444
1444
  const n = Iy++;
1445
1445
  let r = 0;
1446
1446
  const i = se(!1), o = se(!1), s = se(0), l = [], a = vr(Bh(t)), c = se([]), u = se({}), d = se({}), f = Q0(() => {
1447
- d.value = c.value.reduce((_, N) => (_[oo(Ve(N.path))] = N, _), {});
1447
+ d.value = c.value.reduce((M, N) => (M[oo(Ve(N.path))] = N, M), {});
1448
1448
  });
1449
- function h(_, N) {
1450
- const G = O(_);
1449
+ function h(M, N) {
1450
+ const G = O(M);
1451
1451
  if (!G) {
1452
- typeof _ == "string" && (u.value[oo(_)] = Sa(N));
1452
+ typeof M == "string" && (u.value[oo(M)] = Sa(N));
1453
1453
  return;
1454
1454
  }
1455
- if (typeof _ == "string") {
1456
- const le = oo(_);
1455
+ if (typeof M == "string") {
1456
+ const le = oo(M);
1457
1457
  u.value[le] && delete u.value[le];
1458
1458
  }
1459
1459
  G.errors = Sa(N), G.valid = !G.errors.length;
1460
1460
  }
1461
- function p(_) {
1462
- Ht(_).forEach((N) => {
1463
- h(N, _[N]);
1461
+ function p(M) {
1462
+ Ht(M).forEach((N) => {
1463
+ h(N, M[N]);
1464
1464
  });
1465
1465
  }
1466
1466
  t != null && t.initialErrors && p(t.initialErrors);
1467
1467
  const m = ae(() => {
1468
- const _ = c.value.reduce((N, G) => (G.errors.length && (N[G.path] = G.errors), N), {});
1469
- return Object.assign(Object.assign({}, u.value), _);
1470
- }), g = ae(() => Ht(m.value).reduce((_, N) => {
1468
+ const M = c.value.reduce((N, G) => (G.errors.length && (N[G.path] = G.errors), N), {});
1469
+ return Object.assign(Object.assign({}, u.value), M);
1470
+ }), g = ae(() => Ht(m.value).reduce((M, N) => {
1471
1471
  const G = m.value[N];
1472
- return G != null && G.length && (_[N] = G[0]), _;
1473
- }, {})), v = ae(() => c.value.reduce((_, N) => (_[N.path] = { name: N.path || "", label: N.label || "" }, _), {})), k = ae(() => c.value.reduce((_, N) => {
1472
+ return G != null && G.length && (M[N] = G[0]), M;
1473
+ }, {})), v = ae(() => c.value.reduce((M, N) => (M[N.path] = { name: N.path || "", label: N.label || "" }, M), {})), k = ae(() => c.value.reduce((M, N) => {
1474
1474
  var G;
1475
- return _[N.path] = (G = N.bails) !== null && G !== void 0 ? G : !0, _;
1476
- }, {})), b = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: C, originalInitialValues: w, setInitialValues: T } = Ry(c, a, t), $ = Py(c, a, w, g), A = ae(() => c.value.reduce((_, N) => {
1475
+ return M[N.path] = (G = N.bails) !== null && G !== void 0 ? G : !0, M;
1476
+ }, {})), b = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: C, originalInitialValues: w, setInitialValues: T } = Ry(c, a, t), $ = Py(c, a, w, g), A = ae(() => c.value.reduce((M, N) => {
1477
1477
  const G = Wt(a, N.path);
1478
- return Fn(_, N.path, G), _;
1478
+ return Fn(M, N.path, G), M;
1479
1479
  }, {})), B = t == null ? void 0 : t.validationSchema;
1480
- function P(_, N) {
1480
+ function P(M, N) {
1481
1481
  var G, le;
1482
- const we = ae(() => Wt(C.value, Ve(_))), M = d.value[Ve(_)], te = (N == null ? void 0 : N.type) === "checkbox" || (N == null ? void 0 : N.type) === "radio";
1483
- if (M && te) {
1484
- M.multiple = !0;
1482
+ const we = ae(() => Wt(C.value, Ve(M))), _ = d.value[Ve(M)], te = (N == null ? void 0 : N.type) === "checkbox" || (N == null ? void 0 : N.type) === "radio";
1483
+ if (_ && te) {
1484
+ _.multiple = !0;
1485
1485
  const Lt = r++;
1486
- return Array.isArray(M.id) ? M.id.push(Lt) : M.id = [M.id, Lt], M.fieldsCount++, M.__flags.pendingUnmount[Lt] = !1, M;
1486
+ return Array.isArray(_.id) ? _.id.push(Lt) : _.id = [_.id, Lt], _.fieldsCount++, _.__flags.pendingUnmount[Lt] = !1, _;
1487
1487
  }
1488
- const ue = ae(() => Wt(a, Ve(_))), Se = Ve(_), Oe = j.findIndex((Lt) => Lt === Se);
1488
+ const ue = ae(() => Wt(a, Ve(M))), Se = Ve(M), Oe = j.findIndex((Lt) => Lt === Se);
1489
1489
  Oe !== -1 && j.splice(Oe, 1);
1490
1490
  const Le = ae(() => {
1491
1491
  var Lt, Jt, Ar, tr;
1492
1492
  const Cn = Ve(B);
1493
1493
  if (yn(Cn))
1494
- return (Jt = (Lt = Cn.describe) === null || Lt === void 0 ? void 0 : Lt.call(Cn, Ve(_)).required) !== null && Jt !== void 0 ? Jt : !1;
1494
+ return (Jt = (Lt = Cn.describe) === null || Lt === void 0 ? void 0 : Lt.call(Cn, Ve(M)).required) !== null && Jt !== void 0 ? Jt : !1;
1495
1495
  const Xi = Ve(N == null ? void 0 : N.schema);
1496
1496
  return yn(Xi) && (tr = (Ar = Xi.describe) === null || Ar === void 0 ? void 0 : Ar.call(Xi).required) !== null && tr !== void 0 ? tr : !1;
1497
1497
  }), Ue = r++, it = vr({
1498
1498
  id: Ue,
1499
- path: _,
1499
+ path: M,
1500
1500
  touched: !1,
1501
1501
  pending: !1,
1502
1502
  valid: !0,
@@ -1517,58 +1517,58 @@ function $y(t) {
1517
1517
  validate: N == null ? void 0 : N.validate,
1518
1518
  dirty: ae(() => !$t(U(ue), U(we)))
1519
1519
  });
1520
- return c.value.push(it), d.value[Se] = it, f(), g.value[Se] && !b[Se] && _t(() => {
1520
+ return c.value.push(it), d.value[Se] = it, f(), g.value[Se] && !b[Se] && Mt(() => {
1521
1521
  Et(Se, { mode: "silent" });
1522
- }), Ts(_) && Qe(_, (Lt) => {
1522
+ }), Ts(M) && Qe(M, (Lt) => {
1523
1523
  f();
1524
1524
  const Jt = Ye(ue.value);
1525
- d.value[Lt] = it, _t(() => {
1525
+ d.value[Lt] = it, Mt(() => {
1526
1526
  Fn(a, Lt, Jt);
1527
1527
  });
1528
1528
  }), it;
1529
1529
  }
1530
- const I = Cu(fe, 5), W = Cu(fe, 5), z = xa(async (_) => await (_ === "silent" ? I() : W()), (_, [N]) => {
1530
+ const I = Cu(fe, 5), W = Cu(fe, 5), z = xa(async (M) => await (M === "silent" ? I() : W()), (M, [N]) => {
1531
1531
  const G = Ht(J.errorBag.value), we = [
1532
- .../* @__PURE__ */ new Set([...Ht(_.results), ...c.value.map((M) => M.path), ...G])
1533
- ].sort().reduce((M, te) => {
1532
+ .../* @__PURE__ */ new Set([...Ht(M.results), ...c.value.map((_) => _.path), ...G])
1533
+ ].sort().reduce((_, te) => {
1534
1534
  var ue;
1535
- const Se = te, Oe = O(Se) || R(Se), Le = ((ue = _.results[Se]) === null || ue === void 0 ? void 0 : ue.errors) || [], Ue = Ve(Oe == null ? void 0 : Oe.path) || Se, it = Vy({ errors: Le, valid: !Le.length }, M.results[Ue]);
1536
- return M.results[Ue] = it, it.valid || (M.errors[Ue] = it.errors[0]), Oe && u.value[Ue] && delete u.value[Ue], Oe ? (Oe.valid = it.valid, N === "silent" || N === "validated-only" && !Oe.validated || h(Oe, it.errors), M) : (h(Ue, Le), M);
1537
- }, { valid: _.valid, results: {}, errors: {} });
1538
- return _.values && (we.values = _.values), Ht(we.results).forEach((M) => {
1535
+ const Se = te, Oe = O(Se) || R(Se), Le = ((ue = M.results[Se]) === null || ue === void 0 ? void 0 : ue.errors) || [], Ue = Ve(Oe == null ? void 0 : Oe.path) || Se, it = Vy({ errors: Le, valid: !Le.length }, _.results[Ue]);
1536
+ return _.results[Ue] = it, it.valid || (_.errors[Ue] = it.errors[0]), Oe && u.value[Ue] && delete u.value[Ue], Oe ? (Oe.valid = it.valid, N === "silent" || N === "validated-only" && !Oe.validated || h(Oe, it.errors), _) : (h(Ue, Le), _);
1537
+ }, { valid: M.valid, results: {}, errors: {} });
1538
+ return M.values && (we.values = M.values), Ht(we.results).forEach((_) => {
1539
1539
  var te;
1540
- const ue = O(M);
1541
- ue && N !== "silent" && (N === "validated-only" && !ue.validated || h(ue, (te = we.results[M]) === null || te === void 0 ? void 0 : te.errors));
1540
+ const ue = O(_);
1541
+ ue && N !== "silent" && (N === "validated-only" && !ue.validated || h(ue, (te = we.results[_]) === null || te === void 0 ? void 0 : te.errors));
1542
1542
  }), we;
1543
1543
  });
1544
- function D(_) {
1545
- c.value.forEach(_);
1544
+ function D(M) {
1545
+ c.value.forEach(M);
1546
1546
  }
1547
- function O(_) {
1548
- const N = typeof _ == "string" ? oo(_) : _;
1547
+ function O(M) {
1548
+ const N = typeof M == "string" ? oo(M) : M;
1549
1549
  return typeof N == "string" ? d.value[N] : N;
1550
1550
  }
1551
- function R(_) {
1552
- return c.value.filter((G) => _.startsWith(G.path)).reduce((G, le) => G ? le.path.length > G.path.length ? le : G : le, void 0);
1551
+ function R(M) {
1552
+ return c.value.filter((G) => M.startsWith(G.path)).reduce((G, le) => G ? le.path.length > G.path.length ? le : G : le, void 0);
1553
1553
  }
1554
1554
  let j = [], ie;
1555
- function oe(_) {
1556
- return j.push(_), ie || (ie = _t(() => {
1555
+ function oe(M) {
1556
+ return j.push(M), ie || (ie = Mt(() => {
1557
1557
  [...j].sort().reverse().forEach((G) => {
1558
1558
  Su(a, G);
1559
1559
  }), j = [], ie = null;
1560
1560
  })), ie;
1561
1561
  }
1562
- function ge(_) {
1562
+ function ge(M) {
1563
1563
  return function(G, le) {
1564
- return function(M) {
1565
- return M instanceof Event && (M.preventDefault(), M.stopPropagation()), D((te) => te.touched = !0), i.value = !0, s.value++, wt().then((te) => {
1564
+ return function(_) {
1565
+ return _ instanceof Event && (_.preventDefault(), _.stopPropagation()), D((te) => te.touched = !0), i.value = !0, s.value++, wt().then((te) => {
1566
1566
  const ue = Ye(a);
1567
1567
  if (te.valid && typeof G == "function") {
1568
1568
  const Se = Ye(A.value);
1569
- let Oe = _ ? Se : ue;
1569
+ let Oe = M ? Se : ue;
1570
1570
  return te.values && (Oe = te.values), G(Oe, {
1571
- evt: M,
1571
+ evt: _,
1572
1572
  controlledValues: Se,
1573
1573
  setErrors: p,
1574
1574
  setFieldError: h,
@@ -1582,7 +1582,7 @@ function $y(t) {
1582
1582
  }
1583
1583
  !te.valid && typeof le == "function" && le({
1584
1584
  values: ue,
1585
- evt: M,
1585
+ evt: _,
1586
1586
  errors: te.errors,
1587
1587
  results: te.results
1588
1588
  });
@@ -1594,22 +1594,22 @@ function $y(t) {
1594
1594
  }
1595
1595
  const V = ge(!1);
1596
1596
  V.withControlled = ge(!0);
1597
- function q(_, N) {
1598
- const G = c.value.findIndex((we) => we.path === _ && (Array.isArray(we.id) ? we.id.includes(N) : we.id === N)), le = c.value[G];
1597
+ function q(M, N) {
1598
+ const G = c.value.findIndex((we) => we.path === M && (Array.isArray(we.id) ? we.id.includes(N) : we.id === N)), le = c.value[G];
1599
1599
  if (!(G === -1 || !le)) {
1600
- if (_t(() => {
1601
- Et(_, { mode: "silent", warn: !1 });
1600
+ if (Mt(() => {
1601
+ Et(M, { mode: "silent", warn: !1 });
1602
1602
  }), le.multiple && le.fieldsCount && le.fieldsCount--, Array.isArray(le.id)) {
1603
1603
  const we = le.id.indexOf(N);
1604
1604
  we >= 0 && le.id.splice(we, 1), delete le.__flags.pendingUnmount[N];
1605
1605
  }
1606
- (!le.multiple || le.fieldsCount <= 0) && (c.value.splice(G, 1), x(_), f(), delete d.value[_]);
1606
+ (!le.multiple || le.fieldsCount <= 0) && (c.value.splice(G, 1), x(M), f(), delete d.value[M]);
1607
1607
  }
1608
1608
  }
1609
- function Z(_) {
1609
+ function Z(M) {
1610
1610
  Ht(d.value).forEach((N) => {
1611
- N.startsWith(_) && delete d.value[N];
1612
- }), c.value = c.value.filter((N) => !N.path.startsWith(_)), _t(() => {
1611
+ N.startsWith(M) && delete d.value[N];
1612
+ }), c.value = c.value.filter((N) => !N.path.startsWith(M)), Mt(() => {
1613
1613
  f();
1614
1614
  });
1615
1615
  }
@@ -1656,136 +1656,136 @@ function $y(t) {
1656
1656
  isFieldDirty: dt,
1657
1657
  isFieldValid: re
1658
1658
  };
1659
- function Y(_, N, G = !0) {
1660
- const le = Ye(N), we = typeof _ == "string" ? _ : _.path;
1659
+ function Y(M, N, G = !0) {
1660
+ const le = Ye(N), we = typeof M == "string" ? M : M.path;
1661
1661
  O(we) || P(we), Fn(a, we, le), G && Et(we);
1662
1662
  }
1663
- function ye(_, N = !0) {
1663
+ function ye(M, N = !0) {
1664
1664
  Ht(a).forEach((G) => {
1665
1665
  delete a[G];
1666
- }), Ht(_).forEach((G) => {
1667
- Y(G, _[G], !1);
1666
+ }), Ht(M).forEach((G) => {
1667
+ Y(G, M[G], !1);
1668
1668
  }), N && wt();
1669
1669
  }
1670
- function me(_, N = !0) {
1671
- wo(a, _), l.forEach((G) => G && G.reset()), N && wt();
1670
+ function me(M, N = !0) {
1671
+ wo(a, M), l.forEach((G) => G && G.reset()), N && wt();
1672
1672
  }
1673
- function Ne(_, N) {
1674
- const G = O(Ve(_)) || P(_);
1673
+ function Ne(M, N) {
1674
+ const G = O(Ve(M)) || P(M);
1675
1675
  return ae({
1676
1676
  get() {
1677
1677
  return G.value;
1678
1678
  },
1679
1679
  set(le) {
1680
1680
  var we;
1681
- const M = Ve(_);
1682
- Y(M, le, (we = Ve(N)) !== null && we !== void 0 ? we : !1);
1681
+ const _ = Ve(M);
1682
+ Y(_, le, (we = Ve(N)) !== null && we !== void 0 ? we : !1);
1683
1683
  }
1684
1684
  });
1685
1685
  }
1686
- function He(_, N) {
1687
- const G = O(_);
1686
+ function He(M, N) {
1687
+ const G = O(M);
1688
1688
  G && (G.touched = N);
1689
1689
  }
1690
- function Je(_) {
1691
- const N = O(_);
1692
- return N ? N.touched : c.value.filter((G) => G.path.startsWith(_)).some((G) => G.touched);
1690
+ function Je(M) {
1691
+ const N = O(M);
1692
+ return N ? N.touched : c.value.filter((G) => G.path.startsWith(M)).some((G) => G.touched);
1693
1693
  }
1694
- function dt(_) {
1695
- const N = O(_);
1696
- return N ? N.dirty : c.value.filter((G) => G.path.startsWith(_)).some((G) => G.dirty);
1694
+ function dt(M) {
1695
+ const N = O(M);
1696
+ return N ? N.dirty : c.value.filter((G) => G.path.startsWith(M)).some((G) => G.dirty);
1697
1697
  }
1698
- function re(_) {
1699
- const N = O(_);
1700
- return N ? N.valid : c.value.filter((G) => G.path.startsWith(_)).every((G) => G.valid);
1698
+ function re(M) {
1699
+ const N = O(M);
1700
+ return N ? N.valid : c.value.filter((G) => G.path.startsWith(M)).every((G) => G.valid);
1701
1701
  }
1702
- function De(_) {
1703
- if (typeof _ == "boolean") {
1702
+ function De(M) {
1703
+ if (typeof M == "boolean") {
1704
1704
  D((N) => {
1705
- N.touched = _;
1705
+ N.touched = M;
1706
1706
  });
1707
1707
  return;
1708
1708
  }
1709
- Ht(_).forEach((N) => {
1710
- He(N, !!_[N]);
1709
+ Ht(M).forEach((N) => {
1710
+ He(N, !!M[N]);
1711
1711
  });
1712
1712
  }
1713
- function Bt(_, N) {
1713
+ function Bt(M, N) {
1714
1714
  var G;
1715
- const le = N && "value" in N ? N.value : Wt(C.value, _), we = O(_);
1716
- we && (we.__flags.pendingReset = !0), K(_, Ye(le), !0), Y(_, le, !1), He(_, (G = N == null ? void 0 : N.touched) !== null && G !== void 0 ? G : !1), h(_, (N == null ? void 0 : N.errors) || []), _t(() => {
1715
+ const le = N && "value" in N ? N.value : Wt(C.value, M), we = O(M);
1716
+ we && (we.__flags.pendingReset = !0), K(M, Ye(le), !0), Y(M, le, !1), He(M, (G = N == null ? void 0 : N.touched) !== null && G !== void 0 ? G : !1), h(M, (N == null ? void 0 : N.errors) || []), Mt(() => {
1717
1717
  we && (we.__flags.pendingReset = !1);
1718
1718
  });
1719
1719
  }
1720
- function bt(_, N) {
1721
- let G = Ye(_ != null && _.values ? _.values : w.value);
1720
+ function bt(M, N) {
1721
+ let G = Ye(M != null && M.values ? M.values : w.value);
1722
1722
  G = N != null && N.force ? G : wo(w.value, G), G = yn(B) && pt(B.cast) ? B.cast(G) : G, T(G), D((le) => {
1723
1723
  var we;
1724
- le.__flags.pendingReset = !0, le.validated = !1, le.touched = ((we = _ == null ? void 0 : _.touched) === null || we === void 0 ? void 0 : we[le.path]) || !1, Y(le.path, Wt(G, le.path), !1), h(le.path, void 0);
1725
- }), N != null && N.force ? ye(G, !1) : me(G, !1), p((_ == null ? void 0 : _.errors) || {}), s.value = (_ == null ? void 0 : _.submitCount) || 0, _t(() => {
1724
+ le.__flags.pendingReset = !0, le.validated = !1, le.touched = ((we = M == null ? void 0 : M.touched) === null || we === void 0 ? void 0 : we[le.path]) || !1, Y(le.path, Wt(G, le.path), !1), h(le.path, void 0);
1725
+ }), N != null && N.force ? ye(G, !1) : me(G, !1), p((M == null ? void 0 : M.errors) || {}), s.value = (M == null ? void 0 : M.submitCount) || 0, Mt(() => {
1726
1726
  wt({ mode: "silent" }), D((le) => {
1727
1727
  le.__flags.pendingReset = !1;
1728
1728
  });
1729
1729
  });
1730
1730
  }
1731
- async function wt(_) {
1732
- const N = (_ == null ? void 0 : _.mode) || "force";
1733
- if (N === "force" && D((M) => M.validated = !0), J.validateSchema)
1731
+ async function wt(M) {
1732
+ const N = (M == null ? void 0 : M.mode) || "force";
1733
+ if (N === "force" && D((_) => _.validated = !0), J.validateSchema)
1734
1734
  return J.validateSchema(N);
1735
1735
  o.value = !0;
1736
- const G = await Promise.all(c.value.map((M) => M.validate ? M.validate(_).then((te) => ({
1737
- key: M.path,
1736
+ const G = await Promise.all(c.value.map((_) => _.validate ? _.validate(M).then((te) => ({
1737
+ key: _.path,
1738
1738
  valid: te.valid,
1739
1739
  errors: te.errors
1740
1740
  })) : Promise.resolve({
1741
- key: M.path,
1741
+ key: _.path,
1742
1742
  valid: !0,
1743
1743
  errors: []
1744
1744
  })));
1745
1745
  o.value = !1;
1746
1746
  const le = {}, we = {};
1747
- for (const M of G)
1748
- le[M.key] = {
1749
- valid: M.valid,
1750
- errors: M.errors
1751
- }, M.errors.length && (we[M.key] = M.errors[0]);
1747
+ for (const _ of G)
1748
+ le[_.key] = {
1749
+ valid: _.valid,
1750
+ errors: _.errors
1751
+ }, _.errors.length && (we[_.key] = _.errors[0]);
1752
1752
  return {
1753
- valid: G.every((M) => M.valid),
1753
+ valid: G.every((_) => _.valid),
1754
1754
  results: le,
1755
1755
  errors: we
1756
1756
  };
1757
1757
  }
1758
- async function Et(_, N) {
1758
+ async function Et(M, N) {
1759
1759
  var G;
1760
- const le = O(_);
1760
+ const le = O(M);
1761
1761
  if (le && (N == null ? void 0 : N.mode) !== "silent" && (le.validated = !0), B) {
1762
- const { results: M } = await z((N == null ? void 0 : N.mode) || "validated-only");
1763
- return M[_] || { errors: [], valid: !0 };
1762
+ const { results: _ } = await z((N == null ? void 0 : N.mode) || "validated-only");
1763
+ return _[M] || { errors: [], valid: !0 };
1764
1764
  }
1765
- return le != null && le.validate ? le.validate(N) : (!le && ((G = N == null ? void 0 : N.warn) !== null && G !== void 0 ? G : !0) && process.env.NODE_ENV !== "production" && C0(`field with path ${_} was not found`), Promise.resolve({ errors: [], valid: !0 }));
1765
+ return le != null && le.validate ? le.validate(N) : (!le && ((G = N == null ? void 0 : N.warn) !== null && G !== void 0 ? G : !0) && process.env.NODE_ENV !== "production" && C0(`field with path ${M} was not found`), Promise.resolve({ errors: [], valid: !0 }));
1766
1766
  }
1767
- function x(_) {
1768
- Su(C.value, _);
1767
+ function x(M) {
1768
+ Su(C.value, M);
1769
1769
  }
1770
- function E(_, N, G = !1) {
1771
- K(_, N), Fn(a, _, N), G && !(t != null && t.initialValues) && Fn(w.value, _, Ye(N));
1770
+ function E(M, N, G = !1) {
1771
+ K(M, N), Fn(a, M, N), G && !(t != null && t.initialValues) && Fn(w.value, M, Ye(N));
1772
1772
  }
1773
- function K(_, N, G = !1) {
1774
- Fn(C.value, _, Ye(N)), G && Fn(w.value, _, Ye(N));
1773
+ function K(M, N, G = !1) {
1774
+ Fn(C.value, M, Ye(N)), G && Fn(w.value, M, Ye(N));
1775
1775
  }
1776
1776
  async function fe() {
1777
- const _ = U(B);
1778
- if (!_)
1777
+ const M = U(B);
1778
+ if (!M)
1779
1779
  return { valid: !0, results: {}, errors: {} };
1780
1780
  o.value = !0;
1781
- const N = Ns(_) || yn(_) ? await fy(_, a) : await hy(_, a, {
1781
+ const N = Ns(M) || yn(M) ? await fy(M, a) : await hy(M, a, {
1782
1782
  names: v.value,
1783
1783
  bailsMap: k.value
1784
1784
  });
1785
1785
  return o.value = !1, N;
1786
1786
  }
1787
- const We = V((_, { evt: N }) => {
1788
- Mh(N) && N.target.submit();
1787
+ const We = V((M, { evt: N }) => {
1788
+ _h(N) && N.target.submit();
1789
1789
  });
1790
1790
  Sn(() => {
1791
1791
  if (t != null && t.initialErrors && p(t.initialErrors), t != null && t.initialTouched && De(t.initialTouched), t != null && t.validateOnMount) {
@@ -1794,26 +1794,26 @@ function $y(t) {
1794
1794
  }
1795
1795
  J.validateSchema && J.validateSchema("silent");
1796
1796
  }), Ts(B) && Qe(B, () => {
1797
- var _;
1798
- (_ = J.validateSchema) === null || _ === void 0 || _.call(J, "validated-only");
1799
- }), bo(Uo, J), process.env.NODE_ENV !== "production" && (by(J), Qe(() => Object.assign(Object.assign({ errors: m.value }, $.value), { values: a, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), _i, {
1797
+ var M;
1798
+ (M = J.validateSchema) === null || M === void 0 || M.call(J, "validated-only");
1799
+ }), bo(Uo, J), process.env.NODE_ENV !== "production" && (by(J), Qe(() => Object.assign(Object.assign({ errors: m.value }, $.value), { values: a, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), Mi, {
1800
1800
  deep: !0
1801
1801
  }));
1802
- function Pe(_, N) {
1803
- const G = pt(N) || N == null ? void 0 : N.label, le = O(Ve(_)) || P(_, { label: G }), we = () => pt(N) ? N(is(le, ss)) : N || {};
1804
- function M() {
1802
+ function Pe(M, N) {
1803
+ const G = pt(N) || N == null ? void 0 : N.label, le = O(Ve(M)) || P(M, { label: G }), we = () => pt(N) ? N(is(le, ss)) : N || {};
1804
+ function _() {
1805
1805
  var Le;
1806
1806
  le.touched = !0, ((Le = we().validateOnBlur) !== null && Le !== void 0 ? Le : Br().validateOnBlur) && Et(le.path);
1807
1807
  }
1808
1808
  function te() {
1809
1809
  var Le;
1810
- ((Le = we().validateOnInput) !== null && Le !== void 0 ? Le : Br().validateOnInput) && _t(() => {
1810
+ ((Le = we().validateOnInput) !== null && Le !== void 0 ? Le : Br().validateOnInput) && Mt(() => {
1811
1811
  Et(le.path);
1812
1812
  });
1813
1813
  }
1814
1814
  function ue() {
1815
1815
  var Le;
1816
- ((Le = we().validateOnChange) !== null && Le !== void 0 ? Le : Br().validateOnChange) && _t(() => {
1816
+ ((Le = we().validateOnChange) !== null && Le !== void 0 ? Le : Br().validateOnChange) && Mt(() => {
1817
1817
  Et(le.path);
1818
1818
  });
1819
1819
  }
@@ -1821,46 +1821,46 @@ function $y(t) {
1821
1821
  const Le = {
1822
1822
  onChange: ue,
1823
1823
  onInput: te,
1824
- onBlur: M
1824
+ onBlur: _
1825
1825
  };
1826
1826
  return pt(N) ? Object.assign(Object.assign({}, Le), N(is(le, ss)).props || {}) : N != null && N.props ? Object.assign(Object.assign({}, Le), N.props(is(le, ss))) : Le;
1827
1827
  });
1828
- return [Ne(_, () => {
1828
+ return [Ne(M, () => {
1829
1829
  var Le, Ue, it;
1830
1830
  return (it = (Le = we().validateOnModelUpdate) !== null && Le !== void 0 ? Le : (Ue = Br()) === null || Ue === void 0 ? void 0 : Ue.validateOnModelUpdate) !== null && it !== void 0 ? it : !0;
1831
1831
  }), Se];
1832
1832
  }
1833
- function Re(_) {
1834
- return Array.isArray(_) ? _.map((N) => Ne(N, !0)) : Ne(_);
1833
+ function Re(M) {
1834
+ return Array.isArray(M) ? M.map((N) => Ne(N, !0)) : Ne(M);
1835
1835
  }
1836
- function H(_, N) {
1837
- const [G, le] = Pe(_, N);
1836
+ function H(M, N) {
1837
+ const [G, le] = Pe(M, N);
1838
1838
  function we() {
1839
1839
  le.value.onBlur();
1840
1840
  }
1841
- function M(ue) {
1841
+ function _(ue) {
1842
1842
  const Se = As(ue);
1843
- Y(Ve(_), Se, !1), le.value.onInput();
1843
+ Y(Ve(M), Se, !1), le.value.onInput();
1844
1844
  }
1845
1845
  function te(ue) {
1846
1846
  const Se = As(ue);
1847
- Y(Ve(_), Se, !1), le.value.onChange();
1847
+ Y(Ve(M), Se, !1), le.value.onChange();
1848
1848
  }
1849
1849
  return ae(() => Object.assign(Object.assign({}, le.value), {
1850
1850
  onBlur: we,
1851
- onInput: M,
1851
+ onInput: _,
1852
1852
  onChange: te,
1853
1853
  value: G.value
1854
1854
  }));
1855
1855
  }
1856
- function ee(_, N) {
1857
- const [G, le] = Pe(_, N), we = O(Ve(_));
1858
- function M(te) {
1856
+ function ee(M, N) {
1857
+ const [G, le] = Pe(M, N), we = O(Ve(M));
1858
+ function _(te) {
1859
1859
  G.value = te;
1860
1860
  }
1861
1861
  return ae(() => {
1862
1862
  const te = pt(N) ? N(is(we, ss)) : N || {};
1863
- return Object.assign({ [te.model || "modelValue"]: G.value, [`onUpdate:${te.model || "modelValue"}`]: M }, le.value);
1863
+ return Object.assign({ [te.model || "modelValue"]: G.value, [`onUpdate:${te.model || "modelValue"}`]: _ }, le.value);
1864
1864
  });
1865
1865
  }
1866
1866
  return Object.assign(Object.assign({}, J), { values: O0(a), handleReset: () => bt(), submitForm: We });
@@ -1956,7 +1956,7 @@ const By = /* @__PURE__ */ xn({
1956
1956
  validateOnMount: t.validateOnMount,
1957
1957
  keepValuesOnUnmount: r
1958
1958
  }), $ = g((O, { evt: R }) => {
1959
- Mh(R) && R.target.submit();
1959
+ _h(R) && R.target.submit();
1960
1960
  }, t.onInvalidSubmit), A = t.onSubmit ? g(t.onSubmit, t.onInvalidSubmit) : $;
1961
1961
  function B(O) {
1962
1962
  yc(O) && O.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
@@ -2074,7 +2074,7 @@ On("url", (t) => {
2074
2074
  return e.test(String(t).trim().toLowerCase()) ? !0 : "This field must be a valid URL";
2075
2075
  });
2076
2076
  On("number", (t) => parseFloat(t) ? !0 : "This field must be a number");
2077
- const Me = (t, e) => {
2077
+ const _e = (t, e) => {
2078
2078
  const n = t.__vccOpts || t;
2079
2079
  for (const [r, i] of e)
2080
2080
  n[r] = i;
@@ -2089,7 +2089,7 @@ const Me = (t, e) => {
2089
2089
  function Ky(t, e) {
2090
2090
  return S(), L("svg", Uy, qy);
2091
2091
  }
2092
- const Gy = /* @__PURE__ */ Me(Wy, [["render", Ky]]), Jy = {}, Zy = {
2092
+ const Gy = /* @__PURE__ */ _e(Wy, [["render", Ky]]), Jy = {}, Zy = {
2093
2093
  xmlns: "http://www.w3.org/2000/svg",
2094
2094
  viewBox: "0 0 512 512",
2095
2095
  fill: "currentColor"
@@ -2099,7 +2099,7 @@ const Gy = /* @__PURE__ */ Me(Wy, [["render", Ky]]), Jy = {}, Zy = {
2099
2099
  function e1(t, e) {
2100
2100
  return S(), L("svg", Zy, Qy);
2101
2101
  }
2102
- const t1 = /* @__PURE__ */ Me(Jy, [["render", e1]]), n1 = { class: "relative" }, r1 = {
2102
+ const t1 = /* @__PURE__ */ _e(Jy, [["render", e1]]), n1 = { class: "relative" }, r1 = {
2103
2103
  name: "WpicSpinner"
2104
2104
  }, Ui = /* @__PURE__ */ Object.assign(r1, {
2105
2105
  props: {
@@ -2139,6 +2139,7 @@ const i1 = ["is", "type", "disabled"], o1 = {
2139
2139
  inverse: Boolean,
2140
2140
  disabled: Boolean,
2141
2141
  hideDisabled: Boolean,
2142
+ highlightDisabled: Boolean,
2142
2143
  full: Boolean,
2143
2144
  loading: Boolean,
2144
2145
  colorless: Boolean,
@@ -2225,6 +2226,7 @@ const i1 = ["is", "type", "disabled"], o1 = {
2225
2226
  [`${f[U(ke).theme]}`]: t.destructive && !t.plain && !t.colorless,
2226
2227
  [`${m[U(ke).theme]}`]: t.destructive && t.plain,
2227
2228
  [`${c[U(ke).theme]}`]: t.destructive && t.colorless,
2229
+ "text-violet-500! dark:!text-violet-500/75": t.highlightDisabled && t.disabled,
2228
2230
  "bg-zinc-50 border-violet-800 text-violet-800": t.primary && t.inverse,
2229
2231
  "hover:bg-white": t.primary && t.inverse && !t.disabled && !t.loading,
2230
2232
  "w-full": t.full,
@@ -2294,7 +2296,7 @@ function h1(t, e, n, r, i, o) {
2294
2296
  Fe(t.$slots, "default")
2295
2297
  ]);
2296
2298
  }
2297
- const p1 = /* @__PURE__ */ Me(d1, [["render", h1]]), m1 = {
2299
+ const p1 = /* @__PURE__ */ _e(d1, [["render", h1]]), m1 = {
2298
2300
  name: "WpicForm"
2299
2301
  }, g1 = /* @__PURE__ */ Object.assign(m1, {
2300
2302
  setup(t, { expose: e }) {
@@ -2722,7 +2724,7 @@ async function T1(t, e) {
2722
2724
  y: h * u
2723
2725
  };
2724
2726
  }
2725
- const _1 = function(t) {
2727
+ const M1 = function(t) {
2726
2728
  return t === void 0 && (t = 0), {
2727
2729
  name: "offset",
2728
2730
  options: t,
@@ -2744,7 +2746,7 @@ const _1 = function(t) {
2744
2746
  };
2745
2747
  }
2746
2748
  };
2747
- }, M1 = function(t) {
2749
+ }, _1 = function(t) {
2748
2750
  return t === void 0 && (t = {}), {
2749
2751
  name: "shift",
2750
2752
  options: t,
@@ -2838,7 +2840,7 @@ function Cc(t) {
2838
2840
  }
2839
2841
  function A1(t) {
2840
2842
  let e = kr(t);
2841
- for (; Ln(e) && !Mi(e); ) {
2843
+ for (; Ln(e) && !_i(e); ) {
2842
2844
  if (Cc(e))
2843
2845
  return e;
2844
2846
  e = kr(e);
@@ -2848,7 +2850,7 @@ function A1(t) {
2848
2850
  function Ec() {
2849
2851
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2850
2852
  }
2851
- function Mi(t) {
2853
+ function _i(t) {
2852
2854
  return ["html", "body", "#document"].includes(ri(t));
2853
2855
  }
2854
2856
  function wn(t) {
@@ -2877,7 +2879,7 @@ function kr(t) {
2877
2879
  }
2878
2880
  function zh(t) {
2879
2881
  const e = kr(t);
2880
- return Mi(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ln(e) && Go(e) ? e : zh(e);
2882
+ return _i(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Ln(e) && Go(e) ? e : zh(e);
2881
2883
  }
2882
2884
  function Ta(t, e, n) {
2883
2885
  var r;
@@ -3043,7 +3045,7 @@ function Lu(t, e, n) {
3043
3045
  }
3044
3046
  function Kh(t, e) {
3045
3047
  const n = kr(t);
3046
- return n === e || !An(n) || Mi(n) ? !1 : wn(n).position === "fixed" || Kh(n, e);
3048
+ return n === e || !An(n) || _i(n) ? !1 : wn(n).position === "fixed" || Kh(n, e);
3047
3049
  }
3048
3050
  function F1(t, e) {
3049
3051
  const n = e.get(t);
@@ -3052,7 +3054,7 @@ function F1(t, e) {
3052
3054
  let r = Ta(t, [], !1).filter((l) => An(l) && ri(l) !== "body"), i = null;
3053
3055
  const o = wn(t).position === "fixed";
3054
3056
  let s = o ? kr(t) : t;
3055
- for (; An(s) && !Mi(s); ) {
3057
+ for (; An(s) && !_i(s); ) {
3056
3058
  const l = wn(s), a = Cc(s);
3057
3059
  !a && l.position === "fixed" && (i = null), (o ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Go(s) && !a && Kh(t, s)) ? r = r.filter((u) => u !== s) : i = l, s = kr(s);
3058
3060
  }
@@ -3118,7 +3120,7 @@ function Gh(t, e) {
3118
3120
  return n;
3119
3121
  if (!Ln(t)) {
3120
3122
  let i = kr(t);
3121
- for (; i && !Mi(i); ) {
3123
+ for (; i && !_i(i); ) {
3122
3124
  if (An(i) && !Il(i))
3123
3125
  return i;
3124
3126
  i = kr(i);
@@ -3128,7 +3130,7 @@ function Gh(t, e) {
3128
3130
  let r = Du(t, e);
3129
3131
  for (; r && N1(r) && Il(r); )
3130
3132
  r = Du(r, e);
3131
- return r && Mi(r) && Il(r) && !Cc(r) ? n : r || A1(t) || n;
3133
+ return r && _i(r) && Il(r) && !Cc(r) ? n : r || A1(t) || n;
3132
3134
  }
3133
3135
  const W1 = async function(t) {
3134
3136
  const e = this.getOffsetParent || Gh, n = this.getDimensions, r = await n(t.floating);
@@ -3156,7 +3158,7 @@ const Y1 = {
3156
3158
  getScale: ki,
3157
3159
  isElement: An,
3158
3160
  isRTL: U1
3159
- }, Jh = _1, Zh = M1, Xh = E1, q1 = C1, Qh = (t, e, n) => {
3161
+ }, Jh = M1, Zh = _1, Xh = E1, q1 = C1, Qh = (t, e, n) => {
3160
3162
  const r = /* @__PURE__ */ new Map(), i = {
3161
3163
  platform: Y1,
3162
3164
  ...n
@@ -3208,7 +3210,7 @@ const Z1 = {}, X1 = {
3208
3210
  function tv(t, e) {
3209
3211
  return S(), L("svg", X1, ev);
3210
3212
  }
3211
- const Jo = /* @__PURE__ */ Me(Z1, [["render", tv]]);
3213
+ const Jo = /* @__PURE__ */ _e(Z1, [["render", tv]]);
3212
3214
  let ls;
3213
3215
  const nv = new Uint8Array(16);
3214
3216
  function rv() {
@@ -3225,7 +3227,7 @@ function iv(t, e = 0) {
3225
3227
  const ov = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Iu = {
3226
3228
  randomUUID: ov
3227
3229
  };
3228
- function _c(t, e, n) {
3230
+ function Mc(t, e, n) {
3229
3231
  if (Iu.randomUUID && !t)
3230
3232
  return Iu.randomUUID();
3231
3233
  t = t || {};
@@ -3284,7 +3286,7 @@ const lv = {
3284
3286
  },
3285
3287
  emits: ["show", "hide"],
3286
3288
  setup(t, { expose: e, emit: n }) {
3287
- const r = _c(), i = n, o = t, s = {
3289
+ const r = Mc(), i = n, o = t, s = {
3288
3290
  pmi: "md:absolute md:block bg-white shadow-[0_5px_30px_0px_rgba(0,0,0,0.25)]",
3289
3291
  "wpic-tools": "block absolute mt-2 bg-white border border-gray-300 dark:bg-gray-930 dark:border-gray-920 shadow-md"
3290
3292
  }, l = se(null), a = se(null), c = se(!0);
@@ -3384,7 +3386,7 @@ if (process.env.NODE_ENV !== "production") {
3384
3386
  });
3385
3387
  }
3386
3388
  const av = /\{([0-9a-zA-Z]+)\}/g;
3387
- function Mc(t, ...e) {
3389
+ function _c(t, ...e) {
3388
3390
  return e.length === 1 && ze(e[0]) && (e = e[0]), (!e || !e.hasOwnProperty) && (e = {}), t.replace(av, (n, r) => e.hasOwnProperty(r) ? e[r] : "");
3389
3391
  }
3390
3392
  const Xn = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), cv = (t, e, n) => uv({ l: t, k: e, s: n }), uv = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), mt = (t) => typeof t == "number" && isFinite(t), dv = (t) => tp(t) === "[object Date]", Ni = (t) => tp(t) === "[object RegExp]", al = (t) => Be(t) && Object.keys(t).length === 0, Nt = Object.assign, fv = Object.create, qe = (t = null) => fv(t);
@@ -3558,12 +3560,12 @@ function Yi(t, e, n = {}) {
3558
3560
  function Cv(t) {
3559
3561
  throw t;
3560
3562
  }
3561
- const Ev = /<\/?[\w\s="/.':;#-\/]+>/, Tv = (t) => Ev.test(t), Rn = " ", _v = "\r", Dt = `
3562
- `, Mv = "\u2028", Nv = "\u2029";
3563
+ const Ev = /<\/?[\w\s="/.':;#-\/]+>/, Tv = (t) => Ev.test(t), Rn = " ", Mv = "\r", Dt = `
3564
+ `, _v = "\u2028", Nv = "\u2029";
3563
3565
  function Av(t) {
3564
3566
  const e = t;
3565
3567
  let n = 0, r = 1, i = 1, o = 0;
3566
- const s = (T) => e[T] === _v && e[T + 1] === Dt, l = (T) => e[T] === Dt, a = (T) => e[T] === Nv, c = (T) => e[T] === Mv, u = (T) => s(T) || l(T) || a(T) || c(T), d = () => n, f = () => r, h = () => i, p = () => o, m = (T) => s(T) || a(T) || c(T) ? Dt : e[T], g = () => m(n), v = () => m(n + o);
3568
+ const s = (T) => e[T] === Mv && e[T + 1] === Dt, l = (T) => e[T] === Dt, a = (T) => e[T] === Nv, c = (T) => e[T] === _v, u = (T) => s(T) || l(T) || a(T) || c(T), d = () => n, f = () => r, h = () => i, p = () => o, m = (T) => s(T) || a(T) || c(T) ? Dt : e[T], g = () => m(n), v = () => m(n + o);
3567
3569
  function k() {
3568
3570
  return o = 0, u(n) && (r++, i = 0), s(n) && n++, n++, i++, e[n];
3569
3571
  }
@@ -4900,7 +4902,7 @@ const mp = ul.__EXTEND_POINT__, Dr = cl(mp), It = {
4900
4902
  [It.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
4901
4903
  };
4902
4904
  function Jr(t, ...e) {
4903
- return Mc(Ob[t], ...e);
4905
+ return _c(Ob[t], ...e);
4904
4906
  }
4905
4907
  const gp = Ce.__EXTEND_POINT__, Ir = cl(gp), ft = {
4906
4908
  INVALID_ARGUMENT: gp,
@@ -4920,7 +4922,7 @@ const gp = Ce.__EXTEND_POINT__, Ir = cl(gp), ft = {
4920
4922
  __EXTEND_POINT__: Ir()
4921
4923
  // 24
4922
4924
  };
4923
- function _n(t) {
4925
+ function Mn(t) {
4924
4926
  return Yi(t, null, process.env.NODE_ENV !== "production" ? { messages: Cb } : void 0);
4925
4927
  }
4926
4928
  const Cb = {
@@ -4945,12 +4947,12 @@ function Uu(t) {
4945
4947
  if (t.constructor.name === "Function") {
4946
4948
  const e = t();
4947
4949
  if (pv(e))
4948
- throw _n(ft.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
4950
+ throw Mn(ft.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
4949
4951
  return $l = e;
4950
4952
  } else
4951
- throw _n(ft.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
4953
+ throw Mn(ft.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
4952
4954
  } else
4953
- throw _n(ft.NOT_SUPPORT_LOCALE_TYPE);
4955
+ throw Mn(ft.NOT_SUPPORT_LOCALE_TYPE);
4954
4956
  }
4955
4957
  function Eb(t, e, n) {
4956
4958
  return [.../* @__PURE__ */ new Set([
@@ -4985,11 +4987,11 @@ function Tb(t, e, n) {
4985
4987
  const i = e.split("-");
4986
4988
  do {
4987
4989
  const o = i.join("-");
4988
- r = _b(t, o, n), i.splice(-1, 1);
4990
+ r = Mb(t, o, n), i.splice(-1, 1);
4989
4991
  } while (i.length && r === !0);
4990
4992
  return r;
4991
4993
  }
4992
- function _b(t, e, n) {
4994
+ function Mb(t, e, n) {
4993
4995
  let r = !1;
4994
4996
  if (!t.includes(e) && (r = !0, e)) {
4995
4997
  r = e[e.length - 1] !== "!";
@@ -4998,7 +5000,7 @@ function _b(t, e, n) {
4998
5000
  }
4999
5001
  return r;
5000
5002
  }
5001
- const Mb = "9.14.4", dl = -1, Eo = "en-US", Ps = "", qu = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
5003
+ const _b = "9.14.4", dl = -1, Eo = "en-US", Ps = "", qu = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
5002
5004
  function Nb() {
5003
5005
  return {
5004
5006
  upper: (t, e) => e === "text" && he(t) ? t.toUpperCase() : e === "vnode" && ze(t) && "__v_isVNode" in t ? t.children.toUpperCase() : t,
@@ -5028,7 +5030,7 @@ const Gu = (t) => {
5028
5030
  }, $b = () => xp;
5029
5031
  let Ju = 0;
5030
5032
  function Pb(t = {}) {
5031
- const e = Xe(t.onWarn) ? t.onWarn : Qn, n = he(t.version) ? t.version : Mb, r = he(t.locale) || Xe(t.locale) ? t.locale : Eo, i = Xe(r) ? Eo : r, o = lt(t.fallbackLocale) || Be(t.fallbackLocale) || he(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Be(t.messages) ? t.messages : Pl(i), l = Be(t.datetimeFormats) ? t.datetimeFormats : Pl(i), a = Be(t.numberFormats) ? t.numberFormats : Pl(i), c = Nt(qe(), t.modifiers, Nb()), u = t.pluralRules || qe(), d = Xe(t.missing) ? t.missing : null, f = Ke(t.missingWarn) || Ni(t.missingWarn) ? t.missingWarn : !0, h = Ke(t.fallbackWarn) || Ni(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, g = Xe(t.postTranslation) ? t.postTranslation : null, v = Be(t.processor) ? t.processor : null, k = Ke(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, b = !!t.escapeParameter, y = Xe(t.messageCompiler) ? t.messageCompiler : vp;
5033
+ const e = Xe(t.onWarn) ? t.onWarn : Qn, n = he(t.version) ? t.version : _b, r = he(t.locale) || Xe(t.locale) ? t.locale : Eo, i = Xe(r) ? Eo : r, o = lt(t.fallbackLocale) || Be(t.fallbackLocale) || he(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Be(t.messages) ? t.messages : Pl(i), l = Be(t.datetimeFormats) ? t.datetimeFormats : Pl(i), a = Be(t.numberFormats) ? t.numberFormats : Pl(i), c = Nt(qe(), t.modifiers, Nb()), u = t.pluralRules || qe(), d = Xe(t.missing) ? t.missing : null, f = Ke(t.missingWarn) || Ni(t.missingWarn) ? t.missingWarn : !0, h = Ke(t.fallbackWarn) || Ni(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, g = Xe(t.postTranslation) ? t.postTranslation : null, v = Be(t.processor) ? t.processor : null, k = Ke(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, b = !!t.escapeParameter, y = Xe(t.messageCompiler) ? t.messageCompiler : vp;
5032
5034
  process.env.NODE_ENV !== "production" && Xe(t.messageCompiler) && np(Jr(It.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
5033
5035
  const C = Xe(t.messageResolver) ? t.messageResolver : bp || ub, w = Xe(t.localeFallbacker) ? t.localeFallbacker : wp || Eb, T = ze(t.fallbackContext) ? t.fallbackContext : void 0, $ = t, A = ze($.__datetimeFormatters) ? $.__datetimeFormatters : /* @__PURE__ */ new Map(), B = ze($.__numberFormatters) ? $.__numberFormatters : /* @__PURE__ */ new Map(), P = ze($.__meta) ? $.__meta : {};
5034
5036
  Ju++;
@@ -5122,11 +5124,11 @@ function Zu(t, e) {
5122
5124
  if (n != null)
5123
5125
  return t.type === "text" ? n : t.normalize([n]);
5124
5126
  {
5125
- const r = tb(e).reduce((i, o) => [...i, _a(t, o)], []);
5127
+ const r = tb(e).reduce((i, o) => [...i, Ma(t, o)], []);
5126
5128
  return t.normalize(r);
5127
5129
  }
5128
5130
  }
5129
- function _a(t, e) {
5131
+ function Ma(t, e) {
5130
5132
  const n = Ac(e);
5131
5133
  switch (n) {
5132
5134
  case 3:
@@ -5151,7 +5153,7 @@ function _a(t, e) {
5151
5153
  }
5152
5154
  case 6: {
5153
5155
  const r = e, i = nb(r), o = rb(r);
5154
- return t.linked(_a(t, o), i ? _a(t, i) : void 0, t.type);
5156
+ return t.linked(Ma(t, o), i ? Ma(t, i) : void 0, t.type);
5155
5157
  }
5156
5158
  case 7:
5157
5159
  return cs(e, n);
@@ -5163,7 +5165,7 @@ function _a(t, e) {
5163
5165
  }
5164
5166
  const Bb = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
5165
5167
  function Cp(t, e) {
5166
- e && Tv(t) && Qn(Mc(Bb, { source: t }));
5168
+ e && Tv(t) && Qn(_c(Bb, { source: t }));
5167
5169
  }
5168
5170
  const Ep = (t) => t;
5169
5171
  let yi = qe();
@@ -5172,7 +5174,7 @@ function Tp(t) {
5172
5174
  reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
5173
5175
  (message compiler warning message: ${t.message})`);
5174
5176
  }
5175
- function _p(t, e = {}) {
5177
+ function Mp(t, e = {}) {
5176
5178
  let n = !1;
5177
5179
  const r = e.onError || Cv;
5178
5180
  return e.onError = (i) => {
@@ -5181,7 +5183,7 @@ function _p(t, e = {}) {
5181
5183
  }
5182
5184
  const Fb = /* @__NO_SIDE_EFFECTS__ */ (t, e) => {
5183
5185
  if (!he(t))
5184
- throw _n(ft.NOT_SUPPORT_NON_STRING_MESSAGE);
5186
+ throw Mn(ft.NOT_SUPPORT_NON_STRING_MESSAGE);
5185
5187
  process.env.NODE_ENV !== "production" && (e.onWarn = Tp);
5186
5188
  {
5187
5189
  const n = Ke(e.warnHtmlMessage) ? e.warnHtmlMessage : !0;
@@ -5189,7 +5191,7 @@ const Fb = /* @__NO_SIDE_EFFECTS__ */ (t, e) => {
5189
5191
  const i = (e.onCacheKey || Ep)(t), o = yi[i];
5190
5192
  if (o)
5191
5193
  return o;
5192
- const { code: s, detectError: l } = _p(t, e), a = new Function(`return ${s}`)();
5194
+ const { code: s, detectError: l } = Mp(t, e), a = new Function(`return ${s}`)();
5193
5195
  return l ? a : yi[i] = a;
5194
5196
  }
5195
5197
  };
@@ -5200,7 +5202,7 @@ function jb(t, e) {
5200
5202
  const i = (e.onCacheKey || Ep)(t), o = yi[i];
5201
5203
  if (o)
5202
5204
  return o;
5203
- const { ast: s, detectError: l } = _p(t, {
5205
+ const { ast: s, detectError: l } = Mp(t, {
5204
5206
  ...e,
5205
5207
  location: process.env.NODE_ENV !== "production",
5206
5208
  jit: !0
@@ -5219,13 +5221,13 @@ function jb(t, e) {
5219
5221
  }
5220
5222
  const Xu = () => "", ln = (t) => Xe(t);
5221
5223
  function Qu(t, ...e) {
5222
- const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: s, messages: l } = t, [a, c] = Ma(...e), u = Ke(c.missingWarn) ? c.missingWarn : t.missingWarn, d = Ke(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, f = Ke(c.escapeParameter) ? c.escapeParameter : t.escapeParameter, h = !!c.resolvedMessage, p = he(c.default) || Ke(c.default) ? Ke(c.default) ? o ? a : () => a : c.default : n ? o ? a : () => a : "", m = n || p !== "", g = Lc(t, c);
5224
+ const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: s, messages: l } = t, [a, c] = _a(...e), u = Ke(c.missingWarn) ? c.missingWarn : t.missingWarn, d = Ke(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, f = Ke(c.escapeParameter) ? c.escapeParameter : t.escapeParameter, h = !!c.resolvedMessage, p = he(c.default) || Ke(c.default) ? Ke(c.default) ? o ? a : () => a : c.default : n ? o ? a : () => a : "", m = n || p !== "", g = Lc(t, c);
5223
5225
  f && Hb(c);
5224
5226
  let [v, k, b] = h ? [
5225
5227
  a,
5226
5228
  g,
5227
5229
  l[g] || qe()
5228
- ] : Mp(t, a, g, s, d, u), y = v, C = a;
5230
+ ] : _p(t, a, g, s, d, u), y = v, C = a;
5229
5231
  if (!h && !(he(y) || bn(y) || ln(y)) && m && (y = p, C = y), !h && (!(he(y) || bn(y) || ln(y)) || !he(k)))
5230
5232
  return i ? dl : a;
5231
5233
  if (process.env.NODE_ENV !== "production" && he(y) && t.messageCompiler == null)
@@ -5254,7 +5256,7 @@ function Hb(t) {
5254
5256
  he(t.named[e]) && (t.named[e] = Pu(t.named[e]));
5255
5257
  });
5256
5258
  }
5257
- function Mp(t, e, n, r, i, o) {
5259
+ function _p(t, e, n, r, i, o) {
5258
5260
  const { messages: s, onWarn: l, messageResolver: a, localeFallbacker: c } = t, u = c(t, r, n);
5259
5261
  let d = qe(), f, h = null, p = n, m = null;
5260
5262
  const g = "translate";
@@ -5340,10 +5342,10 @@ function zb(t, e, n) {
5340
5342
  }
5341
5343
  return s;
5342
5344
  }
5343
- function Ma(...t) {
5345
+ function _a(...t) {
5344
5346
  const [e, n, r] = t, i = qe();
5345
5347
  if (!he(e) && !mt(e) && !ln(e) && !bn(e))
5346
- throw _n(ft.INVALID_ARGUMENT);
5348
+ throw Mn(ft.INVALID_ARGUMENT);
5347
5349
  const o = mt(e) ? String(e) : (ln(e), e);
5348
5350
  return mt(n) ? i.plural = n : he(n) ? i.default = n : Be(n) && !al(n) ? i.named = n : lt(n) && (i.list = n), mt(r) ? i.plural = r : he(r) ? i.default = r : Be(r) && Nt(i, r), [o, i];
5349
5351
  }
@@ -5383,7 +5385,7 @@ function Yb(t, e, n, r) {
5383
5385
  messages: (h) => {
5384
5386
  let p = s(n, h);
5385
5387
  if (p == null && u) {
5386
- const [, , m] = Mp(u, h, e, l, a, c);
5388
+ const [, , m] = _p(u, h, e, l, a, c);
5387
5389
  p = s(m, h);
5388
5390
  }
5389
5391
  if (he(p) || bn(p)) {
@@ -5468,22 +5470,22 @@ function Na(...t) {
5468
5470
  if (he(e)) {
5469
5471
  const a = e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
5470
5472
  if (!a)
5471
- throw _n(ft.INVALID_ISO_DATE_ARGUMENT);
5473
+ throw Mn(ft.INVALID_ISO_DATE_ARGUMENT);
5472
5474
  const c = a[3] ? a[3].trim().startsWith("T") ? `${a[1].trim()}${a[3].trim()}` : `${a[1].trim()}T${a[3].trim()}` : a[1].trim();
5473
5475
  l = new Date(c);
5474
5476
  try {
5475
5477
  l.toISOString();
5476
5478
  } catch {
5477
- throw _n(ft.INVALID_ISO_DATE_ARGUMENT);
5479
+ throw Mn(ft.INVALID_ISO_DATE_ARGUMENT);
5478
5480
  }
5479
5481
  } else if (dv(e)) {
5480
5482
  if (isNaN(e.getTime()))
5481
- throw _n(ft.INVALID_DATE_ARGUMENT);
5483
+ throw Mn(ft.INVALID_DATE_ARGUMENT);
5482
5484
  l = e;
5483
5485
  } else if (mt(e))
5484
5486
  l = e;
5485
5487
  else
5486
- throw _n(ft.INVALID_ARGUMENT);
5488
+ throw Mn(ft.INVALID_ARGUMENT);
5487
5489
  return he(n) ? o.key = n : Be(n) && Object.keys(n).forEach((a) => {
5488
5490
  Lp.includes(a) ? s[a] = n[a] : o[a] = n[a];
5489
5491
  }), he(r) ? o.locale = r : Be(r) && (s = r), Be(i) && (s = i), [o.key || "", l, o, s];
@@ -5560,7 +5562,7 @@ function Aa(...t) {
5560
5562
  const [e, n, r, i] = t, o = qe();
5561
5563
  let s = qe();
5562
5564
  if (!mt(e))
5563
- throw _n(ft.INVALID_ARGUMENT);
5565
+ throw Mn(ft.INVALID_ARGUMENT);
5564
5566
  const l = e;
5565
5567
  return he(n) ? o.key = n : Be(n) && Object.keys(n).forEach((a) => {
5566
5568
  Dp.includes(a) ? s[a] = n[a] : o[a] = n[a];
@@ -5617,7 +5619,7 @@ const Ip = It.__EXTEND_POINT__, Vn = cl(Ip), jt = {
5617
5619
  [jt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
5618
5620
  };
5619
5621
  function Rs(t, ...e) {
5620
- return Mc(Gb[t], ...e);
5622
+ return _c(Gb[t], ...e);
5621
5623
  }
5622
5624
  const $p = ft.__EXTEND_POINT__, Ft = cl($p), et = {
5623
5625
  // composer module errors
@@ -5837,7 +5839,7 @@ function t2(t = {}, e) {
5837
5839
  function ge(H, ee) {
5838
5840
  return H !== "translate" || !ee.resolvedMessage;
5839
5841
  }
5840
- const be = (H, ee, _, N, G, le) => {
5842
+ const be = (H, ee, M, N, G, le) => {
5841
5843
  P();
5842
5844
  let we;
5843
5845
  try {
@@ -5845,22 +5847,22 @@ function t2(t = {}, e) {
5845
5847
  } finally {
5846
5848
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = void 0);
5847
5849
  }
5848
- if (_ !== "translate exists" && // for not `te` (e.g `t`)
5849
- mt(we) && we === dl || _ === "translate exists" && !we) {
5850
- const [M, te] = ee();
5851
- if (process.env.NODE_ENV !== "production" && n && he(M) && ge(_, te) && (g && (fl(m, M) || Sp(p, M)) && Qn(Rs(jt.FALLBACK_TO_ROOT, {
5852
- key: M,
5853
- type: _
5850
+ if (M !== "translate exists" && // for not `te` (e.g `t`)
5851
+ mt(we) && we === dl || M === "translate exists" && !we) {
5852
+ const [_, te] = ee();
5853
+ if (process.env.NODE_ENV !== "production" && n && he(_) && ge(M, te) && (g && (fl(m, _) || Sp(p, _)) && Qn(Rs(jt.FALLBACK_TO_ROOT, {
5854
+ key: _,
5855
+ type: M
5854
5856
  })), process.env.NODE_ENV !== "production")) {
5855
5857
  const { __v_emitter: ue } = A;
5856
5858
  ue && g && ue.emit("fallback", {
5857
- type: _,
5858
- key: M,
5859
+ type: M,
5860
+ key: _,
5859
5861
  to: "global",
5860
- groupId: `${_}:${M}`
5862
+ groupId: `${M}:${_}`
5861
5863
  });
5862
5864
  }
5863
- return n && g ? N(n) : G(M);
5865
+ return n && g ? N(n) : G(_);
5864
5866
  } else {
5865
5867
  if (le(we))
5866
5868
  return we;
@@ -5868,13 +5870,13 @@ function t2(t = {}, e) {
5868
5870
  }
5869
5871
  };
5870
5872
  function V(...H) {
5871
- return be((ee) => Reflect.apply(Qu, null, [ee, ...H]), () => Ma(...H), "translate", (ee) => Reflect.apply(ee.t, ee, [...H]), (ee) => ee, (ee) => he(ee));
5873
+ return be((ee) => Reflect.apply(Qu, null, [ee, ...H]), () => _a(...H), "translate", (ee) => Reflect.apply(ee.t, ee, [...H]), (ee) => ee, (ee) => he(ee));
5872
5874
  }
5873
5875
  function q(...H) {
5874
- const [ee, _, N] = H;
5876
+ const [ee, M, N] = H;
5875
5877
  if (N && !ze(N))
5876
5878
  throw dr(et.INVALID_ARGUMENT);
5877
- return V(ee, _, Nt({ resolvedMessage: !0 }, N || {}));
5879
+ return V(ee, M, Nt({ resolvedMessage: !0 }, N || {}));
5878
5880
  }
5879
5881
  function Z(...H) {
5880
5882
  return be((ee) => Reflect.apply(td, null, [ee, ...H]), () => Na(...H), "datetime format", (ee) => Reflect.apply(ee.d, ee, [...H]), () => Ps, (ee) => he(ee));
@@ -5893,16 +5895,16 @@ function t2(t = {}, e) {
5893
5895
  function Ne(...H) {
5894
5896
  return be(
5895
5897
  (ee) => {
5896
- let _;
5898
+ let M;
5897
5899
  const N = ee;
5898
5900
  try {
5899
- N.processor = me, _ = Reflect.apply(Qu, null, [N, ...H]);
5901
+ N.processor = me, M = Reflect.apply(Qu, null, [N, ...H]);
5900
5902
  } finally {
5901
5903
  N.processor = null;
5902
5904
  }
5903
- return _;
5905
+ return M;
5904
5906
  },
5905
- () => Ma(...H),
5907
+ () => _a(...H),
5906
5908
  "translate",
5907
5909
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5908
5910
  (ee) => ee[La](...H),
@@ -5939,15 +5941,15 @@ function t2(t = {}, e) {
5939
5941
  return be(() => {
5940
5942
  if (!H)
5941
5943
  return !1;
5942
- const _ = he(ee) ? ee : c.value, N = bt(_), G = A.messageResolver(N, H);
5944
+ const M = he(ee) ? ee : c.value, N = bt(M), G = A.messageResolver(N, H);
5943
5945
  return l ? G != null : bn(G) || ln(G) || he(G);
5944
- }, () => [H], "translate exists", (_) => Reflect.apply(_.te, _, [H, ee]), Qb, (_) => Ke(_));
5946
+ }, () => [H], "translate exists", (M) => Reflect.apply(M.te, M, [H, ee]), Qb, (M) => Ke(M));
5945
5947
  }
5946
5948
  function De(H) {
5947
5949
  let ee = null;
5948
- const _ = yp(A, u.value, c.value);
5949
- for (let N = 0; N < _.length; N++) {
5950
- const G = d.value[_[N]] || {}, le = A.messageResolver(G, H);
5950
+ const M = yp(A, u.value, c.value);
5951
+ for (let N = 0; N < M.length; N++) {
5952
+ const G = d.value[M[N]] || {}, le = A.messageResolver(G, H);
5951
5953
  if (le != null) {
5952
5954
  ee = le;
5953
5955
  break;
@@ -5964,20 +5966,20 @@ function t2(t = {}, e) {
5964
5966
  }
5965
5967
  function wt(H, ee) {
5966
5968
  if (o) {
5967
- const _ = { [H]: ee };
5968
- for (const N in _)
5969
- vn(_, N) && To(_[N]);
5970
- ee = _[H];
5969
+ const M = { [H]: ee };
5970
+ for (const N in M)
5971
+ vn(M, N) && To(M[N]);
5972
+ ee = M[H];
5971
5973
  }
5972
5974
  d.value[H] = ee, A.messages = d.value;
5973
5975
  }
5974
5976
  function Et(H, ee) {
5975
5977
  d.value[H] = d.value[H] || {};
5976
- const _ = { [H]: ee };
5978
+ const M = { [H]: ee };
5977
5979
  if (o)
5978
- for (const N in _)
5979
- vn(_, N) && To(_[N]);
5980
- ee = _[H], ws(ee, d.value[H]), A.messages = d.value;
5980
+ for (const N in M)
5981
+ vn(M, N) && To(M[N]);
5982
+ ee = M[H], ws(ee, d.value[H]), A.messages = d.value;
5981
5983
  }
5982
5984
  function x(H) {
5983
5985
  return f.value[H] || {};
@@ -6450,7 +6452,7 @@ const f2 = {}, h2 = {
6450
6452
  function g2(t, e) {
6451
6453
  return S(), L("svg", h2, m2);
6452
6454
  }
6453
- const Fp = /* @__PURE__ */ Me(f2, [["render", g2]]), y2 = {}, v2 = {
6455
+ const Fp = /* @__PURE__ */ _e(f2, [["render", g2]]), y2 = {}, v2 = {
6454
6456
  xmlns: "http://www.w3.org/2000/svg",
6455
6457
  viewBox: "0 0 24 24",
6456
6458
  fill: "currentColor"
@@ -6464,13 +6466,13 @@ const Fp = /* @__PURE__ */ Me(f2, [["render", g2]]), y2 = {}, v2 = {
6464
6466
  function k2(t, e) {
6465
6467
  return S(), L("svg", v2, w2);
6466
6468
  }
6467
- const Pc = /* @__PURE__ */ Me(y2, [["render", k2]]), x2 = {
6469
+ const Pc = /* @__PURE__ */ _e(y2, [["render", k2]]), x2 = {
6468
6470
  key: 0,
6469
6471
  class: "mb-2 wpic-form-label text-base text-gray-500 dark:text-gray-500 flex items-center justify-between"
6470
6472
  }, S2 = { class: "flex items-center gap-2" }, O2 = { key: 0 }, C2 = { class: "" }, E2 = { class: "flex justify-end" }, T2 = {
6471
6473
  key: 0,
6472
6474
  class: "absolute dark:text-gray-400 left-0 ml-0 w-9 h-full flex items-center justify-center text-center"
6473
- }, _2 = { class: "flex items-center justify-center text-center opacity-50 w-4 h-4 leading-none overflow-hidden" }, M2 = {
6475
+ }, M2 = { class: "flex items-center justify-center text-center opacity-50 w-4 h-4 leading-none overflow-hidden" }, _2 = {
6474
6476
  key: 1,
6475
6477
  class: "absolute right-0 mr-2 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
6476
6478
  }, N2 = {
@@ -6546,12 +6548,12 @@ const Pc = /* @__PURE__ */ Me(y2, [["render", k2]]), x2 = {
6546
6548
  }])
6547
6549
  }, [
6548
6550
  s.$slots.prepend ? (S(), L("div", T2, [
6549
- F("div", _2, [
6551
+ F("div", M2, [
6550
6552
  Fe(s.$slots, "prepend")
6551
6553
  ])
6552
6554
  ])) : ce("", !0),
6553
6555
  Fe(s.$slots, "default"),
6554
- t.loading ? (S(), L("div", M2, [
6556
+ t.loading ? (S(), L("div", _2, [
6555
6557
  ve(Ui, { class: "w-6 h-6 opacity-50" })
6556
6558
  ])) : t.clearable ? (S(), L("div", {
6557
6559
  key: 2,
@@ -6601,7 +6603,7 @@ var W2 = /^\s+/;
6601
6603
  function U2(t) {
6602
6604
  return t && t.slice(0, z2(t) + 1).replace(W2, "");
6603
6605
  }
6604
- function _o(t) {
6606
+ function Mo(t) {
6605
6607
  var e = typeof t;
6606
6608
  return t != null && (e == "object" || e == "function");
6607
6609
  }
@@ -6611,9 +6613,9 @@ function hd(t) {
6611
6613
  return t;
6612
6614
  if (j2(t))
6613
6615
  return fd;
6614
- if (_o(t)) {
6616
+ if (Mo(t)) {
6615
6617
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
6616
- t = _o(e) ? e + "" : e;
6618
+ t = Mo(e) ? e + "" : e;
6617
6619
  }
6618
6620
  if (typeof t != "string")
6619
6621
  return t === 0 ? t : +t;
@@ -6623,7 +6625,7 @@ function hd(t) {
6623
6625
  }
6624
6626
  var J2 = "[object AsyncFunction]", Z2 = "[object Function]", X2 = "[object GeneratorFunction]", Q2 = "[object Proxy]";
6625
6627
  function zp(t) {
6626
- if (!_o(t))
6628
+ if (!Mo(t))
6627
6629
  return !1;
6628
6630
  var e = qi(t);
6629
6631
  return e == Z2 || e == X2 || e == J2 || e == Q2;
@@ -6653,7 +6655,7 @@ var rw = /[\\^$.*+?()[\]{}|]/g, iw = /^\[object .+?Constructor\]$/, ow = Functio
6653
6655
  "^" + lw.call(aw).replace(rw, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6654
6656
  );
6655
6657
  function uw(t) {
6656
- if (!_o(t) || ew(t))
6658
+ if (!Mo(t) || ew(t))
6657
6659
  return !1;
6658
6660
  var e = zp(t) ? cw : iw;
6659
6661
  return e.test(oi(t));
@@ -6702,9 +6704,9 @@ var Yp = Object.prototype, kw = Yp.hasOwnProperty, xw = Yp.propertyIsEnumerable,
6702
6704
  function Ow() {
6703
6705
  return !1;
6704
6706
  }
6705
- var qp = typeof exports == "object" && exports && !exports.nodeType && exports, gd = qp && typeof module == "object" && module && !module.nodeType && module, Cw = gd && gd.exports === qp, yd = Cw ? Pn.Buffer : void 0, Ew = yd ? yd.isBuffer : void 0, Ba = Ew || Ow, Tw = "[object Arguments]", _w = "[object Array]", Mw = "[object Boolean]", Nw = "[object Date]", Aw = "[object Error]", Lw = "[object Function]", Dw = "[object Map]", Iw = "[object Number]", $w = "[object Object]", Pw = "[object RegExp]", Rw = "[object Set]", Vw = "[object String]", Bw = "[object WeakMap]", Fw = "[object ArrayBuffer]", jw = "[object DataView]", Hw = "[object Float32Array]", zw = "[object Float64Array]", Ww = "[object Int8Array]", Uw = "[object Int16Array]", Yw = "[object Int32Array]", qw = "[object Uint8Array]", Kw = "[object Uint8ClampedArray]", Gw = "[object Uint16Array]", Jw = "[object Uint32Array]", Ze = {};
6707
+ var qp = typeof exports == "object" && exports && !exports.nodeType && exports, gd = qp && typeof module == "object" && module && !module.nodeType && module, Cw = gd && gd.exports === qp, yd = Cw ? Pn.Buffer : void 0, Ew = yd ? yd.isBuffer : void 0, Ba = Ew || Ow, Tw = "[object Arguments]", Mw = "[object Array]", _w = "[object Boolean]", Nw = "[object Date]", Aw = "[object Error]", Lw = "[object Function]", Dw = "[object Map]", Iw = "[object Number]", $w = "[object Object]", Pw = "[object RegExp]", Rw = "[object Set]", Vw = "[object String]", Bw = "[object WeakMap]", Fw = "[object ArrayBuffer]", jw = "[object DataView]", Hw = "[object Float32Array]", zw = "[object Float64Array]", Ww = "[object Int8Array]", Uw = "[object Int16Array]", Yw = "[object Int32Array]", qw = "[object Uint8Array]", Kw = "[object Uint8ClampedArray]", Gw = "[object Uint16Array]", Jw = "[object Uint32Array]", Ze = {};
6706
6708
  Ze[Hw] = Ze[zw] = Ze[Ww] = Ze[Uw] = Ze[Yw] = Ze[qw] = Ze[Kw] = Ze[Gw] = Ze[Jw] = !0;
6707
- Ze[Tw] = Ze[_w] = Ze[Fw] = Ze[Mw] = Ze[jw] = Ze[Nw] = Ze[Aw] = Ze[Lw] = Ze[Dw] = Ze[Iw] = Ze[$w] = Ze[Pw] = Ze[Rw] = Ze[Vw] = Ze[Bw] = !1;
6709
+ Ze[Tw] = Ze[Mw] = Ze[Fw] = Ze[_w] = Ze[jw] = Ze[Nw] = Ze[Aw] = Ze[Lw] = Ze[Dw] = Ze[Iw] = Ze[$w] = Ze[Pw] = Ze[Rw] = Ze[Vw] = Ze[Bw] = !1;
6708
6710
  function Zw(t) {
6709
6711
  return Di(t) && Up(t.length) && !!Ze[qi(t)];
6710
6712
  }
@@ -6747,9 +6749,9 @@ function lk(t) {
6747
6749
  function ak(t) {
6748
6750
  return gw(t) ? nk(t) : lk(t);
6749
6751
  }
6750
- var Mo = Ki(Object, "create");
6752
+ var _o = Ki(Object, "create");
6751
6753
  function ck() {
6752
- this.__data__ = Mo ? Mo(null) : {}, this.size = 0;
6754
+ this.__data__ = _o ? _o(null) : {}, this.size = 0;
6753
6755
  }
6754
6756
  function uk(t) {
6755
6757
  var e = this.has(t) && delete this.__data__[t];
@@ -6758,7 +6760,7 @@ function uk(t) {
6758
6760
  var dk = "__lodash_hash_undefined__", fk = Object.prototype, hk = fk.hasOwnProperty;
6759
6761
  function pk(t) {
6760
6762
  var e = this.__data__;
6761
- if (Mo) {
6763
+ if (_o) {
6762
6764
  var n = e[t];
6763
6765
  return n === dk ? void 0 : n;
6764
6766
  }
@@ -6767,12 +6769,12 @@ function pk(t) {
6767
6769
  var mk = Object.prototype, gk = mk.hasOwnProperty;
6768
6770
  function yk(t) {
6769
6771
  var e = this.__data__;
6770
- return Mo ? e[t] !== void 0 : gk.call(e, t);
6772
+ return _o ? e[t] !== void 0 : gk.call(e, t);
6771
6773
  }
6772
6774
  var vk = "__lodash_hash_undefined__";
6773
6775
  function bk(t, e) {
6774
6776
  var n = this.__data__;
6775
- return this.size += this.has(t) ? 0 : 1, n[t] = Mo && e === void 0 ? vk : e, this;
6777
+ return this.size += this.has(t) ? 0 : 1, n[t] = _o && e === void 0 ? vk : e, this;
6776
6778
  }
6777
6779
  function Zr(t) {
6778
6780
  var e = -1, n = t == null ? 0 : t.length;
@@ -6834,15 +6836,15 @@ function Tk() {
6834
6836
  string: new Zr()
6835
6837
  };
6836
6838
  }
6837
- function _k(t) {
6839
+ function Mk(t) {
6838
6840
  var e = typeof t;
6839
6841
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
6840
6842
  }
6841
6843
  function pl(t, e) {
6842
6844
  var n = t.__data__;
6843
- return _k(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
6845
+ return Mk(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
6844
6846
  }
6845
- function Mk(t) {
6847
+ function _k(t) {
6846
6848
  var e = pl(this, t).delete(t);
6847
6849
  return this.size -= e ? 1 : 0, e;
6848
6850
  }
@@ -6864,7 +6866,7 @@ function si(t) {
6864
6866
  }
6865
6867
  }
6866
6868
  si.prototype.clear = Tk;
6867
- si.prototype.delete = Mk;
6869
+ si.prototype.delete = _k;
6868
6870
  si.prototype.get = Nk;
6869
6871
  si.prototype.has = Ak;
6870
6872
  si.prototype.set = Lk;
@@ -7015,7 +7017,7 @@ function sx(t) {
7015
7017
  n[++e] = r;
7016
7018
  }), n;
7017
7019
  }
7018
- var lx = 1, ax = 2, cx = "[object Boolean]", ux = "[object Date]", dx = "[object Error]", fx = "[object Map]", hx = "[object Number]", px = "[object RegExp]", mx = "[object Set]", gx = "[object String]", yx = "[object Symbol]", vx = "[object ArrayBuffer]", bx = "[object DataView]", _d = Li ? Li.prototype : void 0, Fl = _d ? _d.valueOf : void 0;
7020
+ var lx = 1, ax = 2, cx = "[object Boolean]", ux = "[object Date]", dx = "[object Error]", fx = "[object Map]", hx = "[object Number]", px = "[object RegExp]", mx = "[object Set]", gx = "[object String]", yx = "[object Symbol]", vx = "[object ArrayBuffer]", bx = "[object DataView]", Md = Li ? Li.prototype : void 0, Fl = Md ? Md.valueOf : void 0;
7019
7021
  function wx(t, e, n, r, i, o, s) {
7020
7022
  switch (n) {
7021
7023
  case bx:
@@ -7083,10 +7085,10 @@ function Ox(t, e, n, r, i, o) {
7083
7085
  }
7084
7086
  return o.delete(t), o.delete(e), m;
7085
7087
  }
7086
- var Cx = 1, Md = "[object Arguments]", Nd = "[object Array]", us = "[object Object]", Ex = Object.prototype, Ad = Ex.hasOwnProperty;
7088
+ var Cx = 1, _d = "[object Arguments]", Nd = "[object Array]", us = "[object Object]", Ex = Object.prototype, Ad = Ex.hasOwnProperty;
7087
7089
  function Tx(t, e, n, r, i, o) {
7088
7090
  var s = Vs(t), l = Vs(e), a = s ? Nd : ir(t), c = l ? Nd : ir(e);
7089
- a = a == Md ? us : a, c = c == Md ? us : c;
7091
+ a = a == _d ? us : a, c = c == _d ? us : c;
7090
7092
  var u = a == us, d = c == us, f = a == c;
7091
7093
  if (f && Ba(t)) {
7092
7094
  if (!Ba(e))
@@ -7109,12 +7111,12 @@ function Zp(t, e, n, r, i) {
7109
7111
  }
7110
7112
  var jl = function() {
7111
7113
  return Pn.Date.now();
7112
- }, _x = "Expected a function", Mx = Math.max, Nx = Math.min;
7114
+ }, Mx = "Expected a function", _x = Math.max, Nx = Math.min;
7113
7115
  function za(t, e, n) {
7114
7116
  var r, i, o, s, l, a, c = 0, u = !1, d = !1, f = !0;
7115
7117
  if (typeof t != "function")
7116
- throw new TypeError(_x);
7117
- e = hd(e) || 0, _o(n) && (u = !!n.leading, d = "maxWait" in n, o = d ? Mx(hd(n.maxWait) || 0, e) : o, f = "trailing" in n ? !!n.trailing : f);
7118
+ throw new TypeError(Mx);
7119
+ e = hd(e) || 0, Mo(n) && (u = !!n.leading, d = "maxWait" in n, o = d ? _x(hd(n.maxWait) || 0, e) : o, f = "trailing" in n ? !!n.trailing : f);
7118
7120
  function h(w) {
7119
7121
  var T = r, $ = i;
7120
7122
  return r = i = void 0, c = w, s = t.apply($, T), s;
@@ -7176,7 +7178,7 @@ const Ax = {}, Lx = {
7176
7178
  function $x(t, e) {
7177
7179
  return S(), L("svg", Lx, Ix);
7178
7180
  }
7179
- const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7181
+ const Px = /* @__PURE__ */ _e(Ax, [["render", $x]]), Rx = {
7180
7182
  key: 0,
7181
7183
  class: "leading-none"
7182
7184
  }, Vx = { key: 1 }, Bx = {
@@ -7278,7 +7280,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7278
7280
  }
7279
7281
  async function f(P) {
7280
7282
  var I, W;
7281
- a("update:modelValue", P), m(P), await _t(), ((I = r.modelValue) == null ? void 0 : I.length) === ((W = r.options) == null ? void 0 : W.length) && (s.value = !0);
7283
+ a("update:modelValue", P), m(P), await Mt(), ((I = r.modelValue) == null ? void 0 : I.length) === ((W = r.options) == null ? void 0 : W.length) && (s.value = !0);
7282
7284
  }
7283
7285
  function h(P) {
7284
7286
  a("update:modelValue", P), s.value = !1, m(P);
@@ -7553,7 +7555,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7553
7555
  Qe(
7554
7556
  () => r.modelValue,
7555
7557
  (c) => {
7556
- i.value.style.height = "auto", r.autoResize && _t(() => {
7558
+ i.value.style.height = "auto", r.autoResize && Mt(() => {
7557
7559
  r.minHeight && (i.value.style.height = `${i.value.scrollHeight < r.minHeight ? r.minHeight : i.value.scrollHeight}px`), r.maxHeight && (i.value.scrollHeight > r.maxHeight ? (i.value.style.height = `${r.maxHeight}px`, o.value = !0) : o.value = !1);
7558
7560
  });
7559
7561
  },
@@ -7675,7 +7677,7 @@ const Px = /* @__PURE__ */ Me(Ax, [["render", $x]]), Rx = {
7675
7677
  function oS(t, e) {
7676
7678
  return S(), L("svg", tS, iS);
7677
7679
  }
7678
- const sS = /* @__PURE__ */ Me(eS, [["render", oS]]), lS = {}, aS = {
7680
+ const sS = /* @__PURE__ */ _e(eS, [["render", oS]]), lS = {}, aS = {
7679
7681
  xmlns: "http://www.w3.org/2000/svg",
7680
7682
  viewBox: "0 0 24 24",
7681
7683
  fill: "currentColor"
@@ -7687,7 +7689,7 @@ const sS = /* @__PURE__ */ Me(eS, [["render", oS]]), lS = {}, aS = {
7687
7689
  function hS(t, e) {
7688
7690
  return S(), L("svg", aS, fS);
7689
7691
  }
7690
- const pS = /* @__PURE__ */ Me(lS, [["render", hS]]), mS = {}, gS = {
7692
+ const pS = /* @__PURE__ */ _e(lS, [["render", hS]]), mS = {}, gS = {
7691
7693
  xmlns: "http://www.w3.org/2000/svg",
7692
7694
  fill: "none",
7693
7695
  viewBox: "0 0 24 24",
@@ -7703,10 +7705,10 @@ const pS = /* @__PURE__ */ Me(lS, [["render", hS]]), mS = {}, gS = {
7703
7705
  function bS(t, e) {
7704
7706
  return S(), L("svg", gS, vS);
7705
7707
  }
7706
- const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-center gap-2" }, xS = { key: 0 }, SS = { class: "" }, OS = ["innerHTML"], CS = { class: "flex justify-end" }, ES = ["name", "value", "checked"], TS = { class: "flex items-center justify-center text-center opacity-50 w-4 h-4 leading-none" }, _S = {
7708
+ const wS = /* @__PURE__ */ _e(mS, [["render", bS]]), kS = { class: "flex items-center gap-2" }, xS = { key: 0 }, SS = { class: "" }, OS = ["innerHTML"], CS = { class: "flex justify-end" }, ES = ["name", "value", "checked"], TS = { class: "flex items-center justify-center text-center opacity-50 w-4 h-4 leading-none" }, MS = {
7707
7709
  key: 5,
7708
7710
  class: "absolute z-10 right-0 mr-3 h-full flex items-center"
7709
- }, MS = { class: "min-w-5 h-5 leading-tight cursor-pointer dark:text-gray-400" }, NS = {
7711
+ }, _S = { class: "min-w-5 h-5 leading-tight cursor-pointer dark:text-gray-400" }, NS = {
7710
7712
  key: 7,
7711
7713
  class: "text-red-700 dark:text-red-400/90 mt-1 text-base"
7712
7714
  }, AS = {
@@ -7840,7 +7842,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7840
7842
  }, i = {
7841
7843
  pmi: "rounded-xs group-[.is-active]:border-zinc-400 group-[.is-selected]:bg-violet-800 group-[.is-selected]:border-violet-800 group-[.is-selected]:text-white group-[.is-disabled]:bg-opacity-50 group-[.is-disabled]:border-opacity-50 group-[.is-disabled]:text-opacity-75",
7842
7844
  "wpic-tools": "rounded-sm group-[.is-active]:border-gray-300 dark:group-[.is-active]:bg-gray-950 dark:group-[.is-active]:border-gray-800 group-[.is-selected]:bg-lime-600 group-[.is-selected]:border-lime-600 group-[.is-selected]:text-white dark:group-[.is-disabled]:border-gray-800/50 group-[.is-disabled]:!text-gray-300 group-[.is-disabled]:!border-gray-100 group-[.is-disabled]:!bg-gray-100 dark:group-[.is-disabled]:!border-gray-900 dark:group-[.is-disabled]:!text-gray-700 dark:group-[.is-disabled]:!bg-gray-900"
7843
- }, o = t, s = ae(() => o.name ? o.name : _c()), l = zy(s.value), a = ae(() => {
7845
+ }, o = t, s = ae(() => o.name ? o.name : Mc()), l = zy(s.value), a = ae(() => {
7844
7846
  if (o.label)
7845
7847
  return o.label;
7846
7848
  if (o.name && o.labelName)
@@ -7977,11 +7979,11 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7977
7979
  class: ne([{ "cursor-pointer": !t.disabled }, "inline-flex items-center gap-2 select-none"])
7978
7980
  }, [
7979
7981
  F("span", {
7980
- class: ne(["h-4 w-4 border border-zinc-400 rounded-full p-[2px]", { "border-opacity-50": t.disabled }])
7982
+ class: ne(["h-4 w-4 border border-zinc-400 rounded-full p-[2px]", { "border-opacity-50": t.disabled, "border-lime-600!": t.radioValue == t.modelValue }])
7981
7983
  }, [
7982
7984
  t.radioValue == t.modelValue ? (S(), L("span", {
7983
7985
  key: 0,
7984
- class: ne(["flex rounded-full h-full w-full bg-violet-800", { "bg-opacity-50": t.disabled }])
7986
+ class: ne(["flex rounded-full h-full w-full bg-lime-600", { "bg-opacity-50": t.disabled }])
7985
7987
  }, null, 2)) : ce("", !0)
7986
7988
  ], 2),
7987
7989
  F("input", {
@@ -7994,7 +7996,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
7994
7996
  }, null, 40, ES),
7995
7997
  a.value ? (S(), L("span", {
7996
7998
  key: 0,
7997
- class: ne(["text-base", { "opacity-50": t.disabled }])
7999
+ class: ne(["text-base text-gray-700 dark:text-gray-300", { "opacity-50": t.disabled }])
7998
8000
  }, Ee(a.value), 3)) : ce("", !0)
7999
8001
  ], 2)
8000
8002
  ]),
@@ -8167,8 +8169,8 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8167
8169
  }, [
8168
8170
  ve(Jo, { class: "w-5 h-5 opacity-50" })
8169
8171
  ])) : ce("", !0),
8170
- B.$slots.append || t.password || t.type == "password" ? (S(), L("div", _S, [
8171
- F("div", MS, [
8172
+ B.$slots.append || t.password || t.type == "password" ? (S(), L("div", MS, [
8173
+ F("div", _S, [
8172
8174
  Fe(B.$slots, "append", {}, () => [
8173
8175
  Ti(ve(sS, {
8174
8176
  class: "text-zinc-600 select-none",
@@ -8225,7 +8227,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8225
8227
  },
8226
8228
  setup(t) {
8227
8229
  const e = se(), n = se(), r = se();
8228
- _c();
8230
+ Mc();
8229
8231
  const i = t;
8230
8232
  function o() {
8231
8233
  i.text && (n.value.style.display = "block", l());
@@ -8235,7 +8237,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8235
8237
  }
8236
8238
  async function l() {
8237
8239
  var f, h;
8238
- await _t();
8240
+ await Mt();
8239
8241
  const a = await Qh(
8240
8242
  e.value,
8241
8243
  n.value,
@@ -8308,7 +8310,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8308
8310
  "wpic-tools": "font-medium dark:text-gray-300"
8309
8311
  };
8310
8312
  return (r, i) => {
8311
- const o = _s("wpic-loading-panel");
8313
+ const o = Ms("wpic-loading-panel");
8312
8314
  return S(), L("div", {
8313
8315
  class: ne(["rounded-lg wpic-card relative", { [e[U(ke).theme]]: !0, "wpic-card-inline": t.inline, "has-header": t.title || r.$slots.actions || r.$slots.title }])
8314
8316
  }, [
@@ -8477,7 +8479,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8477
8479
  ], 2)
8478
8480
  ], 2));
8479
8481
  }
8480
- }), XS = (t) => (_0("data-v-947735f2"), t = t(), M0(), t), QS = {
8482
+ }), XS = (t) => (M0("data-v-947735f2"), t = t(), _0(), t), QS = {
8481
8483
  key: 1,
8482
8484
  class: "w-full min-h-10 h-full rounded-lg bg-gray-100 dark:bg-gray-940 relative overflow-hidden"
8483
8485
  }, eO = /* @__PURE__ */ XS(() => /* @__PURE__ */ F("div", { class: "absolute top-0 left-0 h-full w-full shimmer dark:dark-shimmer" }, null, -1)), tO = [
@@ -8506,7 +8508,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8506
8508
  }, null, 8, ["color"]))
8507
8509
  ], 2));
8508
8510
  }
8509
- }), iO = /* @__PURE__ */ Me(rO, [["__scopeId", "data-v-947735f2"]]), oO = { class: "text-base font-medium select-none" }, sO = {
8511
+ }), iO = /* @__PURE__ */ _e(rO, [["__scopeId", "data-v-947735f2"]]), oO = { class: "text-base font-medium select-none" }, sO = {
8510
8512
  name: "WpicPaginationItem"
8511
8513
  }, no = /* @__PURE__ */ Object.assign(sO, {
8512
8514
  props: {
@@ -8550,7 +8552,7 @@ const wS = /* @__PURE__ */ Me(mS, [["render", bS]]), kS = { class: "flex items-c
8550
8552
  function dO(t, e) {
8551
8553
  return S(), L("svg", aO, uO);
8552
8554
  }
8553
- const im = /* @__PURE__ */ Me(lO, [["render", dO]]), fO = {}, hO = {
8555
+ const im = /* @__PURE__ */ _e(lO, [["render", dO]]), fO = {}, hO = {
8554
8556
  xmlns: "http://www.w3.org/2000/svg",
8555
8557
  viewBox: "0 0 20 20",
8556
8558
  fill: "currentColor"
@@ -8564,7 +8566,7 @@ const im = /* @__PURE__ */ Me(lO, [["render", dO]]), fO = {}, hO = {
8564
8566
  function gO(t, e) {
8565
8567
  return S(), L("svg", hO, mO);
8566
8568
  }
8567
- const om = /* @__PURE__ */ Me(fO, [["render", gO]]), yO = {}, vO = {
8569
+ const om = /* @__PURE__ */ _e(fO, [["render", gO]]), yO = {}, vO = {
8568
8570
  xmlns: "http://www.w3.org/2000/svg",
8569
8571
  viewBox: "0 0 20 20",
8570
8572
  fill: "currentColor"
@@ -8578,7 +8580,7 @@ const om = /* @__PURE__ */ Me(fO, [["render", gO]]), yO = {}, vO = {
8578
8580
  function kO(t, e) {
8579
8581
  return S(), L("svg", vO, wO);
8580
8582
  }
8581
- const sm = /* @__PURE__ */ Me(yO, [["render", kO]]), xO = {}, SO = {
8583
+ const sm = /* @__PURE__ */ _e(yO, [["render", kO]]), xO = {}, SO = {
8582
8584
  xmlns: "http://www.w3.org/2000/svg",
8583
8585
  viewBox: "0 0 20 20",
8584
8586
  fill: "currentColor"
@@ -8592,10 +8594,10 @@ const sm = /* @__PURE__ */ Me(yO, [["render", kO]]), xO = {}, SO = {
8592
8594
  function EO(t, e) {
8593
8595
  return S(), L("svg", SO, CO);
8594
8596
  }
8595
- const lm = /* @__PURE__ */ Me(xO, [["render", EO]]), TO = { class: "wpic-pagination flex justify-between" }, _O = {
8597
+ const lm = /* @__PURE__ */ _e(xO, [["render", EO]]), TO = { class: "wpic-pagination flex justify-between" }, MO = {
8596
8598
  key: 0,
8597
8599
  class: "flex items-center"
8598
- }, MO = { key: 0 }, NO = {
8600
+ }, _O = { key: 0 }, NO = {
8599
8601
  key: 1,
8600
8602
  class: "flex flex-wrap gap-2"
8601
8603
  }, AO = {
@@ -8660,10 +8662,10 @@ const lm = /* @__PURE__ */ Me(xO, [["render", EO]]), TO = { class: "wpic-paginat
8660
8662
  getStart: u,
8661
8663
  getEnd: d
8662
8664
  }), (h, p) => {
8663
- const m = _s("wpic-choice-list");
8665
+ const m = Ms("wpic-choice-list");
8664
8666
  return S(), L("div", TO, [
8665
- t.info ? (S(), L("div", _O, [
8666
- t.total > 0 ? (S(), L("span", MO, Ee(h.$t("wpiccomponents.pagination", { start: u(), end: d(), total: t.total })), 1)) : ce("", !0)
8667
+ t.info ? (S(), L("div", MO, [
8668
+ t.total > 0 ? (S(), L("span", _O, Ee(h.$t("wpiccomponents.pagination", { start: u(), end: d(), total: t.total })), 1)) : ce("", !0)
8667
8669
  ])) : ce("", !0),
8668
8670
  t.pages ? (S(), L("div", NO, [
8669
8671
  ve(no, {
@@ -8742,7 +8744,7 @@ const Fs = am, DO = {}, IO = {
8742
8744
  function RO(t, e) {
8743
8745
  return S(), L("svg", IO, PO);
8744
8746
  }
8745
- const VO = /* @__PURE__ */ Me(DO, [["render", RO]]), BO = { class: "font-semibold" }, Ld = {
8747
+ const VO = /* @__PURE__ */ _e(DO, [["render", RO]]), BO = { class: "font-semibold" }, Ld = {
8746
8748
  __name: "TotalRow",
8747
8749
  props: {
8748
8750
  columns: Array,
@@ -8807,7 +8809,7 @@ const VO = /* @__PURE__ */ Me(DO, [["render", RO]]), BO = { class: "font-semibol
8807
8809
  function WO(t, e) {
8808
8810
  return S(), L("svg", jO, zO);
8809
8811
  }
8810
- const UO = /* @__PURE__ */ Me(FO, [["render", WO]]), YO = {}, qO = {
8812
+ const UO = /* @__PURE__ */ _e(FO, [["render", WO]]), YO = {}, qO = {
8811
8813
  xmlns: "http://www.w3.org/2000/svg",
8812
8814
  fill: "none",
8813
8815
  viewBox: "0 0 24 24",
@@ -8823,7 +8825,7 @@ const UO = /* @__PURE__ */ Me(FO, [["render", WO]]), YO = {}, qO = {
8823
8825
  function JO(t, e) {
8824
8826
  return S(), L("svg", qO, GO);
8825
8827
  }
8826
- const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table" }, QO = {
8828
+ const ZO = /* @__PURE__ */ _e(YO, [["render", JO]]), XO = { class: "wpic-table" }, QO = {
8827
8829
  key: 0,
8828
8830
  class: "px-2 py-1 flex justify-between border-b dark:border-gray-900"
8829
8831
  }, eC = { class: "flex items-center gap-2" }, tC = { class: "flex items-center gap-2" }, nC = { class: "w-full rounded-lg" }, rC = {
@@ -8887,7 +8889,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8887
8889
  "wpic-tools": "group-[.is-odd]:bg-white group-[.is-even]:bg-gray-50 border-gray-200 dark:group-[.is-odd]:bg-gray-940 dark:group-[.is-even]:bg-gray-930"
8888
8890
  }, u = {
8889
8891
  pmi: "bg-zinc-900/10",
8890
- "wpic-tools": "bg-gray-900/10"
8892
+ "wpic-tools": "bg-gray-900/10 dark:bg-gray-950/75"
8891
8893
  }, d = n;
8892
8894
  Sn(() => {
8893
8895
  v();
@@ -8985,7 +8987,7 @@ const ZO = /* @__PURE__ */ Me(YO, [["render", JO]]), XO = { class: "wpic-table"
8985
8987
  return !I || typeof I != "string" ? "" : I.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
8986
8988
  }
8987
8989
  return (I, W) => {
8988
- const z = _s("wpic-choice-list"), D = _s("wpic-form-field");
8990
+ const z = Ms("wpic-choice-list"), D = Ms("wpic-form-field");
8989
8991
  return S(), L("div", XO, [
8990
8992
  I.$slots.header || I.$slots.actions || t.columnToggleable ? (S(), L("div", QO, [
8991
8993
  F("div", eC, [
@@ -10736,7 +10738,7 @@ class Xr {
10736
10738
  return Xr.empty;
10737
10739
  let i = ym(r);
10738
10740
  r.next && r.err("Unexpected trailing text");
10739
- let o = NC(MC(i));
10741
+ let o = NC(_C(i));
10740
10742
  return AC(o, r), o;
10741
10743
  }
10742
10744
  /**
@@ -10912,7 +10914,7 @@ function OC(t) {
10912
10914
  return e.length == 1 ? e[0] : { type: "seq", exprs: e };
10913
10915
  }
10914
10916
  function CC(t) {
10915
- let e = _C(t);
10917
+ let e = MC(t);
10916
10918
  for (; ; )
10917
10919
  if (t.eat("+"))
10918
10920
  e = { type: "plus", expr: e };
@@ -10946,7 +10948,7 @@ function TC(t, e) {
10946
10948
  }
10947
10949
  return i.length == 0 && t.err("No node type or group '" + e + "' found"), i;
10948
10950
  }
10949
- function _C(t) {
10951
+ function MC(t) {
10950
10952
  if (t.eat("(")) {
10951
10953
  let e = ym(t);
10952
10954
  return t.eat(")") || t.err("Missing closing paren"), e;
@@ -10957,7 +10959,7 @@ function _C(t) {
10957
10959
  return t.pos++, e.length == 1 ? e[0] : { type: "choice", exprs: e };
10958
10960
  }
10959
10961
  }
10960
- function MC(t) {
10962
+ function _C(t) {
10961
10963
  let e = [[]];
10962
10964
  return i(o(t, 0), n()), e;
10963
10965
  function n() {
@@ -12129,17 +12131,17 @@ function xs(t, e, n, r) {
12129
12131
  }
12130
12132
  return { dom: a, contentDOM: l };
12131
12133
  }
12132
- const Tm = 65535, _m = Math.pow(2, 16);
12134
+ const Tm = 65535, Mm = Math.pow(2, 16);
12133
12135
  function jC(t, e) {
12134
- return t + e * _m;
12136
+ return t + e * Mm;
12135
12137
  }
12136
12138
  function Wd(t) {
12137
12139
  return t & Tm;
12138
12140
  }
12139
12141
  function HC(t) {
12140
- return (t - (t & Tm)) / _m;
12142
+ return (t - (t & Tm)) / Mm;
12141
12143
  }
12142
- const Mm = 1, Nm = 2, Ss = 4, Am = 8;
12144
+ const _m = 1, Nm = 2, Ss = 4, Am = 8;
12143
12145
  class Ka {
12144
12146
  /**
12145
12147
  @internal
@@ -12159,7 +12161,7 @@ class Ka {
12159
12161
  Tells you whether the token before the mapped position was deleted.
12160
12162
  */
12161
12163
  get deletedBefore() {
12162
- return (this.delInfo & (Mm | Ss)) > 0;
12164
+ return (this.delInfo & (_m | Ss)) > 0;
12163
12165
  }
12164
12166
  /**
12165
12167
  True when the token after the mapped position was deleted.
@@ -12216,7 +12218,7 @@ class Zt {
12216
12218
  let f = c ? e == a ? -1 : e == d ? 1 : n : n, h = a + i + (f < 0 ? 0 : u);
12217
12219
  if (r)
12218
12220
  return h;
12219
- let p = e == (n < 0 ? a : d) ? null : jC(l / 3, e - a), m = e == a ? Nm : e == d ? Mm : Ss;
12221
+ let p = e == (n < 0 ? a : d) ? null : jC(l / 3, e - a), m = e == a ? Nm : e == d ? _m : Ss;
12220
12222
  return (n < 0 ? e != a : e != d) && (m |= Am), new Ka(h, m, p);
12221
12223
  }
12222
12224
  i += u - c;
@@ -12476,7 +12478,7 @@ class ar extends At {
12476
12478
  return at.fromReplace(e, this.from, this.to, o);
12477
12479
  }
12478
12480
  invert() {
12479
- return new Mn(this.from, this.to, this.mark);
12481
+ return new _n(this.from, this.to, this.mark);
12480
12482
  }
12481
12483
  map(e) {
12482
12484
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -12503,7 +12505,7 @@ class ar extends At {
12503
12505
  }
12504
12506
  }
12505
12507
  At.jsonID("addMark", ar);
12506
- class Mn extends At {
12508
+ class _n extends At {
12507
12509
  /**
12508
12510
  Create a mark-removing step.
12509
12511
  */
@@ -12519,10 +12521,10 @@ class Mn extends At {
12519
12521
  }
12520
12522
  map(e) {
12521
12523
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
12522
- return n.deleted && r.deleted || n.pos >= r.pos ? null : new Mn(n.pos, r.pos, this.mark);
12524
+ return n.deleted && r.deleted || n.pos >= r.pos ? null : new _n(n.pos, r.pos, this.mark);
12523
12525
  }
12524
12526
  merge(e) {
12525
- return e instanceof Mn && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Mn(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
12527
+ return e instanceof _n && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new _n(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
12526
12528
  }
12527
12529
  toJSON() {
12528
12530
  return {
@@ -12538,10 +12540,10 @@ class Mn extends At {
12538
12540
  static fromJSON(e, n) {
12539
12541
  if (typeof n.from != "number" || typeof n.to != "number")
12540
12542
  throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
12541
- return new Mn(n.from, n.to, e.markFromJSON(n.mark));
12543
+ return new _n(n.from, n.to, e.markFromJSON(n.mark));
12542
12544
  }
12543
12545
  }
12544
- At.jsonID("removeMark", Mn);
12546
+ At.jsonID("removeMark", _n);
12545
12547
  class cr extends At {
12546
12548
  /**
12547
12549
  Create a node mark step.
@@ -12754,7 +12756,7 @@ function zC(t, e, n, r) {
12754
12756
  if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
12755
12757
  let f = Math.max(c, e), h = Math.min(c + a.nodeSize, n), p = r.addToSet(d);
12756
12758
  for (let m = 0; m < d.length; m++)
12757
- d[m].isInSet(p) || (s && s.to == f && s.mark.eq(d[m]) ? s.to = h : i.push(s = new Mn(f, h, d[m])));
12759
+ d[m].isInSet(p) || (s && s.to == f && s.mark.eq(d[m]) ? s.to = h : i.push(s = new _n(f, h, d[m])));
12758
12760
  l && l.to == f ? l.to = h : o.push(l = new ar(f, h, r));
12759
12761
  }
12760
12762
  }), i.forEach((a) => t.step(a)), o.forEach((a) => t.step(a));
@@ -12782,7 +12784,7 @@ function WC(t, e, n, r) {
12782
12784
  f ? (f.to = c, f.step = o) : i.push({ style: d, from: Math.max(l, e), to: c, step: o });
12783
12785
  }
12784
12786
  }
12785
- }), i.forEach((s) => t.step(new Mn(s.from, s.to, s.style)));
12787
+ }), i.forEach((s) => t.step(new _n(s.from, s.to, s.style)));
12786
12788
  }
12787
12789
  function Vc(t, e, n, r = n.contentMatch, i = !0) {
12788
12790
  let o = t.doc.nodeAt(e), s = [], l = e + 1;
@@ -12793,7 +12795,7 @@ function Vc(t, e, n, r = n.contentMatch, i = !0) {
12793
12795
  else {
12794
12796
  r = d;
12795
12797
  for (let f = 0; f < c.marks.length; f++)
12796
- n.allowsMarkType(c.marks[f].type) || t.step(new Mn(l, u, c.marks[f]));
12798
+ n.allowsMarkType(c.marks[f].type) || t.step(new _n(l, u, c.marks[f]));
12797
12799
  if (i && c.isText && n.whitespace != "pre") {
12798
12800
  let f, h = /\r?\n|\r/g, p;
12799
12801
  for (; f = h.exec(c.text); )
@@ -13712,7 +13714,7 @@ class Ie {
13712
13714
  found.
13713
13715
  */
13714
13716
  static findFrom(e, n, r = !1) {
13715
- let i = e.parent.inlineContent ? new _e(e) : hi(e.node(0), e.parent, e.pos, e.index(), n, r);
13717
+ let i = e.parent.inlineContent ? new Me(e) : hi(e.node(0), e.parent, e.pos, e.index(), n, r);
13716
13718
  if (i)
13717
13719
  return i;
13718
13720
  for (let o = e.depth - 1; o >= 0; o--) {
@@ -13779,7 +13781,7 @@ class Ie {
13779
13781
  returns the bookmark for that.
13780
13782
  */
13781
13783
  getBookmark() {
13782
- return _e.between(this.$anchor, this.$head).getBookmark();
13784
+ return Me.between(this.$anchor, this.$head).getBookmark();
13783
13785
  }
13784
13786
  }
13785
13787
  Ie.prototype.visible = !0;
@@ -13795,7 +13797,7 @@ let Yd = !1;
13795
13797
  function qd(t) {
13796
13798
  !Yd && !t.parent.inlineContent && (Yd = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
13797
13799
  }
13798
- class _e extends Ie {
13800
+ class Me extends Ie {
13799
13801
  /**
13800
13802
  Construct a text selection between the given points.
13801
13803
  */
@@ -13814,7 +13816,7 @@ class _e extends Ie {
13814
13816
  if (!r.parent.inlineContent)
13815
13817
  return Ie.near(r);
13816
13818
  let i = e.resolve(n.map(this.anchor));
13817
- return new _e(i.parent.inlineContent ? i : r, r);
13819
+ return new Me(i.parent.inlineContent ? i : r, r);
13818
13820
  }
13819
13821
  replace(e, n = de.empty) {
13820
13822
  if (super.replace(e, n), n == de.empty) {
@@ -13823,7 +13825,7 @@ class _e extends Ie {
13823
13825
  }
13824
13826
  }
13825
13827
  eq(e) {
13826
- return e instanceof _e && e.anchor == this.anchor && e.head == this.head;
13828
+ return e instanceof Me && e.anchor == this.anchor && e.head == this.head;
13827
13829
  }
13828
13830
  getBookmark() {
13829
13831
  return new vl(this.anchor, this.head);
@@ -13837,7 +13839,7 @@ class _e extends Ie {
13837
13839
  static fromJSON(e, n) {
13838
13840
  if (typeof n.anchor != "number" || typeof n.head != "number")
13839
13841
  throw new RangeError("Invalid input for TextSelection.fromJSON");
13840
- return new _e(e.resolve(n.anchor), e.resolve(n.head));
13842
+ return new Me(e.resolve(n.anchor), e.resolve(n.head));
13841
13843
  }
13842
13844
  /**
13843
13845
  Create a text selection from non-resolved positions.
@@ -13863,10 +13865,10 @@ class _e extends Ie {
13863
13865
  else
13864
13866
  return Ie.near(n, r);
13865
13867
  }
13866
- return e.parent.inlineContent || (i == 0 ? e = n : (e = (Ie.findFrom(e, -r, !0) || Ie.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new _e(e, n);
13868
+ return e.parent.inlineContent || (i == 0 ? e = n : (e = (Ie.findFrom(e, -r, !0) || Ie.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Me(e, n);
13867
13869
  }
13868
13870
  }
13869
- Ie.jsonID("text", _e);
13871
+ Ie.jsonID("text", Me);
13870
13872
  class vl {
13871
13873
  constructor(e, n) {
13872
13874
  this.anchor = e, this.head = n;
@@ -13875,7 +13877,7 @@ class vl {
13875
13877
  return new vl(e.map(this.anchor), e.map(this.head));
13876
13878
  }
13877
13879
  resolve(e) {
13878
- return _e.between(e.resolve(this.anchor), e.resolve(this.head));
13880
+ return Me.between(e.resolve(this.anchor), e.resolve(this.head));
13879
13881
  }
13880
13882
  }
13881
13883
  class xe extends Ie {
@@ -13985,7 +13987,7 @@ const d5 = {
13985
13987
  };
13986
13988
  function hi(t, e, n, r, i, o = !1) {
13987
13989
  if (e.inlineContent)
13988
- return _e.create(t, n);
13990
+ return Me.create(t, n);
13989
13991
  for (let s = r - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
13990
13992
  let l = e.child(s);
13991
13993
  if (l.isAtom) {
@@ -14534,9 +14536,9 @@ function w5(t, e, n) {
14534
14536
  return { node: r.startContainer, offset: Math.min(an(r.startContainer), r.startOffset) };
14535
14537
  }
14536
14538
  }
14537
- const Dn = typeof navigator < "u" ? navigator : null, ef = typeof document < "u" ? document : null, _r = Dn && Dn.userAgent || "", Za = /Edge\/(\d+)/.exec(_r), Hm = /MSIE \d/.exec(_r), Xa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_r), Yt = !!(Hm || Xa || Za), mr = Hm ? document.documentMode : Xa ? +Xa[1] : Za ? +Za[1] : 0, kn = !Yt && /gecko\/(\d+)/i.test(_r);
14538
- kn && +(/Firefox\/(\d+)/.exec(_r) || [0, 0])[1];
14539
- const Qa = !Yt && /Chrome\/(\d+)/.exec(_r), Mt = !!Qa, zm = Qa ? +Qa[1] : 0, Pt = !Yt && !!Dn && /Apple Computer/.test(Dn.vendor), Pi = Pt && (/Mobile\/\w+/.test(_r) || !!Dn && Dn.maxTouchPoints > 2), sn = Pi || (Dn ? /Mac/.test(Dn.platform) : !1), k5 = Dn ? /Win/.test(Dn.platform) : !1, Yn = /Android \d/.test(_r), Qo = !!ef && "webkitFontSmoothing" in ef.documentElement.style, x5 = Qo ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14539
+ const Dn = typeof navigator < "u" ? navigator : null, ef = typeof document < "u" ? document : null, Mr = Dn && Dn.userAgent || "", Za = /Edge\/(\d+)/.exec(Mr), Hm = /MSIE \d/.exec(Mr), Xa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mr), Yt = !!(Hm || Xa || Za), mr = Hm ? document.documentMode : Xa ? +Xa[1] : Za ? +Za[1] : 0, kn = !Yt && /gecko\/(\d+)/i.test(Mr);
14540
+ kn && +(/Firefox\/(\d+)/.exec(Mr) || [0, 0])[1];
14541
+ const Qa = !Yt && /Chrome\/(\d+)/.exec(Mr), _t = !!Qa, zm = Qa ? +Qa[1] : 0, Pt = !Yt && !!Dn && /Apple Computer/.test(Dn.vendor), Pi = Pt && (/Mobile\/\w+/.test(Mr) || !!Dn && Dn.maxTouchPoints > 2), sn = Pi || (Dn ? /Mac/.test(Dn.platform) : !1), k5 = Dn ? /Win/.test(Dn.platform) : !1, Yn = /Android \d/.test(Mr), Qo = !!ef && "webkitFontSmoothing" in ef.documentElement.style, x5 = Qo ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
14540
14542
  function S5(t) {
14541
14543
  let e = t.defaultView && t.defaultView.visualViewport;
14542
14544
  return e ? {
@@ -14651,9 +14653,9 @@ function Ym(t, e) {
14651
14653
  !n && (e.left >= p.right && e.top >= p.top || e.left >= p.left && e.top >= p.bottom) && (o = d + 1);
14652
14654
  }
14653
14655
  }
14654
- return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ? _5(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : Ym(n, i);
14656
+ return !n && a && (n = a, i = c, r = 0), n && n.nodeType == 3 ? M5(n, i) : !n || r && n.nodeType == 1 ? { node: t, offset: o } : Ym(n, i);
14655
14657
  }
14656
- function _5(t, e) {
14658
+ function M5(t, e) {
14657
14659
  let n = t.nodeValue.length, r = document.createRange();
14658
14660
  for (let i = 0; i < n; i++) {
14659
14661
  r.setEnd(t, i + 1), r.setStart(t, i);
@@ -14666,7 +14668,7 @@ function _5(t, e) {
14666
14668
  function jc(t, e) {
14667
14669
  return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1;
14668
14670
  }
14669
- function M5(t, e) {
14671
+ function _5(t, e) {
14670
14672
  let n = t.parentNode;
14671
14673
  return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
14672
14674
  }
@@ -14721,7 +14723,7 @@ function L5(t, e) {
14721
14723
  if (Pt)
14722
14724
  for (let c = s; r && c; c = Io(c))
14723
14725
  c.draggable && (r = void 0);
14724
- if (s = M5(s, e), r) {
14726
+ if (s = _5(s, e), r) {
14725
14727
  if (kn && r.nodeType == 1 && (i = Math.min(i, r.childNodes.length), i < r.childNodes.length)) {
14726
14728
  let u = r.childNodes[i], d;
14727
14729
  u.nodeName == "IMG" && (d = u.getBoundingClientRect()).right <= e.left && d.bottom > e.top && i++;
@@ -15376,7 +15378,7 @@ class gr extends es {
15376
15378
  }
15377
15379
  localCompositionInfo(e, n) {
15378
15380
  let { from: r, to: i } = e.state.selection;
15379
- if (!(e.state.selection instanceof _e) || r < n || i > n + this.node.content.size)
15381
+ if (!(e.state.selection instanceof Me) || r < n || i > n + this.node.content.size)
15380
15382
  return null;
15381
15383
  let o = e.input.compositionNode;
15382
15384
  if (!o || !this.dom.contains(o.parentNode))
@@ -15748,7 +15750,7 @@ class j5 {
15748
15750
  for (; e instanceof ei; )
15749
15751
  n = e, e = n.children[n.children.length - 1];
15750
15752
  (!e || // Empty textblock
15751
- !(e instanceof wl) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Pt || Mt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
15753
+ !(e instanceof wl) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Pt || _t) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
15752
15754
  }
15753
15755
  addHackNode(e, n) {
15754
15756
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -15924,7 +15926,7 @@ function tg(t) {
15924
15926
  function Gn(t, e = !1) {
15925
15927
  let n = t.state.selection;
15926
15928
  if (ng(t, n), !!tg(t)) {
15927
- if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Mt) {
15929
+ if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && _t) {
15928
15930
  let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
15929
15931
  if (r.anchorNode && i.anchorNode && Qr(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
15930
15932
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
@@ -15935,12 +15937,12 @@ function Gn(t, e = !1) {
15935
15937
  K5(t);
15936
15938
  else {
15937
15939
  let { anchor: r, head: i } = n, o, s;
15938
- uf && !(n instanceof _e) && (n.$from.parent.inlineContent || (o = df(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = df(t, n.to))), t.docView.setSelection(r, i, t, e), uf && (o && ff(o), s && ff(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && q5(t));
15940
+ uf && !(n instanceof Me) && (n.$from.parent.inlineContent || (o = df(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = df(t, n.to))), t.docView.setSelection(r, i, t, e), uf && (o && ff(o), s && ff(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && q5(t));
15939
15941
  }
15940
15942
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
15941
15943
  }
15942
15944
  }
15943
- const uf = Pt || Mt && zm < 63;
15945
+ const uf = Pt || _t && zm < 63;
15944
15946
  function df(t, e) {
15945
15947
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
15946
15948
  if (Pt && i && i.contentEditable == "false")
@@ -15986,7 +15988,7 @@ function hf(t) {
15986
15988
  t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
15987
15989
  }
15988
15990
  function zc(t, e, n, r) {
15989
- return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || _e.between(e, n, r);
15991
+ return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || Me.between(e, n, r);
15990
15992
  }
15991
15993
  function pf(t) {
15992
15994
  return t.editable && !t.hasFocus() ? !1 : rg(t);
@@ -16014,13 +16016,13 @@ function or(t, e) {
16014
16016
  }
16015
16017
  function mf(t, e, n) {
16016
16018
  let r = t.state.selection;
16017
- if (r instanceof _e)
16019
+ if (r instanceof Me)
16018
16020
  if (n.indexOf("s") > -1) {
16019
16021
  let { $head: i } = r, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter;
16020
16022
  if (!o || o.isText || !o.isLeaf)
16021
16023
  return !1;
16022
16024
  let s = t.state.doc.resolve(i.pos + o.nodeSize * (e < 0 ? -1 : 1));
16023
- return or(t, new _e(r.$anchor, s));
16025
+ return or(t, new Me(r.$anchor, s));
16024
16026
  } else if (r.empty) {
16025
16027
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
16026
16028
  let i = nc(t.state, e);
@@ -16030,12 +16032,12 @@ function mf(t, e, n) {
16030
16032
  if (!o || o.isText)
16031
16033
  return !1;
16032
16034
  let l = e < 0 ? i.pos - o.nodeSize : i.pos;
16033
- return o.isAtom || (s = t.docView.descAt(l)) && !s.contentDOM ? xe.isSelectable(o) ? or(t, new xe(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : Qo ? or(t, new _e(t.state.doc.resolve(e < 0 ? l : l + o.nodeSize))) : !1 : !1;
16035
+ return o.isAtom || (s = t.docView.descAt(l)) && !s.contentDOM ? xe.isSelectable(o) ? or(t, new xe(e < 0 ? t.state.doc.resolve(i.pos - o.nodeSize) : i)) : Qo ? or(t, new Me(t.state.doc.resolve(e < 0 ? l : l + o.nodeSize))) : !1 : !1;
16034
16036
  }
16035
16037
  } else return !1;
16036
16038
  else {
16037
16039
  if (r instanceof xe && r.node.isInline)
16038
- return or(t, new _e(e > 0 ? r.$to : r.$from));
16040
+ return or(t, new Me(e > 0 ? r.$to : r.$from));
16039
16041
  {
16040
16042
  let i = nc(t.state, e);
16041
16043
  return i ? or(t, i) : !1;
@@ -16168,7 +16170,7 @@ function rc(t, e, n) {
16168
16170
  }
16169
16171
  function gf(t, e) {
16170
16172
  let n = t.state.doc.resolve(e);
16171
- if (!(Mt || k5) && n.parent.inlineContent) {
16173
+ if (!(_t || k5) && n.parent.inlineContent) {
16172
16174
  let i = t.coordsAtPos(e);
16173
16175
  if (e > n.start()) {
16174
16176
  let o = t.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
@@ -16185,7 +16187,7 @@ function gf(t, e) {
16185
16187
  }
16186
16188
  function yf(t, e, n) {
16187
16189
  let r = t.state.selection;
16188
- if (r instanceof _e && !r.empty || n.indexOf("s") > -1 || sn && n.indexOf("m") > -1)
16190
+ if (r instanceof Me && !r.empty || n.indexOf("s") > -1 || sn && n.indexOf("m") > -1)
16189
16191
  return !1;
16190
16192
  let { $from: i, $to: o } = r;
16191
16193
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -16200,7 +16202,7 @@ function yf(t, e, n) {
16200
16202
  return !1;
16201
16203
  }
16202
16204
  function vf(t, e) {
16203
- if (!(t.state.selection instanceof _e))
16205
+ if (!(t.state.selection instanceof Me))
16204
16206
  return !0;
16205
16207
  let { $head: n, $anchor: r, empty: i } = t.state.selection;
16206
16208
  if (!n.sameParent(r))
@@ -16421,7 +16423,7 @@ function sE(t) {
16421
16423
  return n;
16422
16424
  }
16423
16425
  function lE(t) {
16424
- let e = t.querySelectorAll(Mt ? "span:not([class]):not([style])" : "span.Apple-converted-space");
16426
+ let e = t.querySelectorAll(_t ? "span:not([class]):not([style])" : "span.Apple-converted-space");
16425
16427
  for (let n = 0; n < e.length; n++) {
16426
16428
  let r = e[n];
16427
16429
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
@@ -16496,7 +16498,7 @@ function pE(t, e) {
16496
16498
  }
16497
16499
  Vt.keydown = (t, e) => {
16498
16500
  let n = e;
16499
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !fg(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Yn && Mt && n.keyCode == 13)))
16501
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !fg(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Yn && _t && n.keyCode == 13)))
16500
16502
  if (n.keyCode != 229 && t.domObserver.forceFlush(), Pi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
16501
16503
  let r = Date.now();
16502
16504
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -16516,7 +16518,7 @@ Vt.keypress = (t, e) => {
16516
16518
  return;
16517
16519
  }
16518
16520
  let r = t.state.selection;
16519
- if (!(r instanceof _e) || !r.$from.sameParent(r.$to)) {
16521
+ if (!(r instanceof Me) || !r.$from.sameParent(r.$to)) {
16520
16522
  let i = String.fromCharCode(n.charCode);
16521
16523
  !/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
16522
16524
  }
@@ -16578,12 +16580,12 @@ function kE(t, e, n) {
16578
16580
  return !1;
16579
16581
  let r = t.state.doc;
16580
16582
  if (e == -1)
16581
- return r.inlineContent ? (Oi(t, _e.create(r, 0, r.content.size)), !0) : !1;
16583
+ return r.inlineContent ? (Oi(t, Me.create(r, 0, r.content.size)), !0) : !1;
16582
16584
  let i = r.resolve(e);
16583
16585
  for (let o = i.depth + 1; o > 0; o--) {
16584
16586
  let s = o > i.depth ? i.nodeAfter : i.node(o), l = i.before(o);
16585
16587
  if (s.inlineContent)
16586
- Oi(t, _e.create(r, l + 1, l + 1 + s.content.size));
16588
+ Oi(t, Me.create(r, l + 1, l + 1 + s.content.size));
16587
16589
  else if (xe.isSelectable(s))
16588
16590
  Oi(t, xe.create(r, l));
16589
16591
  else
@@ -16640,7 +16642,7 @@ class xE {
16640
16642
  // (hidden) cursor is doesn't change the selection, and
16641
16643
  // thus doesn't get a reaction from ProseMirror. This
16642
16644
  // works around that.
16643
- Mt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Oi(this.view, Ie.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : ur(this.view, "pointer");
16645
+ _t && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Oi(this.view, Ie.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : ur(this.view, "pointer");
16644
16646
  }
16645
16647
  move(e) {
16646
16648
  this.updateAllowDefault(e), ur(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -16664,7 +16666,7 @@ Vt.compositionstart = Vt.compositionupdate = (t) => {
16664
16666
  if (!t.composing) {
16665
16667
  t.domObserver.flush();
16666
16668
  let { state: e } = t, n = e.selection.$to;
16667
- if (e.selection instanceof _e && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
16669
+ if (e.selection instanceof Me && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
16668
16670
  t.markCursor = t.state.storedMarks || n.marks(), Ks(t, !0), t.markCursor = null;
16669
16671
  else if (Ks(t, !e.selection.empty), kn && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
16670
16672
  let r = t.domSelectionRange();
@@ -16747,7 +16749,7 @@ Rt.copy = Vt.cut = (t, e) => {
16747
16749
  function TE(t) {
16748
16750
  return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null;
16749
16751
  }
16750
- function _E(t, e) {
16752
+ function ME(t, e) {
16751
16753
  if (!t.dom.parentNode)
16752
16754
  return;
16753
16755
  let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div"));
@@ -16778,7 +16780,7 @@ Vt.paste = (t, e) => {
16778
16780
  if (t.composing && !Yn)
16779
16781
  return;
16780
16782
  let r = $o ? null : n.clipboardData, i = t.input.shiftKey && t.input.lastKeyCode != 45;
16781
- r && Po(t, mg(r), r.getData("text/html"), i, n) ? n.preventDefault() : _E(t, n);
16783
+ r && Po(t, mg(r), r.getData("text/html"), i, n) ? n.preventDefault() : ME(t, n);
16782
16784
  };
16783
16785
  class gg {
16784
16786
  constructor(e, n, r) {
@@ -16800,7 +16802,7 @@ Rt.dragstart = (t, e) => {
16800
16802
  }
16801
16803
  }
16802
16804
  let l = (s || t.state.selection).content(), { dom: a, text: c, slice: u } = Wc(t, l);
16803
- (!n.dataTransfer.files.length || !Mt || zm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData($o ? "Text" : "text/html", a.innerHTML), n.dataTransfer.effectAllowed = "copyMove", $o || n.dataTransfer.setData("text/plain", c), t.dragging = new gg(u, !n[yg], s);
16805
+ (!n.dataTransfer.files.length || !_t || zm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData($o ? "Text" : "text/html", a.innerHTML), n.dataTransfer.effectAllowed = "copyMove", $o || n.dataTransfer.setData("text/plain", c), t.dragging = new gg(u, !n[yg], s);
16804
16806
  };
16805
16807
  Rt.dragend = (t) => {
16806
16808
  let e = t.dragging;
@@ -16857,7 +16859,7 @@ Rt.blur = (t, e) => {
16857
16859
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
16858
16860
  };
16859
16861
  Rt.beforeinput = (t, e) => {
16860
- if (Mt && Yn && e.inputType == "deleteContentBackward") {
16862
+ if (_t && Yn && e.inputType == "deleteContentBackward") {
16861
16863
  t.domObserver.flushSoon();
16862
16864
  let { domChangeCount: r } = t.input;
16863
16865
  setTimeout(() => {
@@ -17066,7 +17068,7 @@ class st {
17066
17068
  let a = this.local[l].map(e, r, i);
17067
17069
  a && a.type.valid(n, a) ? (s || (s = [])).push(a) : o.onRemove && o.onRemove(this.local[l].spec);
17068
17070
  }
17069
- return this.children.length ? ME(this.children, s || [], e, n, r, i, o) : s ? new st(s.sort(Ur), pi) : Tt;
17071
+ return this.children.length ? _E(this.children, s || [], e, n, r, i, o) : s ? new st(s.sort(Ur), pi) : Tt;
17070
17072
  }
17071
17073
  /**
17072
17074
  Add the given array of decorations to the ones in the set,
@@ -17244,7 +17246,7 @@ class lr {
17244
17246
  this.members[n].forEachSet(e);
17245
17247
  }
17246
17248
  }
17247
- function ME(t, e, n, r, i, o, s) {
17249
+ function _E(t, e, n, r, i, o, s) {
17248
17250
  let l = t.slice();
17249
17251
  for (let c = 0, u = o; c < n.maps.length; c++) {
17250
17252
  let d = 0;
@@ -17576,7 +17578,7 @@ function RE(t, e) {
17576
17578
  }
17577
17579
  function VE(t, e, n) {
17578
17580
  let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
17579
- if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], bl(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Mt && t.input.lastKeyCode === 8)
17581
+ if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], bl(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), _t && t.input.lastKeyCode === 8)
17580
17582
  for (let g = o; g > i; g--) {
17581
17583
  let v = r.childNodes[g - 1], k = v.pmViewDesc;
17582
17584
  if (v.nodeName == "BR" && !k) {
@@ -17623,7 +17625,7 @@ function jE(t, e, n, r, i) {
17623
17625
  if (t.input.compositionPendingChanges = 0, e < 0) {
17624
17626
  let A = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, B = Hc(t, A);
17625
17627
  if (B && !t.state.selection.eq(B)) {
17626
- if (Mt && Yn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (I) => I(t, Rr(13, "Enter"))))
17628
+ if (_t && Yn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (I) => I(t, Rr(13, "Enter"))))
17627
17629
  return;
17628
17630
  let P = t.state.tr.setSelection(B);
17629
17631
  A == "pointer" ? P.setMeta("pointer", !0) : A == "key" && P.scrollIntoView(), o && P.setMeta("composition", o), t.dispatch(P);
@@ -17640,7 +17642,7 @@ function jE(t, e, n, r, i) {
17640
17642
  return;
17641
17643
  }
17642
17644
  if (!p)
17643
- if (r && a instanceof _e && !a.empty && a.$head.sameParent(a.$anchor) && !t.composing && !(c.sel && c.sel.anchor != c.sel.head))
17645
+ if (r && a instanceof Me && !a.empty && a.$head.sameParent(a.$anchor) && !t.composing && !(c.sel && c.sel.anchor != c.sel.head))
17644
17646
  p = { start: a.from, endA: a.to, endB: a.to };
17645
17647
  else {
17646
17648
  if (c.sel) {
@@ -17652,17 +17654,17 @@ function jE(t, e, n, r, i) {
17652
17654
  }
17653
17655
  return;
17654
17656
  }
17655
- t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof _e && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), Yt && mr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
17657
+ t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof Me && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), Yt && mr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
17656
17658
  let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), v = u.resolve(p.start), k = m.sameParent(g) && m.parent.inlineContent && v.end() >= p.endA, b;
17657
17659
  if ((Pi && t.input.lastIOSEnter > Date.now() - 225 && (!k || i.some((A) => A.nodeName == "DIV" || A.nodeName == "P")) || !k && m.pos < c.doc.content.size && !m.sameParent(g) && (b = Ie.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && b.head == g.pos) && t.someProp("handleKeyDown", (A) => A(t, Rr(13, "Enter")))) {
17658
17660
  t.input.lastIOSEnter = 0;
17659
17661
  return;
17660
17662
  }
17661
17663
  if (t.state.selection.anchor > p.start && zE(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (A) => A(t, Rr(8, "Backspace")))) {
17662
- Yn && Mt && t.domObserver.suppressSelectionUpdates();
17664
+ Yn && _t && t.domObserver.suppressSelectionUpdates();
17663
17665
  return;
17664
17666
  }
17665
- Mt && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), Yn && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
17667
+ _t && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), Yn && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
17666
17668
  t.someProp("handleKeyDown", function(A) {
17667
17669
  return A(t, Rr(13, "Enter"));
17668
17670
  });
@@ -17685,7 +17687,7 @@ function jE(t, e, n, r, i) {
17685
17687
  }
17686
17688
  if (w || (w = t.state.tr.replace(y, C, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
17687
17689
  let A = Ef(t, w.doc, c.sel);
17688
- A && !(Mt && t.composing && A.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (A.head == y || A.head == w.mapping.map(C) - 1) || Yt && A.empty && A.head == y) && w.setSelection(A);
17690
+ A && !(_t && t.composing && A.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (A.head == y || A.head == w.mapping.map(C) - 1) || Yt && A.empty && A.head == y) && w.setSelection(A);
17689
17691
  }
17690
17692
  T && w.ensureMarks(T), o && w.setMeta("composition", o), t.dispatch(w.scrollIntoView());
17691
17693
  }
@@ -17771,7 +17773,7 @@ class UE {
17771
17773
  added to the document.
17772
17774
  */
17773
17775
  constructor(e, n) {
17774
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new uE(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Lf), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Nf(this), Mf(this), this.nodeViews = Af(this), this.docView = af(this.state.doc, _f(this), Ql(this), this.dom, this), this.domObserver = new IE(this, (r, i, o, s) => jE(this, r, i, o, s)), this.domObserver.start(), dE(this), this.updatePluginViews();
17776
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new uE(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Lf), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Nf(this), _f(this), this.nodeViews = Af(this), this.docView = af(this.state.doc, Mf(this), Ql(this), this.dom, this), this.domObserver = new IE(this, (r, i, o, s) => jE(this, r, i, o, s)), this.domObserver.start(), dE(this), this.updatePluginViews();
17775
17777
  }
17776
17778
  /**
17777
17779
  Holds `true` when a
@@ -17833,15 +17835,15 @@ class UE {
17833
17835
  let h = Af(this);
17834
17836
  qE(h, this.nodeViews) && (this.nodeViews = h, o = !0);
17835
17837
  }
17836
- (l || n.handleDOMEvents != this._props.handleDOMEvents) && oc(this), this.editable = Nf(this), Mf(this);
17837
- let a = Ql(this), c = _f(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, a);
17838
+ (l || n.handleDOMEvents != this._props.handleDOMEvents) && oc(this), this.editable = Nf(this), _f(this);
17839
+ let a = Ql(this), c = Mf(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, a);
17838
17840
  (d || !e.selection.eq(i.selection)) && (s = !0);
17839
17841
  let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && C5(this);
17840
17842
  if (s) {
17841
17843
  this.domObserver.stop();
17842
- let h = d && (Yt || Mt) && !this.composing && !i.selection.empty && !e.selection.empty && YE(i.selection, e.selection);
17844
+ let h = d && (Yt || _t) && !this.composing && !i.selection.empty && !e.selection.empty && YE(i.selection, e.selection);
17843
17845
  if (d) {
17844
- let p = Mt ? this.trackWrites = this.domSelectionRange().focusNode : null;
17846
+ let p = _t ? this.trackWrites = this.domSelectionRange().focusNode : null;
17845
17847
  this.composing && (this.input.compositionNode = OE(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = af(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (h = !0);
17846
17848
  }
17847
17849
  h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && G5(this)) ? Gn(this, h) : (ng(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -18107,7 +18109,7 @@ class UE {
18107
18109
  return this.root.getSelection();
18108
18110
  }
18109
18111
  }
18110
- function _f(t) {
18112
+ function Mf(t) {
18111
18113
  let e = /* @__PURE__ */ Object.create(null);
18112
18114
  return e.class = "ProseMirror", e.contenteditable = String(t.editable), t.someProp("attributes", (n) => {
18113
18115
  if (typeof n == "function" && (n = n(t.state)), n)
@@ -18115,7 +18117,7 @@ function _f(t) {
18115
18117
  r == "class" ? e.class += " " + n[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + n[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(n[r]));
18116
18118
  }), e.translate || (e.translate = "no"), [en.node(0, t.state.doc.content.size, e)];
18117
18119
  }
18118
- function Mf(t) {
18120
+ function _f(t) {
18119
18121
  if (t.markCursor) {
18120
18122
  let e = document.createElement("img");
18121
18123
  e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: en.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
@@ -18363,7 +18365,7 @@ function Og(t, e, n) {
18363
18365
  return !1;
18364
18366
  if (n) {
18365
18367
  let u = t.tr.step(c);
18366
- u.setSelection(_e.create(u.doc, o)), n(u.scrollIntoView());
18368
+ u.setSelection(Me.create(u.doc, o)), n(u.scrollIntoView());
18367
18369
  }
18368
18370
  return !0;
18369
18371
  }
@@ -18423,7 +18425,7 @@ const Tg = (t, e, n) => {
18423
18425
  }
18424
18426
  }
18425
18427
  return o.isAtom && i.depth == r.depth - 1 ? (e && e(t.tr.delete(i.pos, i.pos + o.nodeSize).scrollIntoView()), !0) : !1;
18426
- }, _g = (t, e, n) => {
18428
+ }, Mg = (t, e, n) => {
18427
18429
  let { $head: r, empty: i } = t.selection, o = r;
18428
18430
  if (!i)
18429
18431
  return !1;
@@ -18471,7 +18473,7 @@ const rT = (t, e) => {
18471
18473
  }, oT = (t, e) => {
18472
18474
  let { $from: n, $to: r } = t.selection, i = n.blockRange(r), o = i && Gi(i);
18473
18475
  return o == null ? !1 : (e && e(t.tr.lift(i, o).scrollIntoView()), !0);
18474
- }, Mg = (t, e) => {
18476
+ }, _g = (t, e) => {
18475
18477
  let { $head: n, $anchor: r } = t.selection;
18476
18478
  return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(`
18477
18479
  `).scrollIntoView()), !0);
@@ -18505,7 +18507,7 @@ const sT = (t, e) => {
18505
18507
  return !1;
18506
18508
  if (e) {
18507
18509
  let s = (!r.parentOffset && i.index() < i.parent.childCount ? r : i).pos, l = t.tr.insert(s, o.createAndFill());
18508
- l.setSelection(_e.create(l.doc, s + 1)), e(l.scrollIntoView());
18510
+ l.setSelection(Me.create(l.doc, s + 1)), e(l.scrollIntoView());
18509
18511
  }
18510
18512
  return !0;
18511
18513
  }, Ag = (t, e) => {
@@ -18538,7 +18540,7 @@ function lT(t) {
18538
18540
  o.unshift(null);
18539
18541
  }
18540
18542
  let u = e.tr;
18541
- (e.selection instanceof _e || e.selection instanceof nn) && u.deleteSelection();
18543
+ (e.selection instanceof Me || e.selection instanceof nn) && u.deleteSelection();
18542
18544
  let d = u.mapping.map(r.pos), f = Kn(u.doc, d, o.length, o);
18543
18545
  if (f || (o[0] = l ? { type: l } : null, f = Kn(u.doc, d, o.length, o)), u.split(d, o.length, o), !a && c && r.node(s).type != l) {
18544
18546
  let h = u.mapping.map(r.before(s)), p = u.doc.resolve(h);
@@ -18602,7 +18604,7 @@ function Dg(t) {
18602
18604
  return !1;
18603
18605
  o--;
18604
18606
  }
18605
- return i.node(o).isTextblock ? (n && n(e.tr.setSelection(_e.create(e.doc, t < 0 ? i.start(o) : i.end(o)))), !0) : !1;
18607
+ return i.node(o).isTextblock ? (n && n(e.tr.setSelection(Me.create(e.doc, t < 0 ? i.start(o) : i.end(o)))), !0) : !1;
18606
18608
  };
18607
18609
  }
18608
18610
  const dT = Dg(-1), fT = Dg(1);
@@ -18651,8 +18653,8 @@ function eu(...t) {
18651
18653
  };
18652
18654
  }
18653
18655
  eu(Jc, Sg, Cg);
18654
- eu(Jc, Tg, _g);
18655
- eu(Mg, Ng, Ag, aT);
18656
+ eu(Jc, Tg, Mg);
18657
+ eu(_g, Ng, Ag, aT);
18656
18658
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
18657
18659
  function pT(t, e = null) {
18658
18660
  return function(n, r) {
@@ -19221,11 +19223,11 @@ function TT(t) {
19221
19223
  });
19222
19224
  return r;
19223
19225
  }
19224
- function _T(t) {
19226
+ function MT(t) {
19225
19227
  return Object.prototype.toString.call(t).slice(8, -1);
19226
19228
  }
19227
19229
  function ps(t) {
19228
- return _T(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
19230
+ return MT(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
19229
19231
  }
19230
19232
  function El(t, e) {
19231
19233
  const n = { ...t };
@@ -19279,7 +19281,7 @@ class fn {
19279
19281
  return !1;
19280
19282
  }
19281
19283
  }
19282
- function MT(t) {
19284
+ function _T(t) {
19283
19285
  return typeof t == "number";
19284
19286
  }
19285
19287
  class NT {
@@ -19414,7 +19416,7 @@ function IT(t) {
19414
19416
  });
19415
19417
  }
19416
19418
  const b = f.doc.content.findDiffStart(h.doc.content), y = f.doc.content.findDiffEnd(h.doc.content);
19417
- if (!(!MT(b) || !y || b === y.b))
19419
+ if (!(!_T(b) || !y || b === y.b))
19418
19420
  return a({
19419
19421
  rule: u,
19420
19422
  state: h,
@@ -19698,7 +19700,7 @@ const PT = ct.create({
19698
19700
  const { state: i } = n, o = i.doc.slice(t.from, t.to);
19699
19701
  r.deleteRange(t.from, t.to);
19700
19702
  const s = r.mapping.map(e);
19701
- return r.insert(s, o.content), r.setSelection(new _e(r.doc.resolve(s - 1))), !0;
19703
+ return r.insert(s, o.content), r.setSelection(new Me(r.doc.resolve(s - 1))), !0;
19702
19704
  }, zT = () => ({ tr: t, dispatch: e }) => {
19703
19705
  const { selection: n } = t, r = n.$anchor.node();
19704
19706
  if (r.content.size > 0)
@@ -19759,7 +19761,7 @@ function ru(t, e, n) {
19759
19761
  to: c
19760
19762
  };
19761
19763
  }
19762
- function Mr(t, e) {
19764
+ function _r(t, e) {
19763
19765
  if (typeof t == "string") {
19764
19766
  if (!e.marks[t])
19765
19767
  throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);
@@ -19768,11 +19770,11 @@ function Mr(t, e) {
19768
19770
  return t;
19769
19771
  }
19770
19772
  const GT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
19771
- const o = Mr(t, r.schema), { doc: s, selection: l } = n, { $from: a, from: c, to: u } = l;
19773
+ const o = _r(t, r.schema), { doc: s, selection: l } = n, { $from: a, from: c, to: u } = l;
19772
19774
  if (i) {
19773
19775
  const d = ru(a, o, e);
19774
19776
  if (d && d.from <= c && d.to >= u) {
19775
- const f = _e.create(s, d.from, d.to);
19777
+ const f = Me.create(s, d.from, d.to);
19776
19778
  n.setSelection(f);
19777
19779
  }
19778
19780
  }
@@ -19785,7 +19787,7 @@ const GT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
19785
19787
  return !1;
19786
19788
  };
19787
19789
  function iu(t) {
19788
- return t instanceof _e;
19790
+ return t instanceof Me;
19789
19791
  }
19790
19792
  function qn(t = 0, e = 0, n = 0) {
19791
19793
  return Math.min(Math.max(t, e), n);
@@ -19799,7 +19801,7 @@ function Bg(t, e = null) {
19799
19801
  if (e === "end")
19800
19802
  return r;
19801
19803
  const i = n.from, o = r.to;
19802
- return e === "all" ? _e.create(t, qn(0, i, o), qn(t.content.size, i, o)) : _e.create(t, qn(e, i, o), qn(e, i, o));
19804
+ return e === "all" ? Me.create(t, qn(0, i, o), qn(t.content.size, i, o)) : Me.create(t, qn(e, i, o), qn(e, i, o));
19803
19805
  }
19804
19806
  function ZT() {
19805
19807
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
@@ -19830,7 +19832,7 @@ const XT = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) =>
19830
19832
  return s(), !0;
19831
19833
  const l = Bg(i.doc, t) || n.state.selection, a = n.state.selection.eq(l);
19832
19834
  return o && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), s()), !0;
19833
- }, QT = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), e_ = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Fg = (t) => {
19835
+ }, QT = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), eM = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Fg = (t) => {
19834
19836
  const e = t.childNodes;
19835
19837
  for (let n = e.length - 1; n >= 0; n -= 1) {
19836
19838
  const r = e[n];
@@ -19891,7 +19893,7 @@ function Qs(t, e, n) {
19891
19893
  }
19892
19894
  return Qs("", e, n);
19893
19895
  }
19894
- function t_(t, e, n) {
19896
+ function tM(t, e, n) {
19895
19897
  const r = t.steps.length - 1;
19896
19898
  if (r < e)
19897
19899
  return;
@@ -19904,7 +19906,7 @@ function t_(t, e, n) {
19904
19906
  s === 0 && (s = u);
19905
19907
  }), t.setSelection(Ie.near(t.doc.resolve(s), n));
19906
19908
  }
19907
- const n_ = (t) => !("type" in t), r_ = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
19909
+ const nM = (t) => !("type" in t), rM = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
19908
19910
  var s;
19909
19911
  if (i) {
19910
19912
  n = {
@@ -19933,7 +19935,7 @@ const n_ = (t) => !("type" in t), r_ = (t, e, n) => ({ tr: r, dispatch: i, edito
19933
19935
  }), !1;
19934
19936
  }
19935
19937
  let { from: a, to: c } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, u = !0, d = !0;
19936
- if ((n_(l) ? l : [l]).forEach((p) => {
19938
+ if ((nM(l) ? l : [l]).forEach((p) => {
19937
19939
  p.check(), u = u ? p.isText && p.marks.length === 0 : !1, d = d ? p.isBlock : !1;
19938
19940
  }), a === c && d) {
19939
19941
  const { parent: p } = r.doc.resolve(a);
@@ -19952,28 +19954,28 @@ const n_ = (t) => !("type" in t), r_ = (t, e, n) => ({ tr: r, dispatch: i, edito
19952
19954
  r.insertText(h, a, c);
19953
19955
  } else
19954
19956
  h = l, r.replaceWith(a, c, h);
19955
- n.updateSelection && t_(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: h }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: h });
19957
+ n.updateSelection && tM(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: h }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: h });
19956
19958
  }
19957
19959
  return !0;
19958
- }, i_ = () => ({ state: t, dispatch: e }) => rT(t, e), o_ = () => ({ state: t, dispatch: e }) => iT(t, e), s_ = () => ({ state: t, dispatch: e }) => Sg(t, e), l_ = () => ({ state: t, dispatch: e }) => Tg(t, e), a_ = () => ({ state: t, dispatch: e, tr: n }) => {
19960
+ }, iM = () => ({ state: t, dispatch: e }) => rT(t, e), oM = () => ({ state: t, dispatch: e }) => iT(t, e), sM = () => ({ state: t, dispatch: e }) => Sg(t, e), lM = () => ({ state: t, dispatch: e }) => Tg(t, e), aM = () => ({ state: t, dispatch: e, tr: n }) => {
19959
19961
  try {
19960
19962
  const r = gl(t.doc, t.selection.$from.pos, -1);
19961
19963
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
19962
19964
  } catch {
19963
19965
  return !1;
19964
19966
  }
19965
- }, c_ = () => ({ state: t, dispatch: e, tr: n }) => {
19967
+ }, cM = () => ({ state: t, dispatch: e, tr: n }) => {
19966
19968
  try {
19967
19969
  const r = gl(t.doc, t.selection.$from.pos, 1);
19968
19970
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
19969
19971
  } catch {
19970
19972
  return !1;
19971
19973
  }
19972
- }, u_ = () => ({ state: t, dispatch: e }) => tT(t, e), d_ = () => ({ state: t, dispatch: e }) => nT(t, e);
19974
+ }, uM = () => ({ state: t, dispatch: e }) => tT(t, e), dM = () => ({ state: t, dispatch: e }) => nT(t, e);
19973
19975
  function jg() {
19974
19976
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
19975
19977
  }
19976
- function f_(t) {
19978
+ function fM(t) {
19977
19979
  const e = t.split(/-(?!$)/);
19978
19980
  let n = e[e.length - 1];
19979
19981
  n === "Space" && (n = " ");
@@ -19995,8 +19997,8 @@ function f_(t) {
19995
19997
  }
19996
19998
  return r && (n = `Alt-${n}`), i && (n = `Ctrl-${n}`), s && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n;
19997
19999
  }
19998
- const h_ = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
19999
- const o = f_(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
20000
+ const hM = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
20001
+ const o = fM(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), l = new KeyboardEvent("keydown", {
20000
20002
  key: s === "Space" ? " " : s,
20001
20003
  altKey: o.includes("Alt"),
20002
20004
  ctrlKey: o.includes("Ctrl"),
@@ -20027,13 +20029,13 @@ function Vo(t, e, n = {}) {
20027
20029
  const a = i - r, c = l.filter((d) => s ? s.name === d.node.type.name : !0).filter((d) => Xs(d.node.attrs, n, { strict: !1 }));
20028
20030
  return o ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= a;
20029
20031
  }
20030
- const p_ = (t, e = {}) => ({ state: n, dispatch: r }) => {
20032
+ const pM = (t, e = {}) => ({ state: n, dispatch: r }) => {
20031
20033
  const i = vt(t, n.schema);
20032
20034
  return Vo(n, i, e) ? oT(n, r) : !1;
20033
- }, m_ = () => ({ state: t, dispatch: e }) => Ag(t, e), g_ = (t) => ({ state: e, dispatch: n }) => {
20035
+ }, mM = () => ({ state: t, dispatch: e }) => Ag(t, e), gM = (t) => ({ state: e, dispatch: n }) => {
20034
20036
  const r = vt(t, e.schema);
20035
20037
  return yT(r)(e, n);
20036
- }, y_ = () => ({ state: t, dispatch: e }) => Mg(t, e);
20038
+ }, yM = () => ({ state: t, dispatch: e }) => _g(t, e);
20037
20039
  function Tl(t, e) {
20038
20040
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
20039
20041
  }
@@ -20041,23 +20043,23 @@ function Vf(t, e) {
20041
20043
  const n = typeof e == "string" ? [e] : e;
20042
20044
  return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {});
20043
20045
  }
20044
- const v_ = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
20046
+ const vM = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
20045
20047
  let o = null, s = null;
20046
20048
  const l = Tl(typeof t == "string" ? t : t.name, r.schema);
20047
- return l ? (l === "node" && (o = vt(t, r.schema)), l === "mark" && (s = Mr(t, r.schema)), i && n.selection.ranges.forEach((a) => {
20049
+ return l ? (l === "node" && (o = vt(t, r.schema)), l === "mark" && (s = _r(t, r.schema)), i && n.selection.ranges.forEach((a) => {
20048
20050
  r.doc.nodesBetween(a.$from.pos, a.$to.pos, (c, u) => {
20049
20051
  o && o === c.type && n.setNodeMarkup(u, void 0, Vf(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
20050
20052
  s === d.type && n.addMark(u, u + c.nodeSize, s.create(Vf(d.attrs, e)));
20051
20053
  });
20052
20054
  });
20053
20055
  }), !0) : !1;
20054
- }, b_ = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), w_ = () => ({ tr: t, dispatch: e }) => {
20056
+ }, bM = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), wM = () => ({ tr: t, dispatch: e }) => {
20055
20057
  if (e) {
20056
20058
  const n = new nn(t.doc);
20057
20059
  t.setSelection(n);
20058
20060
  }
20059
20061
  return !0;
20060
- }, k_ = () => ({ state: t, dispatch: e }) => Cg(t, e), x_ = () => ({ state: t, dispatch: e }) => _g(t, e), S_ = () => ({ state: t, dispatch: e }) => cT(t, e), O_ = () => ({ state: t, dispatch: e }) => fT(t, e), C_ = () => ({ state: t, dispatch: e }) => dT(t, e);
20062
+ }, kM = () => ({ state: t, dispatch: e }) => Cg(t, e), xM = () => ({ state: t, dispatch: e }) => Mg(t, e), SM = () => ({ state: t, dispatch: e }) => cT(t, e), OM = () => ({ state: t, dispatch: e }) => fT(t, e), CM = () => ({ state: t, dispatch: e }) => dT(t, e);
20061
20063
  function lc(t, e, n = {}, r = {}) {
20062
20064
  return Qs(t, e, {
20063
20065
  slice: !1,
@@ -20065,7 +20067,7 @@ function lc(t, e, n = {}, r = {}) {
20065
20067
  errorOnInvalidContent: r.errorOnInvalidContent
20066
20068
  });
20067
20069
  }
20068
- const E_ = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: l }) => {
20070
+ const EM = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: l }) => {
20069
20071
  var a, c;
20070
20072
  const { doc: u } = o;
20071
20073
  if (n.preserveWhitespace !== "full") {
@@ -20079,15 +20081,15 @@ const E_ = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
20079
20081
  errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
20080
20082
  });
20081
20083
  };
20082
- function _l(t, e) {
20083
- const n = Mr(e, t.schema), { from: r, to: i, empty: o } = t.selection, s = [];
20084
+ function Ml(t, e) {
20085
+ const n = _r(e, t.schema), { from: r, to: i, empty: o } = t.selection, s = [];
20084
20086
  o ? (t.storedMarks && s.push(...t.storedMarks), s.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (a) => {
20085
20087
  s.push(...a.marks);
20086
20088
  });
20087
20089
  const l = s.find((a) => a.type.name === n.name);
20088
20090
  return l ? { ...l.attrs } : {};
20089
20091
  }
20090
- function T_(t) {
20092
+ function TM(t) {
20091
20093
  for (let e = 0; e < t.edgeCount; e += 1) {
20092
20094
  const { type: n } = t.edge(e);
20093
20095
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -20095,7 +20097,7 @@ function T_(t) {
20095
20097
  }
20096
20098
  return null;
20097
20099
  }
20098
- function __(t, e) {
20100
+ function MM(t, e) {
20099
20101
  for (let n = t.depth; n > 0; n -= 1) {
20100
20102
  const r = t.node(n);
20101
20103
  if (e(r))
@@ -20108,16 +20110,16 @@ function __(t, e) {
20108
20110
  }
20109
20111
  }
20110
20112
  function su(t) {
20111
- return (e) => __(e.$from, t);
20113
+ return (e) => MM(e.$from, t);
20112
20114
  }
20113
- function M_(t, e) {
20115
+ function _M(t, e) {
20114
20116
  const n = {
20115
20117
  from: 0,
20116
20118
  to: t.content.size
20117
20119
  };
20118
20120
  return Pg(t, n, e);
20119
20121
  }
20120
- function N_(t, e) {
20122
+ function NM(t, e) {
20121
20123
  const n = vt(e, t.schema), { from: r, to: i } = t.selection, o = [];
20122
20124
  t.doc.nodesBetween(r, i, (l) => {
20123
20125
  o.push(l);
@@ -20125,9 +20127,9 @@ function N_(t, e) {
20125
20127
  const s = o.reverse().find((l) => l.type.name === n.name);
20126
20128
  return s ? { ...s.attrs } : {};
20127
20129
  }
20128
- function A_(t, e) {
20130
+ function AM(t, e) {
20129
20131
  const n = Tl(typeof e == "string" ? e : e.name, t.schema);
20130
- return n === "node" ? N_(t, e) : n === "mark" ? _l(t, e) : {};
20132
+ return n === "node" ? NM(t, e) : n === "mark" ? Ml(t, e) : {};
20131
20133
  }
20132
20134
  function Hg(t, e, n) {
20133
20135
  const r = [];
@@ -20152,7 +20154,7 @@ function Os(t, e, n) {
20152
20154
  }));
20153
20155
  }
20154
20156
  function ac(t, e, n = {}) {
20155
- const { empty: r, ranges: i } = t.selection, o = e ? Mr(e, t.schema) : null;
20157
+ const { empty: r, ranges: i } = t.selection, o = e ? _r(e, t.schema) : null;
20156
20158
  if (r)
20157
20159
  return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Xs(d.attrs, n, { strict: !1 }));
20158
20160
  let s = 0;
@@ -20174,7 +20176,7 @@ function ac(t, e, n = {}) {
20174
20176
  const a = l.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) => Xs(d.mark.attrs, n, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = l.filter((d) => o ? d.mark.type !== o && d.mark.type.excludes(o) : !0).reduce((d, f) => d + f.to - f.from, 0);
20175
20177
  return (a > 0 ? a + c : a) >= s;
20176
20178
  }
20177
- function L_(t, e, n = {}) {
20179
+ function LM(t, e, n = {}) {
20178
20180
  if (!e)
20179
20181
  return Vo(t, null, n) || ac(t, null, n);
20180
20182
  const r = Tl(e, t.schema);
@@ -20213,7 +20215,7 @@ function lu(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
20213
20215
  }
20214
20216
  return !1;
20215
20217
  }
20216
- function D_(t) {
20218
+ function DM(t) {
20217
20219
  return t instanceof xe;
20218
20220
  }
20219
20221
  function zg(t, e, n) {
@@ -20232,7 +20234,7 @@ function zg(t, e, n) {
20232
20234
  toJSON: () => v
20233
20235
  };
20234
20236
  }
20235
- function I_(t, e, n) {
20237
+ function IM(t, e, n) {
20236
20238
  var r;
20237
20239
  const { selection: i } = e;
20238
20240
  let o = null;
@@ -20254,11 +20256,11 @@ function I_(t, e, n) {
20254
20256
  }), c;
20255
20257
  });
20256
20258
  }
20257
- const $_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20258
- const { selection: o } = n, { empty: s, ranges: l } = o, a = Mr(t, r.schema);
20259
+ const $M = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20260
+ const { selection: o } = n, { empty: s, ranges: l } = o, a = _r(t, r.schema);
20259
20261
  if (i)
20260
20262
  if (s) {
20261
- const c = _l(r, a);
20263
+ const c = Ml(r, a);
20262
20264
  n.addStoredMark(a.create({
20263
20265
  ...c,
20264
20266
  ...e
@@ -20276,24 +20278,24 @@ const $_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20276
20278
  }) : n.addMark(p, m, a.create(e));
20277
20279
  });
20278
20280
  });
20279
- return I_(r, n, a);
20280
- }, P_ = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), R_ = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
20281
+ return IM(r, n, a);
20282
+ }, PM = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), RM = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
20281
20283
  const o = vt(t, n.schema);
20282
20284
  let s;
20283
20285
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: l }) => Df(o, { ...s, ...e })(n) ? !0 : l.clearNodes()).command(({ state: l }) => Df(o, { ...s, ...e })(l, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
20284
- }, V_ = (t) => ({ tr: e, dispatch: n }) => {
20286
+ }, VM = (t) => ({ tr: e, dispatch: n }) => {
20285
20287
  if (n) {
20286
20288
  const { doc: r } = e, i = qn(t, 0, r.content.size), o = xe.create(r, i);
20287
20289
  e.setSelection(o);
20288
20290
  }
20289
20291
  return !0;
20290
- }, B_ = (t) => ({ tr: e, dispatch: n }) => {
20292
+ }, BM = (t) => ({ tr: e, dispatch: n }) => {
20291
20293
  if (n) {
20292
- const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = _e.atStart(r).from, l = _e.atEnd(r).to, a = qn(i, s, l), c = qn(o, s, l), u = _e.create(r, a, c);
20294
+ const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = Me.atStart(r).from, l = Me.atEnd(r).to, a = qn(i, s, l), c = qn(o, s, l), u = Me.create(r, a, c);
20293
20295
  e.setSelection(u);
20294
20296
  }
20295
20297
  return !0;
20296
- }, F_ = (t) => ({ state: e, dispatch: n }) => {
20298
+ }, FM = (t) => ({ state: e, dispatch: n }) => {
20297
20299
  const r = vt(t, e.schema);
20298
20300
  return wT(r)(e, n);
20299
20301
  };
@@ -20304,13 +20306,13 @@ function Ff(t, e) {
20304
20306
  t.tr.ensureMarks(r);
20305
20307
  }
20306
20308
  }
20307
- const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
20309
+ const jM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
20308
20310
  const { selection: o, doc: s } = e, { $from: l, $to: a } = o, c = i.extensionManager.attributes, u = Os(c, l.node().type.name, l.node().attrs);
20309
20311
  if (o instanceof xe && o.node.isBlock)
20310
20312
  return !l.parentOffset || !Kn(s, l.pos) ? !1 : (r && (t && Ff(n, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
20311
20313
  if (!l.parent.isBlock)
20312
20314
  return !1;
20313
- const d = a.parentOffset === a.parent.content.size, f = l.depth === 0 ? void 0 : T_(l.node(-1).contentMatchAt(l.indexAfter(-1)));
20315
+ const d = a.parentOffset === a.parent.content.size, f = l.depth === 0 ? void 0 : TM(l.node(-1).contentMatchAt(l.indexAfter(-1)));
20314
20316
  let h = d && f ? [
20315
20317
  {
20316
20318
  type: f,
@@ -20323,14 +20325,14 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20323
20325
  attrs: u
20324
20326
  }
20325
20327
  ] : void 0), r) {
20326
- if (p && (o instanceof _e && e.deleteSelection(), e.split(e.mapping.map(l.pos), 1, h), f && !d && !l.parentOffset && l.parent.type !== f)) {
20328
+ if (p && (o instanceof Me && e.deleteSelection(), e.split(e.mapping.map(l.pos), 1, h), f && !d && !l.parentOffset && l.parent.type !== f)) {
20327
20329
  const m = e.mapping.map(l.before()), g = e.doc.resolve(m);
20328
20330
  l.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && e.setNodeMarkup(e.mapping.map(l.before()), f);
20329
20331
  }
20330
20332
  t && Ff(n, i.extensionManager.splittableMarks), e.scrollIntoView();
20331
20333
  }
20332
20334
  return p;
20333
- }, H_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
20335
+ }, HM = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
20334
20336
  var s;
20335
20337
  const l = vt(t, r.schema), { $from: a, $to: c } = r.selection, u = r.selection.node;
20336
20338
  if (u && u.isBlock || a.depth < 2 || !a.sameParent(c))
@@ -20359,7 +20361,7 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20359
20361
  if (T > -1)
20360
20362
  return !1;
20361
20363
  $.isTextblock && $.content.size === 0 && (T = A + 1);
20362
- }), T > -1 && n.setSelection(_e.near(n.doc.resolve(T))), n.scrollIntoView();
20364
+ }), T > -1 && n.setSelection(Me.near(n.doc.resolve(T))), n.scrollIntoView();
20363
20365
  }
20364
20366
  return !0;
20365
20367
  }
@@ -20403,7 +20405,7 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20403
20405
  return !0;
20404
20406
  const i = t.doc.nodeAt(r);
20405
20407
  return n.node.type === (i == null ? void 0 : i.type) && Tr(t.doc, r) && t.join(r), !0;
20406
- }, z_ = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: c, can: u }) => {
20408
+ }, zM = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: c, can: u }) => {
20407
20409
  const { extensions: d, splittableMarks: f } = i.extensionManager, h = vt(t, s.schema), p = vt(e, s.schema), { selection: m, storedMarks: g } = s, { $from: v, $to: k } = m, b = v.blockRange(k), y = g || m.$to.parentOffset && m.$from.marks();
20408
20410
  if (!b)
20409
20411
  return !1;
@@ -20418,17 +20420,17 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20418
20420
  const w = u().wrapInList(h, r), T = y.filter(($) => f.includes($.type.name));
20419
20421
  return o.ensureMarks(T), w ? !0 : c.clearNodes();
20420
20422
  }).wrapInList(h, r).command(() => ia(o, h)).command(() => oa(o, h)).run();
20421
- }, W_ = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
20422
- const { extendEmptyMarkRange: o = !1 } = n, s = Mr(t, r.schema);
20423
+ }, WM = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
20424
+ const { extendEmptyMarkRange: o = !1 } = n, s = _r(t, r.schema);
20423
20425
  return ac(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
20424
- }, U_ = (t, e, n = {}) => ({ state: r, commands: i }) => {
20426
+ }, UM = (t, e, n = {}) => ({ state: r, commands: i }) => {
20425
20427
  const o = vt(t, r.schema), s = vt(e, r.schema), l = Vo(r, o, n);
20426
20428
  let a;
20427
20429
  return r.selection.$anchor.sameParent(r.selection.$head) && (a = r.selection.$anchor.parent.attrs), l ? i.setNode(s, a) : i.setNode(o, { ...a, ...n });
20428
- }, Y_ = (t, e = {}) => ({ state: n, commands: r }) => {
20430
+ }, YM = (t, e = {}) => ({ state: n, commands: r }) => {
20429
20431
  const i = vt(t, n.schema);
20430
20432
  return Vo(n, i, e) ? r.lift(i) : r.wrapIn(i, e);
20431
- }, q_ = () => ({ state: t, dispatch: e }) => {
20433
+ }, qM = () => ({ state: t, dispatch: e }) => {
20432
20434
  const n = t.plugins;
20433
20435
  for (let r = 0; r < n.length; r += 1) {
20434
20436
  const i = n[r];
@@ -20448,14 +20450,14 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20448
20450
  }
20449
20451
  }
20450
20452
  return !1;
20451
- }, K_ = () => ({ tr: t, dispatch: e }) => {
20453
+ }, KM = () => ({ tr: t, dispatch: e }) => {
20452
20454
  const { selection: n } = t, { empty: r, ranges: i } = n;
20453
20455
  return r || e && i.forEach((o) => {
20454
20456
  t.removeMark(o.$from.pos, o.$to.pos);
20455
20457
  }), !0;
20456
- }, G_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20458
+ }, GM = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20457
20459
  var o;
20458
- const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = n, a = Mr(t, r.schema), { $from: c, empty: u, ranges: d } = l;
20460
+ const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = n, a = _r(t, r.schema), { $from: c, empty: u, ranges: d } = l;
20459
20461
  if (!i)
20460
20462
  return !0;
20461
20463
  if (u && s) {
@@ -20467,10 +20469,10 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20467
20469
  n.removeMark(f.$from.pos, f.$to.pos, a);
20468
20470
  });
20469
20471
  return n.removeStoredMark(a), !0;
20470
- }, J_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20472
+ }, JM = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
20471
20473
  let o = null, s = null;
20472
20474
  const l = Tl(typeof t == "string" ? t : t.name, r.schema);
20473
- return l ? (l === "node" && (o = vt(t, r.schema)), l === "mark" && (s = Mr(t, r.schema)), i && n.selection.ranges.forEach((a) => {
20475
+ return l ? (l === "node" && (o = vt(t, r.schema)), l === "mark" && (s = _r(t, r.schema)), i && n.selection.ranges.forEach((a) => {
20474
20476
  const c = a.$from.pos, u = a.$to.pos;
20475
20477
  let d, f, h, p;
20476
20478
  n.selection.empty ? r.doc.nodesBetween(c, u, (m, g) => {
@@ -20498,14 +20500,14 @@ const j_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
20498
20500
  }));
20499
20501
  }));
20500
20502
  }), !0) : !1;
20501
- }, Z_ = (t, e = {}) => ({ state: n, dispatch: r }) => {
20503
+ }, ZM = (t, e = {}) => ({ state: n, dispatch: r }) => {
20502
20504
  const i = vt(t, n.schema);
20503
20505
  return hT(i, e)(n, r);
20504
- }, X_ = (t, e = {}) => ({ state: n, dispatch: r }) => {
20506
+ }, XM = (t, e = {}) => ({ state: n, dispatch: r }) => {
20505
20507
  const i = vt(t, n.schema);
20506
20508
  return pT(i, e)(n, r);
20507
20509
  };
20508
- var Q_ = /* @__PURE__ */ Object.freeze({
20510
+ var QM = /* @__PURE__ */ Object.freeze({
20509
20511
  __proto__: null,
20510
20512
  blur: RT,
20511
20513
  clearContent: VT,
@@ -20523,57 +20525,57 @@ var Q_ = /* @__PURE__ */ Object.freeze({
20523
20525
  first: JT,
20524
20526
  focus: XT,
20525
20527
  forEach: QT,
20526
- insertContent: e_,
20527
- insertContentAt: r_,
20528
- joinBackward: s_,
20529
- joinDown: o_,
20530
- joinForward: l_,
20531
- joinItemBackward: a_,
20532
- joinItemForward: c_,
20533
- joinTextblockBackward: u_,
20534
- joinTextblockForward: d_,
20535
- joinUp: i_,
20536
- keyboardShortcut: h_,
20537
- lift: p_,
20538
- liftEmptyBlock: m_,
20539
- liftListItem: g_,
20540
- newlineInCode: y_,
20541
- resetAttributes: v_,
20542
- scrollIntoView: b_,
20543
- selectAll: w_,
20544
- selectNodeBackward: k_,
20545
- selectNodeForward: x_,
20546
- selectParentNode: S_,
20547
- selectTextblockEnd: O_,
20548
- selectTextblockStart: C_,
20549
- setContent: E_,
20550
- setMark: $_,
20551
- setMeta: P_,
20552
- setNode: R_,
20553
- setNodeSelection: V_,
20554
- setTextSelection: B_,
20555
- sinkListItem: F_,
20556
- splitBlock: j_,
20557
- splitListItem: H_,
20558
- toggleList: z_,
20559
- toggleMark: W_,
20560
- toggleNode: U_,
20561
- toggleWrap: Y_,
20562
- undoInputRule: q_,
20563
- unsetAllMarks: K_,
20564
- unsetMark: G_,
20565
- updateAttributes: J_,
20566
- wrapIn: Z_,
20567
- wrapInList: X_
20528
+ insertContent: eM,
20529
+ insertContentAt: rM,
20530
+ joinBackward: sM,
20531
+ joinDown: oM,
20532
+ joinForward: lM,
20533
+ joinItemBackward: aM,
20534
+ joinItemForward: cM,
20535
+ joinTextblockBackward: uM,
20536
+ joinTextblockForward: dM,
20537
+ joinUp: iM,
20538
+ keyboardShortcut: hM,
20539
+ lift: pM,
20540
+ liftEmptyBlock: mM,
20541
+ liftListItem: gM,
20542
+ newlineInCode: yM,
20543
+ resetAttributes: vM,
20544
+ scrollIntoView: bM,
20545
+ selectAll: wM,
20546
+ selectNodeBackward: kM,
20547
+ selectNodeForward: xM,
20548
+ selectParentNode: SM,
20549
+ selectTextblockEnd: OM,
20550
+ selectTextblockStart: CM,
20551
+ setContent: EM,
20552
+ setMark: $M,
20553
+ setMeta: PM,
20554
+ setNode: RM,
20555
+ setNodeSelection: VM,
20556
+ setTextSelection: BM,
20557
+ sinkListItem: FM,
20558
+ splitBlock: jM,
20559
+ splitListItem: HM,
20560
+ toggleList: zM,
20561
+ toggleMark: WM,
20562
+ toggleNode: UM,
20563
+ toggleWrap: YM,
20564
+ undoInputRule: qM,
20565
+ unsetAllMarks: KM,
20566
+ unsetMark: GM,
20567
+ updateAttributes: JM,
20568
+ wrapIn: ZM,
20569
+ wrapInList: XM
20568
20570
  });
20569
- const eM = ct.create({
20571
+ const e_ = ct.create({
20570
20572
  name: "commands",
20571
20573
  addCommands() {
20572
20574
  return {
20573
- ...Q_
20575
+ ...QM
20574
20576
  };
20575
20577
  }
20576
- }), tM = ct.create({
20578
+ }), t_ = ct.create({
20577
20579
  name: "drop",
20578
20580
  addProseMirrorPlugins() {
20579
20581
  return [
@@ -20592,7 +20594,7 @@ const eM = ct.create({
20592
20594
  })
20593
20595
  ];
20594
20596
  }
20595
- }), nM = ct.create({
20597
+ }), n_ = ct.create({
20596
20598
  name: "editable",
20597
20599
  addProseMirrorPlugins() {
20598
20600
  return [
@@ -20604,7 +20606,7 @@ const eM = ct.create({
20604
20606
  })
20605
20607
  ];
20606
20608
  }
20607
- }), rM = ct.create({
20609
+ }), r_ = ct.create({
20608
20610
  name: "focusEvents",
20609
20611
  addProseMirrorPlugins() {
20610
20612
  const { editor: t } = this;
@@ -20628,7 +20630,7 @@ const eM = ct.create({
20628
20630
  })
20629
20631
  ];
20630
20632
  }
20631
- }), iM = ct.create({
20633
+ }), i_ = ct.create({
20632
20634
  name: "keymap",
20633
20635
  addKeyboardShortcuts() {
20634
20636
  const t = () => this.editor.commands.first(({ commands: s }) => [
@@ -20706,7 +20708,7 @@ const eM = ct.create({
20706
20708
  })
20707
20709
  ];
20708
20710
  }
20709
- }), oM = ct.create({
20711
+ }), o_ = ct.create({
20710
20712
  name: "paste",
20711
20713
  addProseMirrorPlugins() {
20712
20714
  return [
@@ -20724,7 +20726,7 @@ const eM = ct.create({
20724
20726
  })
20725
20727
  ];
20726
20728
  }
20727
- }), sM = ct.create({
20729
+ }), s_ = ct.create({
20728
20730
  name: "tabindex",
20729
20731
  addProseMirrorPlugins() {
20730
20732
  return [
@@ -20860,7 +20862,7 @@ class Vr {
20860
20862
  }), this.editor.view.dispatch(n);
20861
20863
  }
20862
20864
  }
20863
- const lM = `.ProseMirror {
20865
+ const l_ = `.ProseMirror {
20864
20866
  position: relative;
20865
20867
  }
20866
20868
 
@@ -20935,14 +20937,14 @@ img.ProseMirror-separator {
20935
20937
  .tippy-box[data-animation=fade][data-state=hidden] {
20936
20938
  opacity: 0
20937
20939
  }`;
20938
- function aM(t, e, n) {
20940
+ function a_(t, e, n) {
20939
20941
  const r = document.querySelector("style[data-tiptap-style]");
20940
20942
  if (r !== null)
20941
20943
  return r;
20942
20944
  const i = document.createElement("style");
20943
20945
  return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(i), i;
20944
20946
  }
20945
- let cM = class extends kT {
20947
+ let c_ = class extends kT {
20946
20948
  constructor(e = {}) {
20947
20949
  super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
20948
20950
  element: document.createElement("div"),
@@ -21004,7 +21006,7 @@ let cM = class extends kT {
21004
21006
  * Inject CSS styles.
21005
21007
  */
21006
21008
  injectCSS() {
21007
- this.options.injectCSS && document && (this.css = aM(lM, this.options.injectNonce));
21009
+ this.options.injectCSS && document && (this.css = a_(l_, this.options.injectNonce));
21008
21010
  }
21009
21011
  /**
21010
21012
  * Update editor options.
@@ -21073,16 +21075,16 @@ let cM = class extends kT {
21073
21075
  createExtensionManager() {
21074
21076
  var e, n;
21075
21077
  const i = [...this.options.enableCoreExtensions ? [
21076
- nM,
21078
+ n_,
21077
21079
  PT.configure({
21078
21080
  blockSeparator: (n = (e = this.options.coreExtensionOptions) === null || e === void 0 ? void 0 : e.clipboardTextSerializer) === null || n === void 0 ? void 0 : n.blockSeparator
21079
21081
  }),
21080
- eM,
21081
- rM,
21082
- iM,
21083
- sM,
21084
- tM,
21085
- oM
21082
+ e_,
21083
+ r_,
21084
+ i_,
21085
+ s_,
21086
+ t_,
21087
+ o_
21086
21088
  ].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o == null ? void 0 : o.type));
21087
21089
  this.extensionManager = new bi(i, this);
21088
21090
  }
@@ -21208,11 +21210,11 @@ let cM = class extends kT {
21208
21210
  * Get attributes of the currently selected node or mark.
21209
21211
  */
21210
21212
  getAttributes(e) {
21211
- return A_(this.state, e);
21213
+ return AM(this.state, e);
21212
21214
  }
21213
21215
  isActive(e, n) {
21214
21216
  const r = typeof e == "string" ? e : null, i = typeof e == "string" ? n : e;
21215
- return L_(this.state, r, i);
21217
+ return LM(this.state, r, i);
21216
21218
  }
21217
21219
  /**
21218
21220
  * Get the document as JSON.
@@ -21233,7 +21235,7 @@ let cM = class extends kT {
21233
21235
  const { blockSeparator: n = `
21234
21236
 
21235
21237
  `, textSerializers: r = {} } = e || {};
21236
- return M_(this.state.doc, {
21238
+ return _M(this.state.doc, {
21237
21239
  blockSeparator: n,
21238
21240
  textSerializers: {
21239
21241
  ...Rg(this.schema),
@@ -21415,11 +21417,11 @@ function Bi(t) {
21415
21417
  }
21416
21418
  });
21417
21419
  }
21418
- var qt = "top", hn = "bottom", pn = "right", Kt = "left", au = "auto", ts = [qt, hn, pn, Kt], Fi = "start", Fo = "end", uM = "clippingParents", Ug = "viewport", io = "popper", dM = "reference", jf = /* @__PURE__ */ ts.reduce(function(t, e) {
21420
+ var qt = "top", hn = "bottom", pn = "right", Kt = "left", au = "auto", ts = [qt, hn, pn, Kt], Fi = "start", Fo = "end", u_ = "clippingParents", Ug = "viewport", io = "popper", d_ = "reference", jf = /* @__PURE__ */ ts.reduce(function(t, e) {
21419
21421
  return t.concat([e + "-" + Fi, e + "-" + Fo]);
21420
21422
  }, []), Yg = /* @__PURE__ */ [].concat(ts, [au]).reduce(function(t, e) {
21421
21423
  return t.concat([e, e + "-" + Fi, e + "-" + Fo]);
21422
- }, []), fM = "beforeRead", hM = "read", pM = "afterRead", mM = "beforeMain", gM = "main", yM = "afterMain", vM = "beforeWrite", bM = "write", wM = "afterWrite", kM = [fM, hM, pM, mM, gM, yM, vM, bM, wM];
21424
+ }, []), f_ = "beforeRead", h_ = "read", p_ = "afterRead", m_ = "beforeMain", g_ = "main", y_ = "afterMain", v_ = "beforeWrite", b_ = "write", w_ = "afterWrite", k_ = [f_, h_, p_, m_, g_, y_, v_, b_, w_];
21423
21425
  function $n(t) {
21424
21426
  return t ? (t.nodeName || "").toLowerCase() : null;
21425
21427
  }
@@ -21446,7 +21448,7 @@ function cu(t) {
21446
21448
  var e = rn(t).ShadowRoot;
21447
21449
  return t instanceof e || t instanceof ShadowRoot;
21448
21450
  }
21449
- function xM(t) {
21451
+ function x_(t) {
21450
21452
  var e = t.state;
21451
21453
  Object.keys(e.elements).forEach(function(n) {
21452
21454
  var r = e.styles[n] || {}, i = e.attributes[n] || {}, o = e.elements[n];
@@ -21456,7 +21458,7 @@ function xM(t) {
21456
21458
  }));
21457
21459
  });
21458
21460
  }
21459
- function SM(t) {
21461
+ function S_(t) {
21460
21462
  var e = t.state, n = {
21461
21463
  popper: {
21462
21464
  position: e.options.strategy,
@@ -21484,8 +21486,8 @@ const qg = {
21484
21486
  name: "applyStyles",
21485
21487
  enabled: !0,
21486
21488
  phase: "write",
21487
- fn: xM,
21488
- effect: SM,
21489
+ fn: x_,
21490
+ effect: S_,
21489
21491
  requires: ["computeStyles"]
21490
21492
  };
21491
21493
  function Nn(t) {
@@ -21543,7 +21545,7 @@ function Gg(t, e) {
21543
21545
  function Zn(t) {
21544
21546
  return rn(t).getComputedStyle(t);
21545
21547
  }
21546
- function OM(t) {
21548
+ function O_(t) {
21547
21549
  return ["table", "td", "th"].indexOf($n(t)) >= 0;
21548
21550
  }
21549
21551
  function Nr(t) {
@@ -21552,7 +21554,7 @@ function Nr(t) {
21552
21554
  t.document
21553
21555
  )) || window.document).documentElement;
21554
21556
  }
21555
- function Ml(t) {
21557
+ function _l(t) {
21556
21558
  return $n(t) === "html" ? t : (
21557
21559
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
21558
21560
  // $FlowFixMe[incompatible-return]
@@ -21568,14 +21570,14 @@ function Hf(t) {
21568
21570
  return !un(t) || // https://github.com/popperjs/popper-core/issues/837
21569
21571
  Zn(t).position === "fixed" ? null : t.offsetParent;
21570
21572
  }
21571
- function CM(t) {
21573
+ function C_(t) {
21572
21574
  var e = /firefox/i.test(dc()), n = /Trident/i.test(dc());
21573
21575
  if (n && un(t)) {
21574
21576
  var r = Zn(t);
21575
21577
  if (r.position === "fixed")
21576
21578
  return null;
21577
21579
  }
21578
- var i = Ml(t);
21580
+ var i = _l(t);
21579
21581
  for (cu(i) && (i = i.host); un(i) && ["html", "body"].indexOf($n(i)) < 0; ) {
21580
21582
  var o = Zn(i);
21581
21583
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
@@ -21585,9 +21587,9 @@ function CM(t) {
21585
21587
  return null;
21586
21588
  }
21587
21589
  function ns(t) {
21588
- for (var e = rn(t), n = Hf(t); n && OM(n) && Zn(n).position === "static"; )
21590
+ for (var e = rn(t), n = Hf(t); n && O_(n) && Zn(n).position === "static"; )
21589
21591
  n = Hf(n);
21590
- return n && ($n(n) === "html" || $n(n) === "body" && Zn(n).position === "static") ? e : n || CM(t) || e;
21592
+ return n && ($n(n) === "html" || $n(n) === "body" && Zn(n).position === "static") ? e : n || C_(t) || e;
21591
21593
  }
21592
21594
  function du(t) {
21593
21595
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -21595,7 +21597,7 @@ function du(t) {
21595
21597
  function go(t, e, n) {
21596
21598
  return Yr(t, el(e, n));
21597
21599
  }
21598
- function EM(t, e, n) {
21600
+ function E_(t, e, n) {
21599
21601
  var r = go(t, e, n);
21600
21602
  return r > n ? n : r;
21601
21603
  }
@@ -21615,41 +21617,41 @@ function Xg(t, e) {
21615
21617
  return n[r] = t, n;
21616
21618
  }, {});
21617
21619
  }
21618
- var TM = function(e, n) {
21620
+ var T_ = function(e, n) {
21619
21621
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
21620
21622
  placement: n.placement
21621
21623
  })) : e, Zg(typeof e != "number" ? e : Xg(e, ts));
21622
21624
  };
21623
- function _M(t) {
21625
+ function M_(t) {
21624
21626
  var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, l = Nn(n.placement), a = du(l), c = [Kt, pn].indexOf(l) >= 0, u = c ? "height" : "width";
21625
21627
  if (!(!o || !s)) {
21626
- var d = TM(i.padding, n), f = uu(o), h = a === "y" ? qt : Kt, p = a === "y" ? hn : pn, m = n.rects.reference[u] + n.rects.reference[a] - s[a] - n.rects.popper[u], g = s[a] - n.rects.reference[a], v = ns(o), k = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, b = m / 2 - g / 2, y = d[h], C = k - f[u] - d[p], w = k / 2 - f[u] / 2 + b, T = go(y, w, C), $ = a;
21628
+ var d = T_(i.padding, n), f = uu(o), h = a === "y" ? qt : Kt, p = a === "y" ? hn : pn, m = n.rects.reference[u] + n.rects.reference[a] - s[a] - n.rects.popper[u], g = s[a] - n.rects.reference[a], v = ns(o), k = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, b = m / 2 - g / 2, y = d[h], C = k - f[u] - d[p], w = k / 2 - f[u] / 2 + b, T = go(y, w, C), $ = a;
21627
21629
  n.modifiersData[r] = (e = {}, e[$] = T, e.centerOffset = T - w, e);
21628
21630
  }
21629
21631
  }
21630
- function MM(t) {
21632
+ function __(t) {
21631
21633
  var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
21632
21634
  i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Gg(e.elements.popper, i) && (e.elements.arrow = i));
21633
21635
  }
21634
- const NM = {
21636
+ const N_ = {
21635
21637
  name: "arrow",
21636
21638
  enabled: !0,
21637
21639
  phase: "main",
21638
- fn: _M,
21639
- effect: MM,
21640
+ fn: M_,
21641
+ effect: __,
21640
21642
  requires: ["popperOffsets"],
21641
21643
  requiresIfExists: ["preventOverflow"]
21642
21644
  };
21643
21645
  function zi(t) {
21644
21646
  return t.split("-")[1];
21645
21647
  }
21646
- var AM = {
21648
+ var A_ = {
21647
21649
  top: "auto",
21648
21650
  right: "auto",
21649
21651
  bottom: "auto",
21650
21652
  left: "auto"
21651
21653
  };
21652
- function LM(t, e) {
21654
+ function L_(t, e) {
21653
21655
  var n = t.x, r = t.y, i = e.devicePixelRatio || 1;
21654
21656
  return {
21655
21657
  x: ji(n * i) / i || 0,
@@ -21687,7 +21689,7 @@ function zf(t) {
21687
21689
  }
21688
21690
  var P = Object.assign({
21689
21691
  position: l
21690
- }, c && AM), I = u === !0 ? LM({
21692
+ }, c && A_), I = u === !0 ? L_({
21691
21693
  x: h,
21692
21694
  y: m
21693
21695
  }, rn(n)) : {
@@ -21700,7 +21702,7 @@ function zf(t) {
21700
21702
  }
21701
21703
  return Object.assign({}, P, (e = {}, e[y] = k ? m + "px" : "", e[b] = v ? h + "px" : "", e.transform = "", e));
21702
21704
  }
21703
- function DM(t) {
21705
+ function D_(t) {
21704
21706
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, l = n.roundOffsets, a = l === void 0 ? !0 : l, c = {
21705
21707
  placement: Nn(e.placement),
21706
21708
  variation: zi(e.placement),
@@ -21723,17 +21725,17 @@ function DM(t) {
21723
21725
  "data-popper-placement": e.placement
21724
21726
  });
21725
21727
  }
21726
- const IM = {
21728
+ const I_ = {
21727
21729
  name: "computeStyles",
21728
21730
  enabled: !0,
21729
21731
  phase: "beforeWrite",
21730
- fn: DM,
21732
+ fn: D_,
21731
21733
  data: {}
21732
21734
  };
21733
21735
  var ys = {
21734
21736
  passive: !0
21735
21737
  };
21736
- function $M(t) {
21738
+ function $_(t) {
21737
21739
  var e = t.state, n = t.instance, r = t.options, i = r.scroll, o = i === void 0 ? !0 : i, s = r.resize, l = s === void 0 ? !0 : s, a = rn(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
21738
21740
  return o && c.forEach(function(u) {
21739
21741
  u.addEventListener("scroll", n.update, ys);
@@ -21743,16 +21745,16 @@ function $M(t) {
21743
21745
  }), l && a.removeEventListener("resize", n.update, ys);
21744
21746
  };
21745
21747
  }
21746
- const PM = {
21748
+ const P_ = {
21747
21749
  name: "eventListeners",
21748
21750
  enabled: !0,
21749
21751
  phase: "write",
21750
21752
  fn: function() {
21751
21753
  },
21752
- effect: $M,
21754
+ effect: $_,
21753
21755
  data: {}
21754
21756
  };
21755
- var RM = {
21757
+ var R_ = {
21756
21758
  left: "right",
21757
21759
  right: "left",
21758
21760
  bottom: "top",
@@ -21760,16 +21762,16 @@ var RM = {
21760
21762
  };
21761
21763
  function Cs(t) {
21762
21764
  return t.replace(/left|right|bottom|top/g, function(e) {
21763
- return RM[e];
21765
+ return R_[e];
21764
21766
  });
21765
21767
  }
21766
- var VM = {
21768
+ var V_ = {
21767
21769
  start: "end",
21768
21770
  end: "start"
21769
21771
  };
21770
21772
  function Wf(t) {
21771
21773
  return t.replace(/start|end/g, function(e) {
21772
- return VM[e];
21774
+ return V_[e];
21773
21775
  });
21774
21776
  }
21775
21777
  function fu(t) {
@@ -21782,7 +21784,7 @@ function fu(t) {
21782
21784
  function hu(t) {
21783
21785
  return Hi(Nr(t)).left + fu(t).scrollLeft;
21784
21786
  }
21785
- function BM(t, e) {
21787
+ function B_(t, e) {
21786
21788
  var n = rn(t), r = Nr(t), i = n.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
21787
21789
  if (i) {
21788
21790
  o = i.width, s = i.height;
@@ -21796,7 +21798,7 @@ function BM(t, e) {
21796
21798
  y: a
21797
21799
  };
21798
21800
  }
21799
- function FM(t) {
21801
+ function F_(t) {
21800
21802
  var e, n = Nr(t), r = fu(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, o = Yr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = Yr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -r.scrollLeft + hu(t), a = -r.scrollTop;
21801
21803
  return Zn(i || n).direction === "rtl" && (l += Yr(n.clientWidth, i ? i.clientWidth : 0) - o), {
21802
21804
  width: o,
@@ -21810,7 +21812,7 @@ function pu(t) {
21810
21812
  return /auto|scroll|overlay|hidden/.test(n + i + r);
21811
21813
  }
21812
21814
  function Qg(t) {
21813
- return ["html", "body", "#document"].indexOf($n(t)) >= 0 ? t.ownerDocument.body : un(t) && pu(t) ? t : Qg(Ml(t));
21815
+ return ["html", "body", "#document"].indexOf($n(t)) >= 0 ? t.ownerDocument.body : un(t) && pu(t) ? t : Qg(_l(t));
21814
21816
  }
21815
21817
  function yo(t, e) {
21816
21818
  var n;
@@ -21818,7 +21820,7 @@ function yo(t, e) {
21818
21820
  var r = Qg(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = rn(r), s = i ? [o].concat(o.visualViewport || [], pu(r) ? r : []) : r, l = e.concat(s);
21819
21821
  return i ? l : (
21820
21822
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
21821
- l.concat(yo(Ml(s)))
21823
+ l.concat(yo(_l(s)))
21822
21824
  );
21823
21825
  }
21824
21826
  function fc(t) {
@@ -21829,21 +21831,21 @@ function fc(t) {
21829
21831
  bottom: t.y + t.height
21830
21832
  });
21831
21833
  }
21832
- function jM(t, e) {
21834
+ function j_(t, e) {
21833
21835
  var n = Hi(t, !1, e === "fixed");
21834
21836
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
21835
21837
  }
21836
21838
  function Uf(t, e, n) {
21837
- return e === Ug ? fc(BM(t, n)) : ti(e) ? jM(e, n) : fc(FM(Nr(t)));
21839
+ return e === Ug ? fc(B_(t, n)) : ti(e) ? j_(e, n) : fc(F_(Nr(t)));
21838
21840
  }
21839
- function HM(t) {
21840
- var e = yo(Ml(t)), n = ["absolute", "fixed"].indexOf(Zn(t).position) >= 0, r = n && un(t) ? ns(t) : t;
21841
+ function H_(t) {
21842
+ var e = yo(_l(t)), n = ["absolute", "fixed"].indexOf(Zn(t).position) >= 0, r = n && un(t) ? ns(t) : t;
21841
21843
  return ti(r) ? e.filter(function(i) {
21842
21844
  return ti(i) && Gg(i, r) && $n(i) !== "body";
21843
21845
  }) : [];
21844
21846
  }
21845
- function zM(t, e, n, r) {
21846
- var i = e === "clippingParents" ? HM(t) : [].concat(e), o = [].concat(i, [n]), s = o[0], l = o.reduce(function(a, c) {
21847
+ function z_(t, e, n, r) {
21848
+ var i = e === "clippingParents" ? H_(t) : [].concat(e), o = [].concat(i, [n]), s = o[0], l = o.reduce(function(a, c) {
21847
21849
  var u = Uf(t, c, r);
21848
21850
  return a.top = Yr(u.top, a.top), a.right = el(u.right, a.right), a.bottom = el(u.bottom, a.bottom), a.left = Yr(u.left, a.left), a;
21849
21851
  }, Uf(t, s, r));
@@ -21898,7 +21900,7 @@ function e0(t) {
21898
21900
  }
21899
21901
  function jo(t, e) {
21900
21902
  e === void 0 && (e = {});
21901
- var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, l = n.boundary, a = l === void 0 ? uM : l, c = n.rootBoundary, u = c === void 0 ? Ug : c, d = n.elementContext, f = d === void 0 ? io : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, v = Zg(typeof g != "number" ? g : Xg(g, ts)), k = f === io ? dM : io, b = t.rects.popper, y = t.elements[p ? k : f], C = zM(ti(y) ? y : y.contextElement || Nr(t.elements.popper), a, u, s), w = Hi(t.elements.reference), T = e0({
21903
+ var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, l = n.boundary, a = l === void 0 ? u_ : l, c = n.rootBoundary, u = c === void 0 ? Ug : c, d = n.elementContext, f = d === void 0 ? io : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, v = Zg(typeof g != "number" ? g : Xg(g, ts)), k = f === io ? d_ : io, b = t.rects.popper, y = t.elements[p ? k : f], C = z_(ti(y) ? y : y.contextElement || Nr(t.elements.popper), a, u, s), w = Hi(t.elements.reference), T = e0({
21902
21904
  reference: w,
21903
21905
  element: b,
21904
21906
  placement: i
@@ -21917,7 +21919,7 @@ function jo(t, e) {
21917
21919
  }
21918
21920
  return B;
21919
21921
  }
21920
- function WM(t, e) {
21922
+ function W_(t, e) {
21921
21923
  e === void 0 && (e = {});
21922
21924
  var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, l = n.flipVariations, a = n.allowedAutoPlacements, c = a === void 0 ? Yg : a, u = zi(r), d = u ? l ? jf : jf.filter(function(p) {
21923
21925
  return zi(p) === u;
@@ -21937,17 +21939,17 @@ function WM(t, e) {
21937
21939
  return h[p] - h[m];
21938
21940
  });
21939
21941
  }
21940
- function UM(t) {
21942
+ function U_(t) {
21941
21943
  if (Nn(t) === au)
21942
21944
  return [];
21943
21945
  var e = Cs(t);
21944
21946
  return [Wf(t), e, Wf(e)];
21945
21947
  }
21946
- function YM(t) {
21948
+ function Y_(t) {
21947
21949
  var e = t.state, n = t.options, r = t.name;
21948
21950
  if (!e.modifiersData[r]._skip) {
21949
- for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, l = s === void 0 ? !0 : s, a = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, v = Nn(g), k = v === g, b = a || (k || !p ? [Cs(g)] : UM(g)), y = [g].concat(b).reduce(function(q, Z) {
21950
- return q.concat(Nn(Z) === au ? WM(e, {
21951
+ for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, l = s === void 0 ? !0 : s, a = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, v = Nn(g), k = v === g, b = a || (k || !p ? [Cs(g)] : U_(g)), y = [g].concat(b).reduce(function(q, Z) {
21952
+ return q.concat(Nn(Z) === au ? W_(e, {
21951
21953
  placement: Z,
21952
21954
  boundary: u,
21953
21955
  rootBoundary: d,
@@ -21991,11 +21993,11 @@ function YM(t) {
21991
21993
  e.placement !== A && (e.modifiersData[r]._skip = !0, e.placement = A, e.reset = !0);
21992
21994
  }
21993
21995
  }
21994
- const qM = {
21996
+ const q_ = {
21995
21997
  name: "flip",
21996
21998
  enabled: !0,
21997
21999
  phase: "main",
21998
- fn: YM,
22000
+ fn: Y_,
21999
22001
  requiresIfExists: ["offset"],
22000
22002
  data: {
22001
22003
  _skip: !1
@@ -22017,7 +22019,7 @@ function qf(t) {
22017
22019
  return t[e] >= 0;
22018
22020
  });
22019
22021
  }
22020
- function KM(t) {
22022
+ function K_(t) {
22021
22023
  var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, o = e.modifiersData.preventOverflow, s = jo(e, {
22022
22024
  elementContext: "reference"
22023
22025
  }), l = jo(e, {
@@ -22033,14 +22035,14 @@ function KM(t) {
22033
22035
  "data-popper-escaped": d
22034
22036
  });
22035
22037
  }
22036
- const GM = {
22038
+ const G_ = {
22037
22039
  name: "hide",
22038
22040
  enabled: !0,
22039
22041
  phase: "main",
22040
22042
  requiresIfExists: ["preventOverflow"],
22041
- fn: KM
22043
+ fn: K_
22042
22044
  };
22043
- function JM(t, e, n) {
22045
+ function J_(t, e, n) {
22044
22046
  var r = Nn(t), i = [Kt, qt].indexOf(r) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, {
22045
22047
  placement: t
22046
22048
  })) : n, s = o[0], l = o[1];
@@ -22052,20 +22054,20 @@ function JM(t, e, n) {
22052
22054
  y: l
22053
22055
  };
22054
22056
  }
22055
- function ZM(t) {
22057
+ function Z_(t) {
22056
22058
  var e = t.state, n = t.options, r = t.name, i = n.offset, o = i === void 0 ? [0, 0] : i, s = Yg.reduce(function(u, d) {
22057
- return u[d] = JM(d, e.rects, o), u;
22059
+ return u[d] = J_(d, e.rects, o), u;
22058
22060
  }, {}), l = s[e.placement], a = l.x, c = l.y;
22059
22061
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += a, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
22060
22062
  }
22061
- const XM = {
22063
+ const X_ = {
22062
22064
  name: "offset",
22063
22065
  enabled: !0,
22064
22066
  phase: "main",
22065
22067
  requires: ["popperOffsets"],
22066
- fn: ZM
22068
+ fn: Z_
22067
22069
  };
22068
- function QM(t) {
22070
+ function Q_(t) {
22069
22071
  var e = t.state, n = t.name;
22070
22072
  e.modifiersData[n] = e0({
22071
22073
  reference: e.rects.reference,
@@ -22077,7 +22079,7 @@ const eN = {
22077
22079
  name: "popperOffsets",
22078
22080
  enabled: !0,
22079
22081
  phase: "read",
22080
- fn: QM,
22082
+ fn: Q_,
22081
22083
  data: {}
22082
22084
  };
22083
22085
  function tN(t) {
@@ -22110,7 +22112,7 @@ function nN(t) {
22110
22112
  w[y] = Bt, I[y] = Bt - R;
22111
22113
  }
22112
22114
  if (l) {
22113
- var bt, wt = y === "x" ? qt : Kt, Et = y === "x" ? hn : pn, x = w[C], E = C === "y" ? "height" : "width", K = x + g[wt], fe = x - g[Et], We = [qt, Kt].indexOf(v) !== -1, Pe = (bt = P == null ? void 0 : P[C]) != null ? bt : 0, Re = We ? K : x - T[E] - $[E] - Pe + B.altAxis, H = We ? x + T[E] + $[E] - Pe - B.altAxis : fe, ee = h && We ? EM(Re, x, H) : go(h ? Re : K, x, h ? H : fe);
22115
+ var bt, wt = y === "x" ? qt : Kt, Et = y === "x" ? hn : pn, x = w[C], E = C === "y" ? "height" : "width", K = x + g[wt], fe = x - g[Et], We = [qt, Kt].indexOf(v) !== -1, Pe = (bt = P == null ? void 0 : P[C]) != null ? bt : 0, Re = We ? K : x - T[E] - $[E] - Pe + B.altAxis, H = We ? x + T[E] + $[E] - Pe - B.altAxis : fe, ee = h && We ? E_(Re, x, H) : go(h ? Re : K, x, h ? H : fe);
22114
22116
  w[C] = ee, I[C] = ee - x;
22115
22117
  }
22116
22118
  e.modifiersData[r] = I;
@@ -22174,7 +22176,7 @@ function aN(t) {
22174
22176
  }
22175
22177
  function cN(t) {
22176
22178
  var e = aN(t);
22177
- return kM.reduce(function(n, r) {
22179
+ return k_.reduce(function(n, r) {
22178
22180
  return n.concat(e.filter(function(i) {
22179
22181
  return i.phase === r;
22180
22182
  }));
@@ -22313,7 +22315,7 @@ function fN(t) {
22313
22315
  return h;
22314
22316
  };
22315
22317
  }
22316
- var hN = [PM, eN, IM, qg, XM, qM, rN, NM, GM], pN = /* @__PURE__ */ fN({
22318
+ var hN = [P_, eN, I_, qg, X_, q_, rN, N_, G_], pN = /* @__PURE__ */ fN({
22317
22319
  defaultModifiers: hN
22318
22320
  }), mN = "tippy-box", t0 = "tippy-content", gN = "tippy-backdrop", n0 = "tippy-arrow", r0 = "tippy-svg-arrow", $r = {
22319
22321
  passive: !0,
@@ -22441,14 +22443,14 @@ function eh(t, e) {
22441
22443
  var Tn = {
22442
22444
  isTouch: !1
22443
22445
  }, th = 0;
22444
- function _N() {
22446
+ function MN() {
22445
22447
  Tn.isTouch || (Tn.isTouch = !0, window.performance && document.addEventListener("mousemove", s0));
22446
22448
  }
22447
22449
  function s0() {
22448
22450
  var t = performance.now();
22449
22451
  t - th < 20 && (Tn.isTouch = !1, document.removeEventListener("mousemove", s0)), th = t;
22450
22452
  }
22451
- function MN() {
22453
+ function _N() {
22452
22454
  var t = document.activeElement;
22453
22455
  if (ON(t)) {
22454
22456
  var e = t._tippy;
@@ -22456,7 +22458,7 @@ function MN() {
22456
22458
  }
22457
22459
  }
22458
22460
  function NN() {
22459
- document.addEventListener("touchstart", _N, $r), window.addEventListener("blur", MN);
22461
+ document.addEventListener("touchstart", MN, $r), window.addEventListener("blur", _N);
22460
22462
  }
22461
22463
  var AN = typeof window < "u" && typeof document < "u", LN = AN ? (
22462
22464
  // @ts-ignore
@@ -22702,7 +22704,7 @@ function HN(t, e) {
22702
22704
  clearDelayTimeouts: Re,
22703
22705
  setProps: H,
22704
22706
  setContent: ee,
22705
- show: _,
22707
+ show: M,
22706
22708
  hide: N,
22707
22709
  hideWithInteractivity: G,
22708
22710
  enable: We,
@@ -22714,8 +22716,8 @@ function HN(t, e) {
22714
22716
  return process.env.NODE_ENV !== "production" && hc(!0, "render() function has not been supplied."), y;
22715
22717
  var C = n.render(y), w = C.popper, T = C.onUpdate;
22716
22718
  w.setAttribute("data-tippy-root", ""), w.id = "tippy-" + y.id, y.popper = w, t._tippy = y, w._tippy = y;
22717
- var $ = k.map(function(M) {
22718
- return M.fn(y);
22719
+ var $ = k.map(function(_) {
22720
+ return _.fn(y);
22719
22721
  }), A = t.hasAttribute("aria-expanded");
22720
22722
  return He(), oe(), R(), j("onCreate", [y]), n.showOnCreate && K(), w.addEventListener("mouseenter", function() {
22721
22723
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
@@ -22723,44 +22725,44 @@ function HN(t, e) {
22723
22725
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && z().addEventListener("mousemove", p);
22724
22726
  }), y;
22725
22727
  function B() {
22726
- var M = y.props.touch;
22727
- return Array.isArray(M) ? M : [M, 0];
22728
+ var _ = y.props.touch;
22729
+ return Array.isArray(_) ? _ : [_, 0];
22728
22730
  }
22729
22731
  function P() {
22730
22732
  return B()[0] === "hold";
22731
22733
  }
22732
22734
  function I() {
22733
- var M;
22734
- return !!((M = y.props.render) != null && M.$$tippy);
22735
+ var _;
22736
+ return !!((_ = y.props.render) != null && _.$$tippy);
22735
22737
  }
22736
22738
  function W() {
22737
22739
  return m || t;
22738
22740
  }
22739
22741
  function z() {
22740
- var M = W().parentNode;
22741
- return M ? EN(M) : document;
22742
+ var _ = W().parentNode;
22743
+ return _ ? EN(_) : document;
22742
22744
  }
22743
22745
  function D() {
22744
22746
  return mc(w);
22745
22747
  }
22746
- function O(M) {
22747
- return y.state.isMounted && !y.state.isVisible || Tn.isTouch || u && u.type === "focus" ? 0 : sa(y.props.delay, M ? 0 : 1, Xt.delay);
22748
+ function O(_) {
22749
+ return y.state.isMounted && !y.state.isVisible || Tn.isTouch || u && u.type === "focus" ? 0 : sa(y.props.delay, _ ? 0 : 1, Xt.delay);
22748
22750
  }
22749
- function R(M) {
22750
- M === void 0 && (M = !1), w.style.pointerEvents = y.props.interactive && !M ? "" : "none", w.style.zIndex = "" + y.props.zIndex;
22751
+ function R(_) {
22752
+ _ === void 0 && (_ = !1), w.style.pointerEvents = y.props.interactive && !_ ? "" : "none", w.style.zIndex = "" + y.props.zIndex;
22751
22753
  }
22752
- function j(M, te, ue) {
22754
+ function j(_, te, ue) {
22753
22755
  if (ue === void 0 && (ue = !0), $.forEach(function(Oe) {
22754
- Oe[M] && Oe[M].apply(Oe, te);
22756
+ Oe[_] && Oe[_].apply(Oe, te);
22755
22757
  }), ue) {
22756
22758
  var Se;
22757
- (Se = y.props)[M].apply(Se, te);
22759
+ (Se = y.props)[_].apply(Se, te);
22758
22760
  }
22759
22761
  }
22760
22762
  function ie() {
22761
- var M = y.props.aria;
22762
- if (M.content) {
22763
- var te = "aria-" + M.content, ue = w.id, Se = mi(y.props.triggerTarget || t);
22763
+ var _ = y.props.aria;
22764
+ if (_.content) {
22765
+ var te = "aria-" + _.content, ue = w.id, Se = mi(y.props.triggerTarget || t);
22764
22766
  Se.forEach(function(Oe) {
22765
22767
  var Le = Oe.getAttribute(te);
22766
22768
  if (y.state.isVisible)
@@ -22774,20 +22776,20 @@ function HN(t, e) {
22774
22776
  }
22775
22777
  function oe() {
22776
22778
  if (!(A || !y.props.aria.expanded)) {
22777
- var M = mi(y.props.triggerTarget || t);
22778
- M.forEach(function(te) {
22779
+ var _ = mi(y.props.triggerTarget || t);
22780
+ _.forEach(function(te) {
22779
22781
  y.props.interactive ? te.setAttribute("aria-expanded", y.state.isVisible && te === W() ? "true" : "false") : te.removeAttribute("aria-expanded");
22780
22782
  });
22781
22783
  }
22782
22784
  }
22783
22785
  function ge() {
22784
- z().removeEventListener("mousemove", p), vs = vs.filter(function(M) {
22785
- return M !== p;
22786
+ z().removeEventListener("mousemove", p), vs = vs.filter(function(_) {
22787
+ return _ !== p;
22786
22788
  });
22787
22789
  }
22788
- function be(M) {
22789
- if (!(Tn.isTouch && (a || M.type === "mousedown"))) {
22790
- var te = M.composedPath && M.composedPath()[0] || M.target;
22790
+ function be(_) {
22791
+ if (!(Tn.isTouch && (a || _.type === "mousedown"))) {
22792
+ var te = _.composedPath && _.composedPath()[0] || _.target;
22791
22793
  if (!(y.props.interactive && eh(w, te))) {
22792
22794
  if (mi(y.props.triggerTarget || t).some(function(ue) {
22793
22795
  return eh(ue, te);
@@ -22795,7 +22797,7 @@ function HN(t, e) {
22795
22797
  if (Tn.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
22796
22798
  return;
22797
22799
  } else
22798
- j("onClickOutside", [y, M]);
22800
+ j("onClickOutside", [y, _]);
22799
22801
  y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), l = !0, setTimeout(function() {
22800
22802
  l = !1;
22801
22803
  }), y.state.isMounted || J());
@@ -22809,37 +22811,37 @@ function HN(t, e) {
22809
22811
  a = !1;
22810
22812
  }
22811
22813
  function Z() {
22812
- var M = z();
22813
- M.addEventListener("mousedown", be, !0), M.addEventListener("touchend", be, $r), M.addEventListener("touchstart", q, $r), M.addEventListener("touchmove", V, $r);
22814
+ var _ = z();
22815
+ _.addEventListener("mousedown", be, !0), _.addEventListener("touchend", be, $r), _.addEventListener("touchstart", q, $r), _.addEventListener("touchmove", V, $r);
22814
22816
  }
22815
22817
  function J() {
22816
- var M = z();
22817
- M.removeEventListener("mousedown", be, !0), M.removeEventListener("touchend", be, $r), M.removeEventListener("touchstart", q, $r), M.removeEventListener("touchmove", V, $r);
22818
+ var _ = z();
22819
+ _.removeEventListener("mousedown", be, !0), _.removeEventListener("touchend", be, $r), _.removeEventListener("touchstart", q, $r), _.removeEventListener("touchmove", V, $r);
22818
22820
  }
22819
- function Y(M, te) {
22820
- me(M, function() {
22821
+ function Y(_, te) {
22822
+ me(_, function() {
22821
22823
  !y.state.isVisible && w.parentNode && w.parentNode.contains(w) && te();
22822
22824
  });
22823
22825
  }
22824
- function ye(M, te) {
22825
- me(M, te);
22826
+ function ye(_, te) {
22827
+ me(_, te);
22826
22828
  }
22827
- function me(M, te) {
22829
+ function me(_, te) {
22828
22830
  var ue = D().box;
22829
22831
  function Se(Oe) {
22830
22832
  Oe.target === ue && (aa(ue, "remove", Se), te());
22831
22833
  }
22832
- if (M === 0)
22834
+ if (_ === 0)
22833
22835
  return te();
22834
22836
  aa(ue, "remove", d), aa(ue, "add", Se), d = Se;
22835
22837
  }
22836
- function Ne(M, te, ue) {
22838
+ function Ne(_, te, ue) {
22837
22839
  ue === void 0 && (ue = !1);
22838
22840
  var Se = mi(y.props.triggerTarget || t);
22839
22841
  Se.forEach(function(Oe) {
22840
- Oe.addEventListener(M, te, ue), h.push({
22842
+ Oe.addEventListener(_, te, ue), h.push({
22841
22843
  node: Oe,
22842
- eventType: M,
22844
+ eventType: _,
22843
22845
  handler: te,
22844
22846
  options: ue
22845
22847
  });
@@ -22850,9 +22852,9 @@ function HN(t, e) {
22850
22852
  passive: !0
22851
22853
  }), Ne("touchend", De, {
22852
22854
  passive: !0
22853
- })), bN(y.props.trigger).forEach(function(M) {
22854
- if (M !== "manual")
22855
- switch (Ne(M, dt), M) {
22855
+ })), bN(y.props.trigger).forEach(function(_) {
22856
+ if (_ !== "manual")
22857
+ switch (Ne(_, dt), _) {
22856
22858
  case "mouseenter":
22857
22859
  Ne("mouseleave", De);
22858
22860
  break;
@@ -22866,23 +22868,23 @@ function HN(t, e) {
22866
22868
  });
22867
22869
  }
22868
22870
  function Je() {
22869
- h.forEach(function(M) {
22870
- var te = M.node, ue = M.eventType, Se = M.handler, Oe = M.options;
22871
+ h.forEach(function(_) {
22872
+ var te = _.node, ue = _.eventType, Se = _.handler, Oe = _.options;
22871
22873
  te.removeEventListener(ue, Se, Oe);
22872
22874
  }), h = [];
22873
22875
  }
22874
- function dt(M) {
22876
+ function dt(_) {
22875
22877
  var te, ue = !1;
22876
- if (!(!y.state.isEnabled || bt(M) || l)) {
22878
+ if (!(!y.state.isEnabled || bt(_) || l)) {
22877
22879
  var Se = ((te = u) == null ? void 0 : te.type) === "focus";
22878
- u = M, m = M.currentTarget, oe(), !y.state.isVisible && SN(M) && vs.forEach(function(Oe) {
22879
- return Oe(M);
22880
- }), M.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? ue = !0 : K(M), M.type === "click" && (s = !ue), ue && !Se && fe(M);
22880
+ u = _, m = _.currentTarget, oe(), !y.state.isVisible && SN(_) && vs.forEach(function(Oe) {
22881
+ return Oe(_);
22882
+ }), _.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? ue = !0 : K(_), _.type === "click" && (s = !ue), ue && !Se && fe(_);
22881
22883
  }
22882
22884
  }
22883
- function re(M) {
22884
- var te = M.target, ue = W().contains(te) || w.contains(te);
22885
- if (!(M.type === "mousemove" && ue)) {
22885
+ function re(_) {
22886
+ var te = _.target, ue = W().contains(te) || w.contains(te);
22887
+ if (!(_.type === "mousemove" && ue)) {
22886
22888
  var Se = E().concat(w).map(function(Oe) {
22887
22889
  var Le, Ue = Oe._tippy, it = (Le = Ue.popperInstance) == null ? void 0 : Le.state;
22888
22890
  return it ? {
@@ -22891,28 +22893,28 @@ function HN(t, e) {
22891
22893
  props: n
22892
22894
  } : null;
22893
22895
  }).filter(Boolean);
22894
- TN(Se, M) && (ge(), fe(M));
22896
+ TN(Se, _) && (ge(), fe(_));
22895
22897
  }
22896
22898
  }
22897
- function De(M) {
22898
- var te = bt(M) || y.props.trigger.indexOf("click") >= 0 && s;
22899
+ function De(_) {
22900
+ var te = bt(_) || y.props.trigger.indexOf("click") >= 0 && s;
22899
22901
  if (!te) {
22900
22902
  if (y.props.interactive) {
22901
- y.hideWithInteractivity(M);
22903
+ y.hideWithInteractivity(_);
22902
22904
  return;
22903
22905
  }
22904
- fe(M);
22906
+ fe(_);
22905
22907
  }
22906
22908
  }
22907
- function Bt(M) {
22908
- y.props.trigger.indexOf("focusin") < 0 && M.target !== W() || y.props.interactive && M.relatedTarget && w.contains(M.relatedTarget) || fe(M);
22909
+ function Bt(_) {
22910
+ y.props.trigger.indexOf("focusin") < 0 && _.target !== W() || y.props.interactive && _.relatedTarget && w.contains(_.relatedTarget) || fe(_);
22909
22911
  }
22910
- function bt(M) {
22911
- return Tn.isTouch ? P() !== M.type.indexOf("touch") >= 0 : !1;
22912
+ function bt(_) {
22913
+ return Tn.isTouch ? P() !== _.type.indexOf("touch") >= 0 : !1;
22912
22914
  }
22913
22915
  function wt() {
22914
22916
  Et();
22915
- var M = y.props, te = M.popperOptions, ue = M.placement, Se = M.offset, Oe = M.getReferenceClientRect, Le = M.moveTransition, Ue = I() ? mc(w).arrow : null, it = Oe ? {
22917
+ var _ = y.props, te = _.popperOptions, ue = _.placement, Se = _.offset, Oe = _.getReferenceClientRect, Le = _.moveTransition, Ue = I() ? mc(w).arrow : null, it = Oe ? {
22916
22918
  getBoundingClientRect: Oe,
22917
22919
  contextElement: Oe.contextElement || W()
22918
22920
  } : t, Lt = {
@@ -22971,8 +22973,8 @@ function HN(t, e) {
22971
22973
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
22972
22974
  }
22973
22975
  function x() {
22974
- var M = y.props.appendTo, te, ue = W();
22975
- y.props.interactive && M === i0 || M === "parent" ? te = ue.parentNode : te = o0(M, [ue]), te.contains(w) || te.appendChild(w), y.state.isMounted = !0, wt(), process.env.NODE_ENV !== "production" && Hn(y.props.interactive && M === Xt.appendTo && ue.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
22976
+ var _ = y.props.appendTo, te, ue = W();
22977
+ y.props.interactive && _ === i0 || _ === "parent" ? te = ue.parentNode : te = o0(_, [ue]), te.contains(w) || te.appendChild(w), y.state.isMounted = !0, wt(), process.env.NODE_ENV !== "production" && Hn(y.props.interactive && _ === Xt.appendTo && ue.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
22976
22978
 
22977
22979
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
22978
22980
 
@@ -22983,19 +22985,19 @@ function HN(t, e) {
22983
22985
  function E() {
22984
22986
  return tl(w.querySelectorAll("[data-tippy-root]"));
22985
22987
  }
22986
- function K(M) {
22987
- y.clearDelayTimeouts(), M && j("onTrigger", [y, M]), Z();
22988
+ function K(_) {
22989
+ y.clearDelayTimeouts(), _ && j("onTrigger", [y, _]), Z();
22988
22990
  var te = O(!0), ue = B(), Se = ue[0], Oe = ue[1];
22989
22991
  Tn.isTouch && Se === "hold" && Oe && (te = Oe), te ? r = setTimeout(function() {
22990
22992
  y.show();
22991
22993
  }, te) : y.show();
22992
22994
  }
22993
- function fe(M) {
22994
- if (y.clearDelayTimeouts(), j("onUntrigger", [y, M]), !y.state.isVisible) {
22995
+ function fe(_) {
22996
+ if (y.clearDelayTimeouts(), j("onUntrigger", [y, _]), !y.state.isVisible) {
22995
22997
  J();
22996
22998
  return;
22997
22999
  }
22998
- if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(M.type) >= 0 && s)) {
23000
+ if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(_.type) >= 0 && s)) {
22999
23001
  var te = O(!1);
23000
23002
  te ? i = setTimeout(function() {
23001
23003
  y.state.isVisible && y.hide();
@@ -23013,28 +23015,28 @@ function HN(t, e) {
23013
23015
  function Re() {
23014
23016
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
23015
23017
  }
23016
- function H(M) {
23018
+ function H(_) {
23017
23019
  if (process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("setProps")), !y.state.isDestroyed) {
23018
- j("onBeforeUpdate", [y, M]), Je();
23019
- var te = y.props, ue = rh(t, Object.assign({}, te, Xf(M), {
23020
+ j("onBeforeUpdate", [y, _]), Je();
23021
+ var te = y.props, ue = rh(t, Object.assign({}, te, Xf(_), {
23020
23022
  ignoreAttributes: !0
23021
23023
  }));
23022
23024
  y.props = ue, He(), te.interactiveDebounce !== ue.interactiveDebounce && (ge(), p = Jf(re, ue.interactiveDebounce)), te.triggerTarget && !ue.triggerTarget ? mi(te.triggerTarget).forEach(function(Se) {
23023
23025
  Se.removeAttribute("aria-expanded");
23024
23026
  }) : ue.triggerTarget && t.removeAttribute("aria-expanded"), oe(), R(), T && T(te, ue), y.popperInstance && (wt(), E().forEach(function(Se) {
23025
23027
  requestAnimationFrame(Se._tippy.popperInstance.forceUpdate);
23026
- })), j("onAfterUpdate", [y, M]);
23028
+ })), j("onAfterUpdate", [y, _]);
23027
23029
  }
23028
23030
  }
23029
- function ee(M) {
23031
+ function ee(_) {
23030
23032
  y.setProps({
23031
- content: M
23033
+ content: _
23032
23034
  });
23033
23035
  }
23034
- function _() {
23036
+ function M() {
23035
23037
  process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("show"));
23036
- var M = y.state.isVisible, te = y.state.isDestroyed, ue = !y.state.isEnabled, Se = Tn.isTouch && !y.props.touch, Oe = sa(y.props.duration, 0, Xt.duration);
23037
- if (!(M || te || ue || Se) && !W().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
23038
+ var _ = y.state.isVisible, te = y.state.isDestroyed, ue = !y.state.isEnabled, Se = Tn.isTouch && !y.props.touch, Oe = sa(y.props.duration, 0, Xt.duration);
23039
+ if (!(_ || te || ue || Se) && !W().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
23038
23040
  if (y.state.isVisible = !0, I() && (w.style.visibility = "visible"), R(), Z(), y.state.isMounted || (w.style.transition = "none"), I()) {
23039
23041
  var Le = D(), Ue = Le.box, it = Le.content;
23040
23042
  la([Ue, it], 0);
@@ -23055,8 +23057,8 @@ function HN(t, e) {
23055
23057
  }
23056
23058
  function N() {
23057
23059
  process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("hide"));
23058
- var M = !y.state.isVisible, te = y.state.isDestroyed, ue = !y.state.isEnabled, Se = sa(y.props.duration, 1, Xt.duration);
23059
- if (!(M || te || ue) && (j("onHide", [y], !1), y.props.onHide(y) !== !1)) {
23060
+ var _ = !y.state.isVisible, te = y.state.isDestroyed, ue = !y.state.isEnabled, Se = sa(y.props.duration, 1, Xt.duration);
23061
+ if (!(_ || te || ue) && (j("onHide", [y], !1), y.props.onHide(y) !== !1)) {
23060
23062
  if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, I() && (w.style.visibility = "hidden"), ge(), J(), R(!0), I()) {
23061
23063
  var Oe = D(), Le = Oe.box, Ue = Oe.content;
23062
23064
  y.props.animation && (la([Le, Ue], Se), Qf([Le, Ue], "hidden"));
@@ -23064,14 +23066,14 @@ function HN(t, e) {
23064
23066
  ie(), oe(), y.props.animation ? I() && Y(Se, y.unmount) : y.unmount();
23065
23067
  }
23066
23068
  }
23067
- function G(M) {
23068
- process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("hideWithInteractivity")), z().addEventListener("mousemove", p), Zf(vs, p), p(M);
23069
+ function G(_) {
23070
+ process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("hideWithInteractivity")), z().addEventListener("mousemove", p), Zf(vs, p), p(_);
23069
23071
  }
23070
23072
  function le() {
23071
- process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Et(), E().forEach(function(M) {
23072
- M._tippy.unmount();
23073
- }), w.parentNode && w.parentNode.removeChild(w), ca = ca.filter(function(M) {
23074
- return M !== y;
23073
+ process.env.NODE_ENV !== "production" && Hn(y.state.isDestroyed, di("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Et(), E().forEach(function(_) {
23074
+ _._tippy.unmount();
23075
+ }), w.parentNode && w.parentNode.removeChild(w), ca = ca.filter(function(_) {
23076
+ return _ !== y;
23075
23077
  }), y.state.isMounted = !1, j("onHidden", [y]));
23076
23078
  }
23077
23079
  function we() {
@@ -23168,7 +23170,7 @@ class zN {
23168
23170
  }
23169
23171
  (f = this.tippy) === null || f === void 0 || f.setProps({
23170
23172
  getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
23171
- if (D_(p.selection)) {
23173
+ if (DM(p.selection)) {
23172
23174
  let w = l.nodeDOM(b);
23173
23175
  const T = w.dataset.nodeViewWrapper ? w : w.querySelector("[data-node-view-wrapper]");
23174
23176
  if (T && (w = T.firstChild), w)
@@ -23391,7 +23393,7 @@ function sh(t) {
23391
23393
  }
23392
23394
  }));
23393
23395
  }
23394
- class UN extends cM {
23396
+ class UN extends c_ {
23395
23397
  constructor(e = {}) {
23396
23398
  return super(e), this.vueRenderers = vr(/* @__PURE__ */ new Map()), this.contentComponent = null, this.reactiveState = sh(this.view.state), this.reactiveExtensionStorage = sh(this.extensionStorage), this.on("transaction", () => {
23397
23399
  this.reactiveState.value = this.view.state, this.reactiveExtensionStorage.value = this.extensionStorage;
@@ -23428,7 +23430,7 @@ const YN = xn({
23428
23430
  const e = se(), n = dn();
23429
23431
  return kh(() => {
23430
23432
  const r = t.editor;
23431
- r && r.options.element && e.value && _t(() => {
23433
+ r && r.options.element && e.value && Mt(() => {
23432
23434
  if (!e.value || !r.options.element.firstChild)
23433
23435
  return;
23434
23436
  const i = U(e.value);
@@ -23705,7 +23707,7 @@ const qN = (t = {}) => {
23705
23707
  addCommands() {
23706
23708
  return {
23707
23709
  removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
23708
- const n = _l(t, this.type);
23710
+ const n = Ml(t, this.type);
23709
23711
  return Object.entries(n).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name);
23710
23712
  }
23711
23713
  };
@@ -23923,7 +23925,7 @@ const qN = (t = {}) => {
23923
23925
  if (!n || !o)
23924
23926
  return !1;
23925
23927
  const { tr: s } = t.state;
23926
- return t.state.selection.from === t.state.doc.nodeSize - (1 + t.state.selection.$to.depth * 2) ? s.insert(t.state.selection.from - 1, this.type.create({ language: o })) : s.replaceSelectionWith(this.type.create({ language: o })), s.setSelection(_e.near(s.doc.resolve(Math.max(0, s.selection.from - 2)))), s.insertText(n.replace(/\r\n?/g, `
23928
+ return t.state.selection.from === t.state.doc.nodeSize - (1 + t.state.selection.$to.depth * 2) ? s.insert(t.state.selection.from - 1, this.type.create({ language: o })) : s.replaceSelectionWith(this.type.create({ language: o })), s.setSelection(Me.near(s.doc.resolve(Math.max(0, s.selection.from - 2)))), s.insertText(n.replace(/\r\n?/g, `
23927
23929
  `)), s.setMeta("paste", !0), t.dispatch(s), !0;
23928
23930
  }
23929
23931
  }
@@ -24186,7 +24188,7 @@ function bs(t, e) {
24186
24188
  const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
24187
24189
  return function(r, i, o) {
24188
24190
  let s = r.selection, l = e > 0 ? s.$to : s.$from, a = s.empty;
24189
- if (s instanceof _e) {
24191
+ if (s instanceof Me) {
24190
24192
  if (!o.endOfTextblock(n) || l.depth == 0)
24191
24193
  return !1;
24192
24194
  a = !1, l = r.doc.resolve(e > 0 ? l.after() : l.before());
@@ -24214,7 +24216,7 @@ function vA(t, e) {
24214
24216
  for (let s = r.length - 1; s >= 0; s--)
24215
24217
  i = Q.from(r[s].createAndFill(null, i));
24216
24218
  let o = t.state.tr.replace(n.pos, n.pos, new de(i, 0, 0));
24217
- return o.setSelection(_e.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
24219
+ return o.setSelection(Me.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
24218
24220
  }
24219
24221
  function bA(t) {
24220
24222
  if (!(t.selection instanceof nt))
@@ -24586,11 +24588,11 @@ function TA(t, e, n, r) {
24586
24588
  if (s && s.getMeta(qr))
24587
24589
  return s.getMeta(qr).redo ? new sr(t.done.addTransform(n, void 0, r, Es(e)), t.undone, ch(n.mapping.maps), t.prevTime, t.prevComposition) : new sr(t.done, t.undone.addTransform(n, void 0, r, Es(e)), null, t.prevTime, t.prevComposition);
24588
24590
  if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
24589
- let l = n.getMeta("composition"), a = t.prevTime == 0 || !s && t.prevComposition != l && (t.prevTime < (n.time || 0) - r.newGroupDelay || !_A(n, t.prevRanges)), c = s ? ua(t.prevRanges, n.mapping) : ch(n.mapping.maps);
24591
+ let l = n.getMeta("composition"), a = t.prevTime == 0 || !s && t.prevComposition != l && (t.prevTime < (n.time || 0) - r.newGroupDelay || !MA(n, t.prevRanges)), c = s ? ua(t.prevRanges, n.mapping) : ch(n.mapping.maps);
24590
24592
  return new sr(t.done.addTransform(n, a ? e.selection.getBookmark() : void 0, r, Es(e)), gn.empty, c, n.time, l ?? t.prevComposition);
24591
24593
  } else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), ua(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), ua(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
24592
24594
  }
24593
- function _A(t, e) {
24595
+ function MA(t, e) {
24594
24596
  if (!e)
24595
24597
  return !1;
24596
24598
  if (!t.docChanged)
@@ -24617,7 +24619,7 @@ function ua(t, e) {
24617
24619
  }
24618
24620
  return n;
24619
24621
  }
24620
- function MA(t, e, n) {
24622
+ function _A(t, e, n) {
24621
24623
  let r = Es(e), i = qr.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
24622
24624
  if (!o)
24623
24625
  return null;
@@ -24669,7 +24671,7 @@ function m0(t, e) {
24669
24671
  if (!i || (t ? i.undone : i.done).eventCount == 0)
24670
24672
  return !1;
24671
24673
  if (r) {
24672
- let o = MA(i, n, t);
24674
+ let o = _A(i, n, t);
24673
24675
  o && r(e ? o.scrollIntoView() : o);
24674
24676
  }
24675
24677
  return !0;
@@ -24727,10 +24729,10 @@ const g0 = m0(!1, !0), y0 = m0(!0, !0), LA = ct.create({
24727
24729
  if (o) {
24728
24730
  const { $to: l } = i.selection, a = l.end();
24729
24731
  if (l.nodeAfter)
24730
- l.nodeAfter.isTextblock ? i.setSelection(_e.create(i.doc, l.pos + 1)) : l.nodeAfter.isBlock ? i.setSelection(xe.create(i.doc, l.pos)) : i.setSelection(_e.create(i.doc, l.pos));
24732
+ l.nodeAfter.isTextblock ? i.setSelection(Me.create(i.doc, l.pos + 1)) : l.nodeAfter.isBlock ? i.setSelection(xe.create(i.doc, l.pos)) : i.setSelection(Me.create(i.doc, l.pos));
24731
24733
  else {
24732
24734
  const c = (s = l.parent.type.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.create();
24733
- c && (i.insert(a, c), i.setSelection(_e.create(i.doc, a + 1)));
24735
+ c && (i.insert(a, c), i.setSelection(Me.create(i.doc, a + 1)));
24734
24736
  }
24735
24737
  i.scrollIntoView();
24736
24738
  }
@@ -24885,7 +24887,7 @@ const g0 = m0(!1, !0), y0 = m0(!0, !0), LA = ct.create({
24885
24887
  addCommands() {
24886
24888
  return {
24887
24889
  removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
24888
- const n = _l(t, this.type);
24890
+ const n = Ml(t, this.type);
24889
24891
  return Object.entries(n).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name);
24890
24892
  }
24891
24893
  };
@@ -25312,7 +25314,7 @@ const JA = ct.create({
25312
25314
  function o3(t, e) {
25313
25315
  return S(), L("svg", n3, i3);
25314
25316
  }
25315
- const s3 = /* @__PURE__ */ Me(t3, [["render", o3]]), l3 = {}, a3 = {
25317
+ const s3 = /* @__PURE__ */ _e(t3, [["render", o3]]), l3 = {}, a3 = {
25316
25318
  xmlns: "http://www.w3.org/2000/svg",
25317
25319
  viewBox: "0 0 16 16",
25318
25320
  fill: "currentColor"
@@ -25322,7 +25324,7 @@ const s3 = /* @__PURE__ */ Me(t3, [["render", o3]]), l3 = {}, a3 = {
25322
25324
  function d3(t, e) {
25323
25325
  return S(), L("svg", a3, u3);
25324
25326
  }
25325
- const f3 = /* @__PURE__ */ Me(l3, [["render", d3]]), h3 = {}, p3 = {
25327
+ const f3 = /* @__PURE__ */ _e(l3, [["render", d3]]), h3 = {}, p3 = {
25326
25328
  xmlns: "http://www.w3.org/2000/svg",
25327
25329
  viewBox: "0 0 16 16",
25328
25330
  fill: "currentColor"
@@ -25336,7 +25338,7 @@ const f3 = /* @__PURE__ */ Me(l3, [["render", d3]]), h3 = {}, p3 = {
25336
25338
  function y3(t, e) {
25337
25339
  return S(), L("svg", p3, g3);
25338
25340
  }
25339
- const v3 = /* @__PURE__ */ Me(h3, [["render", y3]]), b3 = {}, w3 = {
25341
+ const v3 = /* @__PURE__ */ _e(h3, [["render", y3]]), b3 = {}, w3 = {
25340
25342
  xmlns: "http://www.w3.org/2000/svg",
25341
25343
  viewBox: "0 0 16 16",
25342
25344
  fill: "currentColor"
@@ -25350,7 +25352,7 @@ const v3 = /* @__PURE__ */ Me(h3, [["render", y3]]), b3 = {}, w3 = {
25350
25352
  function S3(t, e) {
25351
25353
  return S(), L("svg", w3, x3);
25352
25354
  }
25353
- const O3 = /* @__PURE__ */ Me(b3, [["render", S3]]), C3 = {}, E3 = {
25355
+ const O3 = /* @__PURE__ */ _e(b3, [["render", S3]]), C3 = {}, E3 = {
25354
25356
  fill: "currentColor",
25355
25357
  width: "800px",
25356
25358
  height: "800px",
@@ -25359,13 +25361,13 @@ const O3 = /* @__PURE__ */ Me(b3, [["render", S3]]), C3 = {}, E3 = {
25359
25361
  }, T3 = /* @__PURE__ */ F("path", {
25360
25362
  d: "M754.429 0v274.423h235.885L647.457 1645.85H343V1920h822.994v-274.149H930.11l342.857-1371.428h304.32V0z",
25361
25363
  "fill-rule": "evenodd"
25362
- }, null, -1), _3 = [
25364
+ }, null, -1), M3 = [
25363
25365
  T3
25364
25366
  ];
25365
- function M3(t, e) {
25366
- return S(), L("svg", E3, _3);
25367
+ function _3(t, e) {
25368
+ return S(), L("svg", E3, M3);
25367
25369
  }
25368
- const N3 = /* @__PURE__ */ Me(C3, [["render", M3]]), A3 = {}, L3 = {
25370
+ const N3 = /* @__PURE__ */ _e(C3, [["render", _3]]), A3 = {}, L3 = {
25369
25371
  fill: "currentColor",
25370
25372
  viewBox: "0 0 1920 1920",
25371
25373
  xmlns: "http://www.w3.org/2000/svg"
@@ -25378,7 +25380,7 @@ const N3 = /* @__PURE__ */ Me(C3, [["render", M3]]), A3 = {}, L3 = {
25378
25380
  function $3(t, e) {
25379
25381
  return S(), L("svg", L3, I3);
25380
25382
  }
25381
- const P3 = /* @__PURE__ */ Me(A3, [["render", $3]]), R3 = {}, V3 = {
25383
+ const P3 = /* @__PURE__ */ _e(A3, [["render", $3]]), R3 = {}, V3 = {
25382
25384
  fill: "currentColor",
25383
25385
  version: "1.1",
25384
25386
  id: "Capa_1",
@@ -25401,7 +25403,7 @@ const P3 = /* @__PURE__ */ Me(A3, [["render", $3]]), R3 = {}, V3 = {
25401
25403
  function j3(t, e) {
25402
25404
  return S(), L("svg", V3, F3);
25403
25405
  }
25404
- const H3 = /* @__PURE__ */ Me(R3, [["render", j3]]), z3 = {}, W3 = {
25406
+ const H3 = /* @__PURE__ */ _e(R3, [["render", j3]]), z3 = {}, W3 = {
25405
25407
  viewBox: "0 0 24 24",
25406
25408
  version: "1.1",
25407
25409
  xmlns: "http://www.w3.org/2000/svg",
@@ -25413,7 +25415,7 @@ const H3 = /* @__PURE__ */ Me(R3, [["render", j3]]), z3 = {}, W3 = {
25413
25415
  function q3(t, e) {
25414
25416
  return S(), L("svg", W3, Y3);
25415
25417
  }
25416
- const K3 = /* @__PURE__ */ Me(z3, [["render", q3]]), G3 = {}, J3 = {
25418
+ const K3 = /* @__PURE__ */ _e(z3, [["render", q3]]), G3 = {}, J3 = {
25417
25419
  viewBox: "0 0 24 24",
25418
25420
  version: "1.1",
25419
25421
  xmlns: "http://www.w3.org/2000/svg",
@@ -25425,7 +25427,7 @@ const K3 = /* @__PURE__ */ Me(z3, [["render", q3]]), G3 = {}, J3 = {
25425
25427
  function Q3(t, e) {
25426
25428
  return S(), L("svg", J3, X3);
25427
25429
  }
25428
- const eL = /* @__PURE__ */ Me(G3, [["render", Q3]]), tL = {}, nL = {
25430
+ const eL = /* @__PURE__ */ _e(G3, [["render", Q3]]), tL = {}, nL = {
25429
25431
  viewBox: "0 0 24 24",
25430
25432
  version: "1.1",
25431
25433
  xmlns: "http://www.w3.org/2000/svg",
@@ -25437,7 +25439,7 @@ const eL = /* @__PURE__ */ Me(G3, [["render", Q3]]), tL = {}, nL = {
25437
25439
  function oL(t, e) {
25438
25440
  return S(), L("svg", nL, iL);
25439
25441
  }
25440
- const sL = /* @__PURE__ */ Me(tL, [["render", oL]]), lL = {}, aL = {
25442
+ const sL = /* @__PURE__ */ _e(tL, [["render", oL]]), lL = {}, aL = {
25441
25443
  xmlns: "http://www.w3.org/2000/svg",
25442
25444
  viewBox: "0 0 16 16",
25443
25445
  fill: "currentColor"
@@ -25451,7 +25453,7 @@ const sL = /* @__PURE__ */ Me(tL, [["render", oL]]), lL = {}, aL = {
25451
25453
  function dL(t, e) {
25452
25454
  return S(), L("svg", aL, uL);
25453
25455
  }
25454
- const fL = /* @__PURE__ */ Me(lL, [["render", dL]]), hL = {}, pL = {
25456
+ const fL = /* @__PURE__ */ _e(lL, [["render", dL]]), hL = {}, pL = {
25455
25457
  xmlns: "http://www.w3.org/2000/svg",
25456
25458
  viewBox: "0 0 16 16",
25457
25459
  fill: "currentColor"
@@ -25465,7 +25467,7 @@ const fL = /* @__PURE__ */ Me(lL, [["render", dL]]), hL = {}, pL = {
25465
25467
  function yL(t, e) {
25466
25468
  return S(), L("svg", pL, gL);
25467
25469
  }
25468
- const vL = /* @__PURE__ */ Me(hL, [["render", yL]]), bL = {}, wL = {
25470
+ const vL = /* @__PURE__ */ _e(hL, [["render", yL]]), bL = {}, wL = {
25469
25471
  xmlns: "http://www.w3.org/2000/svg",
25470
25472
  viewBox: "0 0 16 16",
25471
25473
  fill: "currentColor"
@@ -25479,7 +25481,7 @@ const vL = /* @__PURE__ */ Me(hL, [["render", yL]]), bL = {}, wL = {
25479
25481
  function SL(t, e) {
25480
25482
  return S(), L("svg", wL, xL);
25481
25483
  }
25482
- const OL = /* @__PURE__ */ Me(bL, [["render", SL]]), CL = {}, EL = {
25484
+ const OL = /* @__PURE__ */ _e(bL, [["render", SL]]), CL = {}, EL = {
25483
25485
  xmlns: "http://www.w3.org/2000/svg",
25484
25486
  viewBox: "0 0 16 16",
25485
25487
  fill: "currentColor"
@@ -25487,13 +25489,13 @@ const OL = /* @__PURE__ */ Me(bL, [["render", SL]]), CL = {}, EL = {
25487
25489
  "fill-rule": "evenodd",
25488
25490
  d: "M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
25489
25491
  "clip-rule": "evenodd"
25490
- }, null, -1), _L = [
25492
+ }, null, -1), ML = [
25491
25493
  TL
25492
25494
  ];
25493
- function ML(t, e) {
25494
- return S(), L("svg", EL, _L);
25495
+ function _L(t, e) {
25496
+ return S(), L("svg", EL, ML);
25495
25497
  }
25496
- const NL = /* @__PURE__ */ Me(CL, [["render", ML]]), AL = {}, LL = {
25498
+ const NL = /* @__PURE__ */ _e(CL, [["render", _L]]), AL = {}, LL = {
25497
25499
  xmlns: "http://www.w3.org/2000/svg",
25498
25500
  viewBox: "0 0 16 16",
25499
25501
  fill: "currentColor"
@@ -25507,7 +25509,7 @@ const NL = /* @__PURE__ */ Me(CL, [["render", ML]]), AL = {}, LL = {
25507
25509
  function $L(t, e) {
25508
25510
  return S(), L("svg", LL, IL);
25509
25511
  }
25510
- const PL = /* @__PURE__ */ Me(AL, [["render", $L]]), RL = {}, VL = {
25512
+ const PL = /* @__PURE__ */ _e(AL, [["render", $L]]), RL = {}, VL = {
25511
25513
  xmlns: "http://www.w3.org/2000/svg",
25512
25514
  viewBox: "0 0 16 16",
25513
25515
  fill: "currentColor"
@@ -25521,7 +25523,7 @@ const PL = /* @__PURE__ */ Me(AL, [["render", $L]]), RL = {}, VL = {
25521
25523
  function jL(t, e) {
25522
25524
  return S(), L("svg", VL, FL);
25523
25525
  }
25524
- const HL = /* @__PURE__ */ Me(RL, [["render", jL]]), zL = {}, WL = {
25526
+ const HL = /* @__PURE__ */ _e(RL, [["render", jL]]), zL = {}, WL = {
25525
25527
  fill: "currentColor",
25526
25528
  viewBox: "0 0 24 24",
25527
25529
  xmlns: "http://www.w3.org/2000/svg"
@@ -25542,7 +25544,7 @@ const HL = /* @__PURE__ */ Me(RL, [["render", jL]]), zL = {}, WL = {
25542
25544
  function GL(t, e) {
25543
25545
  return S(), L("svg", WL, KL);
25544
25546
  }
25545
- const JL = /* @__PURE__ */ Me(zL, [["render", GL]]), ZL = { class: "py-1 px-1 border-b dark:border-gray-900 dark:bg-gray-810" }, XL = { class: "flex gap-px" }, QL = ["onClick"], eD = {
25547
+ const JL = /* @__PURE__ */ _e(zL, [["render", GL]]), ZL = { class: "py-1 px-1 border-b dark:border-gray-900 dark:bg-gray-810" }, XL = { class: "flex gap-px" }, QL = ["onClick"], eD = {
25546
25548
  key: 1,
25547
25549
  class: "text-sm"
25548
25550
  }, tD = {
@@ -25699,7 +25701,7 @@ const JL = /* @__PURE__ */ Me(zL, [["render", GL]]), ZL = { class: "py-1 px-1 bo
25699
25701
  function lD(t, e) {
25700
25702
  return S(), L("svg", iD, sD);
25701
25703
  }
25702
- const aD = /* @__PURE__ */ Me(rD, [["render", lD]]), cD = {}, uD = {
25704
+ const aD = /* @__PURE__ */ _e(rD, [["render", lD]]), cD = {}, uD = {
25703
25705
  xmlns: "http://www.w3.org/2000/svg",
25704
25706
  viewBox: "0 0 24 24",
25705
25707
  fill: "none",
@@ -25719,7 +25721,7 @@ const aD = /* @__PURE__ */ Me(rD, [["render", lD]]), cD = {}, uD = {
25719
25721
  function hD(t, e) {
25720
25722
  return S(), L("svg", uD, fD);
25721
25723
  }
25722
- const pD = /* @__PURE__ */ Me(cD, [["render", hD]]), mD = {}, gD = {
25724
+ const pD = /* @__PURE__ */ _e(cD, [["render", hD]]), mD = {}, gD = {
25723
25725
  xmlns: "http://www.w3.org/2000/svg",
25724
25726
  viewBox: "0 0 24 24",
25725
25727
  fill: "none"
@@ -25756,7 +25758,7 @@ const pD = /* @__PURE__ */ Me(cD, [["render", hD]]), mD = {}, gD = {
25756
25758
  function kD(t, e) {
25757
25759
  return S(), L("svg", gD, wD);
25758
25760
  }
25759
- const xD = /* @__PURE__ */ Me(mD, [["render", kD]]), SD = { class: "flex-1" }, OD = {
25761
+ const xD = /* @__PURE__ */ _e(mD, [["render", kD]]), SD = { class: "flex-1" }, OD = {
25760
25762
  name: "WpicBadge"
25761
25763
  }, CD = /* @__PURE__ */ Object.assign(OD, {
25762
25764
  props: {
@@ -26169,7 +26171,7 @@ var TD = { exports: {} };
26169
26171
  return i.default.locale(o, null, !0), o;
26170
26172
  });
26171
26173
  })(TD);
26172
- var _D = { exports: {} };
26174
+ var MD = { exports: {} };
26173
26175
  (function(t, e) {
26174
26176
  (function(n, r) {
26175
26177
  t.exports = r(Nl());
@@ -26184,8 +26186,8 @@ var _D = { exports: {} };
26184
26186
  }, relativeTime: { future: "%s後", past: "%s前", s: "数秒", m: "1分", mm: "%d分", h: "1時間", hh: "%d時間", d: "1日", dd: "%d日", M: "1ヶ月", MM: "%dヶ月", y: "1年", yy: "%d年" } };
26185
26187
  return i.default.locale(o, null, !0), o;
26186
26188
  });
26187
- })(_D);
26188
- var MD = { exports: {} };
26189
+ })(MD);
26190
+ var _D = { exports: {} };
26189
26191
  (function(t, e) {
26190
26192
  (function(n, r) {
26191
26193
  t.exports = r(Nl());
@@ -26200,7 +26202,7 @@ var MD = { exports: {} };
26200
26202
  }, relativeTime: { future: "%s 후", past: "%s 전", s: "몇 초", m: "1분", mm: "%d분", h: "한 시간", hh: "%d시간", d: "하루", dd: "%d일", M: "한 달", MM: "%d달", y: "일 년", yy: "%d년" } };
26201
26203
  return i.default.locale(o, null, !0), o;
26202
26204
  });
26203
- })(MD);
26205
+ })(_D);
26204
26206
  var v0 = { exports: {} };
26205
26207
  (function(t, e) {
26206
26208
  (function(n, r) {
@@ -26553,7 +26555,7 @@ const DD = /* @__PURE__ */ yu(LD), ID = { class: "w-full dark:text-gray-400" },
26553
26555
  function GD(t, e) {
26554
26556
  return S(), L("svg", YD, KD);
26555
26557
  }
26556
- const w0 = /* @__PURE__ */ Me(UD, [["render", GD]]), JD = {}, ZD = {
26558
+ const w0 = /* @__PURE__ */ _e(UD, [["render", GD]]), JD = {}, ZD = {
26557
26559
  xmlns: "http://www.w3.org/2000/svg",
26558
26560
  fill: "none",
26559
26561
  viewBox: "0 0 24 24",
@@ -26569,7 +26571,7 @@ const w0 = /* @__PURE__ */ Me(UD, [["render", GD]]), JD = {}, ZD = {
26569
26571
  function eI(t, e) {
26570
26572
  return S(), L("svg", ZD, QD);
26571
26573
  }
26572
- const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3" }, nI = {
26574
+ const k0 = /* @__PURE__ */ _e(JD, [["render", eI]]), tI = { class: "flex gap-3" }, nI = {
26573
26575
  key: 0,
26574
26576
  class: "w-32 py-2 border-r dark:border-gray-800 flex flex-col gap-3 shrink-0"
26575
26577
  }, rI = ["onClick"], iI = {
@@ -26700,7 +26702,7 @@ const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3"
26700
26702
  const n = t, r = e, i = se(null), o = ae(() => n.segment === "year" ? 4 : 2);
26701
26703
  function s(a) {
26702
26704
  const c = a.target.value.replace(/\D/g, "");
26703
- r("update:modelValue", c.slice(0, o.value)), c.length >= o.value && n.nextRef && _t(() => {
26705
+ r("update:modelValue", c.slice(0, o.value)), c.length >= o.value && n.nextRef && Mt(() => {
26704
26706
  n.nextRef.focus();
26705
26707
  });
26706
26708
  }
@@ -27136,7 +27138,7 @@ const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3"
27136
27138
  }
27137
27139
  }), EI = ["onClick"], TI = {
27138
27140
  name: "WpicTabs"
27139
- }, _I = /* @__PURE__ */ Object.assign(TI, {
27141
+ }, MI = /* @__PURE__ */ Object.assign(TI, {
27140
27142
  props: {
27141
27143
  modelValue: {
27142
27144
  type: String,
@@ -27190,9 +27192,9 @@ const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3"
27190
27192
  ])
27191
27193
  ], 64));
27192
27194
  }
27193
- }), MI = {
27195
+ }), _I = {
27194
27196
  name: "WpicTabPane"
27195
- }, NI = /* @__PURE__ */ Object.assign(MI, {
27197
+ }, NI = /* @__PURE__ */ Object.assign(_I, {
27196
27198
  props: {
27197
27199
  label: {
27198
27200
  type: String,
@@ -27243,7 +27245,7 @@ const k0 = /* @__PURE__ */ Me(JD, [["render", eI]]), tI = { class: "flex gap-3"
27243
27245
  function $I(t, e) {
27244
27246
  return S(), L("svg", LI, II);
27245
27247
  }
27246
- const PI = /* @__PURE__ */ Me(AI, [["render", $I]]), RI = {}, VI = {
27248
+ const PI = /* @__PURE__ */ _e(AI, [["render", $I]]), RI = {}, VI = {
27247
27249
  xmlns: "http://www.w3.org/2000/svg",
27248
27250
  fill: "none",
27249
27251
  viewBox: "0 0 24 24",
@@ -27259,7 +27261,7 @@ const PI = /* @__PURE__ */ Me(AI, [["render", $I]]), RI = {}, VI = {
27259
27261
  function jI(t, e) {
27260
27262
  return S(), L("svg", VI, FI);
27261
27263
  }
27262
- const HI = /* @__PURE__ */ Me(RI, [["render", jI]]), zI = {}, WI = {
27264
+ const HI = /* @__PURE__ */ _e(RI, [["render", jI]]), zI = {}, WI = {
27263
27265
  xmlns: "http://www.w3.org/2000/svg",
27264
27266
  fill: "none",
27265
27267
  viewBox: "0 0 24 24",
@@ -27275,7 +27277,7 @@ const HI = /* @__PURE__ */ Me(RI, [["render", jI]]), zI = {}, WI = {
27275
27277
  function qI(t, e) {
27276
27278
  return S(), L("svg", WI, YI);
27277
27279
  }
27278
- const KI = /* @__PURE__ */ Me(zI, [["render", qI]]), GI = {}, JI = {
27280
+ const KI = /* @__PURE__ */ _e(zI, [["render", qI]]), GI = {}, JI = {
27279
27281
  xmlns: "http://www.w3.org/2000/svg",
27280
27282
  fill: "none",
27281
27283
  viewBox: "0 0 24 24",
@@ -27291,15 +27293,15 @@ const KI = /* @__PURE__ */ Me(zI, [["render", qI]]), GI = {}, JI = {
27291
27293
  function QI(t, e) {
27292
27294
  return S(), L("svg", JI, XI);
27293
27295
  }
27294
- const e$ = /* @__PURE__ */ Me(GI, [["render", QI]]), t$ = {
27296
+ const e7 = /* @__PURE__ */ _e(GI, [["render", QI]]), t7 = {
27295
27297
  key: 0,
27296
27298
  class: "w-6 opacity-50"
27297
- }, n$ = { class: "flex-1" }, r$ = {
27299
+ }, n7 = { class: "flex-1" }, r7 = {
27298
27300
  key: 0,
27299
27301
  class: "mb-2"
27300
- }, i$ = {
27302
+ }, i7 = {
27301
27303
  name: "WpicAlert"
27302
- }, o$ = /* @__PURE__ */ Object.assign(i$, {
27304
+ }, o7 = /* @__PURE__ */ Object.assign(i7, {
27303
27305
  props: {
27304
27306
  title: String,
27305
27307
  text: String,
@@ -27320,7 +27322,7 @@ const e$ = /* @__PURE__ */ Me(GI, [["render", QI]]), t$ = {
27320
27322
  "pl-6": !t.warning && !t.info && !t.success && !t.error
27321
27323
  }])
27322
27324
  }, [
27323
- t.warning || t.info || t.success || t.error ? (S(), L("div", t$, [
27325
+ t.warning || t.info || t.success || t.error ? (S(), L("div", t7, [
27324
27326
  t.warning ? (S(), Te(PI, {
27325
27327
  key: 0,
27326
27328
  class: "w-full aspect-square"
@@ -27330,13 +27332,13 @@ const e$ = /* @__PURE__ */ Me(GI, [["render", QI]]), t$ = {
27330
27332
  })) : t.success ? (S(), Te(KI, {
27331
27333
  key: 2,
27332
27334
  class: "w-full aspect-square"
27333
- })) : t.error ? (S(), Te(e$, {
27335
+ })) : t.error ? (S(), Te(e7, {
27334
27336
  key: 3,
27335
27337
  class: "w-full aspect-square"
27336
27338
  })) : ce("", !0)
27337
27339
  ])) : ce("", !0),
27338
- F("div", n$, [
27339
- t.title ? (S(), L("div", r$, Ee(t.title), 1)) : ce("", !0),
27340
+ F("div", n7, [
27341
+ t.title ? (S(), L("div", r7, Ee(t.title), 1)) : ce("", !0),
27340
27342
  F("span", {
27341
27343
  class: ne(["", {
27342
27344
  "": !t.warning && !t.info && !t.error && !t.success,
@@ -27381,19 +27383,19 @@ function x0() {
27381
27383
  blur: vh
27382
27384
  };
27383
27385
  }
27384
- const s$ = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, l$ = { class: "text-lg font-semibold mb-6" }, a$ = { class: "mb-12" }, c$ = { class: "flex justify-end" }, u$ = {
27386
+ const s7 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, l7 = { class: "text-lg font-semibold mb-6" }, a7 = { class: "mb-12" }, c7 = { class: "flex justify-end" }, u7 = {
27385
27387
  name: "WpicConfirm"
27386
- }, d$ = /* @__PURE__ */ Object.assign(u$, {
27388
+ }, d7 = /* @__PURE__ */ Object.assign(u7, {
27387
27389
  setup(t) {
27388
27390
  const { visible: e, title: n, text: r, positive: i, negative: o, onConfirm: s, onCancel: l, blur: a } = x0();
27389
27391
  return (c, u) => U(e) ? (S(), L("div", {
27390
27392
  key: 0,
27391
27393
  class: ne(["z-40 fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black/10 dark:bg-black/50 transition-opacity", { "backdrop-blur-md": U(a) }])
27392
27394
  }, [
27393
- F("div", s$, [
27394
- F("div", l$, Ee(U(n)), 1),
27395
- F("div", a$, Ee(U(r)), 1),
27396
- F("div", c$, [
27395
+ F("div", s7, [
27396
+ F("div", l7, Ee(U(n)), 1),
27397
+ F("div", a7, Ee(U(r)), 1),
27398
+ F("div", c7, [
27397
27399
  ve(ko, { onClick: U(l) }, {
27398
27400
  default: Ae(() => [
27399
27401
  tt(Ee(c.$t("wpiccomponents.cancel")), 1)
@@ -27414,15 +27416,15 @@ const s$ = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940
27414
27416
  ])
27415
27417
  ], 2)) : ce("", !0);
27416
27418
  }
27417
- }), f$ = /* @__PURE__ */ Me(d$, [["__scopeId", "data-v-e79ca400"]]), ya = { WpicColorPicker: tm, WpicAlert: o$, WpicToggleSwitch: Qp, WpicAdvDateField: vI, WpicCalendar: vu, WpicTextarea: em, WpicDialog: CI, WpicSlidePanel: wI, WpicDateField: oI, WpicFormInput: Zo, WpicButton: ko, WpicBadge: CD, WpicTextEditor: nD, WpicInputGroup: p1, WpicButtonGroup: u1, WpicForm: g1, WpicFormField: nm, WpicSpinner: Ui, WpicTooltip: rm, WpicPopover: ii, WpicChoiceList: Xp, WpicCard: VS, WpicCardSection: HS, WpicProgressBar: YS, WpicTag: GS, WpicTagGroup: ZS, WpicPagination: LO, WpicLoadingPanel: iO, WpicTable: gC, WpicTableColumn: yC, WpicTabs: _I, WpicTabPane: NI, WpicConfirm: f$ };
27419
+ }), f7 = /* @__PURE__ */ _e(d7, [["__scopeId", "data-v-e79ca400"]]), ya = { WpicColorPicker: tm, WpicAlert: o7, WpicToggleSwitch: Qp, WpicAdvDateField: vI, WpicCalendar: vu, WpicTextarea: em, WpicDialog: CI, WpicSlidePanel: wI, WpicDateField: oI, WpicFormInput: Zo, WpicButton: ko, WpicBadge: CD, WpicTextEditor: nD, WpicInputGroup: p1, WpicButtonGroup: u1, WpicForm: g1, WpicFormField: nm, WpicSpinner: Ui, WpicTooltip: rm, WpicPopover: ii, WpicChoiceList: Xp, WpicCard: VS, WpicCardSection: HS, WpicProgressBar: YS, WpicTag: GS, WpicTagGroup: ZS, WpicPagination: LO, WpicLoadingPanel: iO, WpicTable: gC, WpicTableColumn: yC, WpicTabs: MI, WpicTabPane: NI, WpicConfirm: f7 };
27418
27420
  function S0(t, e) {
27419
27421
  for (const n in e)
27420
27422
  Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? S0(t[n], e[n]) : t[n] = e[n]);
27421
27423
  }
27422
- const h$ = {
27424
+ const h7 = {
27423
27425
  useConfirm: x0
27424
27426
  };
27425
- function p$(t, e) {
27427
+ function p7(t, e) {
27426
27428
  S0(ke, e);
27427
27429
  for (const n in ya)
27428
27430
  if (ya.hasOwnProperty(n)) {
@@ -27430,12 +27432,12 @@ function p$(t, e) {
27430
27432
  t.component(r.name, r);
27431
27433
  }
27432
27434
  }
27433
- const y$ = {
27434
- install: p$,
27435
- composables: h$,
27435
+ const y7 = {
27436
+ install: p7,
27437
+ composables: h7,
27436
27438
  options: ke
27437
27439
  };
27438
27440
  export {
27439
- y$ as default,
27441
+ y7 as default,
27440
27442
  x0 as useConfirm
27441
27443
  };