@romainbx/wpic-components 0.0.70 → 0.0.72

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.
@@ -1061,14 +1061,14 @@ function Ym(t, e, n) {
1061
1061
  return Fi(n == null ? void 0 : n.type) ? Gm(t, e, n) : jd(t, e, n);
1062
1062
  }
1063
1063
  function jd(t, e, n) {
1064
- const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: a, label: l, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Jm(n), g = d ? Ga(zi) : void 0, m = p || g, v = de(() => ui(Ce(t))), S = de(() => {
1065
- if (Ce(m == null ? void 0 : m.schema))
1064
+ const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: a, label: l, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Jm(n), m = d ? Ga(zi) : void 0, g = p || m, y = de(() => ui(Ce(t))), S = de(() => {
1065
+ if (Ce(g == null ? void 0 : g.schema))
1066
1066
  return;
1067
1067
  const oe = B(e);
1068
1068
  return Oo(oe) || Rt(oe) || Ue(oe) || Array.isArray(oe) ? oe : Ld(oe);
1069
- }), $ = !Ue(S.value) && Rt(Ce(e)), { id: y, value: w, initialValue: b, meta: E, setState: I, errors: N, flags: D } = Bm(v, {
1069
+ }), $ = !Ue(S.value) && Rt(Ce(e)), { id: v, value: w, initialValue: b, meta: E, setState: I, errors: N, flags: D } = Bm(y, {
1070
1070
  modelValue: r,
1071
- form: m,
1071
+ form: g,
1072
1072
  bails: o,
1073
1073
  label: l,
1074
1074
  type: s,
@@ -1086,14 +1086,14 @@ function jd(t, e, n) {
1086
1086
  };
1087
1087
  async function se(j) {
1088
1088
  var oe, Oe;
1089
- if (m != null && m.validateSchema) {
1090
- const { results: ge } = await m.validateSchema(j);
1091
- return (oe = ge[Ce(v)]) !== null && oe !== void 0 ? oe : { valid: !0, errors: [] };
1089
+ if (g != null && g.validateSchema) {
1090
+ const { results: ge } = await g.validateSchema(j);
1091
+ return (oe = ge[Ce(y)]) !== null && oe !== void 0 ? oe : { valid: !0, errors: [] };
1092
1092
  }
1093
1093
  return S.value ? Id(w.value, S.value, {
1094
- name: Ce(v),
1094
+ name: Ce(y),
1095
1095
  label: Ce(l),
1096
- values: (Oe = m == null ? void 0 : m.values) !== null && Oe !== void 0 ? Oe : {},
1096
+ values: (Oe = g == null ? void 0 : g.values) !== null && Oe !== void 0 ? Oe : {},
1097
1097
  bails: o
1098
1098
  }) : { valid: !0, errors: [] };
1099
1099
  }
@@ -1108,7 +1108,7 @@ function jd(t, e, n) {
1108
1108
  en(() => {
1109
1109
  if (i)
1110
1110
  return U();
1111
- (!m || !m.validateSchema) && P();
1111
+ (!g || !g.validateSchema) && P();
1112
1112
  });
1113
1113
  function _(j) {
1114
1114
  E.touched = j;
@@ -1138,8 +1138,8 @@ function jd(t, e, n) {
1138
1138
  L(j, c);
1139
1139
  }
1140
1140
  }), ae = {
1141
- id: y,
1142
- name: v,
1141
+ id: v,
1142
+ name: y,
1143
1143
  label: l,
1144
1144
  value: q,
1145
1145
  meta: E,
@@ -1166,13 +1166,13 @@ function jd(t, e, n) {
1166
1166
  deep: !0
1167
1167
  }), process.env.NODE_ENV !== "production" && (ae._vm = mn(), Pe(() => Object.assign(Object.assign({ errors: N.value }, E), { value: w.value }), Rr, {
1168
1168
  deep: !0
1169
- }), m || zm(ae)), !m)
1169
+ }), g || zm(ae)), !g)
1170
1170
  return ae;
1171
1171
  const J = de(() => {
1172
1172
  const j = S.value;
1173
1173
  return !j || Ue(j) || Oo(j) || Rt(j) || Array.isArray(j) ? {} : Object.keys(j).reduce((oe, Oe) => {
1174
1174
  const ge = Om(j[Oe]).map((Te) => Te.__locatorRef).reduce((Te, De) => {
1175
- const _e = ft(m.values, De) || m.values[De];
1175
+ const _e = ft(g.values, De) || g.values[De];
1176
1176
  return _e !== void 0 && (Te[De] = _e), Te;
1177
1177
  }, {});
1178
1178
  return Object.assign(oe, ge), oe;
@@ -1184,24 +1184,24 @@ function jd(t, e, n) {
1184
1184
  !st(j, oe) && (E.validated ? U() : P());
1185
1185
  }), hr(() => {
1186
1186
  var j;
1187
- const oe = (j = Ce(ae.keepValueOnUnmount)) !== null && j !== void 0 ? j : Ce(m.keepValuesOnUnmount), Oe = Ce(v);
1188
- if (oe || !m || D.pendingUnmount[ae.id]) {
1189
- m == null || m.removePathState(Oe, y);
1187
+ const oe = (j = Ce(ae.keepValueOnUnmount)) !== null && j !== void 0 ? j : Ce(g.keepValuesOnUnmount), Oe = Ce(y);
1188
+ if (oe || !g || D.pendingUnmount[ae.id]) {
1189
+ g == null || g.removePathState(Oe, v);
1190
1190
  return;
1191
1191
  }
1192
1192
  D.pendingUnmount[ae.id] = !0;
1193
- const ge = m.getPathState(Oe);
1193
+ const ge = g.getPathState(Oe);
1194
1194
  if (Array.isArray(ge == null ? void 0 : ge.id) && (ge != null && ge.multiple) ? ge != null && ge.id.includes(ae.id) : (ge == null ? void 0 : ge.id) === ae.id) {
1195
1195
  if (ge != null && ge.multiple && Array.isArray(ge.value)) {
1196
1196
  const De = ge.value.findIndex((_e) => st(_e, Ce(ae.checkedValue)));
1197
1197
  if (De > -1) {
1198
1198
  const _e = [...ge.value];
1199
- _e.splice(De, 1), m.setFieldValue(Oe, _e);
1199
+ _e.splice(De, 1), g.setFieldValue(Oe, _e);
1200
1200
  }
1201
1201
  Array.isArray(ge.id) && ge.id.splice(ge.id.indexOf(ae.id), 1);
1202
1202
  } else
1203
- m.unsetPathValue(Ce(v));
1204
- m.removePathState(Oe, y);
1203
+ g.unsetPathValue(Ce(y));
1204
+ g.removePathState(Oe, v);
1205
1205
  }
1206
1206
  }), ae;
1207
1207
  }
@@ -1239,9 +1239,9 @@ function Gm(t, e, n) {
1239
1239
  f && a.validate();
1240
1240
  return;
1241
1241
  }
1242
- const g = Ce(t), m = r == null ? void 0 : r.getPathState(g), v = Mo(d);
1243
- let S = (p = Ce(i)) !== null && p !== void 0 ? p : v;
1244
- r && (m != null && m.multiple) && m.type === "checkbox" ? S = Gl(ft(r.values, g) || [], S, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (S = Gl(Ce(a.value), S, Ce(o))), l(S, f);
1242
+ const m = Ce(t), g = r == null ? void 0 : r.getPathState(m), y = Mo(d);
1243
+ let S = (p = Ce(i)) !== null && p !== void 0 ? p : y;
1244
+ r && (g != null && g.multiple) && g.type === "checkbox" ? S = Gl(ft(r.values, m) || [], S, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (S = Gl(Ce(a.value), S, Ce(o))), l(S, f);
1245
1245
  }
1246
1246
  return Object.assign(Object.assign({}, a), {
1247
1247
  checked: c,
@@ -1342,7 +1342,7 @@ const Xm = /* @__PURE__ */ Rn({
1342
1342
  }
1343
1343
  },
1344
1344
  setup(t, e) {
1345
- const n = Jn(t, "rules"), r = Jn(t, "name"), i = Jn(t, "label"), o = Jn(t, "uncheckedValue"), s = Jn(t, "keepValue"), { errors: a, value: l, errorMessage: c, validate: u, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset: g, meta: m, checked: v, setErrors: S } = Ym(r, n, {
1345
+ const n = Jn(t, "rules"), r = Jn(t, "name"), i = Jn(t, "label"), o = Jn(t, "uncheckedValue"), s = Jn(t, "keepValue"), { errors: a, value: l, errorMessage: c, validate: u, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset: m, meta: g, checked: y, setErrors: S } = Ym(r, n, {
1346
1346
  validateOnMount: t.validateOnMount,
1347
1347
  bails: t.bails,
1348
1348
  standalone: t.standalone,
@@ -1357,7 +1357,7 @@ const Xm = /* @__PURE__ */ Rn({
1357
1357
  syncVModel: !0
1358
1358
  }), $ = function(N, D = !0) {
1359
1359
  d(N, D);
1360
- }, y = de(() => {
1360
+ }, v = de(() => {
1361
1361
  const { validateOnInput: I, validateOnChange: N, validateOnBlur: D, validateOnModelUpdate: V } = Qm(t);
1362
1362
  function Y(A) {
1363
1363
  f(A, D), Ue(e.attrs.onBlur) && e.attrs.onBlur(A);
@@ -1376,32 +1376,32 @@ const Xm = /* @__PURE__ */ Rn({
1376
1376
  };
1377
1377
  return P["onUpdate:modelValue"] = (A) => $(A, V), P;
1378
1378
  }), w = de(() => {
1379
- const I = Object.assign({}, y.value);
1380
- Fi(e.attrs.type) && v && (I.checked = v.value);
1379
+ const I = Object.assign({}, v.value);
1380
+ Fi(e.attrs.type) && y && (I.checked = y.value);
1381
1381
  const N = tc(t, e);
1382
1382
  return ym(N, e.attrs) && (I.value = l.value), I;
1383
- }), b = de(() => Object.assign(Object.assign({}, y.value), { modelValue: l.value }));
1383
+ }), b = de(() => Object.assign(Object.assign({}, v.value), { modelValue: l.value }));
1384
1384
  function E() {
1385
1385
  return {
1386
1386
  field: w.value,
1387
1387
  componentField: b.value,
1388
1388
  value: l.value,
1389
- meta: m,
1389
+ meta: g,
1390
1390
  errors: a.value,
1391
1391
  errorMessage: c.value,
1392
1392
  validate: u,
1393
1393
  resetField: p,
1394
1394
  handleChange: $,
1395
1395
  handleInput: (I) => $(I, !1),
1396
- handleReset: g,
1397
- handleBlur: y.value.onBlur,
1396
+ handleReset: m,
1397
+ handleBlur: v.value.onBlur,
1398
1398
  setTouched: h,
1399
1399
  setErrors: S
1400
1400
  };
1401
1401
  }
1402
1402
  return e.expose({
1403
1403
  value: l,
1404
- meta: m,
1404
+ meta: g,
1405
1405
  errors: a,
1406
1406
  errorMessage: c,
1407
1407
  setErrors: S,
@@ -1464,16 +1464,16 @@ function ng(t) {
1464
1464
  });
1465
1465
  }
1466
1466
  t != null && t.initialErrors && p(t.initialErrors);
1467
- const g = de(() => {
1467
+ const m = de(() => {
1468
1468
  const M = c.value.reduce((O, R) => (R.errors.length && (O[R.path] = R.errors), O), {});
1469
1469
  return Object.assign(Object.assign({}, u.value), M);
1470
- }), m = de(() => ut(g.value).reduce((M, O) => {
1471
- const R = g.value[O];
1470
+ }), g = de(() => ut(m.value).reduce((M, O) => {
1471
+ const R = m.value[O];
1472
1472
  return R != null && R.length && (M[O] = R[0]), M;
1473
- }, {})), v = de(() => c.value.reduce((M, O) => (M[O.path] = { name: O.path || "", label: O.label || "" }, M), {})), S = de(() => c.value.reduce((M, O) => {
1473
+ }, {})), y = de(() => c.value.reduce((M, O) => (M[O.path] = { name: O.path || "", label: O.label || "" }, M), {})), S = de(() => c.value.reduce((M, O) => {
1474
1474
  var R;
1475
1475
  return M[O.path] = (R = O.bails) !== null && R !== void 0 ? R : !0, M;
1476
- }, {})), $ = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: w, originalInitialValues: b, setInitialValues: E } = ig(c, l, t), I = rg(c, l, b, m), N = de(() => c.value.reduce((M, O) => {
1476
+ }, {})), $ = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), v = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: w, originalInitialValues: b, setInitialValues: E } = ig(c, l, t), I = rg(c, l, b, g), N = de(() => c.value.reduce((M, O) => {
1477
1477
  const R = ft(l, O.path);
1478
1478
  return sn(M, O.path, R), M;
1479
1479
  }, {})), D = t == null ? void 0 : t.validationSchema;
@@ -1517,7 +1517,7 @@ function ng(t) {
1517
1517
  validate: O == null ? void 0 : O.validate,
1518
1518
  dirty: de(() => !st(B(Q), B(fe)))
1519
1519
  });
1520
- return c.value.push(Re), d.value[ue] = Re, f(), m.value[ue] && !$[ue] && nt(() => {
1520
+ return c.value.push(Re), d.value[ue] = Re, f(), g.value[ue] && !$[ue] && nt(() => {
1521
1521
  Mt(ue, { mode: "silent" });
1522
1522
  }), So(M) && Pe(M, (ot) => {
1523
1523
  f();
@@ -1617,15 +1617,15 @@ function ng(t) {
1617
1617
  formId: n,
1618
1618
  values: l,
1619
1619
  controlledValues: N,
1620
- errorBag: g,
1621
- errors: m,
1620
+ errorBag: m,
1621
+ errors: g,
1622
1622
  schema: D,
1623
1623
  submitCount: s,
1624
1624
  meta: I,
1625
1625
  isSubmitting: i,
1626
1626
  isValidating: o,
1627
1627
  fieldArrays: a,
1628
- keepValuesOnUnmount: y,
1628
+ keepValuesOnUnmount: v,
1629
1629
  validateSchema: B(D) ? U : void 0,
1630
1630
  validate: Pt,
1631
1631
  setFieldError: h,
@@ -1779,7 +1779,7 @@ function ng(t) {
1779
1779
  return { valid: !0, results: {}, errors: {} };
1780
1780
  o.value = !0;
1781
1781
  const O = Oo(M) || Rt(M) ? await Lm(M, l) : await Im(M, l, {
1782
- names: v.value,
1782
+ names: y.value,
1783
1783
  bailsMap: S.value
1784
1784
  });
1785
1785
  return o.value = !1, O;
@@ -1796,7 +1796,7 @@ function ng(t) {
1796
1796
  }), So(D) && Pe(D, () => {
1797
1797
  var M;
1798
1798
  (M = j.validateSchema) === null || M === void 0 || M.call(j, "validated-only");
1799
- }), Si(zi, j), process.env.NODE_ENV !== "production" && (jm(j), Pe(() => Object.assign(Object.assign({ errors: g.value }, I.value), { values: l, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), Rr, {
1799
+ }), Si(zi, j), process.env.NODE_ENV !== "production" && (jm(j), Pe(() => Object.assign(Object.assign({ errors: m.value }, I.value), { values: l, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), Rr, {
1800
1800
  deep: !0
1801
1801
  }));
1802
1802
  function bn(M, O) {
@@ -1948,21 +1948,21 @@ const sg = /* @__PURE__ */ Rn({
1948
1948
  }
1949
1949
  },
1950
1950
  setup(t, e) {
1951
- const n = Jn(t, "validationSchema"), r = Jn(t, "keepValues"), { errors: i, errorBag: o, values: s, meta: a, isSubmitting: l, isValidating: c, submitCount: u, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm: g, handleSubmit: m, setErrors: v, setFieldError: S, setFieldValue: $, setValues: y, setFieldTouched: w, setTouched: b, resetField: E } = ng({
1951
+ const n = Jn(t, "validationSchema"), r = Jn(t, "keepValues"), { errors: i, errorBag: o, values: s, meta: a, isSubmitting: l, isValidating: c, submitCount: u, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm: m, handleSubmit: g, setErrors: y, setFieldError: S, setFieldValue: $, setValues: v, setFieldTouched: w, setTouched: b, resetField: E } = ng({
1952
1952
  validationSchema: n.value ? n : void 0,
1953
1953
  initialValues: t.initialValues,
1954
1954
  initialErrors: t.initialErrors,
1955
1955
  initialTouched: t.initialTouched,
1956
1956
  validateOnMount: t.validateOnMount,
1957
1957
  keepValuesOnUnmount: r
1958
- }), I = m((A, { evt: z }) => {
1958
+ }), I = g((A, { evt: z }) => {
1959
1959
  Dd(z) && z.target.submit();
1960
- }, t.onInvalidSubmit), N = t.onSubmit ? m(t.onSubmit, t.onInvalidSubmit) : I;
1960
+ }, t.onInvalidSubmit), N = t.onSubmit ? g(t.onSubmit, t.onInvalidSubmit) : I;
1961
1961
  function D(A) {
1962
1962
  Ya(A) && A.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
1963
1963
  }
1964
1964
  function V(A, z) {
1965
- return m(typeof A == "function" && !z ? A : z, t.onInvalidSubmit)(A);
1965
+ return g(typeof A == "function" && !z ? A : z, t.onInvalidSubmit)(A);
1966
1966
  }
1967
1967
  function Y() {
1968
1968
  return Ee(s);
@@ -1988,13 +1988,13 @@ const sg = /* @__PURE__ */ Rn({
1988
1988
  handleSubmit: V,
1989
1989
  handleReset: p,
1990
1990
  submitForm: I,
1991
- setErrors: v,
1991
+ setErrors: y,
1992
1992
  setFieldError: S,
1993
1993
  setFieldValue: $,
1994
- setValues: y,
1994
+ setValues: v,
1995
1995
  setFieldTouched: w,
1996
1996
  setTouched: b,
1997
- resetForm: g,
1997
+ resetForm: m,
1998
1998
  resetField: E,
1999
1999
  getValues: Y,
2000
2000
  getMeta: se,
@@ -2003,12 +2003,12 @@ const sg = /* @__PURE__ */ Rn({
2003
2003
  }
2004
2004
  return e.expose({
2005
2005
  setFieldError: S,
2006
- setErrors: v,
2006
+ setErrors: y,
2007
2007
  setFieldValue: $,
2008
- setValues: y,
2008
+ setValues: v,
2009
2009
  setFieldTouched: w,
2010
2010
  setTouched: b,
2011
- resetForm: g,
2011
+ resetForm: m,
2012
2012
  validate: f,
2013
2013
  validateField: h,
2014
2014
  resetField: E,
@@ -2154,8 +2154,8 @@ const Og = ["is", "type", "disabled"], Mg = {
2154
2154
  actions: {}
2155
2155
  },
2156
2156
  setup(t) {
2157
- const e = t, n = te(null), r = te(null), i = te(!1), o = de(() => e.to ? "router-link" : "div"), s = (v) => {
2158
- r.value && !r.value.contains(v.target) && n.value && !n.value.contains(v.target) && (i.value = !1);
2157
+ const e = t, n = te(null), r = te(null), i = te(!1), o = de(() => e.to ? "router-link" : "div"), s = (y) => {
2158
+ r.value && !r.value.contains(y.target) && n.value && !n.value.contains(y.target) && (i.value = !1);
2159
2159
  };
2160
2160
  en(() => {
2161
2161
  document.addEventListener("click", s);
@@ -2189,14 +2189,14 @@ const Og = ["is", "type", "disabled"], Mg = {
2189
2189
  }, p = {
2190
2190
  pmi: "text-violet-800 hover:underline",
2191
2191
  "wpic-tools": "text-lime-800 hover:underline"
2192
- }, g = {
2192
+ }, m = {
2193
2193
  pmi: "text-red-600 hover:text-red-500 hover:underline",
2194
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
- }, m = {
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"
2198
2198
  };
2199
- return (v, S) => {
2199
+ return (y, S) => {
2200
2200
  var $;
2201
2201
  return x(), C("button", {
2202
2202
  ref_key: "reference",
@@ -2204,7 +2204,7 @@ const Og = ["is", "type", "disabled"], Mg = {
2204
2204
  is: o.value,
2205
2205
  type: t.type,
2206
2206
  disabled: t.disabled,
2207
- onClick: S[0] || (S[0] = (y) => {
2207
+ onClick: S[0] || (S[0] = (v) => {
2208
2208
  var w;
2209
2209
  return (w = t.actions) != null && w.length ? i.value = !i.value : null;
2210
2210
  }),
@@ -2218,10 +2218,10 @@ const Og = ["is", "type", "disabled"], Mg = {
2218
2218
  [`${d[B(pe).theme]}`]: t.secondary,
2219
2219
  [`${h[B(pe).theme]}`]: !t.primary && !t.secondary && !t.plain && !t.colorless && !t.destructive,
2220
2220
  [`${p[B(pe).theme]}`]: t.primary && t.plain,
2221
- [`${m[B(pe).theme]}`]: !t.primary && !t.destructive && t.plain,
2221
+ [`${g[B(pe).theme]}`]: !t.primary && !t.destructive && t.plain,
2222
2222
  [`${l[B(pe).theme]}`]: t.colorless,
2223
2223
  [`${f[B(pe).theme]}`]: t.destructive && !t.plain && !t.colorless,
2224
- [`${g[B(pe).theme]}`]: t.destructive && t.plain,
2224
+ [`${m[B(pe).theme]}`]: t.destructive && t.plain,
2225
2225
  [`${c[B(pe).theme]}`]: t.destructive && t.colorless,
2226
2226
  "bg-zinc-50 border-violet-800 text-violet-800": t.primary && t.inverse,
2227
2227
  "hover:bg-white": t.primary && t.inverse && !t.disabled && !t.loading,
@@ -2248,7 +2248,7 @@ const Og = ["is", "type", "disabled"], Mg = {
2248
2248
  }])
2249
2249
  }, {
2250
2250
  default: Se(() => [
2251
- Me(v.$slots, "default", {}, () => [
2251
+ Me(y.$slots, "default", {}, () => [
2252
2252
  Ie(be(t.label), 1)
2253
2253
  ])
2254
2254
  ]),
@@ -2261,10 +2261,10 @@ const Og = ["is", "type", "disabled"], Mg = {
2261
2261
  class: "absolute z-30 top-12 left-0"
2262
2262
  }, [
2263
2263
  T("div", Tg, [
2264
- (x(!0), C($e, null, We(t.actions, (y) => (x(), C("div", {
2265
- onClick: y.value,
2264
+ (x(!0), C($e, null, We(t.actions, (v) => (x(), C("div", {
2265
+ onClick: v.value,
2266
2266
  class: "font-normal h-10 flex items-center px-4 hover:bg-gray-100 dark:hover:bg-white/5"
2267
- }, be(y.label), 9, $g))), 256))
2267
+ }, be(v.label), 9, $g))), 256))
2268
2268
  ])
2269
2269
  ], 512)) : re("", !0)
2270
2270
  ], 10, Og);
@@ -2492,16 +2492,16 @@ const qg = async (t, e, n) => {
2492
2492
  x: u,
2493
2493
  y: d
2494
2494
  } = nc(c, r, l), f = r, h = {}, p = 0;
2495
- for (let g = 0; g < a.length; g++) {
2495
+ for (let m = 0; m < a.length; m++) {
2496
2496
  const {
2497
- name: m,
2498
- fn: v
2499
- } = a[g], {
2497
+ name: g,
2498
+ fn: y
2499
+ } = a[m], {
2500
2500
  x: S,
2501
2501
  y: $,
2502
- data: y,
2502
+ data: v,
2503
2503
  reset: w
2504
- } = await v({
2504
+ } = await y({
2505
2505
  x: u,
2506
2506
  y: d,
2507
2507
  initialPlacement: r,
@@ -2517,9 +2517,9 @@ const qg = async (t, e, n) => {
2517
2517
  });
2518
2518
  u = S ?? u, d = $ ?? d, h = {
2519
2519
  ...h,
2520
- [m]: {
2521
- ...h[m],
2522
- ...y
2520
+ [g]: {
2521
+ ...h[g],
2522
+ ...v
2523
2523
  }
2524
2524
  }, w && p <= 50 && (p++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (c = w.rects === !0 ? await s.getElementRects({
2525
2525
  reference: t,
@@ -2528,7 +2528,7 @@ const qg = async (t, e, n) => {
2528
2528
  }) : w.rects), {
2529
2529
  x: u,
2530
2530
  y: d
2531
- } = nc(c, f, l)), g = -1);
2531
+ } = nc(c, f, l)), m = -1);
2532
2532
  }
2533
2533
  return {
2534
2534
  x: u,
@@ -2554,8 +2554,8 @@ async function Wd(t, e) {
2554
2554
  elementContext: d = "floating",
2555
2555
  altBoundary: f = !1,
2556
2556
  padding: h = 0
2557
- } = Hi(e, t), p = Hd(h), m = a[f ? d === "floating" ? "reference" : "floating" : d], v = Eo(await o.getClippingRect({
2558
- element: (n = await (o.isElement == null ? void 0 : o.isElement(m))) == null || n ? m : m.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
2557
+ } = Hi(e, t), p = Hd(h), g = a[f ? d === "floating" ? "reference" : "floating" : d], y = Eo(await o.getClippingRect({
2558
+ element: (n = await (o.isElement == null ? void 0 : o.isElement(g))) == null || n ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
2559
2559
  boundary: c,
2560
2560
  rootBoundary: u,
2561
2561
  strategy: l
@@ -2564,7 +2564,7 @@ async function Wd(t, e) {
2564
2564
  y: i,
2565
2565
  width: s.floating.width,
2566
2566
  height: s.floating.height
2567
- } : s.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), y = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
2567
+ } : s.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), v = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
2568
2568
  x: 1,
2569
2569
  y: 1
2570
2570
  } : {
@@ -2577,10 +2577,10 @@ async function Wd(t, e) {
2577
2577
  strategy: l
2578
2578
  }) : S);
2579
2579
  return {
2580
- top: (v.top - w.top + p.top) / y.y,
2581
- bottom: (w.bottom - v.bottom + p.bottom) / y.y,
2582
- left: (v.left - w.left + p.left) / y.x,
2583
- right: (w.right - v.right + p.right) / y.x
2580
+ top: (y.top - w.top + p.top) / v.y,
2581
+ bottom: (w.bottom - y.bottom + p.bottom) / v.y,
2582
+ left: (y.left - w.left + p.left) / v.x,
2583
+ right: (w.right - y.right + p.right) / v.x
2584
2584
  };
2585
2585
  }
2586
2586
  const Ug = (t) => ({
@@ -2604,10 +2604,10 @@ const Ug = (t) => ({
2604
2604
  const d = Hd(u), f = {
2605
2605
  x: n,
2606
2606
  y: r
2607
- }, h = el(i), p = Qa(h), g = await s.getDimensions(c), m = h === "y", v = m ? "top" : "left", S = m ? "bottom" : "right", $ = m ? "clientHeight" : "clientWidth", y = o.reference[p] + o.reference[h] - f[h] - o.floating[p], w = f[h] - o.reference[h], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
2607
+ }, h = el(i), p = Qa(h), m = await s.getDimensions(c), g = h === "y", y = g ? "top" : "left", S = g ? "bottom" : "right", $ = g ? "clientHeight" : "clientWidth", v = o.reference[p] + o.reference[h] - f[h] - o.floating[p], w = f[h] - o.reference[h], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
2608
2608
  let E = b ? b[$] : 0;
2609
2609
  (!E || !await (s.isElement == null ? void 0 : s.isElement(b))) && (E = a.floating[$] || o.floating[p]);
2610
- const I = y / 2 - w / 2, N = E / 2 - g[p] / 2 - 1, D = Oi(d[v], N), V = Oi(d[S], N), Y = D, se = E - g[p] - V, U = E / 2 - g[p] / 2 + I, P = fa(Y, U, se), A = !l.arrow && Wi(i) != null && U !== P && o.reference[p] / 2 - (U < Y ? D : V) - g[p] / 2 < 0, z = A ? U < Y ? U - Y : U - se : 0;
2610
+ const I = v / 2 - w / 2, N = E / 2 - m[p] / 2 - 1, D = Oi(d[y], N), V = Oi(d[S], N), Y = D, se = E - m[p] - V, U = E / 2 - m[p] / 2 + I, P = fa(Y, U, se), A = !l.arrow && Wi(i) != null && U !== P && o.reference[p] / 2 - (U < Y ? D : V) - m[p] / 2 < 0, z = A ? U < Y ? U - Y : U - se : 0;
2611
2611
  return {
2612
2612
  [h]: f[h] + z,
2613
2613
  data: {
@@ -2639,16 +2639,16 @@ const Ug = (t) => ({
2639
2639
  fallbackPlacements: f,
2640
2640
  fallbackStrategy: h = "bestFit",
2641
2641
  fallbackAxisSideDirection: p = "none",
2642
- flipAlignment: g = !0,
2643
- ...m
2642
+ flipAlignment: m = !0,
2643
+ ...g
2644
2644
  } = Hi(t, e);
2645
2645
  if ((n = o.arrow) != null && n.alignmentOffset)
2646
2646
  return {};
2647
- const v = lr(i), S = lr(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = f || (S || !g ? [Ao(a)] : zg(a));
2648
- !f && p !== "none" && y.push(...Hg(a, g, p, $));
2649
- const w = [a, ...y], b = await Wd(e, m), E = [];
2647
+ const y = lr(i), S = lr(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (S || !m ? [Ao(a)] : zg(a));
2648
+ !f && p !== "none" && v.push(...Hg(a, m, p, $));
2649
+ const w = [a, ...v], b = await Wd(e, g), E = [];
2650
2650
  let I = ((r = o.flip) == null ? void 0 : r.overflows) || [];
2651
- if (u && E.push(b[v]), d) {
2651
+ if (u && E.push(b[y]), d) {
2652
2652
  const Y = jg(i, s, $);
2653
2653
  E.push(b[Y[0]], b[Y[1]]);
2654
2654
  }
@@ -2755,13 +2755,13 @@ const Jg = function(t) {
2755
2755
  mainAxis: o = !0,
2756
2756
  crossAxis: s = !1,
2757
2757
  limiter: a = {
2758
- fn: (m) => {
2758
+ fn: (g) => {
2759
2759
  let {
2760
- x: v,
2760
+ x: y,
2761
2761
  y: S
2762
- } = m;
2762
+ } = g;
2763
2763
  return {
2764
- x: v,
2764
+ x: y,
2765
2765
  y: S
2766
2766
  };
2767
2767
  }
@@ -2773,23 +2773,23 @@ const Jg = function(t) {
2773
2773
  }, u = await Wd(e, l), d = Qo(lr(i)), f = Fd(d);
2774
2774
  let h = c[f], p = c[d];
2775
2775
  if (o) {
2776
- const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", S = h + u[m], $ = h - u[v];
2776
+ const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", S = h + u[g], $ = h - u[y];
2777
2777
  h = fa(S, h, $);
2778
2778
  }
2779
2779
  if (s) {
2780
- const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", S = p + u[m], $ = p - u[v];
2780
+ const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", S = p + u[g], $ = p - u[y];
2781
2781
  p = fa(S, p, $);
2782
2782
  }
2783
- const g = a.fn({
2783
+ const m = a.fn({
2784
2784
  ...e,
2785
2785
  [f]: h,
2786
2786
  [d]: p
2787
2787
  });
2788
2788
  return {
2789
- ...g,
2789
+ ...m,
2790
2790
  data: {
2791
- x: g.x - n,
2792
- y: g.y - r
2791
+ x: m.x - n,
2792
+ y: m.y - r
2793
2793
  }
2794
2794
  };
2795
2795
  }
@@ -2931,10 +2931,10 @@ function Mi(t, e, n, r) {
2931
2931
  let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
2932
2932
  if (o) {
2933
2933
  const f = wt(o), h = r && Jt(r) ? wt(r) : r;
2934
- let p = f, g = p.frameElement;
2935
- for (; g && r && h !== p; ) {
2936
- const m = Nr(g), v = g.getBoundingClientRect(), S = _t(g), $ = v.left + (g.clientLeft + parseFloat(S.paddingLeft)) * m.x, y = v.top + (g.clientTop + parseFloat(S.paddingTop)) * m.y;
2937
- l *= m.x, c *= m.y, u *= m.x, d *= m.y, l += $, c += y, p = wt(g), g = p.frameElement;
2934
+ let p = f, m = p.frameElement;
2935
+ for (; m && r && h !== p; ) {
2936
+ const g = Nr(m), y = m.getBoundingClientRect(), S = _t(m), $ = y.left + (m.clientLeft + parseFloat(S.paddingLeft)) * g.x, v = y.top + (m.clientTop + parseFloat(S.paddingTop)) * g.y;
2937
+ l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += $, c += v, p = wt(m), m = p.frameElement;
2938
2938
  }
2939
2939
  }
2940
2940
  return Eo({
@@ -3273,11 +3273,11 @@ const $0 = {
3273
3273
  function u() {
3274
3274
  o.disabled || (c.value = !1, h()), i("show"), document.dispatchEvent(new CustomEvent("submenu-open", { detail: { uuid: r } }));
3275
3275
  }
3276
- function d(v) {
3276
+ function d(y) {
3277
3277
  if (c.value)
3278
3278
  u();
3279
3279
  else {
3280
- if (o.noCloseClasses.some((S) => v.target.closest(`.${S}`)))
3280
+ if (o.noCloseClasses.some((S) => y.target.closest(`.${S}`)))
3281
3281
  return;
3282
3282
  f();
3283
3283
  }
@@ -3286,7 +3286,7 @@ const $0 = {
3286
3286
  i("hide"), document.documentElement.style.overflow = null, document.querySelector("#app").style.overflow = null, c.value = !0;
3287
3287
  }
3288
3288
  async function h() {
3289
- const v = await tf(
3289
+ const y = await tf(
3290
3290
  a.value,
3291
3291
  l.value,
3292
3292
  {
@@ -3294,35 +3294,35 @@ const $0 = {
3294
3294
  middleware: [ef(), Qd(), Xd(o.offset)]
3295
3295
  }
3296
3296
  );
3297
- l.value.style.left = `${v.x}px`, l.value.style.top = `${v.y}px`;
3297
+ l.value.style.left = `${y.x}px`, l.value.style.top = `${y.y}px`;
3298
3298
  }
3299
- const p = (v) => {
3300
- l.value && !l.value.contains(v.target) && a.value && !a.value.contains(v.target) && f();
3299
+ const p = (y) => {
3300
+ l.value && !l.value.contains(y.target) && a.value && !a.value.contains(y.target) && f();
3301
3301
  };
3302
3302
  en(() => {
3303
- document.addEventListener("click", p), document.addEventListener("submenu-open", (v) => {
3304
- v.detail.uuid !== r && f();
3303
+ document.addEventListener("click", p), document.addEventListener("submenu-open", (y) => {
3304
+ y.detail.uuid !== r && f();
3305
3305
  });
3306
3306
  }), Go(() => {
3307
3307
  document.removeEventListener("click", p), document.removeEventListener("submenu-open", f);
3308
3308
  });
3309
- function g() {
3309
+ function m() {
3310
3310
  o.hover && u();
3311
3311
  }
3312
- function m() {
3312
+ function g() {
3313
3313
  o.hover && f();
3314
3314
  }
3315
- return e({ hide: f }), (v, S) => (x(), C($e, null, [
3315
+ return e({ hide: f }), (y, S) => (x(), C($e, null, [
3316
3316
  (x(), C("div", {
3317
3317
  class: "flex-1",
3318
3318
  key: `reference_${B(r)}`,
3319
3319
  ref_key: "reference",
3320
3320
  ref: a,
3321
- onMouseenter: g,
3322
- onMouseleave: m,
3321
+ onMouseenter: m,
3322
+ onMouseleave: g,
3323
3323
  onClick: S[0] || (S[0] = Pr(($) => d($), ["stop"]))
3324
3324
  }, [
3325
- Me(v.$slots, "default", { isHidden: c.value })
3325
+ Me(y.$slots, "default", { isHidden: c.value })
3326
3326
  ], 32)),
3327
3327
  (x(), ve(Od, {
3328
3328
  to: B(pe).popoverTarget
@@ -3340,7 +3340,7 @@ const $0 = {
3340
3340
  "px-3 py-2": !t.custom && !t.expand
3341
3341
  }])
3342
3342
  }, [
3343
- Me(v.$slots, "content")
3343
+ Me(y.$slots, "content")
3344
3344
  ], 6))
3345
3345
  ], 8, ["to"]))
3346
3346
  ], 64));
@@ -3564,21 +3564,21 @@ function Yy(t, e, n) {
3564
3564
  return r = i = void 0, c = b, s = t.apply(I, E), s;
3565
3565
  }
3566
3566
  function p(b) {
3567
- return c = b, a = setTimeout(v, e), u ? h(b) : s;
3567
+ return c = b, a = setTimeout(y, e), u ? h(b) : s;
3568
3568
  }
3569
- function g(b) {
3569
+ function m(b) {
3570
3570
  var E = b - l, I = b - c, N = e - E;
3571
3571
  return d ? Ky(N, o - I) : N;
3572
3572
  }
3573
- function m(b) {
3573
+ function g(b) {
3574
3574
  var E = b - l, I = b - c;
3575
3575
  return l === void 0 || E >= e || E < 0 || d && I >= o;
3576
3576
  }
3577
- function v() {
3577
+ function y() {
3578
3578
  var b = Ms();
3579
- if (m(b))
3579
+ if (g(b))
3580
3580
  return S(b);
3581
- a = setTimeout(v, g(b));
3581
+ a = setTimeout(y, m(b));
3582
3582
  }
3583
3583
  function S(b) {
3584
3584
  return a = void 0, f && r ? h(b) : (r = i = void 0, s);
@@ -3586,20 +3586,20 @@ function Yy(t, e, n) {
3586
3586
  function $() {
3587
3587
  a !== void 0 && clearTimeout(a), c = 0, r = l = i = a = void 0;
3588
3588
  }
3589
- function y() {
3589
+ function v() {
3590
3590
  return a === void 0 ? s : S(Ms());
3591
3591
  }
3592
3592
  function w() {
3593
- var b = Ms(), E = m(b);
3593
+ var b = Ms(), E = g(b);
3594
3594
  if (r = arguments, i = this, l = b, E) {
3595
3595
  if (a === void 0)
3596
3596
  return p(l);
3597
3597
  if (d)
3598
- return clearTimeout(a), a = setTimeout(v, e), h(l);
3598
+ return clearTimeout(a), a = setTimeout(y, e), h(l);
3599
3599
  }
3600
- return a === void 0 && (a = setTimeout(v, e)), s;
3600
+ return a === void 0 && (a = setTimeout(y, e)), s;
3601
3601
  }
3602
- return w.cancel = $, w.flush = y, w;
3602
+ return w.cancel = $, w.flush = v, w;
3603
3603
  }
3604
3604
  var Jy = Yy;
3605
3605
  const sf = /* @__PURE__ */ Yi(Jy);
@@ -3863,24 +3863,24 @@ function jb(t, e, n, r, i, o) {
3863
3863
  return c == e && u == t;
3864
3864
  var d = -1, f = !0, h = n & _b ? new Bb() : void 0;
3865
3865
  for (o.set(t, e), o.set(e, t); ++d < a; ) {
3866
- var p = t[d], g = e[d];
3866
+ var p = t[d], m = e[d];
3867
3867
  if (r)
3868
- var m = s ? r(g, p, d, e, t, o) : r(p, g, d, t, e, o);
3869
- if (m !== void 0) {
3870
- if (m)
3868
+ var g = s ? r(m, p, d, e, t, o) : r(p, m, d, t, e, o);
3869
+ if (g !== void 0) {
3870
+ if (g)
3871
3871
  continue;
3872
3872
  f = !1;
3873
3873
  break;
3874
3874
  }
3875
3875
  if (h) {
3876
- if (!Pb(e, function(v, S) {
3877
- if (!Vb(h, S) && (p === v || i(p, v, n, r, o)))
3876
+ if (!Pb(e, function(y, S) {
3877
+ if (!Vb(h, S) && (p === y || i(p, y, n, r, o)))
3878
3878
  return h.push(S);
3879
3879
  })) {
3880
3880
  f = !1;
3881
3881
  break;
3882
3882
  }
3883
- } else if (!(p === g || i(p, g, n, r, o))) {
3883
+ } else if (!(p === m || i(p, m, n, r, o))) {
3884
3884
  f = !1;
3885
3885
  break;
3886
3886
  }
@@ -4077,24 +4077,24 @@ function vw(t, e, n, r, i, o) {
4077
4077
  var h = o.get(t), p = o.get(e);
4078
4078
  if (h && p)
4079
4079
  return h == e && p == t;
4080
- var g = !0;
4080
+ var m = !0;
4081
4081
  o.set(t, e), o.set(e, t);
4082
- for (var m = s; ++d < l; ) {
4082
+ for (var g = s; ++d < l; ) {
4083
4083
  f = a[d];
4084
- var v = t[f], S = e[f];
4084
+ var y = t[f], S = e[f];
4085
4085
  if (r)
4086
- var $ = s ? r(S, v, f, e, t, o) : r(v, S, f, t, e, o);
4087
- if (!($ === void 0 ? v === S || i(v, S, n, r, o) : $)) {
4088
- g = !1;
4086
+ var $ = s ? r(S, y, f, e, t, o) : r(y, S, f, t, e, o);
4087
+ if (!($ === void 0 ? y === S || i(y, S, n, r, o) : $)) {
4088
+ m = !1;
4089
4089
  break;
4090
4090
  }
4091
- m || (m = f == "constructor");
4091
+ g || (g = f == "constructor");
4092
4092
  }
4093
- if (g && !m) {
4094
- var y = t.constructor, w = e.constructor;
4095
- y != w && "constructor" in t && "constructor" in e && !(typeof y == "function" && y instanceof y && typeof w == "function" && w instanceof w) && (g = !1);
4093
+ if (m && !g) {
4094
+ var v = t.constructor, w = e.constructor;
4095
+ v != w && "constructor" in t && "constructor" in e && !(typeof v == "function" && v instanceof v && typeof w == "function" && w instanceof w) && (m = !1);
4096
4096
  }
4097
- return o.delete(t), o.delete(e), g;
4097
+ return o.delete(t), o.delete(e), m;
4098
4098
  }
4099
4099
  var bw = vw, xw = Xr, ww = tn, kw = xw(ww, "DataView"), Sw = kw, Cw = Xr, Ow = tn, Mw = Cw(Ow, "Promise"), Tw = Mw, $w = Xr, Aw = tn, Ew = $w(Aw, "Set"), Dw = Ew, Nw = Xr, Lw = tn, Iw = Nw(Lw, "WeakMap"), Bw = Iw, ma = Sw, ga = ll, ya = Tw, va = Dw, ba = Bw, gf = Ji, ni = cf, Cc = "[object Map]", Pw = "[object Object]", Oc = "[object Promise]", Mc = "[object Set]", Tc = "[object WeakMap]", $c = "[object DataView]", Vw = ni(ma), Rw = ni(ga), _w = ni(ya), jw = ni(va), zw = ni(ba), Kn = gf;
4100
4100
  (ma && Kn(new ma(new ArrayBuffer(1))) != $c || ga && Kn(new ga()) != Cc || ya && Kn(ya.resolve()) != Oc || va && Kn(new va()) != Mc || ba && Kn(new ba()) != Tc) && (Kn = function(t) {
@@ -4129,8 +4129,8 @@ function Jw(t, e, n, r, i, o) {
4129
4129
  if (!(n & Kw)) {
4130
4130
  var h = u && Ic.call(t, "__wrapped__"), p = d && Ic.call(e, "__wrapped__");
4131
4131
  if (h || p) {
4132
- var g = h ? t.value() : t, m = p ? e.value() : e;
4133
- return o || (o = new As()), i(g, m, n, r, o);
4132
+ var m = h ? t.value() : t, g = p ? e.value() : e;
4133
+ return o || (o = new As()), i(m, g, n, r, o);
4134
4134
  }
4135
4135
  }
4136
4136
  return f ? (o || (o = new As()), qw(t, e, n, r, i, o)) : !1;
@@ -4196,37 +4196,37 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4196
4196
  setup(t, { expose: e, emit: n }) {
4197
4197
  const r = t, i = te(!1), o = te(r.options);
4198
4198
  Pe(() => r.options, () => {
4199
- var y;
4200
- (y = r.options) != null && y.length && (o.value = [...r.options]);
4199
+ var v;
4200
+ (v = r.options) != null && v.length && (o.value = [...r.options]);
4201
4201
  }, {
4202
4202
  immediate: !0,
4203
4203
  deep: !0
4204
4204
  });
4205
4205
  const s = n, a = te(), l = te();
4206
- function c(y) {
4206
+ function c(v) {
4207
4207
  var w, b;
4208
4208
  if (r.multiple) {
4209
- if (y) {
4209
+ if (v) {
4210
4210
  let E = r.modelValue || [];
4211
- E.indexOf(y) >= 0 ? E.splice(E.indexOf(y), 1) : E.push(y), s("update:modelValue", E), h(E), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) ? i.value = !0 : i.value = !1;
4211
+ E.indexOf(v) >= 0 ? E.splice(E.indexOf(v), 1) : E.push(v), s("update:modelValue", E), h(E), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) ? i.value = !0 : i.value = !1;
4212
4212
  }
4213
4213
  } else
4214
- s("update:modelValue", y), h(y), a.value = null, l.value.hide();
4214
+ s("update:modelValue", v), h(v), a.value = null, l.value.hide();
4215
4215
  }
4216
- async function u(y) {
4216
+ async function u(v) {
4217
4217
  var w, b;
4218
- s("update:modelValue", y), h(y), await nt(), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) && (i.value = !0);
4218
+ s("update:modelValue", v), h(v), await nt(), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) && (i.value = !0);
4219
4219
  }
4220
- function d(y) {
4221
- s("update:modelValue", y), i.value = !1, h(y);
4220
+ function d(v) {
4221
+ s("update:modelValue", v), i.value = !1, h(v);
4222
4222
  }
4223
4223
  function f() {
4224
4224
  i.value = !1, r.multiple ? (s("update:modelValue", []), h([])) : (s("update:modelValue", null), h(null));
4225
4225
  }
4226
- const h = sf(function(y) {
4227
- s("change", y);
4226
+ const h = sf(function(v) {
4227
+ s("change", v);
4228
4228
  }, r.debounce), p = de(() => {
4229
- var y, w, b, E;
4229
+ var v, w, b, E;
4230
4230
  if (r.multiple)
4231
4231
  if (r.maxDisplay) {
4232
4232
  let I = (w = o.value) == null ? void 0 : w.filter((D) => {
@@ -4235,30 +4235,30 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4235
4235
  }).map((D) => D.label), N = I == null ? void 0 : I.slice(0, r.maxDisplay);
4236
4236
  return (I == null ? void 0 : I.length) - (N == null ? void 0 : N.length) > 0 ? (N == null ? void 0 : N.join(", ")) + ` (+${(I == null ? void 0 : I.length) - N.length})` : N == null ? void 0 : N.join(", ");
4237
4237
  } else
4238
- return (y = o.value) == null ? void 0 : y.filter((I) => {
4238
+ return (v = o.value) == null ? void 0 : v.filter((I) => {
4239
4239
  var N;
4240
4240
  return ((N = r.modelValue) == null ? void 0 : N.indexOf(I.value)) >= 0;
4241
4241
  }).map((I) => I.label).join(", ");
4242
4242
  else
4243
4243
  return ((E = (b = o.value) == null ? void 0 : b.find((I) => I.value === r.modelValue)) == null ? void 0 : E.label) || r.modelValue;
4244
4244
  });
4245
- function g(y) {
4245
+ function m(v) {
4246
4246
  var w;
4247
4247
  try {
4248
- return r.multiple ? r.modelValue !== null && ((w = r.modelValue) == null ? void 0 : w.some((b) => Pc(b, y))) : r.modelValue !== null && Pc(y, r.modelValue);
4248
+ return r.multiple ? r.modelValue !== null && ((w = r.modelValue) == null ? void 0 : w.some((b) => Pc(b, v))) : r.modelValue !== null && Pc(v, r.modelValue);
4249
4249
  } catch (b) {
4250
4250
  return console.log(b), !1;
4251
4251
  }
4252
4252
  }
4253
- const m = {
4253
+ const g = {
4254
4254
  pmi: "group-[.is-selected]:bg-violet-50 hover:group-[.is-selected]:bg-violet-100",
4255
4255
  "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"
4256
- }, v = de(() => {
4257
- var y, w;
4258
- return ((y = r.modelValue) == null ? void 0 : y.length) === ((w = r.options) == null ? void 0 : w.length);
4256
+ }, y = de(() => {
4257
+ var v, w;
4258
+ return ((v = r.modelValue) == null ? void 0 : v.length) === ((w = r.options) == null ? void 0 : w.length);
4259
4259
  }), S = de(() => {
4260
- var y;
4261
- if (r.filterable && !r.remoteMethod && ((y = a.value) != null && y.trim().length)) {
4260
+ var v;
4261
+ if (r.filterable && !r.remoteMethod && ((v = a.value) != null && v.trim().length)) {
4262
4262
  const w = a.value.trim().toLowerCase();
4263
4263
  return r.options.filter(
4264
4264
  (b) => {
@@ -4274,8 +4274,8 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4274
4274
  }
4275
4275
  return e({
4276
4276
  allSelected: i,
4277
- isAllSelected: v
4278
- }), (y, w) => (x(), ve(mr, {
4277
+ isAllSelected: y
4278
+ }), (v, w) => (x(), ve(mr, {
4279
4279
  custom: "",
4280
4280
  ref_key: "myPopover",
4281
4281
  ref: l,
@@ -4298,12 +4298,12 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4298
4298
  class: G(["select-none w-full text-left flex-1", { "whitespace-pre": !t.multiple }])
4299
4299
  }, [
4300
4300
  t.modelValue && (!t.multiple || t.multiple && ((E = t.modelValue) == null ? void 0 : E.length) > 0) && !t.hideSelect ? (x(), C("span", nk, [
4301
- v.value && ((I = t.allSelectedText) != null && I.length) ? (x(), C($e, { key: 0 }, [
4301
+ y.value && ((I = t.allSelectedText) != null && I.length) ? (x(), C($e, { key: 0 }, [
4302
4302
  Ie(be(t.allSelectedText) + " (" + be((N = t.options) == null ? void 0 : N.length) + ")", 1)
4303
4303
  ], 64)) : (x(), C($e, { key: 1 }, [
4304
4304
  Ie(be(p.value), 1)
4305
4305
  ], 64))
4306
- ])) : !t.multiple && ((D = t.options) != null && D.find((se) => se.value === null)) ? (x(), C("span", rk, be((Y = (V = t.options) == null ? void 0 : V.find((se) => se.value === null)) == null ? void 0 : Y.label), 1)) : Me(y.$slots, "default", { key: 2 }, () => [
4306
+ ])) : !t.multiple && ((D = t.options) != null && D.find((se) => se.value === null)) ? (x(), C("span", rk, be((Y = (V = t.options) == null ? void 0 : V.find((se) => se.value === null)) == null ? void 0 : Y.label), 1)) : Me(v.$slots, "default", { key: 2 }, () => [
4307
4307
  Ie(be(t.placeholder), 1)
4308
4308
  ])
4309
4309
  ], 2),
@@ -4354,12 +4354,12 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4354
4354
  }, "Select none")
4355
4355
  ])) : re("", !0),
4356
4356
  (x(!0), C($e, null, We(S.value, (E) => (x(), C("div", {
4357
- class: G(["group", { "is-selected": !!g(E.value) }])
4357
+ class: G(["group", { "is-selected": !!m(E.value) }])
4358
4358
  }, [
4359
4359
  T("div", {
4360
4360
  class: G(["flex items-center py-2 px-4 min-w-64 text-base", {
4361
4361
  "cursor-pointer": !t.multiple || E.value,
4362
- [`${m[B(pe).theme]}`]: !0
4362
+ [`${g[B(pe).theme]}`]: !0
4363
4363
  }]),
4364
4364
  onClick: (I) => E.disabled ? null : c(E.value)
4365
4365
  }, [
@@ -4367,7 +4367,7 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
4367
4367
  T("span", {
4368
4368
  class: G(["", { "opacity-25": E.disabled }])
4369
4369
  }, be(E.label || E.value), 3),
4370
- t.multiple && g(E.value) ? (x(), ve(nf, {
4370
+ t.multiple && m(E.value) ? (x(), ve(nf, {
4371
4371
  key: 0,
4372
4372
  class: "w-4 h-4"
4373
4373
  })) : re("", !0)
@@ -4753,22 +4753,22 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4753
4753
  S(V);
4754
4754
  }
4755
4755
  const p = n;
4756
- function g(D) {
4756
+ function m(D) {
4757
4757
  D === !0 || D === !1 ? p("update:modelValue", !D) : p("update:modelValue", D);
4758
4758
  }
4759
- function m(D) {
4759
+ function g(D) {
4760
4760
  let V = D && D.target ? D.target.value : D;
4761
4761
  p("update:modelValue", V), p("onChange", V);
4762
4762
  }
4763
- function v() {
4763
+ function y() {
4764
4764
  p("update:modelValue", null), p("onChange", null), p("onClear");
4765
4765
  }
4766
4766
  const S = sf(function(D) {
4767
4767
  p("update:modelValue", D), p("onChange", D);
4768
- }, o.debounce), $ = te(null), y = te();
4768
+ }, o.debounce), $ = te(null), v = te();
4769
4769
  function w() {
4770
4770
  var D, V;
4771
- o.textarea ? (D = y.value) == null || D.focus() : (V = $.value) == null || V.$el.focus();
4771
+ o.textarea ? (D = v.value) == null || D.focus() : (V = $.value) == null || V.$el.focus();
4772
4772
  }
4773
4773
  function b() {
4774
4774
  return $.value.meta.valid;
@@ -4830,7 +4830,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4830
4830
  "is-active": !t.disabled && !t.modelValue,
4831
4831
  "is-selected": t.modelValue === !0
4832
4832
  }]),
4833
- onClick: V[0] || (V[0] = (se) => t.disabled ? void 0 : g(t.modelValue))
4833
+ onClick: V[0] || (V[0] = (se) => t.disabled ? void 0 : m(t.modelValue))
4834
4834
  }, [
4835
4835
  T("div", {
4836
4836
  class: G(["w-4 h-4 border dark:border-gray-800 cursor-pointer", {
@@ -4860,7 +4860,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4860
4860
  default: Se(({ field: Y }) => [
4861
4861
  T("div", {
4862
4862
  onClick: V[2] || (V[2] = () => {
4863
- t.disabled || m(t.radioValue);
4863
+ t.disabled || g(t.radioValue);
4864
4864
  }),
4865
4865
  class: G([{ "cursor-pointer": !t.disabled }, "inline-flex items-center gap-2 select-none"])
4866
4866
  }, [
@@ -4902,7 +4902,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4902
4902
  ref_key: "myChoiceList",
4903
4903
  ref: E,
4904
4904
  modelValue: t.modelValue,
4905
- "onUpdate:modelValue": m,
4905
+ "onUpdate:modelValue": g,
4906
4906
  disabled: t.disabled,
4907
4907
  options: t.options,
4908
4908
  small: t.small,
@@ -4937,7 +4937,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4937
4937
  le(wf, {
4938
4938
  placeholder: t.placeholder,
4939
4939
  modelValue: t.modelValue,
4940
- "onUpdate:modelValue": m
4940
+ "onUpdate:modelValue": g
4941
4941
  }, null, 8, ["placeholder", "modelValue"])
4942
4942
  ]),
4943
4943
  _: 1
@@ -4952,7 +4952,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4952
4952
  default: Se(({ field: Y }) => [
4953
4953
  le(bf, {
4954
4954
  modelValue: t.modelValue,
4955
- "onUpdate:modelValue": m,
4955
+ "onUpdate:modelValue": g,
4956
4956
  label: l.value,
4957
4957
  disabled: t.disabled
4958
4958
  }, null, 8, ["modelValue", "label", "disabled"])
@@ -4993,7 +4993,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
4993
4993
  return [
4994
4994
  le(xf, {
4995
4995
  ref_key: "myTextarea",
4996
- ref: y,
4996
+ ref: v,
4997
4997
  modelValue: t.modelValue,
4998
4998
  "onUpdate:modelValue": h,
4999
4999
  rows: t.rows,
@@ -5038,13 +5038,13 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
5038
5038
  }, null, 8, ["class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "no-data-text", "placeholder", "validateOnInput", "rules"])),
5039
5039
  t.loading ? (x(), C("div", {
5040
5040
  key: 3,
5041
- onClick: Pr(v, ["stop"]),
5041
+ onClick: Pr(y, ["stop"]),
5042
5042
  class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
5043
5043
  }, [
5044
5044
  le(Gr, { class: "w-6 h-6 opacity-50" })
5045
5045
  ])) : t.clearable && t.modelValue ? (x(), C("div", {
5046
5046
  key: 4,
5047
- onClick: Pr(v, ["stop"]),
5047
+ onClick: Pr(y, ["stop"]),
5048
5048
  style: { "z-index": "2" },
5049
5049
  class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
5050
5050
  }, [
@@ -5510,10 +5510,10 @@ const Tf = /* @__PURE__ */ ye(_5, [["render", H5]]), W5 = { class: "wpic-paginat
5510
5510
  const d = r.currentPage, f = 1;
5511
5511
  let h = Math.max(2, d - f), p = Math.min(u - 1, d + f);
5512
5512
  d <= f + 2 && (h = 2, p = Math.min(2 * f + 2, u - 1)), d >= u - f - 1 && (h = Math.max(2, u - 2 * f - 1), p = u - 1);
5513
- const g = [];
5514
- for (let m = h; m <= p; m++)
5515
- g.push(m);
5516
- return h > 2 && g.unshift("..."), p < u - 1 && g.push("..."), [1, ...g, u];
5513
+ const m = [];
5514
+ for (let g = h; g <= p; g++)
5515
+ m.push(g);
5516
+ return h > 2 && m.unshift("..."), p < u - 1 && m.push("..."), [1, ...m, u];
5517
5517
  });
5518
5518
  function a(u) {
5519
5519
  u >= 1 && u <= o.value && i("update:currentPage", u);
@@ -5712,12 +5712,12 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5712
5712
  "wpic-tools": "bg-gray-900/10"
5713
5713
  }, d = n;
5714
5714
  en(() => {
5715
- g();
5715
+ m();
5716
5716
  });
5717
5717
  const f = mn();
5718
5718
  Si("wtable", f == null ? void 0 : f.proxy);
5719
5719
  const h = Gp(), p = te([]);
5720
- function g() {
5720
+ function m() {
5721
5721
  const $ = (b, E) => {
5722
5722
  let I = {};
5723
5723
  for (let N in b) {
@@ -5737,14 +5737,14 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5737
5737
  }
5738
5738
  return I;
5739
5739
  };
5740
- let y = [];
5740
+ let v = [];
5741
5741
  (h.default && h.default() || []).forEach((b) => {
5742
5742
  var E, I;
5743
- ((E = b.type) == null ? void 0 : E.name) === "WpicTableColumn" ? y.push(b) : (I = b.children) != null && I.length && b.children.forEach((N) => {
5743
+ ((E = b.type) == null ? void 0 : E.name) === "WpicTableColumn" ? v.push(b) : (I = b.children) != null && I.length && b.children.forEach((N) => {
5744
5744
  var D;
5745
- ((D = N.type) == null ? void 0 : D.name) === "WpicTableColumn" && y.push(N);
5745
+ ((D = N.type) == null ? void 0 : D.name) === "WpicTableColumn" && v.push(N);
5746
5746
  });
5747
- }), p.value = y.map((b) => {
5747
+ }), p.value = v.map((b) => {
5748
5748
  let E = b.children, I = b.props || {}, { field: N, label: D, help: V, width: Y, minWidth: se, maxWidth: U, sortable: P, selectable: A, render: z, type: _, align: ee, visible: ie, noPadding: L } = $(b.type.props, I);
5749
5749
  return {
5750
5750
  label: D,
@@ -5764,23 +5764,23 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5764
5764
  };
5765
5765
  }).filter((b) => b.visible || b.selectable);
5766
5766
  }
5767
- function m($) {
5767
+ function g($) {
5768
5768
  var w, b;
5769
- let y = (w = r.sortOptions) == null ? void 0 : w.sortDirection;
5770
- ((b = r.sortOptions) == null ? void 0 : b.sortBy) === $ && (y = y === "asc" ? "desc" : "asc"), d("changeSort", { sortDirection: y, sortBy: $ });
5769
+ let v = (w = r.sortOptions) == null ? void 0 : w.sortDirection;
5770
+ ((b = r.sortOptions) == null ? void 0 : b.sortBy) === $ && (v = v === "asc" ? "desc" : "asc"), d("changeSort", { sortDirection: v, sortBy: $ });
5771
5771
  }
5772
5772
  Pe(() => h.default, ($) => {
5773
- g();
5773
+ m();
5774
5774
  }, {
5775
5775
  deep: !0
5776
5776
  }), e({
5777
- buildColumns: g
5777
+ buildColumns: m
5778
5778
  });
5779
- const v = Ln({});
5780
- function S({ index: $, item: y }) {
5781
- v[$] ? v[$] = null : (v[$] = !0, d("expandRow", { index: $, item: y }));
5779
+ const y = Ln({});
5780
+ function S({ index: $, item: v }) {
5781
+ y[$] ? y[$] = null : (y[$] = !0, d("expandRow", { index: $, item: v }));
5782
5782
  }
5783
- return ($, y) => (x(), C("div", {
5783
+ return ($, v) => (x(), C("div", {
5784
5784
  class: G(["wpic-table relative w-full rounded-lg overflow-hidden", {
5785
5785
  "no-radius rounded-none": t.noRadius,
5786
5786
  border: t.border,
@@ -5819,7 +5819,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5819
5819
  }, [
5820
5820
  T("div", {
5821
5821
  onClick: () => {
5822
- w.sortable && m(w.field);
5822
+ w.sortable && g(w.field);
5823
5823
  },
5824
5824
  class: G(["flex items-center lg:text-base rounded-lg", {
5825
5825
  "py-3": !t.small,
@@ -5890,7 +5890,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5890
5890
  onClick: (Y) => S({ item: w, index: b })
5891
5891
  }, {
5892
5892
  default: Se(() => [
5893
- v[b] ? (x(), ve(Vk, {
5893
+ y[b] ? (x(), ve(Vk, {
5894
5894
  key: 0,
5895
5895
  class: "w-4 h-4"
5896
5896
  })) : (x(), ve(lS, {
@@ -5950,7 +5950,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
5950
5950
  item: w
5951
5951
  }, null, 8, ["class", "column", "rowIndex", "colspan", "item"])
5952
5952
  ], 2)), [
5953
- [sa, v[b]]
5953
+ [sa, y[b]]
5954
5954
  ]) : re("", !0)
5955
5955
  ], 64);
5956
5956
  }), 128))
@@ -8932,8 +8932,8 @@ class vt {
8932
8932
  let f = c ? e == l ? -1 : e == d ? 1 : n : n, h = l + i + (f < 0 ? 0 : u);
8933
8933
  if (r)
8934
8934
  return h;
8935
- let p = e == (n < 0 ? l : d) ? null : KS(a / 3, e - l), g = e == l ? Gf : e == d ? Jf : bo;
8936
- return (n < 0 ? e != l : e != d) && (g |= Zf), new Oa(h, g, p);
8935
+ let p = e == (n < 0 ? l : d) ? null : KS(a / 3, e - l), m = e == l ? Gf : e == d ? Jf : bo;
8936
+ return (n < 0 ? e != l : e != d) && (m |= Zf), new Oa(h, m, p);
8937
8937
  }
8938
8938
  i += u - c;
8939
8939
  }
@@ -9469,8 +9469,8 @@ function JS(t, e, n, r) {
9469
9469
  let d = l.marks;
9470
9470
  if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
9471
9471
  let f = Math.max(c, e), h = Math.min(c + l.nodeSize, n), p = r.addToSet(d);
9472
- for (let g = 0; g < d.length; g++)
9473
- d[g].isInSet(p) || (s && s.to == f && s.mark.eq(d[g]) ? s.to = h : i.push(s = new Kt(f, h, d[g])));
9472
+ for (let m = 0; m < d.length; m++)
9473
+ d[m].isInSet(p) || (s && s.to == f && s.mark.eq(d[m]) ? s.to = h : i.push(s = new Kt(f, h, d[m])));
9474
9474
  a && a.to == f ? a.to = h : o.push(a = new On(f, h, r));
9475
9475
  }
9476
9476
  }), i.forEach((l) => t.step(l)), o.forEach((l) => t.step(l));
@@ -9541,11 +9541,11 @@ function ri(t) {
9541
9541
  }
9542
9542
  function XS(t, e, n) {
9543
9543
  let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), a = i.after(o + 1), l = s, c = a, u = H.empty, d = 0;
9544
- for (let p = o, g = !1; p > n; p--)
9545
- g || r.index(p) > 0 ? (g = !0, u = H.from(r.node(p).copy(u)), d++) : l--;
9544
+ for (let p = o, m = !1; p > n; p--)
9545
+ m || r.index(p) > 0 ? (m = !0, u = H.from(r.node(p).copy(u)), d++) : l--;
9546
9546
  let f = H.empty, h = 0;
9547
- for (let p = o, g = !1; p > n; p--)
9548
- g || i.after(p + 1) < i.end(p) ? (g = !0, f = H.from(i.node(p).copy(f)), h++) : c++;
9547
+ for (let p = o, m = !1; p > n; p--)
9548
+ m || i.after(p + 1) < i.end(p) ? (m = !0, f = H.from(i.node(p).copy(f)), h++) : c++;
9549
9549
  t.step(new Ke(l, c, s, a, new Z(u.append(f), d, h), u.size - d, !0));
9550
9550
  }
9551
9551
  function fl(t, e, n = null, r = t) {
@@ -9648,8 +9648,8 @@ function hn(t, e, n = 1, r) {
9648
9648
  return !1;
9649
9649
  let h = d.content.cutByIndex(f, d.childCount), p = r && r[u + 1];
9650
9650
  p && (h = h.replaceChild(0, p.type.create(p.attrs)));
9651
- let g = r && r[u] || d;
9652
- if (!d.canReplace(f + 1, d.childCount) || !g.type.validContent(h))
9651
+ let m = r && r[u] || d;
9652
+ if (!d.canReplace(f + 1, d.childCount) || !m.type.validContent(h))
9653
9653
  return !1;
9654
9654
  }
9655
9655
  let a = i.indexAfter(o), l = r && r[0];
@@ -9841,26 +9841,26 @@ class cC {
9841
9841
  for (; this.depth > n; )
9842
9842
  this.closeFrontierNode();
9843
9843
  if (o)
9844
- for (let g = 0; g < o.length; g++)
9845
- this.openFrontierNode(o[g]);
9844
+ for (let m = 0; m < o.length; m++)
9845
+ this.openFrontierNode(o[m]);
9846
9846
  let s = this.unplaced, a = r ? r.content : s.content, l = s.openStart - e, c = 0, u = [], { match: d, type: f } = this.frontier[n];
9847
9847
  if (i) {
9848
- for (let g = 0; g < i.childCount; g++)
9849
- u.push(i.child(g));
9848
+ for (let m = 0; m < i.childCount; m++)
9849
+ u.push(i.child(m));
9850
9850
  d = d.matchFragment(i);
9851
9851
  }
9852
9852
  let h = a.size + e - (s.content.size - s.openEnd);
9853
9853
  for (; c < a.childCount; ) {
9854
- let g = a.child(c), m = d.matchType(g.type);
9855
- if (!m)
9854
+ let m = a.child(c), g = d.matchType(m.type);
9855
+ if (!g)
9856
9856
  break;
9857
- c++, (c > 1 || l == 0 || g.content.size) && (d = m, u.push(rh(g.mark(f.allowedMarks(g.marks)), c == 1 ? l : 0, c == a.childCount ? h : -1)));
9857
+ c++, (c > 1 || l == 0 || m.content.size) && (d = g, u.push(rh(m.mark(f.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? h : -1)));
9858
9858
  }
9859
9859
  let p = c == a.childCount;
9860
9860
  p || (h = -1), this.placed = fi(this.placed, n, H.from(u)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
9861
- for (let g = 0, m = a; g < h; g++) {
9862
- let v = m.lastChild;
9863
- this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), m = v.content;
9861
+ for (let m = 0, g = a; m < h; m++) {
9862
+ let y = g.lastChild;
9863
+ this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
9864
9864
  }
9865
9865
  this.unplaced = p ? e == 0 ? Z.empty : new Z(di(s.content, e - 1, 1), e - 1, h < 0 ? s.openEnd : e - 1) : new Z(di(s.content, e, c), s.openStart, s.openEnd);
9866
9866
  }
@@ -9976,12 +9976,12 @@ function fC(t, e, n, r) {
9976
9976
  for (let f = r.openStart; f >= 0; f--) {
9977
9977
  let h = (f + u + 1) % (r.openStart + 1), p = c[h];
9978
9978
  if (p)
9979
- for (let g = 0; g < s.length; g++) {
9980
- let m = s[(g + l) % s.length], v = !0;
9981
- m < 0 && (v = !1, m = -m);
9982
- let S = i.node(m - 1), $ = i.index(m - 1);
9979
+ for (let m = 0; m < s.length; m++) {
9980
+ let g = s[(m + l) % s.length], y = !0;
9981
+ g < 0 && (y = !1, g = -g);
9982
+ let S = i.node(g - 1), $ = i.index(g - 1);
9983
9983
  if (S.canReplaceWith($, $, p.type, p.marks))
9984
- return t.replace(i.before(m), v ? o.after(m) : n, new Z(ih(r.content, 0, r.openStart, h), h, r.openEnd));
9984
+ return t.replace(i.before(g), y ? o.after(g) : n, new Z(ih(r.content, 0, r.openStart, h), h, r.openEnd));
9985
9985
  }
9986
9986
  }
9987
9987
  let d = t.steps.length;
@@ -11291,8 +11291,8 @@ function su(t, e, n) {
11291
11291
  else {
11292
11292
  let f = a.scrollLeft, h = a.scrollTop;
11293
11293
  d && (a.scrollTop += d), u && (a.scrollLeft += u);
11294
- let p = a.scrollLeft - f, g = a.scrollTop - h;
11295
- e = { left: e.left - p, top: e.top - g, right: e.right - p, bottom: e.bottom - g };
11294
+ let p = a.scrollLeft - f, m = a.scrollTop - h;
11295
+ e = { left: e.left - p, top: e.top - m, right: e.right - p, bottom: e.bottom - m };
11296
11296
  }
11297
11297
  if (l || /^(fixed|sticky)$/.test(getComputedStyle(s).position))
11298
11298
  break;
@@ -11355,12 +11355,12 @@ function fh(t, e) {
11355
11355
  let p = f[h];
11356
11356
  if (p.top <= s && p.bottom >= a) {
11357
11357
  s = Math.max(p.bottom, s), a = Math.min(p.top, a);
11358
- let g = p.left > e.left ? p.left - e.left : p.right < e.left ? e.left - p.right : 0;
11359
- if (g < r) {
11360
- n = u, r = g, i = g && n.nodeType == 3 ? {
11358
+ let m = p.left > e.left ? p.left - e.left : p.right < e.left ? e.left - p.right : 0;
11359
+ if (m < r) {
11360
+ n = u, r = m, i = m && n.nodeType == 3 ? {
11361
11361
  left: p.right < e.left ? p.right : p.left,
11362
11362
  top: e.top
11363
- } : e, u.nodeType == 1 && g && (o = d + (e.left >= (p.left + p.right) / 2 ? 1 : 0));
11363
+ } : e, u.nodeType == 1 && m && (o = d + (e.left >= (p.left + p.right) / 2 ? 1 : 0));
11364
11364
  continue;
11365
11365
  }
11366
11366
  } else p.top > e.top && !l && p.left <= e.left && p.right >= e.left && (l = u, c = { left: Math.max(p.left, Math.min(p.right, e.left)), top: p.top });
@@ -11570,12 +11570,12 @@ function FC(t, e, n) {
11570
11570
  return a ? !zC.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? o : s : mh(t, e, () => {
11571
11571
  let { focusNode: l, focusOffset: c, anchorNode: u, anchorOffset: d } = t.domSelectionRange(), f = a.caretBidiLevel;
11572
11572
  a.modify("move", n, "character");
11573
- let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: g } = t.domSelectionRange(), m = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || l == p && c == g;
11573
+ let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: m } = t.domSelectionRange(), g = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || l == p && c == m;
11574
11574
  try {
11575
11575
  a.collapse(u, d), l && (l != u || c != d) && a.extend && a.extend(l, c);
11576
11576
  } catch {
11577
11577
  }
11578
- return f != null && (a.caretBidiLevel = f), m;
11578
+ return f != null && (a.caretBidiLevel = f), g;
11579
11579
  }) : r.pos == r.start() || r.pos == r.end();
11580
11580
  }
11581
11581
  let lu = null, cu = null, uu = !1;
@@ -11836,10 +11836,10 @@ class Qi {
11836
11836
  setSelection(e, n, r, i = !1) {
11837
11837
  let o = Math.min(e, n), s = Math.max(e, n);
11838
11838
  for (let h = 0, p = 0; h < this.children.length; h++) {
11839
- let g = this.children[h], m = p + g.size;
11840
- if (o > p && s < m)
11841
- return g.setSelection(e - p - g.border, n - p - g.border, r, i);
11842
- p = m;
11839
+ let m = this.children[h], g = p + m.size;
11840
+ if (o > p && s < g)
11841
+ return m.setSelection(e - p - m.border, n - p - m.border, r, i);
11842
+ p = g;
11843
11843
  }
11844
11844
  let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c = r.root.getSelection(), u = r.domSelectionRange(), d = !1;
11845
11845
  if ((jt || at) && e == n) {
@@ -11847,18 +11847,18 @@ class Qi {
11847
11847
  if (h.nodeType == 3) {
11848
11848
  if (d = !!(p && h.nodeValue[p - 1] == `
11849
11849
  `), d && p == h.nodeValue.length)
11850
- for (let g = h, m; g; g = g.parentNode) {
11851
- if (m = g.nextSibling) {
11852
- m.nodeName == "BR" && (a = l = { node: m.parentNode, offset: Xe(m) + 1 });
11850
+ for (let m = h, g; m; m = m.parentNode) {
11851
+ if (g = m.nextSibling) {
11852
+ g.nodeName == "BR" && (a = l = { node: g.parentNode, offset: Xe(g) + 1 });
11853
11853
  break;
11854
11854
  }
11855
- let v = g.pmViewDesc;
11856
- if (v && v.node && v.node.isBlock)
11855
+ let y = m.pmViewDesc;
11856
+ if (y && y.node && y.node.isBlock)
11857
11857
  break;
11858
11858
  }
11859
11859
  } else {
11860
- let g = h.childNodes[p - 1];
11861
- d = g && (g.nodeName == "BR" || g.contentEditable == "false");
11860
+ let m = h.childNodes[p - 1];
11861
+ d = m && (m.nodeName == "BR" || m.contentEditable == "false");
11862
11862
  }
11863
11863
  }
11864
11864
  if (jt && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
@@ -12523,14 +12523,14 @@ function GC(t, e, n, r) {
12523
12523
  for (let c = 0; ; ) {
12524
12524
  let u, d;
12525
12525
  for (; s < i.length && i[s].to == o; ) {
12526
- let m = i[s++];
12527
- m.widget && (u ? (d || (d = [u])).push(m) : u = m);
12526
+ let g = i[s++];
12527
+ g.widget && (u ? (d || (d = [u])).push(g) : u = g);
12528
12528
  }
12529
12529
  if (u)
12530
12530
  if (d) {
12531
12531
  d.sort(JC);
12532
- for (let m = 0; m < d.length; m++)
12533
- n(d[m], c, !!l);
12532
+ for (let g = 0; g < d.length; g++)
12533
+ n(d[g], c, !!l);
12534
12534
  } else
12535
12535
  n(u, c, !!l);
12536
12536
  let f, h;
@@ -12540,22 +12540,22 @@ function GC(t, e, n, r) {
12540
12540
  h = c, f = t.child(c++);
12541
12541
  else
12542
12542
  break;
12543
- for (let m = 0; m < a.length; m++)
12544
- a[m].to <= o && a.splice(m--, 1);
12543
+ for (let g = 0; g < a.length; g++)
12544
+ a[g].to <= o && a.splice(g--, 1);
12545
12545
  for (; s < i.length && i[s].from <= o && i[s].to > o; )
12546
12546
  a.push(i[s++]);
12547
12547
  let p = o + f.nodeSize;
12548
12548
  if (f.isText) {
12549
- let m = p;
12550
- s < i.length && i[s].from < m && (m = i[s].from);
12551
- for (let v = 0; v < a.length; v++)
12552
- a[v].to < m && (m = a[v].to);
12553
- m < p && (l = f.cut(m - o), f = f.cut(0, m - o), p = m, h = -1);
12549
+ let g = p;
12550
+ s < i.length && i[s].from < g && (g = i[s].from);
12551
+ for (let y = 0; y < a.length; y++)
12552
+ a[y].to < g && (g = a[y].to);
12553
+ g < p && (l = f.cut(g - o), f = f.cut(0, g - o), p = g, h = -1);
12554
12554
  } else
12555
12555
  for (; s < i.length && i[s].to < p; )
12556
12556
  s++;
12557
- let g = f.isInline && !f.isLeaf ? a.filter((m) => !m.inline) : a.slice();
12558
- r(f, g, e.forChild(o, f), h), o = p;
12557
+ let m = f.isInline && !f.isLeaf ? a.filter((g) => !g.inline) : a.slice();
12558
+ r(f, m, e.forChild(o, f), h), o = p;
12559
12559
  }
12560
12560
  }
12561
12561
  function ZC(t) {
@@ -13017,9 +13017,9 @@ function Oh(t, e, n, r, i) {
13017
13017
  a = d;
13018
13018
  else {
13019
13019
  let f = i.marks(), { schema: h } = t.state, p = gr.fromSchema(h);
13020
- s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((g) => {
13021
- let m = s.appendChild(document.createElement("p"));
13022
- g && m.appendChild(p.serializeNode(h.text(g, f)));
13020
+ s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
13021
+ let g = s.appendChild(document.createElement("p"));
13022
+ m && g.appendChild(p.serializeNode(h.text(m, f)));
13023
13023
  });
13024
13024
  }
13025
13025
  } else
@@ -13559,7 +13559,7 @@ ct.drop = (t, e) => {
13559
13559
  c.setSelection(new ce(h));
13560
13560
  else {
13561
13561
  let p = c.mapping.map(l);
13562
- c.mapping.maps[c.mapping.maps.length - 1].forEach((g, m, v, S) => p = S), c.setSelection(gl(t, h, c.doc.resolve(p)));
13562
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, S) => p = S), c.setSelection(gl(t, h, c.doc.resolve(p)));
13563
13563
  }
13564
13564
  t.focus(), t.dispatch(c.setMeta("uiEvent", "drop"));
13565
13565
  };
@@ -13964,16 +13964,16 @@ function BO(t, e, n, r, i, o, s) {
13964
13964
  let a = t.slice();
13965
13965
  for (let c = 0, u = o; c < n.maps.length; c++) {
13966
13966
  let d = 0;
13967
- n.maps[c].forEach((f, h, p, g) => {
13968
- let m = g - p - (h - f);
13969
- for (let v = 0; v < a.length; v += 3) {
13970
- let S = a[v + 1];
13967
+ n.maps[c].forEach((f, h, p, m) => {
13968
+ let g = m - p - (h - f);
13969
+ for (let y = 0; y < a.length; y += 3) {
13970
+ let S = a[y + 1];
13971
13971
  if (S < 0 || f > S + u - d)
13972
13972
  continue;
13973
- let $ = a[v] + u - d;
13974
- h >= $ ? a[v + 1] = f <= $ ? -2 : -1 : f >= u && m && (a[v] += m, a[v + 1] += m);
13973
+ let $ = a[y] + u - d;
13974
+ h >= $ ? a[y + 1] = f <= $ ? -2 : -1 : f >= u && g && (a[y] += g, a[y + 1] += g);
13975
13975
  }
13976
- d += m;
13976
+ d += g;
13977
13977
  }), u = n.maps[c].map(u, -1);
13978
13978
  }
13979
13979
  let l = !1;
@@ -13988,10 +13988,10 @@ function BO(t, e, n, r, i, o, s) {
13988
13988
  l = !0;
13989
13989
  continue;
13990
13990
  }
13991
- let f = n.map(t[c + 1] + o, -1), h = f - i, { index: p, offset: g } = r.content.findIndex(d), m = r.maybeChild(p);
13992
- if (m && g == d && g + m.nodeSize == h) {
13993
- let v = a[c + 2].mapInner(n, m, u + 1, t[c] + o + 1, s);
13994
- v != tt ? (a[c] = d, a[c + 1] = h, a[c + 2] = v) : (a[c + 1] = -2, l = !0);
13991
+ let f = n.map(t[c + 1] + o, -1), h = f - i, { index: p, offset: m } = r.content.findIndex(d), g = r.maybeChild(p);
13992
+ if (g && m == d && m + g.nodeSize == h) {
13993
+ let y = a[c + 2].mapInner(n, g, u + 1, t[c] + o + 1, s);
13994
+ y != tt ? (a[c] = d, a[c + 1] = h, a[c + 2] = y) : (a[c + 1] = -2, l = !0);
13995
13995
  } else
13996
13996
  l = !0;
13997
13997
  }
@@ -14293,16 +14293,16 @@ function HO(t, e) {
14293
14293
  function WO(t, e, n) {
14294
14294
  let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
14295
14295
  if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], ds(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), rt && t.input.lastKeyCode === 8)
14296
- for (let m = o; m > i; m--) {
14297
- let v = r.childNodes[m - 1], S = v.pmViewDesc;
14298
- if (v.nodeName == "BR" && !S) {
14299
- o = m;
14296
+ for (let g = o; g > i; g--) {
14297
+ let y = r.childNodes[g - 1], S = y.pmViewDesc;
14298
+ if (y.nodeName == "BR" && !S) {
14299
+ o = g;
14300
14300
  break;
14301
14301
  }
14302
14302
  if (!S || S.size)
14303
14303
  break;
14304
14304
  }
14305
- let d = t.state.doc, f = t.someProp("domParser") || An.fromSchema(t.state.schema), h = d.resolve(s), p = null, g = f.parse(r, {
14305
+ let d = t.state.doc, f = t.someProp("domParser") || An.fromSchema(t.state.schema), h = d.resolve(s), p = null, m = f.parse(r, {
14306
14306
  topNode: h.parent,
14307
14307
  topMatch: h.parent.contentMatchAt(h.index()),
14308
14308
  topOpen: !0,
@@ -14314,10 +14314,10 @@ function WO(t, e, n) {
14314
14314
  context: h
14315
14315
  });
14316
14316
  if (c && c[0].pos != null) {
14317
- let m = c[0].pos, v = c[1] && c[1].pos;
14318
- v == null && (v = m), p = { anchor: m + s, head: v + s };
14317
+ let g = c[0].pos, y = c[1] && c[1].pos;
14318
+ y == null && (y = g), p = { anchor: g + s, head: y + s };
14319
14319
  }
14320
- return { doc: g, sel: p, from: s, to: a };
14320
+ return { doc: m, sel: p, from: s, to: a };
14321
14321
  }
14322
14322
  function qO(t) {
14323
14323
  let e = t.pmViewDesc;
@@ -14369,39 +14369,39 @@ function KO(t, e, n, r, i) {
14369
14369
  return;
14370
14370
  }
14371
14371
  t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof me && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), ht && En <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
14372
- let g = c.doc.resolveNoCache(p.start - c.from), m = c.doc.resolveNoCache(p.endB - c.from), v = u.resolve(p.start), S = g.sameParent(m) && g.parent.inlineContent && v.end() >= p.endA, $;
14373
- if ((Fr && t.input.lastIOSEnter > Date.now() - 225 && (!S || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !S && g.pos < c.doc.content.size && !g.sameParent(m) && ($ = we.findFrom(c.doc.resolve(g.pos + 1), 1, !0)) && $.head == m.pos) && t.someProp("handleKeyDown", (N) => N(t, Gn(13, "Enter")))) {
14372
+ let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), y = u.resolve(p.start), S = m.sameParent(g) && m.parent.inlineContent && y.end() >= p.endA, $;
14373
+ if ((Fr && t.input.lastIOSEnter > Date.now() - 225 && (!S || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !S && m.pos < c.doc.content.size && !m.sameParent(g) && ($ = we.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && $.head == g.pos) && t.someProp("handleKeyDown", (N) => N(t, Gn(13, "Enter")))) {
14374
14374
  t.input.lastIOSEnter = 0;
14375
14375
  return;
14376
14376
  }
14377
- if (t.state.selection.anchor > p.start && JO(u, p.start, p.endA, g, m) && t.someProp("handleKeyDown", (N) => N(t, Gn(8, "Backspace")))) {
14377
+ if (t.state.selection.anchor > p.start && JO(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (N) => N(t, Gn(8, "Backspace")))) {
14378
14378
  dn && rt && t.domObserver.suppressSelectionUpdates();
14379
14379
  return;
14380
14380
  }
14381
- rt && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), dn && !S && g.start() != m.start() && m.parentOffset == 0 && g.depth == m.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, m = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
14381
+ rt && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), dn && !S && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
14382
14382
  t.someProp("handleKeyDown", function(N) {
14383
14383
  return N(t, Gn(13, "Enter"));
14384
14384
  });
14385
14385
  }, 20));
14386
- let y = p.start, w = p.endA, b, E, I;
14386
+ let v = p.start, w = p.endA, b, E, I;
14387
14387
  if (S) {
14388
- if (g.pos == m.pos)
14389
- ht && En <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => pn(t), 20)), b = t.state.tr.delete(y, w), E = u.resolve(p.start).marksAcross(u.resolve(p.endA));
14388
+ if (m.pos == g.pos)
14389
+ ht && En <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => pn(t), 20)), b = t.state.tr.delete(v, w), E = u.resolve(p.start).marksAcross(u.resolve(p.endA));
14390
14390
  else if (
14391
14391
  // Adding or removing a mark
14392
- p.endA == p.endB && (I = YO(g.parent.content.cut(g.parentOffset, m.parentOffset), v.parent.content.cut(v.parentOffset, p.endA - v.start())))
14392
+ p.endA == p.endB && (I = YO(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
14393
14393
  )
14394
- b = t.state.tr, I.type == "add" ? b.addMark(y, w, I.mark) : b.removeMark(y, w, I.mark);
14395
- else if (g.parent.child(g.index()).isText && g.index() == m.index() - (m.textOffset ? 0 : 1)) {
14396
- let N = g.parent.textBetween(g.parentOffset, m.parentOffset);
14397
- if (t.someProp("handleTextInput", (D) => D(t, y, w, N)))
14394
+ b = t.state.tr, I.type == "add" ? b.addMark(v, w, I.mark) : b.removeMark(v, w, I.mark);
14395
+ else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
14396
+ let N = m.parent.textBetween(m.parentOffset, g.parentOffset);
14397
+ if (t.someProp("handleTextInput", (D) => D(t, v, w, N)))
14398
14398
  return;
14399
- b = t.state.tr.insertText(N, y, w);
14399
+ b = t.state.tr.insertText(N, v, w);
14400
14400
  }
14401
14401
  }
14402
- if (b || (b = t.state.tr.replace(y, w, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
14402
+ if (b || (b = t.state.tr.replace(v, w, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
14403
14403
  let N = Eu(t, b.doc, c.sel);
14404
- N && !(rt && t.composing && N.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head == y || N.head == b.mapping.map(w) - 1) || ht && N.empty && N.head == y) && b.setSelection(N);
14404
+ N && !(rt && t.composing && N.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head == v || N.head == b.mapping.map(w) - 1) || ht && N.empty && N.head == v) && b.setSelection(N);
14405
14405
  }
14406
14406
  E && b.ensureMarks(E), o && b.setMeta("composition", o), t.dispatch(b.scrollIntoView());
14407
14407
  }
@@ -15279,11 +15279,11 @@ function Xh(t, e, n, r) {
15279
15279
  if (c && (s = (a = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && a.matchType(s[0] || o.type).validEnd) {
15280
15280
  if (n) {
15281
15281
  let h = e.pos + o.nodeSize, p = H.empty;
15282
- for (let v = s.length - 1; v >= 0; v--)
15283
- p = H.from(s[v].create(null, p));
15282
+ for (let y = s.length - 1; y >= 0; y--)
15283
+ p = H.from(s[y].create(null, p));
15284
15284
  p = H.from(i.copy(p));
15285
- let g = t.tr.step(new Ke(e.pos - 1, h, e.pos, h, new Z(p, 1, 0), s.length, !0)), m = g.doc.resolve(h + 2 * s.length);
15286
- m.nodeAfter && m.nodeAfter.type == i.type && jn(g.doc, m.pos) && g.join(m.pos), n(g.scrollIntoView());
15285
+ let m = t.tr.step(new Ke(e.pos - 1, h, e.pos, h, new Z(p, 1, 0), s.length, !0)), g = m.doc.resolve(h + 2 * s.length);
15286
+ g.nodeAfter && g.nodeAfter.type == i.type && jn(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
15287
15287
  }
15288
15288
  return !0;
15289
15289
  }
@@ -15294,15 +15294,15 @@ function Xh(t, e, n, r) {
15294
15294
  let h = i, p = [];
15295
15295
  for (; p.push(h), !h.isTextblock; )
15296
15296
  h = h.lastChild;
15297
- let g = o, m = 1;
15298
- for (; !g.isTextblock; g = g.firstChild)
15299
- m++;
15300
- if (h.canReplace(h.childCount, h.childCount, g.content)) {
15297
+ let m = o, g = 1;
15298
+ for (; !m.isTextblock; m = m.firstChild)
15299
+ g++;
15300
+ if (h.canReplace(h.childCount, h.childCount, m.content)) {
15301
15301
  if (n) {
15302
- let v = H.empty;
15302
+ let y = H.empty;
15303
15303
  for (let $ = p.length - 1; $ >= 0; $--)
15304
- v = H.from(p[$].copy(v));
15305
- let S = t.tr.step(new Ke(e.pos - p.length, e.pos + o.nodeSize, e.pos + m, e.pos + o.nodeSize - m, new Z(v, p.length, 0), 0, !0));
15304
+ y = H.from(p[$].copy(y));
15305
+ let S = t.tr.step(new Ke(e.pos - p.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new Z(y, p.length, 0), 0, !0));
15306
15306
  n(S.scrollIntoView());
15307
15307
  }
15308
15308
  return !0;
@@ -15421,7 +15421,7 @@ function C3(t, e, n, r) {
15421
15421
  }
15422
15422
  function O3(t, e, n) {
15423
15423
  let r = t.tr, i = n.parent;
15424
- for (let h = n.end, p = n.endIndex - 1, g = n.startIndex; p > g; p--)
15424
+ for (let h = n.end, p = n.endIndex - 1, m = n.startIndex; p > m; p--)
15425
15425
  h -= i.child(p).nodeSize, r.delete(h - 1, h + 1);
15426
15426
  let o = r.doc.resolve(n.start), s = o.nodeAfter;
15427
15427
  if (r.mapping.map(n.end) != n.start + o.nodeAfter.nodeSize)
@@ -15500,9 +15500,9 @@ class ms {
15500
15500
  }
15501
15501
  createChain(e, n = !0) {
15502
15502
  const { rawCommands: r, editor: i, state: o } = this, { view: s } = i, a = [], l = !!e, c = e || o.tr, u = () => (!l && n && !c.getMeta("preventDispatch") && !this.hasCustomState && s.dispatch(c), a.every((f) => f === !0)), d = {
15503
- ...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...g) => {
15504
- const m = this.buildProps(c, n), v = h(...g)(m);
15505
- return a.push(v), d;
15503
+ ...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...m) => {
15504
+ const g = this.buildProps(c, n), y = h(...m)(g);
15505
+ return a.push(y), d;
15506
15506
  }])),
15507
15507
  run: u
15508
15508
  };
@@ -15705,15 +15705,15 @@ function _u(t) {
15705
15705
  function E3(t, e) {
15706
15706
  var n;
15707
15707
  const r = ep(t), { nodeExtensions: i, markExtensions: o } = gs(t), s = (n = i.find((c) => ne(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
15708
- const u = r.filter((v) => v.type === c.name), d = {
15708
+ const u = r.filter((y) => y.type === c.name), d = {
15709
15709
  name: c.name,
15710
15710
  options: c.options,
15711
15711
  storage: c.storage,
15712
15712
  editor: e
15713
- }, f = t.reduce((v, S) => {
15713
+ }, f = t.reduce((y, S) => {
15714
15714
  const $ = ne(S, "extendNodeSchema", d);
15715
15715
  return {
15716
- ...v,
15716
+ ...y,
15717
15717
  ...$ ? $(c) : {}
15718
15718
  };
15719
15719
  }, {}), h = _u({
@@ -15730,29 +15730,29 @@ function E3(t, e) {
15730
15730
  linebreakReplacement: ke(ne(c, "linebreakReplacement", d)),
15731
15731
  defining: ke(ne(c, "defining", d)),
15732
15732
  isolating: ke(ne(c, "isolating", d)),
15733
- attrs: Object.fromEntries(u.map((v) => {
15733
+ attrs: Object.fromEntries(u.map((y) => {
15734
15734
  var S;
15735
- return [v.name, { default: (S = v == null ? void 0 : v.attribute) === null || S === void 0 ? void 0 : S.default }];
15735
+ return [y.name, { default: (S = y == null ? void 0 : y.attribute) === null || S === void 0 ? void 0 : S.default }];
15736
15736
  }))
15737
15737
  }), p = ke(ne(c, "parseHTML", d));
15738
- p && (h.parseDOM = p.map((v) => Ru(v, u)));
15739
- const g = ne(c, "renderHTML", d);
15740
- g && (h.toDOM = (v) => g({
15741
- node: v,
15742
- HTMLAttributes: Va(v, u)
15738
+ p && (h.parseDOM = p.map((y) => Ru(y, u)));
15739
+ const m = ne(c, "renderHTML", d);
15740
+ m && (h.toDOM = (y) => m({
15741
+ node: y,
15742
+ HTMLAttributes: Va(y, u)
15743
15743
  }));
15744
- const m = ne(c, "renderText", d);
15745
- return m && (h.toText = m), [c.name, h];
15744
+ const g = ne(c, "renderText", d);
15745
+ return g && (h.toText = g), [c.name, h];
15746
15746
  })), l = Object.fromEntries(o.map((c) => {
15747
- const u = r.filter((m) => m.type === c.name), d = {
15747
+ const u = r.filter((g) => g.type === c.name), d = {
15748
15748
  name: c.name,
15749
15749
  options: c.options,
15750
15750
  storage: c.storage,
15751
15751
  editor: e
15752
- }, f = t.reduce((m, v) => {
15753
- const S = ne(v, "extendMarkSchema", d);
15752
+ }, f = t.reduce((g, y) => {
15753
+ const S = ne(y, "extendMarkSchema", d);
15754
15754
  return {
15755
- ...m,
15755
+ ...g,
15756
15756
  ...S ? S(c) : {}
15757
15757
  };
15758
15758
  }, {}), h = _u({
@@ -15762,16 +15762,16 @@ function E3(t, e) {
15762
15762
  group: ke(ne(c, "group", d)),
15763
15763
  spanning: ke(ne(c, "spanning", d)),
15764
15764
  code: ke(ne(c, "code", d)),
15765
- attrs: Object.fromEntries(u.map((m) => {
15766
- var v;
15767
- return [m.name, { default: (v = m == null ? void 0 : m.attribute) === null || v === void 0 ? void 0 : v.default }];
15765
+ attrs: Object.fromEntries(u.map((g) => {
15766
+ var y;
15767
+ return [g.name, { default: (y = g == null ? void 0 : g.attribute) === null || y === void 0 ? void 0 : y.default }];
15768
15768
  }))
15769
15769
  }), p = ke(ne(c, "parseHTML", d));
15770
- p && (h.parseDOM = p.map((m) => Ru(m, u)));
15771
- const g = ne(c, "renderHTML", d);
15772
- return g && (h.toDOM = (m) => g({
15773
- mark: m,
15774
- HTMLAttributes: Va(m, u)
15770
+ p && (h.parseDOM = p.map((g) => Ru(g, u)));
15771
+ const m = ne(c, "renderHTML", d);
15772
+ return m && (h.toDOM = (g) => m({
15773
+ mark: g,
15774
+ HTMLAttributes: Va(g, u)
15775
15775
  })), [c.name, h];
15776
15776
  }));
15777
15777
  return new Wf({
@@ -15840,21 +15840,21 @@ function co(t) {
15840
15840
  const h = N3(d, f.find);
15841
15841
  if (!h)
15842
15842
  return;
15843
- const p = l.state.tr, g = ps({
15843
+ const p = l.state.tr, m = ps({
15844
15844
  state: l.state,
15845
15845
  transaction: p
15846
- }), m = {
15846
+ }), g = {
15847
15847
  from: r - (h[0].length - o.length),
15848
15848
  to: i
15849
- }, { commands: v, chain: S, can: $ } = new ms({
15849
+ }, { commands: y, chain: S, can: $ } = new ms({
15850
15850
  editor: n,
15851
- state: g
15851
+ state: m
15852
15852
  });
15853
15853
  f.handler({
15854
- state: g,
15855
- range: m,
15854
+ state: m,
15855
+ range: g,
15856
15856
  match: h,
15857
- commands: v,
15857
+ commands: y,
15858
15858
  chain: S,
15859
15859
  can: $
15860
15860
  }) === null || !p.steps.length || (p.setMeta(a, {
@@ -16020,12 +16020,12 @@ function R3(t) {
16020
16020
  return n.doc.nodesBetween(r, i, (h, p) => {
16021
16021
  if (!h.isTextblock || h.type.spec.code)
16022
16022
  return;
16023
- const g = Math.max(r, p), m = Math.min(i, p + h.content.size), v = h.textBetween(g - p, m - p, void 0, "");
16024
- V3(v, o.find, s).forEach(($) => {
16023
+ const m = Math.max(r, p), g = Math.min(i, p + h.content.size), y = h.textBetween(m - p, g - p, void 0, "");
16024
+ V3(y, o.find, s).forEach(($) => {
16025
16025
  if ($.index === void 0)
16026
16026
  return;
16027
- const y = g + $.index + 1, w = y + $[0].length, b = {
16028
- from: n.tr.mapping.map(y),
16027
+ const v = m + $.index + 1, w = v + $[0].length, b = {
16028
+ from: n.tr.mapping.map(v),
16029
16029
  to: n.tr.mapping.map(w)
16030
16030
  }, E = o.handler({
16031
16031
  state: n,
@@ -16058,33 +16058,33 @@ function j3(t) {
16058
16058
  a = null;
16059
16059
  }
16060
16060
  const l = ({ state: u, from: d, to: f, rule: h, pasteEvt: p }) => {
16061
- const g = u.tr, m = ps({
16061
+ const m = u.tr, g = ps({
16062
16062
  state: u,
16063
- transaction: g
16063
+ transaction: m
16064
16064
  });
16065
16065
  if (!(!R3({
16066
16066
  editor: e,
16067
- state: m,
16067
+ state: g,
16068
16068
  from: Math.max(d - 1, 0),
16069
16069
  to: f.b - 1,
16070
16070
  rule: h,
16071
16071
  pasteEvent: p,
16072
16072
  dropEvent: a
16073
- }) || !g.steps.length)) {
16073
+ }) || !m.steps.length)) {
16074
16074
  try {
16075
16075
  a = typeof DragEvent < "u" ? new DragEvent("drop") : null;
16076
16076
  } catch {
16077
16077
  a = null;
16078
16078
  }
16079
- return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
16079
+ return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
16080
16080
  }
16081
16081
  };
16082
16082
  return n.map((u) => new et({
16083
16083
  // we register a global drag handler to track the current drag source element
16084
16084
  view(d) {
16085
16085
  const f = (p) => {
16086
- var g;
16087
- r = !((g = d.dom.parentElement) === null || g === void 0) && g.contains(p.target) ? d.dom.parentElement : null, r && (fo = e);
16086
+ var m;
16087
+ r = !((m = d.dom.parentElement) === null || m === void 0) && m.contains(p.target) ? d.dom.parentElement : null, r && (fo = e);
16088
16088
  }, h = () => {
16089
16089
  fo && (fo = null);
16090
16090
  };
@@ -16114,13 +16114,13 @@ function j3(t) {
16114
16114
  }
16115
16115
  },
16116
16116
  appendTransaction: (d, f, h) => {
16117
- const p = d[0], g = p.getMeta("uiEvent") === "paste" && !i, m = p.getMeta("uiEvent") === "drop" && !o, v = p.getMeta("applyPasteRules"), S = !!v;
16118
- if (!g && !m && !S)
16117
+ const p = d[0], m = p.getMeta("uiEvent") === "paste" && !i, g = p.getMeta("uiEvent") === "drop" && !o, y = p.getMeta("applyPasteRules"), S = !!y;
16118
+ if (!m && !g && !S)
16119
16119
  return;
16120
16120
  if (S) {
16121
- let { text: w } = v;
16121
+ let { text: w } = y;
16122
16122
  typeof w == "string" ? w = w : w = $l(H.from(w), h.schema);
16123
- const { from: b } = v, E = b + w.length, I = _3(w);
16123
+ const { from: b } = y, E = b + w.length, I = _3(w);
16124
16124
  return l({
16125
16125
  rule: u,
16126
16126
  state: h,
@@ -16129,13 +16129,13 @@ function j3(t) {
16129
16129
  pasteEvt: I
16130
16130
  });
16131
16131
  }
16132
- const $ = f.doc.content.findDiffStart(h.doc.content), y = f.doc.content.findDiffEnd(h.doc.content);
16133
- if (!(!B3($) || !y || $ === y.b))
16132
+ const $ = f.doc.content.findDiffStart(h.doc.content), v = f.doc.content.findDiffEnd(h.doc.content);
16133
+ if (!(!B3($) || !v || $ === v.b))
16134
16134
  return l({
16135
16135
  rule: u,
16136
16136
  state: h,
16137
16137
  from: $,
16138
- to: y,
16138
+ to: v,
16139
16139
  pasteEvt: s
16140
16140
  });
16141
16141
  }
@@ -16219,8 +16219,8 @@ class Er {
16219
16219
  }, l = [], c = ne(s, "addKeyboardShortcuts", a);
16220
16220
  let u = {};
16221
16221
  if (s.type === "mark" && ne(s, "exitable", a) && (u.ArrowRight = () => Lt.handleExit({ editor: e, mark: s })), c) {
16222
- const g = Object.fromEntries(Object.entries(c()).map(([m, v]) => [m, () => v({ editor: e })]));
16223
- u = { ...u, ...g };
16222
+ const m = Object.fromEntries(Object.entries(c()).map(([g, y]) => [g, () => y({ editor: e })]));
16223
+ u = { ...u, ...m };
16224
16224
  }
16225
16225
  const d = s3(u);
16226
16226
  l.push(d);
@@ -16230,8 +16230,8 @@ class Er {
16230
16230
  ju(s, e.options.enablePasteRules) && h && i.push(...h());
16231
16231
  const p = ne(s, "addProseMirrorPlugins", a);
16232
16232
  if (p) {
16233
- const g = p();
16234
- l.push(...g);
16233
+ const m = p();
16234
+ l.push(...m);
16235
16235
  }
16236
16236
  return l;
16237
16237
  }).flat();
@@ -16404,8 +16404,8 @@ const F3 = He.create({
16404
16404
  return;
16405
16405
  const p = ri(h);
16406
16406
  if (a.type.isTextblock) {
16407
- const { defaultType: g } = d.parent.contentMatchAt(d.index());
16408
- e.setNodeMarkup(h.start, g);
16407
+ const { defaultType: m } = d.parent.contentMatchAt(d.index());
16408
+ e.setNodeMarkup(h.start, m);
16409
16409
  }
16410
16410
  (p || p === 0) && e.lift(h, p);
16411
16411
  });
@@ -16661,8 +16661,8 @@ const lM = (t) => !("type" in t), cM = (t, e, n) => ({ tr: r, dispatch: i, edito
16661
16661
  h = e.map((p) => p.text || "").join("");
16662
16662
  else if (e instanceof H) {
16663
16663
  let p = "";
16664
- e.forEach((g) => {
16665
- g.text && (p += g.text);
16664
+ e.forEach((m) => {
16665
+ m.text && (p += m.text);
16666
16666
  }), h = p;
16667
16667
  } else typeof e == "object" && e && e.text ? h = e.text : h = e;
16668
16668
  r.insertText(h, l, c);
@@ -16875,13 +16875,13 @@ function _a(t, e, n = {}) {
16875
16875
  const a = [];
16876
16876
  if (i.forEach(({ $from: d, $to: f }) => {
16877
16877
  const h = d.pos, p = f.pos;
16878
- t.doc.nodesBetween(h, p, (g, m) => {
16879
- if (!g.isText && !g.marks.length)
16878
+ t.doc.nodesBetween(h, p, (m, g) => {
16879
+ if (!m.isText && !m.marks.length)
16880
16880
  return;
16881
- const v = Math.max(h, m), S = Math.min(p, m + g.nodeSize), $ = S - v;
16882
- s += $, a.push(...g.marks.map((y) => ({
16883
- mark: y,
16884
- from: v,
16881
+ const y = Math.max(h, g), S = Math.min(p, g + m.nodeSize), $ = S - y;
16882
+ s += $, a.push(...m.marks.map((v) => ({
16883
+ mark: v,
16884
+ from: y,
16885
16885
  to: S
16886
16886
  })));
16887
16887
  });
@@ -16933,7 +16933,7 @@ function _M(t) {
16933
16933
  return t instanceof ce;
16934
16934
  }
16935
16935
  function cp(t, e, n) {
16936
- const i = t.state.doc.content.size, o = fn(e, 0, i), s = fn(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -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, v = {
16936
+ const i = t.state.doc.content.size, o = fn(e, 0, i), s = fn(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -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, y = {
16937
16937
  top: c,
16938
16938
  bottom: u,
16939
16939
  left: d,
@@ -16944,8 +16944,8 @@ function cp(t, e, n) {
16944
16944
  y: c
16945
16945
  };
16946
16946
  return {
16947
- ...v,
16948
- toJSON: () => v
16947
+ ...y,
16948
+ toJSON: () => y
16949
16949
  };
16950
16950
  }
16951
16951
  function jM(t, e, n) {
@@ -16963,7 +16963,7 @@ function jM(t, e, n) {
16963
16963
  if (c)
16964
16964
  return !1;
16965
16965
  if (u.isInline) {
16966
- const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(u.marks) || !u.marks.some((g) => g.type.excludes(n));
16966
+ const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(u.marks) || !u.marks.some((m) => m.type.excludes(n));
16967
16967
  c = h && p;
16968
16968
  }
16969
16969
  return !c;
@@ -16983,13 +16983,13 @@ const zM = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
16983
16983
  a.forEach((c) => {
16984
16984
  const u = c.$from.pos, d = c.$to.pos;
16985
16985
  r.doc.nodesBetween(u, d, (f, h) => {
16986
- const p = Math.max(h, u), g = Math.min(h + f.nodeSize, d);
16987
- f.marks.find((v) => v.type === l) ? f.marks.forEach((v) => {
16988
- l === v.type && n.addMark(p, g, l.create({
16989
- ...v.attrs,
16986
+ const p = Math.max(h, u), m = Math.min(h + f.nodeSize, d);
16987
+ f.marks.find((y) => y.type === l) ? f.marks.forEach((y) => {
16988
+ l === y.type && n.addMark(p, m, l.create({
16989
+ ...y.attrs,
16990
16990
  ...e
16991
16991
  }));
16992
- }) : n.addMark(p, g, l.create(e));
16992
+ }) : n.addMark(p, m, l.create(e));
16993
16993
  });
16994
16994
  });
16995
16995
  return jM(r, n, l);
@@ -17040,8 +17040,8 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17040
17040
  }
17041
17041
  ] : void 0), r) {
17042
17042
  if (p && (o instanceof me && e.deleteSelection(), e.split(e.mapping.map(a.pos), 1, h), f && !d && !a.parentOffset && a.parent.type !== f)) {
17043
- const g = e.mapping.map(a.before()), m = e.doc.resolve(g);
17044
- a.node(-1).canReplaceWith(m.index(), m.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
17043
+ const m = e.mapping.map(a.before()), g = e.doc.resolve(m);
17044
+ a.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
17045
17045
  }
17046
17046
  t && Wu(n, i.extensionManager.splittableMarks), e.scrollIntoView();
17047
17047
  }
@@ -17059,17 +17059,17 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17059
17059
  if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
17060
17060
  return !1;
17061
17061
  if (i) {
17062
- let v = H.empty;
17062
+ let y = H.empty;
17063
17063
  const S = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
17064
17064
  for (let I = l.depth - S; I >= l.depth - 3; I -= 1)
17065
- v = H.from(l.node(I).copy(v));
17066
- const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, y = {
17065
+ y = H.from(l.node(I).copy(y));
17066
+ const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, v = {
17067
17067
  ...xo(f, l.node().type.name, l.node().attrs),
17068
17068
  ...e
17069
- }, w = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(y)) || void 0;
17070
- v = v.append(H.from(a.createAndFill(null, w) || void 0));
17069
+ }, w = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(v)) || void 0;
17070
+ y = y.append(H.from(a.createAndFill(null, w) || void 0));
17071
17071
  const b = l.before(l.depth - (S - 1));
17072
- n.replace(b, l.after(-$), new Z(v, 4 - S, 0));
17072
+ n.replace(b, l.after(-$), new Z(y, 4 - S, 0));
17073
17073
  let E = -1;
17074
17074
  n.doc.nodesBetween(b, n.doc.content.size, (I, N) => {
17075
17075
  if (E > -1)
@@ -17082,22 +17082,22 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17082
17082
  const h = c.pos === l.end() ? d.contentMatchAt(0).defaultType : null, p = {
17083
17083
  ...xo(f, d.type.name, d.attrs),
17084
17084
  ...e
17085
- }, g = {
17085
+ }, m = {
17086
17086
  ...xo(f, l.node().type.name, l.node().attrs),
17087
17087
  ...e
17088
17088
  };
17089
17089
  n.delete(l.pos, c.pos);
17090
- const m = h ? [
17090
+ const g = h ? [
17091
17091
  { type: a, attrs: p },
17092
- { type: h, attrs: g }
17092
+ { type: h, attrs: m }
17093
17093
  ] : [{ type: a, attrs: p }];
17094
17094
  if (!hn(n.doc, l.pos, 2))
17095
17095
  return !1;
17096
17096
  if (i) {
17097
- const { selection: v, storedMarks: S } = r, { splittableMarks: $ } = o.extensionManager, y = S || v.$to.parentOffset && v.$from.marks();
17098
- if (n.split(l.pos, 2, m).scrollIntoView(), !y || !i)
17097
+ const { selection: y, storedMarks: S } = r, { splittableMarks: $ } = o.extensionManager, v = S || y.$to.parentOffset && y.$from.marks();
17098
+ if (n.split(l.pos, 2, g).scrollIntoView(), !v || !i)
17099
17099
  return !0;
17100
- const w = y.filter((b) => $.includes(b.type.name));
17100
+ const w = v.filter((b) => $.includes(b.type.name));
17101
17101
  n.ensureMarks(w);
17102
17102
  }
17103
17103
  return !0;
@@ -17120,18 +17120,18 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17120
17120
  const i = t.doc.nodeAt(r);
17121
17121
  return n.node.type === (i == null ? void 0 : i.type) && jn(t.doc, r) && t.join(r), !0;
17122
17122
  }, JM = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
17123
- const { extensions: d, splittableMarks: f } = i.extensionManager, h = Je(t, s.schema), p = Je(e, s.schema), { selection: g, storedMarks: m } = s, { $from: v, $to: S } = g, $ = v.blockRange(S), y = m || g.$to.parentOffset && g.$from.marks();
17123
+ const { extensions: d, splittableMarks: f } = i.extensionManager, h = Je(t, s.schema), p = Je(e, s.schema), { selection: m, storedMarks: g } = s, { $from: y, $to: S } = m, $ = y.blockRange(S), v = g || m.$to.parentOffset && m.$from.marks();
17124
17124
  if (!$)
17125
17125
  return !1;
17126
- const w = Ll((b) => Hu(b.type.name, d))(g);
17126
+ const w = Ll((b) => Hu(b.type.name, d))(m);
17127
17127
  if ($.depth >= 1 && w && $.depth - w.depth <= 1) {
17128
17128
  if (w.node.type === h)
17129
17129
  return c.liftListItem(p);
17130
17130
  if (Hu(w.node.type.name, d) && h.validContent(w.node.content) && a)
17131
17131
  return l().command(() => (o.setNodeMarkup(w.pos, h), !0)).command(() => Us(o, h)).command(() => Ks(o, h)).run();
17132
17132
  }
17133
- return !n || !y || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Us(o, h)).command(() => Ks(o, h)).run() : l().command(() => {
17134
- const b = u().wrapInList(h, r), E = y.filter((I) => f.includes(I.type.name));
17133
+ return !n || !v || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Us(o, h)).command(() => Ks(o, h)).run() : l().command(() => {
17134
+ const b = u().wrapInList(h, r), E = v.filter((I) => f.includes(I.type.name));
17135
17135
  return o.ensureMarks(E), b ? !0 : c.clearNodes();
17136
17136
  }).wrapInList(h, r).command(() => Us(o, h)).command(() => Ks(o, h)).run();
17137
17137
  }, GM = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
@@ -17176,8 +17176,8 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17176
17176
  return !0;
17177
17177
  if (u && s) {
17178
17178
  let { from: f, to: h } = a;
17179
- const p = (o = c.marks().find((m) => m.type === l)) === null || o === void 0 ? void 0 : o.attrs, g = El(c, l, p);
17180
- g && (f = g.from, h = g.to), n.removeMark(f, h, l);
17179
+ const p = (o = c.marks().find((g) => g.type === l)) === null || o === void 0 ? void 0 : o.attrs, m = El(c, l, p);
17180
+ m && (f = m.from, h = m.to), n.removeMark(f, h, l);
17181
17181
  } else
17182
17182
  d.forEach((f) => {
17183
17183
  n.removeMark(f.$from.pos, f.$to.pos, l);
@@ -17189,17 +17189,17 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17189
17189
  return a ? (a === "node" && (o = Je(t, r.schema)), a === "mark" && (s = Fn(t, r.schema)), i && n.selection.ranges.forEach((l) => {
17190
17190
  const c = l.$from.pos, u = l.$to.pos;
17191
17191
  let d, f, h, p;
17192
- n.selection.empty ? r.doc.nodesBetween(c, u, (g, m) => {
17193
- o && o === g.type && (h = Math.max(m, c), p = Math.min(m + g.nodeSize, u), d = m, f = g);
17194
- }) : r.doc.nodesBetween(c, u, (g, m) => {
17195
- m < c && o && o === g.type && (h = Math.max(m, c), p = Math.min(m + g.nodeSize, u), d = m, f = g), m >= c && m <= u && (o && o === g.type && n.setNodeMarkup(m, void 0, {
17196
- ...g.attrs,
17192
+ n.selection.empty ? r.doc.nodesBetween(c, u, (m, g) => {
17193
+ o && o === m.type && (h = Math.max(g, c), p = Math.min(g + m.nodeSize, u), d = g, f = m);
17194
+ }) : r.doc.nodesBetween(c, u, (m, g) => {
17195
+ g < c && o && o === m.type && (h = Math.max(g, c), p = Math.min(g + m.nodeSize, u), d = g, f = m), g >= c && g <= u && (o && o === m.type && n.setNodeMarkup(g, void 0, {
17196
+ ...m.attrs,
17197
17197
  ...e
17198
- }), s && g.marks.length && g.marks.forEach((v) => {
17199
- if (s === v.type) {
17200
- const S = Math.max(m, c), $ = Math.min(m + g.nodeSize, u);
17198
+ }), s && m.marks.length && m.marks.forEach((y) => {
17199
+ if (s === y.type) {
17200
+ const S = Math.max(g, c), $ = Math.min(g + m.nodeSize, u);
17201
17201
  n.addMark(S, $, s.create({
17202
- ...v.attrs,
17202
+ ...y.attrs,
17203
17203
  ...e
17204
17204
  }));
17205
17205
  }
@@ -17207,9 +17207,9 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
17207
17207
  }), f && (d !== void 0 && n.setNodeMarkup(d, void 0, {
17208
17208
  ...f.attrs,
17209
17209
  ...e
17210
- }), s && f.marks.length && f.marks.forEach((g) => {
17211
- s === g.type && n.addMark(h, p, s.create({
17212
- ...g.attrs,
17210
+ }), s && f.marks.length && f.marks.forEach((m) => {
17211
+ s === m.type && n.addMark(h, p, s.create({
17212
+ ...m.attrs,
17213
17213
  ...e
17214
17214
  }));
17215
17215
  }));
@@ -17351,8 +17351,8 @@ const sT = He.create({
17351
17351
  () => s.undoInputRule(),
17352
17352
  // maybe convert first text block node to default node
17353
17353
  () => s.command(({ tr: a }) => {
17354
- const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, v = g && p.parent.childCount === 1 ? m === d.pos : we.atStart(c).from === f;
17355
- return !u || !h.type.isTextblock || h.textContent.length || !v || v && d.parent.type.name === "paragraph" ? !1 : s.clearNodes();
17354
+ const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d, m = p.parent.type.spec.isolating, g = d.pos - d.parentOffset, y = m && p.parent.childCount === 1 ? g === d.pos : we.atStart(c).from === f;
17355
+ return !u || !h.type.isTextblock || h.textContent.length || !y || y && d.parent.type.name === "paragraph" ? !1 : s.clearNodes();
17356
17356
  }),
17357
17357
  () => s.deleteSelection(),
17358
17358
  () => s.joinBackward(),
@@ -17401,9 +17401,9 @@ const sT = He.create({
17401
17401
  new et({
17402
17402
  key: new Ct("clearDocument"),
17403
17403
  appendTransaction: (t, e, n) => {
17404
- if (t.some((g) => g.getMeta("composition")))
17404
+ if (t.some((m) => m.getMeta("composition")))
17405
17405
  return;
17406
- const r = t.some((g) => g.docChanged) && !e.doc.eq(n.doc), i = t.some((g) => g.getMeta("preventClearDocument"));
17406
+ const r = t.some((m) => m.docChanged) && !e.doc.eq(n.doc), i = t.some((m) => m.getMeta("preventClearDocument"));
17407
17407
  if (!r || i)
17408
17408
  return;
17409
17409
  const { empty: o, from: s, to: a } = e.selection, l = we.atStart(e.doc).from, c = we.atEnd(e.doc).to;
@@ -18014,7 +18014,7 @@ function Wr(t) {
18014
18014
  const { tr: o } = e, s = r[r.length - 1], a = r[0];
18015
18015
  if (s) {
18016
18016
  const l = a.search(/\S/), c = n.from + a.indexOf(s), u = c + s.length;
18017
- if (lp(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((g) => g === t.type && g !== h.mark.type)).filter((h) => h.to > c).length)
18017
+ if (lp(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((m) => m === t.type && m !== h.mark.type)).filter((h) => h.to > c).length)
18018
18018
  return null;
18019
18019
  u < n.to && o.delete(u, n.to), c > n.from && o.delete(n.from + l, c);
18020
18020
  const f = n.from + l + s.length;
@@ -18065,8 +18065,8 @@ function Bi(t) {
18065
18065
  if (s.wrap(l, c), t.keepMarks && t.editor) {
18066
18066
  const { selection: d, storedMarks: f } = e, { splittableMarks: h } = t.editor.extensionManager, p = f || d.$to.parentOffset && d.$from.marks();
18067
18067
  if (p) {
18068
- const g = p.filter((m) => h.includes(m.type.name));
18069
- s.ensureMarks(g);
18068
+ const m = p.filter((g) => h.includes(g.type.name));
18069
+ s.ensureMarks(m);
18070
18070
  }
18071
18071
  }
18072
18072
  if (t.keepAttributes) {
@@ -18124,7 +18124,7 @@ function qr(t) {
18124
18124
  let c = n.to;
18125
18125
  if (a) {
18126
18126
  const u = l.search(/\S/), d = n.from + l.indexOf(a), f = d + a.length;
18127
- if (lp(n.from, n.to, e.doc).filter((p) => p.mark.type.excluded.find((m) => m === t.type && m !== p.mark.type)).filter((p) => p.to > d).length)
18127
+ if (lp(n.from, n.to, e.doc).filter((p) => p.mark.type.excluded.find((g) => g === t.type && g !== p.mark.type)).filter((p) => p.to > d).length)
18128
18128
  return null;
18129
18129
  f < n.to && s.delete(f, n.to), d > n.from && s.delete(n.from + u, d), c = n.from + u + a.length, s.addMark(n.from + u, c, t.type.create(o || {})), s.removeStoredMark(t.type);
18130
18130
  }
@@ -18339,7 +18339,7 @@ var LT = function(e, n) {
18339
18339
  function IT(t) {
18340
18340
  var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Yt(n.placement), l = Rl(a), c = [mt, Bt].indexOf(a) >= 0, u = c ? "height" : "width";
18341
18341
  if (!(!o || !s)) {
18342
- var d = LT(i.padding, n), f = Vl(o), h = l === "y" ? pt : mt, p = l === "y" ? It : Bt, g = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], m = s[l] - n.rects.reference[l], v = to(o), S = v ? l === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, $ = g / 2 - m / 2, y = d[h], w = S - f[u] - d[p], b = S / 2 - f[u] / 2 + $, E = bi(y, b, w), I = l;
18342
+ var d = LT(i.padding, n), f = Vl(o), h = l === "y" ? pt : mt, p = l === "y" ? It : Bt, m = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], g = s[l] - n.rects.reference[l], y = to(o), S = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, $ = m / 2 - g / 2, v = d[h], w = S - f[u] - d[p], b = S / 2 - f[u] / 2 + $, E = bi(v, b, w), I = l;
18343
18343
  n.modifiersData[r] = (e = {}, e[I] = E, e.centerOffset = E - b, e);
18344
18344
  }
18345
18345
  }
@@ -18373,24 +18373,24 @@ function RT(t, e) {
18373
18373
  };
18374
18374
  }
18375
18375
  function Ku(t) {
18376
- var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y, g = p === void 0 ? 0 : p, m = typeof u == "function" ? u({
18376
+ var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y, m = p === void 0 ? 0 : p, g = typeof u == "function" ? u({
18377
18377
  x: h,
18378
- y: g
18378
+ y: m
18379
18379
  }) : {
18380
18380
  x: h,
18381
- y: g
18381
+ y: m
18382
18382
  };
18383
- h = m.x, g = m.y;
18384
- var v = s.hasOwnProperty("x"), S = s.hasOwnProperty("y"), $ = mt, y = pt, w = window;
18383
+ h = g.x, m = g.y;
18384
+ var y = s.hasOwnProperty("x"), S = s.hasOwnProperty("y"), $ = mt, v = pt, w = window;
18385
18385
  if (c) {
18386
18386
  var b = to(n), E = "clientHeight", I = "clientWidth";
18387
18387
  if (b === St(n) && (b = Hn(n), gn(b).position !== "static" && a === "absolute" && (E = "scrollHeight", I = "scrollWidth")), b = b, i === pt || (i === mt || i === Bt) && o === Pi) {
18388
- y = It;
18388
+ v = It;
18389
18389
  var N = d && b === w && w.visualViewport ? w.visualViewport.height : (
18390
18390
  // $FlowFixMe[prop-missing]
18391
18391
  b[E]
18392
18392
  );
18393
- g -= N - r.height, g *= l ? 1 : -1;
18393
+ m -= N - r.height, m *= l ? 1 : -1;
18394
18394
  }
18395
18395
  if (i === mt || (i === pt || i === It) && o === Pi) {
18396
18396
  $ = Bt;
@@ -18405,16 +18405,16 @@ function Ku(t) {
18405
18405
  position: a
18406
18406
  }, c && VT), Y = u === !0 ? RT({
18407
18407
  x: h,
18408
- y: g
18408
+ y: m
18409
18409
  }, St(n)) : {
18410
18410
  x: h,
18411
- y: g
18411
+ y: m
18412
18412
  };
18413
- if (h = Y.x, g = Y.y, l) {
18413
+ if (h = Y.x, m = Y.y, l) {
18414
18414
  var se;
18415
- return Object.assign({}, V, (se = {}, se[y] = S ? "0" : "", se[$] = v ? "0" : "", se.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", se));
18415
+ return Object.assign({}, V, (se = {}, se[v] = S ? "0" : "", se[$] = y ? "0" : "", se.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", se));
18416
18416
  }
18417
- return Object.assign({}, V, (e = {}, e[y] = S ? g + "px" : "", e[$] = v ? h + "px" : "", e.transform = "", e));
18417
+ return Object.assign({}, V, (e = {}, e[v] = S ? m + "px" : "", e[$] = y ? h + "px" : "", e.transform = "", e));
18418
18418
  }
18419
18419
  function _T(t) {
18420
18420
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
@@ -18614,15 +18614,15 @@ function xp(t) {
18614
18614
  }
18615
18615
  function Vi(t, e) {
18616
18616
  e === void 0 && (e = {});
18617
- var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? gT : a, c = n.rootBoundary, u = c === void 0 ? dp : c, d = n.elementContext, f = d === void 0 ? ci : d, h = n.altBoundary, p = h === void 0 ? !1 : h, g = n.padding, m = g === void 0 ? 0 : g, v = yp(typeof m != "number" ? m : vp(m, eo)), S = f === ci ? yT : ci, $ = t.rects.popper, y = t.elements[p ? S : f], w = JT(fr(y) ? y : y.contextElement || Hn(t.elements.popper), l, u, s), b = Yr(t.elements.reference), E = xp({
18617
+ var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? gT : a, c = n.rootBoundary, u = c === void 0 ? dp : c, d = n.elementContext, f = d === void 0 ? ci : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, y = yp(typeof g != "number" ? g : vp(g, eo)), S = f === ci ? yT : ci, $ = t.rects.popper, v = t.elements[p ? S : f], w = JT(fr(v) ? v : v.contextElement || Hn(t.elements.popper), l, u, s), b = Yr(t.elements.reference), E = xp({
18618
18618
  reference: b,
18619
18619
  element: $,
18620
18620
  placement: i
18621
18621
  }), I = Ha(Object.assign({}, $, E)), N = f === ci ? I : b, D = {
18622
- top: w.top - N.top + v.top,
18623
- bottom: N.bottom - w.bottom + v.bottom,
18624
- left: w.left - N.left + v.left,
18625
- right: N.right - w.right + v.right
18622
+ top: w.top - N.top + y.top,
18623
+ bottom: N.bottom - w.bottom + y.bottom,
18624
+ left: w.left - N.left + y.left,
18625
+ right: N.right - w.right + y.right
18626
18626
  }, V = t.modifiersData.offset;
18627
18627
  if (f === ci && V) {
18628
18628
  var Y = V[i];
@@ -18641,16 +18641,16 @@ function GT(t, e) {
18641
18641
  return c.indexOf(p) >= 0;
18642
18642
  });
18643
18643
  f.length === 0 && (f = d);
18644
- var h = f.reduce(function(p, g) {
18645
- return p[g] = Vi(t, {
18646
- placement: g,
18644
+ var h = f.reduce(function(p, m) {
18645
+ return p[m] = Vi(t, {
18646
+ placement: m,
18647
18647
  boundary: i,
18648
18648
  rootBoundary: o,
18649
18649
  padding: s
18650
- })[Yt(g)], p;
18650
+ })[Yt(m)], p;
18651
18651
  }, {});
18652
- return Object.keys(h).sort(function(p, g) {
18653
- return h[p] - h[g];
18652
+ return Object.keys(h).sort(function(p, m) {
18653
+ return h[p] - h[m];
18654
18654
  });
18655
18655
  }
18656
18656
  function ZT(t) {
@@ -18662,17 +18662,17 @@ function ZT(t) {
18662
18662
  function XT(t) {
18663
18663
  var e = t.state, n = t.options, r = t.name;
18664
18664
  if (!e.modifiersData[r]._skip) {
18665
- for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, m = e.options.placement, v = Yt(m), S = v === m, $ = l || (S || !p ? [wo(m)] : ZT(m)), y = [m].concat($).reduce(function(ae, J) {
18665
+ for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, y = Yt(g), S = y === g, $ = l || (S || !p ? [wo(g)] : ZT(g)), v = [g].concat($).reduce(function(ae, J) {
18666
18666
  return ae.concat(Yt(J) === Bl ? GT(e, {
18667
18667
  placement: J,
18668
18668
  boundary: u,
18669
18669
  rootBoundary: d,
18670
18670
  padding: c,
18671
18671
  flipVariations: p,
18672
- allowedAutoPlacements: g
18672
+ allowedAutoPlacements: m
18673
18673
  }) : J);
18674
- }, []), w = e.rects.reference, b = e.rects.popper, E = /* @__PURE__ */ new Map(), I = !0, N = y[0], D = 0; D < y.length; D++) {
18675
- var V = y[D], Y = Yt(V), se = Jr(V) === Ur, U = [pt, It].indexOf(Y) >= 0, P = U ? "width" : "height", A = Vi(e, {
18674
+ }, []), w = e.rects.reference, b = e.rects.popper, E = /* @__PURE__ */ new Map(), I = !0, N = v[0], D = 0; D < v.length; D++) {
18675
+ var V = v[D], Y = Yt(V), se = Jr(V) === Ur, U = [pt, It].indexOf(Y) >= 0, P = U ? "width" : "height", A = Vi(e, {
18676
18676
  placement: V,
18677
18677
  boundary: u,
18678
18678
  rootBoundary: d,
@@ -18691,7 +18691,7 @@ function XT(t) {
18691
18691
  }
18692
18692
  if (I)
18693
18693
  for (var ie = p ? 3 : 1, L = function(J) {
18694
- var j = y.find(function(oe) {
18694
+ var j = v.find(function(oe) {
18695
18695
  var Oe = E.get(oe);
18696
18696
  if (Oe)
18697
18697
  return Oe.slice(0, J).every(function(ge) {
@@ -18800,14 +18800,14 @@ function a$(t) {
18800
18800
  return t === "x" ? "y" : "x";
18801
18801
  }
18802
18802
  function l$(t) {
18803
- var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset, g = p === void 0 ? 0 : p, m = Vi(e, {
18803
+ var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset, m = p === void 0 ? 0 : p, g = Vi(e, {
18804
18804
  boundary: l,
18805
18805
  rootBoundary: c,
18806
18806
  padding: d,
18807
18807
  altBoundary: u
18808
- }), v = Yt(e.placement), S = Jr(e.placement), $ = !S, y = Rl(v), w = a$(y), b = e.modifiersData.popperOffsets, E = e.rects.reference, I = e.rects.popper, N = typeof g == "function" ? g(Object.assign({}, e.rects, {
18808
+ }), y = Yt(e.placement), S = Jr(e.placement), $ = !S, v = Rl(y), w = a$(v), b = e.modifiersData.popperOffsets, E = e.rects.reference, I = e.rects.popper, N = typeof m == "function" ? m(Object.assign({}, e.rects, {
18809
18809
  placement: e.placement
18810
- })) : g, D = typeof N == "number" ? {
18810
+ })) : m, D = typeof N == "number" ? {
18811
18811
  mainAxis: N,
18812
18812
  altAxis: N
18813
18813
  } : Object.assign({
@@ -18819,14 +18819,14 @@ function l$(t) {
18819
18819
  };
18820
18820
  if (b) {
18821
18821
  if (o) {
18822
- var se, U = y === "y" ? pt : mt, P = y === "y" ? It : Bt, A = y === "y" ? "height" : "width", z = b[y], _ = z + m[U], ee = z - m[P], ie = h ? -I[A] / 2 : 0, L = S === Ur ? E[A] : I[A], W = S === Ur ? -I[A] : -E[A], q = e.elements.arrow, ae = h && q ? Vl(q) : {
18822
+ var se, U = v === "y" ? pt : mt, P = v === "y" ? It : Bt, A = v === "y" ? "height" : "width", z = b[v], _ = z + g[U], ee = z - g[P], ie = h ? -I[A] / 2 : 0, L = S === Ur ? E[A] : I[A], W = S === Ur ? -I[A] : -E[A], q = e.elements.arrow, ae = h && q ? Vl(q) : {
18823
18823
  width: 0,
18824
18824
  height: 0
18825
- }, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gp(), j = J[U], oe = J[P], Oe = bi(0, E[A], ae[A]), ge = $ ? E[A] / 2 - ie - Oe - j - D.mainAxis : L - Oe - j - D.mainAxis, Te = $ ? -E[A] / 2 + ie + Oe + oe + D.mainAxis : W + Oe + oe + D.mainAxis, De = e.elements.arrow && to(e.elements.arrow), _e = De ? y === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Ot = (se = V == null ? void 0 : V[y]) != null ? se : 0, yr = z + ge - Ot - _e, yn = z + Te - Ot, vn = bi(h ? Ko(_, yr) : _, z, h ? sr(ee, yn) : ee);
18826
- b[y] = vn, Y[y] = vn - z;
18825
+ }, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gp(), j = J[U], oe = J[P], Oe = bi(0, E[A], ae[A]), ge = $ ? E[A] / 2 - ie - Oe - j - D.mainAxis : L - Oe - j - D.mainAxis, Te = $ ? -E[A] / 2 + ie + Oe + oe + D.mainAxis : W + Oe + oe + D.mainAxis, De = e.elements.arrow && to(e.elements.arrow), _e = De ? v === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Ot = (se = V == null ? void 0 : V[v]) != null ? se : 0, yr = z + ge - Ot - _e, yn = z + Te - Ot, vn = bi(h ? Ko(_, yr) : _, z, h ? sr(ee, yn) : ee);
18826
+ b[v] = vn, Y[v] = vn - z;
18827
18827
  }
18828
18828
  if (a) {
18829
- var nn, Pt = y === "x" ? pt : mt, Mt = y === "x" ? It : Bt, Tt = b[w], Ft = w === "y" ? "height" : "width", rn = Tt + m[Pt], Ht = Tt - m[Mt], Wn = [pt, mt].indexOf(v) !== -1, bn = (nn = V == null ? void 0 : V[w]) != null ? nn : 0, vr = Wn ? rn : Tt - E[Ft] - I[Ft] - bn + D.altAxis, br = Wn ? Tt + E[Ft] + I[Ft] - bn - D.altAxis : Ht, xr = h && Wn ? NT(vr, Tt, br) : bi(h ? vr : rn, Tt, h ? br : Ht);
18829
+ var nn, Pt = v === "x" ? pt : mt, Mt = v === "x" ? It : Bt, Tt = b[w], Ft = w === "y" ? "height" : "width", rn = Tt + g[Pt], Ht = Tt - g[Mt], Wn = [pt, mt].indexOf(y) !== -1, bn = (nn = V == null ? void 0 : V[w]) != null ? nn : 0, vr = Wn ? rn : Tt - E[Ft] - I[Ft] - bn + D.altAxis, br = Wn ? Tt + E[Ft] + I[Ft] - bn - D.altAxis : Ht, xr = h && Wn ? NT(vr, Tt, br) : bi(h ? vr : rn, Tt, h ? br : Ht);
18830
18830
  b[w] = xr, Y[w] = xr - Tt;
18831
18831
  }
18832
18832
  e.modifiersData[r] = Y;
@@ -18948,15 +18948,15 @@ function v$(t) {
18948
18948
  styles: {}
18949
18949
  }, d = [], f = !1, h = {
18950
18950
  state: u,
18951
- setOptions: function(v) {
18952
- var S = typeof v == "function" ? v(u.options) : v;
18953
- g(), u.options = Object.assign({}, o, u.options, S), u.scrollParents = {
18951
+ setOptions: function(y) {
18952
+ var S = typeof y == "function" ? y(u.options) : y;
18953
+ m(), u.options = Object.assign({}, o, u.options, S), u.scrollParents = {
18954
18954
  reference: fr(a) ? xi(a) : a.contextElement ? xi(a.contextElement) : [],
18955
18955
  popper: xi(l)
18956
18956
  };
18957
18957
  var $ = m$(y$([].concat(r, u.options.modifiers)));
18958
- return u.orderedModifiers = $.filter(function(y) {
18959
- return y.enabled;
18958
+ return u.orderedModifiers = $.filter(function(v) {
18959
+ return v.enabled;
18960
18960
  }), p(), h.update();
18961
18961
  },
18962
18962
  // Sync update – it will always be executed, even if not necessary. This
@@ -18966,7 +18966,7 @@ function v$(t) {
18966
18966
  // prefer the async Popper#update method
18967
18967
  forceUpdate: function() {
18968
18968
  if (!f) {
18969
- var v = u.elements, S = v.reference, $ = v.popper;
18969
+ var y = u.elements, S = y.reference, $ = y.popper;
18970
18970
  if (Qu(S, $)) {
18971
18971
  u.rects = {
18972
18972
  reference: h$(S, to($), u.options.strategy === "fixed"),
@@ -18974,12 +18974,12 @@ function v$(t) {
18974
18974
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
18975
18975
  return u.modifiersData[D.name] = Object.assign({}, D.data);
18976
18976
  });
18977
- for (var y = 0; y < u.orderedModifiers.length; y++) {
18977
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
18978
18978
  if (u.reset === !0) {
18979
- u.reset = !1, y = -1;
18979
+ u.reset = !1, v = -1;
18980
18980
  continue;
18981
18981
  }
18982
- var w = u.orderedModifiers[y], b = w.fn, E = w.options, I = E === void 0 ? {} : E, N = w.name;
18982
+ var w = u.orderedModifiers[v], b = w.fn, E = w.options, I = E === void 0 ? {} : E, N = w.name;
18983
18983
  typeof b == "function" && (u = b({
18984
18984
  state: u,
18985
18985
  options: I,
@@ -18993,26 +18993,26 @@ function v$(t) {
18993
18993
  // Async and optimistically optimized update – it will not be executed if
18994
18994
  // not necessary (debounced to run at most once-per-tick)
18995
18995
  update: g$(function() {
18996
- return new Promise(function(m) {
18997
- h.forceUpdate(), m(u);
18996
+ return new Promise(function(g) {
18997
+ h.forceUpdate(), g(u);
18998
18998
  });
18999
18999
  }),
19000
19000
  destroy: function() {
19001
- g(), f = !0;
19001
+ m(), f = !0;
19002
19002
  }
19003
19003
  };
19004
19004
  if (!Qu(a, l))
19005
19005
  return h;
19006
- h.setOptions(c).then(function(m) {
19007
- !f && c.onFirstUpdate && c.onFirstUpdate(m);
19006
+ h.setOptions(c).then(function(g) {
19007
+ !f && c.onFirstUpdate && c.onFirstUpdate(g);
19008
19008
  });
19009
19009
  function p() {
19010
- u.orderedModifiers.forEach(function(m) {
19011
- var v = m.name, S = m.options, $ = S === void 0 ? {} : S, y = m.effect;
19012
- if (typeof y == "function") {
19013
- var w = y({
19010
+ u.orderedModifiers.forEach(function(g) {
19011
+ var y = g.name, S = g.options, $ = S === void 0 ? {} : S, v = g.effect;
19012
+ if (typeof v == "function") {
19013
+ var w = v({
19014
19014
  state: u,
19015
- name: v,
19015
+ name: y,
19016
19016
  instance: h,
19017
19017
  options: $
19018
19018
  }), b = function() {
@@ -19021,9 +19021,9 @@ function v$(t) {
19021
19021
  }
19022
19022
  });
19023
19023
  }
19024
- function g() {
19025
- d.forEach(function(m) {
19026
- return m();
19024
+ function m() {
19025
+ d.forEach(function(g) {
19026
+ return g();
19027
19027
  }), d = [];
19028
19028
  }
19029
19029
  return h;
@@ -19135,8 +19135,8 @@ function L$(t, e) {
19135
19135
  var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, c = T$(s.placement), u = s.modifiersData.offset;
19136
19136
  if (!u)
19137
19137
  return !0;
19138
- var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, p = c === "left" ? u.right.x : 0, g = o.top - r + d > l, m = r - o.bottom - f > l, v = o.left - n + h > l, S = n - o.right - p > l;
19139
- return g || m || v || S;
19138
+ var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, p = c === "left" ? u.right.x : 0, m = o.top - r + d > l, g = r - o.bottom - f > l, y = o.left - n + h > l, S = n - o.right - p > l;
19139
+ return m || g || y || S;
19140
19140
  });
19141
19141
  }
19142
19142
  function Gs(t, e, n) {
@@ -19394,7 +19394,7 @@ function Dp(t) {
19394
19394
  Dp.$$tippy = !0;
19395
19395
  var K$ = 1, mo = [], Zs = [];
19396
19396
  function Y$(t, e) {
19397
- var n = ad(t, Object.assign({}, bt, Ap(nd(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], p = ed(yr, n.interactiveDebounce), g, m = K$++, v = null, S = M$(n.plugins), $ = {
19397
+ var n = ad(t, Object.assign({}, bt, Ap(nd(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], p = ed(yr, n.interactiveDebounce), m, g = K$++, y = null, S = M$(n.plugins), $ = {
19398
19398
  // Is the instance currently enabled?
19399
19399
  isEnabled: !0,
19400
19400
  // Is the tippy currently showing and not transitioning out?
@@ -19405,12 +19405,12 @@ function Y$(t, e) {
19405
19405
  isMounted: !1,
19406
19406
  // Has the tippy finished transitioning in?
19407
19407
  isShown: !1
19408
- }, y = {
19408
+ }, v = {
19409
19409
  // properties
19410
- id: m,
19410
+ id: g,
19411
19411
  reference: t,
19412
19412
  popper: wi(),
19413
- popperInstance: v,
19413
+ popperInstance: y,
19414
19414
  props: n,
19415
19415
  state: $,
19416
19416
  plugins: S,
@@ -19427,19 +19427,19 @@ function Y$(t, e) {
19427
19427
  destroy: fe
19428
19428
  };
19429
19429
  if (!n.render)
19430
- return process.env.NODE_ENV !== "production" && Wa(!0, "render() function has not been supplied."), y;
19431
- var w = n.render(y), b = w.popper, E = w.onUpdate;
19432
- b.setAttribute("data-tippy-root", ""), b.id = "tippy-" + y.id, y.popper = b, t._tippy = y, b._tippy = y;
19430
+ return process.env.NODE_ENV !== "production" && Wa(!0, "render() function has not been supplied."), v;
19431
+ var w = n.render(v), b = w.popper, E = w.onUpdate;
19432
+ b.setAttribute("data-tippy-root", ""), b.id = "tippy-" + v.id, v.popper = b, t._tippy = v, b._tippy = v;
19433
19433
  var I = S.map(function(k) {
19434
- return k.fn(y);
19434
+ return k.fn(v);
19435
19435
  }), N = t.hasAttribute("aria-expanded");
19436
- return De(), ie(), z(), _("onCreate", [y]), n.showOnCreate && rn(), b.addEventListener("mouseenter", function() {
19437
- y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
19436
+ return De(), ie(), z(), _("onCreate", [v]), n.showOnCreate && rn(), b.addEventListener("mouseenter", function() {
19437
+ v.props.interactive && v.state.isVisible && v.clearDelayTimeouts();
19438
19438
  }), b.addEventListener("mouseleave", function() {
19439
- y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", p);
19440
- }), y;
19439
+ v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", p);
19440
+ }), v;
19441
19441
  function D() {
19442
- var k = y.props.touch;
19442
+ var k = v.props.touch;
19443
19443
  return Array.isArray(k) ? k : [k, 0];
19444
19444
  }
19445
19445
  function V() {
@@ -19447,10 +19447,10 @@ function Y$(t, e) {
19447
19447
  }
19448
19448
  function Y() {
19449
19449
  var k;
19450
- return !!((k = y.props.render) != null && k.$$tippy);
19450
+ return !!((k = v.props.render) != null && k.$$tippy);
19451
19451
  }
19452
19452
  function se() {
19453
- return g || t;
19453
+ return m || t;
19454
19454
  }
19455
19455
  function U() {
19456
19456
  var k = se().parentNode;
@@ -19460,26 +19460,26 @@ function Y$(t, e) {
19460
19460
  return Ua(b);
19461
19461
  }
19462
19462
  function A(k) {
19463
- return y.state.isMounted && !y.state.isVisible || Ut.isTouch || u && u.type === "focus" ? 0 : Ys(y.props.delay, k ? 0 : 1, bt.delay);
19463
+ return v.state.isMounted && !v.state.isVisible || Ut.isTouch || u && u.type === "focus" ? 0 : Ys(v.props.delay, k ? 0 : 1, bt.delay);
19464
19464
  }
19465
19465
  function z(k) {
19466
- k === void 0 && (k = !1), b.style.pointerEvents = y.props.interactive && !k ? "" : "none", b.style.zIndex = "" + y.props.zIndex;
19466
+ k === void 0 && (k = !1), b.style.pointerEvents = v.props.interactive && !k ? "" : "none", b.style.zIndex = "" + v.props.zIndex;
19467
19467
  }
19468
19468
  function _(k, K, Q) {
19469
19469
  if (Q === void 0 && (Q = !0), I.forEach(function(he) {
19470
19470
  he[k] && he[k].apply(he, K);
19471
19471
  }), Q) {
19472
19472
  var ue;
19473
- (ue = y.props)[k].apply(ue, K);
19473
+ (ue = v.props)[k].apply(ue, K);
19474
19474
  }
19475
19475
  }
19476
19476
  function ee() {
19477
- var k = y.props.aria;
19477
+ var k = v.props.aria;
19478
19478
  if (k.content) {
19479
- var K = "aria-" + k.content, Q = b.id, ue = Tr(y.props.triggerTarget || t);
19479
+ var K = "aria-" + k.content, Q = b.id, ue = Tr(v.props.triggerTarget || t);
19480
19480
  ue.forEach(function(he) {
19481
19481
  var xe = he.getAttribute(K);
19482
- if (y.state.isVisible)
19482
+ if (v.state.isVisible)
19483
19483
  he.setAttribute(K, xe ? xe + " " + Q : Q);
19484
19484
  else {
19485
19485
  var Ae = xe && xe.replace(Q, "").trim();
@@ -19489,10 +19489,10 @@ function Y$(t, e) {
19489
19489
  }
19490
19490
  }
19491
19491
  function ie() {
19492
- if (!(N || !y.props.aria.expanded)) {
19493
- var k = Tr(y.props.triggerTarget || t);
19492
+ if (!(N || !v.props.aria.expanded)) {
19493
+ var k = Tr(v.props.triggerTarget || t);
19494
19494
  k.forEach(function(K) {
19495
- y.props.interactive ? K.setAttribute("aria-expanded", y.state.isVisible && K === se() ? "true" : "false") : K.removeAttribute("aria-expanded");
19495
+ v.props.interactive ? K.setAttribute("aria-expanded", v.state.isVisible && K === se() ? "true" : "false") : K.removeAttribute("aria-expanded");
19496
19496
  });
19497
19497
  }
19498
19498
  }
@@ -19504,17 +19504,17 @@ function Y$(t, e) {
19504
19504
  function W(k) {
19505
19505
  if (!(Ut.isTouch && (l || k.type === "mousedown"))) {
19506
19506
  var K = k.composedPath && k.composedPath()[0] || k.target;
19507
- if (!(y.props.interactive && id(b, K))) {
19508
- if (Tr(y.props.triggerTarget || t).some(function(Q) {
19507
+ if (!(v.props.interactive && id(b, K))) {
19508
+ if (Tr(v.props.triggerTarget || t).some(function(Q) {
19509
19509
  return id(Q, K);
19510
19510
  })) {
19511
- if (Ut.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
19511
+ if (Ut.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
19512
19512
  return;
19513
19513
  } else
19514
- _("onClickOutside", [y, k]);
19515
- y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), a = !0, setTimeout(function() {
19514
+ _("onClickOutside", [v, k]);
19515
+ v.props.hideOnClick === !0 && (v.clearDelayTimeouts(), v.hide(), a = !0, setTimeout(function() {
19516
19516
  a = !1;
19517
- }), y.state.isMounted || j());
19517
+ }), v.state.isMounted || j());
19518
19518
  }
19519
19519
  }
19520
19520
  }
@@ -19534,7 +19534,7 @@ function Y$(t, e) {
19534
19534
  }
19535
19535
  function oe(k, K) {
19536
19536
  ge(k, function() {
19537
- !y.state.isVisible && b.parentNode && b.parentNode.contains(b) && K();
19537
+ !v.state.isVisible && b.parentNode && b.parentNode.contains(b) && K();
19538
19538
  });
19539
19539
  }
19540
19540
  function Oe(k, K) {
@@ -19551,7 +19551,7 @@ function Y$(t, e) {
19551
19551
  }
19552
19552
  function Te(k, K, Q) {
19553
19553
  Q === void 0 && (Q = !1);
19554
- var ue = Tr(y.props.triggerTarget || t);
19554
+ var ue = Tr(v.props.triggerTarget || t);
19555
19555
  ue.forEach(function(he) {
19556
19556
  he.addEventListener(k, K, Q), h.push({
19557
19557
  node: he,
@@ -19566,7 +19566,7 @@ function Y$(t, e) {
19566
19566
  passive: !0
19567
19567
  }), Te("touchend", yn, {
19568
19568
  passive: !0
19569
- })), O$(y.props.trigger).forEach(function(k) {
19569
+ })), O$(v.props.trigger).forEach(function(k) {
19570
19570
  if (k !== "manual")
19571
19571
  switch (Te(k, Ot), k) {
19572
19572
  case "mouseenter":
@@ -19589,11 +19589,11 @@ function Y$(t, e) {
19589
19589
  }
19590
19590
  function Ot(k) {
19591
19591
  var K, Q = !1;
19592
- if (!(!y.state.isEnabled || nn(k) || a)) {
19592
+ if (!(!v.state.isEnabled || nn(k) || a)) {
19593
19593
  var ue = ((K = u) == null ? void 0 : K.type) === "focus";
19594
- u = k, g = k.currentTarget, ie(), !y.state.isVisible && A$(k) && mo.forEach(function(he) {
19594
+ u = k, m = k.currentTarget, ie(), !v.state.isVisible && A$(k) && mo.forEach(function(he) {
19595
19595
  return he(k);
19596
- }), k.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? Q = !0 : rn(k), k.type === "click" && (s = !Q), Q && !ue && Ht(k);
19596
+ }), k.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? Q = !0 : rn(k), k.type === "click" && (s = !Q), Q && !ue && Ht(k);
19597
19597
  }
19598
19598
  }
19599
19599
  function yr(k) {
@@ -19611,24 +19611,24 @@ function Y$(t, e) {
19611
19611
  }
19612
19612
  }
19613
19613
  function yn(k) {
19614
- var K = nn(k) || y.props.trigger.indexOf("click") >= 0 && s;
19614
+ var K = nn(k) || v.props.trigger.indexOf("click") >= 0 && s;
19615
19615
  if (!K) {
19616
- if (y.props.interactive) {
19617
- y.hideWithInteractivity(k);
19616
+ if (v.props.interactive) {
19617
+ v.hideWithInteractivity(k);
19618
19618
  return;
19619
19619
  }
19620
19620
  Ht(k);
19621
19621
  }
19622
19622
  }
19623
19623
  function vn(k) {
19624
- y.props.trigger.indexOf("focusin") < 0 && k.target !== se() || y.props.interactive && k.relatedTarget && b.contains(k.relatedTarget) || Ht(k);
19624
+ v.props.trigger.indexOf("focusin") < 0 && k.target !== se() || v.props.interactive && k.relatedTarget && b.contains(k.relatedTarget) || Ht(k);
19625
19625
  }
19626
19626
  function nn(k) {
19627
19627
  return Ut.isTouch ? V() !== k.type.indexOf("touch") >= 0 : !1;
19628
19628
  }
19629
19629
  function Pt() {
19630
19630
  Mt();
19631
- var k = y.props, K = k.popperOptions, Q = k.placement, ue = k.offset, he = k.getReferenceClientRect, xe = k.moveTransition, Ae = Y() ? Ua(b).arrow : null, Re = he ? {
19631
+ var k = v.props, K = k.popperOptions, Q = k.placement, ue = k.offset, he = k.getReferenceClientRect, xe = k.moveTransition, Ae = Y() ? Ua(b).arrow : null, Re = he ? {
19632
19632
  getBoundingClientRect: he,
19633
19633
  contextElement: he.contextElement || se()
19634
19634
  } : t, ot = {
@@ -19677,18 +19677,18 @@ function Y$(t, e) {
19677
19677
  element: Ae,
19678
19678
  padding: 3
19679
19679
  }
19680
- }), yt.push.apply(yt, (K == null ? void 0 : K.modifiers) || []), y.popperInstance = x$(Re, b, Object.assign({}, K, {
19680
+ }), yt.push.apply(yt, (K == null ? void 0 : K.modifiers) || []), v.popperInstance = x$(Re, b, Object.assign({}, K, {
19681
19681
  placement: Q,
19682
19682
  onFirstUpdate: f,
19683
19683
  modifiers: yt
19684
19684
  }));
19685
19685
  }
19686
19686
  function Mt() {
19687
- y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
19687
+ v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
19688
19688
  }
19689
19689
  function Tt() {
19690
- var k = y.props.appendTo, K, Q = se();
19691
- y.props.interactive && k === Cp || k === "parent" ? K = Q.parentNode : K = Op(k, [Q]), K.contains(b) || K.appendChild(b), y.state.isMounted = !0, Pt(), process.env.NODE_ENV !== "production" && ln(y.props.interactive && k === bt.appendTo && Q.nextElementSibling !== b, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
19690
+ var k = v.props.appendTo, K, Q = se();
19691
+ v.props.interactive && k === Cp || k === "parent" ? K = Q.parentNode : K = Op(k, [Q]), K.contains(b) || K.appendChild(b), v.state.isMounted = !0, Pt(), process.env.NODE_ENV !== "production" && ln(v.props.interactive && k === bt.appendTo && Q.nextElementSibling !== b, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
19692
19692
 
19693
19693
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
19694
19694
 
@@ -19700,98 +19700,98 @@ function Y$(t, e) {
19700
19700
  return Yo(b.querySelectorAll("[data-tippy-root]"));
19701
19701
  }
19702
19702
  function rn(k) {
19703
- y.clearDelayTimeouts(), k && _("onTrigger", [y, k]), J();
19703
+ v.clearDelayTimeouts(), k && _("onTrigger", [v, k]), J();
19704
19704
  var K = A(!0), Q = D(), ue = Q[0], he = Q[1];
19705
19705
  Ut.isTouch && ue === "hold" && he && (K = he), K ? r = setTimeout(function() {
19706
- y.show();
19707
- }, K) : y.show();
19706
+ v.show();
19707
+ }, K) : v.show();
19708
19708
  }
19709
19709
  function Ht(k) {
19710
- if (y.clearDelayTimeouts(), _("onUntrigger", [y, k]), !y.state.isVisible) {
19710
+ if (v.clearDelayTimeouts(), _("onUntrigger", [v, k]), !v.state.isVisible) {
19711
19711
  j();
19712
19712
  return;
19713
19713
  }
19714
- if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(k.type) >= 0 && s)) {
19714
+ if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(k.type) >= 0 && s)) {
19715
19715
  var K = A(!1);
19716
19716
  K ? i = setTimeout(function() {
19717
- y.state.isVisible && y.hide();
19717
+ v.state.isVisible && v.hide();
19718
19718
  }, K) : o = requestAnimationFrame(function() {
19719
- y.hide();
19719
+ v.hide();
19720
19720
  });
19721
19721
  }
19722
19722
  }
19723
19723
  function Wn() {
19724
- y.state.isEnabled = !0;
19724
+ v.state.isEnabled = !0;
19725
19725
  }
19726
19726
  function bn() {
19727
- y.hide(), y.state.isEnabled = !1;
19727
+ v.hide(), v.state.isEnabled = !1;
19728
19728
  }
19729
19729
  function vr() {
19730
19730
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
19731
19731
  }
19732
19732
  function br(k) {
19733
- if (process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("setProps")), !y.state.isDestroyed) {
19734
- _("onBeforeUpdate", [y, k]), _e();
19735
- var K = y.props, Q = ad(t, Object.assign({}, K, nd(k), {
19733
+ if (process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("setProps")), !v.state.isDestroyed) {
19734
+ _("onBeforeUpdate", [v, k]), _e();
19735
+ var K = v.props, Q = ad(t, Object.assign({}, K, nd(k), {
19736
19736
  ignoreAttributes: !0
19737
19737
  }));
19738
- y.props = Q, De(), K.interactiveDebounce !== Q.interactiveDebounce && (L(), p = ed(yr, Q.interactiveDebounce)), K.triggerTarget && !Q.triggerTarget ? Tr(K.triggerTarget).forEach(function(ue) {
19738
+ v.props = Q, De(), K.interactiveDebounce !== Q.interactiveDebounce && (L(), p = ed(yr, Q.interactiveDebounce)), K.triggerTarget && !Q.triggerTarget ? Tr(K.triggerTarget).forEach(function(ue) {
19739
19739
  ue.removeAttribute("aria-expanded");
19740
- }) : Q.triggerTarget && t.removeAttribute("aria-expanded"), ie(), z(), E && E(K, Q), y.popperInstance && (Pt(), Ft().forEach(function(ue) {
19740
+ }) : Q.triggerTarget && t.removeAttribute("aria-expanded"), ie(), z(), E && E(K, Q), v.popperInstance && (Pt(), Ft().forEach(function(ue) {
19741
19741
  requestAnimationFrame(ue._tippy.popperInstance.forceUpdate);
19742
- })), _("onAfterUpdate", [y, k]);
19742
+ })), _("onAfterUpdate", [v, k]);
19743
19743
  }
19744
19744
  }
19745
19745
  function xr(k) {
19746
- y.setProps({
19746
+ v.setProps({
19747
19747
  content: k
19748
19748
  });
19749
19749
  }
19750
19750
  function M() {
19751
- process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("show"));
19752
- var k = y.state.isVisible, K = y.state.isDestroyed, Q = !y.state.isEnabled, ue = Ut.isTouch && !y.props.touch, he = Ys(y.props.duration, 0, bt.duration);
19753
- if (!(k || K || Q || ue) && !se().hasAttribute("disabled") && (_("onShow", [y], !1), y.props.onShow(y) !== !1)) {
19754
- if (y.state.isVisible = !0, Y() && (b.style.visibility = "visible"), z(), J(), y.state.isMounted || (b.style.transition = "none"), Y()) {
19751
+ process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("show"));
19752
+ var k = v.state.isVisible, K = v.state.isDestroyed, Q = !v.state.isEnabled, ue = Ut.isTouch && !v.props.touch, he = Ys(v.props.duration, 0, bt.duration);
19753
+ if (!(k || K || Q || ue) && !se().hasAttribute("disabled") && (_("onShow", [v], !1), v.props.onShow(v) !== !1)) {
19754
+ if (v.state.isVisible = !0, Y() && (b.style.visibility = "visible"), z(), J(), v.state.isMounted || (b.style.transition = "none"), Y()) {
19755
19755
  var xe = P(), Ae = xe.box, Re = xe.content;
19756
19756
  Js([Ae, Re], 0);
19757
19757
  }
19758
19758
  f = function() {
19759
19759
  var yt;
19760
- if (!(!y.state.isVisible || c)) {
19761
- if (c = !0, b.offsetHeight, b.style.transition = y.props.moveTransition, Y() && y.props.animation) {
19760
+ if (!(!v.state.isVisible || c)) {
19761
+ if (c = !0, b.offsetHeight, b.style.transition = v.props.moveTransition, Y() && v.props.animation) {
19762
19762
  var qn = P(), xn = qn.box, Wt = qn.content;
19763
19763
  Js([xn, Wt], he), rd([xn, Wt], "visible");
19764
19764
  }
19765
- ee(), ie(), td(Zs, y), (yt = y.popperInstance) == null || yt.forceUpdate(), _("onMount", [y]), y.props.animation && Y() && Oe(he, function() {
19766
- y.state.isShown = !0, _("onShown", [y]);
19765
+ ee(), ie(), td(Zs, v), (yt = v.popperInstance) == null || yt.forceUpdate(), _("onMount", [v]), v.props.animation && Y() && Oe(he, function() {
19766
+ v.state.isShown = !0, _("onShown", [v]);
19767
19767
  });
19768
19768
  }
19769
19769
  }, Tt();
19770
19770
  }
19771
19771
  }
19772
19772
  function O() {
19773
- process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("hide"));
19774
- var k = !y.state.isVisible, K = y.state.isDestroyed, Q = !y.state.isEnabled, ue = Ys(y.props.duration, 1, bt.duration);
19775
- if (!(k || K || Q) && (_("onHide", [y], !1), y.props.onHide(y) !== !1)) {
19776
- if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, Y() && (b.style.visibility = "hidden"), L(), j(), z(!0), Y()) {
19773
+ process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("hide"));
19774
+ var k = !v.state.isVisible, K = v.state.isDestroyed, Q = !v.state.isEnabled, ue = Ys(v.props.duration, 1, bt.duration);
19775
+ if (!(k || K || Q) && (_("onHide", [v], !1), v.props.onHide(v) !== !1)) {
19776
+ if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, s = !1, Y() && (b.style.visibility = "hidden"), L(), j(), z(!0), Y()) {
19777
19777
  var he = P(), xe = he.box, Ae = he.content;
19778
- y.props.animation && (Js([xe, Ae], ue), rd([xe, Ae], "hidden"));
19778
+ v.props.animation && (Js([xe, Ae], ue), rd([xe, Ae], "hidden"));
19779
19779
  }
19780
- ee(), ie(), y.props.animation ? Y() && oe(ue, y.unmount) : y.unmount();
19780
+ ee(), ie(), v.props.animation ? Y() && oe(ue, v.unmount) : v.unmount();
19781
19781
  }
19782
19782
  }
19783
19783
  function R(k) {
19784
- process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("hideWithInteractivity")), U().addEventListener("mousemove", p), td(mo, p), p(k);
19784
+ process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("hideWithInteractivity")), U().addEventListener("mousemove", p), td(mo, p), p(k);
19785
19785
  }
19786
19786
  function X() {
19787
- process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Mt(), Ft().forEach(function(k) {
19787
+ process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (Mt(), Ft().forEach(function(k) {
19788
19788
  k._tippy.unmount();
19789
19789
  }), b.parentNode && b.parentNode.removeChild(b), Zs = Zs.filter(function(k) {
19790
- return k !== y;
19791
- }), y.state.isMounted = !1, _("onHidden", [y]));
19790
+ return k !== v;
19791
+ }), v.state.isMounted = !1, _("onHidden", [v]));
19792
19792
  }
19793
19793
  function fe() {
19794
- process.env.NODE_ENV !== "production" && ln(y.state.isDestroyed, Cr("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), _e(), delete t._tippy, y.state.isDestroyed = !0, _("onDestroy", [y]));
19794
+ process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), _e(), delete t._tippy, v.state.isDestroyed = !0, _("onDestroy", [v]));
19795
19795
  }
19796
19796
  }
19797
19797
  function ii(t, e) {
@@ -19842,8 +19842,8 @@ ii.setDefaultProps({
19842
19842
  class J$ {
19843
19843
  constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
19844
19844
  this.preventHide = !1, this.shouldShow = ({ view: a, state: l, from: c, to: u }) => {
19845
- const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(c, u).length && Dl(l.selection), g = this.element.contains(document.activeElement);
19846
- return !(!(a.hasFocus() || g) || h || p || !this.editor.isEditable);
19845
+ const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(c, u).length && Dl(l.selection), m = this.element.contains(document.activeElement);
19846
+ return !(!(a.hasFocus() || m) || h || p || !this.editor.isEditable);
19847
19847
  }, this.mousedownHandler = () => {
19848
19848
  this.preventHide = !0;
19849
19849
  }, this.dragstartHandler = () => {
@@ -19866,18 +19866,18 @@ class J$ {
19866
19866
  }, this.updateDelay));
19867
19867
  }, this.updateHandler = (a, l, c, u) => {
19868
19868
  var d, f, h;
19869
- const { state: p, composing: g } = a, { selection: m } = p;
19870
- if (g || !l && !c)
19869
+ const { state: p, composing: m } = a, { selection: g } = p;
19870
+ if (m || !l && !c)
19871
19871
  return;
19872
19872
  this.createTooltip();
19873
- const { ranges: S } = m, $ = Math.min(...S.map((b) => b.$from.pos)), y = Math.max(...S.map((b) => b.$to.pos));
19873
+ const { ranges: S } = g, $ = Math.min(...S.map((b) => b.$from.pos)), v = Math.max(...S.map((b) => b.$to.pos));
19874
19874
  if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
19875
19875
  editor: this.editor,
19876
19876
  view: a,
19877
19877
  state: p,
19878
19878
  oldState: u,
19879
19879
  from: $,
19880
- to: y
19880
+ to: v
19881
19881
  }))) {
19882
19882
  this.hide();
19883
19883
  return;
@@ -19890,7 +19890,7 @@ class J$ {
19890
19890
  if (E && (b = E.firstChild), b)
19891
19891
  return b.getBoundingClientRect();
19892
19892
  }
19893
- return cp(a, $, y);
19893
+ return cp(a, $, v);
19894
19894
  })
19895
19895
  }), this.show();
19896
19896
  }, this.editor = e, this.element = n, this.view = r, this.updateDelay = o, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
@@ -21225,8 +21225,8 @@ class Vt {
21225
21225
  s = Math.min(s, h);
21226
21226
  let p = o.maps[h];
21227
21227
  if (f.step) {
21228
- let g = e.steps[h].invert(e.docs[h]), m = f.selection && f.selection.map(o.slice(l + 1, h));
21229
- m && a++, r.push(new qt(p, g, m));
21228
+ let m = e.steps[h].invert(e.docs[h]), g = f.selection && f.selection.map(o.slice(l + 1, h));
21229
+ g && a++, r.push(new qt(p, m, g));
21230
21230
  } else
21231
21231
  r.push(new qt(p));
21232
21232
  }, i);
@@ -21758,9 +21758,9 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
21758
21758
  }), Q7 = He.create({
21759
21759
  name: "starterKit",
21760
21760
  addExtensions() {
21761
- var t, e, n, r, i, o, s, a, l, c, u, d, f, h, p, g, m, v;
21761
+ var t, e, n, r, i, o, s, a, l, c, u, d, f, h, p, m, g, y;
21762
21762
  const S = [];
21763
- return this.options.blockquote !== !1 && S.push(t7.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && S.push(s7.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && S.push(l7.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && S.push(d7.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && S.push(p7.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && S.push(m7.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && S.push(v7.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && S.push(M7.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && S.push(T7.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && S.push($7.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && S.push(R7.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && S.push(_7.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && S.push(W7.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && S.push(q7.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && S.push(K7.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && S.push(Y7.configure((g = this.options) === null || g === void 0 ? void 0 : g.paragraph)), this.options.strike !== !1 && S.push(Z7.configure((m = this.options) === null || m === void 0 ? void 0 : m.strike)), this.options.text !== !1 && S.push(X7.configure((v = this.options) === null || v === void 0 ? void 0 : v.text)), S;
21763
+ return this.options.blockquote !== !1 && S.push(t7.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && S.push(s7.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && S.push(l7.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && S.push(d7.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && S.push(p7.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && S.push(m7.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && S.push(v7.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && S.push(M7.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && S.push(T7.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && S.push($7.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && S.push(R7.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && S.push(_7.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && S.push(W7.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && S.push(q7.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && S.push(K7.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && S.push(Y7.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && S.push(Z7.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && S.push(X7.configure((y = this.options) === null || y === void 0 ? void 0 : y.text)), S;
21764
21764
  }
21765
21765
  }), eA = He.create({
21766
21766
  name: "placeholder",
@@ -21789,10 +21789,10 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
21789
21789
  return t.descendants((d, f) => {
21790
21790
  const h = i >= f && i <= f + d.nodeSize, p = !d.isLeaf && !d.childCount;
21791
21791
  if ((h || !this.options.showOnlyCurrent) && p) {
21792
- const g = [this.options.emptyNodeClass];
21793
- u && g.push(this.options.emptyEditorClass);
21794
- const m = xt.node(f, f + d.nodeSize, {
21795
- class: g.join(" "),
21792
+ const m = [this.options.emptyNodeClass];
21793
+ u && m.push(this.options.emptyEditorClass);
21794
+ const g = xt.node(f, f + d.nodeSize, {
21795
+ class: m.join(" "),
21796
21796
  "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
21797
21797
  editor: this.editor,
21798
21798
  node: d,
@@ -21800,7 +21800,7 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
21800
21800
  hasAnchor: h
21801
21801
  }) : this.options.placeholder
21802
21802
  });
21803
- o.push(m);
21803
+ o.push(g);
21804
21804
  }
21805
21805
  return this.options.includeChildren;
21806
21806
  }), ze.create(t, o);
@@ -22273,7 +22273,11 @@ const n4 = /* @__PURE__ */ ye(JE, [["render", t4]]), r4 = { class: "py-1 px-1 bo
22273
22273
  textAlign: Boolean,
22274
22274
  underline: Boolean,
22275
22275
  strike: Boolean,
22276
- customStyles: {},
22276
+ customStyles: {
22277
+ type: {},
22278
+ default: () => {
22279
+ }
22280
+ },
22277
22281
  color: Boolean
22278
22282
  },
22279
22283
  emits: ["update:modelValue"],
@@ -22322,73 +22326,76 @@ const n4 = /* @__PURE__ */ ye(JE, [["render", t4]]), r4 = { class: "py-1 px-1 bo
22322
22326
  }), Pe(() => n.modelValue, (p) => {
22323
22327
  p !== c.value.getHTML() && c.value.commands.setContent(p, !1);
22324
22328
  });
22325
- function u(p, g, m) {
22329
+ function u(p, m, g) {
22326
22330
  if (p === "setTextAlign") {
22327
- c.value.isActive({ textAlign: m }) ? c.value.chain().focus().unsetTextAlign().run() : c.value.chain().focus().setTextAlign(m).run();
22331
+ c.value.isActive({ textAlign: g }) ? c.value.chain().focus().unsetTextAlign().run() : c.value.chain().focus().setTextAlign(g).run();
22328
22332
  return;
22329
22333
  }
22330
- g === "chain" ? m ? c.value.chain().focus()[p](m).run() : c.value.chain().focus()[p]().run() : c.value[p]()();
22334
+ m === "chain" ? g ? c.value.chain().focus()[p](g).run() : c.value.chain().focus()[p]().run() : c.value[p]()();
22331
22335
  }
22332
- function d(p, g, m, v) {
22333
- return v ? g === "chain" ? m ? !c.value.can().chain().focus()[p](m).run() : !c.value.can().chain().focus()[p]().run() : !c.value.can()[p]().run() : !1;
22336
+ function d(p, m, g, y) {
22337
+ return y ? m === "chain" ? g ? !c.value.can().chain().focus()[p](g).run() : !c.value.can().chain().focus()[p]().run() : !c.value.can()[p]().run() : !1;
22334
22338
  }
22335
22339
  const f = () => {
22336
22340
  c.value.chain().focus().setColor(r.value).run(), i.value = !1;
22337
22341
  }, h = () => {
22338
22342
  o.value.click();
22339
22343
  };
22340
- return (p, g) => B(c) ? (x(), C("div", {
22341
- key: 0,
22342
- class: G(["pt-px relative flex flex-col rounded-sm border", s[B(pe).theme]])
22343
- }, [
22344
- T("div", r4, [
22345
- T("div", i4, [
22346
- t.color ? (x(), C("div", {
22347
- key: 0,
22348
- onClick: h,
22349
- class: "w-8 h-8 relative flex cursor-pointer items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10"
22350
- }, [
22351
- le(n4, {
22352
- class: "w-5 h-5",
22353
- style: {
22354
- // color: `${editor.getAttributes('textStyle').color}`,
22355
- }
22356
- }),
22357
- Vr(T("input", {
22358
- ref_key: "myColorPicker",
22359
- ref: o,
22360
- type: "color",
22361
- "onUpdate:modelValue": g[0] || (g[0] = (m) => r.value = m),
22362
- class: "w-0",
22363
- onInput: f
22364
- }, null, 544), [
22365
- [oa, r.value]
22366
- ])
22367
- ])) : re("", !0),
22368
- (x(!0), C($e, null, We(a.filter((m) => m.active), (m) => (x(), C("div", {
22369
- key: m.method,
22370
- class: G(["w-8 h-8 flex items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10", {
22371
- "cursor-pointer": !d(m.method, m.type, m.params, m.disableCheck),
22372
- "is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": m.label.startsWith("h") ? B(c).isActive("heading", { level: m.params.level }) : m.method === "setTextAlign" ? B(c).isActive({ textAlign: m.params }) : B(c).isActive(m.label)
22373
- }]),
22374
- onClick: (v) => u(m.method, m.type, m.params)
22375
- }, [
22376
- m.icon ? (x(), ve(ji(m.icon), {
22377
- key: 0,
22378
- class: G(["", { "w-3 h-3": m.smallIcon, "w-4 h-4": !m.smallIcon && !m.largeIcon, "w-5 h-5": m.largeIcon }])
22379
- }, null, 8, ["class"])) : (x(), C("span", s4, be(B(T0).capitalize(m.label)), 1))
22380
- ], 10, o4))), 128))
22381
- ])
22382
- ]),
22383
- T("div", {
22384
- class: "max-h-72 w-full overflow-auto px-4 py-3 rounded-b-sm",
22385
- style: un({
22386
- backgroundColor: t.customStyles.backgroundColor
22387
- })
22344
+ return (p, m) => {
22345
+ var g;
22346
+ return B(c) ? (x(), C("div", {
22347
+ key: 0,
22348
+ class: G(["pt-px relative flex flex-col rounded-sm border", s[B(pe).theme]])
22388
22349
  }, [
22389
- le(B(X$), { editor: B(c) }, null, 8, ["editor"])
22390
- ], 4)
22391
- ], 2)) : re("", !0);
22350
+ T("div", r4, [
22351
+ T("div", i4, [
22352
+ t.color ? (x(), C("div", {
22353
+ key: 0,
22354
+ onClick: h,
22355
+ class: "w-8 h-8 relative flex cursor-pointer items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10"
22356
+ }, [
22357
+ le(n4, {
22358
+ class: "w-5 h-5",
22359
+ style: {
22360
+ // color: `${editor.getAttributes('textStyle').color}`,
22361
+ }
22362
+ }),
22363
+ Vr(T("input", {
22364
+ ref_key: "myColorPicker",
22365
+ ref: o,
22366
+ type: "color",
22367
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => r.value = y),
22368
+ class: "w-0",
22369
+ onInput: f
22370
+ }, null, 544), [
22371
+ [oa, r.value]
22372
+ ])
22373
+ ])) : re("", !0),
22374
+ (x(!0), C($e, null, We(a.filter((y) => y.active), (y) => (x(), C("div", {
22375
+ key: y.method,
22376
+ class: G(["w-8 h-8 flex items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10", {
22377
+ "cursor-pointer": !d(y.method, y.type, y.params, y.disableCheck),
22378
+ "is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": y.label.startsWith("h") ? B(c).isActive("heading", { level: y.params.level }) : y.method === "setTextAlign" ? B(c).isActive({ textAlign: y.params }) : B(c).isActive(y.label)
22379
+ }]),
22380
+ onClick: (S) => u(y.method, y.type, y.params)
22381
+ }, [
22382
+ y.icon ? (x(), ve(ji(y.icon), {
22383
+ key: 0,
22384
+ class: G(["", { "w-3 h-3": y.smallIcon, "w-4 h-4": !y.smallIcon && !y.largeIcon, "w-5 h-5": y.largeIcon }])
22385
+ }, null, 8, ["class"])) : (x(), C("span", s4, be(B(T0).capitalize(y.label)), 1))
22386
+ ], 10, o4))), 128))
22387
+ ])
22388
+ ]),
22389
+ T("div", {
22390
+ class: "max-h-72 w-full overflow-auto px-4 py-3 rounded-b-sm",
22391
+ style: un({
22392
+ backgroundColor: (g = t.customStyles) == null ? void 0 : g.backgroundColor
22393
+ })
22394
+ }, [
22395
+ le(B(X$), { editor: B(c) }, null, 8, ["editor"])
22396
+ ], 4)
22397
+ ], 2)) : re("", !0);
22398
+ };
22392
22399
  }
22393
22400
  }), c4 = {}, u4 = {
22394
22401
  viewBox: "0 0 24 24",
@@ -22578,13 +22585,13 @@ var Rp = { exports: {} };
22578
22585
  (function(n, r) {
22579
22586
  t.exports = r();
22580
22587
  })(Qn, function() {
22581
- var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", p = "date", g = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(U) {
22588
+ var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(U) {
22582
22589
  var P = ["th", "st", "nd", "rd"], A = U % 100;
22583
22590
  return "[" + U + (P[(A - 20) % 10] || P[A] || P[0]) + "]";
22584
22591
  } }, $ = function(U, P, A) {
22585
22592
  var z = String(U);
22586
22593
  return !z || z.length >= P ? U : "" + Array(P + 1 - z.length).join(A) + U;
22587
- }, y = { s: $, z: function(U) {
22594
+ }, v = { s: $, z: function(U) {
22588
22595
  var P = -U.utcOffset(), A = Math.abs(P), z = Math.floor(A / 60), _ = A % 60;
22589
22596
  return (P <= 0 ? "+" : "-") + $(z, 2, "0") + ":" + $(_, 2, "0");
22590
22597
  }, m: function U(P, A) {
@@ -22618,7 +22625,7 @@ var Rp = { exports: {} };
22618
22625
  if (I(U)) return U.clone();
22619
22626
  var A = typeof P == "object" ? P : {};
22620
22627
  return A.date = U, A.args = arguments, new Y(A);
22621
- }, V = y;
22628
+ }, V = v;
22622
22629
  V.l = N, V.i = I, V.w = function(U, P) {
22623
22630
  return D(U, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
22624
22631
  };
@@ -22634,7 +22641,7 @@ var Rp = { exports: {} };
22634
22641
  if (V.u(_)) return /* @__PURE__ */ new Date();
22635
22642
  if (_ instanceof Date) return new Date(_);
22636
22643
  if (typeof _ == "string" && !/Z$/i.test(_)) {
22637
- var ie = _.match(m);
22644
+ var ie = _.match(g);
22638
22645
  if (ie) {
22639
22646
  var L = ie[2] - 1 || 0, W = (ie[7] || "0").substring(0, 3);
22640
22647
  return ee ? new Date(Date.UTC(ie[1], L, ie[3] || 1, ie[4] || 0, ie[5] || 0, ie[6] || 0, W)) : new Date(ie[1], L, ie[3] || 1, ie[4] || 0, ie[5] || 0, ie[6] || 0, W);
@@ -22648,7 +22655,7 @@ var Rp = { exports: {} };
22648
22655
  }, P.$utils = function() {
22649
22656
  return V;
22650
22657
  }, P.isValid = function() {
22651
- return this.$d.toString() !== g;
22658
+ return this.$d.toString() !== m;
22652
22659
  }, P.isSame = function(A, z) {
22653
22660
  var _ = D(A);
22654
22661
  return this.startOf(z) <= _ && _ <= this.endOf(z);
@@ -22719,7 +22726,7 @@ var Rp = { exports: {} };
22719
22726
  return this.add(-1 * A, z);
22720
22727
  }, P.format = function(A) {
22721
22728
  var z = this, _ = this.$locale();
22722
- if (!this.isValid()) return _.invalidDate || g;
22729
+ if (!this.isValid()) return _.invalidDate || m;
22723
22730
  var ee = A || "YYYY-MM-DDTHH:mm:ssZ", ie = V.z(this), L = this.$H, W = this.$m, q = this.$M, ae = _.weekdays, J = _.months, j = _.meridiem, oe = function(Te, De, _e, Ot) {
22724
22731
  return Te && (Te[De] || Te(z, ee)) || _e[De].slice(0, Ot);
22725
22732
  }, Oe = function(Te) {
@@ -22728,7 +22735,7 @@ var Rp = { exports: {} };
22728
22735
  var Ot = Te < 12 ? "AM" : "PM";
22729
22736
  return _e ? Ot.toLowerCase() : Ot;
22730
22737
  };
22731
- return ee.replace(v, function(Te, De) {
22738
+ return ee.replace(y, function(Te, De) {
22732
22739
  return De || function(_e) {
22733
22740
  switch (_e) {
22734
22741
  case "YY":
@@ -23008,19 +23015,19 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23008
23015
  if (n.range && ((W = n.modelValue) == null ? void 0 : W.length) == 2)
23009
23016
  return F(L).isSame(F(n.modelValue[0]), "day");
23010
23017
  }
23011
- function g(L) {
23018
+ function m(L) {
23012
23019
  var W;
23013
23020
  if (n.range && ((W = n.modelValue) == null ? void 0 : W.length) == 2)
23014
23021
  return F(L).isSame(F(n.modelValue[1]), "day");
23015
23022
  }
23016
- function m(L) {
23023
+ function g(L) {
23017
23024
  try {
23018
23025
  return n.minDate ? F(L).isBefore(F(n.minDate)) : !1;
23019
23026
  } catch (W) {
23020
23027
  return console.log(W), !1;
23021
23028
  }
23022
23029
  }
23023
- function v(L) {
23030
+ function y(L) {
23024
23031
  try {
23025
23032
  return n.maxDate ? F(L).isAfter(F(n.maxDate)) : !1;
23026
23033
  } catch (W) {
@@ -23033,7 +23040,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23033
23040
  function $(L) {
23034
23041
  D(L, r.value[L].add(1, "month"));
23035
23042
  }
23036
- function y(L) {
23043
+ function v(L) {
23037
23044
  D(L, r.value[L].subtract(1, "year"));
23038
23045
  }
23039
23046
  function w(L) {
@@ -23104,7 +23111,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23104
23111
  T("div", R4, [
23105
23112
  le(Cf, {
23106
23113
  class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !I(q), "hover:opacity-100": I(q) }]),
23107
- onClick: (J) => I(q) ? y(q) : null
23114
+ onClick: (J) => I(q) ? v(q) : null
23108
23115
  }, null, 8, ["class", "onClick"]),
23109
23116
  le(Of, {
23110
23117
  class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !b(q), "hover:opacity-100": b(q) }]),
@@ -23155,7 +23162,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23155
23162
  onMouseout: A
23156
23163
  }, [
23157
23164
  l(r.value[q]) > 0 ? (x(!0), C($e, { key: 0 }, We(c(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1), (J) => (x(), ve(ea, {
23158
- onClick: (j) => !v(J) && !m(J) ? s(J) : null,
23165
+ onClick: (j) => !y(J) && !g(J) ? s(J) : null,
23159
23166
  off: ""
23160
23167
  }, {
23161
23168
  default: Se(() => [
@@ -23165,14 +23172,14 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23165
23172
  }, 1032, ["onClick"]))), 256)) : re("", !0),
23166
23173
  (x(!0), C($e, null, We(a(r.value[q].clone()), (J) => (x(), ve(ea, {
23167
23174
  onMouseover: (j) => Y(J),
23168
- onClick: (j) => !v(J) && !m(J) ? s(J) : null,
23175
+ onClick: (j) => !y(J) && !g(J) ? s(J) : null,
23169
23176
  today: d(J),
23170
23177
  selected: f(J),
23171
23178
  firstDay: p(J) || U(J),
23172
- lastDay: g(J) || P(J),
23179
+ lastDay: m(J) || P(J),
23173
23180
  between: h(J),
23174
- disabled: v(J) || m(J),
23175
- off: v(J) || m(J),
23181
+ disabled: y(J) || g(J),
23182
+ off: y(J) || g(J),
23176
23183
  highlight: se(J)
23177
23184
  }, {
23178
23185
  default: Se(() => [
@@ -23181,7 +23188,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
23181
23188
  _: 2
23182
23189
  }, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
23183
23190
  ((ae = u(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1)) == null ? void 0 : ae.length) > 0 ? (x(!0), C($e, { key: 1 }, We(u(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1), (J) => (x(), ve(ea, {
23184
- onClick: (j) => !v(J) && !m(J) ? s(J) : null,
23191
+ onClick: (j) => !y(J) && !g(J) ? s(J) : null,
23185
23192
  off: ""
23186
23193
  }, {
23187
23194
  default: Se(() => [
@@ -23397,31 +23404,31 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
23397
23404
  ],
23398
23405
  setup(t, { emit: e }) {
23399
23406
  const n = t, r = e, i = te(""), o = te(""), s = te(""), a = te(null), l = te(null), c = te(null);
23400
- Pe(() => n.modelValue, (v) => {
23401
- n.range ? Array.isArray(v) && v.length === 2 ? (yearStart.value = v[0] ? F(v[0]).format("YYYY") : "", monthStart.value = v[0] ? F(v[0]).format("MM") : "", dayStart.value = v[0] ? F(v[0]).format("DD") : "", yearEnd.value = v[1] ? F(v[1]).format("YYYY") : "", monthEnd.value = v[1] ? F(v[1]).format("MM") : "", dayEnd.value = v[1] ? F(v[1]).format("DD") : "") : (yearStart.value = monthStart.value = dayStart.value = "", yearEnd.value = monthEnd.value = dayEnd.value = "") : v ? (i.value = F(v).format("YYYY"), o.value = F(v).format("MM"), s.value = F(v).format("DD")) : i.value = o.value = s.value = "";
23407
+ Pe(() => n.modelValue, (y) => {
23408
+ n.range ? Array.isArray(y) && y.length === 2 ? (yearStart.value = y[0] ? F(y[0]).format("YYYY") : "", monthStart.value = y[0] ? F(y[0]).format("MM") : "", dayStart.value = y[0] ? F(y[0]).format("DD") : "", yearEnd.value = y[1] ? F(y[1]).format("YYYY") : "", monthEnd.value = y[1] ? F(y[1]).format("MM") : "", dayEnd.value = y[1] ? F(y[1]).format("DD") : "") : (yearStart.value = monthStart.value = dayStart.value = "", yearEnd.value = monthEnd.value = dayEnd.value = "") : y ? (i.value = F(y).format("YYYY"), o.value = F(y).format("MM"), s.value = F(y).format("DD")) : i.value = o.value = s.value = "";
23402
23409
  }, { immediate: !0 });
23403
23410
  function u() {
23404
23411
  i.value.length === 4 && o.value.length === 2 && s.value.length === 2 && r("update:modelValue", `${i.value}-${o.value}-${s.value}`);
23405
23412
  }
23406
- function d(v) {
23407
- v.length === 4 && r("update:displayYear", Number(v)), u();
23413
+ function d(y) {
23414
+ y.length === 4 && r("update:displayYear", Number(y)), u();
23408
23415
  }
23409
- function f(v) {
23410
- v.length === 2 && r("update:displayMonth", Number(v) - 1), u();
23416
+ function f(y) {
23417
+ y.length === 2 && r("update:displayMonth", Number(y) - 1), u();
23411
23418
  }
23412
- function h(v) {
23413
- s.value = v, u();
23419
+ function h(y) {
23420
+ s.value = y, u();
23414
23421
  }
23415
23422
  function p() {
23416
23423
  i.value || (i.value = F().format("YYYY")), u();
23417
23424
  }
23418
- function g() {
23425
+ function m() {
23419
23426
  o.value || (o.value = F().format("MM")), u();
23420
23427
  }
23421
- function m() {
23428
+ function g() {
23422
23429
  s.value || (s.value = F().format("DD")), u();
23423
23430
  }
23424
- return (v, S) => (x(), C("div", dD, [
23431
+ return (y, S) => (x(), C("div", dD, [
23425
23432
  le(ta, {
23426
23433
  modelValue: i.value,
23427
23434
  "onUpdate:modelValue": [
@@ -23445,7 +23452,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
23445
23452
  segment: "monthOrDay",
23446
23453
  disabled: t.disabled,
23447
23454
  placeholder: "••",
23448
- onBlur: g,
23455
+ onBlur: m,
23449
23456
  ref_key: "monthRef",
23450
23457
  ref: l
23451
23458
  }, null, 8, ["modelValue", "disabled"]),
@@ -23459,7 +23466,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
23459
23466
  segment: "monthOrDay",
23460
23467
  disabled: t.disabled,
23461
23468
  placeholder: "••",
23462
- onBlur: m,
23469
+ onBlur: g,
23463
23470
  ref_key: "dayRef",
23464
23471
  ref: c
23465
23472
  }, null, 8, ["modelValue", "disabled"])
@@ -23517,11 +23524,11 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
23517
23524
  }, { immediate: !0 }), Pe(() => c.value, (f) => {
23518
23525
  var h, p;
23519
23526
  if (n.range) {
23520
- const g = f[0] && f[0].length === 10 ? F(f[0]).toDate() : null, m = f[1] && f[1].length === 10 ? F(f[1]).toDate() : null;
23521
- (!((h = n.modelValue) != null && h[0]) || n.modelValue[0] !== g || !((p = n.modelValue) != null && p[1]) || n.modelValue[1] !== m) && r("update:modelValue", [g, m]);
23527
+ const m = f[0] && f[0].length === 10 ? F(f[0]).toDate() : null, g = f[1] && f[1].length === 10 ? F(f[1]).toDate() : null;
23528
+ (!((h = n.modelValue) != null && h[0]) || n.modelValue[0] !== m || !((p = n.modelValue) != null && p[1]) || n.modelValue[1] !== g) && r("update:modelValue", [m, g]);
23522
23529
  } else if (f && f.length === 10) {
23523
- const g = F(f, "YYYY-MM-DD", !0);
23524
- g.isValid() && n.modelValue !== g.toDate() && r("update:modelValue", g.toDate());
23530
+ const m = F(f, "YYYY-MM-DD", !0);
23531
+ m.isValid() && n.modelValue !== m.toDate() && r("update:modelValue", m.toDate());
23525
23532
  }
23526
23533
  }, { deep: !0 });
23527
23534
  function u(f) {
@@ -23556,7 +23563,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
23556
23563
  t.shortcuts ? (x(), C("div", vD, [
23557
23564
  (x(!0), C($e, null, We(d, (p) => (x(), C("div", {
23558
23565
  class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
23559
- onClick: (g) => p.onClick()
23566
+ onClick: (m) => p.onClick()
23560
23567
  }, be(p.text), 9, bD))), 256))
23561
23568
  ])) : re("", !0),
23562
23569
  le(Wl, {