@romainbx/wpic-components 0.0.43 → 0.0.45

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.
@@ -114,7 +114,7 @@ function B0(t) {
114
114
  function L0(t) {
115
115
  return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
116
116
  }
117
- function zu(t) {
117
+ function ju(t) {
118
118
  if (!B0(t) || L0(t) !== "[object Object]")
119
119
  return !1;
120
120
  if (Object.getPrototypeOf(t) === null)
@@ -126,7 +126,7 @@ function zu(t) {
126
126
  }
127
127
  function Ts(t, e) {
128
128
  return Object.keys(e).forEach((n) => {
129
- if (zu(e[n]) && zu(t[n])) {
129
+ if (ju(e[n]) && ju(t[n])) {
130
130
  t[n] || (t[n] = {}), Ts(t[n], e[n]);
131
131
  return;
132
132
  }
@@ -149,16 +149,16 @@ function ds(t) {
149
149
  }
150
150
  const Th = {};
151
151
  function ln(t, e) {
152
- z0(t, e), Th[t] = e;
152
+ j0(t, e), Th[t] = e;
153
153
  }
154
154
  function F0(t) {
155
155
  return Th[t];
156
156
  }
157
- function z0(t, e) {
157
+ function j0(t, e) {
158
158
  if (!Ze(e))
159
159
  throw new Error(`Extension Error: The validator '${t}' must be a function.`);
160
160
  }
161
- function ju(t, e, n) {
161
+ function zu(t, e, n) {
162
162
  typeof n.value == "object" && (n.value = Ee(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || e === "__proto__" ? Object.defineProperty(t, e, n) : t[e] = n.value;
163
163
  }
164
164
  function Ee(t) {
@@ -171,13 +171,13 @@ function Ee(t) {
171
171
  i.set(Ee(a), Ee(o));
172
172
  })) : s === "[object Date]" ? i = /* @__PURE__ */ new Date(+t) : s === "[object RegExp]" ? i = new RegExp(t.source, t.flags) : s === "[object DataView]" ? i = new t.constructor(Ee(t.buffer)) : s === "[object ArrayBuffer]" ? i = t.slice(0) : s.slice(-6) === "Array]" && (i = new t.constructor(t)), i) {
173
173
  for (r = Object.getOwnPropertySymbols(t); e < r.length; e++)
174
- ju(i, r[e], Object.getOwnPropertyDescriptor(t, r[e]));
174
+ zu(i, r[e], Object.getOwnPropertyDescriptor(t, r[e]));
175
175
  for (e = 0, r = Object.getOwnPropertyNames(t); e < r.length; e++)
176
- Object.hasOwnProperty.call(i, n = r[e]) && i[n] === t[n] || ju(i, n, Object.getOwnPropertyDescriptor(t, n));
176
+ Object.hasOwnProperty.call(i, n = r[e]) && i[n] === t[n] || zu(i, n, Object.getOwnPropertyDescriptor(t, n));
177
177
  }
178
178
  return i || t;
179
179
  }
180
- const qs = Symbol("vee-validate-form"), _h = Symbol("vee-validate-field-instance"), $o = Symbol("Default empty value"), j0 = typeof window < "u";
180
+ const qs = Symbol("vee-validate-form"), _h = Symbol("vee-validate-field-instance"), $o = Symbol("Default empty value"), z0 = typeof window < "u";
181
181
  function Rl(t) {
182
182
  return Ze(t) && !!t.__locatorRef;
183
183
  }
@@ -281,7 +281,7 @@ function gt(t, e) {
281
281
  return t !== t && e !== e;
282
282
  }
283
283
  function Wu(t) {
284
- return j0 ? t instanceof File : !1;
284
+ return z0 ? t instanceof File : !1;
285
285
  }
286
286
  function Ec(t) {
287
287
  return fa(t) ? t.replace(/\[|\]/gi, "") : t;
@@ -1067,20 +1067,20 @@ function Lh(t, e, n) {
1067
1067
  return;
1068
1068
  const le = $(e);
1069
1069
  return Po(le) || en(le) || Ze(le) || Array.isArray(le) ? le : Nh(le);
1070
- }), T = !Ze(w.value) && en(ve(e)), { id: y, value: S, initialValue: v, meta: O, setState: A, errors: N, flags: j } = dy(b, {
1070
+ }), T = !Ze(w.value) && en(ve(e)), { id: y, value: S, initialValue: v, meta: O, setState: A, errors: N, flags: z } = dy(b, {
1071
1071
  modelValue: r,
1072
1072
  form: g,
1073
1073
  bails: s,
1074
1074
  label: l,
1075
1075
  type: o,
1076
- validate: w.value ? z : void 0,
1076
+ validate: w.value ? j : void 0,
1077
1077
  schema: T ? e : void 0
1078
1078
  }), ne = ae(() => N.value[0]);
1079
1079
  h && Ty({
1080
1080
  value: S,
1081
1081
  prop: h,
1082
1082
  handleChange: P,
1083
- shouldValidate: () => c && !j.pendingReset
1083
+ shouldValidate: () => c && !z.pendingReset
1084
1084
  });
1085
1085
  const Y = (W, le = !1) => {
1086
1086
  O.touched = !0, le && F();
@@ -1098,8 +1098,8 @@ function Lh(t, e, n) {
1098
1098
  bails: s
1099
1099
  }) : { valid: !0, errors: [] };
1100
1100
  }
1101
- const F = Vl(async () => (O.pending = !0, O.validated = !0, I("validated-only")), (W) => (j.pendingUnmount[Pe.id] || (A({ errors: W.errors }), O.pending = !1, O.valid = W.valid), W)), H = Vl(async () => I("silent"), (W) => (O.valid = W.valid, W));
1102
- function z(W) {
1101
+ const F = Vl(async () => (O.pending = !0, O.validated = !0, I("validated-only")), (W) => (z.pendingUnmount[Pe.id] || (A({ errors: W.errors }), O.pending = !1, O.valid = W.valid), W)), H = Vl(async () => I("silent"), (W) => (O.valid = W.valid, W));
1102
+ function j(W) {
1103
1103
  return (W == null ? void 0 : W.mode) === "silent" ? H() : F();
1104
1104
  }
1105
1105
  function P(W, le = !0) {
@@ -1153,7 +1153,7 @@ function Lh(t, e, n) {
1153
1153
  keepValueOnUnmount: f,
1154
1154
  resetField: Te,
1155
1155
  handleReset: () => Te(),
1156
- validate: z,
1156
+ validate: j,
1157
1157
  handleChange: P,
1158
1158
  handleBlur: Y,
1159
1159
  setState: A,
@@ -1186,11 +1186,11 @@ function Lh(t, e, n) {
1186
1186
  }), Qr(() => {
1187
1187
  var W;
1188
1188
  const le = (W = ve(Pe.keepValueOnUnmount)) !== null && W !== void 0 ? W : ve(g.keepValuesOnUnmount), _e = ve(b);
1189
- if (le || !g || j.pendingUnmount[Pe.id]) {
1189
+ if (le || !g || z.pendingUnmount[Pe.id]) {
1190
1190
  g == null || g.removePathState(_e, y);
1191
1191
  return;
1192
1192
  }
1193
- j.pendingUnmount[Pe.id] = !0;
1193
+ z.pendingUnmount[Pe.id] = !0;
1194
1194
  const ye = g.getPathState(_e);
1195
1195
  if (Array.isArray(ye == null ? void 0 : ye.id) && (ye != null && ye.multiple) ? ye != null && ye.id.includes(Pe.id) : (ye == null ? void 0 : ye.id) === Pe.id) {
1196
1196
  if (ye != null && ye.multiple && Array.isArray(ye.value)) {
@@ -1356,18 +1356,18 @@ const _y = /* @__PURE__ */ wr({
1356
1356
  validateOnValueUpdate: t.validateOnModelUpdate,
1357
1357
  keepValueOnUnmount: o,
1358
1358
  syncVModel: !0
1359
- }), T = function(N, j = !0) {
1360
- d(N, j);
1359
+ }), T = function(N, z = !0) {
1360
+ d(N, z);
1361
1361
  }, y = ae(() => {
1362
- const { validateOnInput: A, validateOnChange: N, validateOnBlur: j, validateOnModelUpdate: ne } = Dy(t);
1363
- function Y(z) {
1364
- f(z, j), Ze(e.attrs.onBlur) && e.attrs.onBlur(z);
1362
+ const { validateOnInput: A, validateOnChange: N, validateOnBlur: z, validateOnModelUpdate: ne } = Dy(t);
1363
+ function Y(j) {
1364
+ f(j, z), Ze(e.attrs.onBlur) && e.attrs.onBlur(j);
1365
1365
  }
1366
- function I(z) {
1367
- T(z, A), Ze(e.attrs.onInput) && e.attrs.onInput(z);
1366
+ function I(j) {
1367
+ T(j, A), Ze(e.attrs.onInput) && e.attrs.onInput(j);
1368
1368
  }
1369
- function F(z) {
1370
- T(z, N), Ze(e.attrs.onChange) && e.attrs.onChange(z);
1369
+ function F(j) {
1370
+ T(j, N), Ze(e.attrs.onChange) && e.attrs.onChange(j);
1371
1371
  }
1372
1372
  const H = {
1373
1373
  name: t.name,
@@ -1375,7 +1375,7 @@ const _y = /* @__PURE__ */ wr({
1375
1375
  onInput: I,
1376
1376
  onChange: F
1377
1377
  };
1378
- return H["onUpdate:modelValue"] = (z) => T(z, ne), H;
1378
+ return H["onUpdate:modelValue"] = (j) => T(j, ne), H;
1379
1379
  }), S = ae(() => {
1380
1380
  const A = Object.assign({}, y.value);
1381
1381
  Gs(e.attrs.type) && b && (A.checked = b.value);
@@ -1448,7 +1448,7 @@ function Ny(t) {
1448
1448
  d.value = c.value.reduce((C, M) => (C[ds(ve(M.path))] = M, C), {});
1449
1449
  });
1450
1450
  function h(C, M) {
1451
- const R = z(C);
1451
+ const R = j(C);
1452
1452
  if (!R) {
1453
1453
  typeof C == "string" && (u.value[ds(C)] = Bl(M));
1454
1454
  return;
@@ -1477,7 +1477,7 @@ function Ny(t) {
1477
1477
  }, {})), T = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: S, originalInitialValues: v, setInitialValues: O } = Py(c, l, t), A = $y(c, l, v, g), N = ae(() => c.value.reduce((C, M) => {
1478
1478
  const R = Ct(l, M.path);
1479
1479
  return Rn(C, M.path, R), C;
1480
- }, {})), j = t == null ? void 0 : t.validationSchema;
1480
+ }, {})), z = t == null ? void 0 : t.validationSchema;
1481
1481
  function ne(C, M) {
1482
1482
  var R, q;
1483
1483
  const ie = ae(() => Ct(S.value, ve(C))), x = d.value[ve(C)], B = (M == null ? void 0 : M.type) === "checkbox" || (M == null ? void 0 : M.type) === "radio";
@@ -1490,12 +1490,12 @@ function Ny(t) {
1490
1490
  se !== -1 && ee.splice(se, 1);
1491
1491
  const fe = ae(() => {
1492
1492
  var ht, Nt, _r, tr;
1493
- const hn = ve(j);
1493
+ const hn = ve(z);
1494
1494
  if (en(hn))
1495
1495
  return (Nt = (ht = hn.describe) === null || ht === void 0 ? void 0 : ht.call(hn, ve(C)).required) !== null && Nt !== void 0 ? Nt : !1;
1496
1496
  const ns = ve(M == null ? void 0 : M.schema);
1497
1497
  return en(ns) && (tr = (_r = ns.describe) === null || _r === void 0 ? void 0 : _r.call(ns).required) !== null && tr !== void 0 ? tr : !1;
1498
- }), De = r++, ze = qr({
1498
+ }), De = r++, je = qr({
1499
1499
  id: De,
1500
1500
  path: C,
1501
1501
  touched: !1,
@@ -1518,34 +1518,34 @@ function Ny(t) {
1518
1518
  validate: M == null ? void 0 : M.validate,
1519
1519
  dirty: ae(() => !gt($(K), $(ie)))
1520
1520
  });
1521
- return c.value.push(ze), d.value[re] = ze, f(), g.value[re] && !T[re] && St(() => {
1521
+ return c.value.push(je), d.value[re] = je, f(), g.value[re] && !T[re] && St(() => {
1522
1522
  Ft(re, { mode: "silent" });
1523
1523
  }), No(C) && mt(C, (ht) => {
1524
1524
  f();
1525
1525
  const Nt = Ee(K.value);
1526
- d.value[ht] = ze, St(() => {
1526
+ d.value[ht] = je, St(() => {
1527
1527
  Rn(l, ht, Nt);
1528
1528
  });
1529
- }), ze;
1529
+ }), je;
1530
1530
  }
1531
1531
  const Y = qu(fn, 5), I = qu(fn, 5), F = Vl(async (C) => await (C === "silent" ? Y() : I()), (C, [M]) => {
1532
1532
  const R = Ot(W.errorBag.value), ie = [
1533
1533
  .../* @__PURE__ */ new Set([...Ot(C.results), ...c.value.map((x) => x.path), ...R])
1534
1534
  ].sort().reduce((x, B) => {
1535
1535
  var K;
1536
- const re = B, se = z(re) || P(re), fe = ((K = C.results[re]) === null || K === void 0 ? void 0 : K.errors) || [], De = ve(se == null ? void 0 : se.path) || re, ze = Iy({ errors: fe, valid: !fe.length }, x.results[De]);
1537
- return x.results[De] = ze, ze.valid || (x.errors[De] = ze.errors[0]), se && u.value[De] && delete u.value[De], se ? (se.valid = ze.valid, M === "silent" || M === "validated-only" && !se.validated || h(se, ze.errors), x) : (h(De, fe), x);
1536
+ const re = B, se = j(re) || P(re), fe = ((K = C.results[re]) === null || K === void 0 ? void 0 : K.errors) || [], De = ve(se == null ? void 0 : se.path) || re, je = Iy({ errors: fe, valid: !fe.length }, x.results[De]);
1537
+ return x.results[De] = je, je.valid || (x.errors[De] = je.errors[0]), se && u.value[De] && delete u.value[De], se ? (se.valid = je.valid, M === "silent" || M === "validated-only" && !se.validated || h(se, je.errors), x) : (h(De, fe), x);
1538
1538
  }, { valid: C.valid, results: {}, errors: {} });
1539
1539
  return C.values && (ie.values = C.values), Ot(ie.results).forEach((x) => {
1540
1540
  var B;
1541
- const K = z(x);
1541
+ const K = j(x);
1542
1542
  K && M !== "silent" && (M === "validated-only" && !K.validated || h(K, (B = ie.results[x]) === null || B === void 0 ? void 0 : B.errors));
1543
1543
  }), ie;
1544
1544
  });
1545
1545
  function H(C) {
1546
1546
  c.value.forEach(C);
1547
1547
  }
1548
- function z(C) {
1548
+ function j(C) {
1549
1549
  const M = typeof C == "string" ? ds(C) : C;
1550
1550
  return typeof M == "string" ? d.value[M] : M;
1551
1551
  }
@@ -1604,7 +1604,7 @@ function Ny(t) {
1604
1604
  const ie = q.id.indexOf(M);
1605
1605
  ie >= 0 && q.id.splice(ie, 1), delete q.__flags.pendingUnmount[M];
1606
1606
  }
1607
- (!q.multiple || q.fieldsCount <= 0) && (c.value.splice(R, 1), zt(C), f(), delete d.value[C]);
1607
+ (!q.multiple || q.fieldsCount <= 0) && (c.value.splice(R, 1), jt(C), f(), delete d.value[C]);
1608
1608
  }
1609
1609
  }
1610
1610
  function ft(C) {
@@ -1620,14 +1620,14 @@ function Ny(t) {
1620
1620
  controlledValues: N,
1621
1621
  errorBag: m,
1622
1622
  errors: g,
1623
- schema: j,
1623
+ schema: z,
1624
1624
  submitCount: o,
1625
1625
  meta: A,
1626
1626
  isSubmitting: i,
1627
1627
  isValidating: s,
1628
1628
  fieldArrays: a,
1629
1629
  keepValuesOnUnmount: y,
1630
- validateSchema: $(j) ? F : void 0,
1630
+ validateSchema: $(z) ? F : void 0,
1631
1631
  validate: Zt,
1632
1632
  setFieldError: h,
1633
1633
  validateField: Ft,
@@ -1644,10 +1644,10 @@ function Ny(t) {
1644
1644
  defineComponentBinds: si,
1645
1645
  defineField: er,
1646
1646
  stageInitialValue: dn,
1647
- unsetInitialValue: zt,
1647
+ unsetInitialValue: jt,
1648
1648
  setFieldInitialValue: $n,
1649
1649
  createPathState: ne,
1650
- getPathState: z,
1650
+ getPathState: j,
1651
1651
  unsetPathValue: tt,
1652
1652
  removePathState: Pe,
1653
1653
  initialValues: S,
@@ -1659,7 +1659,7 @@ function Ny(t) {
1659
1659
  };
1660
1660
  function le(C, M, R = !0) {
1661
1661
  const q = Ee(M), ie = typeof C == "string" ? C : C.path;
1662
- z(ie) || ne(ie), Rn(l, ie, q), R && Ft(ie);
1662
+ j(ie) || ne(ie), Rn(l, ie, q), R && Ft(ie);
1663
1663
  }
1664
1664
  function _e(C, M = !0) {
1665
1665
  Ot(l).forEach((R) => {
@@ -1672,7 +1672,7 @@ function Ny(t) {
1672
1672
  Ts(l, C), a.forEach((R) => R && R.reset()), M && Zt();
1673
1673
  }
1674
1674
  function Ge(C, M) {
1675
- const R = z(ve(C)) || ne(C);
1675
+ const R = j(ve(C)) || ne(C);
1676
1676
  return ae({
1677
1677
  get() {
1678
1678
  return R.value;
@@ -1685,19 +1685,19 @@ function Ny(t) {
1685
1685
  });
1686
1686
  }
1687
1687
  function Ke(C, M) {
1688
- const R = z(C);
1688
+ const R = j(C);
1689
1689
  R && (R.touched = M);
1690
1690
  }
1691
1691
  function xt(C) {
1692
- const M = z(C);
1692
+ const M = j(C);
1693
1693
  return M ? M.touched : c.value.filter((R) => R.path.startsWith(C)).some((R) => R.touched);
1694
1694
  }
1695
1695
  function Cr(C) {
1696
- const M = z(C);
1696
+ const M = j(C);
1697
1697
  return M ? M.dirty : c.value.filter((R) => R.path.startsWith(C)).some((R) => R.dirty);
1698
1698
  }
1699
1699
  function ni(C) {
1700
- const M = z(C);
1700
+ const M = j(C);
1701
1701
  return M ? M.valid : c.value.filter((R) => R.path.startsWith(C)).every((R) => R.valid);
1702
1702
  }
1703
1703
  function Xn(C) {
@@ -1713,14 +1713,14 @@ function Ny(t) {
1713
1713
  }
1714
1714
  function Qn(C, M) {
1715
1715
  var R;
1716
- const q = M && "value" in M ? M.value : Ct(S.value, C), ie = z(C);
1716
+ const q = M && "value" in M ? M.value : Ct(S.value, C), ie = j(C);
1717
1717
  ie && (ie.__flags.pendingReset = !0), $n(C, Ee(q), !0), le(C, q, !1), Ke(C, (R = M == null ? void 0 : M.touched) !== null && R !== void 0 ? R : !1), h(C, (M == null ? void 0 : M.errors) || []), St(() => {
1718
1718
  ie && (ie.__flags.pendingReset = !1);
1719
1719
  });
1720
1720
  }
1721
1721
  function Nn(C, M) {
1722
1722
  let R = Ee(C != null && C.values ? C.values : v.value);
1723
- R = M != null && M.force ? R : Ts(v.value, R), R = en(j) && Ze(j.cast) ? j.cast(R) : R, O(R), H((q) => {
1723
+ R = M != null && M.force ? R : Ts(v.value, R), R = en(z) && Ze(z.cast) ? z.cast(R) : R, O(R), H((q) => {
1724
1724
  var ie;
1725
1725
  q.__flags.pendingReset = !0, q.validated = !1, q.touched = ((ie = C == null ? void 0 : C.touched) === null || ie === void 0 ? void 0 : ie[q.path]) || !1, le(q.path, Ct(R, q.path), !1), h(q.path, void 0);
1726
1726
  }), M != null && M.force ? _e(R, !1) : ye(R, !1), p((C == null ? void 0 : C.errors) || {}), o.value = (C == null ? void 0 : C.submitCount) || 0, St(() => {
@@ -1758,14 +1758,14 @@ function Ny(t) {
1758
1758
  }
1759
1759
  async function Ft(C, M) {
1760
1760
  var R;
1761
- const q = z(C);
1762
- if (q && (M == null ? void 0 : M.mode) !== "silent" && (q.validated = !0), j) {
1761
+ const q = j(C);
1762
+ if (q && (M == null ? void 0 : M.mode) !== "silent" && (q.validated = !0), z) {
1763
1763
  const { results: x } = await F((M == null ? void 0 : M.mode) || "validated-only");
1764
1764
  return x[C] || { errors: [], valid: !0 };
1765
1765
  }
1766
1766
  return q != null && q.validate ? q.validate(M) : (!q && ((R = M == null ? void 0 : M.warn) !== null && R !== void 0 ? R : !0) && process.env.NODE_ENV !== "production" && w0(`field with path ${C} was not found`), Promise.resolve({ errors: [], valid: !0 }));
1767
1767
  }
1768
- function zt(C) {
1768
+ function jt(C) {
1769
1769
  Yu(S.value, C);
1770
1770
  }
1771
1771
  function dn(C, M, R = !1) {
@@ -1775,7 +1775,7 @@ function Ny(t) {
1775
1775
  Rn(S.value, C, Ee(M)), R && Rn(v.value, C, Ee(M));
1776
1776
  }
1777
1777
  async function fn() {
1778
- const C = $(j);
1778
+ const C = $(z);
1779
1779
  if (!C)
1780
1780
  return { valid: !0, results: {}, errors: {} };
1781
1781
  s.value = !0;
@@ -1794,14 +1794,14 @@ function Ny(t) {
1794
1794
  return;
1795
1795
  }
1796
1796
  W.validateSchema && W.validateSchema("silent");
1797
- }), No(j) && mt(j, () => {
1797
+ }), No(z) && mt(z, () => {
1798
1798
  var C;
1799
1799
  (C = W.validateSchema) === null || C === void 0 || C.call(W, "validated-only");
1800
1800
  }), Cs(qs, W), process.env.NODE_ENV !== "production" && (gy(W), mt(() => Object.assign(Object.assign({ errors: m.value }, A.value), { values: l, isSubmitting: i.value, isValidating: s.value, submitCount: o.value }), Di, {
1801
1801
  deep: !0
1802
1802
  }));
1803
1803
  function er(C, M) {
1804
- const R = Ze(M) || M == null ? void 0 : M.label, q = z(ve(C)) || ne(C, { label: R }), ie = () => Ze(M) ? M(uo(q, fo)) : M || {};
1804
+ const R = Ze(M) || M == null ? void 0 : M.label, q = j(ve(C)) || ne(C, { label: R }), ie = () => Ze(M) ? M(uo(q, fo)) : M || {};
1805
1805
  function x() {
1806
1806
  var fe;
1807
1807
  q.touched = !0, ((fe = ie().validateOnBlur) !== null && fe !== void 0 ? fe : Ir().validateOnBlur) && Ft(q.path);
@@ -1827,8 +1827,8 @@ function Ny(t) {
1827
1827
  return Ze(M) ? Object.assign(Object.assign({}, fe), M(uo(q, fo)).props || {}) : M != null && M.props ? Object.assign(Object.assign({}, fe), M.props(uo(q, fo))) : fe;
1828
1828
  });
1829
1829
  return [Ge(C, () => {
1830
- var fe, De, ze;
1831
- return (ze = (fe = ie().validateOnModelUpdate) !== null && fe !== void 0 ? fe : (De = Ir()) === null || De === void 0 ? void 0 : De.validateOnModelUpdate) !== null && ze !== void 0 ? ze : !0;
1830
+ var fe, De, je;
1831
+ return (je = (fe = ie().validateOnModelUpdate) !== null && fe !== void 0 ? fe : (De = Ir()) === null || De === void 0 ? void 0 : De.validateOnModelUpdate) !== null && je !== void 0 ? je : !0;
1832
1832
  }), re];
1833
1833
  }
1834
1834
  function ri(C) {
@@ -1855,7 +1855,7 @@ function Ny(t) {
1855
1855
  }));
1856
1856
  }
1857
1857
  function si(C, M) {
1858
- const [R, q] = er(C, M), ie = z(ve(C));
1858
+ const [R, q] = er(C, M), ie = j(ve(C));
1859
1859
  function x(B) {
1860
1860
  R.value = B;
1861
1861
  }
@@ -1956,14 +1956,14 @@ const Ry = /* @__PURE__ */ wr({
1956
1956
  initialTouched: t.initialTouched,
1957
1957
  validateOnMount: t.validateOnMount,
1958
1958
  keepValuesOnUnmount: r
1959
- }), A = g((z, { evt: P }) => {
1959
+ }), A = g((j, { evt: P }) => {
1960
1960
  Eh(P) && P.target.submit();
1961
1961
  }, t.onInvalidSubmit), N = t.onSubmit ? g(t.onSubmit, t.onInvalidSubmit) : A;
1962
- function j(z) {
1963
- Dc(z) && z.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
1962
+ function z(j) {
1963
+ Dc(j) && j.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
1964
1964
  }
1965
- function ne(z, P) {
1966
- return g(typeof z == "function" && !P ? z : P, t.onInvalidSubmit)(z);
1965
+ function ne(j, P) {
1966
+ return g(typeof j == "function" && !P ? j : P, t.onInvalidSubmit)(j);
1967
1967
  }
1968
1968
  function Y() {
1969
1969
  return Ee(o);
@@ -2024,7 +2024,7 @@ const Ry = /* @__PURE__ */ wr({
2024
2024
  return P ? Wt(P, Object.assign(Object.assign(Object.assign({}, P === "form" ? {
2025
2025
  // Disables native validation as vee-validate will handle it.
2026
2026
  novalidate: !0
2027
- } : {}), e.attrs), { onSubmit: N, onReset: j }), ee) : ee;
2027
+ } : {}), e.attrs), { onSubmit: N, onReset: z }), ee) : ee;
2028
2028
  };
2029
2029
  }
2030
2030
  }), Vy = Ry, By = /* @__PURE__ */ wr({
@@ -2080,7 +2080,7 @@ const xe = (t, e) => {
2080
2080
  for (const [r, i] of e)
2081
2081
  n[r] = i;
2082
2082
  return n;
2083
- }, zy = {}, jy = {
2083
+ }, jy = {}, zy = {
2084
2084
  xmlns: "http://www.w3.org/2000/svg",
2085
2085
  viewBox: "0 0 512 512",
2086
2086
  fill: "currentColor"
@@ -2088,9 +2088,9 @@ const xe = (t, e) => {
2088
2088
  Hy
2089
2089
  ];
2090
2090
  function Yy(t, e) {
2091
- return k(), _("svg", jy, Wy);
2091
+ return k(), _("svg", zy, Wy);
2092
2092
  }
2093
- const Uy = /* @__PURE__ */ xe(zy, [["render", Yy]]), qy = {}, Gy = {
2093
+ const Uy = /* @__PURE__ */ xe(jy, [["render", Yy]]), qy = {}, Gy = {
2094
2094
  xmlns: "http://www.w3.org/2000/svg",
2095
2095
  viewBox: "0 0 512 512",
2096
2096
  fill: "currentColor"
@@ -2102,7 +2102,7 @@ function Zy(t, e) {
2102
2102
  }
2103
2103
  const Xy = /* @__PURE__ */ xe(qy, [["render", Zy]]), Qy = { class: "relative" }, ev = {
2104
2104
  name: "WpicSpinner"
2105
- }, ji = /* @__PURE__ */ Object.assign(ev, {
2105
+ }, zi = /* @__PURE__ */ Object.assign(ev, {
2106
2106
  props: {
2107
2107
  color: {
2108
2108
  type: String,
@@ -2168,30 +2168,30 @@ const tv = ["is", "type", "disabled"], nv = {
2168
2168
  "wpic-tools": "rounded-md has-[.medium]:h-8 has-[.medium]:text-sm has-[.small]:h-6 has-[.small]:text-xs h-10"
2169
2169
  }, l = {
2170
2170
  pmi: "",
2171
- "wpic-tools": "bg-transparent text-gray-700 enabled:hover:bg-gray-900/5 enabled:active:bg-gray-200 enabled:active:shadow-inner dark:enabled:border-gray-900 dark:text-gray-400 dark:enabled:hover:bg-gray-900 dark:enabled:active:bg-gray-930 dark:disabled:text-gray-700"
2171
+ "wpic-tools": "bg-transparent text-gray-700 disabled:text-gray-700/50 enabled:hover:bg-gray-900/5 enabled:active:bg-gray-200 enabled:active:shadow-inner dark:enabled:border-gray-900 dark:text-gray-400 dark:enabled:hover:bg-gray-900 dark:enabled:active:bg-gray-930 dark:disabled:text-gray-400/50"
2172
2172
  }, c = {
2173
2173
  pmi: "",
2174
- "wpic-tools": "bg-transparent text-red-600 enabled:hover:bg-red-500/5 enabled:active:bg-red-100 enabled:active:shadow-inner dark:text-red-400 dark:enabled:hover:bg-red-500/10 dark:enabled:active:bg-red-500/25 dark:disabled:text-red-500/50"
2174
+ "wpic-tools": "bg-transparent text-red-600 disabled:text-red-600/50 enabled:hover:bg-red-500/5 enabled:active:bg-red-100 enabled:active:shadow-inner dark:text-red-400 dark:enabled:hover:bg-red-500/10 dark:enabled:active:bg-red-500/25 dark:disabled:text-red-500/50"
2175
2175
  }, u = {
2176
2176
  pmi: "bg-violet-800 border border-violet-800 focus:bg-violet-800 text-white disabled:bg-zinc-100 disabled:text-zinc-400 disabled:border-zinc-100 enabled:hover:bg-violet-900 enabled:hover:border-violet-900 active:scale-95 enabled:transform",
2177
- "wpic-tools": "!border-none bg-gradient-to-b from-lime-500 to-lime-500 text-white border-none shadow-[0_1px_0_0_theme(colors.white/30%)_inset,0_-1px_1px_0_theme(colors.black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-lime-400 enabled:hover:to-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_theme(colors.white/5%)_inset,0_0_0_1px_theme(colors.white/2%)_inset] dark:from-lime-700 dark:to-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-lime-600 dark:enabled:hover:to-lime-600"
2177
+ "wpic-tools": "border-none! bg-linear-to-b from-lime-500 to-lime-500 text-white disabled:text-white/50 border-none shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-lime-400 enabled:hover:to-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:from-lime-700 dark:to-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-lime-600 dark:enabled:hover:to-lime-600"
2178
2178
  }, d = {
2179
2179
  pmi: "bg-white text-violet-800 border-zinc-400 dark:border-zinc-700 dark:text-zinc-200 dark:bg-zinc-700 dark:hover:bg-zinc-600 dark:hover:border-zinc-600 disabled:text-zinc-400 active:scale-95 enabled:transform",
2180
- "wpic-tools": "!border-none bg-gradient-to-b from-gray-500 to-gray-600 text-white shadow-[0_1px_0_0_theme(colors.white/30%)_inset,0_-1px_1px_0_theme(colors.black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-gray-400 enabled:hover:to-gray-500 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_theme(colors.white/5%)_inset,0_0_0_1px_theme(colors.white/2%)_inset] dark:from-gray-700 dark:to-gray-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-gray-600 dark:enabled:hover:to-gray-600"
2181
- // 'wpic-tools': '!border-none bg-gradient-to-b from-lime-500 to-lime-500 text-white border-none shadow-[0_1px_0_0_theme(colors.white/30%)_inset,0_-1px_1px_0_theme(colors.black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-lime-400 enabled:hover:to-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_theme(colors.white/5%)_inset,0_0_0_1px_theme(colors.white/2%)_inset] dark:from-lime-700 dark:to-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-lime-600 dark:enabled:hover:to-lime-600'
2180
+ "wpic-tools": "border-none! bg-linear-to-b from-gray-500 to-gray-600 text-white disabled:text-white/50 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-gray-400 enabled:hover:to-gray-500 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:from-gray-700 dark:to-gray-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-gray-600 dark:enabled:hover:to-gray-600"
2181
+ // 'wpic-tools': 'border-none! bg-linear-to-b from-lime-500 to-lime-500 text-white border-none shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-lime-400 enabled:hover:to-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:from-lime-700 dark:to-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-lime-600 dark:enabled:hover:to-lime-600'
2182
2182
  }, f = {
2183
2183
  pmi: "",
2184
- "wpic-tools": "!border-none text-white bg-gradient-to-b from-red-500 to-red-600 border-red-500 enabled:hover:to-red-500 shadow-[0_1px_0_0_theme(colors.white/30%)_inset,0_-1px_1px_0_theme(colors.black/5%)_inset] enabled:hover:border-red-600 enabled:active:shadow-inner enabled:active:text-white/80 enabled:active:bg-red-700 enabled:active:border-red-700 dark:bg-red-400/70 dark:border-red-400/70"
2184
+ "wpic-tools": "border-none! text-white bg-linear-to-b from-red-500 to-red-600 disabled:text-red-600/50 border-red-500 enabled:hover:to-red-500 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:hover:border-red-600 enabled:active:shadow-inner enabled:active:text-white/80 enabled:active:bg-red-700 enabled:active:border-red-700 dark:bg-red-400/70 dark:border-red-400/70"
2185
2185
  }, h = {
2186
2186
  pmi: "border-zinc-300 dark:border-zinc-700 dark:text-zinc-300",
2187
- // 'wpic-tools': 'border-gray-200 bg-white shadow text-gray-700 enabled:hover:bg-gray-300 enabled:hover:border-gray-300 enabled:active:bg-gray-200 enabled:active:border-gray-200 enabled:active:shadow-inner disabled:bg-gray-100 disabled:text-zinc-400 disabled:border-0 dark:bg-gray-930 dark:border-gray-930 dark:text-gray-300 dark:enabled:hover:bg-gray-920 dark:enabled:hover:border-gray-920 dark:enabled:active:bg-gray-930 dark:enabled:active:border-gray-930 dark:disabled:text-gray-700 dark:disabled:bg-gray-940'
2188
- "wpic-tools": "bg-gradient-to-b from-white text-gray-950 border-none ring-1 ring-black/5 shadow-sm enabled:hover:to-gray-50 enabled:active:text-gray-950/60 dark:bg-gray-900 dark:from-gray-900 dark:text-white dark:shadow-[0_1px_0_0_theme(colors.white/5%)_inset,0_0_0_1px_theme(colors.white/2%)_inset] enabled:active:shadow-inner dark:hover:from-gray-800 dark:hover:to-gray-800 dark:enabled:active:text-white/80"
2187
+ // 'wpic-tools': 'border-gray-200 bg-white shadow-sm text-gray-700 enabled:hover:bg-gray-300 enabled:hover:border-gray-300 enabled:active:bg-gray-200 enabled:active:border-gray-200 enabled:active:shadow-inner disabled:bg-gray-100 disabled:text-zinc-400 disabled:border-0 dark:bg-gray-930 dark:border-gray-930 dark:text-gray-300 dark:enabled:hover:bg-gray-920 dark:enabled:hover:border-gray-920 dark:enabled:active:bg-gray-930 dark:enabled:active:border-gray-930 dark:disabled:text-gray-700 dark:disabled:bg-gray-940'
2188
+ "wpic-tools": "bg-linear-to-b from-white text-gray-950 disabled:text-gray-950/50 border-none ring-1 ring-black/5 shadow-xs enabled:hover:to-gray-50 enabled:active:text-gray-950/60 dark:bg-gray-900 dark:from-gray-900 dark:text-white dark:disabled:text-white/50 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] enabled:active:shadow-inner dark:hover:from-gray-800 dark:hover:to-gray-800 dark:enabled:active:text-white/80"
2189
2189
  }, p = {
2190
2190
  pmi: "text-violet-800 hover:underline",
2191
2191
  "wpic-tools": "text-lime-800 hover:underline"
2192
2192
  }, m = {
2193
2193
  pmi: "text-red-600 hover:text-red-500 hover:underline",
2194
- "wpic-tools": "text-red-600 hover:text-red-500 dark:text-red-400 dark:hover:text-red-500 hover:underline"
2194
+ "wpic-tools": "text-red-600 disabled:text-red-600/50 hover:text-red-500 dark:text-red-400 dark:hover:text-red-500 hover:underline"
2195
2195
  }, g = {
2196
2196
  pmi: "hover:text-violet-800 hover:underline",
2197
2197
  "wpic-tools": "dark:text-gray-200 hover:text-lime-800 hover:underline"
@@ -2228,12 +2228,12 @@ const tv = ["is", "type", "disabled"], nv = {
2228
2228
  "w-full": t.full,
2229
2229
  "text-opacity-50": t.disabled,
2230
2230
  "h-auto": t.plain,
2231
- rounded: !t.plain,
2231
+ "rounded-sm": !t.plain,
2232
2232
  "aspect-square": t.square
2233
- }, "wpic-button leading-none font-medium no-underline appearance-none outline-zinc-600 focus:outline-none relative inline-flex justify-center items-center"])
2233
+ }, "wpic-button leading-none font-medium no-underline appearance-none outline-zinc-600 focus:outline-hidden relative inline-flex justify-center items-center"])
2234
2234
  }, [
2235
2235
  t.loading ? (k(), _("div", nv, [
2236
- ce(ji, { class: "w-6 h-6" })
2236
+ ce(zi, { class: "w-6 h-6" })
2237
2237
  ])) : X("", !0),
2238
2238
  (k(), be(Us(s.value), {
2239
2239
  to: t.to,
@@ -2244,7 +2244,7 @@ const tv = ["is", "type", "disabled"], nv = {
2244
2244
  "px-2": !!(t.small && !t.plain),
2245
2245
  "px-3": !!(t.medium && !t.plain),
2246
2246
  "px-4": !t.small && !t.medium && !t.plain,
2247
- "!px-0 aspect-square": t.square
2247
+ "px-0! aspect-square": t.square
2248
2248
  }])
2249
2249
  }, {
2250
2250
  default: Se(() => [
@@ -2348,7 +2348,7 @@ function Gr(t) {
2348
2348
  function Js(t) {
2349
2349
  return t.split("-")[1];
2350
2350
  }
2351
- function zh(t) {
2351
+ function jh(t) {
2352
2352
  return t === "x" ? "y" : "x";
2353
2353
  }
2354
2354
  function Pc(t) {
@@ -2358,7 +2358,7 @@ function ha(t) {
2358
2358
  return ["top", "bottom"].includes(Gr(t)) ? "y" : "x";
2359
2359
  }
2360
2360
  function Ic(t) {
2361
- return zh(ha(t));
2361
+ return jh(ha(t));
2362
2362
  }
2363
2363
  function gv(t, e, n) {
2364
2364
  n === void 0 && (n = !1);
@@ -2368,9 +2368,9 @@ function gv(t, e, n) {
2368
2368
  }
2369
2369
  function yv(t) {
2370
2370
  const e = Bo(t);
2371
- return [zl(t), e, zl(e)];
2371
+ return [jl(t), e, jl(e)];
2372
2372
  }
2373
- function zl(t) {
2373
+ function jl(t) {
2374
2374
  return t.replace(/start|end/g, (e) => mv[e]);
2375
2375
  }
2376
2376
  function vv(t, e, n) {
@@ -2389,7 +2389,7 @@ function vv(t, e, n) {
2389
2389
  function bv(t, e, n, r) {
2390
2390
  const i = Js(t);
2391
2391
  let s = vv(Gr(t), n === "start", r);
2392
- return i && (s = s.map((o) => o + "-" + i), e && (s = s.concat(s.map(zl)))), s;
2392
+ return i && (s = s.map((o) => o + "-" + i), e && (s = s.concat(s.map(jl)))), s;
2393
2393
  }
2394
2394
  function Bo(t) {
2395
2395
  return t.replace(/left|right|bottom|top/g, (e) => pv[e]);
@@ -2403,7 +2403,7 @@ function wv(t) {
2403
2403
  ...t
2404
2404
  };
2405
2405
  }
2406
- function jh(t) {
2406
+ function zh(t) {
2407
2407
  return typeof t != "number" ? wv(t) : {
2408
2408
  top: t,
2409
2409
  right: t,
@@ -2554,7 +2554,7 @@ async function Hh(t, e) {
2554
2554
  elementContext: d = "floating",
2555
2555
  altBoundary: f = !1,
2556
2556
  padding: h = 0
2557
- } = Ks(e, t), p = jh(h), g = a[f ? d === "floating" ? "reference" : "floating" : d], b = Lo(await s.getClippingRect({
2557
+ } = Ks(e, t), p = zh(h), g = a[f ? d === "floating" ? "reference" : "floating" : d], b = Lo(await s.getClippingRect({
2558
2558
  element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
2559
2559
  boundary: c,
2560
2560
  rootBoundary: u,
@@ -2601,23 +2601,23 @@ const kv = (t) => ({
2601
2601
  } = Ks(t, e) || {};
2602
2602
  if (c == null)
2603
2603
  return {};
2604
- const d = jh(u), f = {
2604
+ const d = zh(u), f = {
2605
2605
  x: n,
2606
2606
  y: r
2607
2607
  }, h = Ic(i), p = Pc(h), m = await o.getDimensions(c), g = h === "y", b = g ? "top" : "left", w = g ? "bottom" : "right", T = g ? "clientHeight" : "clientWidth", y = s.reference[p] + s.reference[h] - f[h] - s.floating[p], S = f[h] - s.reference[h], v = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
2608
2608
  let O = v ? v[T] : 0;
2609
2609
  (!O || !await (o.isElement == null ? void 0 : o.isElement(v))) && (O = a.floating[T] || s.floating[p]);
2610
- const A = y / 2 - S / 2, N = O / 2 - m[p] / 2 - 1, j = _s(d[b], N), ne = _s(d[w], N), Y = j, I = O - m[p] - ne, F = O / 2 - m[p] / 2 + A, H = Fl(Y, F, I), z = !l.arrow && Js(i) != null && F !== H && s.reference[p] / 2 - (F < Y ? j : ne) - m[p] / 2 < 0, P = z ? F < Y ? F - Y : F - I : 0;
2610
+ const A = y / 2 - S / 2, N = O / 2 - m[p] / 2 - 1, z = _s(d[b], N), ne = _s(d[w], N), Y = z, I = O - m[p] - ne, F = O / 2 - m[p] / 2 + A, H = Fl(Y, F, I), j = !l.arrow && Js(i) != null && F !== H && s.reference[p] / 2 - (F < Y ? z : ne) - m[p] / 2 < 0, P = j ? F < Y ? F - Y : F - I : 0;
2611
2611
  return {
2612
2612
  [h]: f[h] + P,
2613
2613
  data: {
2614
2614
  [h]: H,
2615
2615
  centerOffset: F - H - P,
2616
- ...z && {
2616
+ ...j && {
2617
2617
  alignmentOffset: P
2618
2618
  }
2619
2619
  },
2620
- reset: z
2620
+ reset: j
2621
2621
  };
2622
2622
  }
2623
2623
  }), Sv = function(t) {
@@ -2656,7 +2656,7 @@ const kv = (t) => ({
2656
2656
  placement: i,
2657
2657
  overflows: O
2658
2658
  }], !O.every((Y) => Y <= 0)) {
2659
- var N, j;
2659
+ var N, z;
2660
2660
  const Y = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, I = S[Y];
2661
2661
  if (I)
2662
2662
  return {
@@ -2668,12 +2668,12 @@ const kv = (t) => ({
2668
2668
  placement: I
2669
2669
  }
2670
2670
  };
2671
- let F = (j = A.filter((H) => H.overflows[0] <= 0).sort((H, z) => H.overflows[1] - z.overflows[1])[0]) == null ? void 0 : j.placement;
2671
+ let F = (z = A.filter((H) => H.overflows[0] <= 0).sort((H, j) => H.overflows[1] - j.overflows[1])[0]) == null ? void 0 : z.placement;
2672
2672
  if (!F)
2673
2673
  switch (h) {
2674
2674
  case "bestFit": {
2675
2675
  var ne;
2676
- const H = (ne = A.map((z) => [z.placement, z.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((z, P) => z[1] - P[1])[0]) == null ? void 0 : ne[0];
2676
+ const H = (ne = A.map((j) => [j.placement, j.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((j, P) => j[1] - P[1])[0]) == null ? void 0 : ne[0];
2677
2677
  H && (F = H);
2678
2678
  break;
2679
2679
  }
@@ -2770,7 +2770,7 @@ const Mv = function(t) {
2770
2770
  } = Ks(t, e), c = {
2771
2771
  x: n,
2772
2772
  y: r
2773
- }, u = await Hh(e, l), d = ha(Gr(i)), f = zh(d);
2773
+ }, u = await Hh(e, l), d = ha(Gr(i)), f = jh(d);
2774
2774
  let h = c[f], p = c[d];
2775
2775
  if (s) {
2776
2776
  const g = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", w = h + u[g], T = h - u[b];
@@ -2877,11 +2877,11 @@ function Wh(t) {
2877
2877
  const e = vr(t);
2878
2878
  return Ei(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : kn(e) && Zs(e) ? e : Wh(e);
2879
2879
  }
2880
- function jl(t, e, n) {
2880
+ function zl(t, e, n) {
2881
2881
  var r;
2882
2882
  e === void 0 && (e = []), n === void 0 && (n = !0);
2883
2883
  const i = Wh(t), s = i === ((r = t.ownerDocument) == null ? void 0 : r.body), o = Rt(i);
2884
- return s ? e.concat(o, o.visualViewport || [], Zs(i) ? i : [], o.frameElement && n ? jl(o.frameElement) : []) : e.concat(i, jl(i, [], n));
2884
+ return s ? e.concat(o, o.visualViewport || [], Zs(i) ? i : [], o.frameElement && n ? zl(o.frameElement) : []) : e.concat(i, zl(i, [], n));
2885
2885
  }
2886
2886
  function Yh(t) {
2887
2887
  const e = rn(t);
@@ -3047,7 +3047,7 @@ function Vv(t, e) {
3047
3047
  const n = e.get(t);
3048
3048
  if (n)
3049
3049
  return n;
3050
- let r = jl(t, [], !1).filter((a) => xn(a) && ei(a) !== "body"), i = null;
3050
+ let r = zl(t, [], !1).filter((a) => xn(a) && ei(a) !== "body"), i = null;
3051
3051
  const s = rn(t).position === "fixed";
3052
3052
  let o = s ? vr(t) : t;
3053
3053
  for (; xn(o) && !Ei(o); ) {
@@ -3129,7 +3129,7 @@ function Jh(t, e) {
3129
3129
  r = td(r, e);
3130
3130
  return r && Ei(r) && Ka(r) && !Vc(r) ? n : r || _v(t) || n;
3131
3131
  }
3132
- const zv = async function(t) {
3132
+ const jv = async function(t) {
3133
3133
  const e = this.getOffsetParent || Jh, n = this.getDimensions, r = await n(t.floating);
3134
3134
  return {
3135
3135
  reference: Fv(t.reference, await e(t.floating), t.strategy),
@@ -3141,7 +3141,7 @@ const zv = async function(t) {
3141
3141
  }
3142
3142
  };
3143
3143
  };
3144
- function jv(t) {
3144
+ function zv(t) {
3145
3145
  return rn(t).direction === "rtl";
3146
3146
  }
3147
3147
  const Hv = {
@@ -3149,12 +3149,12 @@ const Hv = {
3149
3149
  getDocumentElement: xr,
3150
3150
  getClippingRect: Bv,
3151
3151
  getOffsetParent: Jh,
3152
- getElementRects: zv,
3152
+ getElementRects: jv,
3153
3153
  getClientRects: $v,
3154
3154
  getDimensions: Lv,
3155
3155
  getScale: wi,
3156
3156
  isElement: xn,
3157
- isRTL: jv
3157
+ isRTL: zv
3158
3158
  }, Zh = Mv, Xh = Cv, Qh = Sv, Wv = kv, ep = (t, e, n) => {
3159
3159
  const r = /* @__PURE__ */ new Map(), i = {
3160
3160
  platform: Hv,
@@ -3399,7 +3399,7 @@ const gb = /* @__PURE__ */ xe(db, [["render", mb]]), yb = {}, vb = {
3399
3399
  function xb(t, e) {
3400
3400
  return k(), _("svg", vb, wb);
3401
3401
  }
3402
- const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3402
+ const jc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3403
3403
  key: 0,
3404
3404
  class: "mb-2 gap-2 wpic-form-label text-base text-zinc-600 dark:text-gray-500 flex items-center"
3405
3405
  }, Sb = { class: "" }, Ob = {
@@ -3410,7 +3410,7 @@ const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3410
3410
  class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
3411
3411
  }, Tb = {
3412
3412
  name: "WpicFormInput"
3413
- }, jc = /* @__PURE__ */ Object.assign(Tb, {
3413
+ }, zc = /* @__PURE__ */ Object.assign(Tb, {
3414
3414
  props: {
3415
3415
  label: String,
3416
3416
  info: String,
@@ -3429,7 +3429,7 @@ const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3429
3429
  "wpic-tools": "text-gray-800 bg-white border-gray-300 focus:border-lime-400 focus-within:border-lime-400 dark:bg-gray-930 dark:border-gray-920 dark:hover:bg-gray-920 dark:text-gray-400"
3430
3430
  }, r = {
3431
3431
  pmi: "border-opacity-50 border-zinc-300 text-zinc-400",
3432
- "wpic-tools": "!border-gray-200 !text-gray-400 !bg-gray-50"
3432
+ "wpic-tools": "border-gray-200! text-gray-400! bg-gray-50!"
3433
3433
  }, i = e;
3434
3434
  function s() {
3435
3435
  i("onClear");
@@ -3446,14 +3446,14 @@ const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3446
3446
  Fe(ge(t.info), 1)
3447
3447
  ]),
3448
3448
  default: Se(() => [
3449
- ce(zc, { class: "w-4 h-4 text-zinc-600" })
3449
+ ce(jc, { class: "w-4 h-4 text-zinc-600" })
3450
3450
  ]),
3451
3451
  _: 1
3452
3452
  })) : X("", !0)
3453
3453
  ])
3454
3454
  ])) : X("", !0),
3455
3455
  E("div", {
3456
- class: G(["wpic-input overflow-auto leading-none rounded flex relative border pr-4 items-center", {
3456
+ class: G(["wpic-input overflow-auto leading-none rounded-sm flex relative border pr-4 items-center", {
3457
3457
  "pl-4": !o.$slots.prepend,
3458
3458
  "pl-10": o.$slots.prepend,
3459
3459
  [`${n[$(oe).theme]}`]: !0,
@@ -3462,7 +3462,7 @@ const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3462
3462
  "h-12": t.large,
3463
3463
  [`${r[$(oe).theme]}`]: t.disabled,
3464
3464
  "cursor-pointer": !t.disabled,
3465
- "!border-red-600 focus-within:outline-red-600": t.invalid
3465
+ "border-red-600! focus-within:outline-red-600": t.invalid
3466
3466
  }])
3467
3467
  }, [
3468
3468
  o.$slots.prepend ? (k(), _("div", Ob, [
@@ -3472,7 +3472,7 @@ const zc = /* @__PURE__ */ xe(yb, [["render", xb]]), kb = {
3472
3472
  ])) : X("", !0),
3473
3473
  Oe(o.$slots, "default"),
3474
3474
  t.loading ? (k(), _("div", Cb, [
3475
- ce(ji, { class: "w-6 h-6 opacity-50" })
3475
+ ce(zi, { class: "w-6 h-6 opacity-50" })
3476
3476
  ])) : t.clearable ? (k(), _("div", {
3477
3477
  key: 2,
3478
3478
  onClick: _i(s, ["stop"]),
@@ -3502,10 +3502,10 @@ function Vb(t) {
3502
3502
  return e;
3503
3503
  }
3504
3504
  var Bb = Vb, Lb = Bb, Fb = /^\s+/;
3505
- function zb(t) {
3505
+ function jb(t) {
3506
3506
  return t && t.slice(0, Lb(t) + 1).replace(Fb, "");
3507
3507
  }
3508
- var jb = zb, Hb = Dn, Wb = Hb.Symbol, Hc = Wb, rd = Hc, sp = Object.prototype, Yb = sp.hasOwnProperty, Ub = sp.toString, is = rd ? rd.toStringTag : void 0;
3508
+ var zb = jb, Hb = Dn, Wb = Hb.Symbol, Hc = Wb, rd = Hc, sp = Object.prototype, Yb = sp.hasOwnProperty, Ub = sp.toString, is = rd ? rd.toStringTag : void 0;
3509
3509
  function qb(t) {
3510
3510
  var e = Yb.call(t, is), n = t[is];
3511
3511
  try {
@@ -3532,7 +3532,7 @@ var Qs = i1, s1 = Xs, o1 = Qs, a1 = "[object Symbol]";
3532
3532
  function l1(t) {
3533
3533
  return typeof t == "symbol" || o1(t) && s1(t) == a1;
3534
3534
  }
3535
- var c1 = l1, u1 = jb, od = ma, d1 = c1, ad = NaN, f1 = /^[-+]0x[0-9a-f]+$/i, h1 = /^0b[01]+$/i, p1 = /^0o[0-7]+$/i, m1 = parseInt;
3535
+ var c1 = l1, u1 = zb, od = ma, d1 = c1, ad = NaN, f1 = /^[-+]0x[0-9a-f]+$/i, h1 = /^0b[01]+$/i, p1 = /^0o[0-7]+$/i, m1 = parseInt;
3536
3536
  function g1(t) {
3537
3537
  if (typeof t == "number")
3538
3538
  return t;
@@ -3630,11 +3630,11 @@ function B1(t) {
3630
3630
  return V1(this.__data__, t) > -1;
3631
3631
  }
3632
3632
  var L1 = B1, F1 = ga;
3633
- function z1(t, e) {
3633
+ function j1(t, e) {
3634
3634
  var n = this.__data__, r = F1(n, t);
3635
3635
  return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
3636
3636
  }
3637
- var j1 = z1, H1 = M1, W1 = $1, Y1 = R1, U1 = L1, q1 = j1;
3637
+ var z1 = j1, H1 = M1, W1 = $1, Y1 = R1, U1 = L1, q1 = z1;
3638
3638
  function Yi(t) {
3639
3639
  var e = -1, n = t == null ? 0 : t.length;
3640
3640
  for (this.clear(); ++e < n; ) {
@@ -3711,10 +3711,10 @@ function Iw(t, e) {
3711
3711
  return $w(n) ? n : void 0;
3712
3712
  }
3713
3713
  var Ui = Iw, Rw = Ui, Vw = Dn, Bw = Rw(Vw, "Map"), Wc = Bw, Lw = Ui, Fw = Lw(Object, "create"), va = Fw, ud = va;
3714
- function zw() {
3714
+ function jw() {
3715
3715
  this.__data__ = ud ? ud(null) : {}, this.size = 0;
3716
3716
  }
3717
- var jw = zw;
3717
+ var zw = jw;
3718
3718
  function Hw(t) {
3719
3719
  var e = this.has(t) && delete this.__data__[t];
3720
3720
  return this.size -= e ? 1 : 0, e;
@@ -3738,7 +3738,7 @@ function ix(t, e) {
3738
3738
  var n = this.__data__;
3739
3739
  return this.size += this.has(t) ? 0 : 1, n[t] = nx && e === void 0 ? rx : e, this;
3740
3740
  }
3741
- var sx = ix, ox = jw, ax = Ww, lx = Jw, cx = tx, ux = sx;
3741
+ var sx = ix, ox = zw, ax = Ww, lx = Jw, cx = tx, ux = sx;
3742
3742
  function qi(t) {
3743
3743
  var e = -1, n = t == null ? 0 : t.length;
3744
3744
  for (this.clear(); ++e < n; ) {
@@ -3801,7 +3801,7 @@ Gi.prototype.get = Px;
3801
3801
  Gi.prototype.has = Ix;
3802
3802
  Gi.prototype.set = Rx;
3803
3803
  var up = Gi, Vx = ya, Bx = Wc, Lx = up, Fx = 200;
3804
- function zx(t, e) {
3804
+ function jx(t, e) {
3805
3805
  var n = this.__data__;
3806
3806
  if (n instanceof Vx) {
3807
3807
  var r = n.__data__;
@@ -3811,7 +3811,7 @@ function zx(t, e) {
3811
3811
  }
3812
3812
  return n.set(t, e), this.size = n.size, this;
3813
3813
  }
3814
- var jx = zx, Hx = ya, Wx = J1, Yx = X1, Ux = ew, qx = nw, Gx = jx;
3814
+ var zx = jx, Hx = ya, Wx = J1, Yx = X1, Ux = ew, qx = nw, Gx = zx;
3815
3815
  function Ki(t) {
3816
3816
  var e = this.__data__ = new Hx(t);
3817
3817
  this.size = e.size;
@@ -3933,12 +3933,12 @@ function Lk(t, e, n, r, i, s, o) {
3933
3933
  return !1;
3934
3934
  }
3935
3935
  var Fk = Lk;
3936
- function zk(t, e) {
3936
+ function jk(t, e) {
3937
3937
  for (var n = -1, r = e.length, i = t.length; ++n < r; )
3938
3938
  t[i + n] = e[n];
3939
3939
  return t;
3940
3940
  }
3941
- var jk = zk, Hk = Array.isArray, Yc = Hk, Wk = jk, Yk = Yc;
3941
+ var zk = jk, Hk = Array.isArray, Yc = Hk, Wk = zk, Yk = Yc;
3942
3942
  function Uk(t, e, n) {
3943
3943
  var r = e(t);
3944
3944
  return Yk(t) ? r : Wk(r, n(t));
@@ -3973,17 +3973,17 @@ var uS = cS, gd = uS, dS = Qs, fp = Object.prototype, fS = fp.hasOwnProperty, hS
3973
3973
  return arguments;
3974
3974
  }()) ? gd : function(t) {
3975
3975
  return dS(t) && fS.call(t, "callee") && !hS.call(t, "callee");
3976
- }, mS = pS, zo = { exports: {} };
3976
+ }, mS = pS, jo = { exports: {} };
3977
3977
  function gS() {
3978
3978
  return !1;
3979
3979
  }
3980
3980
  var yS = gS;
3981
- zo.exports;
3981
+ jo.exports;
3982
3982
  (function(t, e) {
3983
3983
  var n = Dn, r = yS, i = e && !e.nodeType && e, s = i && !0 && t && !t.nodeType && t, o = s && s.exports === i, a = o ? n.Buffer : void 0, l = a ? a.isBuffer : void 0, c = l || r;
3984
3984
  t.exports = c;
3985
- })(zo, zo.exports);
3986
- var hp = zo.exports, vS = 9007199254740991, bS = /^(?:0|[1-9]\d*)$/;
3985
+ })(jo, jo.exports);
3986
+ var hp = jo.exports, vS = 9007199254740991, bS = /^(?:0|[1-9]\d*)$/;
3987
3987
  function wS(t, e) {
3988
3988
  var n = typeof t;
3989
3989
  return e = e ?? vS, !!e && (n == "number" || n != "symbol" && bS.test(t)) && t > -1 && t % 1 == 0 && t < e;
@@ -3992,9 +3992,9 @@ var xS = wS, kS = 9007199254740991;
3992
3992
  function SS(t) {
3993
3993
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= kS;
3994
3994
  }
3995
- var pp = SS, OS = Xs, MS = pp, CS = Qs, TS = "[object Arguments]", _S = "[object Array]", DS = "[object Boolean]", ES = "[object Date]", AS = "[object Error]", NS = "[object Function]", $S = "[object Map]", PS = "[object Number]", IS = "[object Object]", RS = "[object RegExp]", VS = "[object Set]", BS = "[object String]", LS = "[object WeakMap]", FS = "[object ArrayBuffer]", zS = "[object DataView]", jS = "[object Float32Array]", HS = "[object Float64Array]", WS = "[object Int8Array]", YS = "[object Int16Array]", US = "[object Int32Array]", qS = "[object Uint8Array]", GS = "[object Uint8ClampedArray]", KS = "[object Uint16Array]", JS = "[object Uint32Array]", Ie = {};
3996
- Ie[jS] = Ie[HS] = Ie[WS] = Ie[YS] = Ie[US] = Ie[qS] = Ie[GS] = Ie[KS] = Ie[JS] = !0;
3997
- Ie[TS] = Ie[_S] = Ie[FS] = Ie[DS] = Ie[zS] = Ie[ES] = Ie[AS] = Ie[NS] = Ie[$S] = Ie[PS] = Ie[IS] = Ie[RS] = Ie[VS] = Ie[BS] = Ie[LS] = !1;
3995
+ var pp = SS, OS = Xs, MS = pp, CS = Qs, TS = "[object Arguments]", _S = "[object Array]", DS = "[object Boolean]", ES = "[object Date]", AS = "[object Error]", NS = "[object Function]", $S = "[object Map]", PS = "[object Number]", IS = "[object Object]", RS = "[object RegExp]", VS = "[object Set]", BS = "[object String]", LS = "[object WeakMap]", FS = "[object ArrayBuffer]", jS = "[object DataView]", zS = "[object Float32Array]", HS = "[object Float64Array]", WS = "[object Int8Array]", YS = "[object Int16Array]", US = "[object Int32Array]", qS = "[object Uint8Array]", GS = "[object Uint8ClampedArray]", KS = "[object Uint16Array]", JS = "[object Uint32Array]", Ie = {};
3996
+ Ie[zS] = Ie[HS] = Ie[WS] = Ie[YS] = Ie[US] = Ie[qS] = Ie[GS] = Ie[KS] = Ie[JS] = !0;
3997
+ Ie[TS] = Ie[_S] = Ie[FS] = Ie[DS] = Ie[jS] = Ie[ES] = Ie[AS] = Ie[NS] = Ie[$S] = Ie[PS] = Ie[IS] = Ie[RS] = Ie[VS] = Ie[BS] = Ie[LS] = !1;
3998
3998
  function ZS(t) {
3999
3999
  return CS(t) && MS(t.length) && !!Ie[OS(t)];
4000
4000
  }
@@ -4004,8 +4004,8 @@ function QS(t) {
4004
4004
  return t(e);
4005
4005
  };
4006
4006
  }
4007
- var eO = QS, jo = { exports: {} };
4008
- jo.exports;
4007
+ var eO = QS, zo = { exports: {} };
4008
+ zo.exports;
4009
4009
  (function(t, e) {
4010
4010
  var n = ip, r = e && !e.nodeType && e, i = r && !0 && t && !t.nodeType && t, s = i && i.exports === r, o = s && n.process, a = function() {
4011
4011
  try {
@@ -4015,8 +4015,8 @@ jo.exports;
4015
4015
  }
4016
4016
  }();
4017
4017
  t.exports = a;
4018
- })(jo, jo.exports);
4019
- var tO = jo.exports, nO = XS, rO = eO, yd = tO, vd = yd && yd.isTypedArray, iO = vd ? rO(vd) : nO, mp = iO, sO = sS, oO = mS, aO = Yc, lO = hp, cO = xS, uO = mp, dO = Object.prototype, fO = dO.hasOwnProperty;
4018
+ })(zo, zo.exports);
4019
+ var tO = zo.exports, nO = XS, rO = eO, yd = tO, vd = yd && yd.isTypedArray, iO = vd ? rO(vd) : nO, mp = iO, sO = sS, oO = mS, aO = Yc, lO = hp, cO = xS, uO = mp, dO = Object.prototype, fO = dO.hasOwnProperty;
4020
4020
  function hO(t, e) {
4021
4021
  var n = aO(t), r = !n && oO(t), i = !n && !r && lO(t), s = !n && !r && !i && uO(t), o = n || r || i || s, a = o ? sO(t.length, String) : [], l = a.length;
4022
4022
  for (var c in t)
@@ -4056,10 +4056,10 @@ function RO(t) {
4056
4056
  return IO(t) ? $O(t) : PO(t);
4057
4057
  }
4058
4058
  var VO = RO, BO = qk, LO = rS, FO = VO;
4059
- function zO(t) {
4059
+ function jO(t) {
4060
4060
  return BO(t, FO, LO);
4061
4061
  }
4062
- var jO = zO, bd = jO, HO = 1, WO = Object.prototype, YO = WO.hasOwnProperty;
4062
+ var zO = jO, bd = zO, HO = 1, WO = Object.prototype, YO = WO.hasOwnProperty;
4063
4063
  function UO(t, e, n, r, i, s) {
4064
4064
  var o = n & HO, a = bd(t), l = a.length, c = bd(e), u = c.length;
4065
4065
  if (l != u && !o)
@@ -4185,7 +4185,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4185
4185
  },
4186
4186
  loading: Boolean
4187
4187
  },
4188
- emits: ["blur", "input", "change", "update:modelValue"],
4188
+ emits: ["blur-sm", "input", "change", "update:modelValue"],
4189
4189
  setup(t, { expose: e, emit: n }) {
4190
4190
  const r = t, i = ue(r.options);
4191
4191
  mt(() => r.options, () => {
@@ -4238,7 +4238,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4238
4238
  }
4239
4239
  }
4240
4240
  const p = {
4241
- pmi: "group-[.is-selected]:bg-violet-50 group-[.is-selected]:hover:bg-violet-100",
4241
+ pmi: "group-[.is-selected]:bg-violet-50 hover:group-[.is-selected]:bg-violet-100",
4242
4242
  "wpic-tools": "hover:bg-gray-50 group-[.is-selected]:text-lime-500 group-[.is-selected]:font-medium text-gray-600 dark:hover:bg-white/5 dark:text-gray-400 dark:group-[.is-selected]:text-lime-700"
4243
4243
  }, m = ae(() => {
4244
4244
  var w, T;
@@ -4269,7 +4269,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4269
4269
  disabled: t.disabled
4270
4270
  }, {
4271
4271
  default: Se(({ isHidden: y }) => [
4272
- ce(jc, {
4272
+ ce(zc, {
4273
4273
  disabled: t.disabled,
4274
4274
  small: t.small,
4275
4275
  invalid: t.isInvalid,
@@ -4367,9 +4367,9 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4367
4367
  }), BM = {
4368
4368
  key: 0,
4369
4369
  class: "mb-2 gap-2 wpic-form-label text-base text-zinc-600 dark:text-zinc-300 flex items-center"
4370
- }, LM = { class: "" }, FM = ["value", "disabled", "rows", "placeholder"], zM = {
4370
+ }, LM = { class: "" }, FM = ["value", "disabled", "rows", "placeholder"], jM = {
4371
4371
  name: "WpicTextarea"
4372
- }, bp = /* @__PURE__ */ Object.assign(zM, {
4372
+ }, bp = /* @__PURE__ */ Object.assign(jM, {
4373
4373
  props: {
4374
4374
  modelValue: {},
4375
4375
  label: String,
@@ -4425,7 +4425,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4425
4425
  Fe(ge(c.info), 1)
4426
4426
  ]),
4427
4427
  default: Se(() => [
4428
- ce(zc, { class: "w-4 h-4 text-zinc-600" })
4428
+ ce(jc, { class: "w-4 h-4 text-zinc-600" })
4429
4429
  ]),
4430
4430
  _: 1
4431
4431
  })) : X("", !0)
@@ -4434,7 +4434,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4434
4434
  E("textarea", {
4435
4435
  ref_key: "myTextarea",
4436
4436
  ref: i,
4437
- class: G(["relative appearance-none outline-none flex w-full h-full rounded px-4 py-2 bg-transparent opacity-100 active:border-lime-400 focus:border-lime-400 focus-visible:border-none placeholder:opacity-30 dark:text-gray-400", {
4437
+ class: G(["relative appearance-none outline-hidden flex w-full h-full rounded-sm px-4 py-2 bg-transparent opacity-100 active:border-lime-400 focus:border-lime-400 focus-visible:border-none placeholder:opacity-30 dark:text-gray-400", {
4438
4438
  "cursor-not-allowed": t.disabled,
4439
4439
  "resize-none": t.noResize,
4440
4440
  "overflow-hidden": t.autoResize && !s.value,
@@ -4452,7 +4452,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4452
4452
  }, null, 46, FM)
4453
4453
  ], 64));
4454
4454
  }
4455
- }), jM = {}, HM = {
4455
+ }), zM = {}, HM = {
4456
4456
  xmlns: "http://www.w3.org/2000/svg",
4457
4457
  viewBox: "0 0 24 24",
4458
4458
  fill: "currentColor"
@@ -4467,7 +4467,7 @@ const Nd = /* @__PURE__ */ rp(DM), EM = {
4467
4467
  function qM(t, e) {
4468
4468
  return k(), _("svg", HM, UM);
4469
4469
  }
4470
- const GM = /* @__PURE__ */ xe(jM, [["render", qM]]), KM = {}, JM = {
4470
+ const GM = /* @__PURE__ */ xe(zM, [["render", qM]]), KM = {}, JM = {
4471
4471
  xmlns: "http://www.w3.org/2000/svg",
4472
4472
  viewBox: "0 0 24 24",
4473
4473
  fill: "currentColor"
@@ -4627,8 +4627,8 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4627
4627
  pmi: "shadow-inner border-zinc-400 focus-within:border-zinc-500 focus-within:outline focus-within:outline-2 focus-within:outline-offset-3 bg-zinc-100 dark:bg-zinc-700/25 dark:border-zinc-700/50 dark:text-zinc-300",
4628
4628
  "wpic-tools": "text-gray-800 disabled:text-gray-400 disabled:border-gray-200 bg-white border-gray-300 dark:bg-gray-930 dark:border-gray-920 focus-within:border-lime-400 dark:focus-within:bg-gray-920 disabled:bg-gray-50"
4629
4629
  }, i = {
4630
- pmi: "rounded-sm 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",
4631
- "wpic-tools": "rounded group-[.is-active]:border-gray-300 group-[.is-active]:dark:bg-gray-930 group-[.is-active]:dark:border-gray-920 group-[.is-selected]:bg-lime-600 group-[.is-selected]:border-lime-600 group-[.is-selected]:text-white group-[.is-disabled]:bg-opacity-50 group-[.is-disabled]:dark:border-opacity-10 group-[.is-disabled]:border-opacity-75 group-[.is-disabled]:text-opacity-75"
4630
+ 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",
4631
+ "wpic-tools": "rounded-sm group-[.is-active]:border-gray-300 dark:group-[.is-active]:bg-gray-930 dark:group-[.is-active]:border-gray-920 group-[.is-selected]:bg-lime-600 group-[.is-selected]:border-lime-600 group-[.is-selected]:text-white group-[.is-disabled]:bg-opacity-50 dark:group-[.is-disabled]:border-opacity-10 group-[.is-disabled]:border-opacity-75 group-[.is-disabled]:text-opacity-75"
4632
4632
  }, s = t, o = ae(() => s.name ? s.name : Fc()), a = Fy(o.value), l = ae(() => {
4633
4633
  if (s.label)
4634
4634
  return s.label;
@@ -4696,7 +4696,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4696
4696
  }, null, 8, dC)
4697
4697
  ]),
4698
4698
  default: Se(() => [
4699
- ce(zc, { class: "w-4 h-4 text-zinc-600" })
4699
+ ce(jc, { class: "w-4 h-4 text-zinc-600" })
4700
4700
  ]),
4701
4701
  _: 1
4702
4702
  })) : X("", !0)
@@ -4719,7 +4719,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4719
4719
  "is-active": !t.disabled && !t.modelValue,
4720
4720
  "is-selected": t.modelValue === !0
4721
4721
  }]),
4722
- onClick: A[0] || (A[0] = (j) => t.disabled ? void 0 : m(t.modelValue))
4722
+ onClick: A[0] || (A[0] = (z) => t.disabled ? void 0 : m(t.modelValue))
4723
4723
  }, [
4724
4724
  E("div", {
4725
4725
  class: G(["w-4 h-4 border cursor-pointer", {
@@ -4766,7 +4766,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4766
4766
  type: "radio",
4767
4767
  name: t.name,
4768
4768
  value: t.radioValue,
4769
- onChange: A[1] || (A[1] = (...j) => O.onChange && O.onChange(...j)),
4769
+ onChange: A[1] || (A[1] = (...z) => O.onChange && O.onChange(...z)),
4770
4770
  checked: t.radioValue == t.modelValue
4771
4771
  }, null, 40, fC),
4772
4772
  l.value ? (k(), _("span", {
@@ -4785,7 +4785,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4785
4785
  name: o.value
4786
4786
  }, {
4787
4787
  default: Se(({ field: N }) => {
4788
- var j;
4788
+ var z;
4789
4789
  return [
4790
4790
  ce(vp, {
4791
4791
  modelValue: t.modelValue,
@@ -4802,7 +4802,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4802
4802
  batchSelect: t.batchSelect,
4803
4803
  allSelectedText: t.allSelectedText,
4804
4804
  isInvalid: !!(t.error && $(a)),
4805
- required: t.required || ((j = f.value) == null ? void 0 : j.indexOf("required")) >= 0,
4805
+ required: t.required || ((z = f.value) == null ? void 0 : z.indexOf("required")) >= 0,
4806
4806
  label: l.value,
4807
4807
  placeholder: t.placeholder,
4808
4808
  loading: t.loading
@@ -4812,13 +4812,13 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4812
4812
  _: 1
4813
4813
  }, 8, ["modelValue", "rules", "name"])) : (k(), _("div", {
4814
4814
  key: 4,
4815
- class: G(["wpic-input rounded flex relative border", {
4815
+ class: G(["wpic-input rounded-sm flex relative border", {
4816
4816
  [`${r[$(oe).theme]}`]: !0,
4817
- "!bg-transparent": t.transparent,
4817
+ "bg-transparent!": t.transparent,
4818
4818
  "h-10": !t.textarea && !t.large,
4819
4819
  "h-12": !t.textarea && t.large,
4820
4820
  "border-opacity-50 border-zinc-300 text-zinc-400": t.disabled,
4821
- "!border-red-600 focus-within:outline-red-600 dark:!border-red-400/70": $(a)
4821
+ "border-red-600! focus-within:outline-red-600 dark:border-red-400/70!": $(a)
4822
4822
  }])
4823
4823
  }, [
4824
4824
  O.$slots.prepend ? (k(), _("div", hC, [
@@ -4861,7 +4861,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4861
4861
  ref: T,
4862
4862
  autocomplete: "off",
4863
4863
  style: { "z-index": "1" },
4864
- class: G(["flex w-full h-full rounded pr-4 bg-transparent outline-none appearance-none dark:text-gray-400 dark:placeholder:text-gray-700", { "pl-4": !O.$slots.prepend, "pl-12": O.$slots.prepend, "py-2": t.textarea, "cursor-not-allowed": t.disabled }]),
4864
+ class: G(["flex w-full h-full rounded-sm pr-4 bg-transparent outline-hidden appearance-none dark:text-gray-400 dark:placeholder:text-gray-700", { "pl-4": !O.$slots.prepend, "pl-12": O.$slots.prepend, "py-2": t.textarea, "cursor-not-allowed": t.disabled }]),
4865
4865
  type: u.value,
4866
4866
  min: t.min,
4867
4867
  max: t.max,
@@ -4880,7 +4880,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
4880
4880
  onClick: _i(b, ["stop"]),
4881
4881
  class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
4882
4882
  }, [
4883
- ce(ji, { class: "w-6 h-6 opacity-50" })
4883
+ ce(zi, { class: "w-6 h-6 opacity-50" })
4884
4884
  ])) : t.clearable && t.modelValue ? (k(), _("div", {
4885
4885
  key: 4,
4886
4886
  onClick: _i(b, ["stop"]),
@@ -5102,10 +5102,10 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
5102
5102
  setup(t) {
5103
5103
  const e = t, n = ae(() => e.percent ? e.percent : 100 / e.max * e.value), r = {
5104
5104
  pmi: "h-2 ring-1 rounded-full ring-zinc-400",
5105
- "wpic-tools": "bg-gray-100 rounded-sm h-4 dark:bg-gray-900"
5105
+ "wpic-tools": "bg-gray-100 rounded-xs h-4 dark:bg-gray-900"
5106
5106
  }, i = {
5107
5107
  pmi: "bg-cyan-400 rounded-full ring-1 ring-cyan-400",
5108
- "wpic-tools": "bg-lime-500 rounded-sm dark:bg-lime-700"
5108
+ "wpic-tools": "bg-lime-500 rounded-xs dark:bg-lime-700"
5109
5109
  };
5110
5110
  return (s, o) => (k(), _("div", {
5111
5111
  class: G(["relative flex", { "mb-4": t.indicators }])
@@ -5154,7 +5154,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
5154
5154
  r("clear");
5155
5155
  }
5156
5156
  return (s, o) => (k(), _("div", {
5157
- class: G(["wpic-tag select-none border inline-flex rounded h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-2": t.clearable, [n[$(oe).theme]]: !0 }])
5157
+ class: G(["wpic-tag select-none border inline-flex rounded-sm h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-2": t.clearable, [n[$(oe).theme]]: !0 }])
5158
5158
  }, [
5159
5159
  E("span", PC, [
5160
5160
  Oe(s.$slots, "default")
@@ -5188,8 +5188,8 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
5188
5188
  }), LC = (t) => (O0("data-v-947735f2"), t = t(), M0(), t), FC = {
5189
5189
  key: 1,
5190
5190
  class: "w-full min-h-10 h-full rounded-lg bg-gray-100 dark:bg-gray-940 relative overflow-hidden"
5191
- }, zC = /* @__PURE__ */ LC(() => /* @__PURE__ */ E("div", { class: "absolute top-0 left-0 h-full w-full shimmer dark:dark-shimmer" }, null, -1)), jC = [
5192
- zC
5191
+ }, jC = /* @__PURE__ */ LC(() => /* @__PURE__ */ E("div", { class: "absolute top-0 left-0 h-full w-full shimmer dark:dark-shimmer" }, null, -1)), zC = [
5192
+ jC
5193
5193
  ], HC = {
5194
5194
  name: "WpicLoadingPanel"
5195
5195
  }, WC = /* @__PURE__ */ Object.assign(HC, {
@@ -5207,7 +5207,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
5207
5207
  return (e, n) => (k(), _("div", {
5208
5208
  class: G(["w-full h-full flex items-center justify-center", { "py-3": !t.wave }])
5209
5209
  }, [
5210
- t.wave ? (k(), _("div", FC, jC)) : (k(), be(ji, {
5210
+ t.wave ? (k(), _("div", FC, zC)) : (k(), be(zi, {
5211
5211
  key: 0,
5212
5212
  color: t.color,
5213
5213
  class: "w-10 h-10"
@@ -5229,7 +5229,7 @@ const lC = /* @__PURE__ */ xe(rC, [["render", aC]]), cC = {
5229
5229
  "wpic-tools": "bg-lime-500 border-lime-500 text-white dark:bg-lime-700 dark:border-lime-700"
5230
5230
  };
5231
5231
  return (r, i) => (k(), _("div", {
5232
- class: G(["border rounded flex items-center justify-center w-10 h-10 cursor-pointer", {
5232
+ class: G(["border rounded-sm flex items-center justify-center w-10 h-10 cursor-pointer", {
5233
5233
  [e[$(oe).theme]]: !t.active,
5234
5234
  [n[$(oe).theme]]: t.active
5235
5235
  }])
@@ -5478,8 +5478,8 @@ function AT(t, e) {
5478
5478
  const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-auto" }, PT = { class: "w-full rounded-lg" }, IT = ["width"], RT = ["width"], VT = {
5479
5479
  key: 0,
5480
5480
  class: "rounded-t-lg"
5481
- }, BT = ["onClick"], LT = { class: "rounded-b-lg relative" }, FT = { key: 0 }, zT = /* @__PURE__ */ E("td", { class: "text-center py-3" }, "   ", -1), jT = [
5482
- zT
5481
+ }, BT = ["onClick"], LT = { class: "rounded-b-lg relative" }, FT = { key: 0 }, jT = /* @__PURE__ */ E("td", { class: "text-center py-3" }, "   ", -1), zT = [
5482
+ jT
5483
5483
  ], HT = { key: 1 }, WT = {
5484
5484
  key: 0,
5485
5485
  class: "text-center text-gray-400 py-3"
@@ -5561,13 +5561,13 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5561
5561
  (h.default && h.default() || []).forEach((v) => {
5562
5562
  var O, A;
5563
5563
  ((O = v.type) == null ? void 0 : O.name) === "WpicTableColumn" ? y.push(v) : (A = v.children) != null && A.length && v.children.forEach((N) => {
5564
- var j;
5565
- ((j = N.type) == null ? void 0 : j.name) === "WpicTableColumn" && y.push(N);
5564
+ var z;
5565
+ ((z = N.type) == null ? void 0 : z.name) === "WpicTableColumn" && y.push(N);
5566
5566
  });
5567
5567
  }), p.value = y.map((v) => {
5568
- let O = v.children, A = v.props || {}, { field: N, label: j, help: ne, width: Y, minWidth: I, maxWidth: F, sortable: H, selectable: z, render: P, type: ee, align: Te, visible: tt, noPadding: ot } = T(v.type.props, A);
5568
+ let O = v.children, A = v.props || {}, { field: N, label: z, help: ne, width: Y, minWidth: I, maxWidth: F, sortable: H, selectable: j, render: P, type: ee, align: Te, visible: tt, noPadding: ot } = T(v.type.props, A);
5569
5569
  return {
5570
- label: j,
5570
+ label: z,
5571
5571
  help: ne,
5572
5572
  width: Y,
5573
5573
  minWidth: I,
@@ -5575,7 +5575,7 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5575
5575
  type: ee,
5576
5576
  align: Te,
5577
5577
  sortable: H,
5578
- selectable: z,
5578
+ selectable: j,
5579
5579
  field: N,
5580
5580
  render: P,
5581
5581
  children: O,
@@ -5670,9 +5670,9 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5670
5670
  E("div", {
5671
5671
  class: G(["inset-0 z-10 absolute flex items-center justify-center", [u[$(oe).theme]]])
5672
5672
  }, [
5673
- ce(ji, { class: "w-6 h-6" })
5673
+ ce(zi, { class: "w-6 h-6" })
5674
5674
  ], 2),
5675
- t.data.length ? X("", !0) : (k(), _("tr", FT, jT))
5675
+ t.data.length ? X("", !0) : (k(), _("tr", FT, zT))
5676
5676
  ], 64)) : X("", !0),
5677
5677
  t.totalItem && t.totalOnTop ? (k(), be($d, {
5678
5678
  key: 1,
@@ -5682,7 +5682,7 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5682
5682
  totalItem: t.totalItem
5683
5683
  }, null, 8, ["columns", "noXPadding", "totalItem"])) : X("", !0),
5684
5684
  (k(!0), _($e, null, lt(t.data, (S, v) => {
5685
- var O, A, N, j, ne;
5685
+ var O, A, N, z, ne;
5686
5686
  return k(), _($e, {
5687
5687
  key: `tr_${v}`
5688
5688
  }, [
@@ -5725,14 +5725,14 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5725
5725
  var F, H;
5726
5726
  return k(), be(Gl, {
5727
5727
  class: G(["lg:text-base h-full table-cell", {
5728
- "text-sm lg:text-sm !py-1": t.small,
5729
- "sticky left-0 shadow": I === 0,
5728
+ "text-sm lg:text-sm py-1!": t.small,
5729
+ "sticky left-0 shadow-sm": I === 0,
5730
5730
  [`${l[$(oe).theme]}`]: !0,
5731
5731
  [`${c[$(oe).theme]}`]: t.stripe,
5732
5732
  "py-3 first:pl-6 pr-6": !Y.noPadding,
5733
5733
  "first:pl-0 last:pr-0": t.noXPadding,
5734
- "last:rounded-br-lg": v === ((F = t.data) == null ? void 0 : F.length) - 1 && !t.totalItem && !p.value.find((z) => z.type == "expand") && !t.noRadius,
5735
- "first:rounded-bl-lg": v === ((H = t.data) == null ? void 0 : H.length) - 1 && !t.totalItem && !p.value.find((z) => z.type == "expand") && !t.noRadius,
5734
+ "last:rounded-br-lg": v === ((F = t.data) == null ? void 0 : F.length) - 1 && !t.totalItem && !p.value.find((j) => j.type == "expand") && !t.noRadius,
5735
+ "first:rounded-bl-lg": v === ((H = t.data) == null ? void 0 : H.length) - 1 && !t.totalItem && !p.value.find((j) => j.type == "expand") && !t.noRadius,
5736
5736
  "text-center justify-center": Y.align == "center",
5737
5737
  "text-right justify-end": Y.align == "right",
5738
5738
  "align-top py-5": t.valign == "top"
@@ -5754,13 +5754,13 @@ const NT = /* @__PURE__ */ xe(TT, [["render", AT]]), $T = { class: "overflow-aut
5754
5754
  }, "tr border-b last:border-b-0 overflow-hidden"])
5755
5755
  }, [
5756
5756
  ce(Gl, {
5757
- class: G(["lg:text-base !bg-gray-50 dark:!bg-gray-940", {
5757
+ class: G(["lg:text-base bg-gray-50! dark:bg-gray-940!", {
5758
5758
  [`${l[$(oe).theme]}`]: !0,
5759
5759
  "py-3 first:pl-6 pr-6": !((O = p.value.find((Y) => Y.type == "expand")) != null && O.noPadding),
5760
5760
  "p-0": (A = p.value.find((Y) => Y.type == "expand")) == null ? void 0 : A.noPadding,
5761
5761
  "first:pl-0 last:pr-0": t.noXPadding,
5762
5762
  "last:rounded-br-lg": v === ((N = t.data) == null ? void 0 : N.length) - 1 && !t.totalItem,
5763
- "first:rounded-bl-lg": v === ((j = t.data) == null ? void 0 : j.length) - 1 && !t.totalItem,
5763
+ "first:rounded-bl-lg": v === ((z = t.data) == null ? void 0 : z.length) - 1 && !t.totalItem,
5764
5764
  "text-center": p.value.find((Y) => Y.type == "expand").align == "center",
5765
5765
  "text-right": p.value.find((Y) => Y.type == "expand").align == "right"
5766
5766
  }]),
@@ -6839,7 +6839,7 @@ class Uo {
6839
6839
  }
6840
6840
  }
6841
6841
  const ZT = /* @__PURE__ */ Object.create(null);
6842
- let zr = class Zl {
6842
+ let jr = class Zl {
6843
6843
  /**
6844
6844
  @internal
6845
6845
  */
@@ -7200,8 +7200,8 @@ let zr = class Zl {
7200
7200
  return e.nodeType(n.type).create(n.attrs, i, r);
7201
7201
  }
7202
7202
  };
7203
- zr.prototype.text = void 0;
7204
- class qo extends zr {
7203
+ jr.prototype.text = void 0;
7204
+ class qo extends jr {
7205
7205
  /**
7206
7206
  @internal
7207
7207
  */
@@ -7691,7 +7691,7 @@ let Rd = class Fp {
7691
7691
  create(e = null, n, r) {
7692
7692
  if (this.isText)
7693
7693
  throw new Error("NodeType.create can't construct text nodes");
7694
- return new zr(this, this.computeAttrs(e), V.from(n), Ae.setFrom(r));
7694
+ return new jr(this, this.computeAttrs(e), V.from(n), Ae.setFrom(r));
7695
7695
  }
7696
7696
  /**
7697
7697
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -7699,7 +7699,7 @@ let Rd = class Fp {
7699
7699
  if it doesn't match.
7700
7700
  */
7701
7701
  createChecked(e = null, n, r) {
7702
- return n = V.from(n), this.checkContent(n), new zr(this, this.computeAttrs(e), n, Ae.setFrom(r));
7702
+ return n = V.from(n), this.checkContent(n), new jr(this, this.computeAttrs(e), n, Ae.setFrom(r));
7703
7703
  }
7704
7704
  /**
7705
7705
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -7717,7 +7717,7 @@ let Rd = class Fp {
7717
7717
  n = o.append(n);
7718
7718
  }
7719
7719
  let i = this.contentMatch.matchFragment(n), s = i && i.fillBefore(V.empty, !0);
7720
- return s ? new zr(this, e, n.append(s), Ae.setFrom(r)) : null;
7720
+ return s ? new jr(this, e, n.append(s), Ae.setFrom(r)) : null;
7721
7721
  }
7722
7722
  /**
7723
7723
  Returns true if the given fragment is valid content for this node
@@ -7907,7 +7907,7 @@ class l2 {
7907
7907
  bound.
7908
7908
  */
7909
7909
  nodeFromJSON(e) {
7910
- return zr.fromJSON(this, e);
7910
+ return jr.fromJSON(this, e);
7911
7911
  }
7912
7912
  /**
7913
7913
  Deserialize a mark from its JSON representation. This method is
@@ -8056,7 +8056,7 @@ class Ai {
8056
8056
  return e.cached.domParser || (e.cached.domParser = new Ai(e, Ai.schemaRules(e)));
8057
8057
  }
8058
8058
  }
8059
- const zp = {
8059
+ const jp = {
8060
8060
  address: !0,
8061
8061
  article: !0,
8062
8062
  aside: !0,
@@ -8096,7 +8096,7 @@ const zp = {
8096
8096
  script: !0,
8097
8097
  style: !0,
8098
8098
  title: !0
8099
- }, jp = { ol: !0, ul: !0 }, Go = 1, Ko = 2, vs = 4;
8099
+ }, zp = { ol: !0, ul: !0 }, Go = 1, Ko = 2, vs = 4;
8100
8100
  function Bd(t, e, n) {
8101
8101
  return e != null ? (e ? Go : 0) | (e === "full" ? Ko : 0) : t && t.whitespace == "pre" ? Go | Ko : n & ~vs;
8102
8102
  }
@@ -8141,7 +8141,7 @@ class yo {
8141
8141
  }
8142
8142
  }
8143
8143
  inlineContext(e) {
8144
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !zp.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8144
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !jp.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8145
8145
  }
8146
8146
  }
8147
8147
  class Ld {
@@ -8195,14 +8195,14 @@ class Ld {
8195
8195
  // none is found, the element's content nodes are added directly.
8196
8196
  addElement(e, n) {
8197
8197
  let r = e.nodeName.toLowerCase(), i;
8198
- jp.hasOwnProperty(r) && this.parser.normalizeLists && f2(e);
8198
+ zp.hasOwnProperty(r) && this.parser.normalizeLists && f2(e);
8199
8199
  let s = this.options.ruleFromNode && this.options.ruleFromNode(e) || (i = this.parser.matchTag(e, this, n));
8200
8200
  if (s ? s.ignore : d2.hasOwnProperty(r))
8201
8201
  this.findInside(e), this.ignoreFallback(e);
8202
8202
  else if (!s || s.skip || s.closeParent) {
8203
8203
  s && s.closeParent ? this.open = Math.max(0, this.open - 1) : s && s.skip.nodeType && (e = s.skip);
8204
8204
  let o, a = this.top, l = this.needsBlock;
8205
- if (zp.hasOwnProperty(r))
8205
+ if (jp.hasOwnProperty(r))
8206
8206
  a.content.length && a.content[0].isInline && this.open && (this.open--, a = this.top), o = !0, a.type || (this.needsBlock = !0);
8207
8207
  else if (!e.firstChild) {
8208
8208
  this.leafFallback(e);
@@ -8433,7 +8433,7 @@ class Ld {
8433
8433
  function f2(t) {
8434
8434
  for (let e = t.firstChild, n = null; e; e = e.nextSibling) {
8435
8435
  let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
8436
- r && jp.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
8436
+ r && zp.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
8437
8437
  }
8438
8438
  }
8439
8439
  function h2(t, e) {
@@ -8599,17 +8599,17 @@ class vn {
8599
8599
  This can be useful as a base to build a custom serializer from.
8600
8600
  */
8601
8601
  static nodesFromSchema(e) {
8602
- let n = zd(e.nodes);
8602
+ let n = jd(e.nodes);
8603
8603
  return n.text || (n.text = (r) => r.text), n;
8604
8604
  }
8605
8605
  /**
8606
8606
  Gather the serializers in a schema's mark specs into an object.
8607
8607
  */
8608
8608
  static marksFromSchema(e) {
8609
- return zd(e.marks);
8609
+ return jd(e.marks);
8610
8610
  }
8611
8611
  }
8612
- function zd(t) {
8612
+ function jd(t) {
8613
8613
  let e = {};
8614
8614
  for (let n in t) {
8615
8615
  let r = t[n].spec.toDOM;
@@ -8624,7 +8624,7 @@ const Hp = 65535, Wp = Math.pow(2, 16);
8624
8624
  function g2(t, e) {
8625
8625
  return t + e * Wp;
8626
8626
  }
8627
- function jd(t) {
8627
+ function zd(t) {
8628
8628
  return t & Hp;
8629
8629
  }
8630
8630
  function y2(t) {
@@ -8681,7 +8681,7 @@ class $t {
8681
8681
  @internal
8682
8682
  */
8683
8683
  recover(e) {
8684
- let n = 0, r = jd(e);
8684
+ let n = 0, r = zd(e);
8685
8685
  if (!this.inverted)
8686
8686
  for (let i = 0; i < r; i++)
8687
8687
  n += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
@@ -8718,7 +8718,7 @@ class $t {
8718
8718
  @internal
8719
8719
  */
8720
8720
  touches(e, n) {
8721
- let r = 0, i = jd(n), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
8721
+ let r = 0, i = zd(n), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
8722
8722
  for (let a = 0; a < this.ranges.length; a += 3) {
8723
8723
  let l = this.ranges[a] - (this.inverted ? r : 0);
8724
8724
  if (l > e)
@@ -10438,11 +10438,11 @@ class nn extends me {
10438
10438
  return e instanceof nn;
10439
10439
  }
10440
10440
  getBookmark() {
10441
- return z2;
10441
+ return j2;
10442
10442
  }
10443
10443
  }
10444
10444
  me.jsonID("all", nn);
10445
- const z2 = {
10445
+ const j2 = {
10446
10446
  map() {
10447
10447
  return this;
10448
10448
  },
@@ -10480,7 +10480,7 @@ function Ud(t, e, n) {
10480
10480
  }), t.setSelection(me.near(t.doc.resolve(o), n));
10481
10481
  }
10482
10482
  const qd = 1, vo = 2, Gd = 4;
10483
- class j2 extends L2 {
10483
+ class z2 extends L2 {
10484
10484
  /**
10485
10485
  @internal
10486
10486
  */
@@ -10768,7 +10768,7 @@ class gi {
10768
10768
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
10769
10769
  */
10770
10770
  get tr() {
10771
- return new j2(this);
10771
+ return new z2(this);
10772
10772
  }
10773
10773
  /**
10774
10774
  Create a new state.
@@ -10828,7 +10828,7 @@ class gi {
10828
10828
  let i = new ll(e.schema, e.plugins), s = new gi(i);
10829
10829
  return i.fields.forEach((o) => {
10830
10830
  if (o.name == "doc")
10831
- s.doc = zr.fromJSON(e.schema, n.doc);
10831
+ s.doc = jr.fromJSON(e.schema, n.doc);
10832
10832
  else if (o.name == "selection")
10833
10833
  s.selection = me.fromJSON(s.doc, n.selection);
10834
10834
  else if (o.name == "storedMarks")
@@ -11003,7 +11003,7 @@ function J2(t, e, n) {
11003
11003
  }
11004
11004
  const Sn = typeof navigator < "u" ? navigator : null, Zd = typeof document < "u" ? document : null, Sr = Sn && Sn.userAgent || "", tc = /Edge\/(\d+)/.exec(Sr), rm = /MSIE \d/.exec(Sr), nc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sr), Tt = !!(rm || nc || tc), fr = rm ? document.documentMode : nc ? +nc[1] : tc ? +tc[1] : 0, sn = !Tt && /gecko\/(\d+)/i.test(Sr);
11005
11005
  sn && +(/Firefox\/(\d+)/.exec(Sr) || [0, 0])[1];
11006
- const rc = !Tt && /Chrome\/(\d+)/.exec(Sr), pt = !!rc, Z2 = rc ? +rc[1] : 0, yt = !Tt && !!Sn && /Apple Computer/.test(Sn.vendor), Pi = yt && (/Mobile\/\w+/.test(Sr) || !!Sn && Sn.maxTouchPoints > 2), jt = Pi || (Sn ? /Mac/.test(Sn.platform) : !1), X2 = Sn ? /Win/.test(Sn.platform) : !1, Xt = /Android \d/.test(Sr), to = !!Zd && "webkitFontSmoothing" in Zd.documentElement.style, Q2 = to ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
11006
+ const rc = !Tt && /Chrome\/(\d+)/.exec(Sr), pt = !!rc, Z2 = rc ? +rc[1] : 0, yt = !Tt && !!Sn && /Apple Computer/.test(Sn.vendor), Pi = yt && (/Mobile\/\w+/.test(Sr) || !!Sn && Sn.maxTouchPoints > 2), zt = Pi || (Sn ? /Mac/.test(Sn.platform) : !1), X2 = Sn ? /Win/.test(Sn.platform) : !1, Xt = /Android \d/.test(Sr), to = !!Zd && "webkitFontSmoothing" in Zd.documentElement.style, Q2 = to ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
11007
11007
  function e_(t) {
11008
11008
  let e = t.defaultView && t.defaultView.visualViewport;
11009
11009
  return e ? {
@@ -12473,7 +12473,7 @@ function ff(t, e, n) {
12473
12473
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
12474
12474
  let i = ac(t.state, e);
12475
12475
  return i && i instanceof te ? rr(t, i) : !1;
12476
- } else if (!(jt && n.indexOf("m") > -1)) {
12476
+ } else if (!(zt && n.indexOf("m") > -1)) {
12477
12477
  let i = r.$head, s = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, o;
12478
12478
  if (!s || s.isText)
12479
12479
  return !1;
@@ -12633,7 +12633,7 @@ function hf(t, e) {
12633
12633
  }
12634
12634
  function pf(t, e, n) {
12635
12635
  let r = t.state.selection;
12636
- if (r instanceof de && !r.empty || n.indexOf("s") > -1 || jt && n.indexOf("m") > -1)
12636
+ if (r instanceof de && !r.empty || n.indexOf("s") > -1 || zt && n.indexOf("m") > -1)
12637
12637
  return !1;
12638
12638
  let { $from: i, $to: s } = r;
12639
12639
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -12683,24 +12683,24 @@ function N_(t) {
12683
12683
  }
12684
12684
  function $_(t, e) {
12685
12685
  let n = e.keyCode, r = N_(e);
12686
- if (n == 8 || jt && n == 72 && r == "c")
12686
+ if (n == 8 || zt && n == 72 && r == "c")
12687
12687
  return mf(t, -1) || li(t, -1);
12688
- if (n == 46 && !e.shiftKey || jt && n == 68 && r == "c")
12688
+ if (n == 46 && !e.shiftKey || zt && n == 68 && r == "c")
12689
12689
  return mf(t, 1) || li(t, 1);
12690
12690
  if (n == 13 || n == 27)
12691
12691
  return !0;
12692
- if (n == 37 || jt && n == 66 && r == "c") {
12692
+ if (n == 37 || zt && n == 66 && r == "c") {
12693
12693
  let i = n == 37 ? hf(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
12694
12694
  return ff(t, i, r) || li(t, i);
12695
- } else if (n == 39 || jt && n == 70 && r == "c") {
12695
+ } else if (n == 39 || zt && n == 70 && r == "c") {
12696
12696
  let i = n == 39 ? hf(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
12697
12697
  return ff(t, i, r) || li(t, i);
12698
12698
  } else {
12699
- if (n == 38 || jt && n == 80 && r == "c")
12699
+ if (n == 38 || zt && n == 80 && r == "c")
12700
12700
  return pf(t, -1, r) || li(t, -1);
12701
- if (n == 40 || jt && n == 78 && r == "c")
12701
+ if (n == 40 || zt && n == 78 && r == "c")
12702
12702
  return A_(t) || pf(t, 1, r) || li(t, 1);
12703
- if (r == (jt ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
12703
+ if (r == (zt ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
12704
12704
  return !0;
12705
12705
  }
12706
12706
  return !1;
@@ -12894,7 +12894,7 @@ class F_ {
12894
12894
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
12895
12895
  }
12896
12896
  }
12897
- function z_(t) {
12897
+ function j_(t) {
12898
12898
  for (let e in vt) {
12899
12899
  let n = vt[e];
12900
12900
  t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
@@ -12906,7 +12906,7 @@ function z_(t) {
12906
12906
  function cr(t, e) {
12907
12907
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
12908
12908
  }
12909
- function j_(t) {
12909
+ function z_(t) {
12910
12910
  t.domObserver.stop();
12911
12911
  for (let e in t.input.eventHandlers)
12912
12912
  t.dom.removeEventListener(e, t.input.eventHandlers[e]);
@@ -12953,7 +12953,7 @@ bt.keyup = (t, e) => {
12953
12953
  };
12954
12954
  bt.keypress = (t, e) => {
12955
12955
  let n = e;
12956
- if (Tm(t, n) || !n.charCode || n.ctrlKey && !n.altKey || jt && n.metaKey)
12956
+ if (Tm(t, n) || !n.charCode || n.ctrlKey && !n.altKey || zt && n.metaKey)
12957
12957
  return;
12958
12958
  if (t.someProp("handleKeyPress", (i) => i(t, n))) {
12959
12959
  n.preventDefault();
@@ -13037,7 +13037,7 @@ function Z_(t, e, n) {
13037
13037
  function eu(t) {
13038
13038
  return Zo(t);
13039
13039
  }
13040
- const Cm = jt ? "metaKey" : "ctrlKey";
13040
+ const Cm = zt ? "metaKey" : "ctrlKey";
13041
13041
  vt.mousedown = (t, e) => {
13042
13042
  let n = e;
13043
13043
  t.input.shiftKey = n.shiftKey;
@@ -13227,7 +13227,7 @@ class Am {
13227
13227
  this.slice = e, this.move = n, this.node = r;
13228
13228
  }
13229
13229
  }
13230
- const Nm = jt ? "altKey" : "ctrlKey";
13230
+ const Nm = zt ? "altKey" : "ctrlKey";
13231
13231
  vt.dragstart = (t, e) => {
13232
13232
  let n = e, r = t.input.mouseDown;
13233
13233
  if (r && r.done(), !n.dataTransfer)
@@ -13325,7 +13325,7 @@ function Is(t, e) {
13325
13325
  }
13326
13326
  class Xo {
13327
13327
  constructor(e, n) {
13328
- this.toDOM = e, this.spec = n || jr, this.side = this.spec.side || 0;
13328
+ this.toDOM = e, this.spec = n || zr, this.side = this.spec.side || 0;
13329
13329
  }
13330
13330
  map(e, n, r, i) {
13331
13331
  let { pos: s, deleted: o } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1);
@@ -13343,7 +13343,7 @@ class Xo {
13343
13343
  }
13344
13344
  class pr {
13345
13345
  constructor(e, n) {
13346
- this.attrs = e, this.spec = n || jr;
13346
+ this.attrs = e, this.spec = n || zr;
13347
13347
  }
13348
13348
  map(e, n, r, i) {
13349
13349
  let s = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - r, o = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
@@ -13363,7 +13363,7 @@ class pr {
13363
13363
  }
13364
13364
  class tu {
13365
13365
  constructor(e, n) {
13366
- this.attrs = e, this.spec = n || jr;
13366
+ this.attrs = e, this.spec = n || zr;
13367
13367
  }
13368
13368
  map(e, n, r, i) {
13369
13369
  let s = e.mapResult(n.from + i, 1);
@@ -13453,7 +13453,7 @@ class It {
13453
13453
  return this.type instanceof Xo;
13454
13454
  }
13455
13455
  }
13456
- const fi = [], jr = {};
13456
+ const fi = [], zr = {};
13457
13457
  class We {
13458
13458
  /**
13459
13459
  @internal
@@ -13467,7 +13467,7 @@ class We {
13467
13467
  you must make a copy if you want need to preserve that.
13468
13468
  */
13469
13469
  static create(e, n) {
13470
- return n.length ? Qo(n, e, 0, jr) : at;
13470
+ return n.length ? Qo(n, e, 0, zr) : at;
13471
13471
  }
13472
13472
  /**
13473
13473
  Find all decorations in this set which touch the given range
@@ -13497,7 +13497,7 @@ class We {
13497
13497
  document.
13498
13498
  */
13499
13499
  map(e, n, r) {
13500
- return this == at || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || jr);
13500
+ return this == at || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || zr);
13501
13501
  }
13502
13502
  /**
13503
13503
  @internal
@@ -13526,7 +13526,7 @@ class We {
13526
13526
  if (u = Pm(n, a, c)) {
13527
13527
  for (i || (i = this.children.slice()); s < i.length && i[s] < l; )
13528
13528
  s += 3;
13529
- i[s] == l ? i[s + 2] = i[s + 2].addInner(a, u, c + 1) : i.splice(s, 0, l, l + a.nodeSize, Qo(u, a, c + 1, jr)), s += 3;
13529
+ i[s] == l ? i[s + 2] = i[s + 2].addInner(a, u, c + 1) : i.splice(s, 0, l, l + a.nodeSize, Qo(u, a, c + 1, zr)), s += 3;
13530
13530
  }
13531
13531
  });
13532
13532
  let o = $m(s ? Im(n) : n, -r);
@@ -13630,7 +13630,7 @@ class sr {
13630
13630
  this.members = e;
13631
13631
  }
13632
13632
  map(e, n) {
13633
- const r = this.members.map((i) => i.map(e, n, jr));
13633
+ const r = this.members.map((i) => i.map(e, n, zr));
13634
13634
  return sr.from(r);
13635
13635
  }
13636
13636
  forChild(e, n) {
@@ -14057,11 +14057,11 @@ const gD = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
14057
14057
  function yD(t, e, n, r, i) {
14058
14058
  let s = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
14059
14059
  if (t.input.compositionPendingChanges = 0, e < 0) {
14060
- let N = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, j = Jc(t, N);
14061
- if (j && !t.state.selection.eq(j)) {
14060
+ let N = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, z = Jc(t, N);
14061
+ if (z && !t.state.selection.eq(z)) {
14062
14062
  if (pt && Xt && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Y) => Y(t, $r(13, "Enter"))))
14063
14063
  return;
14064
- let ne = t.state.tr.setSelection(j);
14064
+ let ne = t.state.tr.setSelection(z);
14065
14065
  N == "pointer" ? ne.setMeta("pointer", !0) : N == "key" && ne.scrollIntoView(), s && ne.setMeta("composition", s), t.dispatch(ne);
14066
14066
  }
14067
14067
  return;
@@ -14082,8 +14082,8 @@ function yD(t, e, n, r, i) {
14082
14082
  if (c.sel) {
14083
14083
  let N = Sf(t, t.state.doc, c.sel);
14084
14084
  if (N && !N.eq(t.state.selection)) {
14085
- let j = t.state.tr.setSelection(N);
14086
- s && j.setMeta("composition", s), t.dispatch(j);
14085
+ let z = t.state.tr.setSelection(N);
14086
+ s && z.setMeta("composition", s), t.dispatch(z);
14087
14087
  }
14088
14088
  }
14089
14089
  return;
@@ -14114,7 +14114,7 @@ function yD(t, e, n, r, i) {
14114
14114
  v = t.state.tr, A.type == "add" ? v.addMark(y, S, A.mark) : v.removeMark(y, S, A.mark);
14115
14115
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
14116
14116
  let N = m.parent.textBetween(m.parentOffset, g.parentOffset);
14117
- if (t.someProp("handleTextInput", (j) => j(t, y, S, N)))
14117
+ if (t.someProp("handleTextInput", (z) => z(t, y, S, N)))
14118
14118
  return;
14119
14119
  v = t.state.tr.insertText(N, y, S);
14120
14120
  }
@@ -14207,7 +14207,7 @@ class xD {
14207
14207
  added to the document.
14208
14208
  */
14209
14209
  constructor(e, n) {
14210
- 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 F_(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Df), 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 = Tf(this), Cf(this), this.nodeViews = _f(this), this.docView = sf(this.state.doc, Mf(this), fl(this), this.dom, this), this.domObserver = new uD(this, (r, i, s, o) => yD(this, r, i, s, o)), this.domObserver.start(), z_(this), this.updatePluginViews();
14210
+ 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 F_(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Df), 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 = Tf(this), Cf(this), this.nodeViews = _f(this), this.docView = sf(this.state.doc, Mf(this), fl(this), this.dom, this), this.domObserver = new uD(this, (r, i, s, o) => yD(this, r, i, s, o)), this.domObserver.start(), j_(this), this.updatePluginViews();
14211
14211
  }
14212
14212
  /**
14213
14213
  Holds `true` when a
@@ -14488,7 +14488,7 @@ class xD {
14488
14488
  views](https://prosemirror.net/docs/ref/#view.NodeView).
14489
14489
  */
14490
14490
  destroy() {
14491
- this.docView && (j_(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], fl(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, W2());
14491
+ this.docView && (z_(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], fl(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, W2());
14492
14492
  }
14493
14493
  /**
14494
14494
  This is true when the view has been
@@ -14737,7 +14737,7 @@ const ND = (t, e, n) => {
14737
14737
  return a == null ? !1 : (e && e(t.tr.lift(o, a).scrollIntoView()), !0);
14738
14738
  }
14739
14739
  let s = i.nodeBefore;
14740
- if (!s.type.spec.isolating && zm(t, i, e))
14740
+ if (!s.type.spec.isolating && jm(t, i, e))
14741
14741
  return !0;
14742
14742
  if (r.parent.content.size == 0 && (Ii(s, "end") || te.isSelectable(s))) {
14743
14743
  let o = ka(t.doc, r.before(), r.after(), U.empty);
@@ -14834,7 +14834,7 @@ const RD = (t, e, n) => {
14834
14834
  if (!i)
14835
14835
  return !1;
14836
14836
  let s = i.nodeAfter;
14837
- if (zm(t, i, e))
14837
+ if (jm(t, i, e))
14838
14838
  return !0;
14839
14839
  if (r.parent.content.size == 0 && (Ii(s, "start") || te.isSelectable(s))) {
14840
14840
  let o = ka(t.doc, r.before(), r.after(), U.empty);
@@ -14895,7 +14895,7 @@ const BD = (t, e) => {
14895
14895
  }, FD = (t, e) => {
14896
14896
  let { $from: n, $to: r } = t.selection, i = n.blockRange(r), s = i && Zi(i);
14897
14897
  return s == null ? !1 : (e && e(t.tr.lift(i, s).scrollIntoView()), !0);
14898
- }, zD = (t, e) => {
14898
+ }, jD = (t, e) => {
14899
14899
  let { $head: n, $anchor: r } = t.selection;
14900
14900
  return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(`
14901
14901
  `).scrollIntoView()), !0);
@@ -14908,7 +14908,7 @@ function Fm(t) {
14908
14908
  }
14909
14909
  return null;
14910
14910
  }
14911
- const jD = (t, e) => {
14911
+ const zD = (t, e) => {
14912
14912
  let { $head: n, $anchor: r } = t.selection;
14913
14913
  if (!n.parent.type.spec.code || !n.sameParent(r))
14914
14914
  return !1;
@@ -14951,7 +14951,7 @@ function UD(t, e, n) {
14951
14951
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
14952
14952
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || kr(t.doc, e.pos)) ? !1 : (n && n(t.tr.clearIncompatible(e.pos, r.type, r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()), !0);
14953
14953
  }
14954
- function zm(t, e, n) {
14954
+ function jm(t, e, n) {
14955
14955
  let r = e.nodeBefore, i = e.nodeAfter, s, o;
14956
14956
  if (r.type.spec.isolating || i.type.spec.isolating)
14957
14957
  return !1;
@@ -14992,7 +14992,7 @@ function zm(t, e, n) {
14992
14992
  }
14993
14993
  return !1;
14994
14994
  }
14995
- function jm(t) {
14995
+ function zm(t) {
14996
14996
  return function(e, n) {
14997
14997
  let r = e.selection, i = t < 0 ? r.$from : r.$to, s = i.depth;
14998
14998
  for (; i.node(s).isInline; ) {
@@ -15003,7 +15003,7 @@ function jm(t) {
15003
15003
  return i.node(s).isTextblock ? (n && n(e.tr.setSelection(de.create(e.doc, t < 0 ? i.start(s) : i.end(s)))), !0) : !1;
15004
15004
  };
15005
15005
  }
15006
- const qD = jm(-1), GD = jm(1);
15006
+ const qD = zm(-1), GD = zm(1);
15007
15007
  function KD(t, e = null) {
15008
15008
  return function(n, r) {
15009
15009
  let { $from: i, $to: s } = n.selection, o = i.blockRange(s), a = o && qc(o, t, e);
@@ -16010,7 +16010,7 @@ const yE = ut.create({
16010
16010
  }, CE = (t) => ({ tr: e, dispatch: n }) => {
16011
16011
  const { from: r, to: i } = t;
16012
16012
  return n && e.delete(r, i), !0;
16013
- }, TE = () => ({ state: t, dispatch: e }) => AD(t, e), _E = () => ({ commands: t }) => t.keyboardShortcut("Enter"), DE = () => ({ state: t, dispatch: e }) => jD(t, e);
16013
+ }, TE = () => ({ state: t, dispatch: e }) => AD(t, e), _E = () => ({ commands: t }) => t.keyboardShortcut("Enter"), DE = () => ({ state: t, dispatch: e }) => zD(t, e);
16014
16014
  function ta(t, e, n = { strict: !0 }) {
16015
16015
  const r = Object.keys(e);
16016
16016
  return r.length ? r.every((i) => n.strict ? e[i] === t[i] : su(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
@@ -16068,7 +16068,7 @@ const AE = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
16068
16068
  function au(t) {
16069
16069
  return t instanceof de;
16070
16070
  }
16071
- function zn(t = 0, e = 0, n = 0) {
16071
+ function jn(t = 0, e = 0, n = 0) {
16072
16072
  return Math.min(Math.max(t, e), n);
16073
16073
  }
16074
16074
  function qm(t, e = null) {
@@ -16080,7 +16080,7 @@ function qm(t, e = null) {
16080
16080
  if (e === "end")
16081
16081
  return r;
16082
16082
  const i = n.from, s = r.to;
16083
- return e === "all" ? de.create(t, zn(0, i, s), zn(t.content.size, i, s)) : de.create(t, zn(e, i, s), zn(e, i, s));
16083
+ return e === "all" ? de.create(t, jn(0, i, s), jn(t.content.size, i, s)) : de.create(t, jn(e, i, s), jn(e, i, s));
16084
16084
  }
16085
16085
  function lu() {
16086
16086
  return [
@@ -16180,7 +16180,7 @@ const VE = (t) => t.toString().startsWith("<"), BE = (t, e, n) => ({ tr: r, disp
16180
16180
  c ? (Array.isArray(e) ? f = e.map((h) => h.text || "").join("") : typeof e == "object" && e && e.text ? f = e.text : f = e, r.insertText(f, a, l)) : (f = o, r.replaceWith(a, l, f)), n.updateSelection && RE(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f });
16181
16181
  }
16182
16182
  return !0;
16183
- }, LE = () => ({ state: t, dispatch: e }) => BD(t, e), FE = () => ({ state: t, dispatch: e }) => LD(t, e), zE = () => ({ state: t, dispatch: e }) => ND(t, e), jE = () => ({ state: t, dispatch: e }) => RD(t, e), HE = () => ({ tr: t, state: e, dispatch: n }) => {
16183
+ }, LE = () => ({ state: t, dispatch: e }) => BD(t, e), FE = () => ({ state: t, dispatch: e }) => LD(t, e), jE = () => ({ state: t, dispatch: e }) => ND(t, e), zE = () => ({ state: t, dispatch: e }) => RD(t, e), HE = () => ({ tr: t, state: e, dispatch: n }) => {
16184
16184
  try {
16185
16185
  const r = xa(e.doc, e.selection.$from.pos, -1);
16186
16186
  return r == null ? !1 : (t.join(r, 2), n && n(t), !0);
@@ -16258,7 +16258,7 @@ const KE = (t, e = {}) => ({ state: n, dispatch: r }) => {
16258
16258
  }, JE = () => ({ state: t, dispatch: e }) => WD(t, e), ZE = (t) => ({ state: e, dispatch: n }) => {
16259
16259
  const r = et(t, e.schema);
16260
16260
  return XD(r)(e, n);
16261
- }, XE = () => ({ state: t, dispatch: e }) => zD(t, e);
16261
+ }, XE = () => ({ state: t, dispatch: e }) => jD(t, e);
16262
16262
  function Na(t, e) {
16263
16263
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
16264
16264
  }
@@ -16412,7 +16412,7 @@ function gA(t) {
16412
16412
  return t instanceof te;
16413
16413
  }
16414
16414
  function Xm(t, e, n) {
16415
- const i = t.state.doc.content.size, s = zn(e, 0, i), o = zn(n, 0, i), a = t.coordsAtPos(s), l = t.coordsAtPos(o, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = u - c, b = {
16415
+ const i = t.state.doc.content.size, s = jn(e, 0, i), o = jn(n, 0, i), a = t.coordsAtPos(s), l = t.coordsAtPos(o, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = u - c, b = {
16416
16416
  top: c,
16417
16417
  bottom: u,
16418
16418
  left: d,
@@ -16477,13 +16477,13 @@ const vA = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
16477
16477
  return s.isTextblock ? i().command(({ commands: o }) => Ef(s, e)(n) ? !0 : o.clearNodes()).command(({ state: o }) => Ef(s, e)(o, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
16478
16478
  }, xA = (t) => ({ tr: e, dispatch: n }) => {
16479
16479
  if (n) {
16480
- const { doc: r } = e, i = zn(t, 0, r.content.size), s = te.create(r, i);
16480
+ const { doc: r } = e, i = jn(t, 0, r.content.size), s = te.create(r, i);
16481
16481
  e.setSelection(s);
16482
16482
  }
16483
16483
  return !0;
16484
16484
  }, kA = (t) => ({ tr: e, dispatch: n }) => {
16485
16485
  if (n) {
16486
- const { doc: r } = e, { from: i, to: s } = typeof t == "number" ? { from: t, to: t } : t, o = de.atStart(r).from, a = de.atEnd(r).to, l = zn(i, o, a), c = zn(s, o, a), u = de.create(r, l, c);
16486
+ const { doc: r } = e, { from: i, to: s } = typeof t == "number" ? { from: t, to: t } : t, o = de.atStart(r).from, a = de.atEnd(r).to, l = jn(i, o, a), c = jn(s, o, a), u = de.create(r, l, c);
16487
16487
  e.setSelection(u);
16488
16488
  }
16489
16489
  return !0;
@@ -16702,8 +16702,8 @@ var RA = /* @__PURE__ */ Object.freeze({
16702
16702
  insertContentAt: BE,
16703
16703
  joinUp: LE,
16704
16704
  joinDown: FE,
16705
- joinBackward: zE,
16706
- joinForward: jE,
16705
+ joinBackward: jE,
16706
+ joinForward: zE,
16707
16707
  joinItemBackward: HE,
16708
16708
  joinItemForward: WE,
16709
16709
  joinTextblockBackward: YE,
@@ -16859,7 +16859,7 @@ const VA = ut.create({
16859
16859
  })
16860
16860
  ];
16861
16861
  }
16862
- }), zA = ut.create({
16862
+ }), jA = ut.create({
16863
16863
  name: "tabindex",
16864
16864
  addProseMirrorPlugins() {
16865
16865
  return [
@@ -16992,7 +16992,7 @@ class Pr {
16992
16992
  this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name, e).setTextSelection(n.from).run();
16993
16993
  }
16994
16994
  }
16995
- const jA = `.ProseMirror {
16995
+ const zA = `.ProseMirror {
16996
16996
  position: relative;
16997
16997
  }
16998
16998
 
@@ -17130,7 +17130,7 @@ let WA = class extends nE {
17130
17130
  * Inject CSS styles.
17131
17131
  */
17132
17132
  injectCSS() {
17133
- this.options.injectCSS && document && (this.css = HA(jA, this.options.injectNonce));
17133
+ this.options.injectCSS && document && (this.css = HA(zA, this.options.injectNonce));
17134
17134
  }
17135
17135
  /**
17136
17136
  * Update editor options.
@@ -17198,7 +17198,7 @@ let WA = class extends nE {
17198
17198
  VA,
17199
17199
  LA,
17200
17200
  FA,
17201
- zA
17201
+ jA
17202
17202
  ] : [], ...this.options.extensions].filter((s) => ["extension", "node", "mark"].includes(s == null ? void 0 : s.type));
17203
17203
  this.extensionManager = new yi(i, this);
17204
17204
  }
@@ -17772,7 +17772,7 @@ const fN = {
17772
17772
  requires: ["popperOffsets"],
17773
17773
  requiresIfExists: ["preventOverflow"]
17774
17774
  };
17775
- function zi(t) {
17775
+ function ji(t) {
17776
17776
  return t.split("-")[1];
17777
17777
  }
17778
17778
  var hN = {
@@ -17810,11 +17810,11 @@ function Ff(t) {
17810
17810
  }
17811
17811
  if (i === Dt || (i === _t || i === qt) && s === Bs) {
17812
17812
  T = Gt;
17813
- var j = d && v === S && S.visualViewport ? S.visualViewport.width : (
17813
+ var z = d && v === S && S.visualViewport ? S.visualViewport.width : (
17814
17814
  // $FlowFixMe[prop-missing]
17815
17815
  v[A]
17816
17816
  );
17817
- h -= j - r.width, h *= l ? 1 : -1;
17817
+ h -= z - r.width, h *= l ? 1 : -1;
17818
17818
  }
17819
17819
  }
17820
17820
  var ne = Object.assign({
@@ -17835,7 +17835,7 @@ function Ff(t) {
17835
17835
  function mN(t) {
17836
17836
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
17837
17837
  placement: wn(e.placement),
17838
- variation: zi(e.placement),
17838
+ variation: ji(e.placement),
17839
17839
  popper: e.elements.popper,
17840
17840
  popperRect: e.rects.popper,
17841
17841
  gpuAcceleration: i,
@@ -17899,7 +17899,7 @@ var wN = {
17899
17899
  start: "end",
17900
17900
  end: "start"
17901
17901
  };
17902
- function zf(t) {
17902
+ function jf(t) {
17903
17903
  return t.replace(/start|end/g, function(e) {
17904
17904
  return wN[e];
17905
17905
  });
@@ -17965,7 +17965,7 @@ function SN(t, e) {
17965
17965
  var n = Fi(t, !1, e === "fixed");
17966
17966
  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;
17967
17967
  }
17968
- function jf(t, e, n) {
17968
+ function zf(t, e, n) {
17969
17969
  return e === Qm ? yc(xN(t, n)) : Xr(e) ? SN(e, n) : yc(kN(Mr(t)));
17970
17970
  }
17971
17971
  function ON(t) {
@@ -17976,13 +17976,13 @@ function ON(t) {
17976
17976
  }
17977
17977
  function MN(t, e, n, r) {
17978
17978
  var i = e === "clippingParents" ? ON(t) : [].concat(e), s = [].concat(i, [n]), o = s[0], a = s.reduce(function(l, c) {
17979
- var u = jf(t, c, r);
17979
+ var u = zf(t, c, r);
17980
17980
  return l.top = Wr(u.top, l.top), l.right = ra(u.right, l.right), l.bottom = ra(u.bottom, l.bottom), l.left = Wr(u.left, l.left), l;
17981
- }, jf(t, o, r));
17981
+ }, zf(t, o, r));
17982
17982
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
17983
17983
  }
17984
17984
  function lg(t) {
17985
- var e = t.reference, n = t.element, r = t.placement, i = r ? wn(r) : null, s = r ? zi(r) : null, o = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
17985
+ var e = t.reference, n = t.element, r = t.placement, i = r ? wn(r) : null, s = r ? ji(r) : null, o = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
17986
17986
  switch (i) {
17987
17987
  case _t:
17988
17988
  l = {
@@ -18035,7 +18035,7 @@ function Ls(t, e) {
18035
18035
  element: T,
18036
18036
  strategy: "absolute",
18037
18037
  placement: i
18038
- }), A = yc(Object.assign({}, T, O)), N = f === ls ? A : v, j = {
18038
+ }), A = yc(Object.assign({}, T, O)), N = f === ls ? A : v, z = {
18039
18039
  top: S.top - N.top + b.top,
18040
18040
  bottom: N.bottom - S.bottom + b.bottom,
18041
18041
  left: S.left - N.left + b.left,
@@ -18043,17 +18043,17 @@ function Ls(t, e) {
18043
18043
  }, ne = t.modifiersData.offset;
18044
18044
  if (f === ls && ne) {
18045
18045
  var Y = ne[i];
18046
- Object.keys(j).forEach(function(I) {
18046
+ Object.keys(z).forEach(function(I) {
18047
18047
  var F = [Gt, qt].indexOf(I) >= 0 ? 1 : -1, H = [_t, qt].indexOf(I) >= 0 ? "y" : "x";
18048
- j[I] += Y[H] * F;
18048
+ z[I] += Y[H] * F;
18049
18049
  });
18050
18050
  }
18051
- return j;
18051
+ return z;
18052
18052
  }
18053
18053
  function CN(t, e) {
18054
18054
  e === void 0 && (e = {});
18055
- var n = e, r = n.placement, i = n.boundary, s = n.rootBoundary, o = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? eg : l, u = zi(r), d = u ? a ? Bf : Bf.filter(function(p) {
18056
- return zi(p) === u;
18055
+ var n = e, r = n.placement, i = n.boundary, s = n.rootBoundary, o = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? eg : l, u = ji(r), d = u ? a ? Bf : Bf.filter(function(p) {
18056
+ return ji(p) === u;
18057
18057
  }) : ro, f = d.filter(function(p) {
18058
18058
  return c.indexOf(p) >= 0;
18059
18059
  });
@@ -18074,7 +18074,7 @@ function TN(t) {
18074
18074
  if (wn(t) === uu)
18075
18075
  return [];
18076
18076
  var e = To(t);
18077
- return [zf(t), e, zf(e)];
18077
+ return [jf(t), e, jf(e)];
18078
18078
  }
18079
18079
  function _N(t) {
18080
18080
  var e = t.state, n = t.options, r = t.name;
@@ -18088,8 +18088,8 @@ function _N(t) {
18088
18088
  flipVariations: p,
18089
18089
  allowedAutoPlacements: m
18090
18090
  }) : ft);
18091
- }, []), S = e.rects.reference, v = e.rects.popper, O = /* @__PURE__ */ new Map(), A = !0, N = y[0], j = 0; j < y.length; j++) {
18092
- var ne = y[j], Y = wn(ne), I = zi(ne) === Bi, F = [_t, qt].indexOf(Y) >= 0, H = F ? "width" : "height", z = Ls(e, {
18091
+ }, []), S = e.rects.reference, v = e.rects.popper, O = /* @__PURE__ */ new Map(), A = !0, N = y[0], z = 0; z < y.length; z++) {
18092
+ var ne = y[z], Y = wn(ne), I = ji(ne) === Bi, F = [_t, qt].indexOf(Y) >= 0, H = F ? "width" : "height", j = Ls(e, {
18093
18093
  placement: ne,
18094
18094
  boundary: u,
18095
18095
  rootBoundary: d,
@@ -18098,7 +18098,7 @@ function _N(t) {
18098
18098
  }), P = F ? I ? Gt : Dt : I ? qt : _t;
18099
18099
  S[H] > v[H] && (P = To(P));
18100
18100
  var ee = To(P), Te = [];
18101
- if (s && Te.push(z[Y] <= 0), a && Te.push(z[P] <= 0, z[ee] <= 0), Te.every(function(Pe) {
18101
+ if (s && Te.push(j[Y] <= 0), a && Te.push(j[P] <= 0, j[ee] <= 0), Te.every(function(Pe) {
18102
18102
  return Pe;
18103
18103
  })) {
18104
18104
  N = ne, A = !1;
@@ -18224,9 +18224,9 @@ function BN(t) {
18224
18224
  rootBoundary: c,
18225
18225
  padding: d,
18226
18226
  altBoundary: u
18227
- }), b = wn(e.placement), w = zi(e.placement), T = !w, y = hu(b), S = VN(y), v = e.modifiersData.popperOffsets, O = e.rects.reference, A = e.rects.popper, N = typeof m == "function" ? m(Object.assign({}, e.rects, {
18227
+ }), b = wn(e.placement), w = ji(e.placement), T = !w, y = hu(b), S = VN(y), v = e.modifiersData.popperOffsets, O = e.rects.reference, A = e.rects.popper, N = typeof m == "function" ? m(Object.assign({}, e.rects, {
18228
18228
  placement: e.placement
18229
- })) : m, j = typeof N == "number" ? {
18229
+ })) : m, z = typeof N == "number" ? {
18230
18230
  mainAxis: N,
18231
18231
  altAxis: N
18232
18232
  } : Object.assign({
@@ -18238,15 +18238,15 @@ function BN(t) {
18238
18238
  };
18239
18239
  if (v) {
18240
18240
  if (s) {
18241
- var I, F = y === "y" ? _t : Dt, H = y === "y" ? qt : Gt, z = y === "y" ? "height" : "width", P = v[y], ee = P + g[F], Te = P - g[H], tt = h ? -A[z] / 2 : 0, ot = w === Bi ? O[z] : A[z], Et = w === Bi ? -A[z] : -O[z], At = e.elements.arrow, Pe = h && At ? fu(At) : {
18241
+ var I, F = y === "y" ? _t : Dt, H = y === "y" ? qt : Gt, j = y === "y" ? "height" : "width", P = v[y], ee = P + g[F], Te = P - g[H], tt = h ? -A[j] / 2 : 0, ot = w === Bi ? O[j] : A[j], Et = w === Bi ? -A[j] : -O[j], At = e.elements.arrow, Pe = h && At ? fu(At) : {
18242
18242
  width: 0,
18243
18243
  height: 0
18244
- }, ft = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ig(), W = ft[F], le = ft[H], _e = xs(0, O[z], Pe[z]), ye = T ? O[z] / 2 - tt - _e - W - j.mainAxis : ot - _e - W - j.mainAxis, Ge = T ? -O[z] / 2 + tt + _e + le + j.mainAxis : Et + _e + le + j.mainAxis, Ke = e.elements.arrow && io(e.elements.arrow), xt = Ke ? y === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, Cr = (I = ne == null ? void 0 : ne[y]) != null ? I : 0, ni = P + ye - Cr - xt, Xn = P + Ge - Cr, Qn = xs(h ? ra(ee, ni) : ee, P, h ? Wr(Te, Xn) : Te);
18244
+ }, ft = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ig(), W = ft[F], le = ft[H], _e = xs(0, O[j], Pe[j]), ye = T ? O[j] / 2 - tt - _e - W - z.mainAxis : ot - _e - W - z.mainAxis, Ge = T ? -O[j] / 2 + tt + _e + le + z.mainAxis : Et + _e + le + z.mainAxis, Ke = e.elements.arrow && io(e.elements.arrow), xt = Ke ? y === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, Cr = (I = ne == null ? void 0 : ne[y]) != null ? I : 0, ni = P + ye - Cr - xt, Xn = P + Ge - Cr, Qn = xs(h ? ra(ee, ni) : ee, P, h ? Wr(Te, Xn) : Te);
18245
18245
  v[y] = Qn, Y[y] = Qn - P;
18246
18246
  }
18247
18247
  if (a) {
18248
- var Nn, Zt = y === "x" ? _t : Dt, Ft = y === "x" ? qt : Gt, zt = v[S], dn = S === "y" ? "height" : "width", $n = zt + g[Zt], fn = zt - g[Ft], Tr = [_t, Dt].indexOf(b) !== -1, er = (Nn = ne == null ? void 0 : ne[S]) != null ? Nn : 0, ri = Tr ? $n : zt - O[dn] - A[dn] - er + j.altAxis, ii = Tr ? zt + O[dn] + A[dn] - er - j.altAxis : fn, si = h && Tr ? lN(ri, zt, ii) : xs(h ? ri : $n, zt, h ? ii : fn);
18249
- v[S] = si, Y[S] = si - zt;
18248
+ var Nn, Zt = y === "x" ? _t : Dt, Ft = y === "x" ? qt : Gt, jt = v[S], dn = S === "y" ? "height" : "width", $n = jt + g[Zt], fn = jt - g[Ft], Tr = [_t, Dt].indexOf(b) !== -1, er = (Nn = ne == null ? void 0 : ne[S]) != null ? Nn : 0, ri = Tr ? $n : jt - O[dn] - A[dn] - er + z.altAxis, ii = Tr ? jt + O[dn] + A[dn] - er - z.altAxis : fn, si = h && Tr ? lN(ri, jt, ii) : xs(h ? ri : $n, jt, h ? ii : fn);
18249
+ v[S] = si, Y[S] = si - jt;
18250
18250
  }
18251
18251
  e.modifiersData[r] = Y;
18252
18252
  }
@@ -18264,16 +18264,16 @@ function FN(t) {
18264
18264
  scrollTop: t.scrollTop
18265
18265
  };
18266
18266
  }
18267
- function zN(t) {
18267
+ function jN(t) {
18268
18268
  return t === Vt(t) || !Ut(t) ? pu(t) : FN(t);
18269
18269
  }
18270
- function jN(t) {
18270
+ function zN(t) {
18271
18271
  var e = t.getBoundingClientRect(), n = Li(e.width) / t.offsetWidth || 1, r = Li(e.height) / t.offsetHeight || 1;
18272
18272
  return n !== 1 || r !== 1;
18273
18273
  }
18274
18274
  function HN(t, e, n) {
18275
18275
  n === void 0 && (n = !1);
18276
- var r = Ut(e), i = Ut(e) && jN(e), s = Mr(e), o = Fi(t, i, n), a = {
18276
+ var r = Ut(e), i = Ut(e) && zN(e), s = Mr(e), o = Fi(t, i, n), a = {
18277
18277
  scrollLeft: 0,
18278
18278
  scrollTop: 0
18279
18279
  }, l = {
@@ -18281,7 +18281,7 @@ function HN(t, e, n) {
18281
18281
  y: 0
18282
18282
  };
18283
18283
  return (r || !r && !n) && ((Cn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
18284
- gu(s)) && (a = zN(e)), Ut(e) ? (l = Fi(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : s && (l.x = mu(s))), {
18284
+ gu(s)) && (a = jN(e)), Ut(e) ? (l = Fi(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : s && (l.x = mu(s))), {
18285
18285
  x: o.left + a.scrollLeft - l.x,
18286
18286
  y: o.top + a.scrollTop - l.y,
18287
18287
  width: o.width,
@@ -18390,8 +18390,8 @@ function GN(t) {
18390
18390
  u.rects = {
18391
18391
  reference: HN(w, io(T), u.options.strategy === "fixed"),
18392
18392
  popper: fu(T)
18393
- }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(j) {
18394
- return u.modifiersData[j.name] = Object.assign({}, j.data);
18393
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(z) {
18394
+ return u.modifiersData[z.name] = Object.assign({}, z.data);
18395
18395
  });
18396
18396
  for (var y = 0; y < u.orderedModifiers.length; y++) {
18397
18397
  if (u.reset === !0) {
@@ -18625,21 +18625,21 @@ function mg(t) {
18625
18625
  "color: #a6a095;"
18626
18626
  ];
18627
18627
  }
18628
- var zs;
18628
+ var js;
18629
18629
  process.env.NODE_ENV !== "production" && g$();
18630
18630
  function g$() {
18631
- zs = /* @__PURE__ */ new Set();
18631
+ js = /* @__PURE__ */ new Set();
18632
18632
  }
18633
18633
  function Bn(t, e) {
18634
- if (t && !zs.has(e)) {
18634
+ if (t && !js.has(e)) {
18635
18635
  var n;
18636
- zs.add(e), (n = console).warn.apply(n, mg(e));
18636
+ js.add(e), (n = console).warn.apply(n, mg(e));
18637
18637
  }
18638
18638
  }
18639
18639
  function vc(t, e) {
18640
- if (t && !zs.has(e)) {
18640
+ if (t && !js.has(e)) {
18641
18641
  var n;
18642
- zs.add(e), (n = console).error.apply(n, mg(e));
18642
+ js.add(e), (n = console).error.apply(n, mg(e));
18643
18643
  }
18644
18644
  }
18645
18645
  function y$(t) {
@@ -18857,12 +18857,12 @@ function O$(t, e) {
18857
18857
  }), v.addEventListener("mouseleave", function() {
18858
18858
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", p);
18859
18859
  }), y;
18860
- function j() {
18860
+ function z() {
18861
18861
  var x = y.props.touch;
18862
18862
  return Array.isArray(x) ? x : [x, 0];
18863
18863
  }
18864
18864
  function ne() {
18865
- return j()[0] === "hold";
18865
+ return z()[0] === "hold";
18866
18866
  }
18867
18867
  function Y() {
18868
18868
  var x;
@@ -18878,7 +18878,7 @@ function O$(t, e) {
18878
18878
  function H() {
18879
18879
  return wc(v);
18880
18880
  }
18881
- function z(x) {
18881
+ function j(x) {
18882
18882
  return y.state.isMounted && !y.state.isVisible || mn.isTouch || u && u.type === "focus" ? 0 : wl(y.props.delay, x ? 0 : 1, Pt.delay);
18883
18883
  }
18884
18884
  function P(x) {
@@ -19019,10 +19019,10 @@ function O$(t, e) {
19019
19019
  var B = x.target, K = I().contains(B) || v.contains(B);
19020
19020
  if (!(x.type === "mousemove" && K)) {
19021
19021
  var re = dn().concat(v).map(function(se) {
19022
- var fe, De = se._tippy, ze = (fe = De.popperInstance) == null ? void 0 : fe.state;
19023
- return ze ? {
19022
+ var fe, De = se._tippy, je = (fe = De.popperInstance) == null ? void 0 : fe.state;
19023
+ return je ? {
19024
19024
  popperRect: se.getBoundingClientRect(),
19025
- popperState: ze,
19025
+ popperState: je,
19026
19026
  props: n
19027
19027
  } : null;
19028
19028
  }).filter(Boolean);
@@ -19047,7 +19047,7 @@ function O$(t, e) {
19047
19047
  }
19048
19048
  function Zt() {
19049
19049
  Ft();
19050
- var x = y.props, B = x.popperOptions, K = x.placement, re = x.offset, se = x.getReferenceClientRect, fe = x.moveTransition, De = Y() ? wc(v).arrow : null, ze = se ? {
19050
+ var x = y.props, B = x.popperOptions, K = x.placement, re = x.offset, se = x.getReferenceClientRect, fe = x.moveTransition, De = Y() ? wc(v).arrow : null, je = se ? {
19051
19051
  getBoundingClientRect: se,
19052
19052
  contextElement: se.contextElement || I()
19053
19053
  } : t, ht = {
@@ -19096,7 +19096,7 @@ function O$(t, e) {
19096
19096
  element: De,
19097
19097
  padding: 3
19098
19098
  }
19099
- }), Nt.push.apply(Nt, (B == null ? void 0 : B.modifiers) || []), y.popperInstance = JN(ze, v, Object.assign({}, B, {
19099
+ }), Nt.push.apply(Nt, (B == null ? void 0 : B.modifiers) || []), y.popperInstance = JN(je, v, Object.assign({}, B, {
19100
19100
  placement: K,
19101
19101
  onFirstUpdate: f,
19102
19102
  modifiers: Nt
@@ -19105,7 +19105,7 @@ function O$(t, e) {
19105
19105
  function Ft() {
19106
19106
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
19107
19107
  }
19108
- function zt() {
19108
+ function jt() {
19109
19109
  var x = y.props.appendTo, B, K = I();
19110
19110
  y.props.interactive && x === fg || x === "parent" ? B = K.parentNode : B = hg(x, [K]), B.contains(v) || B.appendChild(v), y.state.isMounted = !0, Zt(), process.env.NODE_ENV !== "production" && Bn(y.props.interactive && x === Pt.appendTo && K.nextElementSibling !== v, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
19111
19111
 
@@ -19120,7 +19120,7 @@ function O$(t, e) {
19120
19120
  }
19121
19121
  function $n(x) {
19122
19122
  y.clearDelayTimeouts(), x && ee("onTrigger", [y, x]), ft();
19123
- var B = z(!0), K = j(), re = K[0], se = K[1];
19123
+ var B = j(!0), K = z(), re = K[0], se = K[1];
19124
19124
  mn.isTouch && re === "hold" && se && (B = se), B ? r = setTimeout(function() {
19125
19125
  y.show();
19126
19126
  }, B) : y.show();
@@ -19131,7 +19131,7 @@ function O$(t, e) {
19131
19131
  return;
19132
19132
  }
19133
19133
  if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(x.type) >= 0 && o)) {
19134
- var B = z(!1);
19134
+ var B = j(!1);
19135
19135
  B ? i = setTimeout(function() {
19136
19136
  y.state.isVisible && y.hide();
19137
19137
  }, B) : s = requestAnimationFrame(function() {
@@ -19171,8 +19171,8 @@ function O$(t, e) {
19171
19171
  var x = y.state.isVisible, B = y.state.isDestroyed, K = !y.state.isEnabled, re = mn.isTouch && !y.props.touch, se = wl(y.props.duration, 0, Pt.duration);
19172
19172
  if (!(x || B || K || re) && !I().hasAttribute("disabled") && (ee("onShow", [y], !1), y.props.onShow(y) !== !1)) {
19173
19173
  if (y.state.isVisible = !0, Y() && (v.style.visibility = "visible"), P(), ft(), y.state.isMounted || (v.style.transition = "none"), Y()) {
19174
- var fe = H(), De = fe.box, ze = fe.content;
19175
- xl([De, ze], 0);
19174
+ var fe = H(), De = fe.box, je = fe.content;
19175
+ xl([De, je], 0);
19176
19176
  }
19177
19177
  f = function() {
19178
19178
  var Nt;
@@ -19185,7 +19185,7 @@ function O$(t, e) {
19185
19185
  y.state.isShown = !0, ee("onShown", [y]);
19186
19186
  });
19187
19187
  }
19188
- }, zt();
19188
+ }, jt();
19189
19189
  }
19190
19190
  }
19191
19191
  function M() {
@@ -19893,7 +19893,7 @@ const D$ = (t = {}) => {
19893
19893
  t
19894
19894
  ];
19895
19895
  }
19896
- }), L$ = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, F$ = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, z$ = Mn.create({
19896
+ }), L$ = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, F$ = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, j$ = Mn.create({
19897
19897
  name: "code",
19898
19898
  addOptions() {
19899
19899
  return {
@@ -19939,7 +19939,7 @@ const D$ = (t = {}) => {
19939
19939
  })
19940
19940
  ];
19941
19941
  }
19942
- }), j$ = /^```([a-z]+)?[\s\n]$/, H$ = /^~~~([a-z]+)?[\s\n]$/, W$ = Bt.create({
19942
+ }), z$ = /^```([a-z]+)?[\s\n]$/, H$ = /^~~~([a-z]+)?[\s\n]$/, W$ = Bt.create({
19943
19943
  name: "codeBlock",
19944
19944
  addOptions() {
19945
19945
  return {
@@ -20029,7 +20029,7 @@ const D$ = (t = {}) => {
20029
20029
  addInputRules() {
20030
20030
  return [
20031
20031
  pc({
20032
- find: j$,
20032
+ find: z$,
20033
20033
  type: this.type,
20034
20034
  getAttributes: (t) => ({
20035
20035
  language: t[1]
@@ -21180,7 +21180,7 @@ const Og = Sg(!1, !0), Mg = Sg(!0, !0), p5 = ut.create({
21180
21180
  addExtensions() {
21181
21181
  var t, e, n, r, i, s, o, a, l, c, u, d, f, h, p, m, g, b;
21182
21182
  const w = [];
21183
- return this.options.blockquote !== !1 && w.push(A$.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && w.push(R$.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && w.push(B$.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && w.push(z$.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && w.push(W$.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && w.push(Y$.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && w.push(G$.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && w.push(n5.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && w.push(r5.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && w.push(i5.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && w.push(p5.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && w.push(m5.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && w.push(w5.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && w.push(x5.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && w.push(S5.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && w.push(O5.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && w.push(T5.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && w.push(_5.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), w;
21183
+ return this.options.blockquote !== !1 && w.push(A$.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && w.push(R$.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && w.push(B$.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && w.push(j$.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && w.push(W$.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && w.push(Y$.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && w.push(G$.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && w.push(n5.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && w.push(r5.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && w.push(i5.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && w.push(p5.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && w.push(m5.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && w.push(w5.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && w.push(x5.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && w.push(S5.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && w.push(O5.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && w.push(T5.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && w.push(_5.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), w;
21184
21184
  }
21185
21185
  }), E5 = ut.create({
21186
21186
  name: "placeholder",
@@ -21246,10 +21246,10 @@ const R5 = /* @__PURE__ */ xe(A5, [["render", I5]]), V5 = {}, B5 = {
21246
21246
  }, L5 = /* @__PURE__ */ E("path", { d: "M2.995 1a.625.625 0 1 0 0 1.25h.38v2.125a.625.625 0 1 0 1.25 0v-2.75A.625.625 0 0 0 4 1H2.995ZM3.208 7.385a2.37 2.37 0 0 1 1.027-.124L2.573 8.923a.625.625 0 0 0 .439 1.067l1.987.011a.625.625 0 0 0 .006-1.25l-.49-.003.777-.776c.215-.215.335-.506.335-.809 0-.465-.297-.957-.842-1.078a3.636 3.636 0 0 0-1.993.121.625.625 0 1 0 .416 1.179ZM2.625 11a.625.625 0 1 0 0 1.25H4.25a.125.125 0 0 1 0 .25H3.5a.625.625 0 1 0 0 1.25h.75a.125.125 0 0 1 0 .25H2.625a.625.625 0 1 0 0 1.25H4.25a1.375 1.375 0 0 0 1.153-2.125A1.375 1.375 0 0 0 4.25 11H2.625ZM7.25 2a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM7.25 7.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6ZM6.5 13.25a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Z" }, null, -1), F5 = [
21247
21247
  L5
21248
21248
  ];
21249
- function z5(t, e) {
21249
+ function j5(t, e) {
21250
21250
  return k(), _("svg", B5, F5);
21251
21251
  }
21252
- const j5 = /* @__PURE__ */ xe(V5, [["render", z5]]), H5 = {}, W5 = {
21252
+ const z5 = /* @__PURE__ */ xe(V5, [["render", j5]]), H5 = {}, W5 = {
21253
21253
  xmlns: "http://www.w3.org/2000/svg",
21254
21254
  viewBox: "0 0 16 16",
21255
21255
  fill: "currentColor"
@@ -21369,7 +21369,7 @@ const OP = /* @__PURE__ */ xe(bP, [["render", SP]]), MP = { class: "py-1 px-1 bo
21369
21369
  // { method: 'toggleHeading', type: 'chain', label: 'h2', params: { level: 2 }, disableCheck: false },
21370
21370
  // { method: 'toggleHeading', type: 'chain', label: 'h3', params: { level: 3 }, disableCheck: false },
21371
21371
  { method: "toggleBulletList", type: "chain", label: "bullet list", icon: R5, disableCheck: !1 },
21372
- { method: "toggleOrderedList", type: "chain", label: "ordered list", icon: j5, disableCheck: !1 },
21372
+ { method: "toggleOrderedList", type: "chain", label: "ordered list", icon: z5, disableCheck: !1 },
21373
21373
  { method: "undo", type: "chain", label: "undo", icon: G5, disableCheck: !0 },
21374
21374
  { method: "redo", type: "chain", label: "redo", icon: eP, disableCheck: !0 },
21375
21375
  { method: "redo", type: "chain", label: "redo", icon: OP, disableCheck: !0 }
@@ -21398,15 +21398,15 @@ const OP = /* @__PURE__ */ xe(bP, [["render", SP]]), MP = { class: "py-1 px-1 bo
21398
21398
  }
21399
21399
  return (c, u) => $(o) ? (k(), _("div", {
21400
21400
  key: 0,
21401
- class: G(["pt-px relative flex flex-col rounded border", r[$(oe).theme]])
21401
+ class: G(["pt-px relative flex flex-col rounded-sm border", r[$(oe).theme]])
21402
21402
  }, [
21403
21403
  E("div", MP, [
21404
21404
  E("div", CP, [
21405
21405
  (k(), _($e, null, lt(i, (d) => E("div", {
21406
21406
  key: d.method,
21407
- class: G(["w-8 h-8 flex items-center justify-center text-xs rounded", {
21407
+ class: G(["w-8 h-8 flex items-center justify-center text-xs rounded-sm", {
21408
21408
  "cursor-pointer": !l(d.method, d.type, d.params, d.disableCheck),
21409
- "is-active text-white !bg-zinc-200": $(o).isActive(d.label)
21409
+ "is-active text-white bg-zinc-200!": $(o).isActive(d.label)
21410
21410
  }]),
21411
21411
  onClick: (f) => a(d.method, d.type, d.params)
21412
21412
  }, [
@@ -21454,13 +21454,13 @@ const VP = /* @__PURE__ */ xe(NP, [["render", RP]]), BP = {}, LP = {
21454
21454
  fill: "none",
21455
21455
  stroke: "currentColor",
21456
21456
  "stroke-width": "3"
21457
- }, null, -1), zP = [
21457
+ }, null, -1), jP = [
21458
21458
  FP
21459
21459
  ];
21460
- function jP(t, e) {
21461
- return k(), _("svg", LP, zP);
21460
+ function zP(t, e) {
21461
+ return k(), _("svg", LP, jP);
21462
21462
  }
21463
- const HP = /* @__PURE__ */ xe(BP, [["render", jP]]), WP = {}, YP = {
21463
+ const HP = /* @__PURE__ */ xe(BP, [["render", zP]]), WP = {}, YP = {
21464
21464
  xmlns: "http://www.w3.org/2000/svg",
21465
21465
  viewBox: "0 0 24 24",
21466
21466
  fill: "none"
@@ -21511,10 +21511,10 @@ const ZP = /* @__PURE__ */ xe(WP, [["render", JP]]), XP = {
21511
21511
  setup(t) {
21512
21512
  return (e, n) => (k(), _("span", {
21513
21513
  class: G(["inline-flex items-center justify-center border-0 font-normal rounded-md min-h-6 gap-1 leading-none text-sm px-2", {
21514
- "bg-green-100 border-green-200 text-green-700 dark:border-green-600/30 dark:bg-green-800 dark:bg-opacity-15 dark:text-opacity-85 dark:text-green-500": t.success,
21515
- "bg-yellow-100 border-yellow-200 text-yellow-700 dark:border-yellow-600/30 dark:bg-yellow-800 dark:bg-opacity-15 dark:text-opacity-85 dark:text-yellow-500": t.warning,
21516
- "bg-red-100 border-red-200 text-red-700 dark:border-red-600/30 dark:bg-red-800 dark:bg-opacity-15 dark:text-opacity-85 dark:text-red-500": t.error,
21517
- "bg-zinc-100 border-zinc-200 text-zinc-700 dark:border-zinc-600/30 dark:bg-zinc-800 dark:bg-opacity-15 dark:text-opacity-85 dark:text-zinc-400": !t.success && !t.warning && !t.error
21514
+ "bg-green-100 border-green-200 text-green-700 dark:border-green-600/30 dark:bg-green-800/15 dark:text-green-500/85": t.success,
21515
+ "bg-yellow-100 border-yellow-200 text-yellow-700 dark:border-yellow-600/30 dark:bg-yellow-800/15 dark:text-yellow-500/85": t.warning,
21516
+ "bg-red-100 border-red-200 text-red-700 dark:border-red-600/30 dark:bg-red-800/15 dark:text-red-500/85": t.error,
21517
+ "bg-gray-100 border-gray-200 text-gray-700 dark:border-gray-600/30 dark:bg-gray-800/15 dark:text-gray-400/85": !t.success && !t.warning && !t.error
21518
21518
  }])
21519
21519
  }, [
21520
21520
  t.complete ? (k(), be(VP, {
@@ -21946,10 +21946,10 @@ function lo(t, e) {
21946
21946
  function SI(t, e, n) {
21947
21947
  e != null && Me(Oc, t) && Oc[t](e, n._a, n, t);
21948
21948
  }
21949
- function za(t) {
21949
+ function ja(t) {
21950
21950
  return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
21951
21951
  }
21952
- var ct = 0, jn = 1, yn = 2, Ue = 3, tn = 4, Hn = 5, Br = 6, OI = 7, MI = 8;
21952
+ var ct = 0, zn = 1, yn = 2, Ue = 3, tn = 4, Hn = 5, Br = 6, OI = 7, MI = 8;
21953
21953
  Q("Y", 0, 0, function() {
21954
21954
  var t = this.year();
21955
21955
  return t <= 9999 ? Tn(t, 4) : "+" + t;
@@ -21976,21 +21976,21 @@ Ne("Y", function(t, e) {
21976
21976
  e[ct] = parseInt(t, 10);
21977
21977
  });
21978
21978
  function Os(t) {
21979
- return za(t) ? 366 : 365;
21979
+ return ja(t) ? 366 : 365;
21980
21980
  }
21981
21981
  D.parseTwoDigitYear = function(t) {
21982
21982
  return we(t) + (we(t) > 68 ? 1900 : 2e3);
21983
21983
  };
21984
21984
  var Ig = ts("FullYear", !0);
21985
21985
  function CI() {
21986
- return za(this.year());
21986
+ return ja(this.year());
21987
21987
  }
21988
21988
  function ts(t, e) {
21989
21989
  return function(n) {
21990
- return n != null ? (Rg(this, t, n), D.updateOffset(this, e), this) : js(this, t);
21990
+ return n != null ? (Rg(this, t, n), D.updateOffset(this, e), this) : zs(this, t);
21991
21991
  };
21992
21992
  }
21993
- function js(t, e) {
21993
+ function zs(t, e) {
21994
21994
  if (!t.isValid())
21995
21995
  return NaN;
21996
21996
  var n = t._d, r = t._isUTC;
@@ -22034,7 +22034,7 @@ function Rg(t, e, n) {
22034
22034
  default:
22035
22035
  return;
22036
22036
  }
22037
- s = n, o = t.month(), a = t.date(), a = a === 29 && o === 1 && !za(s) ? 28 : a, i ? r.setUTCFullYear(s, o, a) : r.setFullYear(s, o, a);
22037
+ s = n, o = t.month(), a = t.date(), a = a === 29 && o === 1 && !ja(s) ? 28 : a, i ? r.setUTCFullYear(s, o, a) : r.setFullYear(s, o, a);
22038
22038
  }
22039
22039
  }
22040
22040
  function TI(t) {
@@ -22053,8 +22053,8 @@ function _I(t, e) {
22053
22053
  function DI(t, e) {
22054
22054
  return (t % e + e) % e;
22055
22055
  }
22056
- var je;
22057
- Array.prototype.indexOf ? je = Array.prototype.indexOf : je = function(t) {
22056
+ var ze;
22057
+ Array.prototype.indexOf ? ze = Array.prototype.indexOf : ze = function(t) {
22058
22058
  var e;
22059
22059
  for (e = 0; e < this.length; ++e)
22060
22060
  if (this[e] === t)
@@ -22065,7 +22065,7 @@ function _u(t, e) {
22065
22065
  if (isNaN(t) || isNaN(e))
22066
22066
  return NaN;
22067
22067
  var n = DI(e, 12);
22068
- return t += (e - n) / 12, n === 1 ? za(t) ? 29 : 28 : 31 - n % 7 % 2;
22068
+ return t += (e - n) / 12, n === 1 ? ja(t) ? 29 : 28 : 31 - n % 7 % 2;
22069
22069
  }
22070
22070
  Q("M", ["MM", 2], "Mo", function() {
22071
22071
  return this.month() + 1;
@@ -22085,11 +22085,11 @@ J("MMMM", function(t, e) {
22085
22085
  return e.monthsRegex(t);
22086
22086
  });
22087
22087
  Ne(["M", "MM"], function(t, e) {
22088
- e[jn] = we(t) - 1;
22088
+ e[zn] = we(t) - 1;
22089
22089
  });
22090
22090
  Ne(["MMM", "MMMM"], function(t, e, n, r) {
22091
22091
  var i = n._locale.monthsParse(t, r, n._strict);
22092
- i != null ? e[jn] = i : he(n).invalidMonth = t;
22092
+ i != null ? e[zn] = i : he(n).invalidMonth = t;
22093
22093
  });
22094
22094
  var EI = "January_February_March_April_May_June_July_August_September_October_November_December".split(
22095
22095
  "_"
@@ -22108,7 +22108,7 @@ function II(t, e, n) {
22108
22108
  s,
22109
22109
  ""
22110
22110
  ).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(s, "").toLocaleLowerCase();
22111
- return n ? e === "MMM" ? (i = je.call(this._shortMonthsParse, o), i !== -1 ? i : null) : (i = je.call(this._longMonthsParse, o), i !== -1 ? i : null) : e === "MMM" ? (i = je.call(this._shortMonthsParse, o), i !== -1 ? i : (i = je.call(this._longMonthsParse, o), i !== -1 ? i : null)) : (i = je.call(this._longMonthsParse, o), i !== -1 ? i : (i = je.call(this._shortMonthsParse, o), i !== -1 ? i : null));
22111
+ return n ? e === "MMM" ? (i = ze.call(this._shortMonthsParse, o), i !== -1 ? i : null) : (i = ze.call(this._longMonthsParse, o), i !== -1 ? i : null) : e === "MMM" ? (i = ze.call(this._shortMonthsParse, o), i !== -1 ? i : (i = ze.call(this._longMonthsParse, o), i !== -1 ? i : null)) : (i = ze.call(this._longMonthsParse, o), i !== -1 ? i : (i = ze.call(this._shortMonthsParse, o), i !== -1 ? i : null));
22112
22112
  }
22113
22113
  function RI(t, e, n) {
22114
22114
  var r, i, s;
@@ -22142,18 +22142,18 @@ function Lg(t, e) {
22142
22142
  return r = r < 29 ? r : Math.min(r, _u(t.year(), n)), t._isUTC ? t._d.setUTCMonth(n, r) : t._d.setMonth(n, r), t;
22143
22143
  }
22144
22144
  function Fg(t) {
22145
- return t != null ? (Lg(this, t), D.updateOffset(this, !0), this) : js(this, "Month");
22145
+ return t != null ? (Lg(this, t), D.updateOffset(this, !0), this) : zs(this, "Month");
22146
22146
  }
22147
22147
  function VI() {
22148
22148
  return _u(this.year(), this.month());
22149
22149
  }
22150
22150
  function BI(t) {
22151
- return this._monthsParseExact ? (Me(this, "_monthsRegex") || zg.call(this), t ? this._monthsShortStrictRegex : this._monthsShortRegex) : (Me(this, "_monthsShortRegex") || (this._monthsShortRegex = AI), this._monthsShortStrictRegex && t ? this._monthsShortStrictRegex : this._monthsShortRegex);
22151
+ return this._monthsParseExact ? (Me(this, "_monthsRegex") || jg.call(this), t ? this._monthsShortStrictRegex : this._monthsShortRegex) : (Me(this, "_monthsShortRegex") || (this._monthsShortRegex = AI), this._monthsShortStrictRegex && t ? this._monthsShortStrictRegex : this._monthsShortRegex);
22152
22152
  }
22153
22153
  function LI(t) {
22154
- return this._monthsParseExact ? (Me(this, "_monthsRegex") || zg.call(this), t ? this._monthsStrictRegex : this._monthsRegex) : (Me(this, "_monthsRegex") || (this._monthsRegex = NI), this._monthsStrictRegex && t ? this._monthsStrictRegex : this._monthsRegex);
22154
+ return this._monthsParseExact ? (Me(this, "_monthsRegex") || jg.call(this), t ? this._monthsStrictRegex : this._monthsRegex) : (Me(this, "_monthsRegex") || (this._monthsRegex = NI), this._monthsStrictRegex && t ? this._monthsStrictRegex : this._monthsRegex);
22155
22155
  }
22156
- function zg() {
22156
+ function jg() {
22157
22157
  function t(l, c) {
22158
22158
  return c.length - l.length;
22159
22159
  }
@@ -22180,7 +22180,7 @@ function aa(t, e, n) {
22180
22180
  var r = 7 + e - n, i = (7 + Hs(t, 0, r).getUTCDay() - e) % 7;
22181
22181
  return -i + r - 1;
22182
22182
  }
22183
- function jg(t, e, n, r, i) {
22183
+ function zg(t, e, n, r, i) {
22184
22184
  var s = (7 + n - r) % 7, o = aa(t, r, i), a = 1 + 7 * (e - 1) + s + o, l, c;
22185
22185
  return a <= 0 ? (l = t - 1, c = Os(l) + a) : a > Os(t) ? (l = t + 1, c = a - Os(t)) : (l = t, c = a), {
22186
22186
  year: l,
@@ -22210,10 +22210,10 @@ lo(
22210
22210
  e[r.substr(0, 1)] = we(t);
22211
22211
  }
22212
22212
  );
22213
- function zI(t) {
22213
+ function jI(t) {
22214
22214
  return Ws(t, this._week.dow, this._week.doy).week;
22215
22215
  }
22216
- var jI = {
22216
+ var zI = {
22217
22217
  dow: 0,
22218
22218
  // Sunday is the first day of the week.
22219
22219
  doy: 6
@@ -22295,7 +22295,7 @@ function rR(t, e, n) {
22295
22295
  s,
22296
22296
  ""
22297
22297
  ).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(s, "").toLocaleLowerCase();
22298
- return n ? e === "dddd" ? (i = je.call(this._weekdaysParse, o), i !== -1 ? i : null) : e === "ddd" ? (i = je.call(this._shortWeekdaysParse, o), i !== -1 ? i : null) : (i = je.call(this._minWeekdaysParse, o), i !== -1 ? i : null) : e === "dddd" ? (i = je.call(this._weekdaysParse, o), i !== -1 || (i = je.call(this._shortWeekdaysParse, o), i !== -1) ? i : (i = je.call(this._minWeekdaysParse, o), i !== -1 ? i : null)) : e === "ddd" ? (i = je.call(this._shortWeekdaysParse, o), i !== -1 || (i = je.call(this._weekdaysParse, o), i !== -1) ? i : (i = je.call(this._minWeekdaysParse, o), i !== -1 ? i : null)) : (i = je.call(this._minWeekdaysParse, o), i !== -1 || (i = je.call(this._weekdaysParse, o), i !== -1) ? i : (i = je.call(this._shortWeekdaysParse, o), i !== -1 ? i : null));
22298
+ return n ? e === "dddd" ? (i = ze.call(this._weekdaysParse, o), i !== -1 ? i : null) : e === "ddd" ? (i = ze.call(this._shortWeekdaysParse, o), i !== -1 ? i : null) : (i = ze.call(this._minWeekdaysParse, o), i !== -1 ? i : null) : e === "dddd" ? (i = ze.call(this._weekdaysParse, o), i !== -1 || (i = ze.call(this._shortWeekdaysParse, o), i !== -1) ? i : (i = ze.call(this._minWeekdaysParse, o), i !== -1 ? i : null)) : e === "ddd" ? (i = ze.call(this._shortWeekdaysParse, o), i !== -1 || (i = ze.call(this._weekdaysParse, o), i !== -1) ? i : (i = ze.call(this._minWeekdaysParse, o), i !== -1 ? i : null)) : (i = ze.call(this._minWeekdaysParse, o), i !== -1 || (i = ze.call(this._weekdaysParse, o), i !== -1) ? i : (i = ze.call(this._shortWeekdaysParse, o), i !== -1 ? i : null));
22299
22299
  }
22300
22300
  function iR(t, e, n) {
22301
22301
  var r, i, s;
@@ -22324,7 +22324,7 @@ function iR(t, e, n) {
22324
22324
  function sR(t) {
22325
22325
  if (!this.isValid())
22326
22326
  return t != null ? this : NaN;
22327
- var e = js(this, "Day");
22327
+ var e = zs(this, "Day");
22328
22328
  return t != null ? (t = qI(t, this.localeData()), this.add(t - e, "d")) : e;
22329
22329
  }
22330
22330
  function oR(t) {
@@ -22459,7 +22459,7 @@ var Ug = {
22459
22459
  relativeTime: pI,
22460
22460
  months: EI,
22461
22461
  monthsShort: Vg,
22462
- week: jI,
22462
+ week: zI,
22463
22463
  weekdays: KI,
22464
22464
  weekdaysMin: JI,
22465
22465
  weekdaysShort: Hg,
@@ -22478,7 +22478,7 @@ function hh(t) {
22478
22478
  function yR(t) {
22479
22479
  for (var e = 0, n, r, i, s; e < t.length; ) {
22480
22480
  for (s = hh(t[e]).split("-"), n = s.length, r = hh(t[e + 1]), r = r ? r.split("-") : null; n > 0; ) {
22481
- if (i = ja(s.slice(0, n).join("-")), i)
22481
+ if (i = za(s.slice(0, n).join("-")), i)
22482
22482
  return i;
22483
22483
  if (r && r.length >= n && gR(s, r) >= n - 1)
22484
22484
  break;
@@ -22491,7 +22491,7 @@ function yR(t) {
22491
22491
  function vR(t) {
22492
22492
  return !!(t && t.match("^[^/\\\\]*$"));
22493
22493
  }
22494
- function ja(t) {
22494
+ function za(t) {
22495
22495
  var e = null, n;
22496
22496
  if (Be[t] === void 0 && typeof module < "u" && module && module.exports && vR(t))
22497
22497
  try {
@@ -22518,7 +22518,7 @@ function Nu(t, e) {
22518
22518
  else if (e.parentLocale != null)
22519
22519
  if (Be[e.parentLocale] != null)
22520
22520
  r = Be[e.parentLocale]._config;
22521
- else if (n = ja(e.parentLocale), n != null)
22521
+ else if (n = za(e.parentLocale), n != null)
22522
22522
  r = n._config;
22523
22523
  else
22524
22524
  return cs[e.parentLocale] || (cs[e.parentLocale] = []), cs[e.parentLocale].push({
@@ -22534,7 +22534,7 @@ function Nu(t, e) {
22534
22534
  function bR(t, e) {
22535
22535
  if (e != null) {
22536
22536
  var n, r, i = Ug;
22537
- Be[t] != null && Be[t].parentLocale != null ? Be[t].set(kc(Be[t]._config, e)) : (r = ja(t), r != null && (i = r._config), e = kc(i, e), r == null && (e.abbr = t), n = new ku(e), n.parentLocale = Be[t], Be[t] = n), mr(t);
22537
+ Be[t] != null && Be[t].parentLocale != null ? Be[t].set(kc(Be[t]._config, e)) : (r = za(t), r != null && (i = r._config), e = kc(i, e), r == null && (e.abbr = t), n = new ku(e), n.parentLocale = Be[t], Be[t] = n), mr(t);
22538
22538
  } else
22539
22539
  Be[t] != null && (Be[t].parentLocale != null ? (Be[t] = Be[t].parentLocale, t === mr() && mr(t)) : Be[t] != null && delete Be[t]);
22540
22540
  return Be[t];
@@ -22544,7 +22544,7 @@ function Jn(t) {
22544
22544
  if (t && t._locale && t._locale._abbr && (t = t._locale._abbr), !t)
22545
22545
  return Ys;
22546
22546
  if (!on(t)) {
22547
- if (e = ja(t), e)
22547
+ if (e = za(t), e)
22548
22548
  return e;
22549
22549
  t = [t];
22550
22550
  }
@@ -22555,7 +22555,7 @@ function wR() {
22555
22555
  }
22556
22556
  function $u(t) {
22557
22557
  var e, n = t._a;
22558
- return n && he(t).overflow === -2 && (e = n[jn] < 0 || n[jn] > 11 ? jn : n[yn] < 1 || n[yn] > _u(n[ct], n[jn]) ? yn : n[Ue] < 0 || n[Ue] > 24 || n[Ue] === 24 && (n[tn] !== 0 || n[Hn] !== 0 || n[Br] !== 0) ? Ue : n[tn] < 0 || n[tn] > 59 ? tn : n[Hn] < 0 || n[Hn] > 59 ? Hn : n[Br] < 0 || n[Br] > 999 ? Br : -1, he(t)._overflowDayOfYear && (e < ct || e > yn) && (e = yn), he(t)._overflowWeeks && e === -1 && (e = OI), he(t)._overflowWeekday && e === -1 && (e = MI), he(t).overflow = e), t;
22558
+ return n && he(t).overflow === -2 && (e = n[zn] < 0 || n[zn] > 11 ? zn : n[yn] < 1 || n[yn] > _u(n[ct], n[zn]) ? yn : n[Ue] < 0 || n[Ue] > 24 || n[Ue] === 24 && (n[tn] !== 0 || n[Hn] !== 0 || n[Br] !== 0) ? Ue : n[tn] < 0 || n[tn] > 59 ? tn : n[Hn] < 0 || n[Hn] > 59 ? Hn : n[Br] < 0 || n[Br] > 999 ? Br : -1, he(t)._overflowDayOfYear && (e < ct || e > yn) && (e = yn), he(t)._overflowWeeks && e === -1 && (e = OI), he(t)._overflowWeekday && e === -1 && (e = MI), he(t).overflow = e), t;
22559
22559
  }
22560
22560
  var xR = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, kR = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, SR = /Z|[+-]\d\d(?::?\d\d)?/, Oo = [
22561
22561
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -22720,7 +22720,7 @@ function $R(t) {
22720
22720
  function Pu(t) {
22721
22721
  var e, n, r = [], i, s, o;
22722
22722
  if (!t._d) {
22723
- for (i = $R(t), t._w && t._a[yn] == null && t._a[jn] == null && PR(t), t._dayOfYear != null && (o = pi(t._a[ct], i[ct]), (t._dayOfYear > Os(o) || t._dayOfYear === 0) && (he(t)._overflowDayOfYear = !0), n = Hs(o, 0, t._dayOfYear), t._a[jn] = n.getUTCMonth(), t._a[yn] = n.getUTCDate()), e = 0; e < 3 && t._a[e] == null; ++e)
22723
+ for (i = $R(t), t._w && t._a[yn] == null && t._a[zn] == null && PR(t), t._dayOfYear != null && (o = pi(t._a[ct], i[ct]), (t._dayOfYear > Os(o) || t._dayOfYear === 0) && (he(t)._overflowDayOfYear = !0), n = Hs(o, 0, t._dayOfYear), t._a[zn] = n.getUTCMonth(), t._a[yn] = n.getUTCDate()), e = 0; e < 3 && t._a[e] == null; ++e)
22724
22724
  t._a[e] = r[e] = i[e];
22725
22725
  for (; e < 7; e++)
22726
22726
  t._a[e] = r[e] = t._a[e] == null ? e === 2 ? 1 : 0 : t._a[e];
@@ -22736,7 +22736,7 @@ function PR(t) {
22736
22736
  e.GG,
22737
22737
  t._a[ct],
22738
22738
  Ws(Re(), 1, 4).year
22739
- ), r = pi(e.W, 1), i = pi(e.E, 1), (i < 1 || i > 7) && (l = !0)) : (s = t._locale._week.dow, o = t._locale._week.doy, c = Ws(Re(), s, o), n = pi(e.gg, t._a[ct], c.year), r = pi(e.w, c.week), e.d != null ? (i = e.d, (i < 0 || i > 6) && (l = !0)) : e.e != null ? (i = e.e + s, (e.e < 0 || e.e > 6) && (l = !0)) : i = s), r < 1 || r > Un(n, s, o) ? he(t)._overflowWeeks = !0 : l != null ? he(t)._overflowWeekday = !0 : (a = jg(n, r, i, s, o), t._a[ct] = a.year, t._dayOfYear = a.dayOfYear);
22739
+ ), r = pi(e.W, 1), i = pi(e.E, 1), (i < 1 || i > 7) && (l = !0)) : (s = t._locale._week.dow, o = t._locale._week.doy, c = Ws(Re(), s, o), n = pi(e.gg, t._a[ct], c.year), r = pi(e.w, c.week), e.d != null ? (i = e.d, (i < 0 || i > 6) && (l = !0)) : e.e != null ? (i = e.e + s, (e.e < 0 || e.e > 6) && (l = !0)) : i = s), r < 1 || r > Un(n, s, o) ? he(t)._overflowWeeks = !0 : l != null ? he(t)._overflowWeekday = !0 : (a = zg(n, r, i, s, o), t._a[ct] = a.year, t._dayOfYear = a.dayOfYear);
22740
22740
  }
22741
22741
  D.ISO_8601 = function() {
22742
22742
  };
@@ -22815,7 +22815,7 @@ var FR = Kt(
22815
22815
  var t = Re.apply(null, arguments);
22816
22816
  return this.isValid() && t.isValid() ? t < this ? this : t : Ia();
22817
22817
  }
22818
- ), zR = Kt(
22818
+ ), jR = Kt(
22819
22819
  "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
22820
22820
  function() {
22821
22821
  var t = Re.apply(null, arguments);
@@ -22830,7 +22830,7 @@ function Zg(t, e) {
22830
22830
  (!e[r].isValid() || e[r][t](n)) && (n = e[r]);
22831
22831
  return n;
22832
22832
  }
22833
- function jR() {
22833
+ function zR() {
22834
22834
  var t = [].slice.call(arguments, 0);
22835
22835
  return Zg("isBefore", t);
22836
22836
  }
@@ -22854,7 +22854,7 @@ var WR = function() {
22854
22854
  function YR(t) {
22855
22855
  var e, n = !1, r, i = us.length;
22856
22856
  for (e in t)
22857
- if (Me(t, e) && !(je.call(us, e) !== -1 && (t[e] == null || !isNaN(t[e]))))
22857
+ if (Me(t, e) && !(ze.call(us, e) !== -1 && (t[e] == null || !isNaN(t[e]))))
22858
22858
  return !1;
22859
22859
  for (r = 0; r < i; ++r)
22860
22860
  if (t[us[r]]) {
@@ -23026,7 +23026,7 @@ function e0(t, e) {
23026
23026
  }
23027
23027
  function t0(t, e, n, r) {
23028
23028
  var i = e._milliseconds, s = Mc(e._days), o = Mc(e._months);
23029
- t.isValid() && (r = r ?? !0, o && Lg(t, js(t, "Month") + o * n), s && Rg(t, "Date", js(t, "Date") + s * n), i && t._d.setTime(t._d.valueOf() + i * n), r && D.updateOffset(t, s || o));
23029
+ t.isValid() && (r = r ?? !0, o && Lg(t, zs(t, "Month") + o * n), s && Rg(t, "Date", zs(t, "Date") + s * n), i && t._d.setTime(t._d.valueOf() + i * n), r && D.updateOffset(t, s || o));
23030
23030
  }
23031
23031
  var cV = e0(1, "add"), uV = e0(-1, "subtract");
23032
23032
  function n0(t) {
@@ -23364,10 +23364,10 @@ function LV() {
23364
23364
  function FV() {
23365
23365
  return this.isValid() ? this.toISOString() : null;
23366
23366
  }
23367
- function zV() {
23367
+ function jV() {
23368
23368
  return wu(this);
23369
23369
  }
23370
- function jV() {
23370
+ function zV() {
23371
23371
  return ur({}, he(this));
23372
23372
  }
23373
23373
  function HV() {
@@ -23586,13 +23586,13 @@ function c0(t, e, n, r, i) {
23586
23586
  return t == null ? Ws(this, r, i).year : (s = Un(t, r, i), e > s && (e = s), uB.call(this, t, e, n, r, i));
23587
23587
  }
23588
23588
  function uB(t, e, n, r, i) {
23589
- var s = jg(t, e, n, r, i), o = Hs(s.year, 0, s.dayOfYear);
23589
+ var s = zg(t, e, n, r, i), o = Hs(s.year, 0, s.dayOfYear);
23590
23590
  return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
23591
23591
  }
23592
23592
  Q("Q", 0, "Qo", "quarter");
23593
23593
  J("Q", Ag);
23594
23594
  Ne("Q", function(t, e) {
23595
- e[jn] = (we(t) - 1) * 3;
23595
+ e[zn] = (we(t) - 1) * 3;
23596
23596
  });
23597
23597
  function dB(t) {
23598
23598
  return t == null ? Math.ceil((this.month() + 1) / 3) : this.month((t - 1) * 3 + this.month() % 3);
@@ -23694,13 +23694,13 @@ L.isBetween = wV;
23694
23694
  L.isSame = xV;
23695
23695
  L.isSameOrAfter = kV;
23696
23696
  L.isSameOrBefore = SV;
23697
- L.isValid = zV;
23697
+ L.isValid = jV;
23698
23698
  L.lang = i0;
23699
23699
  L.locale = r0;
23700
23700
  L.localeData = s0;
23701
- L.max = zR;
23701
+ L.max = jR;
23702
23702
  L.min = FR;
23703
- L.parsingFlags = jV;
23703
+ L.parsingFlags = zV;
23704
23704
  L.set = _I;
23705
23705
  L.startOf = $V;
23706
23706
  L.subtract = uV;
@@ -23805,7 +23805,7 @@ Ce.monthsShort = PI;
23805
23805
  Ce.monthsParse = RI;
23806
23806
  Ce.monthsRegex = LI;
23807
23807
  Ce.monthsShortRegex = BI;
23808
- Ce.week = zI;
23808
+ Ce.week = jI;
23809
23809
  Ce.firstDayOfYear = WI;
23810
23810
  Ce.firstDayOfWeek = HI;
23811
23811
  Ce.weekdays = eR;
@@ -23962,7 +23962,7 @@ function ti(t) {
23962
23962
  return this.isValid() ? this._data[t] : NaN;
23963
23963
  };
23964
23964
  }
23965
- var zB = ti("milliseconds"), jB = ti("seconds"), HB = ti("minutes"), WB = ti("hours"), YB = ti("days"), UB = ti("months"), qB = ti("years");
23965
+ var jB = ti("milliseconds"), zB = ti("seconds"), HB = ti("minutes"), WB = ti("hours"), YB = ti("days"), UB = ti("months"), qB = ti("years");
23966
23966
  function GB() {
23967
23967
  return Ht(this.days() / 7);
23968
23968
  }
@@ -24030,8 +24030,8 @@ ke.valueOf = BB;
24030
24030
  ke._bubble = _B;
24031
24031
  ke.clone = LB;
24032
24032
  ke.get = FB;
24033
- ke.milliseconds = zB;
24034
- ke.seconds = jB;
24033
+ ke.milliseconds = jB;
24034
+ ke.seconds = zB;
24035
24035
  ke.minutes = HB;
24036
24036
  ke.hours = WB;
24037
24037
  ke.days = YB;
@@ -24063,7 +24063,7 @@ Ne("x", function(t, e, n) {
24063
24063
  D.version = "2.30.1";
24064
24064
  eI(Re);
24065
24065
  D.fn = L;
24066
- D.min = jR;
24066
+ D.min = zR;
24067
24067
  D.max = HR;
24068
24068
  D.now = WR;
24069
24069
  D.utc = En;
@@ -24192,7 +24192,7 @@ const El = {
24192
24192
  });
24193
24193
  const i = e, s = ae(() => n.doubleMonths || n.range ? [0, 1] : [0]);
24194
24194
  function o(I) {
24195
- var F, H, z;
24195
+ var F, H, j;
24196
24196
  if (n.week)
24197
24197
  i("update:modelValue", [D(I).startOf("week"), D(I).endOf("week")]);
24198
24198
  else if (n.range) {
@@ -24200,7 +24200,7 @@ const El = {
24200
24200
  i("update:modelValue", [I]);
24201
24201
  else if (((H = n.modelValue) == null ? void 0 : H.length) == 2)
24202
24202
  i("update:modelValue", [I]);
24203
- else if (((z = n.modelValue) == null ? void 0 : z.length) == 1) {
24203
+ else if (((j = n.modelValue) == null ? void 0 : j.length) == 1) {
24204
24204
  let P = [D(n.modelValue[0]), D(I)];
24205
24205
  P = P.sort((ee, Te) => ee - Te), i("update:modelValue", P);
24206
24206
  }
@@ -24208,9 +24208,9 @@ const El = {
24208
24208
  i("update:modelValue", D(I));
24209
24209
  }
24210
24210
  function a(I) {
24211
- const F = D(I).daysInMonth(), H = [], z = D(I).startOf("month");
24211
+ const F = D(I).daysInMonth(), H = [], j = D(I).startOf("month");
24212
24212
  for (let P = 1; P <= F; P++) {
24213
- let ee = z.clone().date(P);
24213
+ let ee = j.clone().date(P);
24214
24214
  H.push(ee);
24215
24215
  }
24216
24216
  return H;
@@ -24295,7 +24295,7 @@ const El = {
24295
24295
  function N(I) {
24296
24296
  return D(I).week() === O.value;
24297
24297
  }
24298
- function j(I) {
24298
+ function z(I) {
24299
24299
  return D(I).week() === O.value ? D(I).format("YYYY-MM-DD") === D().week(O.value).startOf("week").format("YYYY-MM-DD") : !1;
24300
24300
  }
24301
24301
  function ne(I) {
@@ -24305,10 +24305,10 @@ const El = {
24305
24305
  O.value = null;
24306
24306
  }
24307
24307
  return (I, F) => (k(), _("div", {
24308
- class: G(["flex-shrink-0 flex gap-6", { "min-w-96": s.value.length === 1, "min-w-192": s.value.length === 2 }])
24308
+ class: G(["shrink-0 flex gap-6", { "min-w-96": s.value.length === 1, "min-w-192": s.value.length === 2 }])
24309
24309
  }, [
24310
24310
  (k(!0), _($e, null, lt(s.value, (H) => {
24311
- var z;
24311
+ var j;
24312
24312
  return k(), _("div", eL, [
24313
24313
  E("div", tL, [
24314
24314
  E("div", nL, [
@@ -24348,7 +24348,7 @@ const El = {
24348
24348
  onMouseover: (ee) => A(P),
24349
24349
  today: d(P),
24350
24350
  selected: f(P),
24351
- firstDay: p(P) || j(P),
24351
+ firstDay: p(P) || z(P),
24352
24352
  lastDay: m(P) || ne(P),
24353
24353
  between: h(P),
24354
24354
  highlight: N(P),
@@ -24364,7 +24364,7 @@ const El = {
24364
24364
  onClick: (ee) => !b(P) && !g(P) ? o(P) : null,
24365
24365
  today: d(P),
24366
24366
  selected: f(P),
24367
- firstDay: p(P) || j(P),
24367
+ firstDay: p(P) || z(P),
24368
24368
  lastDay: m(P) || ne(P),
24369
24369
  between: h(P),
24370
24370
  disabled: b(P) || g(P),
@@ -24376,12 +24376,12 @@ const El = {
24376
24376
  ]),
24377
24377
  _: 2
24378
24378
  }, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
24379
- ((z = u($(D)(r.value[H]).year(), $(D)(r.value[H]).month() + 1)) == null ? void 0 : z.length) > 0 ? (k(!0), _($e, { key: 1 }, lt(u($(D)(r.value[H]).year(), $(D)(r.value[H]).month() + 1), (P) => (k(), be(El, {
24379
+ ((j = u($(D)(r.value[H]).year(), $(D)(r.value[H]).month() + 1)) == null ? void 0 : j.length) > 0 ? (k(!0), _($e, { key: 1 }, lt(u($(D)(r.value[H]).year(), $(D)(r.value[H]).month() + 1), (P) => (k(), be(El, {
24380
24380
  onClick: (ee) => !b(P) || !g(P) ? o(P) : null,
24381
24381
  onMouseover: (ee) => A(P),
24382
24382
  today: d(P),
24383
24383
  selected: f(P),
24384
- firstDay: p(P) || j(P),
24384
+ firstDay: p(P) || z(P),
24385
24385
  lastDay: m(P) || ne(P),
24386
24386
  between: h(P),
24387
24387
  highlight: N(P),
@@ -24431,7 +24431,7 @@ function vL(t, e) {
24431
24431
  }
24432
24432
  const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3" }, xL = {
24433
24433
  key: 0,
24434
- class: "w-32 py-2 border-r dark:border-gray-800 flex flex-col gap-3 flex-shrink-0"
24434
+ class: "w-32 py-2 border-r dark:border-gray-800 flex flex-col gap-3 shrink-0"
24435
24435
  }, kL = ["onClick"], SL = {
24436
24436
  name: "WpicDateField"
24437
24437
  }, OL = /* @__PURE__ */ Object.assign(SL, {
@@ -24514,7 +24514,7 @@ const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3"
24514
24514
  default: Se(() => {
24515
24515
  var c;
24516
24516
  return [
24517
- ce(jc, {
24517
+ ce(zc, {
24518
24518
  label: t.label,
24519
24519
  slim: t.slim,
24520
24520
  disabled: t.disabled,
@@ -24559,7 +24559,7 @@ const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3"
24559
24559
  default: () => ({
24560
24560
  width: "w-96",
24561
24561
  mr: "mr-0",
24562
- zIndex: "z-[15]"
24562
+ zIndex: "z-15"
24563
24563
  })
24564
24564
  },
24565
24565
  expand: Boolean,
@@ -24586,7 +24586,7 @@ const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3"
24586
24586
  o.value.scrollTop = o.value.scrollHeight;
24587
24587
  }
24588
24588
  return (c, u) => (k(), _("div", {
24589
- class: G(["fixed inset-0 h-full flex justify-end bg-black/50 backdrop-blur-sm transition-opacity", {
24589
+ class: G(["fixed inset-0 h-full flex justify-end bg-black/50 backdrop-blur-xs transition-opacity", {
24590
24590
  "p-4": t.island,
24591
24591
  "opacity-0 pointer-events-none": !t.visible,
24592
24592
  "opacity-100": t.visible,
@@ -24722,7 +24722,7 @@ const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3"
24722
24722
  }, [
24723
24723
  Oe(l.$slots, "label", {}, () => [
24724
24724
  E("span", {
24725
- class: G({ "whitespace-nowrap overflow-ellipsis overflow-hidden": t.nowrap })
24725
+ class: G({ "whitespace-nowrap text-ellipsis overflow-hidden": t.nowrap })
24726
24726
  }, ge(u.label), 3)
24727
24727
  ])
24728
24728
  ], 10, $L))), 128))
@@ -24778,13 +24778,13 @@ const bL = /* @__PURE__ */ xe(pL, [["render", vL]]), wL = { class: "flex gap-3"
24778
24778
  "stroke-linecap": "round",
24779
24779
  "stroke-linejoin": "round",
24780
24780
  d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"
24781
- }, null, -1), zL = [
24781
+ }, null, -1), jL = [
24782
24782
  FL
24783
24783
  ];
24784
- function jL(t, e) {
24785
- return k(), _("svg", LL, zL);
24784
+ function zL(t, e) {
24785
+ return k(), _("svg", LL, jL);
24786
24786
  }
24787
- const HL = /* @__PURE__ */ xe(BL, [["render", jL]]), WL = {}, YL = {
24787
+ const HL = /* @__PURE__ */ xe(BL, [["render", zL]]), WL = {}, YL = {
24788
24788
  xmlns: "http://www.w3.org/2000/svg",
24789
24789
  fill: "none",
24790
24790
  viewBox: "0 0 24 24",
@@ -24848,12 +24848,12 @@ const a3 = /* @__PURE__ */ xe(n3, [["render", o3]]), l3 = { class: "w-6" }, c3 =
24848
24848
  },
24849
24849
  setup(t) {
24850
24850
  return (e, n) => (k(), _("div", {
24851
- class: G(["px-4 py-3 rounded text-base flex gap-4", {
24852
- "bg-zinc-50 text-zinc-950 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
24853
- "bg-amber-50 text-yellow-950 text-opacity-75": t.warning,
24854
- "bg-blue-50 text-blue-950 text-opacity-75": t.info,
24855
- "bg-red-50 text-red-950 text-opacity-75": t.error,
24856
- "bg-green-50 text-green-950 text-opacity-75": t.success
24851
+ class: G(["px-4 py-3 rounded-sm text-base flex gap-4", {
24852
+ "bg-gray-50 text-gray-900 dark:text-gray-200 dark:bg-gray-950 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
24853
+ "bg-amber-50 text-yellow-950 dark:text-yellow-100 dark:bg-yellow-950 text-opacity-75": t.warning,
24854
+ "bg-blue-50 text-blue-950 dark:text-blue-200 dark:bg-blue-950 text-opacity-75": t.info,
24855
+ "bg-red-100 text-red-950 dark:text-red-200 dark:bg-red-950 text-opacity-75": t.error,
24856
+ "bg-green-50 text-green-950 dark:text-green-200 dark:bg-green-950 text-opacity-75": t.success
24857
24857
  }])
24858
24858
  }, [
24859
24859
  E("div", l3, [
@@ -24875,11 +24875,11 @@ const a3 = /* @__PURE__ */ xe(n3, [["render", o3]]), l3 = { class: "w-6" }, c3 =
24875
24875
  t.title ? (k(), _("div", u3, ge(t.title), 1)) : X("", !0),
24876
24876
  E("span", {
24877
24877
  class: G(["", {
24878
- "text-zinc-950 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
24879
- "text-yellow-950 text-opacity-75": t.warning,
24880
- "text-blue-950 text-opacity-75": t.info,
24881
- "text-red-950 text-opacity-75": t.error,
24882
- "text-green-950 text-opacity-75": t.success
24878
+ "text-gray-950 dark:text-gray-200 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
24879
+ "text-yellow-950 dark:text-yellow-100 text-opacity-75": t.warning,
24880
+ "text-blue-950 dark:text-blue-200 text-opacity-75": t.info,
24881
+ "text-red-950 dark:text-red-200 text-opacity-75": t.error,
24882
+ "text-green-950 dark:text-green-200 text-opacity-75": t.success
24883
24883
  }])
24884
24884
  }, [
24885
24885
  Oe(e.$slots, "default", {}, () => [
@@ -24949,7 +24949,7 @@ const h3 = {
24949
24949
  ])
24950
24950
  ])) : X("", !0);
24951
24951
  }
24952
- }), w3 = /* @__PURE__ */ xe(b3, [["__scopeId", "data-v-613542ab"]]), Nl = { WpicAlert: f3, WpicCalendar: y0, WpicTextarea: bp, WpicDialog: AL, WpicSlidePanel: CL, WpicDateField: OL, WpicFormInput: jc, WpicButton: Ro, WpicBadge: QP, WpicTextEditor: AP, WpicInputGroup: dv, WpicButtonGroup: av, WpicForm: hv, WpicFormField: wp, WpicSpinner: ji, WpicTooltip: xp, WpicPopover: Wi, WpicChoiceList: vp, WpicCard: MC, WpicCardSection: DC, WpicProgressBar: $C, WpicTag: RC, WpicTagGroup: BC, WpicPagination: bT, WpicLoadingPanel: YC, WpicTable: UT, WpicTableColumn: qT, WpicTabs: IL, WpicTabPane: VL, WpicConfirm: w3 };
24952
+ }), w3 = /* @__PURE__ */ xe(b3, [["__scopeId", "data-v-613542ab"]]), Nl = { WpicAlert: f3, WpicCalendar: y0, WpicTextarea: bp, WpicDialog: AL, WpicSlidePanel: CL, WpicDateField: OL, WpicFormInput: zc, WpicButton: Ro, WpicBadge: QP, WpicTextEditor: AP, WpicInputGroup: dv, WpicButtonGroup: av, WpicForm: hv, WpicFormField: wp, WpicSpinner: zi, WpicTooltip: xp, WpicPopover: Wi, WpicChoiceList: vp, WpicCard: MC, WpicCardSection: DC, WpicProgressBar: $C, WpicTag: RC, WpicTagGroup: BC, WpicPagination: bT, WpicLoadingPanel: YC, WpicTable: UT, WpicTableColumn: qT, WpicTabs: IL, WpicTabPane: VL, WpicConfirm: w3 };
24953
24953
  function b0(t, e) {
24954
24954
  for (const n in e)
24955
24955
  Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? b0(t[n], e[n]) : t[n] = e[n]);