@dcrackel/hematournamentui 1.0.577 → 1.0.579

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.
Files changed (29) hide show
  1. package/dist/HemaTournamentUI-lib.es.js +441 -408
  2. package/dist/HemaTournamentUI-lib.umd.js +21 -21
  3. package/package.json +1 -1
  4. package/src/mocks/getFinalEventResult.js +174 -177
  5. package/src/mocks/personGetAllMock.js +2528 -224
  6. package/src/mocks/personsMock.js +2535 -50
  7. package/src/mocks/tournamentMock.js +42 -35
  8. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +1 -1
  9. package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.vue +1 -1
  10. package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.vue +2 -2
  11. package/src/stories/Organisms/Cards/Director/DirectorCard.vue +0 -1
  12. package/src/stories/Organisms/Cards/FencerFinalResultCard/FencerFinalResultCard.vue +28 -11
  13. package/src/stories/Organisms/Cards/TournamentAdminCard/TournamentAdminCard.vue +0 -1
  14. package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +6 -1
  15. package/src/stories/Organisms/ComplexInputs/ImageCropper/ImageCropper.vue +0 -2
  16. package/src/stories/Organisms/Grids/GridContainer.vue +8 -1
  17. package/src/stories/Organisms/Wizards/EditEventWizard/BasicEventInfo/BasicEventInfo.vue +6 -7
  18. package/src/stories/Organisms/Wizards/EditEventWizard/DirectEliminationPromotion/DirectEliminationPromotion.vue +7 -7
  19. package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.stories.js +44 -14
  20. package/src/stories/Organisms/Wizards/EditEventWizard/EditEventWizard.vue +9 -10
  21. package/src/stories/Organisms/Wizards/EditEventWizard/EventCustomization/EventCustomization.vue +23 -22
  22. package/src/stories/Organisms/Wizards/EditEventWizard/PoolConfiguration/PoolConfiguration.vue +4 -4
  23. package/src/stories/Templates/ClubManagement/ClubBasic/ClubBasic.vue +0 -1
  24. package/src/stories/Templates/ClubManagement/ClubManagement.vue +0 -2
  25. package/src/stories/Templates/PersonManagement/PersonManagement.vue +0 -1
  26. package/src/stories/Templates/TournamentManagement/ListEvents/ListEvents.vue +2 -5
  27. package/src/stories/Templates/TournamentManagement/TournamentManagement.vue +1 -2
  28. package/src/stories/Templates/TournamentManagement/TournamentPageOne/TournamentPageOne.vue +8 -2
  29. package/src/stories/Util/tabs.js +1 -1
@@ -1,7 +1,7 @@
1
1
  var im = Object.defineProperty;
2
2
  var sm = (n, e, t) => e in n ? im(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var be = (n, e, t) => sm(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { openBlock as m, createElementBlock as I, normalizeClass as te, withDirectives as no, createElementVNode as f, vModelText as sl, Fragment as ae, renderList as Qe, withKeys as Sd, withModifiers as at, toDisplayString as _e, reactive as ai, computed as fe, resolveComponent as w, createBlock as $, withCtx as Oe, createVNode as h, createCommentVNode as Q, normalizeStyle as Lt, Transition as ln, renderSlot as we, ref as pe, defineComponent as it, useSlots as Bo, toRef as ji, onMounted as Et, nextTick as an, onUnmounted as sA, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as qt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as as, Teleport as Am, h as li, render as cc, useAttrs as am, createTextVNode as hr, onBeforeUpdate as lm, vShow as Ms, getCurrentScope as cm, onScopeDispose as um, createStaticVNode as ls, onBeforeUnmount as AA, getCurrentInstance as dm, watchEffect as gm, shallowRef as hm, markRaw as fm, customRef as mm } from "vue";
4
+ import { openBlock as m, createElementBlock as I, normalizeClass as te, withDirectives as no, createElementVNode as f, vModelText as sl, Fragment as ae, renderList as Qe, withKeys as Sd, withModifiers as at, toDisplayString as _e, reactive as ai, computed as fe, resolveComponent as w, createBlock as $, withCtx as Oe, createVNode as h, createCommentVNode as Q, normalizeStyle as Lt, Transition as ln, renderSlot as we, ref as pe, defineComponent as it, useSlots as Bo, toRef as ji, onMounted as Et, nextTick as an, onUnmounted as AA, watch as nn, mergeProps as Bt, unref as P, isRef as lc, createSlots as qt, normalizeProps as Dt, guardReactiveProps as tn, resolveDynamicComponent as as, Teleport as Am, h as li, render as cc, useAttrs as am, createTextVNode as hr, onBeforeUpdate as lm, vShow as Ms, getCurrentScope as cm, onScopeDispose as um, createStaticVNode as ls, onBeforeUnmount as aA, getCurrentInstance as dm, watchEffect as gm, shallowRef as hm, markRaw as fm, customRef as mm } from "vue";
5
5
  const oe = (n, e) => {
6
6
  const t = n.__vccOpts || n;
7
7
  for (const [r, o] of e)
@@ -688,7 +688,7 @@ const c8 = /* @__PURE__ */ oe(Om, [["render", zm]]), Fm = {
688
688
  typeClasses: {
689
689
  primary: "flex mx-1 p-2 items-center gap-2.5 text-center rounded-md shadow border border-dropdownSelect justify-center hover:bg-tertiary",
690
690
  secondary: "px-2.5 items-center gap-2.5 text-center my-1 p-3 w-full rounded-lg flex flex-row justify-center hover:bg-primaryHighlight",
691
- tertiary: "px-2.5 py-0.5 items-center gap-2.5 rounded-md text-center justify-center border border-dropdownSelect hover:bg-dropdownSelect",
691
+ tertiary: "flex flex-row px-2.5 py-0.5 items-center gap-2.5 rounded-md text-center justify-center border border-dropdownSelect hover:bg-dropdownSelect",
692
692
  bright: "px-3 py-1 items-center gap-2.5 rounded-md text-center justify-center hover:bg-primary text-neutral",
693
693
  admin: "px-2.5 py-2 items-center rounded-md gap-2.5 text-center my-1 text-neutral hover:bg-primaryHighlight",
694
694
  adminSecondary: "px-2.5 py-1.5 my-1 rounded-md items-center gap-2.5 text-center hover:bg-bright w-full text-neutral",
@@ -1257,7 +1257,7 @@ function pp(n, e, t, r, o, i) {
1257
1257
  invalid: t.invalid,
1258
1258
  text: t.title,
1259
1259
  class: "mb-1 ml-1",
1260
- color: "primaryHighlight",
1260
+ color: "quaternary",
1261
1261
  size: "sm",
1262
1262
  weight: "normal"
1263
1263
  }, null, 8, ["invalid", "text"]),
@@ -1340,7 +1340,7 @@ function uc(n) {
1340
1340
  const e = Me(n);
1341
1341
  return e.setHours(0, 0, 0, 0), e;
1342
1342
  }
1343
- function Ls(n) {
1343
+ function Hs(n) {
1344
1344
  const e = Me(n), t = new Date(
1345
1345
  Date.UTC(
1346
1346
  e.getFullYear(),
@@ -1355,7 +1355,7 @@ function Ls(n) {
1355
1355
  return t.setUTCFullYear(e.getFullYear()), +n - +t;
1356
1356
  }
1357
1357
  function Rd(n, e) {
1358
- const t = uc(n), r = uc(e), o = +t - Ls(t), i = +r - Ls(r);
1358
+ const t = uc(n), r = uc(e), o = +t - Hs(t), i = +r - Hs(r);
1359
1359
  return Math.round((o - i) / Ip);
1360
1360
  }
1361
1361
  function wp(n) {
@@ -1509,7 +1509,7 @@ const kp = {
1509
1509
  const o = kp[n];
1510
1510
  return typeof o == "string" ? r = o : e === 1 ? r = o.one : r = o.other.replace("{{count}}", e.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
1511
1511
  };
1512
- function OA(n) {
1512
+ function TA(n) {
1513
1513
  return (e = {}) => {
1514
1514
  const t = e.width ? String(e.width) : n.defaultWidth;
1515
1515
  return n.formats[t] || n.formats[n.defaultWidth];
@@ -1531,15 +1531,15 @@ const Op = {
1531
1531
  medium: "{{date}}, {{time}}",
1532
1532
  short: "{{date}}, {{time}}"
1533
1533
  }, Pp = {
1534
- date: OA({
1534
+ date: TA({
1535
1535
  formats: Op,
1536
1536
  defaultWidth: "full"
1537
1537
  }),
1538
- time: OA({
1538
+ time: TA({
1539
1539
  formats: Tp,
1540
1540
  defaultWidth: "full"
1541
1541
  }),
1542
- dateTime: OA({
1542
+ dateTime: TA({
1543
1543
  formats: Rp,
1544
1544
  defaultWidth: "full"
1545
1545
  })
@@ -2788,7 +2788,7 @@ function lt(n, e) {
2788
2788
  return ot(new RegExp("^\\d{1," + n + "}"), e);
2789
2789
  }
2790
2790
  }
2791
- function Hs(n, e) {
2791
+ function qs(n, e) {
2792
2792
  switch (n) {
2793
2793
  case 1:
2794
2794
  return ot(dt.singleDigitSigned, e);
@@ -2956,7 +2956,7 @@ class OC extends Ve {
2956
2956
  ]);
2957
2957
  }
2958
2958
  parse(t, r) {
2959
- return Hs(r === "R" ? 4 : r.length, t);
2959
+ return qs(r === "R" ? 4 : r.length, t);
2960
2960
  }
2961
2961
  set(t, r, o) {
2962
2962
  const i = Je(t, 0);
@@ -2970,7 +2970,7 @@ class TC extends Ve {
2970
2970
  be(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
2971
2971
  }
2972
2972
  parse(t, r) {
2973
- return Hs(r === "u" ? 4 : r.length, t);
2973
+ return qs(r === "u" ? 4 : r.length, t);
2974
2974
  }
2975
2975
  set(t, r, o) {
2976
2976
  return t.setFullYear(o, 0, 1), t.setHours(0, 0, 0, 0), t;
@@ -3977,7 +3977,7 @@ class AI extends Ve {
3977
3977
  set(t, r, o) {
3978
3978
  return r.timestampIsSet ? t : Je(
3979
3979
  t,
3980
- t.getTime() - Ls(t) - o
3980
+ t.getTime() - Hs(t) - o
3981
3981
  );
3982
3982
  }
3983
3983
  }
@@ -4014,7 +4014,7 @@ class aI extends Ve {
4014
4014
  set(t, r, o) {
4015
4015
  return r.timestampIsSet ? t : Je(
4016
4016
  t,
4017
- t.getTime() - Ls(t) - o
4017
+ t.getTime() - Hs(t) - o
4018
4018
  );
4019
4019
  }
4020
4020
  }
@@ -4491,7 +4491,7 @@ function OI(n, e) {
4491
4491
  if (r >= 0 && (e ? r - 1 >= 0 : r + 1 <= t.length))
4492
4492
  return t[r + (e ? -1 : 1)];
4493
4493
  }
4494
- const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), tg = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), El = (n) => Zn(n, "dd-MM-yyyy"), TA = (n) => Array.isArray(n), qs = (n, e) => e.get(El(n)), TI = (n, e) => n ? e ? e instanceof Map ? !!qs(n, e) : e(ue(n)) : !1 : !0, Gt = (n, e, t = !1, r) => {
4494
+ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e}"]`), tg = (n, e) => new Intl.NumberFormat(e, { useGrouping: !1, style: "decimal" }).format(n), El = (n) => Zn(n, "dd-MM-yyyy"), RA = (n) => Array.isArray(n), Ys = (n, e) => e.get(El(n)), TI = (n, e) => n ? e ? e instanceof Map ? !!Ys(n, e) : e(ue(n)) : !1 : !0, Gt = (n, e, t = !1, r) => {
4495
4495
  if (n.key === et.enter || n.key === et.space)
4496
4496
  return t && n.preventDefault(), e();
4497
4497
  if (r) return r(n);
@@ -4537,10 +4537,10 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4537
4537
  }, Mr = (n, e, t, r) => {
4538
4538
  let o = n ? ue(n) : ue();
4539
4539
  return (e || e === 0) && (o = BI(o, +e)), (t || t === 0) && (o = EI(o, +t)), (r || r === 0) && (o = Wd(o, +r)), Vd(o, 0);
4540
- }, st = (n, e) => !n || !e ? !1 : Ui(Jt(n), Jt(e)), Ge = (n, e) => !n || !e ? !1 : Fo(Jt(n), Jt(e)), ut = (n, e) => !n || !e ? !1 : Xo(Jt(n), Jt(e)), aA = (n, e, t) => n != null && n[0] && n != null && n[1] ? ut(t, n[0]) && st(t, n[1]) : n != null && n[0] && e ? ut(t, n[0]) && st(t, e) || st(t, n[0]) && ut(t, e) : !1, On = (n) => {
4540
+ }, st = (n, e) => !n || !e ? !1 : Ui(Jt(n), Jt(e)), Ge = (n, e) => !n || !e ? !1 : Fo(Jt(n), Jt(e)), ut = (n, e) => !n || !e ? !1 : Xo(Jt(n), Jt(e)), lA = (n, e, t) => n != null && n[0] && n != null && n[1] ? ut(t, n[0]) && st(t, n[1]) : n != null && n[0] && e ? ut(t, n[0]) && st(t, e) || st(t, n[0]) && ut(t, e) : !1, On = (n) => {
4541
4541
  const e = Xe(new Date(n), { date: 1 });
4542
4542
  return Jt(e);
4543
- }, RA = (n, e, t) => e && (t || t === 0) ? Object.fromEntries(
4543
+ }, PA = (n, e, t) => e && (t || t === 0) ? Object.fromEntries(
4544
4544
  ["hours", "minutes", "seconds"].map((r) => r === e ? [r, t] : [r, isNaN(+n[r]) ? void 0 : +n[r]])
4545
4545
  ) : {
4546
4546
  hours: isNaN(+n.hours) ? void 0 : +n.hours,
@@ -4600,21 +4600,21 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4600
4600
  hours: +n.hours || 0,
4601
4601
  minutes: +n.minutes || 0,
4602
4602
  seconds: +n.seconds || 0
4603
- }), PA = (n, e, t, r) => {
4603
+ }), zA = (n, e, t, r) => {
4604
4604
  if (!n) return !0;
4605
4605
  if (r) {
4606
4606
  const o = t === "max" ? Ui(n, e) : Xo(n, e), i = { seconds: 0, milliseconds: 0 };
4607
4607
  return o || Fo(Xe(n, i), Xe(e, i));
4608
4608
  }
4609
4609
  return t === "max" ? n.getTime() <= e.getTime() : n.getTime() >= e.getTime();
4610
- }, zA = (n, e, t) => n ? LI(n, e) : ue(t ?? e), yc = (n, e, t, r, o) => {
4610
+ }, FA = (n, e, t) => n ? LI(n, e) : ue(t ?? e), yc = (n, e, t, r, o) => {
4611
4611
  if (Array.isArray(r)) {
4612
- const A = zA(n, r[0], e), a = zA(n, r[1], e);
4613
- return PA(r[0], A, t, !!e) && PA(r[1], a, t, !!e) && o;
4612
+ const A = FA(n, r[0], e), a = FA(n, r[1], e);
4613
+ return zA(r[0], A, t, !!e) && zA(r[1], a, t, !!e) && o;
4614
4614
  }
4615
- const i = zA(n, r, e);
4616
- return PA(r, i, t, !!e) && o;
4617
- }, FA = (n) => Xe(ue(), oo(n)), HI = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ue(t)) === e).map((t) => Ke(t)) : [], ag = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), Ql = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), lg = (n) => Zn(n, "yyyy-MM-dd"), Qi = ai({
4615
+ const i = FA(n, r, e);
4616
+ return zA(r, i, t, !!e) && o;
4617
+ }, NA = (n) => Xe(ue(), oo(n)), HI = (n, e) => n instanceof Map ? Array.from(n.values()).filter((t) => Fe(ue(t)) === e).map((t) => Ke(t)) : [], ag = (n, e, t) => typeof n == "function" ? n({ month: e, year: t }) : !!n.months.find((r) => r.month === e && r.year === t), Ql = (n, e) => typeof n == "function" ? n(e) : n.years.includes(e), lg = (n) => Zn(n, "yyyy-MM-dd"), Qi = ai({
4618
4618
  menuFocused: !1,
4619
4619
  shiftKeyInMenu: !1
4620
4620
  }), cg = () => {
@@ -4639,13 +4639,13 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4639
4639
  1: []
4640
4640
  },
4641
4641
  monthPicker: []
4642
- }), NA = pe(null), Is = pe(!1), LA = pe(!1), HA = pe(!1), qA = pe(!1), zt = pe(0), ct = pe(0), Nr = () => {
4643
- const n = fe(() => Is.value ? [...$e.selectionGrid, $e.actionRow].filter((d) => d.length) : LA.value ? [
4642
+ }), LA = pe(null), Is = pe(!1), HA = pe(!1), qA = pe(!1), YA = pe(!1), zt = pe(0), ct = pe(0), Nr = () => {
4643
+ const n = fe(() => Is.value ? [...$e.selectionGrid, $e.actionRow].filter((d) => d.length) : HA.value ? [
4644
4644
  ...$e.timePicker[0],
4645
4645
  ...$e.timePicker[1],
4646
- qA.value ? [] : [NA.value],
4646
+ YA.value ? [] : [LA.value],
4647
4647
  $e.actionRow
4648
- ].filter((d) => d.length) : HA.value ? [...$e.monthPicker, $e.actionRow] : [$e.monthYear, ...$e.calendar, $e.time, $e.actionRow].filter((d) => d.length)), e = (d) => {
4648
+ ].filter((d) => d.length) : qA.value ? [...$e.monthPicker, $e.actionRow] : [$e.monthYear, ...$e.calendar, $e.time, $e.actionRow].filter((d) => d.length)), e = (d) => {
4649
4649
  zt.value = d ? zt.value + 1 : zt.value - 1;
4650
4650
  let g = null;
4651
4651
  n.value[ct.value] && (g = n.value[ct.value][zt.value]), !g && n.value[ct.value + (d ? 1 : -1)] ? (ct.value = ct.value + (d ? 1 : -1), zt.value = d ? 0 : n.value[ct.value].length - 1) : g || (zt.value = d ? zt.value - 1 : zt.value + 1);
@@ -4673,13 +4673,13 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4673
4673
  buildMatrix: l,
4674
4674
  buildMultiLevelMatrix: c,
4675
4675
  setTimePickerBackRef: (d) => {
4676
- NA.value = d;
4676
+ LA.value = d;
4677
4677
  },
4678
4678
  setSelectionGrid: (d) => {
4679
4679
  Is.value = d, u(), d || ($e.selectionGrid = []);
4680
4680
  },
4681
4681
  setTimePicker: (d, g = !1) => {
4682
- LA.value = d, qA.value = g, u(), d || ($e.timePicker[0] = [], $e.timePicker[1] = []);
4682
+ HA.value = d, YA.value = g, u(), d || ($e.timePicker[0] = [], $e.timePicker[1] = []);
4683
4683
  },
4684
4684
  setTimePickerElements: (d, g = 0) => {
4685
4685
  $e.timePicker[g] = d;
@@ -4689,10 +4689,10 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4689
4689
  arrowUp: A,
4690
4690
  arrowDown: a,
4691
4691
  clearArrowNav: () => {
4692
- $e.monthYear = [], $e.calendar = [], $e.time = [], $e.actionRow = [], $e.selectionGrid = [], $e.timePicker[0] = [], $e.timePicker[1] = [], Is.value = !1, LA.value = !1, qA.value = !1, HA.value = !1, u(), NA.value = null;
4692
+ $e.monthYear = [], $e.calendar = [], $e.time = [], $e.actionRow = [], $e.selectionGrid = [], $e.timePicker[0] = [], $e.timePicker[1] = [], Is.value = !1, HA.value = !1, YA.value = !1, qA.value = !1, u(), LA.value = null;
4693
4693
  },
4694
4694
  setMonthPicker: (d) => {
4695
- HA.value = d, u();
4695
+ qA.value = d, u();
4696
4696
  },
4697
4697
  refSets: $e
4698
4698
  // exposed for testing
@@ -4812,7 +4812,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4812
4812
  dateInTz: n.dateInTz ?? void 0,
4813
4813
  emitTimezone: n.emitTimezone ?? void 0,
4814
4814
  convertModel: n.convertModel ?? !0
4815
- } : { timezone: void 0, exactMatch: !1, emitTimezone: void 0 }, YA = (n, e, t) => new Map(
4815
+ } : { timezone: void 0, exactMatch: !1, emitTimezone: void 0 }, jA = (n, e, t) => new Map(
4816
4816
  n.map((r) => {
4817
4817
  const o = Cl(r, e, t);
4818
4818
  return [El(o), o];
@@ -4827,9 +4827,9 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
4827
4827
  return {
4828
4828
  minDate: Ba(n.minDate, n.timezone, n.isSpecific),
4829
4829
  maxDate: Ba(n.maxDate, n.timezone, n.isSpecific),
4830
- disabledDates: TA(n.disabledDates) ? YA(n.disabledDates, n.timezone, n.isSpecific) : n.disabledDates,
4831
- allowedDates: TA(n.allowedDates) ? YA(n.allowedDates, n.timezone, n.isSpecific) : null,
4832
- highlight: typeof n.highlight == "object" && TA((e = n.highlight) == null ? void 0 : e.dates) ? YA(n.highlight.dates, n.timezone) : n.highlight,
4830
+ disabledDates: RA(n.disabledDates) ? jA(n.disabledDates, n.timezone, n.isSpecific) : n.disabledDates,
4831
+ allowedDates: RA(n.allowedDates) ? jA(n.allowedDates, n.timezone, n.isSpecific) : null,
4832
+ highlight: typeof n.highlight == "object" && RA((e = n.highlight) == null ? void 0 : e.dates) ? jA(n.highlight.dates, n.timezone) : n.highlight,
4833
4833
  markers: eB(n.markers, n.timezone)
4834
4834
  };
4835
4835
  }, nB = (n) => typeof n == "boolean" ? { enabled: n, dragSelect: !0, limit: null } : {
@@ -5038,7 +5038,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5038
5038
  u
5039
5039
  ));
5040
5040
  return { handleMonthYearChange: a, isDisabled: c, updateMonthYear: l };
5041
- }, lA = {
5041
+ }, cA = {
5042
5042
  multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
5043
5043
  modelValue: { type: [String, Date, Array, Object, Number], default: null },
5044
5044
  modelType: { type: String, default: null },
@@ -5161,7 +5161,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5161
5161
  enableMinutes: { type: Boolean, default: !0 },
5162
5162
  ui: { type: Object, default: () => ({}) }
5163
5163
  }, Hn = {
5164
- ...lA,
5164
+ ...cA,
5165
5165
  shadow: { type: Boolean, default: !1 },
5166
5166
  flowStep: { type: Number, default: 0 },
5167
5167
  internalModelValue: { type: [Date, Array], default: null },
@@ -5193,7 +5193,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5193
5193
  } = rt(r), { isTimeValid: d, isMonthValid: g } = Lr(r), { buildMatrix: p } = Nr(), C = pe(null), B = pe(null), y = pe(!1), x = pe({}), T = pe(null), S = pe(null);
5194
5194
  Et(() => {
5195
5195
  r.arrowNavigation && p([It(C), It(B)], "actionRow"), v(), window.addEventListener("resize", v);
5196
- }), sA(() => {
5196
+ }), AA(() => {
5197
5197
  window.removeEventListener("resize", v);
5198
5198
  });
5199
5199
  const v = () => {
@@ -5315,12 +5315,12 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5315
5315
  setup(n, { expose: e, emit: t }) {
5316
5316
  const { setSelectionGrid: r, buildMultiLevelMatrix: o, setMonthPicker: i } = Nr(), A = t, a = n, { defaultedAriaLabels: l, defaultedTextInput: c, defaultedConfig: u } = rt(
5317
5317
  a
5318
- ), { hideNavigationButtons: d } = dA(), g = pe(!1), p = pe(null), C = pe(null), B = pe([]), y = pe(), x = pe(null), T = pe(0), S = pe(null);
5318
+ ), { hideNavigationButtons: d } = gA(), g = pe(!1), p = pe(null), C = pe(null), B = pe([]), y = pe(), x = pe(null), T = pe(0), S = pe(null);
5319
5319
  lm(() => {
5320
5320
  p.value = null;
5321
5321
  }), Et(() => {
5322
5322
  an().then(() => ie()), a.noOverlayFocus || G(), v(!0);
5323
- }), sA(() => v(!1));
5323
+ }), AA(() => v(!1));
5324
5324
  const v = (M) => {
5325
5325
  var R;
5326
5326
  a.arrowNavigation && ((R = a.headerRefs) != null && R.length ? i(M) : r(M));
@@ -5482,7 +5482,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5482
5482
  ], 46, lB);
5483
5483
  };
5484
5484
  }
5485
- }), cA = /* @__PURE__ */ it({
5485
+ }), uA = /* @__PURE__ */ it({
5486
5486
  __name: "InstanceWrap",
5487
5487
  props: {
5488
5488
  multiCalendars: {},
@@ -5558,7 +5558,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5558
5558
  },
5559
5559
  emits: ["toggle-year-picker", "year-select", "handle-year"],
5560
5560
  setup(n, { emit: e }) {
5561
- const t = e, r = n, { showRightIcon: o, showLeftIcon: i } = dA(), { defaultedConfig: A, defaultedMultiCalendars: a, defaultedAriaLabels: l, defaultedTransitions: c, defaultedUI: u } = rt(r), { showTransition: d, transitionName: g } = us(c), p = pe(!1), C = (x = !1, T) => {
5561
+ const t = e, r = n, { showRightIcon: o, showLeftIcon: i } = gA(), { defaultedConfig: A, defaultedMultiCalendars: a, defaultedAriaLabels: l, defaultedTransitions: c, defaultedUI: u } = rt(r), { showTransition: d, transitionName: g } = us(c), p = pe(!1), C = (x = !1, T) => {
5562
5562
  p.value = !p.value, t("toggle-year-picker", { flow: x, show: T });
5563
5563
  }, B = (x) => {
5564
5564
  p.value = !1, t("year-select", x);
@@ -5673,7 +5673,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5673
5673
  }, wl = (n, e, t) => {
5674
5674
  let r = n.value ? n.value.slice() : [];
5675
5675
  return r.length === 2 && r[1] !== null && (r = []), r.length ? st(e, r[0]) ? (r.unshift(e), t("range-start", r[0]), t("range-start", r[1])) : (r[1] = e, t("range-end", e)) : (r = [e], t("range-start", e)), r;
5676
- }, uA = (n, e, t, r) => {
5676
+ }, dA = (n, e, t, r) => {
5677
5677
  n && (n[0] && n[1] && t && e("auto-apply"), n[0] && !n[1] && r && t && e("auto-apply"));
5678
5678
  }, dg = (n) => {
5679
5679
  Array.isArray(n.value) && n.value.length <= 2 && n.range ? n.modelValue.value = n.value.map((e) => rn(ue(e), n.timezone)) : Array.isArray(n.value) || (n.modelValue.value = rn(ue(n.value), n.timezone));
@@ -5814,7 +5814,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5814
5814
  const _ = le();
5815
5815
  if (Array.isArray(p.value) && Array.isArray(_)) {
5816
5816
  const k = H(E, Y, 0) || H(E, Y, 1), ge = ur(On(ue()), E, C.value(Y));
5817
- return aA(p.value, T.value, ge) && !k;
5817
+ return lA(p.value, T.value, ge) && !k;
5818
5818
  }
5819
5819
  return !1;
5820
5820
  }
@@ -5833,7 +5833,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5833
5833
  }, z = (E, Y) => {
5834
5834
  const _ = X(E, Y);
5835
5835
  A.value.fixedEnd || A.value.fixedStart ? p.value = gg(_, p, e, A) : p.value ? S(_, p.value) && (p.value = wl(p, X(E, Y), e)) : p.value = [X(E, Y)], an().then(() => {
5836
- uA(p.value, e, n.autoApply, n.modelAuto);
5836
+ dA(p.value, e, n.autoApply, n.modelAuto);
5837
5837
  });
5838
5838
  }, L = (E, Y) => {
5839
5839
  vl(X(E, Y), p, d.value.limit), e("auto-apply", !0);
@@ -5927,7 +5927,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
5927
5927
  selectMonth: x,
5928
5928
  selectYear: T,
5929
5929
  handleYear: G
5930
- }), presetDate: B, toggleYearPicker: (O) => S(0, O) }), (O, U) => (m(), $(cA, {
5930
+ }), presetDate: B, toggleYearPicker: (O) => S(0, O) }), (O, U) => (m(), $(uA, {
5931
5931
  "multi-calendars": P(d).count,
5932
5932
  collapse: O.collapse,
5933
5933
  stretch: ""
@@ -6001,7 +6001,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6001
6001
  Et(() => {
6002
6002
  n.startDate && (r.value && n.focusStartDate || !r.value) && (u.value = Fe(ue(n.startDate)));
6003
6003
  });
6004
- const d = (B) => Array.isArray(r.value) ? r.value.some((y) => Fe(y) === B) : r.value ? Fe(r.value) === B : !1, g = (B) => l.value.enabled && Array.isArray(r.value) ? aA(r.value, o.value, C(B)) : !1, p = fe(() => _o(Il(n.yearRange, n.locale, n.reverseYears), (B) => {
6004
+ const d = (B) => Array.isArray(r.value) ? r.value.some((y) => Fe(y) === B) : r.value ? Fe(r.value) === B : !1, g = (B) => l.value.enabled && Array.isArray(r.value) ? lA(r.value, o.value, C(B)) : !1, p = fe(() => _o(Il(n.yearRange, n.locale, n.reverseYears), (B) => {
6005
6005
  const y = d(B.value), x = Gi(
6006
6006
  B.value,
6007
6007
  $o(c.value.minDate),
@@ -6021,7 +6021,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6021
6021
  if (e("update-month-year", { instance: 0, year: B }), A.value.enabled)
6022
6022
  return r.value ? Array.isArray(r.value) && (((y = r.value) == null ? void 0 : y.map((x) => Fe(x))).includes(B) ? r.value = r.value.filter((x) => Fe(x) !== B) : r.value.push(Wn(Jt(ue()), B))) : r.value = [Wn(Jt(Ki(ue())), B)], e("auto-apply", !0);
6023
6023
  l.value.enabled ? (r.value = wl(r, C(B), e), an().then(() => {
6024
- uA(r.value, e, n.autoApply, n.modelAuto);
6024
+ dA(r.value, e, n.autoApply, n.modelAuto);
6025
6025
  })) : (r.value = C(B), e("auto-apply"));
6026
6026
  }
6027
6027
  };
@@ -6166,8 +6166,8 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6166
6166
  J.push({ value: o.is24 ? de : Ae(de, D), text: de < 10 ? `0${de}` : `${de}` });
6167
6167
  return D === "hours" && !o.is24 && J.unshift({ value: B.value === "PM" ? 12 : 0, text: "12" }), _o(J, (de) => ({ active: !1, disabled: c.value.times[D].includes(de.value) || !M(de.value, D) || X(D, de.value) || O(D, de.value) }));
6168
6168
  }, L = (D) => D >= 0 ? D : 59, W = (D) => D >= 0 ? D : 23, M = (D, se) => {
6169
- const me = o.minTime ? v(RA(o.minTime)) : null, ee = o.maxTime ? v(RA(o.maxTime)) : null, Pe = v(
6170
- RA(
6169
+ const me = o.minTime ? v(PA(o.minTime)) : null, ee = o.maxTime ? v(PA(o.maxTime)) : null, Pe = v(
6170
+ PA(
6171
6171
  b.value,
6172
6172
  se,
6173
6173
  se === "minutes" || se === "seconds" ? L(D) : W(D)
@@ -6407,7 +6407,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6407
6407
  "am-pm-change"
6408
6408
  ],
6409
6409
  setup(n, { expose: e, emit: t }) {
6410
- const r = t, o = n, { buildMatrix: i, setTimePicker: A } = Nr(), a = Bo(), { defaultedTransitions: l, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: g } = rt(o), { transitionName: p, showTransition: C } = us(l), { hideNavigationButtons: B } = dA(), y = pe(null), x = pe(null), T = pe([]), S = pe(null), v = pe(!1);
6410
+ const r = t, o = n, { buildMatrix: i, setTimePicker: A } = Nr(), a = Bo(), { defaultedTransitions: l, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: g } = rt(o), { transitionName: p, showTransition: C } = us(l), { hideNavigationButtons: B } = gA(), y = pe(null), x = pe(null), T = pe([]), S = pe(null), v = pe(!1);
6411
6411
  Et(() => {
6412
6412
  r("mount"), !o.timePicker && o.arrowNavigation ? i([It(y.value)], "time") : A(!0, o.timePicker);
6413
6413
  });
@@ -6712,7 +6712,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6712
6712
  }), toggleTimePicker: (p, C = !1, B = "") => {
6713
6713
  var y;
6714
6714
  (y = a.value) == null || y.toggleTimePicker(p, C, B);
6715
- } }), (p, C) => (m(), $(cA, {
6715
+ } }), (p, C) => (m(), $(uA, {
6716
6716
  "multi-calendars": 0,
6717
6717
  stretch: ""
6718
6718
  }, {
@@ -6773,7 +6773,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
6773
6773
  defaultedHighlight: u,
6774
6774
  propDates: d,
6775
6775
  defaultedUI: g
6776
- } = rt(o), { transitionName: p, showTransition: C } = us(i), { buildMatrix: B } = Nr(), { handleMonthYearChange: y, isDisabled: x, updateMonthYear: T } = iB(o, r), { showLeftIcon: S, showRightIcon: v } = dA(), G = pe(!1), b = pe(!1), O = pe(!1), U = pe([null, null, null, null]);
6776
+ } = rt(o), { transitionName: p, showTransition: C } = us(i), { buildMatrix: B } = Nr(), { handleMonthYearChange: y, isDisabled: x, updateMonthYear: T } = iB(o, r), { showLeftIcon: S, showRightIcon: v } = gA(), G = pe(!1), b = pe(!1), O = pe(!1), U = pe([null, null, null, null]);
6777
6777
  Et(() => {
6778
6778
  r("mount");
6779
6779
  });
@@ -7353,7 +7353,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7353
7353
  ge(q === "right" ? -1 : 1, re);
7354
7354
  }, me = (q) => {
7355
7355
  if (x.value.markers)
7356
- return qs(q.value, x.value.markers);
7356
+ return Ys(q.value, x.value.markers);
7357
7357
  }, ee = (q, re) => {
7358
7358
  switch (n.sixWeeks === !0 ? "append" : n.sixWeeks) {
7359
7359
  case "prepend":
@@ -7444,7 +7444,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7444
7444
  var q, re;
7445
7445
  o.value[0] && o.value[1] && +((q = o.value) == null ? void 0 : q[0]) > +((re = o.value) == null ? void 0 : re[1]) && (o.value.reverse(), e("range-start", o.value[0]), e("range-end", o.value[1]));
7446
7446
  }, wo = () => {
7447
- o.value.length && (o.value[0] && !o.value[1] ? Yn(0) : (Yn(0), Yn(1), r()), mi(), l.value = o.value.slice(), uA(o.value, e, n.autoApply, n.modelAuto));
7447
+ o.value.length && (o.value[0] && !o.value[1] ? Yn(0) : (Yn(0), Yn(1), r()), mi(), l.value = o.value.slice(), dA(o.value, e, n.autoApply, n.modelAuto));
7448
7448
  }, pi = (q, re = !1) => {
7449
7449
  if (v(q.value) || !q.current && n.hideOffsetDates) return e("invalid-date", q.value);
7450
7450
  if (A.value = JSON.parse(JSON.stringify(q)), !C.value.enabled) return ve(q);
@@ -7632,7 +7632,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7632
7632
  changeYear: xe,
7633
7633
  selectWeekDate: k
7634
7634
  }), (he, D) => (m(), I(ae, null, [
7635
- h(cA, {
7635
+ h(uA, {
7636
7636
  "multi-calendars": P(le).count,
7637
7637
  collapse: he.collapse
7638
7638
  }, {
@@ -7746,7 +7746,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7746
7746
  if (A.value.enabled) {
7747
7747
  if (Array.isArray(u.value)) {
7748
7748
  const N = Ge(K, u.value[0]) || Ge(K, u.value[1]);
7749
- return aA(u.value, t.value, K) && !N;
7749
+ return lA(u.value, t.value, K) && !N;
7750
7750
  }
7751
7751
  return !1;
7752
7752
  }
@@ -7770,7 +7770,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7770
7770
  }), le = (K) => {
7771
7771
  vl(K, u, c.value.limit), e("auto-apply", !0);
7772
7772
  }, Ie = (K) => {
7773
- u.value = wl(u, K, e), uA(u.value, e, n.autoApply, n.modelAuto);
7773
+ u.value = wl(u, K, e), dA(u.value, e, n.autoApply, n.modelAuto);
7774
7774
  }, H = (K) => {
7775
7775
  u.value = K, e("auto-apply");
7776
7776
  };
@@ -7835,7 +7835,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7835
7835
  selectQuarter: y,
7836
7836
  handleYearSelect: T,
7837
7837
  handleYear: S
7838
- }) }), (v, G) => (m(), $(cA, {
7838
+ }) }), (v, G) => (m(), $(uA, {
7839
7839
  "multi-calendars": P(a).count,
7840
7840
  collapse: v.collapse,
7841
7841
  stretch: ""
@@ -7921,7 +7921,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7921
7921
  },
7922
7922
  __name: "DatepickerMenu",
7923
7923
  props: {
7924
- ...lA,
7924
+ ...cA,
7925
7925
  shadow: { type: Boolean, default: !1 },
7926
7926
  openOnTop: { type: Boolean, default: !1 },
7927
7927
  internalModelValue: { type: [Date, Array], default: null },
@@ -7975,7 +7975,7 @@ const Ea = (n, e) => n == null ? void 0 : n.querySelector(`[data-dp-element="${e
7975
7975
  J.addEventListener("pointerdown", de), J.addEventListener("mousedown", de);
7976
7976
  }
7977
7977
  }
7978
- }), sA(() => {
7978
+ }), AA(() => {
7979
7979
  window.removeEventListener("resize", v);
7980
7980
  });
7981
7981
  const v = () => {
@@ -8494,7 +8494,7 @@ const dE = ({
8494
8494
  return !1;
8495
8495
  }
8496
8496
  return !1;
8497
- }, O = (E) => aA(n.value, u.value, E.value), U = () => e.modelAuto && Array.isArray(e.internalModelValue) ? !!e.internalModelValue[0] : !1, F = () => e.modelAuto ? $d(e.internalModelValue) : !0, j = (E) => {
8497
+ }, O = (E) => lA(n.value, u.value, E.value), U = () => e.modelAuto && Array.isArray(e.internalModelValue) ? !!e.internalModelValue[0] : !1, F = () => e.modelAuto ? $d(e.internalModelValue) : !0, j = (E) => {
8498
8498
  if (e.weekPicker) return !1;
8499
8499
  const Y = l.value.enabled ? !x(E) && !x(E, !1) : !0;
8500
8500
  return !c(E.value) && !S(E) && !(!E.current && e.hideOffsetDates) && Y;
@@ -8576,7 +8576,7 @@ const dE = ({
8576
8576
  }
8577
8577
  };
8578
8578
  }, Lr = (n) => {
8579
- const { defaultedFilters: e, defaultedRange: t, propDates: r, defaultedMultiDates: o } = rt(n), i = (H) => r.value.disabledDates ? typeof r.value.disabledDates == "function" ? r.value.disabledDates(ue(H)) : !!qs(H, r.value.disabledDates) : !1, A = (H) => r.value.maxDate ? n.yearPicker ? Fe(H) > Fe(r.value.maxDate) : ut(H, r.value.maxDate) : !1, a = (H) => r.value.minDate ? n.yearPicker ? Fe(H) < Fe(r.value.minDate) : st(H, r.value.minDate) : !1, l = (H) => {
8579
+ const { defaultedFilters: e, defaultedRange: t, propDates: r, defaultedMultiDates: o } = rt(n), i = (H) => r.value.disabledDates ? typeof r.value.disabledDates == "function" ? r.value.disabledDates(ue(H)) : !!Ys(H, r.value.disabledDates) : !1, A = (H) => r.value.maxDate ? n.yearPicker ? Fe(H) > Fe(r.value.maxDate) : ut(H, r.value.maxDate) : !1, a = (H) => r.value.minDate ? n.yearPicker ? Fe(H) < Fe(r.value.minDate) : st(H, r.value.minDate) : !1, l = (H) => {
8580
8580
  const K = A(H), N = a(H), X = i(H), Ae = e.value.months.map((R) => +R).includes(Ke(H)), z = n.disabledWeekDays.length ? n.disabledWeekDays.some((R) => +R === EC(H)) : !1, L = p(H), W = Fe(H), M = W < +n.yearRange[0] || W > +n.yearRange[1];
8581
8581
  return !(K || N || X || Ae || M || z || L);
8582
8582
  }, c = (H, K) => st(...wr(r.value.minDate, H, K)) || Ge(...wr(r.value.minDate, H, K)), u = (H, K) => ut(...wr(r.value.maxDate, H, K)) || Ge(...wr(r.value.maxDate, H, K)), d = (H, K, N) => {
@@ -8585,7 +8585,7 @@ const dE = ({
8585
8585
  }, g = (H, K, N, X) => {
8586
8586
  let Ae = !1;
8587
8587
  return X && (r.value.minDate || r.value.maxDate) ? r.value.minDate && r.value.maxDate ? Ae = d(H, K, N) : (r.value.minDate && c(H, K) || r.value.maxDate && u(H, K)) && (Ae = !0) : Ae = !0, Ae;
8588
- }, p = (H) => Array.isArray(r.value.allowedDates) && !r.value.allowedDates.length ? !0 : r.value.allowedDates ? !qs(H, r.value.allowedDates) : !1, C = (H) => !l(H), B = (H) => t.value.noDisabledRange ? !zd({ start: H[0], end: H[1] }).some((K) => C(K)) : !0, y = (H) => {
8588
+ }, p = (H) => Array.isArray(r.value.allowedDates) && !r.value.allowedDates.length ? !0 : r.value.allowedDates ? !Ys(H, r.value.allowedDates) : !1, C = (H) => !l(H), B = (H) => t.value.noDisabledRange ? !zd({ start: H[0], end: H[1] }).some((K) => C(K)) : !0, y = (H) => {
8589
8589
  if (H) {
8590
8590
  const K = Fe(H);
8591
8591
  return K >= +n.yearRange[0] && K <= n.yearRange[1];
@@ -8600,7 +8600,7 @@ const dE = ({
8600
8600
  if (t.value.maxRange) return L <= +t.value.maxRange;
8601
8601
  }
8602
8602
  return !0;
8603
- }, S = () => !n.enableTimePicker || n.monthPicker || n.yearPicker || n.ignoreTimeValidation, v = (H) => Array.isArray(H) ? [H[0] ? FA(H[0]) : null, H[1] ? FA(H[1]) : null] : FA(H), G = (H, K, N) => H.find(
8603
+ }, S = () => !n.enableTimePicker || n.monthPicker || n.yearPicker || n.ignoreTimeValidation, v = (H) => Array.isArray(H) ? [H[0] ? NA(H[0]) : null, H[1] ? NA(H[1]) : null] : NA(H), G = (H, K, N) => H.find(
8604
8604
  (X) => +X.hours === fr(K) && X.minutes === "*" ? !0 : +X.minutes === zr(K) && +X.hours === fr(K)
8605
8605
  ) && N, b = (H, K, N) => {
8606
8606
  const [X, Ae] = H, [z, L] = K;
@@ -8656,7 +8656,7 @@ const dE = ({
8656
8656
  isTimeValid: le,
8657
8657
  isMonthValid: Ie
8658
8658
  };
8659
- }, dA = () => {
8659
+ }, gA = () => {
8660
8660
  const n = fe(() => (r, o) => r == null ? void 0 : r.includes(o)), e = fe(() => (r, o) => r.count ? r.solo ? !0 : o === 0 : !0), t = fe(() => (r, o) => r.count ? r.solo ? !0 : o === r.count - 1 : !0);
8661
8661
  return { hideNavigationButtons: n, showLeftIcon: e, showRightIcon: t };
8662
8662
  }, mE = (n, e, t) => {
@@ -8698,7 +8698,7 @@ const dE = ({
8698
8698
  props: {
8699
8699
  isMenuOpen: { type: Boolean, default: !1 },
8700
8700
  inputValue: { type: String, default: "" },
8701
- ...lA
8701
+ ...cA
8702
8702
  },
8703
8703
  emits: [
8704
8704
  "clear",
@@ -8893,15 +8893,15 @@ const dE = ({
8893
8893
  ]);
8894
8894
  };
8895
8895
  }
8896
- }), QE = typeof window < "u" ? window : void 0, jA = () => {
8896
+ }), QE = typeof window < "u" ? window : void 0, KA = () => {
8897
8897
  }, vE = (n) => cm() ? (um(n), !0) : !1, wE = (n, e, t, r) => {
8898
- if (!n) return jA;
8899
- let o = jA;
8898
+ if (!n) return KA;
8899
+ let o = KA;
8900
8900
  const i = nn(
8901
8901
  () => P(n),
8902
8902
  (a) => {
8903
8903
  o(), a && (a.addEventListener(e, t, r), o = () => {
8904
- a.removeEventListener(e, t, r), o = jA;
8904
+ a.removeEventListener(e, t, r), o = KA;
8905
8905
  });
8906
8906
  },
8907
8907
  { immediate: !0, flush: "post" }
@@ -8921,7 +8921,7 @@ const dE = ({
8921
8921
  },
8922
8922
  __name: "VueDatePicker",
8923
8923
  props: {
8924
- ...lA
8924
+ ...cA
8925
8925
  },
8926
8926
  emits: [
8927
8927
  "update:model-value",
@@ -8966,7 +8966,7 @@ const dE = ({
8966
8966
  V == null || V.addEventListener("scroll", me), window == null || window.addEventListener("resize", ee);
8967
8967
  }
8968
8968
  }), F.value.enabled && (A.value = !0), window == null || window.addEventListener("keyup", Pe), window == null || window.addEventListener("keydown", J);
8969
- }), sA(() => {
8969
+ }), AA(() => {
8970
8970
  if (!F.value.enabled) {
8971
8971
  const V = W(p.value);
8972
8972
  V == null || V.removeEventListener("scroll", me), window == null || window.removeEventListener("resize", ee);
@@ -9285,7 +9285,7 @@ const pg = /* @__PURE__ */ oe(DE, [["render", SE], ["__scopeId", "data-v-364ebbd
9285
9285
  default: 0
9286
9286
  }
9287
9287
  }
9288
- }, ME = { class: "hidden md:flex flex-col w-full" }, OE = { class: "flex justify-center" }, TE = { class: "flex justify-center w-full" }, RE = { class: "w-[11.5rem] flex justify-center" };
9288
+ }, ME = { class: "hidden md:flex flex-col w-full" }, OE = { class: "flex justify-center" }, TE = { class: "flex justify-center w-full" }, RE = { class: "w-[8.9rem] flex justify-center" };
9289
9289
  function PE(n, e, t, r, o, i) {
9290
9290
  const A = w("BaseIcon"), a = w("BaseText");
9291
9291
  return m(), I("section", ME, [
@@ -9305,7 +9305,7 @@ function PE(n, e, t, r, o, i) {
9305
9305
  ], 2),
9306
9306
  c < t.steps.length - 1 ? (m(), I("div", {
9307
9307
  key: 0,
9308
- class: te(["flex-grow h-1 mx-2 w-28", c < t.selected ? "text-toggleBackground" : "text-dropdownSelect"]),
9308
+ class: te(["flex-grow h-1 mx-2 w-20", c < t.selected ? "text-toggleBackground" : "text-dropdownSelect"]),
9309
9309
  style: { "border-bottom": "4px solid" }
9310
9310
  }, null, 2)) : Q("", !0)
9311
9311
  ]))), 128))
@@ -9362,12 +9362,12 @@ const di = /* @__PURE__ */ oe(kE, [["render", PE]]), zE = {
9362
9362
  computed: {
9363
9363
  selectedWeapon() {
9364
9364
  const n = this.weapons.find((e) => e.Id === this.eventConfig.WeaponId);
9365
- return n ? n.Name : "Select Weapon";
9365
+ return n ? n.Name : { text: "Longsword", link: 1 };
9366
9366
  }
9367
9367
  },
9368
9368
  methods: {
9369
9369
  handleEventNameChange(n) {
9370
- console.log("value", n), this.$emit("update", { EventName: n });
9370
+ this.$emit("update", { EventName: n });
9371
9371
  },
9372
9372
  handleDateUpdate(n) {
9373
9373
  this.$emit("update", { Date: n });
@@ -9420,12 +9420,12 @@ function WE(n, e, t, r, o, i) {
9420
9420
  f("div", qE, [
9421
9421
  h(a, {
9422
9422
  color: "quaternary",
9423
- size: "xs",
9423
+ size: "sm",
9424
9424
  text: "BASIC INFORMATION",
9425
9425
  class: "border-b mb-5"
9426
9426
  }),
9427
9427
  h(l, {
9428
- inputValue: t.eventConfig.EventName,
9428
+ inputValue: t.eventConfig.EventName || "",
9429
9429
  invalid: t.validation.EventName.invalid,
9430
9430
  placeholder: "Enter Event Name",
9431
9431
  title: t.validation.EventName.invalid ? `Event Name - ${t.validation.EventName.message}` : "Event Name",
@@ -9485,7 +9485,7 @@ function WE(n, e, t, r, o, i) {
9485
9485
  ]),
9486
9486
  f("div", GE, [
9487
9487
  h(l, {
9488
- inputValue: t.eventConfig.NumberOfRings,
9488
+ inputValue: t.eventConfig.NumberOfRings || 2,
9489
9489
  invalid: t.validation.NumberOfRings,
9490
9490
  placeholder: "Enter Number of Rings",
9491
9491
  title: "Number of Rings",
@@ -9494,7 +9494,7 @@ function WE(n, e, t, r, o, i) {
9494
9494
  ]),
9495
9495
  f("div", JE, [
9496
9496
  h(l, {
9497
- inputValue: t.eventConfig.CutOffNumber,
9497
+ inputValue: t.eventConfig.CutOffNumber || "",
9498
9498
  placeholder: "Unlimited",
9499
9499
  title: "Max Fencers Allowed In (blank is unlimited)",
9500
9500
  "onUpdate:value": i.handleCutOffNumber
@@ -9614,7 +9614,7 @@ const Qo = /* @__PURE__ */ oe(ZE, [["render", tQ]]), nQ = {
9614
9614
  data() {
9615
9615
  return {
9616
9616
  localEventConfig: { ...this.eventConfig },
9617
- selectedItem: "M2 - MeyerSquared"
9617
+ selectedItem: { text: "M2 - MeyerSquared", link: "M2" }
9618
9618
  };
9619
9619
  },
9620
9620
  mounted() {
@@ -9659,6 +9659,7 @@ const Qo = /* @__PURE__ */ oe(ZE, [["render", tQ]]), nQ = {
9659
9659
  }
9660
9660
  }, rQ = { class: "flex flex-col h-full pb-4" }, oQ = { class: "w-full flex justify-center grow" }, iQ = { class: "w-full flex flex-row justify-center my-4 grow" }, sQ = { class: "w-full flex flex-col mb-3 ml-1 grow" }, AQ = { class: "grow" }, aQ = { class: "mb-4 mt-8" }, lQ = { class: "mb-4" }, cQ = { class: "grow" }, uQ = { class: "mb-4 mt-8" }, dQ = { class: "mb-2 flex" }, gQ = { class: "mt-1 h-10 w-52" }, hQ = { class: "mb-2 flex" }, fQ = { class: "mt-1 h-10 w-52" }, mQ = { class: "mb-2 flex" }, pQ = { class: "mt-1 h-10 w-52" }, CQ = { class: "flex flex-row justify-center h-12 mt-10" };
9661
9661
  function IQ(n, e, t, r, o, i) {
9662
+ var g;
9662
9663
  const A = w("StepIndicator"), a = w("BaseText"), l = w("DropDownMenu"), c = w("Toggle"), u = w("TitledInput"), d = w("BaseButton");
9663
9664
  return m(), I("div", rQ, [
9664
9665
  f("div", oQ, [
@@ -9689,7 +9690,7 @@ function IQ(n, e, t, r, o, i) {
9689
9690
  f("div", aQ, [
9690
9691
  h(a, {
9691
9692
  color: "quaternary",
9692
- size: "xs",
9693
+ size: "sm",
9693
9694
  text: "POOL SEEDING",
9694
9695
  class: "border-b mb-5"
9695
9696
  })
@@ -9705,7 +9706,7 @@ function IQ(n, e, t, r, o, i) {
9705
9706
  "data-testid": "text-start-date"
9706
9707
  }, null, 8, ["invalid"]),
9707
9708
  h(l, {
9708
- label: o.localEventConfig.seedWith,
9709
+ label: ((g = o.localEventConfig.seedWith) == null ? void 0 : g.text) || "Select Method",
9709
9710
  items: t.seedWithOptions,
9710
9711
  "selected-item": o.localEventConfig.seedWith,
9711
9712
  alignEnd: !1,
@@ -9718,7 +9719,7 @@ function IQ(n, e, t, r, o, i) {
9718
9719
  f("div", uQ, [
9719
9720
  h(a, {
9720
9721
  color: "quaternary",
9721
- size: "xs",
9722
+ size: "sm",
9722
9723
  text: "POOL CONFIGURATION",
9723
9724
  class: "border-b mb-5"
9724
9725
  })
@@ -10136,7 +10137,7 @@ const JQ = /* @__PURE__ */ oe(bQ, [["render", GQ]]), VQ = {
10136
10137
  this.selectedItem = n, n.text === "Top Percent" && (this.eventConfig.DEPromotionTypes = "Percent", this.eventConfig.DEPromotionAmount = "100%"), n.text === "Top Count" && (this.eventConfig.DEPromotionTypes = "Count", this.eventConfig.DEPromotionAmount = "16"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromotionTypes = "Top", this.eventConfig.DEPromotionAmount = "2"), this.$emit("update:DEPromotionType", n);
10137
10138
  }
10138
10139
  }
10139
- }, WQ = { class: "flex flex-col h-full pb-4" }, XQ = { class: "w-full flex justify-center grow" }, ZQ = { class: "w-full flex flex-row justify-center my-4 grow" }, _Q = { class: "w-full flex mb-3 ml-1 grow" }, $Q = { class: "grow" }, ev = { class: "mb-4 mt-8" }, tv = { class: "mb-4 grow" }, nv = { class: "mb-2 flex flex-col" }, rv = { class: "grow" }, ov = { class: "mb-4 mt-8" }, iv = { class: "pb-20" }, sv = { class: "flex flex-row justify-center h-12 mt-4" };
10140
+ }, WQ = { class: "flex flex-col h-full pb-4" }, XQ = { class: "w-full flex justify-center grow" }, ZQ = { class: "w-full flex flex-row justify-center my-4 grow" }, _Q = { class: "w-full flex mb-3 ml-1 grow" }, $Q = { class: "grow" }, ev = { class: "mt-8" }, tv = { class: "mt-1 mb-4 grow" }, nv = { class: "mb-2 flex flex-col" }, rv = { class: "grow" }, ov = { class: "mt-8" }, iv = { class: "pb-20 -mt-3" }, sv = { class: "flex flex-row justify-center h-12 mt-4" };
10140
10141
  function Av(n, e, t, r, o, i) {
10141
10142
  const A = w("StepIndicator"), a = w("BaseText"), l = w("DropDownMenu"), c = w("TitledInput"), u = w("MultiSelect"), d = w("BaseButton");
10142
10143
  return m(), I("div", WQ, [
@@ -10168,9 +10169,9 @@ function Av(n, e, t, r, o, i) {
10168
10169
  f("div", ev, [
10169
10170
  h(a, {
10170
10171
  color: "quaternary",
10171
- size: "xs",
10172
+ size: "sm",
10172
10173
  text: "DIRECT ELIMINATION PROMOTION CRITERIA",
10173
- class: "border-b mb-5"
10174
+ class: "border-b mt-5"
10174
10175
  })
10175
10176
  ]),
10176
10177
  f("div", tv, [
@@ -10180,7 +10181,7 @@ function Av(n, e, t, r, o, i) {
10180
10181
  text: "Choose how people are promoted from pools into the elimination bracket.",
10181
10182
  weight: "normal",
10182
10183
  "data-testid": "text-registration",
10183
- class: "mb-4"
10184
+ class: "mb-5"
10184
10185
  }),
10185
10186
  h(l, {
10186
10187
  label: "",
@@ -10213,9 +10214,9 @@ function Av(n, e, t, r, o, i) {
10213
10214
  f("div", ov, [
10214
10215
  h(a, {
10215
10216
  color: "quaternary",
10216
- size: "xs",
10217
+ size: "sm",
10217
10218
  text: "ORDER OF STATS TO DECIDE PROMOTION",
10218
- class: "border-b mb-5"
10219
+ class: "border-b mt-5"
10219
10220
  })
10220
10221
  ]),
10221
10222
  f("div", iv, [
@@ -10251,6 +10252,7 @@ function Av(n, e, t, r, o, i) {
10251
10252
  const av = /* @__PURE__ */ oe(VQ, [["render", Av]]), lv = {
10252
10253
  name: "EventCustomization",
10253
10254
  components: { BaseButton: He, StepIndicator: di, BaseText: Be, Toggle: Qo },
10255
+ emits: ["update", "update:back", "update:next"],
10254
10256
  props: {
10255
10257
  eventConfig: {
10256
10258
  type: Object,
@@ -10265,22 +10267,26 @@ const av = /* @__PURE__ */ oe(VQ, [["render", Av]]), lv = {
10265
10267
  required: !0
10266
10268
  }
10267
10269
  },
10268
- emits: ["update", "update:back", "update:next"],
10270
+ data() {
10271
+ return {
10272
+ localEventConfig: { ...this.eventConfig }
10273
+ };
10274
+ },
10269
10275
  computed: {
10270
10276
  countedUpLabel() {
10271
- return this.eventConfig.PoolScoreDirection ? "Score Counts Up From Zero to Max" : "Score Starts at Max and Counts Down to Zero";
10277
+ return this.localEventConfig.PoolScoreDirection ? "Score Counts Up From Zero to Max" : "Score Starts at Max and Counts Down to Zero";
10272
10278
  },
10273
10279
  isCountHandshotsEnabled() {
10274
- return this.eventConfig.CountHandshots === "true";
10280
+ return this.localEventConfig.CountHandshots === !0;
10275
10281
  },
10276
10282
  countingHandshotsLabel() {
10277
- return this.eventConfig.CountHandshots ? "Handshots Counter Added & Will Be Tracked" : "Handshots Are Not Counted";
10283
+ return this.localEventConfig.CountHandshots ? "Handshots Counter Added & Will Be Tracked" : "Handshots Are Not Counted";
10278
10284
  },
10279
10285
  countDoublesLabel() {
10280
- return this.eventConfig.CountDoubles ? "Double Counter Added & Will Be Tracked" : "Doubles Are Not Counted";
10286
+ return this.localEventConfig.CountDoubles ? "Double Counter Added & Will Be Tracked" : "Doubles Are Not Counted";
10281
10287
  },
10282
10288
  penaltyCardsLabel() {
10283
- return this.eventConfig.PenaltiesReset ? "Penalty Cards Reset After Bout" : "Penalty Cards Stick for Event";
10289
+ return this.localEventConfig.PenaltiesReset ? "Penalty Cards Reset After Each Bout" : "Penalty Cards Stick for the Entire Event";
10284
10290
  }
10285
10291
  },
10286
10292
  methods: {
@@ -10291,8 +10297,7 @@ const av = /* @__PURE__ */ oe(VQ, [["render", Av]]), lv = {
10291
10297
  this.$emit("update:next", this.eventConfig);
10292
10298
  },
10293
10299
  handleToggleChange(n) {
10294
- const e = this.eventConfig[n], t = e === "true" ? "false" : "true";
10295
- console.log(`Toggling ${n} from ${e} to ${t}`), this.$emit("update", { [n]: t });
10300
+ this.localEventConfig[n] = this.localEventConfig[n] !== !0, this.$emit("update", { [n]: this.localEventConfig[n] });
10296
10301
  }
10297
10302
  }
10298
10303
  }, cv = { class: "flex flex-col h-full pb-4" }, uv = { class: "w-full flex justify-center grow" }, dv = { class: "w-full flex flex-row justify-center my-4 grow" }, gv = { class: "w-full flex flex-row justify-center my-4 grow" }, hv = { class: "mb-4 grow" }, fv = { class: "mb-4 grow" }, mv = { class: "mb-4 grow" }, pv = { class: "flex flex-row justify-center h-12 mt-4" };
@@ -10327,35 +10332,41 @@ function Cv(n, e, t, r, o, i) {
10327
10332
  f("div", hv, [
10328
10333
  h(a, {
10329
10334
  color: "quaternary",
10330
- size: "xs",
10335
+ size: "sm",
10331
10336
  text: "SCORING DIRECTION",
10332
10337
  class: "border-b my-5"
10333
10338
  }),
10334
10339
  h(l, {
10335
- checked: t.eventConfig.PoolScoreDirection === "true",
10340
+ checked: o.localEventConfig.PoolScoreDirection === !0,
10336
10341
  label: i.countedUpLabel,
10337
10342
  labelLeft: !1,
10338
- "onUpdate:checked": e[0] || (e[0] = (u) => i.handleToggleChange("PoolScoreDirection", t.eventConfig.PoolScoreDirection))
10343
+ "onUpdate:checked": e[0] || (e[0] = (u) => i.handleToggleChange("PoolScoreDirection", o.localEventConfig.PoolScoreDirection))
10339
10344
  }, null, 8, ["checked", "label"])
10340
10345
  ]),
10341
10346
  f("div", fv, [
10342
10347
  h(a, {
10343
10348
  color: "quaternary",
10344
- size: "xs",
10349
+ size: "sm",
10345
10350
  text: "PENALTIES",
10346
- class: "border-b my-5"
10351
+ class: "border-b mt-5"
10352
+ }),
10353
+ h(a, {
10354
+ text: "Regardless of this setting, Directors can add a note to any fencer that will stick for the entire event.",
10355
+ size: "sm",
10356
+ color: "quaternary",
10357
+ class: "mt-1 mb-5"
10347
10358
  }),
10348
10359
  h(l, {
10349
- checked: t.eventConfig.PenaltiesReset === "true",
10360
+ checked: o.localEventConfig.PenaltiesReset === !0,
10350
10361
  label: i.penaltyCardsLabel,
10351
10362
  labelLeft: !1,
10352
- "onUpdate:checked": e[1] || (e[1] = (u) => i.handleToggleChange("PenaltiesReset", t.eventConfig.PenaltiesReset))
10363
+ "onUpdate:checked": e[1] || (e[1] = (u) => i.handleToggleChange("PenaltiesReset", o.localEventConfig.PenaltiesReset))
10353
10364
  }, null, 8, ["checked", "label"])
10354
10365
  ]),
10355
10366
  f("div", mv, [
10356
10367
  h(a, {
10357
10368
  color: "quaternary",
10358
- size: "xs",
10369
+ size: "sm",
10359
10370
  text: "EXTRA TRACKING DATA",
10360
10371
  class: "border-b my-5"
10361
10372
  }),
@@ -10366,10 +10377,10 @@ function Cv(n, e, t, r, o, i) {
10366
10377
  "onUpdate:checked": e[2] || (e[2] = (u) => i.handleToggleChange("CountHandshots"))
10367
10378
  }, null, 8, ["checked", "label"]),
10368
10379
  h(l, {
10369
- checked: t.eventConfig.CountDoubles === "true",
10380
+ checked: o.localEventConfig.CountDoubles === "true",
10370
10381
  label: i.countDoublesLabel,
10371
10382
  labelLeft: !1,
10372
- "onUpdate:checked": e[3] || (e[3] = (u) => i.handleToggleChange("CountDoubles", t.eventConfig.CountDoubles))
10383
+ "onUpdate:checked": e[3] || (e[3] = (u) => i.handleToggleChange("CountDoubles", o.localEventConfig.CountDoubles))
10373
10384
  }, null, 8, ["checked", "label"])
10374
10385
  ])
10375
10386
  ]),
@@ -10440,8 +10451,8 @@ const Iv = /* @__PURE__ */ oe(lv, [["render", Cv]]), Bv = {
10440
10451
  StartTime: this.event.startTime,
10441
10452
  NumberOfRings: this.event.NumberOfRings,
10442
10453
  WeaponId: this.event.WeaponId,
10443
- seedWith: "M2 - MeyerSquared",
10444
- CutOffNumber: 64,
10454
+ seedWith: { text: "M2 - MeyerSquared", link: "M2" },
10455
+ CutOffNumber: void 0,
10445
10456
  boutCounter: !1,
10446
10457
  boutCount: 5,
10447
10458
  poolTimer: !1,
@@ -10479,7 +10490,7 @@ const Iv = /* @__PURE__ */ oe(lv, [["render", Cv]]), Bv = {
10479
10490
  };
10480
10491
  },
10481
10492
  mounted() {
10482
- this.setInitialValues(), this.validateAll();
10493
+ this.setInitialValues(), this.eventConfig.EventId > 0 && this.validateAll();
10483
10494
  },
10484
10495
  watch: {
10485
10496
  event(n) {
@@ -10545,9 +10556,8 @@ const Iv = /* @__PURE__ */ oe(lv, [["render", Cv]]), Bv = {
10545
10556
  });
10546
10557
  },
10547
10558
  handleValueChange(n) {
10548
- this.hasClickedNext && this.validateAll();
10549
10559
  const [e, t] = Object.entries(n)[0];
10550
- e in this.eventConfig && (this.eventConfig[e] = t), this.localEvent[e] = t;
10560
+ e in this.eventConfig && (this.eventConfig[e] = t), this.localEvent[e] = t, this.hasClickedNext && this.validateAll();
10551
10561
  },
10552
10562
  handleDEPromotionType(n) {
10553
10563
  n.text === "Top Percent" && (this.eventConfig.DEPromoteBy = "Percent"), n.text === "Top Count" && (this.eventConfig.DEPromoteBy = "Count"), n.text === "Top Count of Each Pool" && (this.eventConfig.DEPromoteBy = "Top");
@@ -10555,7 +10565,7 @@ const Iv = /* @__PURE__ */ oe(lv, [["render", Cv]]), Bv = {
10555
10565
  validateAll() {
10556
10566
  let n = !0;
10557
10567
  const e = /[\/\\'"=:*<>|?&!@#$%^(){}[\]]/g;
10558
- return !this.eventConfig.EventName || this.eventConfig.EventName.trim().length < 3 ? (this.validation.EventName = {
10568
+ return !this.eventConfig.EventName || this.eventConfig.EventName.trim().length < 4 ? (this.validation.EventName = {
10559
10569
  invalid: !0,
10560
10570
  message: "Event Name must be at least 3 characters long."
10561
10571
  }, n = !1, n) : e.test(this.eventConfig.EventName) ? (this.validation.EventName = {
@@ -10600,7 +10610,7 @@ const Iv = /* @__PURE__ */ oe(lv, [["render", Cv]]), Bv = {
10600
10610
  }));
10601
10611
  },
10602
10612
  handleSubmit() {
10603
- this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), console.log(this.localEvent), this.$emit("update:submit", this.localEvent);
10613
+ this.localEvent.rules = this.convertEventConfigToRules(this.eventConfig), this.$emit("update:submit", this.localEvent);
10604
10614
  },
10605
10615
  handleCancel() {
10606
10616
  this.$emit("update:cancel");
@@ -11211,28 +11221,29 @@ const Uv = /* @__PURE__ */ oe(Fv, [["render", Kv]]), Gv = {
11211
11221
  },
11212
11222
  data() {
11213
11223
  return {
11214
- localData: this.result
11224
+ localData: this.result,
11225
+ dataSource: ""
11215
11226
  };
11216
11227
  },
11217
11228
  mounted() {
11218
- this.result && (this.localData = this.detail);
11229
+ this.setDataSource();
11219
11230
  },
11220
11231
  computed: {
11221
11232
  fullName() {
11222
- var n, e;
11223
- return ((e = (n = this.localData) == null ? void 0 : n.Person) == null ? void 0 : e.DisplayName) ?? "Unknown";
11233
+ var n, e, t;
11234
+ return ((n = this.localData) == null ? void 0 : n.DisplayName) ?? ((t = (e = this.localData) == null ? void 0 : e.Person) == null ? void 0 : t.DisplayName) ?? "Unknown";
11224
11235
  },
11225
11236
  clubName() {
11226
- var n, e, t;
11227
- return ((t = (e = (n = this.localData) == null ? void 0 : n.Person) == null ? void 0 : e.Club) == null ? void 0 : t.Name) ?? "No Club";
11237
+ var n, e, t, r, o;
11238
+ return ((e = (n = this.localData) == null ? void 0 : n.Club) == null ? void 0 : e.Name) ?? ((o = (r = (t = this.localData) == null ? void 0 : t.Person) == null ? void 0 : r.Club) == null ? void 0 : o.Name) ?? "No Club";
11228
11239
  },
11229
11240
  portraitURL() {
11230
- var n, e, t, r;
11231
- return ((r = (t = (e = (n = this.localData) == null ? void 0 : n.Person) == null ? void 0 : e.Images) == null ? void 0 : t[0]) == null ? void 0 : r.URL) ?? "";
11241
+ var n, e, t, r, o, i, A;
11242
+ return ((t = (e = (n = this.localData) == null ? void 0 : n.Images) == null ? void 0 : e[0]) == null ? void 0 : t.URL) ?? ((A = (i = (o = (r = this.localData) == null ? void 0 : r.Person) == null ? void 0 : o.Images) == null ? void 0 : i[0]) == null ? void 0 : A.URL) ?? "";
11232
11243
  },
11233
11244
  clubImageURL() {
11234
- var n, e, t, r, o;
11235
- return ((o = (r = (t = (e = (n = this.localData) == null ? void 0 : n.Person) == null ? void 0 : e.Club) == null ? void 0 : t.Images) == null ? void 0 : r[0]) == null ? void 0 : o.URL) ?? "";
11245
+ var n, e, t, r, o, i, A, a, l;
11246
+ return ((r = (t = (e = (n = this.localData) == null ? void 0 : n.Club) == null ? void 0 : e.Images) == null ? void 0 : t[0]) == null ? void 0 : r.URL) ?? ((l = (a = (A = (i = (o = this.localData) == null ? void 0 : o.Person) == null ? void 0 : i.Club) == null ? void 0 : A.Images) == null ? void 0 : a[0]) == null ? void 0 : l.URL) ?? "";
11236
11247
  },
11237
11248
  M2Rating() {
11238
11249
  var n;
@@ -11255,11 +11266,26 @@ const Uv = /* @__PURE__ */ oe(Fv, [["render", Kv]]), Gv = {
11255
11266
  return ((n = this.localData) == null ? void 0 : n.Place) ?? "";
11256
11267
  },
11257
11268
  HRrating() {
11258
- var n, e, t, r;
11259
- return ((r = (t = (e = (n = this.localData) == null ? void 0 : n.Person) == null ? void 0 : e.HEMARatings) == null ? void 0 : t[0]) == null ? void 0 : r.Rating) ?? "";
11269
+ var n, e, t, r, o, i, A;
11270
+ return ((t = (e = (n = this.localData) == null ? void 0 : n.HEMARatings) == null ? void 0 : e[0]) == null ? void 0 : t.Rating) ?? ((A = (i = (o = (r = this.localData) == null ? void 0 : r.Person) == null ? void 0 : o.HEMARatings) == null ? void 0 : i[0]) == null ? void 0 : A.Rating) ?? "";
11260
11271
  }
11261
11272
  },
11262
- methods: {}
11273
+ methods: {
11274
+ setDataSource() {
11275
+ if (Object.keys(this.detail).length > 0) {
11276
+ this.dataSource = "search", this.localData = this.detail;
11277
+ return;
11278
+ }
11279
+ if (Object.keys(this.result).length > 0) {
11280
+ this.dataSource = "finalResults", this.localData = this.result;
11281
+ return;
11282
+ }
11283
+ this.dataSource = "unknown";
11284
+ },
11285
+ handleEditClick() {
11286
+ this.dataSource === "search" && this.$emit("edit", this.localData.PersonId);
11287
+ }
11288
+ }
11263
11289
  }, Jv = { class: "mr-4 border-r border-dropdownSelect h-12 md:h-20 w-10 items-center text-center pt-3 md:pt-6" }, Vv = { class: "hidden md:flex mr-4" }, Wv = {
11264
11290
  key: 0,
11265
11291
  class: "w-14 h-14 rounded-full bg-dropdownSelect items-center justify-center"
@@ -11279,7 +11305,8 @@ const Uv = /* @__PURE__ */ oe(Fv, [["render", Kv]]), Gv = {
11279
11305
  function sw(n, e, t, r, o, i) {
11280
11306
  const A = w("BaseText"), a = w("BaseIcon");
11281
11307
  return m(), I("div", {
11282
- class: te(["flex items-center border border-dropdownSelect rounded-lg shadow-lg bg-white w-full hover:border-bright", t.detail ? "my-4 " : ""])
11308
+ class: te(["flex items-center border border-dropdownSelect rounded-lg shadow-lg bg-white w-full hover:border-bright", t.detail ? "my-4 " : ""]),
11309
+ onClick: e[0] || (e[0] = (...l) => i.handleEditClick && i.handleEditClick(...l))
11283
11310
  }, [
11284
11311
  f("div", Jv, [
11285
11312
  h(A, {
@@ -11688,7 +11715,7 @@ const ww = /* @__PURE__ */ oe(Iw, [["render", vw]]), yw = {
11688
11715
  this.selectedTimeFrame = n, this.applyFilters();
11689
11716
  },
11690
11717
  handleClick(n) {
11691
- this.$emit("update:edit", n.TournamentId);
11718
+ this.component === "TournamentAdminCard" && this.$emit("update:edit", n.TournamentId), this.component === "FencerFinalResultCard" && (console.log("edit person", n.PersonId), this.$emit("update:edit", n.PersonId));
11692
11719
  },
11693
11720
  handleListEvents(n) {
11694
11721
  this.$emit("select:listEvents", n.TournamentId);
@@ -12242,7 +12269,7 @@ function Zw() {
12242
12269
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
12243
12270
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
12244
12271
  }
12245
- var gA = typeof window < "u" && typeof window.document < "u", er = gA ? window : {}, xl = gA && er.document.documentElement ? "ontouchstart" in er.document.documentElement : !1, Dl = gA ? "PointerEvent" in er : !1, tt = "cropper", Sl = "all", bg = "crop", xg = "move", Dg = "zoom", Ur = "e", Gr = "w", Do = "s", Ir = "n", vi = "ne", wi = "nw", yi = "se", bi = "sw", ya = "".concat(tt, "-crop"), zc = "".concat(tt, "-disabled"), en = "".concat(tt, "-hidden"), Fc = "".concat(tt, "-hide"), _w = "".concat(tt, "-invisible"), Ys = "".concat(tt, "-modal"), ba = "".concat(tt, "-move"), Ji = "".concat(tt, "Action"), Bs = "".concat(tt, "Preview"), kl = "crop", Sg = "move", kg = "none", xa = "crop", Da = "cropend", Sa = "cropmove", ka = "cropstart", Nc = "dblclick", $w = xl ? "touchstart" : "mousedown", ey = xl ? "touchmove" : "mousemove", ty = xl ? "touchend touchcancel" : "mouseup", Lc = Dl ? "pointerdown" : $w, Hc = Dl ? "pointermove" : ey, qc = Dl ? "pointerup pointercancel" : ty, Yc = "ready", jc = "resize", Kc = "wheel", Ma = "zoom", Uc = "image/jpeg", ny = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, ry = /^data:/, oy = /^data:image\/jpeg;base64,/, iy = /^img|canvas$/i, Mg = 200, Og = 100, Gc = {
12272
+ var hA = typeof window < "u" && typeof window.document < "u", er = hA ? window : {}, xl = hA && er.document.documentElement ? "ontouchstart" in er.document.documentElement : !1, Dl = hA ? "PointerEvent" in er : !1, tt = "cropper", Sl = "all", bg = "crop", xg = "move", Dg = "zoom", Ur = "e", Gr = "w", Do = "s", Ir = "n", vi = "ne", wi = "nw", yi = "se", bi = "sw", ya = "".concat(tt, "-crop"), zc = "".concat(tt, "-disabled"), en = "".concat(tt, "-hidden"), Fc = "".concat(tt, "-hide"), _w = "".concat(tt, "-invisible"), js = "".concat(tt, "-modal"), ba = "".concat(tt, "-move"), Ji = "".concat(tt, "Action"), Bs = "".concat(tt, "Preview"), kl = "crop", Sg = "move", kg = "none", xa = "crop", Da = "cropend", Sa = "cropmove", ka = "cropstart", Nc = "dblclick", $w = xl ? "touchstart" : "mousedown", ey = xl ? "touchmove" : "mousemove", ty = xl ? "touchend touchcancel" : "mouseup", Lc = Dl ? "pointerdown" : $w, Hc = Dl ? "pointermove" : ey, qc = Dl ? "pointerup pointercancel" : ty, Yc = "ready", jc = "resize", Kc = "wheel", Ma = "zoom", Uc = "image/jpeg", ny = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, ry = /^data:/, oy = /^data:image\/jpeg;base64,/, iy = /^img|canvas$/i, Mg = 200, Og = 100, Gc = {
12246
12273
  // Define the view mode of the cropper
12247
12274
  viewMode: 0,
12248
12275
  // 0, 1, 2, 3
@@ -12320,7 +12347,7 @@ function Ue(n) {
12320
12347
  var Jc = function(e) {
12321
12348
  return e > 0 && e < 1 / 0;
12322
12349
  };
12323
- function KA(n) {
12350
+ function UA(n) {
12324
12351
  return typeof n > "u";
12325
12352
  }
12326
12353
  function go(n) {
@@ -12444,7 +12471,7 @@ function hy(n, e) {
12444
12471
  }
12445
12472
  var Rg = /\s\s*/, Pg = function() {
12446
12473
  var n = !1;
12447
- if (gA) {
12474
+ if (hA) {
12448
12475
  var e = !1, t = function() {
12449
12476
  }, r = Object.defineProperty({}, "once", {
12450
12477
  get: function() {
@@ -12503,10 +12530,10 @@ function zg(n) {
12503
12530
  top: e.top + (window.pageYOffset - document.documentElement.clientTop)
12504
12531
  };
12505
12532
  }
12506
- var UA = er.location, fy = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
12533
+ var GA = er.location, fy = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
12507
12534
  function Vc(n) {
12508
12535
  var e = n.match(fy);
12509
- return e !== null && (e[1] !== UA.protocol || e[2] !== UA.hostname || e[3] !== UA.port);
12536
+ return e !== null && (e[1] !== GA.protocol || e[2] !== GA.hostname || e[3] !== GA.port);
12510
12537
  }
12511
12538
  function Wc(n) {
12512
12539
  var e = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
@@ -12889,7 +12916,7 @@ var by = {
12889
12916
  }) : i[e.pointerId || 0] = Es(e), Object.keys(i).length > 1 && o.zoomable && o.zoomOnTouch ? A = Dg : A = Oa(e.target, Ji), ny.test(A) && jo(this.element, ka, {
12890
12917
  originalEvent: e,
12891
12918
  action: A
12892
- }) !== !1 && (e.preventDefault(), this.action = A, this.cropping = !1, A === bg && (this.cropping = !0, bt(this.dragBox, Ys)));
12919
+ }) !== !1 && (e.preventDefault(), this.action = A, this.cropping = !1, A === bg && (this.cropping = !0, bt(this.dragBox, js)));
12893
12920
  }
12894
12921
  },
12895
12922
  cropMove: function(e) {
@@ -12909,7 +12936,7 @@ var by = {
12909
12936
  var t = this.action, r = this.pointers;
12910
12937
  e.changedTouches ? ft(e.changedTouches, function(o) {
12911
12938
  delete r[o.identifier];
12912
- }) : delete r[e.pointerId || 0], t && (e.preventDefault(), Object.keys(r).length || (this.action = ""), this.cropping && (this.cropping = !1, Lo(this.dragBox, Ys, this.cropped && this.options.modal)), jo(this.element, Da, {
12939
+ }) : delete r[e.pointerId || 0], t && (e.preventDefault(), Object.keys(r).length || (this.action = ""), this.cropping && (this.cropping = !1, Lo(this.dragBox, js, this.cropped && this.options.modal)), jo(this.element, Da, {
12913
12940
  originalEvent: e,
12914
12941
  action: t
12915
12942
  }));
@@ -13035,7 +13062,7 @@ var by = {
13035
13062
  }, My = {
13036
13063
  // Show the crop box manually
13037
13064
  crop: function() {
13038
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, Ys), _n(this.cropBox, en), this.setCropBoxData(this.initialCropBoxData)), this;
13065
+ return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && bt(this.dragBox, js), _n(this.cropBox, en), this.setCropBoxData(this.initialCropBoxData)), this;
13039
13066
  },
13040
13067
  // Reset the image and crop box to their initial states
13041
13068
  reset: function() {
@@ -13048,7 +13075,7 @@ var by = {
13048
13075
  top: 0,
13049
13076
  width: 0,
13050
13077
  height: 0
13051
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), _n(this.dragBox, Ys), bt(this.cropBox, en)), this;
13078
+ }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), _n(this.dragBox, js), bt(this.cropBox, en)), this;
13052
13079
  },
13053
13080
  /**
13054
13081
  * Replace the image's src and rebuild the cropper
@@ -13086,7 +13113,7 @@ var by = {
13086
13113
  */
13087
13114
  move: function(e) {
13088
13115
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = this.canvasData, o = r.left, i = r.top;
13089
- return this.moveTo(KA(e) ? e : o + Number(e), KA(t) ? t : i + Number(t));
13116
+ return this.moveTo(UA(e) ? e : o + Number(e), UA(t) ? t : i + Number(t));
13090
13117
  },
13091
13118
  /**
13092
13119
  * Move the canvas to an absolute point
@@ -13330,7 +13357,7 @@ var by = {
13330
13357
  */
13331
13358
  setAspectRatio: function(e) {
13332
13359
  var t = this.options;
13333
- return !this.disabled && !KA(e) && (t.aspectRatio = Math.max(0, e) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
13360
+ return !this.disabled && !UA(e) && (t.aspectRatio = Math.max(0, e) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
13334
13361
  },
13335
13362
  /**
13336
13363
  * Change the drag mode.
@@ -13778,7 +13805,7 @@ const jy = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAClCAYAAADS6VbkAA
13778
13805
  this.uploading = !0;
13779
13806
  },
13780
13807
  handleUploaded(n) {
13781
- this.uploading = !1, n.response.status === 200 && (this.localImageUrl = `${this.imageServer}${this.uploadImageName}.png`, console.log("Image uploaded successfully"), console.log(this.localImageUrl), this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
13808
+ this.uploading = !1, n.response.status === 200 && (this.localImageUrl = `${this.imageServer}${this.uploadImageName}.png`, this.$emit("update:url", `${this.imageServer}${this.uploadImageName}.png`));
13782
13809
  },
13783
13810
  handleCompleted() {
13784
13811
  this.message = "Upload completed.";
@@ -13821,7 +13848,7 @@ function Vy(n, e, t, r, o, i) {
13821
13848
  }, null, 8, ["modelValue", "upload-url", "cropper-options", "onUploading", "onUploaded", "onCompleted", "onError"])
13822
13849
  ]);
13823
13850
  }
13824
- const hA = /* @__PURE__ */ oe(Uy, [["render", Vy]]);
13851
+ const fA = /* @__PURE__ */ oe(Uy, [["render", Vy]]);
13825
13852
  function Tt(n) {
13826
13853
  this.content = n;
13827
13854
  }
@@ -14224,11 +14251,11 @@ class Ce {
14224
14251
  }
14225
14252
  }
14226
14253
  Ce.empty = new Ce([], 0);
14227
- const GA = { index: 0, offset: 0 };
14254
+ const JA = { index: 0, offset: 0 };
14228
14255
  function Qs(n, e) {
14229
- return GA.index = n, GA.offset = e, GA;
14256
+ return JA.index = n, JA.offset = e, JA;
14230
14257
  }
14231
- function js(n, e) {
14258
+ function Ks(n, e) {
14232
14259
  if (n === e)
14233
14260
  return !0;
14234
14261
  if (!(n && typeof n == "object") || !(e && typeof e == "object"))
@@ -14240,11 +14267,11 @@ function js(n, e) {
14240
14267
  if (n.length != e.length)
14241
14268
  return !1;
14242
14269
  for (let r = 0; r < n.length; r++)
14243
- if (!js(n[r], e[r]))
14270
+ if (!Ks(n[r], e[r]))
14244
14271
  return !1;
14245
14272
  } else {
14246
14273
  for (let r in n)
14247
- if (!(r in e) || !js(n[r], e[r]))
14274
+ if (!(r in e) || !Ks(n[r], e[r]))
14248
14275
  return !1;
14249
14276
  for (let r in e)
14250
14277
  if (!(r in n))
@@ -14306,7 +14333,7 @@ let Ze = class Ta {
14306
14333
  another mark.
14307
14334
  */
14308
14335
  eq(e) {
14309
- return this == e || this.type == e.type && js(this.attrs, e.attrs);
14336
+ return this == e || this.type == e.type && Ks(this.attrs, e.attrs);
14310
14337
  }
14311
14338
  /**
14312
14339
  Convert this mark to a JSON-serializeable representation.
@@ -14358,7 +14385,7 @@ let Ze = class Ta {
14358
14385
  }
14359
14386
  };
14360
14387
  Ze.none = [];
14361
- class Ks extends Error {
14388
+ class Us extends Error {
14362
14389
  }
14363
14390
  class ye {
14364
14391
  /**
@@ -14461,9 +14488,9 @@ function jg(n, e, t, r) {
14461
14488
  }
14462
14489
  function Wy(n, e, t) {
14463
14490
  if (t.openStart > n.depth)
14464
- throw new Ks("Inserted content deeper than insertion position");
14491
+ throw new Us("Inserted content deeper than insertion position");
14465
14492
  if (n.depth - t.openStart != e.depth - t.openEnd)
14466
- throw new Ks("Inconsistent open depths");
14493
+ throw new Us("Inconsistent open depths");
14467
14494
  return Kg(n, e, t, 0);
14468
14495
  }
14469
14496
  function Kg(n, e, t, r) {
@@ -14479,11 +14506,11 @@ function Kg(n, e, t, r) {
14479
14506
  let { start: A, end: a } = Xy(t, n);
14480
14507
  return so(i, Gg(n, A, a, e, r));
14481
14508
  }
14482
- else return so(i, Us(n, e, r));
14509
+ else return so(i, Gs(n, e, r));
14483
14510
  }
14484
14511
  function Ug(n, e) {
14485
14512
  if (!e.type.compatibleContent(n.type))
14486
- throw new Ks("Cannot join " + e.type.name + " onto " + n.type.name);
14513
+ throw new Us("Cannot join " + e.type.name + " onto " + n.type.name);
14487
14514
  }
14488
14515
  function Ra(n, e, t) {
14489
14516
  let r = n.node(t);
@@ -14505,13 +14532,13 @@ function so(n, e) {
14505
14532
  }
14506
14533
  function Gg(n, e, t, r, o) {
14507
14534
  let i = n.depth > o && Ra(n, e, o + 1), A = r.depth > o && Ra(t, r, o + 1), a = [];
14508
- return zi(null, n, o, a), i && A && e.index(o) == t.index(o) ? (Ug(i, A), io(so(i, Gg(n, e, t, r, o + 1)), a)) : (i && io(so(i, Us(n, e, o + 1)), a), zi(e, t, o, a), A && io(so(A, Us(t, r, o + 1)), a)), zi(r, null, o, a), new Ce(a);
14535
+ return zi(null, n, o, a), i && A && e.index(o) == t.index(o) ? (Ug(i, A), io(so(i, Gg(n, e, t, r, o + 1)), a)) : (i && io(so(i, Gs(n, e, o + 1)), a), zi(e, t, o, a), A && io(so(A, Gs(t, r, o + 1)), a)), zi(r, null, o, a), new Ce(a);
14509
14536
  }
14510
- function Us(n, e, t) {
14537
+ function Gs(n, e, t) {
14511
14538
  let r = [];
14512
14539
  if (zi(null, n, t, r), n.depth > t) {
14513
14540
  let o = Ra(n, e, t + 1);
14514
- io(so(o, Us(n, e, t + 1)), r);
14541
+ io(so(o, Gs(n, e, t + 1)), r);
14515
14542
  }
14516
14543
  return zi(e, null, t, r), new Ce(r);
14517
14544
  }
@@ -14709,7 +14736,7 @@ class Wi {
14709
14736
  return e.blockRange(this);
14710
14737
  for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
14711
14738
  if (e.pos <= this.end(r) && (!t || t(this.node(r))))
14712
- return new Gs(this, e, r);
14739
+ return new Js(this, e, r);
14713
14740
  return null;
14714
14741
  }
14715
14742
  /**
@@ -14777,7 +14804,7 @@ class Zy {
14777
14804
  }
14778
14805
  }
14779
14806
  const _y = 12, Zc = /* @__PURE__ */ new WeakMap();
14780
- class Gs {
14807
+ class Js {
14781
14808
  /**
14782
14809
  Construct a node range. `$from` and `$to` should point into the
14783
14810
  same node until at least the given `depth`, since a node range
@@ -14930,7 +14957,7 @@ let Ao = class Pa {
14930
14957
  attributes, and marks.
14931
14958
  */
14932
14959
  hasMarkup(e, t, r) {
14933
- return this.type == e && js(this.attrs, t || e.defaultAttrs || $y) && Ze.sameSet(this.marks, r || Ze.none);
14960
+ return this.type == e && Ks(this.attrs, t || e.defaultAttrs || $y) && Ze.sameSet(this.marks, r || Ze.none);
14934
14961
  }
14935
14962
  /**
14936
14963
  Create a new node with the same markup as this node, containing
@@ -15182,7 +15209,7 @@ let Ao = class Pa {
15182
15209
  }
15183
15210
  };
15184
15211
  Ao.prototype.text = void 0;
15185
- class Js extends Ao {
15212
+ class Vs extends Ao {
15186
15213
  /**
15187
15214
  @internal
15188
15215
  */
@@ -15204,10 +15231,10 @@ class Js extends Ao {
15204
15231
  return this.text.length;
15205
15232
  }
15206
15233
  mark(e) {
15207
- return e == this.marks ? this : new Js(this.type, this.attrs, this.text, e);
15234
+ return e == this.marks ? this : new Vs(this.type, this.attrs, this.text, e);
15208
15235
  }
15209
15236
  withText(e) {
15210
- return e == this.text ? this : new Js(this.type, this.attrs, e, this.marks);
15237
+ return e == this.text ? this : new Vs(this.type, this.attrs, e, this.marks);
15211
15238
  }
15212
15239
  cut(e = 0, t = this.text.length) {
15213
15240
  return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
@@ -15797,7 +15824,7 @@ class cb {
15797
15824
  return !this.hasDefault;
15798
15825
  }
15799
15826
  }
15800
- class fA {
15827
+ class mA {
15801
15828
  /**
15802
15829
  @internal
15803
15830
  */
@@ -15819,7 +15846,7 @@ class fA {
15819
15846
  */
15820
15847
  static compile(e, t) {
15821
15848
  let r = /* @__PURE__ */ Object.create(null), o = 0;
15822
- return e.forEach((i, A) => r[i] = new fA(i, o++, t, A)), r;
15849
+ return e.forEach((i, A) => r[i] = new mA(i, o++, t, A)), r;
15823
15850
  }
15824
15851
  /**
15825
15852
  When there is a mark of this type in the given set, a new set
@@ -15861,7 +15888,7 @@ class th {
15861
15888
  let t = this.spec = {};
15862
15889
  for (let o in e)
15863
15890
  t[o] = e[o];
15864
- t.nodes = Tt.from(e.nodes), t.marks = Tt.from(e.marks || {}), this.nodes = eu.compile(this.spec.nodes, this), this.marks = fA.compile(this.spec.marks, this);
15891
+ t.nodes = Tt.from(e.nodes), t.marks = Tt.from(e.marks || {}), this.nodes = eu.compile(this.spec.nodes, this), this.marks = mA.compile(this.spec.marks, this);
15865
15892
  let r = /* @__PURE__ */ Object.create(null);
15866
15893
  for (let o in this.nodes) {
15867
15894
  if (o in this.marks)
@@ -15903,7 +15930,7 @@ class th {
15903
15930
  */
15904
15931
  text(e, t) {
15905
15932
  let r = this.nodes.text;
15906
- return new Js(r, r.defaultAttrs, e, Ze.setFrom(t));
15933
+ return new Vs(r, r.defaultAttrs, e, Ze.setFrom(t));
15907
15934
  }
15908
15935
  /**
15909
15936
  Create a mark with the given type and attributes.
@@ -16112,9 +16139,9 @@ const nh = {
16112
16139
  script: !0,
16113
16140
  style: !0,
16114
16141
  title: !0
16115
- }, rh = { ol: !0, ul: !0 }, Vs = 1, Ws = 2, Fi = 4;
16142
+ }, rh = { ol: !0, ul: !0 }, Ws = 1, Xs = 2, Fi = 4;
16116
16143
  function nu(n, e, t) {
16117
- return e != null ? (e ? Vs : 0) | (e === "full" ? Ws : 0) : n && n.whitespace == "pre" ? Vs | Ws : t & ~Fi;
16144
+ return e != null ? (e ? Ws : 0) | (e === "full" ? Xs : 0) : n && n.whitespace == "pre" ? Ws | Xs : t & ~Fi;
16118
16145
  }
16119
16146
  class vs {
16120
16147
  constructor(e, t, r, o, i, A) {
@@ -16135,7 +16162,7 @@ class vs {
16135
16162
  return this.match.findWrapping(e.type);
16136
16163
  }
16137
16164
  finish(e) {
16138
- if (!(this.options & Vs)) {
16165
+ if (!(this.options & Ws)) {
16139
16166
  let r = this.content[this.content.length - 1], o;
16140
16167
  if (r && r.isText && (o = /[ \t\r\n\u000c]+$/.exec(r.text))) {
16141
16168
  let i = r;
@@ -16166,9 +16193,9 @@ class ru {
16166
16193
  }
16167
16194
  addTextNode(e, t) {
16168
16195
  let r = e.nodeValue, o = this.top;
16169
- if (o.options & Ws || o.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
16170
- if (o.options & Vs)
16171
- o.options & Ws ? r = r.replace(/\r\n?/g, `
16196
+ if (o.options & Xs || o.inlineContext(e) || /[^ \t\r\n\u000c]/.test(r)) {
16197
+ if (o.options & Ws)
16198
+ o.options & Xs ? r = r.replace(/\r\n?/g, `
16172
16199
  `) : r = r.replace(/\r?\n|\r/g, " ");
16173
16200
  else if (r = r.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(r) && this.open == this.nodes.length - 1) {
16174
16201
  let i = o.content[o.content.length - 1], A = e.previousSibling;
@@ -16466,7 +16493,7 @@ class vo {
16466
16493
  nodes.
16467
16494
  */
16468
16495
  serializeFragment(e, t = {}, r) {
16469
- r || (r = JA(t).createDocumentFragment());
16496
+ r || (r = VA(t).createDocumentFragment());
16470
16497
  let o = r, i = [];
16471
16498
  return e.forEach((A) => {
16472
16499
  if (i.length || A.marks.length) {
@@ -16495,7 +16522,7 @@ class vo {
16495
16522
  @internal
16496
16523
  */
16497
16524
  serializeNodeInner(e, t) {
16498
- let { dom: r, contentDOM: o } = Rs(JA(t), this.nodes[e.type.name](e), null, e.attrs);
16525
+ let { dom: r, contentDOM: o } = Rs(VA(t), this.nodes[e.type.name](e), null, e.attrs);
16499
16526
  if (o) {
16500
16527
  if (e.isLeaf)
16501
16528
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -16523,7 +16550,7 @@ class vo {
16523
16550
  */
16524
16551
  serializeMark(e, t, r = {}) {
16525
16552
  let o = this.marks[e.type.name];
16526
- return o && Rs(JA(r), o(e, t), null, e.attrs);
16553
+ return o && Rs(VA(r), o(e, t), null, e.attrs);
16527
16554
  }
16528
16555
  static renderSpec(e, t, r = null, o) {
16529
16556
  return Rs(e, t, r, o);
@@ -16558,7 +16585,7 @@ function su(n) {
16558
16585
  }
16559
16586
  return e;
16560
16587
  }
16561
- function JA(n) {
16588
+ function VA(n) {
16562
16589
  return n.document || window.document;
16563
16590
  }
16564
16591
  const Au = /* @__PURE__ */ new WeakMap();
@@ -16873,7 +16900,7 @@ class Ko {
16873
16900
  return r ? e : new za(e, o, null);
16874
16901
  }
16875
16902
  }
16876
- const VA = /* @__PURE__ */ Object.create(null);
16903
+ const WA = /* @__PURE__ */ Object.create(null);
16877
16904
  class jt {
16878
16905
  /**
16879
16906
  Get the step map that represents the changes made by this step,
@@ -16898,7 +16925,7 @@ class jt {
16898
16925
  static fromJSON(e, t) {
16899
16926
  if (!t || !t.stepType)
16900
16927
  throw new RangeError("Invalid input for Step.fromJSON");
16901
- let r = VA[t.stepType];
16928
+ let r = WA[t.stepType];
16902
16929
  if (!r)
16903
16930
  throw new RangeError(`No step type ${t.stepType} defined`);
16904
16931
  return r.fromJSON(e, t);
@@ -16910,9 +16937,9 @@ class jt {
16910
16937
  that's unlikely to clash with steps from other modules.
16911
16938
  */
16912
16939
  static jsonID(e, t) {
16913
- if (e in VA)
16940
+ if (e in WA)
16914
16941
  throw new RangeError("Duplicate use of step JSON ID " + e);
16915
- return VA[e] = t, t.prototype.jsonID = e, t;
16942
+ return WA[e] = t, t.prototype.jsonID = e, t;
16916
16943
  }
16917
16944
  }
16918
16945
  class mt {
@@ -16943,7 +16970,7 @@ class mt {
16943
16970
  try {
16944
16971
  return mt.ok(e.replace(t, r, o));
16945
16972
  } catch (i) {
16946
- if (i instanceof Ks)
16973
+ if (i instanceof Us)
16947
16974
  return mt.fail(i.message);
16948
16975
  throw i;
16949
16976
  }
@@ -17259,7 +17286,7 @@ function Eb(n, e, t, r) {
17259
17286
  return;
17260
17287
  i++;
17261
17288
  let l = null;
17262
- if (r instanceof fA) {
17289
+ if (r instanceof mA) {
17263
17290
  let c = A.marks, u;
17264
17291
  for (; u = r.isInSet(c); )
17265
17292
  (l || (l = [])).push(u), c = u.removeFromSet(c);
@@ -17448,7 +17475,7 @@ function Hr(n, e) {
17448
17475
  function ch(n, e) {
17449
17476
  return !!(n && e && !n.isLeaf && n.canAppend(e));
17450
17477
  }
17451
- function mA(n, e, t = -1) {
17478
+ function pA(n, e, t = -1) {
17452
17479
  let r = n.resolve(e);
17453
17480
  for (let o = r.depth; ; o--) {
17454
17481
  let i, A, a = r.index(o);
@@ -17506,7 +17533,7 @@ function uh(n, e, t) {
17506
17533
  }
17507
17534
  return null;
17508
17535
  }
17509
- function pA(n, e, t = e, r = ye.empty) {
17536
+ function CA(n, e, t = e, r = ye.empty) {
17510
17537
  if (e == t && !r.size)
17511
17538
  return null;
17512
17539
  let o = n.resolve(e), i = n.resolve(t);
@@ -17561,7 +17588,7 @@ class Pb {
17561
17588
  for (let t = 1; t <= 2; t++)
17562
17589
  for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
17563
17590
  let o, i = null;
17564
- r ? (i = WA(this.unplaced.content, r - 1).firstChild, o = i.content) : o = this.unplaced.content;
17591
+ r ? (i = XA(this.unplaced.content, r - 1).firstChild, o = i.content) : o = this.unplaced.content;
17565
17592
  let A = o.firstChild;
17566
17593
  for (let a = this.depth; a >= 0; a--) {
17567
17594
  let { type: l, match: c } = this.frontier[a], u, d = null;
@@ -17575,11 +17602,11 @@ class Pb {
17575
17602
  }
17576
17603
  }
17577
17604
  openMore() {
17578
- let { content: e, openStart: t, openEnd: r } = this.unplaced, o = WA(e, t);
17605
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, o = XA(e, t);
17579
17606
  return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new ye(e, t + 1, Math.max(r, o.size + t >= e.size - r ? t + 1 : 0)), !0);
17580
17607
  }
17581
17608
  dropNode() {
17582
- let { content: e, openStart: t, openEnd: r } = this.unplaced, o = WA(e, t);
17609
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, o = XA(e, t);
17583
17610
  if (o.childCount <= 1 && t > 0) {
17584
17611
  let i = e.size - t <= t + o.size;
17585
17612
  this.unplaced = new ye(ki(e, t - 1, 1), t - 1, i ? t - 1 : r);
@@ -17620,7 +17647,7 @@ class Pb {
17620
17647
  if (!this.$to.parent.isTextblock)
17621
17648
  return -1;
17622
17649
  let e = this.frontier[this.depth], t;
17623
- if (!e.type.isTextblock || !XA(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
17650
+ if (!e.type.isTextblock || !ZA(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
17624
17651
  return -1;
17625
17652
  let { depth: r } = this.$to, o = this.$to.after(r);
17626
17653
  for (; r > 1 && o == this.$to.end(--r); )
@@ -17629,10 +17656,10 @@ class Pb {
17629
17656
  }
17630
17657
  findCloseLevel(e) {
17631
17658
  e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
17632
- let { match: r, type: o } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), A = XA(e, t, o, r, i);
17659
+ let { match: r, type: o } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), A = ZA(e, t, o, r, i);
17633
17660
  if (A) {
17634
17661
  for (let a = t - 1; a >= 0; a--) {
17635
- let { match: l, type: c } = this.frontier[a], u = XA(e, a, c, l, !0);
17662
+ let { match: l, type: c } = this.frontier[a], u = ZA(e, a, c, l, !0);
17636
17663
  if (!u || u.childCount)
17637
17664
  continue e;
17638
17665
  }
@@ -17668,7 +17695,7 @@ function ki(n, e, t) {
17668
17695
  function Mi(n, e, t) {
17669
17696
  return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Mi(n.lastChild.content, e - 1, t)));
17670
17697
  }
17671
- function WA(n, e) {
17698
+ function XA(n, e) {
17672
17699
  for (let t = 0; t < e; t++)
17673
17700
  n = n.firstChild.content;
17674
17701
  return n;
@@ -17679,7 +17706,7 @@ function gh(n, e, t) {
17679
17706
  let r = n.content;
17680
17707
  return e > 1 && (r = r.replaceChild(0, gh(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(Ce.empty, !0)))), n.copy(r);
17681
17708
  }
17682
- function XA(n, e, t, r, o) {
17709
+ function ZA(n, e, t, r, o) {
17683
17710
  let i = n.node(e), A = o ? n.indexAfter(e) : n.index(e);
17684
17711
  if (A == i.childCount && !t.compatibleContent(i.type))
17685
17712
  return null;
@@ -17914,7 +17941,7 @@ class qb {
17914
17941
  given `slice`.
17915
17942
  */
17916
17943
  replace(e, t = e, r = ye.empty) {
17917
- let o = pA(this.doc, e, t, r);
17944
+ let o = CA(this.doc, e, t, r);
17918
17945
  return o && this.step(o), this;
17919
17946
  }
17920
17947
  /**
@@ -18085,7 +18112,7 @@ class qb {
18085
18112
  return lh(this, e, t, r), this;
18086
18113
  }
18087
18114
  }
18088
- const ZA = /* @__PURE__ */ Object.create(null);
18115
+ const _A = /* @__PURE__ */ Object.create(null);
18089
18116
  class Le {
18090
18117
  /**
18091
18118
  Initialize a selection with the head and anchor and ranges. If no
@@ -18221,7 +18248,7 @@ class Le {
18221
18248
  static fromJSON(e, t) {
18222
18249
  if (!t || !t.type)
18223
18250
  throw new RangeError("Invalid input for Selection.fromJSON");
18224
- let r = ZA[t.type];
18251
+ let r = _A[t.type];
18225
18252
  if (!r)
18226
18253
  throw new RangeError(`No selection type ${t.type} defined`);
18227
18254
  return r.fromJSON(e, t);
@@ -18233,9 +18260,9 @@ class Le {
18233
18260
  clash with classes from other modules.
18234
18261
  */
18235
18262
  static jsonID(e, t) {
18236
- if (e in ZA)
18263
+ if (e in _A)
18237
18264
  throw new RangeError("Duplicate use of selection JSON ID " + e);
18238
- return ZA[e] = t, t.prototype.jsonID = e, t;
18265
+ return _A[e] = t, t.prototype.jsonID = e, t;
18239
18266
  }
18240
18267
  /**
18241
18268
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -18294,7 +18321,7 @@ class Ne extends Le {
18294
18321
  return e instanceof Ne && e.anchor == this.anchor && e.head == this.head;
18295
18322
  }
18296
18323
  getBookmark() {
18297
- return new CA(this.anchor, this.head);
18324
+ return new IA(this.anchor, this.head);
18298
18325
  }
18299
18326
  toJSON() {
18300
18327
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -18335,12 +18362,12 @@ class Ne extends Le {
18335
18362
  }
18336
18363
  }
18337
18364
  Le.jsonID("text", Ne);
18338
- class CA {
18365
+ class IA {
18339
18366
  constructor(e, t) {
18340
18367
  this.anchor = e, this.head = t;
18341
18368
  }
18342
18369
  map(e) {
18343
- return new CA(e.map(this.anchor), e.map(this.head));
18370
+ return new IA(e.map(this.anchor), e.map(this.head));
18344
18371
  }
18345
18372
  resolve(e) {
18346
18373
  return Ne.between(e.resolve(this.anchor), e.resolve(this.head));
@@ -18401,7 +18428,7 @@ class Rl {
18401
18428
  }
18402
18429
  map(e) {
18403
18430
  let { deleted: t, pos: r } = e.mapResult(this.anchor);
18404
- return t ? new CA(r, r) : new Rl(r);
18431
+ return t ? new IA(r, r) : new Rl(r);
18405
18432
  }
18406
18433
  resolve(e) {
18407
18434
  let t = e.resolve(this.anchor), r = t.nodeAfter;
@@ -18674,7 +18701,7 @@ const Ub = [
18674
18701
  }
18675
18702
  })
18676
18703
  ];
18677
- class _A {
18704
+ class $A {
18678
18705
  constructor(e, t) {
18679
18706
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Ub.slice(), t && t.forEach((r) => {
18680
18707
  if (this.pluginsByKey[r.key])
@@ -18775,7 +18802,7 @@ class Ho {
18775
18802
  Create a new state.
18776
18803
  */
18777
18804
  static create(e) {
18778
- let t = new _A(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ho(t);
18805
+ let t = new $A(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ho(t);
18779
18806
  for (let o = 0; o < t.fields.length; o++)
18780
18807
  r[t.fields[o].name] = t.fields[o].init(e, r);
18781
18808
  return r;
@@ -18789,7 +18816,7 @@ class Ho {
18789
18816
  configuration object..
18790
18817
  */
18791
18818
  reconfigure(e) {
18792
- let t = new _A(this.schema, e.plugins), r = t.fields, o = new Ho(t);
18819
+ let t = new $A(this.schema, e.plugins), r = t.fields, o = new Ho(t);
18793
18820
  for (let i = 0; i < r.length; i++) {
18794
18821
  let A = r[i].name;
18795
18822
  o[A] = this.hasOwnProperty(A) ? this[A] : r[i].init(e, o);
@@ -18826,7 +18853,7 @@ class Ho {
18826
18853
  throw new RangeError("Invalid input for EditorState.fromJSON");
18827
18854
  if (!e.schema)
18828
18855
  throw new RangeError("Required config field 'schema' missing");
18829
- let o = new _A(e.schema, e.plugins), i = new Ho(o);
18856
+ let o = new $A(e.schema, e.plugins), i = new Ho(o);
18830
18857
  return o.fields.forEach((A) => {
18831
18858
  if (A.name == "doc")
18832
18859
  i.doc = Ao.fromJSON(e.schema, t.doc);
@@ -18869,9 +18896,9 @@ class cn {
18869
18896
  return e[this.key];
18870
18897
  }
18871
18898
  }
18872
- const $A = /* @__PURE__ */ Object.create(null);
18899
+ const ea = /* @__PURE__ */ Object.create(null);
18873
18900
  function ph(n) {
18874
- return n in $A ? n + "$" + ++$A[n] : ($A[n] = 0, n + "$");
18901
+ return n in ea ? n + "$" + ++ea[n] : (ea[n] = 0, n + "$");
18875
18902
  }
18876
18903
  class or {
18877
18904
  /**
@@ -18975,7 +19002,7 @@ function gs(n) {
18975
19002
  ;
18976
19003
  return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
18977
19004
  }
18978
- const IA = function(n) {
19005
+ const BA = function(n) {
18979
19006
  return n.focusNode && fo(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
18980
19007
  };
18981
19008
  function Zr(n, e) {
@@ -19238,14 +19265,14 @@ function wh(n, e, t) {
19238
19265
  if (i == null && o && (t < 0 || o == Vn(r))) {
19239
19266
  let l = r.childNodes[o - 1];
19240
19267
  if (l.nodeType == 1)
19241
- return ea(l.getBoundingClientRect(), !1);
19268
+ return ta(l.getBoundingClientRect(), !1);
19242
19269
  }
19243
19270
  if (i == null && o < Vn(r)) {
19244
19271
  let l = r.childNodes[o];
19245
19272
  if (l.nodeType == 1)
19246
- return ea(l.getBoundingClientRect(), !0);
19273
+ return ta(l.getBoundingClientRect(), !0);
19247
19274
  }
19248
- return ea(r.getBoundingClientRect(), t >= 0);
19275
+ return ta(r.getBoundingClientRect(), t >= 0);
19249
19276
  }
19250
19277
  if (i == null && o && (t < 0 || o == Vn(r))) {
19251
19278
  let l = r.childNodes[o - 1], c = l.nodeType == 3 ? ar(l, Vn(l) - (A ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -19268,7 +19295,7 @@ function xi(n, e) {
19268
19295
  let t = e ? n.left : n.right;
19269
19296
  return { top: n.top, bottom: n.bottom, left: t, right: t };
19270
19297
  }
19271
- function ea(n, e) {
19298
+ function ta(n, e) {
19272
19299
  if (n.height == 0)
19273
19300
  return n;
19274
19301
  let t = e ? n.top : n.bottom;
@@ -19787,7 +19814,7 @@ class Rr extends fs {
19787
19814
  } else u || ({ dom: u, contentDOM: d } = vo.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
19788
19815
  !d && !t.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), t.type.spec.draggable && (u.draggable = !0));
19789
19816
  let g = u;
19790
- return u = kh(u, r, t), c ? l = new px(e, t, r, o, u, d || null, g, c, i, A + 1) : t.isText ? new BA(e, t, r, o, u, g, i) : new Rr(e, t, r, o, u, d || null, g, i, A + 1);
19817
+ return u = kh(u, r, t), c ? l = new px(e, t, r, o, u, d || null, g, c, i, A + 1) : t.isText ? new EA(e, t, r, o, u, g, i) : new Rr(e, t, r, o, u, d || null, g, i, A + 1);
19791
19818
  }
19792
19819
  parseRule() {
19793
19820
  if (this.node.type.spec.reparseInView)
@@ -19890,7 +19917,7 @@ function wu(n, e, t, r, o) {
19890
19917
  let i = new Rr(void 0, n, e, t, r, r, r, o, 0);
19891
19918
  return i.contentDOM && i.updateChildren(o, 0), i;
19892
19919
  }
19893
- class BA extends Rr {
19920
+ class EA extends Rr {
19894
19921
  constructor(e, t, r, o, i, A, a) {
19895
19922
  super(e, t, r, o, i, null, A, a, 0);
19896
19923
  }
@@ -19921,7 +19948,7 @@ class BA extends Rr {
19921
19948
  }
19922
19949
  slice(e, t, r) {
19923
19950
  let o = this.node.cut(e, t), i = document.createTextNode(o.text);
19924
- return new BA(this.parent, o, this.outerDeco, this.innerDeco, i, i, r);
19951
+ return new EA(this.parent, o, this.outerDeco, this.innerDeco, i, i, r);
19925
19952
  }
19926
19953
  markDirty(e, t) {
19927
19954
  super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = nr);
@@ -20206,7 +20233,7 @@ class Ix {
20206
20233
  for (; e instanceof mo; )
20207
20234
  t = e, e = t.children[t.children.length - 1];
20208
20235
  (!e || // Empty textblock
20209
- !(e instanceof BA) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Wt || Ht) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
20236
+ !(e instanceof EA) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Wt || Ht) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
20210
20237
  }
20211
20238
  addHackNode(e, t) {
20212
20239
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -20346,7 +20373,7 @@ function zl(n, e = null) {
20346
20373
  if (A < 0)
20347
20374
  return null;
20348
20375
  let a = r.resolve(A), l, c;
20349
- if (IA(t)) {
20376
+ if (BA(t)) {
20350
20377
  for (l = a; o && !o.node; )
20351
20378
  o = o.parent;
20352
20379
  let u = o.node;
@@ -20392,15 +20419,15 @@ const bu = Wt || Ht && Ih < 63;
20392
20419
  function xu(n, e) {
20393
20420
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), o = r < t.childNodes.length ? t.childNodes[r] : null, i = r ? t.childNodes[r - 1] : null;
20394
20421
  if (Wt && o && o.contentEditable == "false")
20395
- return ta(o);
20422
+ return na(o);
20396
20423
  if ((!o || o.contentEditable == "false") && (!i || i.contentEditable == "false")) {
20397
20424
  if (o)
20398
- return ta(o);
20425
+ return na(o);
20399
20426
  if (i)
20400
- return ta(i);
20427
+ return na(i);
20401
20428
  }
20402
20429
  }
20403
- function ta(n) {
20430
+ function na(n) {
20404
20431
  return n.contentEditable = "true", Wt && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
20405
20432
  }
20406
20433
  function Du(n) {
@@ -20490,7 +20517,7 @@ function Mu(n, e, t) {
20490
20517
  }
20491
20518
  }
20492
20519
  }
20493
- function Xs(n) {
20520
+ function Zs(n) {
20494
20521
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
20495
20522
  }
20496
20523
  function Li(n, e) {
@@ -20505,7 +20532,7 @@ function Dx(n) {
20505
20532
  if (!t)
20506
20533
  return;
20507
20534
  let o, i, A = !1;
20508
- for (Fn && t.nodeType == 1 && r < Xs(t) && Li(t.childNodes[r], -1) && (A = !0); ; )
20535
+ for (Fn && t.nodeType == 1 && r < Zs(t) && Li(t.childNodes[r], -1) && (A = !0); ; )
20509
20536
  if (r > 0) {
20510
20537
  if (t.nodeType != 1)
20511
20538
  break;
@@ -20526,7 +20553,7 @@ function Dx(n) {
20526
20553
  for (; a && Li(a, -1); )
20527
20554
  o = t.parentNode, i = Rt(a), a = a.previousSibling;
20528
20555
  if (a)
20529
- t = a, r = Xs(t);
20556
+ t = a, r = Zs(t);
20530
20557
  else {
20531
20558
  if (t = t.parentNode, t == n.dom)
20532
20559
  break;
@@ -20540,7 +20567,7 @@ function Sx(n) {
20540
20567
  let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
20541
20568
  if (!t)
20542
20569
  return;
20543
- let o = Xs(t), i, A;
20570
+ let o = Zs(t), i, A;
20544
20571
  for (; ; )
20545
20572
  if (r < o) {
20546
20573
  if (t.nodeType != 1)
@@ -20558,7 +20585,7 @@ function Sx(n) {
20558
20585
  for (; a && Li(a, 1); )
20559
20586
  i = a.parentNode, A = Rt(a) + 1, a = a.nextSibling;
20560
20587
  if (a)
20561
- t = a, r = 0, o = Xs(t);
20588
+ t = a, r = 0, o = Zs(t);
20562
20589
  else {
20563
20590
  if (t = t.parentNode, t == n.dom)
20564
20591
  break;
@@ -20604,7 +20631,7 @@ function Ga(n, e, t) {
20604
20631
  let r = n.domSelection();
20605
20632
  if (!r)
20606
20633
  return;
20607
- if (IA(r)) {
20634
+ if (BA(r)) {
20608
20635
  let i = document.createRange();
20609
20636
  i.setEnd(e, t), i.setStart(e, t), r.removeAllRanges(), r.addRange(i);
20610
20637
  } else r.extend && r.extend(e, t);
@@ -20964,7 +20991,7 @@ Zt.keypress = (n, e) => {
20964
20991
  !/[\r\n]/.test(o) && !n.someProp("handleTextInput", (i) => i(n, r.$from.pos, r.$to.pos, o)) && n.dispatch(n.state.tr.insertText(o).scrollIntoView()), t.preventDefault();
20965
20992
  }
20966
20993
  };
20967
- function EA(n) {
20994
+ function QA(n) {
20968
20995
  return { left: n.clientX, top: n.clientY };
20969
20996
  }
20970
20997
  function Gx(n, e) {
@@ -21035,7 +21062,7 @@ function _x(n, e, t) {
21035
21062
  }
21036
21063
  }
21037
21064
  function Hl(n) {
21038
- return Zs(n);
21065
+ return _s(n);
21039
21066
  }
21040
21067
  const Yh = Bn ? "metaKey" : "ctrlKey";
21041
21068
  Xt.mousedown = (n, e) => {
@@ -21043,7 +21070,7 @@ Xt.mousedown = (n, e) => {
21043
21070
  n.input.shiftKey = t.shiftKey;
21044
21071
  let r = Hl(n), o = Date.now(), i = "singleClick";
21045
21072
  o - n.input.lastClick.time < 500 && Gx(t, n.input.lastClick) && !t[Yh] && (n.input.lastClick.type == "singleClick" ? i = "doubleClick" : n.input.lastClick.type == "doubleClick" && (i = "tripleClick")), n.input.lastClick = { time: o, x: t.clientX, y: t.clientY, type: i };
21046
- let A = n.posAtCoords(EA(t));
21073
+ let A = n.posAtCoords(QA(t));
21047
21074
  A && (i == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new $x(n, A, t, !!r)) : (i == "doubleClick" ? Xx : Zx)(n, A.pos, A.inside, t) ? t.preventDefault() : Sr(n, "pointer"));
21048
21075
  };
21049
21076
  class $x {
@@ -21075,7 +21102,7 @@ class $x {
21075
21102
  if (this.done(), !this.view.dom.contains(e.target))
21076
21103
  return;
21077
21104
  let t = this.pos;
21078
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(EA(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Sr(this.view, "pointer") : Wx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
21105
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(QA(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Sr(this.view, "pointer") : Wx(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
21079
21106
  Wt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
21080
21107
  // cursor, but still report that the node is selected
21081
21108
  // when asked through getSelection. You'll then get a
@@ -21108,8 +21135,8 @@ Zt.compositionstart = Zt.compositionupdate = (n) => {
21108
21135
  n.domObserver.flush();
21109
21136
  let { state: e } = n, t = e.selection.$to;
21110
21137
  if (e.selection instanceof Ne && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
21111
- n.markCursor = n.state.storedMarks || t.marks(), Zs(n, !0), n.markCursor = null;
21112
- else if (Zs(n, !e.selection.empty), Fn && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
21138
+ n.markCursor = n.state.storedMarks || t.marks(), _s(n, !0), n.markCursor = null;
21139
+ else if (_s(n, !e.selection.empty), Fn && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
21113
21140
  let r = n.domSelectionRange();
21114
21141
  for (let o = r.focusNode, i = r.focusOffset; o && o.nodeType == 1 && i != 0; ) {
21115
21142
  let A = i < 0 ? o.lastChild : o.childNodes[i - 1];
@@ -21131,7 +21158,7 @@ Zt.compositionend = (n, e) => {
21131
21158
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, Kh(n, 20));
21132
21159
  };
21133
21160
  function Kh(n, e) {
21134
- clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => Zs(n), e));
21161
+ clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => _s(n), e));
21135
21162
  }
21136
21163
  function Uh(n) {
21137
21164
  for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = n0()); n.input.compositionNodes.length > 0; )
@@ -21160,7 +21187,7 @@ function n0() {
21160
21187
  let n = document.createEvent("Event");
21161
21188
  return n.initEvent("event", !0, !0), n.timeStamp;
21162
21189
  }
21163
- function Zs(n, e = !1) {
21190
+ function _s(n, e = !1) {
21164
21191
  if (!(kn && n.domObserver.flushingSoon >= 0)) {
21165
21192
  if (n.domObserver.forceFlush(), Uh(n), e || n.docView && n.docView.dirty) {
21166
21193
  let t = zl(n);
@@ -21233,7 +21260,7 @@ Xt.dragstart = (n, e) => {
21233
21260
  let t = e, r = n.input.mouseDown;
21234
21261
  if (r && r.done(), !t.dataTransfer)
21235
21262
  return;
21236
- let o = n.state.selection, i = o.empty ? null : n.posAtCoords(EA(t)), A;
21263
+ let o = n.state.selection, i = o.empty ? null : n.posAtCoords(QA(t)), A;
21237
21264
  if (!(i && i.pos >= o.from && i.pos <= (o instanceof Te ? o.to - 1 : o.to))) {
21238
21265
  if (r && r.mightDrag)
21239
21266
  A = Te.create(n.state.doc, r.mightDrag.pos);
@@ -21256,7 +21283,7 @@ Zt.drop = (n, e) => {
21256
21283
  let t = e, r = n.dragging;
21257
21284
  if (n.dragging = null, !t.dataTransfer)
21258
21285
  return;
21259
- let o = n.posAtCoords(EA(t));
21286
+ let o = n.posAtCoords(QA(t));
21260
21287
  if (!o)
21261
21288
  return;
21262
21289
  let i = n.state.doc.resolve(o.pos), A = r && r.slice;
@@ -21324,7 +21351,7 @@ function es(n, e) {
21324
21351
  return !1;
21325
21352
  return !0;
21326
21353
  }
21327
- class _s {
21354
+ class $s {
21328
21355
  constructor(e, t) {
21329
21356
  this.toDOM = e, this.spec = t || ao, this.side = this.spec.side || 0;
21330
21357
  }
@@ -21336,7 +21363,7 @@ class _s {
21336
21363
  return !0;
21337
21364
  }
21338
21365
  eq(e) {
21339
- return this == e || e instanceof _s && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && es(this.spec, e.spec));
21366
+ return this == e || e instanceof $s && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && es(this.spec, e.spec));
21340
21367
  }
21341
21368
  destroy(e) {
21342
21369
  this.spec.destroy && this.spec.destroy(e);
@@ -21417,7 +21444,7 @@ class En {
21417
21444
  widget's current document position.
21418
21445
  */
21419
21446
  static widget(e, t, r) {
21420
- return new En(e, e, new _s(t, r));
21447
+ return new En(e, e, new $s(t, r));
21421
21448
  }
21422
21449
  /**
21423
21450
  Creates an inline decoration, which adds the given attributes to
@@ -21451,7 +21478,7 @@ class En {
21451
21478
  @internal
21452
21479
  */
21453
21480
  get widget() {
21454
- return this.type instanceof _s;
21481
+ return this.type instanceof $s;
21455
21482
  }
21456
21483
  }
21457
21484
  const Po = [], ao = {};
@@ -21468,7 +21495,7 @@ class Ct {
21468
21495
  you must make a copy if you want need to preserve that.
21469
21496
  */
21470
21497
  static create(e, t) {
21471
- return t.length ? $s(t, e, 0, ao) : Ft;
21498
+ return t.length ? eA(t, e, 0, ao) : Ft;
21472
21499
  }
21473
21500
  /**
21474
21501
  Find all decorations in this set which touch the given range
@@ -21527,7 +21554,7 @@ class Ct {
21527
21554
  if (u = Xh(t, a, c)) {
21528
21555
  for (o || (o = this.children.slice()); i < o.length && o[i] < l; )
21529
21556
  i += 3;
21530
- o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, $s(u, a, c + 1, ao)), i += 3;
21557
+ o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, eA(u, a, c + 1, ao)), i += 3;
21531
21558
  }
21532
21559
  });
21533
21560
  let A = Wh(i ? Zh(t) : t, -r);
@@ -21716,7 +21743,7 @@ function s0(n, e, t, r, o, i, A) {
21716
21743
  l = !0;
21717
21744
  }
21718
21745
  if (l) {
21719
- let c = A0(a, n, e, t, o, i, A), u = $s(c, r, 0, A);
21746
+ let c = A0(a, n, e, t, o, i, A), u = eA(c, r, 0, A);
21720
21747
  e = u.local;
21721
21748
  for (let d = 0; d < a.length; d += 3)
21722
21749
  a[d + 1] < 0 && (a.splice(d, 3), d -= 3);
@@ -21766,13 +21793,13 @@ function Zh(n) {
21766
21793
  n[t] != null && e.push(n[t]);
21767
21794
  return e;
21768
21795
  }
21769
- function $s(n, e, t, r) {
21796
+ function eA(n, e, t, r) {
21770
21797
  let o = [], i = !1;
21771
21798
  e.forEach((a, l) => {
21772
21799
  let c = Xh(n, a, l + t);
21773
21800
  if (c) {
21774
21801
  i = !0;
21775
- let u = $s(c, a, t + l + 1, r);
21802
+ let u = eA(c, a, t + l + 1, r);
21776
21803
  u != Ft && o.push(l, l + a.nodeSize, u);
21777
21804
  }
21778
21805
  });
@@ -21807,7 +21834,7 @@ function Nu(n, e, t) {
21807
21834
  e++;
21808
21835
  n.splice(e, 0, t);
21809
21836
  }
21810
- function na(n) {
21837
+ function ra(n) {
21811
21838
  let e = [];
21812
21839
  return n.someProp("decorations", (t) => {
21813
21840
  let r = t(n.state);
@@ -21943,7 +21970,7 @@ class u0 {
21943
21970
  }
21944
21971
  }
21945
21972
  let c = null;
21946
- i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && IA(r) && (c = zl(e)) && c.eq(Le.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || o) && (i > -1 && (e.docView.markDirty(i, A), d0(e)), this.handleDOMChange(i, A, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gr(e), this.currentSelection.set(r));
21973
+ i < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && BA(r) && (c = zl(e)) && c.eq(Le.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, gr(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || o) && (i > -1 && (e.docView.markDirty(i, A), d0(e)), this.handleDOMChange(i, A, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || gr(e), this.currentSelection.set(r));
21947
21974
  }
21948
21975
  registerMutation(e, t) {
21949
21976
  if (t.indexOf(e.target) > -1)
@@ -22012,7 +22039,7 @@ function h0(n, e) {
22012
22039
  }
22013
22040
  function f0(n, e, t) {
22014
22041
  let { node: r, fromOffset: o, toOffset: i, from: A, to: a } = n.docView.parseRange(e, t), l = n.domSelectionRange(), c, u = l.anchorNode;
22015
- if (u && n.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], IA(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Ht && n.input.lastKeyCode === 8)
22042
+ if (u && n.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], BA(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Ht && n.input.lastKeyCode === 8)
22016
22043
  for (let y = i; y > o; y--) {
22017
22044
  let x = r.childNodes[y - 1], T = x.pmViewDesc;
22018
22045
  if (x.nodeName == "BR" && !T) {
@@ -22150,7 +22177,7 @@ function B0(n, e, t, r, o) {
22150
22177
  if (
22151
22178
  // The content must have shrunk
22152
22179
  t - e <= o.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
22153
- ra(r, !0, !1) < o.pos
22180
+ oa(r, !0, !1) < o.pos
22154
22181
  )
22155
22182
  return !1;
22156
22183
  let i = n.resolve(e);
@@ -22160,10 +22187,10 @@ function B0(n, e, t, r, o) {
22160
22187
  }
22161
22188
  if (i.parentOffset < i.parent.content.size || !i.parent.isTextblock)
22162
22189
  return !1;
22163
- let A = n.resolve(ra(i, !0, !0));
22164
- return !A.parent.isTextblock || A.pos > t || ra(A, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(A.parent.content);
22190
+ let A = n.resolve(oa(i, !0, !0));
22191
+ return !A.parent.isTextblock || A.pos > t || oa(A, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(A.parent.content);
22165
22192
  }
22166
- function ra(n, e, t) {
22193
+ function oa(n, e, t) {
22167
22194
  let r = n.depth, o = e ? n.end() : n.pos;
22168
22195
  for (; r > 0 && (e || n.indexAfter(r) == n.node(r).childCount); )
22169
22196
  r--, o++, e = !1;
@@ -22207,7 +22234,7 @@ class Q0 {
22207
22234
  added to the document.
22208
22235
  */
22209
22236
  constructor(e, t) {
22210
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new qx(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Vu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Gu(this), Uu(this), this.nodeViews = Ju(this), this.docView = wu(this.state.doc, Ku(this), na(this), this.dom, this), this.domObserver = new u0(this, (r, o, i, A) => C0(this, r, o, i, A)), this.domObserver.start(), Yx(this), this.updatePluginViews();
22237
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new qx(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Vu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Gu(this), Uu(this), this.nodeViews = Ju(this), this.docView = wu(this.state.doc, Ku(this), ra(this), this.dom, this), this.domObserver = new u0(this, (r, o, i, A) => C0(this, r, o, i, A)), this.domObserver.start(), Yx(this), this.updatePluginViews();
22211
22238
  }
22212
22239
  /**
22213
22240
  Holds `true` when a
@@ -22270,7 +22297,7 @@ class Q0 {
22270
22297
  w0(p, this.nodeViews) && (this.nodeViews = p, i = !0);
22271
22298
  }
22272
22299
  (a || t.handleDOMEvents != this._props.handleDOMEvents) && Va(this), this.editable = Gu(this), Uu(this);
22273
- let l = na(this), c = Ku(this), u = o.plugins != e.plugins && !o.doc.eq(e.doc) ? "reset" : e.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", d = i || !this.docView.matchesNode(e.doc, c, l);
22300
+ let l = ra(this), c = Ku(this), u = o.plugins != e.plugins && !o.doc.eq(e.doc) ? "reset" : e.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", d = i || !this.docView.matchesNode(e.doc, c, l);
22274
22301
  (d || !e.selection.eq(o.selection)) && (A = !0);
22275
22302
  let g = u == "preserve" && A && this.dom.style.overflowAnchor == null && rx(this);
22276
22303
  if (A) {
@@ -22487,7 +22514,7 @@ class Q0 {
22487
22514
  views](https://prosemirror.net/docs/ref/#view.NodeView).
22488
22515
  */
22489
22516
  destroy() {
22490
- this.docView && (jx(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], na(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Gb());
22517
+ this.docView && (jx(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ra(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Gb());
22491
22518
  }
22492
22519
  /**
22493
22520
  This is true when the view has been
@@ -22628,7 +22655,7 @@ var Fr = {
22628
22655
  220: "\\",
22629
22656
  221: "]",
22630
22657
  222: "'"
22631
- }, eA = {
22658
+ }, tA = {
22632
22659
  48: ")",
22633
22660
  49: "!",
22634
22661
  50: "@",
@@ -22657,10 +22684,10 @@ var Fr = {
22657
22684
  for (var Pt = 0; Pt < 10; Pt++) Fr[48 + Pt] = Fr[96 + Pt] = String(Pt);
22658
22685
  for (var Pt = 1; Pt <= 24; Pt++) Fr[Pt + 111] = "F" + Pt;
22659
22686
  for (var Pt = 65; Pt <= 90; Pt++)
22660
- Fr[Pt] = String.fromCharCode(Pt + 32), eA[Pt] = String.fromCharCode(Pt);
22661
- for (var oa in Fr) eA.hasOwnProperty(oa) || (eA[oa] = Fr[oa]);
22687
+ Fr[Pt] = String.fromCharCode(Pt + 32), tA[Pt] = String.fromCharCode(Pt);
22688
+ for (var ia in Fr) tA.hasOwnProperty(ia) || (tA[ia] = Fr[ia]);
22662
22689
  function x0(n) {
22663
- var e = y0 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || b0 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? eA : Fr)[n.keyCode] || n.key || "Unidentified";
22690
+ var e = y0 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || b0 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? tA : Fr)[n.keyCode] || n.key || "Unidentified";
22664
22691
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
22665
22692
  }
22666
22693
  const D0 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -22691,7 +22718,7 @@ function k0(n) {
22691
22718
  e[S0(t)] = n[t];
22692
22719
  return e;
22693
22720
  }
22694
- function ia(n, e, t = !0) {
22721
+ function sa(n, e, t = !0) {
22695
22722
  return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
22696
22723
  }
22697
22724
  function M0(n) {
@@ -22700,17 +22727,17 @@ function M0(n) {
22700
22727
  function _h(n) {
22701
22728
  let e = k0(n);
22702
22729
  return function(t, r) {
22703
- let o = x0(r), i, A = e[ia(o, r)];
22730
+ let o = x0(r), i, A = e[sa(o, r)];
22704
22731
  if (A && A(t.state, t.dispatch, t))
22705
22732
  return !0;
22706
22733
  if (o.length == 1 && o != " ") {
22707
22734
  if (r.shiftKey) {
22708
- let a = e[ia(o, r, !1)];
22735
+ let a = e[sa(o, r, !1)];
22709
22736
  if (a && a(t.state, t.dispatch, t))
22710
22737
  return !0;
22711
22738
  }
22712
22739
  if ((r.shiftKey || r.altKey || r.metaKey || o.charCodeAt(0) > 127) && (i = Fr[r.keyCode]) && i != o) {
22713
- let a = e[ia(i, r)];
22740
+ let a = e[sa(i, r)];
22714
22741
  if (a && a(t.state, t.dispatch, t))
22715
22742
  return !0;
22716
22743
  }
@@ -22737,7 +22764,7 @@ const T0 = (n, e, t) => {
22737
22764
  return !0;
22738
22765
  if (r.parent.content.size == 0 && (ri(i, "end") || Te.isSelectable(i)))
22739
22766
  for (let A = r.depth; ; A--) {
22740
- let a = pA(n.doc, r.before(A), r.after(A), ye.empty);
22767
+ let a = CA(n.doc, r.before(A), r.after(A), ye.empty);
22741
22768
  if (a && a.slice.size < a.to - a.from) {
22742
22769
  if (e) {
22743
22770
  let l = n.tr.step(a);
@@ -22781,7 +22808,7 @@ function ef(n, e, t) {
22781
22808
  return !1;
22782
22809
  a = u;
22783
22810
  }
22784
- let c = pA(n.doc, i, l, ye.empty);
22811
+ let c = CA(n.doc, i, l, ye.empty);
22785
22812
  if (!c || c.from != i || c instanceof xt && c.slice.size >= l - i)
22786
22813
  return !1;
22787
22814
  if (t) {
@@ -22836,7 +22863,7 @@ const F0 = (n, e, t) => {
22836
22863
  if (rf(n, o, e, 1))
22837
22864
  return !0;
22838
22865
  if (r.parent.content.size == 0 && (ri(i, "start") || Te.isSelectable(i))) {
22839
- let A = pA(n.doc, r.before(), r.after(), ye.empty);
22866
+ let A = CA(n.doc, r.before(), r.after(), ye.empty);
22840
22867
  if (A && A.slice.size < A.to - A.from) {
22841
22868
  if (e) {
22842
22869
  let a = n.tr.step(A);
@@ -22875,7 +22902,7 @@ const L0 = (n, e) => {
22875
22902
  if (t.node.isTextblock || !Hr(n.doc, t.from))
22876
22903
  return !1;
22877
22904
  o = t.from;
22878
- } else if (o = mA(n.doc, t.from, -1), o == null)
22905
+ } else if (o = pA(n.doc, t.from, -1), o == null)
22879
22906
  return !1;
22880
22907
  if (e) {
22881
22908
  let i = n.tr.join(o);
@@ -22888,7 +22915,7 @@ const L0 = (n, e) => {
22888
22915
  if (t.node.isTextblock || !Hr(n.doc, t.to))
22889
22916
  return !1;
22890
22917
  r = t.to;
22891
- } else if (r = mA(n.doc, t.to, 1), r == null)
22918
+ } else if (r = pA(n.doc, t.to, 1), r == null)
22892
22919
  return !1;
22893
22920
  return e && e(n.tr.join(r).scrollIntoView()), !0;
22894
22921
  }, q0 = (n, e) => {
@@ -23047,7 +23074,7 @@ function Z0(n, e = null) {
23047
23074
  if (o.index(A.depth - 1) == 0)
23048
23075
  return !1;
23049
23076
  let u = t.doc.resolve(A.start - 2);
23050
- l = new Gs(u, u, A.depth), A.endIndex < A.parent.childCount && (A = new Gs(o, t.doc.resolve(i.end(A.depth)), A.depth)), a = !0;
23077
+ l = new Js(u, u, A.depth), A.endIndex < A.parent.childCount && (A = new Js(o, t.doc.resolve(i.end(A.depth)), A.depth)), a = !0;
23051
23078
  }
23052
23079
  let c = Tl(l, n, e, A);
23053
23080
  return c ? (r && r(_0(t.tr, A, c, a, n).scrollIntoView()), !0) : !1;
@@ -23074,7 +23101,7 @@ function $0(n) {
23074
23101
  }
23075
23102
  function eD(n, e, t, r) {
23076
23103
  let o = n.tr, i = r.end, A = r.$to.end(r.depth);
23077
- i < A && (o.step(new St(i - 1, A, i, A, new ye(Ce.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Gs(o.doc.resolve(r.$from.pos), o.doc.resolve(A), r.depth));
23104
+ i < A && (o.step(new St(i - 1, A, i, A, new ye(Ce.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Js(o.doc.resolve(r.$from.pos), o.doc.resolve(A), r.depth));
23078
23105
  const a = gi(r);
23079
23106
  if (a == null)
23080
23107
  return !1;
@@ -23113,7 +23140,7 @@ function nD(n) {
23113
23140
  return !0;
23114
23141
  };
23115
23142
  }
23116
- function QA(n) {
23143
+ function vA(n) {
23117
23144
  const { state: e, transaction: t } = n;
23118
23145
  let { selection: r } = t, { doc: o } = t, { storedMarks: i } = t;
23119
23146
  return {
@@ -23138,7 +23165,7 @@ function QA(n) {
23138
23165
  }
23139
23166
  };
23140
23167
  }
23141
- class vA {
23168
+ class wA {
23142
23169
  constructor(e) {
23143
23170
  this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
23144
23171
  }
@@ -23183,7 +23210,7 @@ class vA {
23183
23210
  tr: e,
23184
23211
  editor: o,
23185
23212
  view: A,
23186
- state: QA({
23213
+ state: vA({
23187
23214
  state: i,
23188
23215
  transaction: e
23189
23216
  }),
@@ -23223,7 +23250,7 @@ function ke(n, e, t) {
23223
23250
  parent: n.parent ? ke(n.parent, e, t) : null
23224
23251
  }) : n.config[e];
23225
23252
  }
23226
- function wA(n) {
23253
+ function yA(n) {
23227
23254
  const e = n.filter((o) => o.type === "extension"), t = n.filter((o) => o.type === "node"), r = n.filter((o) => o.type === "mark");
23228
23255
  return {
23229
23256
  baseExtensions: e,
@@ -23232,7 +23259,7 @@ function wA(n) {
23232
23259
  };
23233
23260
  }
23234
23261
  function sf(n) {
23235
- const e = [], { nodeExtensions: t, markExtensions: r } = wA(n), o = [...t, ...r], i = {
23262
+ const e = [], { nodeExtensions: t, markExtensions: r } = yA(n), o = [...t, ...r], i = {
23236
23263
  default: null,
23237
23264
  rendered: !0,
23238
23265
  renderHTML: null,
@@ -23351,7 +23378,7 @@ function Zu(n) {
23351
23378
  }
23352
23379
  function sD(n, e) {
23353
23380
  var t;
23354
- const r = sf(n), { nodeExtensions: o, markExtensions: i } = wA(n), A = (t = o.find((c) => ke(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, a = Object.fromEntries(o.map((c) => {
23381
+ const r = sf(n), { nodeExtensions: o, markExtensions: i } = yA(n), A = (t = o.find((c) => ke(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, a = Object.fromEntries(o.map((c) => {
23355
23382
  const u = r.filter((x) => x.type === c.name), d = {
23356
23383
  name: c.name,
23357
23384
  options: c.options,
@@ -23426,7 +23453,7 @@ function sD(n, e) {
23426
23453
  marks: l
23427
23454
  });
23428
23455
  }
23429
- function sa(n, e) {
23456
+ function Aa(n, e) {
23430
23457
  return e.nodes[n] || e.marks[n] || null;
23431
23458
  }
23432
23459
  function _u(n, e) {
@@ -23449,7 +23476,7 @@ const AD = (n, e = 500) => {
23449
23476
  function Ul(n) {
23450
23477
  return Object.prototype.toString.call(n) === "[object RegExp]";
23451
23478
  }
23452
- class yA {
23479
+ class bA {
23453
23480
  constructor(e) {
23454
23481
  this.find = e.find, this.handler = e.handler;
23455
23482
  }
@@ -23482,13 +23509,13 @@ function ys(n) {
23482
23509
  const p = aD(d, g.find);
23483
23510
  if (!p)
23484
23511
  return;
23485
- const C = l.state.tr, B = QA({
23512
+ const C = l.state.tr, B = vA({
23486
23513
  state: l.state,
23487
23514
  transaction: C
23488
23515
  }), y = {
23489
23516
  from: r - (p[0].length - i.length),
23490
23517
  to: o
23491
- }, { commands: x, chain: T, can: S } = new vA({
23518
+ }, { commands: x, chain: T, can: S } = new wA({
23492
23519
  editor: t,
23493
23520
  state: B
23494
23521
  });
@@ -23595,7 +23622,7 @@ const dD = (n, e, t) => {
23595
23622
  }) : [];
23596
23623
  };
23597
23624
  function gD(n) {
23598
- const { editor: e, state: t, from: r, to: o, rule: i, pasteEvent: A, dropEvent: a } = n, { commands: l, chain: c, can: u } = new vA({
23625
+ const { editor: e, state: t, from: r, to: o, rule: i, pasteEvent: A, dropEvent: a } = n, { commands: l, chain: c, can: u } = new wA({
23599
23626
  editor: e,
23600
23627
  state: t
23601
23628
  }), d = [];
@@ -23634,7 +23661,7 @@ function fD(n) {
23634
23661
  const { editor: e, rules: t } = n;
23635
23662
  let r = null, o = !1, i = !1, A = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, a = typeof DragEvent < "u" ? new DragEvent("drop") : null;
23636
23663
  const l = ({ state: u, from: d, to: g, rule: p, pasteEvt: C }) => {
23637
- const B = u.tr, y = QA({
23664
+ const B = u.tr, y = vA({
23638
23665
  state: u,
23639
23666
  transaction: B
23640
23667
  });
@@ -23753,7 +23780,7 @@ class qo {
23753
23780
  options: t.options,
23754
23781
  storage: t.storage,
23755
23782
  editor: this.editor,
23756
- type: sa(t.name, this.schema)
23783
+ type: Aa(t.name, this.schema)
23757
23784
  }, o = ke(t, "addCommands", r);
23758
23785
  return o ? {
23759
23786
  ...e,
@@ -23772,7 +23799,7 @@ class qo {
23772
23799
  options: A.options,
23773
23800
  storage: A.storage,
23774
23801
  editor: e,
23775
- type: sa(A.name, this.schema)
23802
+ type: Aa(A.name, this.schema)
23776
23803
  }, l = [], c = ke(A, "addKeyboardShortcuts", a);
23777
23804
  let u = {};
23778
23805
  if (A.type === "mark" && ke(A, "exitable", a) && (u.ArrowRight = () => Nn.handleExit({ editor: e, mark: A })), c) {
@@ -23816,7 +23843,7 @@ class qo {
23816
23843
  * @returns An object with all node views where the key is the node name and the value is the node view function
23817
23844
  */
23818
23845
  get nodeViews() {
23819
- const { editor: e } = this, { nodeExtensions: t } = wA(this.extensions);
23846
+ const { editor: e } = this, { nodeExtensions: t } = yA(this.extensions);
23820
23847
  return Object.fromEntries(t.filter((r) => !!ke(r, "addNodeView")).map((r) => {
23821
23848
  const o = this.attributes.filter((l) => l.type === r.name), i = {
23822
23849
  name: r.name,
@@ -23854,7 +23881,7 @@ class qo {
23854
23881
  options: e.options,
23855
23882
  storage: e.storage,
23856
23883
  editor: this.editor,
23857
- type: sa(e.name, this.schema)
23884
+ type: Aa(e.name, this.schema)
23858
23885
  };
23859
23886
  e.type === "mark" && (!((t = Ye(ke(e, "keepOnSplit", r))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
23860
23887
  const o = ke(e, "onBeforeCreate", r), i = ke(e, "onCreate", r), A = ke(e, "onUpdate", r), a = ke(e, "onSelectionUpdate", r), l = ke(e, "onTransaction", r), c = ke(e, "onFocus", r), u = ke(e, "onBlur", r), d = ke(e, "onDestroy", r);
@@ -23868,10 +23895,10 @@ function pD(n) {
23868
23895
  function bs(n) {
23869
23896
  return pD(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
23870
23897
  }
23871
- function bA(n, e) {
23898
+ function xA(n, e) {
23872
23899
  const t = { ...n };
23873
23900
  return bs(n) && bs(e) && Object.keys(e).forEach((r) => {
23874
- bs(e[r]) && bs(n[r]) ? t[r] = bA(n[r], e[r]) : t[r] = e[r];
23901
+ bs(e[r]) && bs(n[r]) ? t[r] = xA(n[r], e[r]) : t[r] = e[r];
23875
23902
  }), t;
23876
23903
  }
23877
23904
  class Yt {
@@ -23895,7 +23922,7 @@ class Yt {
23895
23922
  configure(e = {}) {
23896
23923
  const t = this.extend({
23897
23924
  ...this.config,
23898
- addOptions: () => bA(this.options, e)
23925
+ addOptions: () => xA(this.options, e)
23899
23926
  });
23900
23927
  return t.name = this.name, t.parent = this.parent, t;
23901
23928
  }
@@ -24009,12 +24036,12 @@ const CD = Yt.create({
24009
24036
  const { from: r, to: o } = n;
24010
24037
  return t && e.delete(r, o), !0;
24011
24038
  }, DD = () => ({ state: n, dispatch: e }) => O0(n, e), SD = () => ({ commands: n }) => n.keyboardShortcut("Enter"), kD = () => ({ state: n, dispatch: e }) => j0(n, e);
24012
- function tA(n, e, t = { strict: !0 }) {
24039
+ function nA(n, e, t = { strict: !0 }) {
24013
24040
  const r = Object.keys(e);
24014
24041
  return r.length ? r.every((o) => t.strict ? e[o] === n[o] : Ul(e[o]) ? e[o].test(n[o]) : e[o] === n[o]) : !0;
24015
24042
  }
24016
24043
  function Xa(n, e, t = {}) {
24017
- return n.find((r) => r.type === e && tA(r.attrs, t));
24044
+ return n.find((r) => r.type === e && nA(r.attrs, t));
24018
24045
  }
24019
24046
  function MD(n, e, t = {}) {
24020
24047
  return !!Xa(n, e, t);
@@ -24118,7 +24145,7 @@ function xs(n) {
24118
24145
  const e = `<body>${n}</body>`, t = new window.DOMParser().parseFromString(e, "text/html").body;
24119
24146
  return uf(t);
24120
24147
  }
24121
- function nA(n, e, t) {
24148
+ function rA(n, e, t) {
24122
24149
  t = {
24123
24150
  slice: !0,
24124
24151
  parseOptions: {},
@@ -24131,7 +24158,7 @@ function nA(n, e, t) {
24131
24158
  } catch (i) {
24132
24159
  if (t.errorOnInvalidContent)
24133
24160
  throw new Error("[tiptap error]: Invalid JSON content", { cause: i });
24134
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", i), nA("", e, t);
24161
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", i), rA("", e, t);
24135
24162
  }
24136
24163
  if (o) {
24137
24164
  if (t.errorOnInvalidContent) {
@@ -24160,7 +24187,7 @@ function nA(n, e, t) {
24160
24187
  const i = Or.fromSchema(e);
24161
24188
  return t.slice ? i.parseSlice(xs(n), t.parseOptions).content : i.parse(xs(n), t.parseOptions);
24162
24189
  }
24163
- return nA("", e, t);
24190
+ return rA("", e, t);
24164
24191
  }
24165
24192
  function FD(n, e, t) {
24166
24193
  const r = n.steps.length - 1;
@@ -24187,7 +24214,7 @@ const ND = (n) => !("type" in n), LD = (n, e, t) => ({ tr: r, dispatch: o, edito
24187
24214
  };
24188
24215
  let a;
24189
24216
  try {
24190
- a = nA(e, i.schema, {
24217
+ a = rA(e, i.schema, {
24191
24218
  parseOptions: {
24192
24219
  preserveWhitespace: "full",
24193
24220
  ...t.parseOptions
@@ -24216,14 +24243,14 @@ const ND = (n) => !("type" in n), LD = (n, e, t) => ({ tr: r, dispatch: o, edito
24216
24243
  return !0;
24217
24244
  }, HD = () => ({ state: n, dispatch: e }) => L0(n, e), qD = () => ({ state: n, dispatch: e }) => H0(n, e), YD = () => ({ state: n, dispatch: e }) => T0(n, e), jD = () => ({ state: n, dispatch: e }) => F0(n, e), KD = () => ({ state: n, dispatch: e, tr: t }) => {
24218
24245
  try {
24219
- const r = mA(n.doc, n.selection.$from.pos, -1);
24246
+ const r = pA(n.doc, n.selection.$from.pos, -1);
24220
24247
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
24221
24248
  } catch {
24222
24249
  return !1;
24223
24250
  }
24224
24251
  }, UD = () => ({ state: n, dispatch: e, tr: t }) => {
24225
24252
  try {
24226
- const r = mA(n.doc, n.selection.$from.pos, 1);
24253
+ const r = pA(n.doc, n.selection.$from.pos, 1);
24227
24254
  return r == null ? !1 : (t.join(r, 2), e && e(t), !0);
24228
24255
  } catch {
24229
24256
  return !1;
@@ -24283,7 +24310,7 @@ function ts(n, e, t = {}) {
24283
24310
  to: C
24284
24311
  });
24285
24312
  });
24286
- const l = o - r, c = a.filter((d) => A ? A.name === d.node.type.name : !0).filter((d) => tA(d.node.attrs, t, { strict: !1 }));
24313
+ const l = o - r, c = a.filter((d) => A ? A.name === d.node.type.name : !0).filter((d) => nA(d.node.attrs, t, { strict: !1 }));
24287
24314
  return i ? !!c.length : c.reduce((d, g) => d + g.to - g.from, 0) >= l;
24288
24315
  }
24289
24316
  const XD = (n, e = {}) => ({ state: t, dispatch: r }) => {
@@ -24293,7 +24320,7 @@ const XD = (n, e = {}) => ({ state: t, dispatch: r }) => {
24293
24320
  const r = Mt(n, e.schema);
24294
24321
  return $0(r)(e, t);
24295
24322
  }, $D = () => ({ state: n, dispatch: e }) => Y0(n, e);
24296
- function xA(n, e) {
24323
+ function DA(n, e) {
24297
24324
  return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
24298
24325
  }
24299
24326
  function $u(n, e) {
@@ -24302,7 +24329,7 @@ function $u(n, e) {
24302
24329
  }
24303
24330
  const eS = (n, e) => ({ tr: t, state: r, dispatch: o }) => {
24304
24331
  let i = null, A = null;
24305
- const a = xA(typeof n == "string" ? n : n.name, r.schema);
24332
+ const a = DA(typeof n == "string" ? n : n.name, r.schema);
24306
24333
  return a ? (a === "node" && (i = Mt(n, r.schema)), a === "mark" && (A = Yr(n, r.schema)), o && t.selection.ranges.forEach((l) => {
24307
24334
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
24308
24335
  i && i === c.type && t.setNodeMarkup(u, void 0, $u(c.attrs, e)), A && c.marks.length && c.marks.forEach((d) => {
@@ -24315,7 +24342,7 @@ const eS = (n, e) => ({ tr: t, state: r, dispatch: o }) => {
24315
24342
  to: n.doc.content.size
24316
24343
  }), rS = () => ({ state: n, dispatch: e }) => z0(n, e), oS = () => ({ state: n, dispatch: e }) => N0(n, e), iS = () => ({ state: n, dispatch: e }) => G0(n, e), sS = () => ({ state: n, dispatch: e }) => W0(n, e), AS = () => ({ state: n, dispatch: e }) => V0(n, e);
24317
24344
  function Za(n, e, t = {}, r = {}) {
24318
- return nA(n, e, {
24345
+ return rA(n, e, {
24319
24346
  slice: !1,
24320
24347
  parseOptions: t,
24321
24348
  errorOnInvalidContent: r.errorOnInvalidContent
@@ -24335,7 +24362,7 @@ const aS = (n, e = !1, t = {}, r = {}) => ({ editor: o, tr: i, dispatch: A, comm
24335
24362
  errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : o.options.enableContentCheck
24336
24363
  });
24337
24364
  };
24338
- function DA(n, e) {
24365
+ function SA(n, e) {
24339
24366
  const t = Yr(e, n.schema), { from: r, to: o, empty: i } = n.selection, A = [];
24340
24367
  i ? (n.storedMarks && A.push(...n.storedMarks), A.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, o, (l) => {
24341
24368
  A.push(...l.marks);
@@ -24386,8 +24413,8 @@ function gS(n, e) {
24386
24413
  return A ? { ...A.attrs } : {};
24387
24414
  }
24388
24415
  function hS(n, e) {
24389
- const t = xA(typeof e == "string" ? e : e.name, n.schema);
24390
- return t === "node" ? gS(n, e) : t === "mark" ? DA(n, e) : {};
24416
+ const t = DA(typeof e == "string" ? e : e.name, n.schema);
24417
+ return t === "node" ? gS(n, e) : t === "mark" ? SA(n, e) : {};
24391
24418
  }
24392
24419
  function gf(n, e, t) {
24393
24420
  const r = [];
@@ -24414,7 +24441,7 @@ function zs(n, e, t) {
24414
24441
  function _a(n, e, t = {}) {
24415
24442
  const { empty: r, ranges: o } = n.selection, i = e ? Yr(e, n.schema) : null;
24416
24443
  if (r)
24417
- return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => i ? i.name === d.type.name : !0).find((d) => tA(d.attrs, t, { strict: !1 }));
24444
+ return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => i ? i.name === d.type.name : !0).find((d) => nA(d.attrs, t, { strict: !1 }));
24418
24445
  let A = 0;
24419
24446
  const a = [];
24420
24447
  if (o.forEach(({ $from: d, $to: g }) => {
@@ -24431,17 +24458,17 @@ function _a(n, e, t = {}) {
24431
24458
  });
24432
24459
  }), A === 0)
24433
24460
  return !1;
24434
- const l = a.filter((d) => i ? i.name === d.mark.type.name : !0).filter((d) => tA(d.mark.attrs, t, { strict: !1 })).reduce((d, g) => d + g.to - g.from, 0), c = a.filter((d) => i ? d.mark.type !== i && d.mark.type.excludes(i) : !0).reduce((d, g) => d + g.to - g.from, 0);
24461
+ const l = a.filter((d) => i ? i.name === d.mark.type.name : !0).filter((d) => nA(d.mark.attrs, t, { strict: !1 })).reduce((d, g) => d + g.to - g.from, 0), c = a.filter((d) => i ? d.mark.type !== i && d.mark.type.excludes(i) : !0).reduce((d, g) => d + g.to - g.from, 0);
24435
24462
  return (l > 0 ? l + c : l) >= A;
24436
24463
  }
24437
24464
  function fS(n, e, t = {}) {
24438
24465
  if (!e)
24439
24466
  return ts(n, null, t) || _a(n, null, t);
24440
- const r = xA(e, n.schema);
24467
+ const r = DA(e, n.schema);
24441
24468
  return r === "node" ? ts(n, e, t) : r === "mark" ? _a(n, e, t) : !1;
24442
24469
  }
24443
24470
  function ed(n, e) {
24444
- const { nodeExtensions: t } = wA(e), r = t.find((A) => A.name === n);
24471
+ const { nodeExtensions: t } = yA(e), r = t.find((A) => A.name === n);
24445
24472
  if (!r)
24446
24473
  return !1;
24447
24474
  const o = {
@@ -24518,7 +24545,7 @@ const pS = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
24518
24545
  const { selection: i } = t, { empty: A, ranges: a } = i, l = Yr(n, r.schema);
24519
24546
  if (o)
24520
24547
  if (A) {
24521
- const c = DA(r, l);
24548
+ const c = SA(r, l);
24522
24549
  t.addStoredMark(l.create({
24523
24550
  ...c,
24524
24551
  ...e
@@ -24644,7 +24671,7 @@ const vS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
24644
24671
  t.ensureMarks(G);
24645
24672
  }
24646
24673
  return !0;
24647
- }, Aa = (n, e) => {
24674
+ }, aa = (n, e) => {
24648
24675
  const t = Wl((A) => A.type === e)(n.selection);
24649
24676
  if (!t)
24650
24677
  return !0;
@@ -24653,7 +24680,7 @@ const vS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
24653
24680
  return !0;
24654
24681
  const o = n.doc.nodeAt(r);
24655
24682
  return t.node.type === (o == null ? void 0 : o.type) && Hr(n.doc, t.pos) && n.join(t.pos), !0;
24656
- }, aa = (n, e) => {
24683
+ }, la = (n, e) => {
24657
24684
  const t = Wl((A) => A.type === e)(n.selection);
24658
24685
  if (!t)
24659
24686
  return !0;
@@ -24671,12 +24698,12 @@ const vS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
24671
24698
  if (G.node.type === p)
24672
24699
  return c.liftListItem(C);
24673
24700
  if (ed(G.node.type.name, d) && p.validContent(G.node.content) && a)
24674
- return l().command(() => (i.setNodeMarkup(G.pos, p), !0)).command(() => Aa(i, p)).command(() => aa(i, p)).run();
24701
+ return l().command(() => (i.setNodeMarkup(G.pos, p), !0)).command(() => aa(i, p)).command(() => la(i, p)).run();
24675
24702
  }
24676
- return !t || !v || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Aa(i, p)).command(() => aa(i, p)).run() : l().command(() => {
24703
+ return !t || !v || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => aa(i, p)).command(() => la(i, p)).run() : l().command(() => {
24677
24704
  const b = u().wrapInList(p, r), O = v.filter((U) => g.includes(U.type.name));
24678
24705
  return i.ensureMarks(O), b ? !0 : c.clearNodes();
24679
- }).wrapInList(p, r).command(() => Aa(i, p)).command(() => aa(i, p)).run();
24706
+ }).wrapInList(p, r).command(() => aa(i, p)).command(() => la(i, p)).run();
24680
24707
  }, bS = (n, e = {}, t = {}) => ({ state: r, commands: o }) => {
24681
24708
  const { extendEmptyMarkRange: i = !1 } = t, A = Yr(n, r.schema);
24682
24709
  return _a(r, A, e) ? o.unsetMark(A, { extendEmptyMarkRange: i }) : o.setMark(A, e);
@@ -24727,7 +24754,7 @@ const vS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
24727
24754
  return t.removeStoredMark(l), !0;
24728
24755
  }, OS = (n, e = {}) => ({ tr: t, state: r, dispatch: o }) => {
24729
24756
  let i = null, A = null;
24730
- const a = xA(typeof n == "string" ? n : n.name, r.schema);
24757
+ const a = DA(typeof n == "string" ? n : n.name, r.schema);
24731
24758
  return a ? (a === "node" && (i = Mt(n, r.schema)), a === "mark" && (A = Yr(n, r.schema)), o && t.selection.ranges.forEach((l) => {
24732
24759
  const c = l.$from.pos, u = l.$to.pos;
24733
24760
  r.doc.nodesBetween(c, u, (d, g) => {
@@ -24918,10 +24945,10 @@ const zS = Yt.create({
24918
24945
  const { empty: o, from: i, to: A } = e.selection, a = Le.atStart(e.doc).from, l = Le.atEnd(e.doc).to;
24919
24946
  if (o || !(i === a && A === l) || !(t.doc.textBetween(0, t.doc.content.size, " ", " ").length === 0))
24920
24947
  return;
24921
- const d = t.tr, g = QA({
24948
+ const d = t.tr, g = vA({
24922
24949
  state: t,
24923
24950
  transaction: d
24924
- }), { commands: p } = new vA({
24951
+ }), { commands: p } = new wA({
24925
24952
  editor: this.editor,
24926
24953
  state: g
24927
24954
  });
@@ -25282,7 +25309,7 @@ let jS = class extends rD {
25282
25309
  * Creates an command manager.
25283
25310
  */
25284
25311
  createCommandManager() {
25285
- this.commandManager = new vA({
25312
+ this.commandManager = new wA({
25286
25313
  editor: this
25287
25314
  });
25288
25315
  }
@@ -25471,7 +25498,7 @@ let jS = class extends rD {
25471
25498
  }
25472
25499
  };
25473
25500
  function po(n) {
25474
- return new yA({
25501
+ return new bA({
25475
25502
  find: n.find,
25476
25503
  handler: ({ state: e, range: t, match: r }) => {
25477
25504
  const o = Ye(n.getAttributes, void 0, r);
@@ -25490,7 +25517,7 @@ function po(n) {
25490
25517
  });
25491
25518
  }
25492
25519
  function KS(n) {
25493
- return new yA({
25520
+ return new bA({
25494
25521
  find: n.find,
25495
25522
  handler: ({ state: e, range: t, match: r }) => {
25496
25523
  const o = Ye(n.getAttributes, void 0, r) || {}, { tr: i } = e, A = t.from;
@@ -25511,7 +25538,7 @@ function KS(n) {
25511
25538
  });
25512
25539
  }
25513
25540
  function $a(n) {
25514
- return new yA({
25541
+ return new bA({
25515
25542
  find: n.find,
25516
25543
  handler: ({ state: e, range: t, match: r }) => {
25517
25544
  const o = e.doc.resolve(t.from), i = Ye(n.getAttributes, void 0, r) || {};
@@ -25522,7 +25549,7 @@ function $a(n) {
25522
25549
  });
25523
25550
  }
25524
25551
  function ns(n) {
25525
- return new yA({
25552
+ return new bA({
25526
25553
  find: n.find,
25527
25554
  handler: ({ state: e, range: t, match: r, chain: o }) => {
25528
25555
  const i = Ye(n.getAttributes, void 0, r) || {}, A = e.tr.delete(t.from, t.to), l = A.doc.resolve(t.from).blockRange(), c = l && Tl(l, n.type, i);
@@ -25565,7 +25592,7 @@ class Nn {
25565
25592
  configure(e = {}) {
25566
25593
  const t = this.extend({
25567
25594
  ...this.config,
25568
- addOptions: () => bA(this.options, e)
25595
+ addOptions: () => xA(this.options, e)
25569
25596
  });
25570
25597
  return t.name = this.name, t.parent = this.parent, t;
25571
25598
  }
@@ -25611,7 +25638,7 @@ let fn = class el {
25611
25638
  configure(e = {}) {
25612
25639
  const t = this.extend({
25613
25640
  ...this.config,
25614
- addOptions: () => bA(this.options, e)
25641
+ addOptions: () => xA(this.options, e)
25615
25642
  });
25616
25643
  return t.name = this.name, t.parent = this.parent, t;
25617
25644
  }
@@ -25719,7 +25746,7 @@ const If = {
25719
25746
  function $n(n) {
25720
25747
  return n.split("-")[0];
25721
25748
  }
25722
- var co = Math.max, rA = Math.min, ii = Math.round;
25749
+ var co = Math.max, oA = Math.min, ii = Math.round;
25723
25750
  function tl() {
25724
25751
  var n = navigator.userAgentData;
25725
25752
  return n != null && n.brands && Array.isArray(n.brands) ? n.brands.map(function(e) {
@@ -25780,7 +25807,7 @@ function jr(n) {
25780
25807
  n.document
25781
25808
  )) || window.document).documentElement;
25782
25809
  }
25783
- function SA(n) {
25810
+ function kA(n) {
25784
25811
  return rr(n) === "html" ? n : (
25785
25812
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
25786
25813
  // $FlowFixMe[incompatible-return]
@@ -25803,7 +25830,7 @@ function sk(n) {
25803
25830
  if (r.position === "fixed")
25804
25831
  return null;
25805
25832
  }
25806
- var o = SA(n);
25833
+ var o = kA(n);
25807
25834
  for (Zl(o) && (o = o.host); vn(o) && ["html", "body"].indexOf(rr(o)) < 0; ) {
25808
25835
  var i = mr(o);
25809
25836
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
@@ -25821,7 +25848,7 @@ function $l(n) {
25821
25848
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
25822
25849
  }
25823
25850
  function Hi(n, e, t) {
25824
- return co(n, rA(e, t));
25851
+ return co(n, oA(e, t));
25825
25852
  }
25826
25853
  function Ak(n, e, t) {
25827
25854
  var r = Hi(n, e, t);
@@ -26038,7 +26065,7 @@ function nc(n) {
26038
26065
  return /auto|scroll|overlay|hidden/.test(t + o + r);
26039
26066
  }
26040
26067
  function yf(n) {
26041
- return ["html", "body", "#document"].indexOf(rr(n)) >= 0 ? n.ownerDocument.body : vn(n) && nc(n) ? n : yf(SA(n));
26068
+ return ["html", "body", "#document"].indexOf(rr(n)) >= 0 ? n.ownerDocument.body : vn(n) && nc(n) ? n : yf(kA(n));
26042
26069
  }
26043
26070
  function qi(n, e) {
26044
26071
  var t;
@@ -26046,7 +26073,7 @@ function qi(n, e) {
26046
26073
  var r = yf(n), o = r === ((t = n.ownerDocument) == null ? void 0 : t.body), i = hn(r), A = o ? [i].concat(i.visualViewport || [], nc(r) ? r : []) : r, a = e.concat(A);
26047
26074
  return o ? a : (
26048
26075
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
26049
- a.concat(qi(SA(A)))
26076
+ a.concat(qi(kA(A)))
26050
26077
  );
26051
26078
  }
26052
26079
  function nl(n) {
@@ -26065,7 +26092,7 @@ function sd(n, e, t) {
26065
26092
  return e === pf ? nl(Bk(n, t)) : Io(e) ? Qk(e, t) : nl(Ek(jr(n)));
26066
26093
  }
26067
26094
  function vk(n) {
26068
- var e = qi(SA(n)), t = ["absolute", "fixed"].indexOf(mr(n).position) >= 0, r = t && vn(n) ? ps(n) : n;
26095
+ var e = qi(kA(n)), t = ["absolute", "fixed"].indexOf(mr(n).position) >= 0, r = t && vn(n) ? ps(n) : n;
26069
26096
  return Io(r) ? e.filter(function(o) {
26070
26097
  return Io(o) && Ef(o, r) && rr(o) !== "body";
26071
26098
  }) : [];
@@ -26073,7 +26100,7 @@ function vk(n) {
26073
26100
  function wk(n, e, t, r) {
26074
26101
  var o = e === "clippingParents" ? vk(n) : [].concat(e), i = [].concat(o, [t]), A = i[0], a = i.reduce(function(l, c) {
26075
26102
  var u = sd(n, c, r);
26076
- return l.top = co(u.top, l.top), l.right = rA(u.right, l.right), l.bottom = rA(u.bottom, l.bottom), l.left = co(u.left, l.left), l;
26103
+ return l.top = co(u.top, l.top), l.right = oA(u.right, l.right), l.bottom = oA(u.bottom, l.bottom), l.left = co(u.left, l.left), l;
26077
26104
  }, sd(n, A, r));
26078
26105
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
26079
26106
  }
@@ -26336,7 +26363,7 @@ function Fk(n) {
26336
26363
  var Ie, H = v === "y" ? sn : An, K = v === "y" ? wn : yn, N = v === "y" ? "height" : "width", X = b[v], Ae = X + y[H], z = X - y[K], L = p ? -U[N] / 2 : 0, W = T === oi ? O[N] : U[N], M = T === oi ? -U[N] : -O[N], R = e.elements.arrow, E = p && R ? _l(R) : {
26337
26364
  width: 0,
26338
26365
  height: 0
26339
- }, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Qf(), _ = Y[H], k = Y[K], ge = Hi(0, O[N], E[N]), xe = S ? O[N] / 2 - L - ge - _ - j.mainAxis : W - ge - _ - j.mainAxis, je = S ? -O[N] / 2 + L + ge + k + j.mainAxis : M + ge + k + j.mainAxis, Z = e.elements.arrow && ps(e.elements.arrow), he = Z ? v === "y" ? Z.clientTop || 0 : Z.clientLeft || 0 : 0, D = (Ie = ie == null ? void 0 : ie[v]) != null ? Ie : 0, se = X + xe - D - he, me = X + je - D, ee = Hi(p ? rA(Ae, se) : Ae, X, p ? co(z, me) : z);
26366
+ }, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Qf(), _ = Y[H], k = Y[K], ge = Hi(0, O[N], E[N]), xe = S ? O[N] / 2 - L - ge - _ - j.mainAxis : W - ge - _ - j.mainAxis, je = S ? -O[N] / 2 + L + ge + k + j.mainAxis : M + ge + k + j.mainAxis, Z = e.elements.arrow && ps(e.elements.arrow), he = Z ? v === "y" ? Z.clientTop || 0 : Z.clientLeft || 0 : 0, D = (Ie = ie == null ? void 0 : ie[v]) != null ? Ie : 0, se = X + xe - D - he, me = X + je - D, ee = Hi(p ? oA(Ae, se) : Ae, X, p ? co(z, me) : z);
26340
26367
  b[v] = ee, le[v] = ee - X;
26341
26368
  }
26342
26369
  if (a) {
@@ -26554,7 +26581,7 @@ var Vk = [pk, Pk, fk, If, Tk, Dk, Nk, uk, kk], Wk = /* @__PURE__ */ Jk({
26554
26581
  function _k(n, e) {
26555
26582
  return {}.hasOwnProperty.call(n, e);
26556
26583
  }
26557
- function la(n, e, t) {
26584
+ function ca(n, e, t) {
26558
26585
  if (Array.isArray(n)) {
26559
26586
  var r = n[e];
26560
26587
  return r ?? (Array.isArray(t) ? t[e] : t);
@@ -26601,7 +26628,7 @@ function t1(n) {
26601
26628
  function n1(n) {
26602
26629
  return n.split("-")[0];
26603
26630
  }
26604
- function oA(n) {
26631
+ function iA(n) {
26605
26632
  return [].slice.call(n);
26606
26633
  }
26607
26634
  function gd(n) {
@@ -26627,9 +26654,9 @@ function i1(n) {
26627
26654
  return !!(n && n._tippy && n._tippy.reference === n);
26628
26655
  }
26629
26656
  function s1(n) {
26630
- return ss(n) ? [n] : r1(n) ? oA(n) : Array.isArray(n) ? n : oA(document.querySelectorAll(n));
26657
+ return ss(n) ? [n] : r1(n) ? iA(n) : Array.isArray(n) ? n : iA(document.querySelectorAll(n));
26631
26658
  }
26632
- function ca(n, e) {
26659
+ function ua(n, e) {
26633
26660
  n.forEach(function(t) {
26634
26661
  t && (t.style.transitionDuration = e + "ms");
26635
26662
  });
@@ -26653,7 +26680,7 @@ function a1(n, e) {
26653
26680
  return B || y || x || T;
26654
26681
  });
26655
26682
  }
26656
- function ua(n, e, t) {
26683
+ function da(n, e, t) {
26657
26684
  var r = e + "EventListener";
26658
26685
  ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
26659
26686
  n[r](o, t);
@@ -26877,7 +26904,7 @@ function Bd(n, e) {
26877
26904
  ss(e.content) ? (ol(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? ol(n, e.content) : n.textContent = e.content);
26878
26905
  }
26879
26906
  function il(n) {
26880
- var e = n.firstElementChild, t = oA(e.children);
26907
+ var e = n.firstElementChild, t = iA(e.children);
26881
26908
  return {
26882
26909
  box: e,
26883
26910
  content: t.find(function(r) {
@@ -26906,7 +26933,7 @@ function Ff(n) {
26906
26933
  };
26907
26934
  }
26908
26935
  Ff.$$tippy = !0;
26909
- var Q1 = 1, Ss = [], da = [];
26936
+ var Q1 = 1, Ss = [], ga = [];
26910
26937
  function v1(n, e) {
26911
26938
  var t = Cd(n, Object.assign({}, dn, Pf(gd(e)))), r, o, i, A = !1, a = !1, l = !1, c = !1, u, d, g, p = [], C = ud(se, t.interactiveDebounce), B, y = Q1++, x = null, T = t1(t.plugins), S = {
26912
26939
  // Is the instance currently enabled?
@@ -26974,7 +27001,7 @@ function v1(n, e) {
26974
27001
  return il(b);
26975
27002
  }
26976
27003
  function N(ne) {
26977
- return v.state.isMounted && !v.state.isVisible || Un.isTouch || u && u.type === "focus" ? 0 : la(v.props.delay, ne ? 0 : 1, dn.delay);
27004
+ return v.state.isMounted && !v.state.isVisible || Un.isTouch || u && u.type === "focus" ? 0 : ca(v.props.delay, ne ? 0 : 1, dn.delay);
26978
27005
  }
26979
27006
  function X(ne) {
26980
27007
  ne === void 0 && (ne = !1), b.style.pointerEvents = v.props.interactive && !ne ? "" : "none", b.style.zIndex = "" + v.props.zIndex;
@@ -27057,11 +27084,11 @@ function v1(n, e) {
27057
27084
  function xe(ne, De) {
27058
27085
  var Re = K().box;
27059
27086
  function q(re) {
27060
- re.target === Re && (ua(Re, "remove", q), De());
27087
+ re.target === Re && (da(Re, "remove", q), De());
27061
27088
  }
27062
27089
  if (ne === 0)
27063
27090
  return De();
27064
- ua(Re, "remove", d), ua(Re, "add", q), d = q;
27091
+ da(Re, "remove", d), da(Re, "add", q), d = q;
27065
27092
  }
27066
27093
  function je(ne, De, Re) {
27067
27094
  Re === void 0 && (Re = !1);
@@ -27211,7 +27238,7 @@ function v1(n, e) {
27211
27238
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
27212
27239
  }
27213
27240
  function ze() {
27214
- return oA(b.querySelectorAll("[data-tippy-root]"));
27241
+ return iA(b.querySelectorAll("[data-tippy-root]"));
27215
27242
  }
27216
27243
  function Qt(ne) {
27217
27244
  v.clearDelayTimeouts(), ne && Ae("onTrigger", [v, ne]), Y();
@@ -27263,20 +27290,20 @@ function v1(n, e) {
27263
27290
  }
27264
27291
  function mi() {
27265
27292
  process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, Mo("show"));
27266
- var ne = v.state.isVisible, De = v.state.isDestroyed, Re = !v.state.isEnabled, q = Un.isTouch && !v.props.touch, re = la(v.props.duration, 0, dn.duration);
27293
+ var ne = v.state.isVisible, De = v.state.isDestroyed, Re = !v.state.isEnabled, q = Un.isTouch && !v.props.touch, re = ca(v.props.duration, 0, dn.duration);
27267
27294
  if (!(ne || De || Re || q) && !Ie().hasAttribute("disabled") && (Ae("onShow", [v], !1), v.props.onShow(v) !== !1)) {
27268
27295
  if (v.state.isVisible = !0, le() && (b.style.visibility = "visible"), X(), Y(), v.state.isMounted || (b.style.transition = "none"), le()) {
27269
27296
  var V = K(), ce = V.box, Ee = V.content;
27270
- ca([ce, Ee], 0);
27297
+ ua([ce, Ee], 0);
27271
27298
  }
27272
27299
  g = function() {
27273
27300
  var ht;
27274
27301
  if (!(!v.state.isVisible || c)) {
27275
27302
  if (c = !0, b.offsetHeight, b.style.transition = v.props.moveTransition, le() && v.props.animation) {
27276
27303
  var xn = K(), sr = xn.box, pn = xn.content;
27277
- ca([sr, pn], re), hd([sr, pn], "visible");
27304
+ ua([sr, pn], re), hd([sr, pn], "visible");
27278
27305
  }
27279
- z(), L(), dd(da, v), (ht = v.popperInstance) == null || ht.forceUpdate(), Ae("onMount", [v]), v.props.animation && le() && ge(re, function() {
27306
+ z(), L(), dd(ga, v), (ht = v.popperInstance) == null || ht.forceUpdate(), Ae("onMount", [v]), v.props.animation && le() && ge(re, function() {
27280
27307
  v.state.isShown = !0, Ae("onShown", [v]);
27281
27308
  });
27282
27309
  }
@@ -27285,11 +27312,11 @@ function v1(n, e) {
27285
27312
  }
27286
27313
  function wo() {
27287
27314
  process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, Mo("hide"));
27288
- var ne = !v.state.isVisible, De = v.state.isDestroyed, Re = !v.state.isEnabled, q = la(v.props.duration, 1, dn.duration);
27315
+ var ne = !v.state.isVisible, De = v.state.isDestroyed, Re = !v.state.isEnabled, q = ca(v.props.duration, 1, dn.duration);
27289
27316
  if (!(ne || De || Re) && (Ae("onHide", [v], !1), v.props.onHide(v) !== !1)) {
27290
27317
  if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, A = !1, le() && (b.style.visibility = "hidden"), W(), _(), X(!0), le()) {
27291
27318
  var re = K(), V = re.box, ce = re.content;
27292
- v.props.animation && (ca([V, ce], q), hd([V, ce], "hidden"));
27319
+ v.props.animation && (ua([V, ce], q), hd([V, ce], "hidden"));
27293
27320
  }
27294
27321
  z(), L(), v.props.animation ? le() && k(q, v.unmount) : v.unmount();
27295
27322
  }
@@ -27300,7 +27327,7 @@ function v1(n, e) {
27300
27327
  function Ci() {
27301
27328
  process.env.NODE_ENV !== "production" && lr(v.state.isDestroyed, Mo("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (de(), ze().forEach(function(ne) {
27302
27329
  ne._tippy.unmount();
27303
- }), b.parentNode && b.parentNode.removeChild(b), da = da.filter(function(ne) {
27330
+ }), b.parentNode && b.parentNode.removeChild(b), ga = ga.filter(function(ne) {
27304
27331
  return ne !== v;
27305
27332
  }), v.state.isMounted = !1, Ae("onHidden", [v]));
27306
27333
  }
@@ -27598,7 +27625,7 @@ it({
27598
27625
  shouldShow: A,
27599
27626
  tippyOptions: a
27600
27627
  }));
27601
- }), AA(() => {
27628
+ }), aA(() => {
27602
27629
  const { pluginKey: r, editor: o } = n;
27603
27630
  o.unregisterPlugin(r);
27604
27631
  }), () => {
@@ -27672,7 +27699,7 @@ const x1 = it({
27672
27699
  element: o
27673
27700
  }), r.createNodeViews();
27674
27701
  });
27675
- }), AA(() => {
27702
+ }), aA(() => {
27676
27703
  const r = n.editor;
27677
27704
  if (!r || (r.isDestroyed || r.view.setProps({
27678
27705
  nodeViews: {}
@@ -27725,7 +27752,7 @@ it({
27725
27752
  tippyOptions: i,
27726
27753
  shouldShow: A
27727
27754
  }));
27728
- }), AA(() => {
27755
+ }), aA(() => {
27729
27756
  const { pluginKey: r, editor: o } = n;
27730
27757
  o.unregisterPlugin(r);
27731
27758
  }), () => {
@@ -27778,7 +27805,7 @@ const D1 = (n = {}) => {
27778
27805
  const e = hm();
27779
27806
  return Et(() => {
27780
27807
  e.value = new b1(n);
27781
- }), AA(() => {
27808
+ }), aA(() => {
27782
27809
  var t;
27783
27810
  (t = e.value) === null || t === void 0 || t.destroy();
27784
27811
  }), e;
@@ -27932,7 +27959,7 @@ const D1 = (n = {}) => {
27932
27959
  addCommands() {
27933
27960
  return {
27934
27961
  removeEmptyTextStyle: () => ({ state: n, commands: e }) => {
27935
- const t = DA(n, this.type);
27962
+ const t = SA(n, this.type);
27936
27963
  return Object.entries(t).some(([, o]) => !!o) ? !0 : e.unsetMark(this.name);
27937
27964
  }
27938
27965
  };
@@ -28567,10 +28594,10 @@ const tM = Yt.create({
28567
28594
  }));
28568
28595
  }
28569
28596
  });
28570
- var iA = 200, kt = function() {
28597
+ var sA = 200, kt = function() {
28571
28598
  };
28572
28599
  kt.prototype.append = function(e) {
28573
- return e.length ? (e = kt.from(e), !this.length && e || e.length < iA && this.leafAppend(e) || this.length < iA && e.leafPrepend(this) || this.appendInner(e)) : this;
28600
+ return e.length ? (e = kt.from(e), !this.length && e || e.length < sA && this.leafAppend(e) || this.length < sA && e.leafPrepend(this) || this.appendInner(e)) : this;
28574
28601
  };
28575
28602
  kt.prototype.prepend = function(e) {
28576
28603
  return e.length ? kt.from(e).append(this) : this;
@@ -28619,10 +28646,10 @@ var Hf = /* @__PURE__ */ function(n) {
28619
28646
  if (o(this.values[l], a + l) === !1)
28620
28647
  return !1;
28621
28648
  }, e.prototype.leafAppend = function(o) {
28622
- if (this.length + o.length <= iA)
28649
+ if (this.length + o.length <= sA)
28623
28650
  return new e(this.values.concat(o.flatten()));
28624
28651
  }, e.prototype.leafPrepend = function(o) {
28625
- if (this.length + o.length <= iA)
28652
+ if (this.length + o.length <= sA)
28626
28653
  return new e(o.flatten().concat(this.values));
28627
28654
  }, t.length.get = function() {
28628
28655
  return this.values.length;
@@ -28814,9 +28841,9 @@ function aM(n, e, t, r) {
28814
28841
  if (A && A.getMeta(uo))
28815
28842
  return A.getMeta(uo).redo ? new Qr(n.done.addTransform(t, void 0, r, Ns(e)), n.undone, wd(t.mapping.maps), n.prevTime, n.prevComposition) : new Qr(n.done, n.undone.addTransform(t, void 0, r, Ns(e)), null, n.prevTime, n.prevComposition);
28816
28843
  if (t.getMeta("addToHistory") !== !1 && !(A && A.getMeta("addToHistory") === !1)) {
28817
- let a = t.getMeta("composition"), l = n.prevTime == 0 || !A && n.prevComposition != a && (n.prevTime < (t.time || 0) - r.newGroupDelay || !lM(t, n.prevRanges)), c = A ? ga(n.prevRanges, t.mapping) : wd(t.mapping.maps);
28844
+ let a = t.getMeta("composition"), l = n.prevTime == 0 || !A && n.prevComposition != a && (n.prevTime < (t.time || 0) - r.newGroupDelay || !lM(t, n.prevRanges)), c = A ? ha(n.prevRanges, t.mapping) : wd(t.mapping.maps);
28818
28845
  return new Qr(n.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r, Ns(e)), Tn.empty, c, t.time, a ?? n.prevComposition);
28819
- } else return (i = t.getMeta("rebased")) ? new Qr(n.done.rebased(t, i), n.undone.rebased(t, i), ga(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new Qr(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), ga(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
28846
+ } else return (i = t.getMeta("rebased")) ? new Qr(n.done.rebased(t, i), n.undone.rebased(t, i), ha(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new Qr(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), ha(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
28820
28847
  }
28821
28848
  function lM(n, e) {
28822
28849
  if (!e)
@@ -28835,7 +28862,7 @@ function wd(n) {
28835
28862
  n[t].forEach((r, o, i, A) => e.push(i, A));
28836
28863
  return e;
28837
28864
  }
28838
- function ga(n, e) {
28865
+ function ha(n, e) {
28839
28866
  if (!n)
28840
28867
  return null;
28841
28868
  let t = [];
@@ -28852,18 +28879,18 @@ function cM(n, e, t) {
28852
28879
  let A = i.selection.resolve(i.transform.doc), a = (t ? n.done : n.undone).addTransform(i.transform, e.selection.getBookmark(), o, r), l = new Qr(t ? a : i.remaining, t ? i.remaining : a, null, 0, -1);
28853
28880
  return i.transform.setSelection(A).setMeta(uo, { redo: t, historyState: l });
28854
28881
  }
28855
- let ha = !1, yd = null;
28882
+ let fa = !1, yd = null;
28856
28883
  function Ns(n) {
28857
28884
  let e = n.plugins;
28858
28885
  if (yd != e) {
28859
- ha = !1, yd = e;
28886
+ fa = !1, yd = e;
28860
28887
  for (let t = 0; t < e.length; t++)
28861
28888
  if (e[t].spec.historyPreserveItems) {
28862
- ha = !0;
28889
+ fa = !0;
28863
28890
  break;
28864
28891
  }
28865
28892
  }
28866
- return ha;
28893
+ return fa;
28867
28894
  }
28868
28895
  const uo = new or("history"), uM = new or("closeHistory");
28869
28896
  function dM(n = {}) {
@@ -29121,7 +29148,7 @@ const Yf = qf(!1, !0), jf = qf(!0, !0), gM = Yt.create({
29121
29148
  addCommands() {
29122
29149
  return {
29123
29150
  removeEmptyTextStyle: () => ({ state: n, commands: e }) => {
29124
- const t = DA(n, this.type);
29151
+ const t = SA(n, this.type);
29125
29152
  return Object.entries(t).some(([, o]) => !!o) ? !0 : e.unsetMark(this.name);
29126
29153
  }
29127
29154
  };
@@ -29948,6 +29975,9 @@ const pO = /* @__PURE__ */ oe(cO, [["render", mO]]), CO = {
29948
29975
  }
29949
29976
  },
29950
29977
  methods: {
29978
+ clearInput() {
29979
+ this.locationName && (this.locationName = "");
29980
+ },
29951
29981
  updateInput(n) {
29952
29982
  this.inputValue = n.target.value, this.inputValue.trim() === "" ? this.$emit("update:location", null) : this.debounceSearch();
29953
29983
  },
@@ -30032,8 +30062,9 @@ function vO(n, e, t, r, o, i) {
30032
30062
  class: "pb-2",
30033
30063
  placeholder: "Enter Location Name",
30034
30064
  type: "formInput",
30065
+ onFocus: i.clearInput,
30035
30066
  "onUpdate:value": i.handleLocationName
30036
- }, null, 8, ["value", "onUpdate:value"]),
30067
+ }, null, 8, ["value", "onFocus", "onUpdate:value"]),
30037
30068
  h(l, {
30038
30069
  modelValue: o.formData.address,
30039
30070
  "onUpdate:modelValue": e[2] || (e[2] = (u) => o.formData.address = u),
@@ -30233,7 +30264,7 @@ const MO = /* @__PURE__ */ oe(wO, [["render", kO]]), OO = {
30233
30264
  required: !0
30234
30265
  },
30235
30266
  persons: {
30236
- type: [Array, Object],
30267
+ type: Array,
30237
30268
  required: !0
30238
30269
  },
30239
30270
  validation: {
@@ -30259,7 +30290,7 @@ const MO = /* @__PURE__ */ oe(wO, [["render", kO]]), OO = {
30259
30290
  },
30260
30291
  components: {
30261
30292
  FindPerson: MO,
30262
- ImageCropper: hA,
30293
+ ImageCropper: fA,
30263
30294
  BaseText: Be,
30264
30295
  DatePicker: pg,
30265
30296
  FindLocation: sc,
@@ -30289,6 +30320,10 @@ const MO = /* @__PURE__ */ oe(wO, [["render", kO]]), OO = {
30289
30320
  registrationCutOff() {
30290
30321
  var n;
30291
30322
  return ((n = this.tournament) == null ? void 0 : n.RegistrationCutOff) || /* @__PURE__ */ new Date();
30323
+ },
30324
+ getDefaultPerson: function() {
30325
+ const n = this.persons.find((e) => e.PersonId === this.tournament.PrimaryContactId);
30326
+ return n ? n.DisplayName : "";
30292
30327
  }
30293
30328
  },
30294
30329
  methods: {
@@ -30435,8 +30470,9 @@ function jO(n, e, t, r, o, i) {
30435
30470
  }, null, 8, ["invalid", "text"]),
30436
30471
  h(d, {
30437
30472
  invalid: t.validation.Description.invalid,
30473
+ initialContent: t.tournament.Description,
30438
30474
  "onUpdate:editorContent": e[4] || (e[4] = (p) => i.emitUpdate("Description", p))
30439
- }, null, 8, ["invalid"])
30475
+ }, null, 8, ["invalid", "initialContent"])
30440
30476
  ]),
30441
30477
  f("div", YO, [
30442
30478
  h(A, {
@@ -30450,11 +30486,12 @@ function jO(n, e, t, r, o, i) {
30450
30486
  }),
30451
30487
  h(g, {
30452
30488
  addBorder: !0,
30453
- persons: Array.isArray(t.persons) ? t.persons : [t.persons],
30489
+ persons: t.persons,
30490
+ defaultValue: i.getDefaultPerson,
30454
30491
  addNewText: "Add New Person",
30455
30492
  onNewPersonSubmitted: e[5] || (e[5] = (p) => i.handlePersonUpdate("PrimaryContactId", p)),
30456
30493
  onPersonSelected: e[6] || (e[6] = (p) => i.handlePersonUpdate("PrimaryContactId", p))
30457
- }, null, 8, ["persons"])
30494
+ }, null, 8, ["persons", "defaultValue"])
30458
30495
  ])
30459
30496
  ]);
30460
30497
  }
@@ -30614,9 +30651,9 @@ const mn = /* @__PURE__ */ oe(WO, [["render", eT]]), ir = (n, e) => n.toLocaleLo
30614
30651
  { id: "Basic", label: "Basic", color: "primaryHighlight", icon: "fa-info-circle" },
30615
30652
  // {id: 'Stats', label: 'Statistics', color: 'primaryHighlight', icon: 'fa-trophy'},
30616
30653
  { id: "Attendance", label: "Attendance", color: "primaryHighlight", icon: "fa-user-check" }
30617
- ], fa = () => [
30654
+ ], Ls = () => [
30618
30655
  { id: "Basic", label: "Basic", color: "primaryHighlight", icon: "fa-info-circle" },
30619
- { id: "Hosting", label: "Hosting", color: "primaryHighlight", icon: "fa-gear" },
30656
+ { id: "Hosting", label: "Hosting", color: "primaryHighlight", icon: "fa-globe-pointer" },
30620
30657
  { id: "Events", label: "Events", color: "primaryHighlight", icon: "fa-swords" }
30621
30658
  ], nT = {
30622
30659
  name: "TournamentPageTwo",
@@ -30822,7 +30859,7 @@ const mT = (n, e) => {
30822
30859
  TournamentPageTwo: fT,
30823
30860
  EditEventsTopMenu: mn,
30824
30861
  BaseButton: He,
30825
- ImageCropper: hA,
30862
+ ImageCropper: fA,
30826
30863
  BaseText: Be,
30827
30864
  TournamentPageOne: KO,
30828
30865
  BaseModal: ci
@@ -30880,11 +30917,11 @@ const mT = (n, e) => {
30880
30917
  },
30881
30918
  computed: {
30882
30919
  filteredTabs() {
30883
- return this.isNewTournament ? fa().filter((n) => n.label !== "Events") : fa();
30920
+ return this.isNewTournament ? Ls().filter((n) => n.label !== "Events") : Ls();
30884
30921
  }
30885
30922
  },
30886
30923
  methods: {
30887
- tournamentTabs: fa,
30924
+ tournamentTabs: Ls,
30888
30925
  handleTab(n) {
30889
30926
  this.currentTab = n, this.$emit("tab:menu-click", n);
30890
30927
  },
@@ -30942,7 +30979,7 @@ const mT = (n, e) => {
30942
30979
  handleSubmit() {
30943
30980
  this.validateAllFields() && (this.saveButtonLabel = "Saving...", setTimeout(() => {
30944
30981
  this.saveButtonLabel = "Saved!";
30945
- }, 2e3), this.setEndDate(), console.log(this.localTournament), this.$emit("submit:tournament", this.localTournament));
30982
+ }, 2e3), this.setEndDate(), this.$emit("submit:tournament", this.localTournament));
30946
30983
  }
30947
30984
  }
30948
30985
  }, CT = { class: "bg-neutral w-full" }, IT = {
@@ -30964,7 +31001,7 @@ function ET(n, e, t, r, o, i) {
30964
31001
  key: 0,
30965
31002
  tournament: o.localTournament,
30966
31003
  locations: t.locations,
30967
- persons: t.persons,
31004
+ persons: Array.isArray(t.persons) ? t.persons : [t.persons],
30968
31005
  validation: o.validation,
30969
31006
  imageServer: t.imageServer,
30970
31007
  uploadImageName: t.uploadImageName,
@@ -31470,11 +31507,7 @@ const Kf = /* @__PURE__ */ oe(xT, [["render", o4]]), i4 = {
31470
31507
  return {
31471
31508
  emptyDesertIcon: Vt,
31472
31509
  currentTab: "Events",
31473
- tabs: [
31474
- { id: "Basic", label: "Basic", color: "primaryHighlight", icon: "fa-edit" },
31475
- { id: "Details", label: "Details", color: "primaryHighlight", icon: "fa-tasks" },
31476
- { id: "Events", label: "Events", color: "primaryHighlight", icon: "fa-swords" }
31477
- ]
31510
+ tabs: Ls()
31478
31511
  };
31479
31512
  },
31480
31513
  methods: {
@@ -32504,9 +32537,9 @@ function pR(n, e, t, r, o, i) {
32504
32537
  ], 2)
32505
32538
  ]);
32506
32539
  }
32507
- const kA = /* @__PURE__ */ oe(dR, [["render", pR]]), CR = {
32540
+ const MA = /* @__PURE__ */ oe(dR, [["render", pR]]), CR = {
32508
32541
  name: "AttendanceSummary",
32509
- components: { BaseText: Be, CounterBox: kA, EventStatusBox: fi },
32542
+ components: { BaseText: Be, CounterBox: MA, EventStatusBox: fi },
32510
32543
  props: {
32511
32544
  event: {
32512
32545
  type: Object,
@@ -32793,7 +32826,7 @@ function UR(n, e, t, r, o, i) {
32793
32826
  }
32794
32827
  const C8 = /* @__PURE__ */ oe(TR, [["render", UR]]), GR = {
32795
32828
  name: "PoolSummary",
32796
- components: { BaseIcon: qe, BaseButton: He, BaseText: Be, CounterBox: kA, EventStatusBox: fi },
32829
+ components: { BaseIcon: qe, BaseButton: He, BaseText: Be, CounterBox: MA, EventStatusBox: fi },
32797
32830
  props: {
32798
32831
  event: {
32799
32832
  type: Object,
@@ -33796,9 +33829,9 @@ function g7(n, e, t, r, o, i) {
33796
33829
  ])
33797
33830
  ]);
33798
33831
  }
33799
- const MA = /* @__PURE__ */ oe(a7, [["render", g7]]), h7 = {
33832
+ const OA = /* @__PURE__ */ oe(a7, [["render", g7]]), h7 = {
33800
33833
  components: {
33801
- ToggleHeader: MA,
33834
+ ToggleHeader: OA,
33802
33835
  FindOrAddPerson: Gf,
33803
33836
  EditEventsTopMenu: mn,
33804
33837
  StaffCard: r7,
@@ -35540,7 +35573,7 @@ const Xf = /* @__PURE__ */ oe(BF, [["render", QF]]), vF = {
35540
35573
  determineCountingDirection() {
35541
35574
  if (Array.isArray(this.eventRules)) {
35542
35575
  const n = this.eventRules.find((e) => e.Rules.RuleName === "PoolScoreDirection");
35543
- this.isCountingUp = n ? n.RuleValue === "true" : !0, console.log(`isCountingUp: ${this.isCountingUp}`);
35576
+ this.isCountingUp = n ? n.RuleValue === "true" : !0;
35544
35577
  }
35545
35578
  },
35546
35579
  toggleTimer() {
@@ -36270,7 +36303,7 @@ const em = /* @__PURE__ */ oe(VF, [["render", pN]]), CN = {
36270
36303
  DirectorModal: _f,
36271
36304
  BoutCard: ac,
36272
36305
  BaseText: Be,
36273
- ToggleHeader: MA,
36306
+ ToggleHeader: OA,
36274
36307
  EditEventsTopMenu: mn
36275
36308
  },
36276
36309
  emits: ["update:bout", "tab:menu-click", "submit:bout", "update:directing-bout", "penalty:update", "penalty:add", "penalty:remove"],
@@ -36559,7 +36592,7 @@ function TN(n, e, t, r, o, i) {
36559
36592
  }
36560
36593
  const E8 = /* @__PURE__ */ oe(CN, [["render", TN]]), RN = {
36561
36594
  name: "PoolResultsHeader",
36562
- components: { BaseIcon: qe, BaseButton: He, BaseText: Be, CounterBox: kA, EventStatusBox: fi },
36595
+ components: { BaseIcon: qe, BaseButton: He, BaseText: Be, CounterBox: MA, EventStatusBox: fi },
36563
36596
  props: {
36564
36597
  eventName: {
36565
36598
  type: String,
@@ -38248,7 +38281,7 @@ const $L = /* @__PURE__ */ oe(JL, [["render", _L], ["__scopeId", "data-v-8f60aeb
38248
38281
  DirectorModal: _f,
38249
38282
  BoutCard: ac,
38250
38283
  BaseText: Be,
38251
- ToggleHeader: MA,
38284
+ ToggleHeader: OA,
38252
38285
  EditEventsTopMenu: mn
38253
38286
  },
38254
38287
  props: {
@@ -38453,7 +38486,7 @@ function oH(n, e, t, r, o, i) {
38453
38486
  const v8 = /* @__PURE__ */ oe(eH, [["render", oH]]), iH = {
38454
38487
  components: {
38455
38488
  EditEventWizard: Ig,
38456
- ToggleHeader: MA,
38489
+ ToggleHeader: OA,
38457
38490
  EditEventsTopMenu: mn
38458
38491
  },
38459
38492
  props: {
@@ -38579,7 +38612,7 @@ function fH(n, e, t, r, o, i) {
38579
38612
  }
38580
38613
  const mH = /* @__PURE__ */ oe(aH, [["render", fH]]), pH = {
38581
38614
  name: "EventFinalResultsHeader",
38582
- components: { BaseButton: He, BaseIcon: qe, BaseText: Be, CounterBox: kA, EventStatusBox: fi },
38615
+ components: { BaseButton: He, BaseIcon: qe, BaseText: Be, CounterBox: MA, EventStatusBox: fi },
38583
38616
  props: {
38584
38617
  event: {
38585
38618
  type: Object,
@@ -40004,7 +40037,7 @@ const I2 = /* @__PURE__ */ oe(h2, [["render", C2]]), B2 = {
40004
40037
  BaseText: Be,
40005
40038
  PersonManagementSkeleton: Kq,
40006
40039
  EditEventsTopMenu: mn,
40007
- ImageCropper: hA
40040
+ ImageCropper: fA
40008
40041
  },
40009
40042
  props: {
40010
40043
  personProfile: {
@@ -40063,7 +40096,7 @@ const I2 = /* @__PURE__ */ oe(h2, [["render", C2]]), B2 = {
40063
40096
  methods: {
40064
40097
  personProfileTabs: tT,
40065
40098
  handleProfilePicUpdate(n) {
40066
- console.log(n), this.person.ProfileImage = n, this.$emit("update:image", n);
40099
+ this.person.ProfileImage = n, this.$emit("update:image", n);
40067
40100
  },
40068
40101
  handleSubmit() {
40069
40102
  this.$emit("submit:person", this.person);
@@ -40342,7 +40375,7 @@ const j2 = /* @__PURE__ */ oe(H2, [["render", Y2]]), K2 = {
40342
40375
  },
40343
40376
  methods: {
40344
40377
  emitUpdate(n, e) {
40345
- console.log("field", n, "value", e), this.$emit("update:club", { field: n, value: e });
40378
+ this.$emit("update:club", { field: n, value: e });
40346
40379
  }
40347
40380
  }
40348
40381
  }, U2 = { class: "flex flex-col mb-4" }, G2 = { class: "flex flex-col mb-4" }, J2 = { class: "flex flex-col mb-4" }, V2 = { class: "flex flex-col mb-4" }, W2 = { class: "flex flex-col mb-4" }, X2 = { class: "flex flex-col mb-4" };
@@ -40424,7 +40457,7 @@ const _2 = /* @__PURE__ */ oe(K2, [["render", Z2]]), $2 = {
40424
40457
  ClubManagementSkeleton: L2,
40425
40458
  ClubColumn: T2,
40426
40459
  BaseText: Be,
40427
- ImageCropper: hA,
40460
+ ImageCropper: fA,
40428
40461
  TitledInput: bn,
40429
40462
  DropDownMenu: Ot,
40430
40463
  BaseButton: He,
@@ -40510,11 +40543,11 @@ const _2 = /* @__PURE__ */ oe(K2, [["render", Z2]]), $2 = {
40510
40543
  },
40511
40544
  updateClub({ field: n, value: e }) {
40512
40545
  if (n === "Color1") {
40513
- this.club.Color1 = e.value, console.log(this.club);
40546
+ this.club.Color1 = e.value;
40514
40547
  return;
40515
40548
  }
40516
40549
  if (n === "Color2") {
40517
- this.club.Color2 = e.value, console.log(this.club);
40550
+ this.club.Color2 = e.value;
40518
40551
  return;
40519
40552
  }
40520
40553
  if (n === "add:newAddress") {
@@ -41361,7 +41394,7 @@ export {
41361
41394
  Vm as FilterAndSortBar,
41362
41395
  ep as FilterUpcomingPast,
41363
41396
  g8 as GridContainer,
41364
- hA as ImageCropper,
41397
+ fA as ImageCropper,
41365
41398
  m8 as ListEvents,
41366
41399
  u8 as LoadingModal,
41367
41400
  O8 as PenaltyReport,