@apolitical/component-library 4.3.0-4520.2 → 4.3.0-4520.4

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 (3) hide show
  1. package/index.js +21 -21
  2. package/index.mjs +580 -586
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -132,13 +132,13 @@ var Ao;
132
132
  function lh() {
133
133
  return Ao || (Ao = 1, process.env.NODE_ENV !== "production" && function() {
134
134
  var e = re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, f = "@@iterator";
135
- function D(O) {
135
+ function y(O) {
136
136
  if (O === null || typeof O != "object")
137
137
  return null;
138
138
  var ae = g && O[g] || O[f];
139
139
  return typeof ae == "function" ? ae : null;
140
140
  }
141
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
+ var D = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
142
142
  function x(O) {
143
143
  {
144
144
  for (var ae = arguments.length, ue = new Array(ae > 1 ? ae - 1 : 0), we = 1; we < ae; we++)
@@ -148,7 +148,7 @@ function lh() {
148
148
  }
149
149
  function B(O, ae, ue) {
150
150
  {
151
- var we = y.ReactDebugCurrentFrame, Ne = we.getStackAddendum();
151
+ var we = D.ReactDebugCurrentFrame, Ne = we.getStackAddendum();
152
152
  Ne !== "" && (ae += "%s", ue = ue.concat([Ne]));
153
153
  var Le = ue.map(function(je) {
154
154
  return String(je);
@@ -282,7 +282,7 @@ function lh() {
282
282
  S < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
283
283
  }
284
284
  }
285
- var I = y.ReactCurrentDispatcher, H;
285
+ var I = D.ReactCurrentDispatcher, H;
286
286
  function ee(O, ae, ue) {
287
287
  {
288
288
  if (H === void 0)
@@ -408,7 +408,7 @@ function lh() {
408
408
  }
409
409
  return "";
410
410
  }
411
- var Ee = Object.prototype.hasOwnProperty, Fe = {}, Ze = y.ReactDebugCurrentFrame;
411
+ var Ee = Object.prototype.hasOwnProperty, Fe = {}, Ze = D.ReactDebugCurrentFrame;
412
412
  function He(O) {
413
413
  if (O) {
414
414
  var ae = O._owner, ue = Ae(O.type, O._source, ae ? ae.type : null);
@@ -459,7 +459,7 @@ function lh() {
459
459
  if (We(O))
460
460
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Oe(O)), V(O);
461
461
  }
462
- var ge = y.ReactCurrentOwner, ye = {
462
+ var ge = D.ReactCurrentOwner, ye = {
463
463
  key: !0,
464
464
  ref: !0,
465
465
  __self: !0,
@@ -557,7 +557,7 @@ function lh() {
557
557
  return Dt(O, Te, ut, Ne, we, ge.current, je);
558
558
  }
559
559
  }
560
- var or = y.ReactCurrentOwner, qr = y.ReactDebugCurrentFrame;
560
+ var or = D.ReactCurrentOwner, qr = D.ReactDebugCurrentFrame;
561
561
  function On(O) {
562
562
  if (O) {
563
563
  var ae = O._owner, ue = Ae(O.type, O._source, ae ? ae.type : null);
@@ -631,7 +631,7 @@ Check the top-level render call using <` + ue + ">.");
631
631
  else if (ai(O))
632
632
  O._store && (O._store.validated = !0);
633
633
  else if (O) {
634
- var Ne = D(O);
634
+ var Ne = y(O);
635
635
  if (typeof Ne == "function" && Ne !== O.entries)
636
636
  for (var Le = Ne.call(O), je; !(je = Le.next()).done; )
637
637
  ai(je.value) && Co(je.value, ae);
@@ -738,7 +738,7 @@ function yc(e, t, n) {
738
738
  if (typeof e != "function")
739
739
  throw new TypeError("Expected a function");
740
740
  t = +t || 0;
741
- var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, D = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, x = D ? Math.max(+n.maxWait || 0, t) : null;
741
+ var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, y = "maxWait" in n, D = "debounceOnServer" in n && !!n.debounceOnServer, x = y ? Math.max(+n.maxWait || 0, t) : null;
742
742
  he(function() {
743
743
  return h.current = !0, function() {
744
744
  h.current = !1;
@@ -754,7 +754,7 @@ function yc(e, t, n) {
754
754
  if (!h.current)
755
755
  return !1;
756
756
  var R = M - a.current;
757
- return !a.current || R >= t || R < 0 || D && M - i.current >= x;
757
+ return !a.current || R >= t || R < 0 || y && M - i.current >= x;
758
758
  }, T = function(M) {
759
759
  return s.current = null, f && o.current ? k(M) : (o.current = l.current = null, u.current);
760
760
  }, $ = function M() {
@@ -762,16 +762,16 @@ function yc(e, t, n) {
762
762
  if (A(R))
763
763
  return T(R);
764
764
  if (h.current) {
765
- var w = t - (R - a.current), E = D ? Math.min(w, x - (R - i.current)) : w;
765
+ var w = t - (R - a.current), E = y ? Math.min(w, x - (R - i.current)) : w;
766
766
  C(M, E);
767
767
  }
768
768
  }, N = function() {
769
- if (p || y) {
769
+ if (p || D) {
770
770
  var M = Date.now(), R = A(M);
771
771
  if (o.current = [].slice.call(arguments), l.current = r, a.current = M, R) {
772
772
  if (!s.current && h.current)
773
773
  return i.current = a.current, C($, t), g ? k(a.current) : u.current;
774
- if (D)
774
+ if (y)
775
775
  return C($, t), k(a.current);
776
776
  }
777
777
  return s.current || C($, t), u.current;
@@ -784,7 +784,7 @@ function yc(e, t, n) {
784
784
  }, N.flush = function() {
785
785
  return s.current ? T(Date.now()) : u.current;
786
786
  }, N;
787
- }, [g, D, t, x, f, m, p, y]);
787
+ }, [g, y, t, x, f, m, p, D]);
788
788
  return B;
789
789
  }
790
790
  function Dc(e, t, n) {
@@ -890,7 +890,7 @@ const Fo = {}, nr = Ps(
890
890
  callbacks: o = {},
891
891
  ...l
892
892
  }, u) => {
893
- const c = ce(), h = ke(null), p = u || h, [m, g] = de(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: D = !1, hasForm: y = !1 } = t, { onOpen: x = () => {
893
+ const c = ce(), h = ke(null), p = u || h, [m, g] = de(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: y = !1, hasForm: D = !1 } = t, { onOpen: x = () => {
894
894
  }, onClose: B = () => {
895
895
  } } = o;
896
896
  e || (e = Date.now().toString());
@@ -922,9 +922,9 @@ const Fo = {}, nr = Ps(
922
922
  className: Z("tooltip text-medium", m, i, {
923
923
  loading: r,
924
924
  "extra-padding": f,
925
- "has-pointer": D,
926
- bottom: D === "bottom",
927
- "has-form": y
925
+ "has-pointer": y,
926
+ bottom: y === "bottom",
927
+ "has-form": D
928
928
  }),
929
929
  ...T,
930
930
  children: /* @__PURE__ */ d.jsx("div", { className: "content", hidden: m === "hidden", children: r ? /* @__PURE__ */ d.jsx("p", { children: c.formatMessage({ id: "tooltip_loading" }) }) : typeof a == "string" ? /* @__PURE__ */ d.jsx("p", { children: a }) : a })
@@ -1602,17 +1602,17 @@ const Se = ({
1602
1602
  children: h = !1,
1603
1603
  ...p
1604
1604
  }) => {
1605
- const g = Mr(typeof t == "object"), { showTooltip: f, tooltipProps: D } = wc(!!u);
1605
+ const g = Mr(typeof t == "object"), { showTooltip: f, tooltipProps: y } = wc(!!u);
1606
1606
  if (typeof t == "object" && typeof g == "number") {
1607
1607
  const k = Object.assign({}, t), C = Cc(Object.keys(k));
1608
1608
  t = Ec(g, C, k);
1609
1609
  }
1610
1610
  !l && u && (u = "");
1611
- const y = [];
1612
- typeof t == "string" && y.push(t), r && (y.push("icon"), typeof r == "object" ? (y.push(r.icon), r.position ? y.push(r.position) : y.push("left"), r.hover && y.push(`hover_${r.hover}`), r.animate && (y.push("animate"), typeof r.animate == "string" && y.push(r.animate))) : (y.push(r), !r.includes("right") && !r.includes("left") && y.push("left"))), n.muted && y.push("muted"), n.fullWidth && y.push("full-width");
1611
+ const D = [];
1612
+ typeof t == "string" && D.push(t), r && (D.push("icon"), typeof r == "object" ? (D.push(r.icon), r.position ? D.push(r.position) : D.push("left"), r.hover && D.push(`hover_${r.hover}`), r.animate && (D.push("animate"), typeof r.animate == "string" && D.push(r.animate))) : (D.push(r), !r.includes("right") && !r.includes("left") && D.push("left"))), n.muted && D.push("muted"), n.fullWidth && D.push("full-width");
1613
1613
  const x = {
1614
1614
  ...p,
1615
- className: Z(e, o, y, {
1615
+ className: Z(e, o, D, {
1616
1616
  "no-text": !h,
1617
1617
  disabled: l,
1618
1618
  button: a
@@ -1628,7 +1628,7 @@ const Se = ({
1628
1628
  x,
1629
1629
  h || (c ? /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: c }) : null)
1630
1630
  );
1631
- return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...D, children: [
1631
+ return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...y, children: [
1632
1632
  /* @__PURE__ */ d.jsx(nr, { isOpen: f, children: u }),
1633
1633
  B
1634
1634
  ] }) : B;
@@ -1768,54 +1768,50 @@ const Cn = ({ className: e = "", maxWidth: t = !1 }) => {
1768
1768
  const $r = ({ image: e, className: t, testId: n }) => {
1769
1769
  const {
1770
1770
  description: r,
1771
- alt: a,
1772
- height: i,
1773
- type: s,
1774
- query: o,
1775
- url: l,
1776
- width: u,
1777
- loading: c,
1778
- decoding: h,
1779
- fetchPriority: p
1780
- } = e;
1781
- let m = a;
1782
- m === "" ? m = "" : a == null && r && (m = r);
1783
- const { range: g, sizes: f } = Sh(e), D = si({ format: "avif", query: o, range: g, url: l }), y = si({ format: "webp", query: o, range: g, url: l }), x = si({ format: "", query: o, range: g, url: l });
1784
- return s && s.includes("svg") ? /* @__PURE__ */ d.jsx("picture", { className: t, children: /* @__PURE__ */ d.jsx(
1771
+ height: a,
1772
+ type: i,
1773
+ query: s,
1774
+ url: o,
1775
+ width: l,
1776
+ loading: u,
1777
+ decoding: c,
1778
+ fetchPriority: h
1779
+ } = e, { range: p, sizes: m } = Sh(e), g = si({ format: "avif", query: s, range: p, url: o }), f = si({ format: "webp", query: s, range: p, url: o }), y = si({ format: "", query: s, range: p, url: o });
1780
+ return i && i.includes("svg") ? /* @__PURE__ */ d.jsx("picture", { className: t, children: /* @__PURE__ */ d.jsx(
1785
1781
  "img",
1786
1782
  {
1787
- src: l,
1783
+ src: o,
1788
1784
  alt: r,
1789
- loading: c || "lazy",
1790
- decoding: h || "async",
1791
- fetchpriority: p || "auto",
1792
- width: u,
1793
- height: i,
1785
+ loading: u || "lazy",
1786
+ decoding: c || "async",
1787
+ fetchpriority: h || "auto",
1788
+ width: l,
1789
+ height: a,
1794
1790
  "data-testid": n || "image"
1795
1791
  }
1796
1792
  ) }) : /* @__PURE__ */ d.jsxs("picture", { className: t, children: [
1797
- s !== "image/gif" && /* @__PURE__ */ d.jsx(
1793
+ i !== "image/gif" && /* @__PURE__ */ d.jsx(
1798
1794
  "source",
1799
1795
  {
1800
1796
  type: "image/avif",
1801
- srcSet: D,
1802
- sizes: f,
1797
+ srcSet: g,
1798
+ sizes: m,
1803
1799
  "data-testid": "source"
1804
1800
  }
1805
1801
  ),
1806
- /* @__PURE__ */ d.jsx("source", { type: "image/webp", srcSet: y, sizes: f, "data-testid": "source" }),
1802
+ /* @__PURE__ */ d.jsx("source", { type: "image/webp", srcSet: f, sizes: m, "data-testid": "source" }),
1807
1803
  /* @__PURE__ */ d.jsx(
1808
1804
  "img",
1809
1805
  {
1810
- srcSet: x,
1811
- sizes: f,
1812
- src: l,
1813
- alt: m,
1814
- loading: c || "lazy",
1815
- decoding: h || "async",
1816
- fetchpriority: p || "auto",
1817
- width: u,
1818
- height: i,
1806
+ srcSet: y,
1807
+ sizes: m,
1808
+ src: o,
1809
+ alt: r,
1810
+ loading: u || "lazy",
1811
+ decoding: c || "async",
1812
+ fetchpriority: h || "auto",
1813
+ width: l,
1814
+ height: a,
1819
1815
  "data-testid": n || "image"
1820
1816
  }
1821
1817
  )
@@ -2139,7 +2135,7 @@ const $h = ({
2139
2135
  h === "ready-to-close" && p("closing");
2140
2136
  }, [h]);
2141
2137
  const m = ({ propertyName: f }) => {
2142
- f === "max-height" && p((D) => D === "opening" ? "open" : D === "closing" ? "closed" : D);
2138
+ f === "max-height" && p((y) => y === "opening" ? "open" : y === "closing" ? "closed" : y);
2143
2139
  };
2144
2140
  if (!a)
2145
2141
  return null;
@@ -2557,9 +2553,8 @@ const Lo = 256, Tn = ({
2557
2553
  height: i = Lo,
2558
2554
  ...s
2559
2555
  }) => {
2560
- const [o, l] = de(!1), u = ke(null);
2561
- let c = r;
2562
- c === "" ? c = "" : r == null && (c = n), he(() => {
2556
+ const [o, l] = de(!1), u = ke(null), c = r ?? n;
2557
+ he(() => {
2563
2558
  const p = u.current;
2564
2559
  if (!p)
2565
2560
  return;
@@ -2631,7 +2626,7 @@ const Ir = ({
2631
2626
  const { name: p, image: m } = h;
2632
2627
  let { url: g } = h;
2633
2628
  t.link !== void 0 && (t.link === !1 ? g = void 0 : g = t.link);
2634
- const f = Qh(h), D = n && n.createdAt ? ss(n.createdAt) : !1, y = n && n.createdAt ? kc(n.createdAt) : "";
2629
+ const f = Qh(h), y = n && n.createdAt ? ss(n.createdAt) : !1, D = n && n.createdAt ? kc(n.createdAt) : "";
2635
2630
  return re.createElement(e, {
2636
2631
  className: Z("member text-medium", c, o),
2637
2632
  ...a,
@@ -2650,9 +2645,9 @@ const Ir = ({
2650
2645
  /* @__PURE__ */ d.jsxs("strong", { children: [
2651
2646
  p,
2652
2647
  n && /* @__PURE__ */ d.jsxs("span", { className: "additional-content", children: [
2653
- n.createdAt && D && /* @__PURE__ */ d.jsx("span", { className: "date", title: y, "aria-label": y, children: u.formatMessage(
2654
- { id: `dates_${D.path}` },
2655
- { number: D.number }
2648
+ n.createdAt && y && /* @__PURE__ */ d.jsx("span", { className: "date", title: D, "aria-label": D, children: u.formatMessage(
2649
+ { id: `dates_${y.path}` },
2650
+ { number: y.number }
2656
2651
  ) }),
2657
2652
  n.didEdit && /* @__PURE__ */ d.jsx("em", { children: u.formatMessage({ id: "discussion_edited" }) })
2658
2653
  ] })
@@ -2689,27 +2684,27 @@ const zo = {
2689
2684
  /* @__PURE__ */ d.jsx("ul", { children: n.map((p, m) => {
2690
2685
  let g, f = "";
2691
2686
  if (m < o) {
2692
- const { name: D = "", image: y = "" } = Pc(p);
2687
+ const { name: y = "", image: D = "" } = Pc(p);
2693
2688
  if (s)
2694
2689
  return /* @__PURE__ */ d.jsx(Pt, { element: "li", className: "contributor" }, m);
2695
2690
  g = /* @__PURE__ */ d.jsx(
2696
2691
  Tn,
2697
2692
  {
2698
- name: D,
2699
- src: y,
2693
+ name: y,
2694
+ src: D,
2700
2695
  width: zo[a || "medium"],
2701
2696
  height: zo[a || "medium"]
2702
2697
  }
2703
2698
  );
2704
2699
  } else if (m === o) {
2705
- const D = (t || n.length) - o;
2700
+ const y = (t || n.length) - o;
2706
2701
  g = /* @__PURE__ */ d.jsxs(
2707
2702
  "small",
2708
2703
  {
2709
- className: Z({ "large-number": D > 99 }),
2704
+ className: Z({ "large-number": y > 99 }),
2710
2705
  children: [
2711
2706
  "+",
2712
- Bh(D, 0)
2707
+ Bh(y, 0)
2713
2708
  ]
2714
2709
  }
2715
2710
  ), f = "number-left";
@@ -2776,7 +2771,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2776
2771
  "data-gtm-event-context": "VerifyEmailBox",
2777
2772
  "data-gtm-event-type": "SendEmailClick",
2778
2773
  className: "gtm-trackable",
2779
- onClick: (D) => u(D),
2774
+ onClick: (y) => u(y),
2780
2775
  href: "#",
2781
2776
  "data-testid": "send-verify-email-click"
2782
2777
  },
@@ -2806,7 +2801,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2806
2801
  );
2807
2802
  he(
2808
2803
  () => {
2809
- let m = Vr, g = "default", f = {}, D = {};
2804
+ let m = Vr, g = "default", f = {}, y = {};
2810
2805
  switch (e) {
2811
2806
  case "gov":
2812
2807
  m += "autoApproved", g = "success";
@@ -2819,7 +2814,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2819
2814
  };
2820
2815
  break;
2821
2816
  case "pending":
2822
- m += "pendingApproval", g = "error", D = {
2817
+ m += "pendingApproval", g = "error", y = {
2823
2818
  href: "mailto:concierge@apolitical.co",
2824
2819
  className: "gtm-trackable",
2825
2820
  "data-gtm-event-context": "EmailExistsBox",
@@ -2832,7 +2827,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2832
2827
  "data-gtm-event-context": "VerifyEmailBox",
2833
2828
  "data-gtm-event-type": "SendEmailClick",
2834
2829
  className: "gtm-trackable",
2835
- onClick: (y) => u(y),
2830
+ onClick: (D) => u(D),
2836
2831
  "data-testid": "send-verify-email-click"
2837
2832
  };
2838
2833
  break;
@@ -2841,7 +2836,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2841
2836
  href: "/user-onboarding/login",
2842
2837
  "data-gtm-event-context": "EmailExistsBox",
2843
2838
  "data-gtm-event-type": "login-click"
2844
- }, D = {
2839
+ }, y = {
2845
2840
  href: "mailto:concierge@apolitical.co",
2846
2841
  className: "gtm-trackable",
2847
2842
  "data-gtm-event-context": "EmailExistsBox",
@@ -2856,7 +2851,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2856
2851
  };
2857
2852
  break;
2858
2853
  }
2859
- s({ ...i, path: m, type: g, link: f, mail: D });
2854
+ s({ ...i, path: m, type: g, link: f, mail: y });
2860
2855
  },
2861
2856
  /* eslint-disable react-hooks/exhaustive-deps */
2862
2857
  [e]
@@ -2954,8 +2949,8 @@ const Nn = {
2954
2949
  predictions: [],
2955
2950
  activePredictionIndex: -1,
2956
2951
  isPredictionSelected: !!n
2957
- }), { formatMessage: D } = ce();
2958
- r || (r = D({ id: "inputAutocomplete_placeholder" })), he(() => {
2952
+ }), { formatMessage: y } = ce();
2953
+ r || (r = y({ id: "inputAutocomplete_placeholder" })), he(() => {
2959
2954
  const k = setTimeout(() => {
2960
2955
  g || h((C) => ({ ...C, debouncedInput: l }));
2961
2956
  }, em);
@@ -2980,7 +2975,7 @@ const Nn = {
2980
2975
  displayInput: p[m].description
2981
2976
  }));
2982
2977
  }, [m, p]);
2983
- const y = (k) => {
2978
+ const D = (k) => {
2984
2979
  [Nn.DOWN, Nn.UP, Nn.ENTER].includes(k.key) && (k.preventDefault(), k.key === Nn.DOWN && m < p.length - 1 ? f((C) => ({
2985
2980
  ...C,
2986
2981
  activePredictionIndex: m + 1
@@ -3023,7 +3018,7 @@ const Nn = {
3023
3018
  type: "text",
3024
3019
  value: u,
3025
3020
  onChange: x,
3026
- onKeyDown: y,
3021
+ onKeyDown: D,
3027
3022
  placeholder: r,
3028
3023
  name: t,
3029
3024
  id: e,
@@ -3064,7 +3059,7 @@ const Mc = ({
3064
3059
  }) => {
3065
3060
  const p = ce(), { onChange: m, ...g } = r, f = () => {
3066
3061
  t || m(c ? null : l);
3067
- }, D = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3062
+ }, y = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3068
3063
  /* @__PURE__ */ d.jsx(
3069
3064
  "input",
3070
3065
  {
@@ -3074,8 +3069,8 @@ const Mc = ({
3074
3069
  type: u,
3075
3070
  value: l,
3076
3071
  checked: c,
3077
- onKeyDown: (y) => {
3078
- (y.key === "Enter" || y.code === "Space") && (y.preventDefault(), y.stopPropagation(), f());
3072
+ onKeyDown: (D) => {
3073
+ (D.key === "Enter" || D.code === "Space") && (D.preventDefault(), D.stopPropagation(), f());
3079
3074
  },
3080
3075
  readOnly: !0,
3081
3076
  disabled: t
@@ -3089,15 +3084,15 @@ const Mc = ({
3089
3084
  return re.createElement(
3090
3085
  n,
3091
3086
  {
3092
- onClick: (y) => {
3093
- const x = y.target;
3094
- x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (y.preventDefault(), y.stopPropagation(), f());
3087
+ onClick: (D) => {
3088
+ const x = D.target;
3089
+ x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (D.preventDefault(), D.stopPropagation(), f());
3095
3090
  },
3096
3091
  className: Z("checkbox-wrapper", e),
3097
3092
  ...h,
3098
3093
  ...g
3099
3094
  },
3100
- D
3095
+ y
3101
3096
  );
3102
3097
  };
3103
3098
  const nm = Wt(function({
@@ -3124,23 +3119,23 @@ const rm = ({
3124
3119
  multiSelectOptions: l,
3125
3120
  id: u
3126
3121
  }) => {
3127
- const c = ce(), [h, p] = de(!1), m = r || n, g = Array.isArray(m) ? [...m] : m ? [m] : [], [f, D] = de(g);
3128
- let y;
3129
- Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? y = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? y = f[0] : y = { id: "", label: "" }, he(() => {
3130
- D(g);
3122
+ const c = ce(), [h, p] = de(!1), m = r || n, g = Array.isArray(m) ? [...m] : m ? [m] : [], [f, y] = de(g);
3123
+ let D;
3124
+ Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? D = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? D = f[0] : D = { id: "", label: "" }, he(() => {
3125
+ y(g);
3131
3126
  }, [r, n]);
3132
3127
  const { onChange: x, onMultiSelectSubmit: B, ...k } = a, C = (T) => {
3133
3128
  if (o) {
3134
3129
  let $ = [];
3135
- f != null && f.includes(T.id) ? $ = f.filter((N) => N !== T.id) : $ = [...f, T.id], D([...$]), x && x([...$]);
3130
+ f != null && f.includes(T.id) ? $ = f.filter((N) => N !== T.id) : $ = [...f, T.id], y([...$]), x && x([...$]);
3136
3131
  } else
3137
- D([T]), x && x(T.id), p(!1);
3132
+ y([T]), x && x(T.id), p(!1);
3138
3133
  }, A = (T) => {
3139
3134
  if (T === "all") {
3140
3135
  const $ = (t == null ? void 0 : t.map((N) => N.id)) || [];
3141
- D($), x && x($);
3136
+ y($), x && x($);
3142
3137
  } else
3143
- D([]), x && x([]);
3138
+ y([]), x && x([]);
3144
3139
  };
3145
3140
  return /* @__PURE__ */ d.jsxs("div", { className: Z("dropdown-wrapper", e), children: [
3146
3141
  /* @__PURE__ */ d.jsxs(
@@ -3156,7 +3151,7 @@ const rm = ({
3156
3151
  "data-testid": "dropdown-selector",
3157
3152
  ...k,
3158
3153
  children: [
3159
- o ? `${s} · ${f.length}` : y.label,
3154
+ o ? `${s} · ${f.length}` : D.label,
3160
3155
  /* @__PURE__ */ d.jsx(nm, { direction: h ? "up" : "down" })
3161
3156
  ]
3162
3157
  }
@@ -3164,7 +3159,7 @@ const rm = ({
3164
3159
  /* @__PURE__ */ d.jsx(
3165
3160
  "select",
3166
3161
  {
3167
- defaultValue: y.id,
3162
+ defaultValue: D.id,
3168
3163
  onChange: (T) => {
3169
3164
  T.preventDefault(), T.stopPropagation();
3170
3165
  const $ = t && t.find((N) => N.id === T.target.value);
@@ -3209,7 +3204,7 @@ const rm = ({
3209
3204
  ] })
3210
3205
  ] }),
3211
3206
  /* @__PURE__ */ d.jsx("ul", { children: t == null ? void 0 : t.map((T) => {
3212
- const $ = T.id === y.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
3207
+ const $ = T.id === D.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
3213
3208
  return /* @__PURE__ */ d.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ d.jsxs(
3214
3209
  "button",
3215
3210
  {
@@ -3280,8 +3275,8 @@ const am = ({
3280
3275
  children: o == null ? void 0 : o.map(
3281
3276
  ({
3282
3277
  id: f,
3283
- label: D = !1,
3284
- value: y = f,
3278
+ label: y = !1,
3279
+ value: D = f,
3285
3280
  disabled: x = !1
3286
3281
  }) => {
3287
3282
  const B = `${r}_${f}`, k = () => {
@@ -3289,10 +3284,10 @@ const am = ({
3289
3284
  return;
3290
3285
  let C;
3291
3286
  if (i) {
3292
- const A = m == null ? void 0 : m.indexOf(y);
3293
- Array.isArray(m) && A >= 0 ? (C = m, C.splice(A, 1)) : (!m || m.length === 0 ? C = [] : C = m, C.push(y));
3287
+ const A = m == null ? void 0 : m.indexOf(D);
3288
+ Array.isArray(m) && A >= 0 ? (C = m, C.splice(A, 1)) : (!m || m.length === 0 ? C = [] : C = m, C.push(D));
3294
3289
  } else
3295
- C = g === y ? void 0 : y;
3290
+ C = g === D ? void 0 : D;
3296
3291
  t.onChange(C);
3297
3292
  };
3298
3293
  return /* @__PURE__ */ d.jsx(
@@ -3301,14 +3296,14 @@ const am = ({
3301
3296
  element: "li",
3302
3297
  id: B,
3303
3298
  type: u === "checkboxes" ? "checkbox" : "radio",
3304
- shownValue: y,
3305
- value: i ? m == null ? void 0 : m.includes(y) : g === y,
3299
+ shownValue: D,
3300
+ value: i ? m == null ? void 0 : m.includes(D) : g === D,
3306
3301
  functions: {
3307
3302
  ...t,
3308
3303
  onChange: k
3309
3304
  },
3310
3305
  intlPath: n,
3311
- label: D || p.formatMessage({
3306
+ label: y || p.formatMessage({
3312
3307
  id: n ? `${n}_${f}` : f
3313
3308
  }),
3314
3309
  disabled: x
@@ -3377,9 +3372,9 @@ const Rn = {
3377
3372
  submitOnEnter: c,
3378
3373
  ...h
3379
3374
  }) => {
3380
- const p = ce(), m = l && l.some(({ condition: C }) => C === "required"), g = Is(u), f = o && Rn[o] && Rn[o].component ? Rn[o].component : zn, D = {};
3381
- o && ["checkboxes"].includes(o) ? D.element = "span" : D.htmlFor = e;
3382
- let y = {
3375
+ const p = ce(), m = l && l.some(({ condition: C }) => C === "required"), g = Is(u), f = o && Rn[o] && Rn[o].component ? Rn[o].component : zn, y = {};
3376
+ o && ["checkboxes"].includes(o) ? y.element = "span" : y.htmlFor = e;
3377
+ let D = {
3383
3378
  ...h,
3384
3379
  id: e,
3385
3380
  name: e,
@@ -3392,15 +3387,15 @@ const Rn = {
3392
3387
  };
3393
3388
  if (i > 0) {
3394
3389
  const C = Jh(i, a.onChange);
3395
- y = {
3396
- ...y,
3390
+ D = {
3391
+ ...D,
3397
3392
  ...C
3398
- }, C.functions && typeof C.functions == "object" && (y.functions = {
3399
- ...y.functions,
3393
+ }, C.functions && typeof C.functions == "object" && (D.functions = {
3394
+ ...D.functions,
3400
3395
  ...C.functions
3401
3396
  });
3402
3397
  }
3403
- o && Rn[o] && Rn[o].props && (y = { ...y, ...Rn[o].props }), o && ["checkboxes"].includes(o) && (y.intlPath = `${t}_${e}`), r && (y["aria-invalid"] = !0, y["aria-describedby"] = `error-${e}`);
3398
+ o && Rn[o] && Rn[o].props && (D = { ...D, ...Rn[o].props }), o && ["checkboxes"].includes(o) && (D.intlPath = `${t}_${e}`), r && (D["aria-invalid"] = !0, D["aria-describedby"] = `error-${e}`);
3404
3399
  const x = h.label || p.formatMessage({ id: t ? `${t}_${e}` : e }), B = ({ ...C }) => r ? re.createElement(
3405
3400
  C.as || "dd",
3406
3401
  {
@@ -3417,7 +3412,7 @@ const Rn = {
3417
3412
  /* @__PURE__ */ d.jsx(
3418
3413
  f,
3419
3414
  {
3420
- ...y,
3415
+ ...D,
3421
3416
  label: x,
3422
3417
  className: Z("field-wrapper", n)
3423
3418
  }
@@ -3430,7 +3425,7 @@ const Rn = {
3430
3425
  "data-testid": `label-${e}`
3431
3426
  });
3432
3427
  return /* @__PURE__ */ d.jsxs("dl", { className: Z("field-wrapper text-medium", n), children: [
3433
- /* @__PURE__ */ d.jsx("dt", { children: /* @__PURE__ */ d.jsxs(k, { ...D, children: [
3428
+ /* @__PURE__ */ d.jsx("dt", { children: /* @__PURE__ */ d.jsxs(k, { ...y, children: [
3434
3429
  x,
3435
3430
  m && s && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3436
3431
  " ",
@@ -3442,7 +3437,7 @@ const Rn = {
3442
3437
  ] })
3443
3438
  ] }) }),
3444
3439
  /* @__PURE__ */ d.jsxs("dd", { children: [
3445
- /* @__PURE__ */ d.jsx(f, { ...y }),
3440
+ /* @__PURE__ */ d.jsx(f, { ...D }),
3446
3441
  /* @__PURE__ */ d.jsx(Rc, { limit: i, valueLength: g })
3447
3442
  ] }),
3448
3443
  /* @__PURE__ */ d.jsx(B, {})
@@ -3489,36 +3484,36 @@ const Rn = {
3489
3484
  if (p.validation)
3490
3485
  for (let m = 0; m < p.validation.length; m++) {
3491
3486
  const { condition: g = "required", error: f = !1 } = p.validation[m];
3492
- let D = !1;
3487
+ let y = !1;
3493
3488
  if (typeof g == "function") {
3494
- const y = g(i);
3495
- y && (D = f || y);
3489
+ const D = g(i);
3490
+ D && (y = f || D);
3496
3491
  } else {
3497
- const y = i[p.id];
3492
+ const D = i[p.id];
3498
3493
  switch (g) {
3499
3494
  case "required":
3500
- (!y || typeof y == "string" && y.trim().length === 0) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_required" })));
3495
+ (!D || typeof D == "string" && D.trim().length === 0) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_required" })));
3501
3496
  break;
3502
3497
  case "no-numbers": {
3503
- y && !/^([^0-9]*)$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_numbers" })));
3498
+ D && !/^([^0-9]*)$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_numbers" })));
3504
3499
  break;
3505
3500
  }
3506
3501
  case "valid-email": {
3507
- y && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_email" })));
3502
+ D && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_email" })));
3508
3503
  break;
3509
3504
  }
3510
3505
  case "valid-url": {
3511
- y && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_url" })));
3506
+ D && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_url" })));
3512
3507
  break;
3513
3508
  }
3514
3509
  default:
3515
3510
  console.warn("WARNING! No field validation condition has been set");
3516
3511
  }
3517
3512
  }
3518
- if (D) {
3513
+ if (y) {
3519
3514
  o({
3520
3515
  type: "addError",
3521
- payload: { key: p.id, value: D }
3516
+ payload: { key: p.id, value: y }
3522
3517
  }), h.push(p.id);
3523
3518
  break;
3524
3519
  }
@@ -3585,7 +3580,7 @@ const Lr = ({
3585
3580
  },
3586
3581
  ...g
3587
3582
  }) => {
3588
- const { customOnSubmit: f, hideButton: D, ...y } = s, x = 40, {
3583
+ const { customOnSubmit: f, hideButton: y, ...D } = s, x = 40, {
3589
3584
  shouldShowCancelButton: B = !1,
3590
3585
  shouldReset: k = !0,
3591
3586
  showRequiredLabels: C = !0,
@@ -3671,7 +3666,7 @@ const Lr = ({
3671
3666
  }
3672
3667
  }, J = [
3673
3668
  {
3674
- ...y,
3669
+ ...D,
3675
3670
  icon: E ? { icon: "tick", position: "left" } : !1,
3676
3671
  className: "gtm-trackable",
3677
3672
  onClick: (v) => {
@@ -3750,7 +3745,7 @@ const Lr = ({
3750
3745
  X
3751
3746
  );
3752
3747
  }),
3753
- D ? null : (w || E) && f ? f : /* @__PURE__ */ d.jsx(
3748
+ y ? null : (w || E) && f ? f : /* @__PURE__ */ d.jsx(
3754
3749
  ar,
3755
3750
  {
3756
3751
  className: Z("cta", {
@@ -3822,15 +3817,15 @@ const ME = ({
3822
3817
  disabled: !0
3823
3818
  }), c = async () => {
3824
3819
  try {
3825
- const y = await n();
3820
+ const D = await n();
3826
3821
  u((x) => ({
3827
3822
  ...x,
3828
3823
  setUp: !0,
3829
- id: y && y.id,
3824
+ id: D && D.id,
3830
3825
  disabled: !1
3831
3826
  }));
3832
- } catch (y) {
3833
- u((x) => ({ ...x, setUp: !0, disabled: !0 })), a(y);
3827
+ } catch (D) {
3828
+ u((x) => ({ ...x, setUp: !0, disabled: !0 })), a(D);
3834
3829
  }
3835
3830
  };
3836
3831
  if (he(() => {
@@ -3843,10 +3838,10 @@ const ME = ({
3843
3838
  high: o.formatMessage({ id: `${g}high` }),
3844
3839
  success: o.formatMessage({ id: `${g}success` }),
3845
3840
  ...e
3846
- }, D = async (y) => {
3841
+ }, y = async (D) => {
3847
3842
  if (!(!h || m))
3848
3843
  try {
3849
- u((x) => ({ ...x, rating: y, disabled: !0 })), await r({ id: h, value: y });
3844
+ u((x) => ({ ...x, rating: D, disabled: !0 })), await r({ id: h, value: D });
3850
3845
  } catch (x) {
3851
3846
  u((B) => ({ ...B, rating: null })), a(x);
3852
3847
  } finally {
@@ -3855,8 +3850,8 @@ const ME = ({
3855
3850
  };
3856
3851
  return /* @__PURE__ */ d.jsxs("div", { className: Z("rating", i), children: [
3857
3852
  /* @__PURE__ */ d.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
3858
- /* @__PURE__ */ d.jsx("ol", { children: Array.from(new Array(t).keys()).map((y) => {
3859
- const x = y + 1;
3853
+ /* @__PURE__ */ d.jsx("ol", { children: Array.from(new Array(t).keys()).map((D) => {
3854
+ const x = D + 1;
3860
3855
  return /* @__PURE__ */ d.jsx(
3861
3856
  "li",
3862
3857
  {
@@ -3876,7 +3871,7 @@ const ME = ({
3876
3871
  { number: x, total: t }
3877
3872
  )}${x === 1 || x === t ? ` - ${f[x === 1 ? "low" : "high"]}` : ""}`,
3878
3873
  onClick: (B) => {
3879
- B.preventDefault(), B.stopPropagation(), D(x);
3874
+ B.preventDefault(), B.stopPropagation(), y(x);
3880
3875
  },
3881
3876
  disabled: m
3882
3877
  }
@@ -5306,20 +5301,20 @@ var Jm = (e, t, n) => {
5306
5301
  break;
5307
5302
  var p = oe.leaf(e, u), m = p.text.slice(0, c), g = p.text.slice(c);
5308
5303
  if (p.text = m + h + g, t)
5309
- for (var [f, D] of U.points(t))
5310
- t[D] = Be.transform(f, n);
5304
+ for (var [f, y] of U.points(t))
5305
+ t[y] = Be.transform(f, n);
5311
5306
  break;
5312
5307
  }
5313
5308
  case "merge_node": {
5314
5309
  var {
5315
- path: y
5316
- } = n, x = oe.get(e, y), B = P.previous(y), k = oe.get(e, B), C = oe.parent(e, y), A = y[y.length - 1];
5310
+ path: D
5311
+ } = n, x = oe.get(e, D), B = P.previous(D), k = oe.get(e, B), C = oe.parent(e, D), A = D[D.length - 1];
5317
5312
  if (fe.isText(x) && fe.isText(k))
5318
5313
  k.text += x.text;
5319
5314
  else if (!fe.isText(x) && !fe.isText(k))
5320
5315
  k.children.push(...x.children);
5321
5316
  else
5322
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y, "] to nodes of different interfaces: ").concat(nt.stringify(x), " ").concat(nt.stringify(k)));
5317
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(D, "] to nodes of different interfaces: ").concat(nt.stringify(x), " ").concat(nt.stringify(k)));
5323
5318
  if (C.children.splice(A, 1), t)
5324
5319
  for (var [T, $] of U.points(t))
5325
5320
  t[$] = Be.transform(T, n);
@@ -6379,13 +6374,13 @@ var fe = {
6379
6374
  o.push(h);
6380
6375
  continue;
6381
6376
  }
6382
- var g = h, f = void 0, D = void 0;
6377
+ var g = h, f = void 0, y = void 0;
6383
6378
  if (c < l) {
6384
- var y = c - m;
6385
- D = Vt(Vt({}, g), {}, {
6386
- text: g.text.slice(y)
6379
+ var D = c - m;
6380
+ y = Vt(Vt({}, g), {}, {
6381
+ text: g.text.slice(D)
6387
6382
  }), g = Vt(Vt({}, g), {}, {
6388
- text: g.text.slice(0, y)
6383
+ text: g.text.slice(0, D)
6389
6384
  });
6390
6385
  }
6391
6386
  if (u > m) {
@@ -6396,7 +6391,7 @@ var fe = {
6396
6391
  text: g.text.slice(x)
6397
6392
  });
6398
6393
  }
6399
- Object.assign(g, a), f && o.push(f), o.push(g), D && o.push(D);
6394
+ Object.assign(g, a), f && o.push(f), o.push(g), y && o.push(y);
6400
6395
  }
6401
6396
  n = o;
6402
6397
  }
@@ -6654,9 +6649,9 @@ var Mp = (e, t) => {
6654
6649
  var f = P.transform(g, t);
6655
6650
  p.push(f);
6656
6651
  }
6657
- for (var D of P.ancestors(h)) {
6658
- var y = P.transform(D, t);
6659
- m.push(y);
6652
+ for (var y of P.ancestors(h)) {
6653
+ var D = P.transform(y, t);
6654
+ m.push(D);
6660
6655
  }
6661
6656
  var x = m[m.length - 1], B = h[h.length - 1], k = x.concat(B);
6662
6657
  return [...p, ...m, k];
@@ -7133,8 +7128,8 @@ var yg = ["text"], Dg = ["text"], xg = function(t) {
7133
7128
  match: (k) => le.isElement(k) && b.isBlock(t, k)
7134
7129
  });
7135
7130
  if (m && f) {
7136
- var [D, y] = m, [, x] = f;
7137
- P.isAncestor(x, y) && (p = D);
7131
+ var [y, D] = m, [, x] = f;
7132
+ P.isAncestor(x, D) && (p = y);
7138
7133
  }
7139
7134
  }
7140
7135
  }
@@ -7209,21 +7204,21 @@ function Eg(e) {
7209
7204
  return le.isElement(C) ? !!(!s && (b.isVoid(e, C) || b.isElementReadOnly(e, C)) || o && !b.isSelectable(e, C)) : !1;
7210
7205
  }
7211
7206
  }), g = [], f;
7212
- for (var [D, y] of m)
7213
- if (!(o && le.isElement(D) && !b.isSelectable(e, D))) {
7214
- var x = f && P.compare(y, f[1]) === 0;
7207
+ for (var [y, D] of m)
7208
+ if (!(o && le.isElement(y) && !b.isSelectable(e, y))) {
7209
+ var x = f && P.compare(D, f[1]) === 0;
7215
7210
  if (!(r === "highest" && x)) {
7216
- if (!l(D, y)) {
7217
- if (a && !x && fe.isText(D))
7211
+ if (!l(y, D)) {
7212
+ if (a && !x && fe.isText(y))
7218
7213
  return;
7219
7214
  continue;
7220
7215
  }
7221
7216
  if (r === "lowest" && x) {
7222
- f = [D, y];
7217
+ f = [y, D];
7223
7218
  continue;
7224
7219
  }
7225
- var B = r === "lowest" ? f : [D, y];
7226
- B && (a ? g.push(B) : yield B), f = [D, y];
7220
+ var B = r === "lowest" ? f : [y, D];
7221
+ B && (a ? g.push(B) : yield B), f = [y, D];
7227
7222
  }
7228
7223
  }
7229
7224
  r === "lowest" && f && (a ? g.push(f) : yield f), a && (yield* g);
@@ -7254,22 +7249,22 @@ var kg = function(t) {
7254
7249
  operation: a
7255
7250
  });
7256
7251
  }
7257
- for (var g = i(t), f = g.length, D = 0; g.length !== 0; ) {
7252
+ for (var g = i(t), f = g.length, y = 0; g.length !== 0; ) {
7258
7253
  if (!t.shouldNormalize({
7259
7254
  dirtyPaths: g,
7260
- iteration: D,
7255
+ iteration: y,
7261
7256
  initialDirtyPathsLength: f,
7262
7257
  operation: a
7263
7258
  }))
7264
7259
  return;
7265
- var y = o(t);
7266
- if (oe.has(t, y)) {
7267
- var x = b.node(t, y);
7260
+ var D = o(t);
7261
+ if (oe.has(t, D)) {
7262
+ var x = b.node(t, D);
7268
7263
  t.normalizeNode(x, {
7269
7264
  operation: a
7270
7265
  });
7271
7266
  }
7272
- D++, g = i(t);
7267
+ y++, g = i(t);
7273
7268
  }
7274
7269
  });
7275
7270
  }
@@ -7365,21 +7360,21 @@ function Og(e) {
7365
7360
  if (!n)
7366
7361
  return;
7367
7362
  var o = b.range(e, n), [l, u] = U.edges(o), c = a ? u : l, h = !1, p = "", m = 0, g = 0, f = 0;
7368
- for (var [D, y] of b.nodes(e, {
7363
+ for (var [y, D] of b.nodes(e, {
7369
7364
  at: n,
7370
7365
  reverse: a,
7371
7366
  voids: i,
7372
7367
  ignoreNonSelectable: s
7373
7368
  })) {
7374
- if (le.isElement(D)) {
7375
- if (!i && (e.isVoid(D) || e.isElementReadOnly(D))) {
7376
- yield b.start(e, y);
7369
+ if (le.isElement(y)) {
7370
+ if (!i && (e.isVoid(y) || e.isElementReadOnly(y))) {
7371
+ yield b.start(e, D);
7377
7372
  continue;
7378
7373
  }
7379
- if (e.isInline(D))
7374
+ if (e.isInline(y))
7380
7375
  continue;
7381
- if (b.hasInlines(e, D)) {
7382
- var x = P.isAncestor(y, u.path) ? u : b.end(e, y), B = P.isAncestor(y, l.path) ? l : b.start(e, y);
7376
+ if (b.hasInlines(e, y)) {
7377
+ var x = P.isAncestor(D, u.path) ? u : b.end(e, D), B = P.isAncestor(D, l.path) ? l : b.start(e, D);
7383
7378
  p = b.string(e, {
7384
7379
  anchor: B,
7385
7380
  focus: x
@@ -7388,10 +7383,10 @@ function Og(e) {
7388
7383
  }), h = !0;
7389
7384
  }
7390
7385
  }
7391
- if (fe.isText(D)) {
7392
- var k = P.equals(y, c.path);
7393
- for (k ? (g = a ? c.offset : D.text.length - c.offset, f = c.offset) : (g = D.text.length, f = a ? g : 0), (k || h || r === "offset") && (yield {
7394
- path: y,
7386
+ if (fe.isText(y)) {
7387
+ var k = P.equals(D, c.path);
7388
+ for (k ? (g = a ? c.offset : y.text.length - c.offset, f = c.offset) : (g = y.text.length, f = a ? g : 0), (k || h || r === "offset") && (yield {
7389
+ path: D,
7395
7390
  offset: f
7396
7391
  }, h = !1); ; ) {
7397
7392
  if (m === 0) {
@@ -7404,7 +7399,7 @@ function Og(e) {
7404
7399
  break;
7405
7400
  }
7406
7401
  m = 0, yield {
7407
- path: y,
7402
+ path: D,
7408
7403
  offset: f
7409
7404
  };
7410
7405
  }
@@ -7627,8 +7622,8 @@ var Ig = (e, t) => {
7627
7622
  }
7628
7623
  if (!U.isCollapsed(u)) {
7629
7624
  if (!c) {
7630
- var [, D] = U.edges(u), y = b.end(t, []);
7631
- Be.equals(D, y) || (u = b.unhangRange(t, u, {
7625
+ var [, y] = U.edges(u), D = b.end(t, []);
7626
+ Be.equals(y, D) || (u = b.unhangRange(t, u, {
7632
7627
  voids: l
7633
7628
  }));
7634
7629
  }
@@ -7762,7 +7757,7 @@ var Ig = (e, t) => {
7762
7757
  match: (q) => le.isElement(q) && b.isBlock(t, q),
7763
7758
  at: s,
7764
7759
  voids: i
7765
- }), [, f] = g, D = b.isStart(t, s, f), y = b.isEnd(t, s, f), x = D && y, B = !D || D && y, k = !y, [, C] = oe.first({
7760
+ }), [, f] = g, y = b.isStart(t, s, f), D = b.isEnd(t, s, f), x = y && D, B = !y || y && D, k = !D, [, C] = oe.first({
7766
7761
  children: n
7767
7762
  }, []), [, A] = oe.last({
7768
7763
  children: n
@@ -7784,12 +7779,12 @@ var Ig = (e, t) => {
7784
7779
  match: (q) => fe.isText(q) || b.isInline(t, q),
7785
7780
  mode: "highest",
7786
7781
  voids: i
7787
- }), [, L] = z, ne = b.isStart(t, s, L), J = b.isEnd(t, s, L), v = b.pathRef(t, y && !w.length ? P.next(f) : f), W = b.pathRef(t, J ? P.next(L) : L);
7782
+ }), [, L] = z, ne = b.isStart(t, s, L), J = b.isEnd(t, s, L), v = b.pathRef(t, D && !w.length ? P.next(f) : f), W = b.pathRef(t, J ? P.next(L) : L);
7788
7783
  Y.splitNodes(t, {
7789
7784
  at: s,
7790
7785
  match: (q) => j ? le.isElement(q) && b.isBlock(t, q) : fe.isText(q) || b.isInline(t, q),
7791
7786
  mode: j ? "lowest" : "highest",
7792
- always: j && (!D || M.length > 0) && (!y || w.length > 0),
7787
+ always: j && (!y || M.length > 0) && (!D || w.length > 0),
7793
7788
  voids: i
7794
7789
  });
7795
7790
  var X = b.pathRef(t, !ne || ne && J ? P.next(L) : L);
@@ -7985,15 +7980,15 @@ var Qg = function(t, n) {
7985
7980
  voids: i
7986
7981
  });
7987
7982
  if (g) {
7988
- var [, f] = g, D = b.pathRef(t, f), y = b.isEnd(t, l, f);
7983
+ var [, f] = g, y = b.pathRef(t, f), D = b.isEnd(t, l, f);
7989
7984
  Y.splitNodes(t, {
7990
7985
  at: l,
7991
7986
  match: u,
7992
7987
  mode: s,
7993
7988
  voids: i
7994
7989
  });
7995
- var x = D.unref();
7996
- l = y ? P.next(x) : x;
7990
+ var x = y.unref();
7991
+ l = D ? P.next(x) : x;
7997
7992
  } else
7998
7993
  return;
7999
7994
  }
@@ -8072,10 +8067,10 @@ var Qg = function(t, n) {
8072
8067
  length: f
8073
8068
  } = p.children;
8074
8069
  if (f === 1) {
8075
- var D = P.next(m);
8070
+ var y = P.next(m);
8076
8071
  Y.moveNodes(t, {
8077
8072
  at: c,
8078
- to: D,
8073
+ to: y,
8079
8074
  voids: i
8080
8075
  }), Y.removeNodes(t, {
8081
8076
  at: m,
@@ -8088,10 +8083,10 @@ var Qg = function(t, n) {
8088
8083
  voids: i
8089
8084
  });
8090
8085
  else if (g === f - 1) {
8091
- var y = P.next(m);
8086
+ var D = P.next(m);
8092
8087
  Y.moveNodes(t, {
8093
8088
  at: c,
8094
- to: y,
8089
+ to: D,
8095
8090
  voids: i
8096
8091
  });
8097
8092
  } else {
@@ -8155,9 +8150,9 @@ var Qg = function(t, n) {
8155
8150
  mode: o
8156
8151
  });
8157
8152
  if (!(!h || !p)) {
8158
- var [m, g] = h, [f, D] = p;
8159
- if (!(g.length === 0 || D.length === 0)) {
8160
- var y = P.next(D), x = P.common(g, D), B = P.isSibling(g, D), k = Array.from(b.levels(t, {
8153
+ var [m, g] = h, [f, y] = p;
8154
+ if (!(g.length === 0 || y.length === 0)) {
8155
+ var D = P.next(y), x = P.common(g, y), B = P.isSibling(g, y), k = Array.from(b.levels(t, {
8161
8156
  at: g
8162
8157
  }), (M) => {
8163
8158
  var [R] = M;
@@ -8177,17 +8172,17 @@ var Qg = function(t, n) {
8177
8172
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(nt.stringify(m), " ").concat(nt.stringify(f)));
8178
8173
  B || Y.moveNodes(t, {
8179
8174
  at: g,
8180
- to: y,
8175
+ to: D,
8181
8176
  voids: s
8182
8177
  }), A && Y.removeNodes(t, {
8183
8178
  at: A.current,
8184
8179
  voids: s
8185
- }), le.isElement(f) && b.isEmpty(t, f) || fe.isText(f) && f.text === "" && D[D.length - 1] !== 0 ? Y.removeNodes(t, {
8186
- at: D,
8180
+ }), le.isElement(f) && b.isEmpty(t, f) || fe.isText(f) && f.text === "" && y[y.length - 1] !== 0 ? Y.removeNodes(t, {
8181
+ at: y,
8187
8182
  voids: s
8188
8183
  }) : t.apply({
8189
8184
  type: "merge_node",
8190
- path: y,
8185
+ path: D,
8191
8186
  position: $,
8192
8187
  properties: T
8193
8188
  }), A && A.unref();
@@ -8286,21 +8281,21 @@ var Qg = function(t, n) {
8286
8281
  return;
8287
8282
  var p = b.rangeRef(t, i, {
8288
8283
  affinity: "inward"
8289
- }), [m, g] = U.edges(i), f = u === "lowest" ? "lowest" : "highest", D = b.isEnd(t, g, g.path);
8284
+ }), [m, g] = U.edges(i), f = u === "lowest" ? "lowest" : "highest", y = b.isEnd(t, g, g.path);
8290
8285
  Y.splitNodes(t, {
8291
8286
  at: g,
8292
8287
  match: a,
8293
8288
  mode: f,
8294
8289
  voids: h,
8295
- always: !D
8290
+ always: !y
8296
8291
  });
8297
- var y = b.isStart(t, m, m.path);
8292
+ var D = b.isStart(t, m, m.path);
8298
8293
  Y.splitNodes(t, {
8299
8294
  at: m,
8300
8295
  match: a,
8301
8296
  mode: f,
8302
8297
  voids: h,
8303
- always: !y
8298
+ always: !D
8304
8299
  }), i = p.unref(), r.at == null && Y.select(t, i);
8305
8300
  }
8306
8301
  s || (s = ($, N) => $ !== N);
@@ -8364,10 +8359,10 @@ var Qg = function(t, n) {
8364
8359
  var f = b.void(t, {
8365
8360
  at: s,
8366
8361
  mode: "highest"
8367
- }), D = 0;
8362
+ }), y = 0;
8368
8363
  if (!a && f) {
8369
- var [y, x] = f;
8370
- if (le.isElement(y) && t.isInline(y)) {
8364
+ var [D, x] = f;
8365
+ if (le.isElement(D) && t.isInline(D)) {
8371
8366
  var B = b.after(t, x);
8372
8367
  if (!B) {
8373
8368
  var k = {
@@ -8384,7 +8379,7 @@ var Qg = function(t, n) {
8384
8379
  o = A + 1, l = !0;
8385
8380
  }
8386
8381
  m = b.pointRef(t, s);
8387
- var T = s.path.length - o, [, $] = g, N = s.path.slice(0, T), M = o === 0 ? s.offset : s.path[T] + D;
8382
+ var T = s.path.length - o, [, $] = g, N = s.path.slice(0, T), M = o === 0 ? s.offset : s.path[T] + y;
8388
8383
  for (var [R, w] of b.levels(t, {
8389
8384
  at: N,
8390
8385
  reverse: !0,
@@ -8451,10 +8446,10 @@ var Qg = function(t, n) {
8451
8446
  // If we do not reverse the order and call it from top to the bottom, it will remove all blocks
8452
8447
  // that wrap target node. So we reverse the order.
8453
8448
  ).reverse(), h = function() {
8454
- var g = p.unref(), [f] = b.node(t, g), D = b.range(t, g);
8455
- a && l && (D = U.intersection(l.current, D)), Y.liftNodes(t, {
8456
- at: D,
8457
- match: (y) => le.isAncestor(f) && f.children.includes(y),
8449
+ var g = p.unref(), [f] = b.node(t, g), y = b.range(t, g);
8450
+ a && l && (y = U.intersection(l.current, y)), Y.liftNodes(t, {
8451
+ at: y,
8452
+ match: (D) => le.isAncestor(f) && f.children.includes(D),
8458
8453
  voids: i
8459
8454
  });
8460
8455
  };
@@ -8497,7 +8492,7 @@ var dv = function(t, n) {
8497
8492
  at: l = t.selection
8498
8493
  } = r;
8499
8494
  if (l) {
8500
- if (o == null && (P.isPath(l) ? o = sr(t, l) : t.isInline(n) ? o = (D) => le.isElement(D) && b.isInline(t, D) || fe.isText(D) : o = (D) => le.isElement(D) && b.isBlock(t, D)), i && U.isRange(l)) {
8495
+ if (o == null && (P.isPath(l) ? o = sr(t, l) : t.isInline(n) ? o = (y) => le.isElement(y) && b.isInline(t, y) || fe.isText(y) : o = (y) => le.isElement(y) && b.isBlock(t, y)), i && U.isRange(l)) {
8501
8496
  var [u, c] = U.edges(l), h = b.rangeRef(t, l, {
8502
8497
  affinity: "inward"
8503
8498
  });
@@ -8513,15 +8508,15 @@ var dv = function(t, n) {
8513
8508
  }
8514
8509
  var p = Array.from(b.nodes(t, {
8515
8510
  at: l,
8516
- match: t.isInline(n) ? (D) => le.isElement(D) && b.isBlock(t, D) : (D) => b.isEditor(D),
8511
+ match: t.isInline(n) ? (y) => le.isElement(y) && b.isBlock(t, y) : (y) => b.isEditor(y),
8517
8512
  mode: "lowest",
8518
8513
  voids: s
8519
8514
  })), m = function() {
8520
- var y = U.isRange(l) ? U.intersection(l, b.range(t, f)) : l;
8521
- if (!y)
8515
+ var D = U.isRange(l) ? U.intersection(l, b.range(t, f)) : l;
8516
+ if (!D)
8522
8517
  return 0;
8523
8518
  var x = Array.from(b.nodes(t, {
8524
- at: y,
8519
+ at: D,
8525
8520
  match: o,
8526
8521
  mode: a,
8527
8522
  voids: s
@@ -9139,21 +9134,21 @@ function b0(e, t, n) {
9139
9134
  return r = a = void 0, u = A, s = e.apply($, T), s;
9140
9135
  }
9141
9136
  function g(A) {
9142
- return u = A, o = setTimeout(y, t), c ? m(A) : s;
9137
+ return u = A, o = setTimeout(D, t), c ? m(A) : s;
9143
9138
  }
9144
9139
  function f(A) {
9145
9140
  var T = A - l, $ = A - u, N = t - T;
9146
9141
  return h ? v0(N, i - $) : N;
9147
9142
  }
9148
- function D(A) {
9143
+ function y(A) {
9149
9144
  var T = A - l, $ = A - u;
9150
9145
  return l === void 0 || T >= t || T < 0 || h && $ >= i;
9151
9146
  }
9152
- function y() {
9147
+ function D() {
9153
9148
  var A = gi();
9154
- if (D(A))
9149
+ if (y(A))
9155
9150
  return x(A);
9156
- o = setTimeout(y, f(A));
9151
+ o = setTimeout(D, f(A));
9157
9152
  }
9158
9153
  function x(A) {
9159
9154
  return o = void 0, p && r ? m(A) : (r = a = void 0, s);
@@ -9165,14 +9160,14 @@ function b0(e, t, n) {
9165
9160
  return o === void 0 ? s : x(gi());
9166
9161
  }
9167
9162
  function C() {
9168
- var A = gi(), T = D(A);
9163
+ var A = gi(), T = y(A);
9169
9164
  if (r = arguments, a = this, l = A, T) {
9170
9165
  if (o === void 0)
9171
9166
  return g(l);
9172
9167
  if (h)
9173
- return clearTimeout(o), o = setTimeout(y, t), m(l);
9168
+ return clearTimeout(o), o = setTimeout(D, t), m(l);
9174
9169
  }
9175
- return o === void 0 && (o = setTimeout(y, t)), s;
9170
+ return o === void 0 && (o = setTimeout(D, t)), s;
9176
9171
  }
9177
9172
  return C.cancel = B, C.flush = k, C;
9178
9173
  }
@@ -9226,7 +9221,7 @@ const k0 = /* @__PURE__ */ An(E0), Nu = (e) => typeof e == "object" && e != null
9226
9221
  }
9227
9222
  g != null && g === document.body && vi(g) && !vi(document.documentElement) || g != null && vi(g, c) && m.push(g);
9228
9223
  }
9229
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: y, scrollY: x } = window, { height: B, width: k, top: C, right: A, bottom: T, left: $ } = e.getBoundingClientRect(), { top: N, right: M, bottom: R, left: w } = ((z) => {
9224
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: D, scrollY: x } = window, { height: B, width: k, top: C, right: A, bottom: T, left: $ } = e.getBoundingClientRect(), { top: N, right: M, bottom: R, left: w } = ((z) => {
9230
9225
  const L = window.getComputedStyle(z);
9231
9226
  return { top: parseFloat(L.scrollMarginTop) || 0, right: parseFloat(L.scrollMarginRight) || 0, bottom: parseFloat(L.scrollMarginBottom) || 0, left: parseFloat(L.scrollMarginLeft) || 0 };
9232
9227
  })(e);
@@ -9234,13 +9229,13 @@ const k0 = /* @__PURE__ */ An(E0), Nu = (e) => typeof e == "object" && e != null
9234
9229
  const S = [];
9235
9230
  for (let z = 0; z < m.length; z++) {
9236
9231
  const L = m[z], { height: ne, width: J, top: v, right: W, bottom: X, left: _ } = L.getBoundingClientRect();
9237
- if (s === "if-needed" && C >= 0 && $ >= 0 && T <= D && A <= f && C >= v && T <= X && $ >= _ && A <= W)
9232
+ if (s === "if-needed" && C >= 0 && $ >= 0 && T <= y && A <= f && C >= v && T <= X && $ >= _ && A <= W)
9238
9233
  return S;
9239
9234
  const F = getComputedStyle(L), q = parseInt(F.borderLeftWidth, 10), I = parseInt(F.borderTopWidth, 10), H = parseInt(F.borderRightWidth, 10), ee = parseInt(F.borderBottomWidth, 10);
9240
9235
  let te = 0, ie = 0;
9241
9236
  const me = "offsetWidth" in L ? L.offsetWidth - L.clientWidth - q - H : 0, G = "offsetHeight" in L ? L.offsetHeight - L.clientHeight - I - ee : 0, ve = "offsetWidth" in L ? L.offsetWidth === 0 ? 0 : J / L.offsetWidth : 0, be = "offsetHeight" in L ? L.offsetHeight === 0 ? 0 : ne / L.offsetHeight : 0;
9242
9237
  if (p === L)
9243
- te = o === "start" ? E : o === "end" ? E - D : o === "nearest" ? Yr(x, x + D, D, I, ee, x + E, x + E + B, B) : E - D / 2, ie = l === "start" ? j : l === "center" ? j - f / 2 : l === "end" ? j - f : Yr(y, y + f, f, q, H, y + j, y + j + k, k), te = Math.max(0, te + x), ie = Math.max(0, ie + y);
9238
+ te = o === "start" ? E : o === "end" ? E - y : o === "nearest" ? Yr(x, x + y, y, I, ee, x + E, x + E + B, B) : E - y / 2, ie = l === "start" ? j : l === "center" ? j - f / 2 : l === "end" ? j - f : Yr(D, D + f, f, q, H, D + j, D + j + k, k), te = Math.max(0, te + x), ie = Math.max(0, ie + D);
9244
9239
  else {
9245
9240
  te = o === "start" ? E - v - I : o === "end" ? E - X + ee + G : o === "nearest" ? Yr(v, X, ne, I, ee + G, E, E + B, B) : E - (v + ne / 2) + G / 2, ie = l === "start" ? j - _ - q : l === "center" ? j - (_ + J / 2) + me / 2 : l === "end" ? j - W + H + me : Yr(_, W, J, q, H + me, j, j + k, k);
9246
9241
  const { scrollLeft: Ae, scrollTop: Ee } = L;
@@ -9351,7 +9346,7 @@ var xn = function(e) {
9351
9346
  return Gr.get(e);
9352
9347
  if (fd(e))
9353
9348
  return Gr.set(e, zu), zu;
9354
- var n = getComputedStyle(e), r = Gs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Rt(n.paddingTop), u = r ? 0 : Rt(n.paddingRight), c = r ? 0 : Rt(n.paddingBottom), h = r ? 0 : Rt(n.paddingLeft), p = r ? 0 : Rt(n.borderTopWidth), m = r ? 0 : Rt(n.borderRightWidth), g = r ? 0 : Rt(n.borderBottomWidth), f = r ? 0 : Rt(n.borderLeftWidth), D = h + u, y = l + c, x = f + m, B = p + g, k = o ? e.offsetHeight - B - e.clientHeight : 0, C = s ? e.offsetWidth - x - e.clientWidth : 0, A = a ? D + x : 0, T = a ? y + B : 0, $ = r ? r.width : Rt(n.width) - A - C, N = r ? r.height : Rt(n.height) - T - k, M = $ + D + C + x, R = N + y + k + B, w = xn({
9349
+ var n = getComputedStyle(e), r = Gs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Rt(n.paddingTop), u = r ? 0 : Rt(n.paddingRight), c = r ? 0 : Rt(n.paddingBottom), h = r ? 0 : Rt(n.paddingLeft), p = r ? 0 : Rt(n.borderTopWidth), m = r ? 0 : Rt(n.borderRightWidth), g = r ? 0 : Rt(n.borderBottomWidth), f = r ? 0 : Rt(n.borderLeftWidth), y = h + u, D = l + c, x = f + m, B = p + g, k = o ? e.offsetHeight - B - e.clientHeight : 0, C = s ? e.offsetWidth - x - e.clientWidth : 0, A = a ? y + x : 0, T = a ? D + B : 0, $ = r ? r.width : Rt(n.width) - A - C, N = r ? r.height : Rt(n.height) - T - k, M = $ + y + C + x, R = N + D + k + B, w = xn({
9355
9350
  devicePixelContentBoxSize: Kn(Math.round($ * devicePixelRatio), Math.round(N * devicePixelRatio), i),
9356
9351
  borderBoxSize: Kn(M, R, i),
9357
9352
  contentBoxSize: Kn($, N, i),
@@ -9657,8 +9652,8 @@ function bd(e, t) {
9657
9652
  throw new TypeError('Unknown modifier: "' + p + '"');
9658
9653
  (i === 1 || !f) && (n ? r.key = g : r.which = Dd(p)), f && (r[f] = m ? null : !0);
9659
9654
  }
9660
- } catch (D) {
9661
- l = !0, u = D;
9655
+ } catch (y) {
9656
+ l = !0, u = y;
9662
9657
  } finally {
9663
9658
  try {
9664
9659
  !o && c.return && c.return();
@@ -10009,15 +10004,15 @@ var Q = {
10009
10004
  length: h
10010
10005
  } = c.textContent, p = u.getAttribute("data-slate-length"), m = p == null ? h : parseInt(p, 10), g = o + m, f = s[l + 1];
10011
10006
  if (t.offset === g && f !== null && f !== void 0 && f.hasAttribute("data-slate-mark-placeholder")) {
10012
- var D, y = f.childNodes[0];
10007
+ var y, D = f.childNodes[0];
10013
10008
  a = [
10014
10009
  // COMPAT: If we don't explicity set the dom point to be on the actual
10015
10010
  // dom text element, chrome will put the selection behind the actual dom
10016
10011
  // text element, causing domRange.getBoundingClientRect() calls on a collapsed
10017
10012
  // selection to return incorrect zero values (https://bugs.chromium.org/p/chromium/issues/detail?id=435438)
10018
10013
  // which will cause issues when scrolling to it.
10019
- y instanceof cb ? y : f,
10020
- (D = f.textContent) !== null && D !== void 0 && D.startsWith("\uFEFF") ? 1 : 0
10014
+ D instanceof cb ? D : f,
10015
+ (y = f.textContent) !== null && y !== void 0 && y.startsWith("\uFEFF") ? 1 : 0
10021
10016
  ];
10022
10017
  break;
10023
10018
  }
@@ -10037,8 +10032,8 @@ var Q = {
10037
10032
  var {
10038
10033
  anchor: n,
10039
10034
  focus: r
10040
- } = t, a = U.isBackward(t), i = Q.toDOMPoint(e, n), s = U.isCollapsed(t) ? i : Q.toDOMPoint(e, r), o = Q.getWindow(e), l = o.document.createRange(), [u, c] = a ? s : i, [h, p] = a ? i : s, m = At(u) ? u : u.parentElement, g = !!m.getAttribute("data-slate-zero-width"), f = At(h) ? h : h.parentElement, D = !!f.getAttribute("data-slate-zero-width");
10041
- return l.setStart(u, g ? 1 : c), l.setEnd(h, D ? 1 : p), l;
10035
+ } = t, a = U.isBackward(t), i = Q.toDOMPoint(e, n), s = U.isCollapsed(t) ? i : Q.toDOMPoint(e, r), o = Q.getWindow(e), l = o.document.createRange(), [u, c] = a ? s : i, [h, p] = a ? i : s, m = At(u) ? u : u.parentElement, g = !!m.getAttribute("data-slate-zero-width"), f = At(h) ? h : h.parentElement, y = !!f.getAttribute("data-slate-zero-width");
10036
+ return l.setStart(u, g ? 1 : c), l.setEnd(h, y ? 1 : p), l;
10042
10037
  },
10043
10038
  toSlateNode: (e, t) => {
10044
10039
  var n = At(t) ? t : t.parentElement;
@@ -10054,10 +10049,10 @@ var Q = {
10054
10049
  suppressThrow: a
10055
10050
  } = n, [i, s] = r ? t : hb(t), o = i.parentNode, l = null, u = 0;
10056
10051
  if (o) {
10057
- var c, h, p = Q.toDOMNode(e, e), m = o.closest('[data-slate-void="true"]'), g = m && p.contains(m) ? m : null, f = o.closest("[data-slate-leaf]"), D = null;
10052
+ var c, h, p = Q.toDOMNode(e, e), m = o.closest('[data-slate-void="true"]'), g = m && p.contains(m) ? m : null, f = o.closest("[data-slate-leaf]"), y = null;
10058
10053
  if (f) {
10059
10054
  if (l = f.closest('[data-slate-node="text"]'), l) {
10060
- var y = Q.getWindow(e), x = y.document.createRange();
10055
+ var D = Q.getWindow(e), x = D.document.createRange();
10061
10056
  x.setStart(l, 0), x.setEnd(i, s);
10062
10057
  var B = x.cloneContents(), k = [...Array.prototype.slice.call(B.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(B.querySelectorAll("[contenteditable=false]"))];
10063
10058
  k.forEach((j) => {
@@ -10066,7 +10061,7 @@ var Q = {
10066
10061
  return;
10067
10062
  }
10068
10063
  j.parentNode.removeChild(j);
10069
- }), u = B.textContent.length, D = l;
10064
+ }), u = B.textContent.length, y = l;
10070
10065
  }
10071
10066
  } else if (g) {
10072
10067
  for (var C = g.querySelectorAll("[data-slate-leaf]"), A = 0; A < C.length; A++) {
@@ -10076,13 +10071,13 @@ var Q = {
10076
10071
  break;
10077
10072
  }
10078
10073
  }
10079
- f ? (l = f.closest('[data-slate-node="text"]'), D = f, u = D.textContent.length, D.querySelectorAll("[data-slate-zero-width]").forEach((j) => {
10074
+ f ? (l = f.closest('[data-slate-node="text"]'), y = f, u = y.textContent.length, y.querySelectorAll("[data-slate-zero-width]").forEach((j) => {
10080
10075
  u -= j.textContent.length;
10081
10076
  })) : u = 1;
10082
10077
  }
10083
- D && u === D.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
10078
+ y && u === y.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
10084
10079
  // and we don't add it for line-breaks.
10085
- ft && D.getAttribute("data-slate-zero-width") === "z" && (c = D.textContent) !== null && c !== void 0 && c.startsWith("\uFEFF") && // COMPAT: If the parent node is a Slate zero-width space, editor is
10080
+ ft && y.getAttribute("data-slate-zero-width") === "z" && (c = y.textContent) !== null && c !== void 0 && c.startsWith("\uFEFF") && // COMPAT: If the parent node is a Slate zero-width space, editor is
10086
10081
  // because the text node should have no characters. However, during IME
10087
10082
  // composition the ASCII characters will be prepended to the zero-width
10088
10083
  // space, so subtract 1 from the offset to account for the zero-width
@@ -10090,7 +10085,7 @@ var Q = {
10090
10085
  (o.hasAttribute("data-slate-zero-width") || // COMPAT: In Firefox, `range.cloneContents()` returns an extra trailing '\n'
10091
10086
  // when the document ends with a new-line character. This results in the offset
10092
10087
  // length being off by one, so we need to subtract one to account for this.
10093
- Hn && (h = D.textContent) !== null && h !== void 0 && h.endsWith(`
10088
+ Hn && (h = y.textContent) !== null && h !== void 0 && h.endsWith(`
10094
10089
 
10095
10090
  `)) && u--;
10096
10091
  }
@@ -10134,8 +10129,8 @@ var Q = {
10134
10129
  let A = function(T) {
10135
10130
  return T.childElementCount > 0 ? A(T.children[0]) : T;
10136
10131
  };
10137
- var g = p.startContainer, f = m.startContainer, D = A(g.children[p.startOffset]), y = A(f.children[m.startOffset]);
10138
- c = 0, y.childNodes.length > 0 ? o = y.childNodes[0] : o = y, D.childNodes.length > 0 ? u = D.childNodes[0] : u = D, y instanceof HTMLElement ? l = y.innerHTML.length : l = 0;
10132
+ var g = p.startContainer, f = m.startContainer, y = A(g.children[p.startOffset]), D = A(f.children[m.startOffset]);
10133
+ c = 0, D.childNodes.length > 0 ? o = D.childNodes[0] : o = D, y.childNodes.length > 0 ? u = y.childNodes[0] : u = y, D instanceof HTMLElement ? l = D.innerHTML.length : l = 0;
10139
10134
  } else
10140
10135
  p.startContainer === u ? (o = m.endContainer, l = m.endOffset, c = p.startOffset) : (o = p.startContainer, l = p.endOffset, c = m.startOffset);
10141
10136
  } else
@@ -10526,7 +10521,7 @@ function Tb(e) {
10526
10521
  }
10527
10522
  j.style.removeProperty("display");
10528
10523
  }
10529
- }, D = (w, E) => {
10524
+ }, y = (w, E) => {
10530
10525
  var j, S = (j = pt.get(t)) !== null && j !== void 0 ? j : [];
10531
10526
  pt.set(t, S);
10532
10527
  var z = oe.leaf(t, w), L = S.findIndex((v) => P.equals(v.path, w));
@@ -10547,7 +10542,7 @@ function Tb(e) {
10547
10542
  S[L] = ea(ea({}, S[L]), {}, {
10548
10543
  diff: J
10549
10544
  });
10550
- }, y = function(E) {
10545
+ }, D = function(E) {
10551
10546
  var {
10552
10547
  at: j
10553
10548
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -10598,13 +10593,13 @@ function Tb(e) {
10598
10593
  path: S.anchor.path,
10599
10594
  offset: I.offset
10600
10595
  }, Ee = b.range(t, Ae, Ae);
10601
- return T(Ee), D(S.anchor.path, {
10596
+ return T(Ee), y(S.anchor.path, {
10602
10597
  text: "",
10603
10598
  end: H.offset,
10604
10599
  start: I.offset
10605
10600
  });
10606
10601
  }
10607
- return y(() => b.deleteFragment(t, {
10602
+ return D(() => b.deleteFragment(t, {
10608
10603
  direction: q
10609
10604
  }), {
10610
10605
  at: S
@@ -10615,7 +10610,7 @@ function Tb(e) {
10615
10610
  case "deleteByComposition":
10616
10611
  case "deleteByCut":
10617
10612
  case "deleteByDrag":
10618
- return y(() => b.deleteFragment(t), {
10613
+ return D(() => b.deleteFragment(t), {
10619
10614
  at: S
10620
10615
  });
10621
10616
  case "deleteContent":
@@ -10626,13 +10621,13 @@ function Tb(e) {
10626
10621
  if (v && U.isCollapsed(S)) {
10627
10622
  var Ze = oe.leaf(t, Fe.path);
10628
10623
  if (Fe.offset < Ze.text.length)
10629
- return D(Fe.path, {
10624
+ return y(Fe.path, {
10630
10625
  text: "",
10631
10626
  start: Fe.offset,
10632
10627
  end: Fe.offset + 1
10633
10628
  });
10634
10629
  }
10635
- return y(() => b.deleteForward(t), {
10630
+ return D(() => b.deleteForward(t), {
10636
10631
  at: S
10637
10632
  });
10638
10633
  }
@@ -10640,16 +10635,16 @@ function Tb(e) {
10640
10635
  var He, {
10641
10636
  anchor: Ge
10642
10637
  } = S, tt = Ds(L) ? L.isCollapsed : !!((He = L) !== null && He !== void 0 && He.collapsed);
10643
- return v && tt && U.isCollapsed(S) && Ge.offset > 0 ? D(Ge.path, {
10638
+ return v && tt && U.isCollapsed(S) && Ge.offset > 0 ? y(Ge.path, {
10644
10639
  text: "",
10645
10640
  start: Ge.offset - 1,
10646
10641
  end: Ge.offset
10647
- }) : y(() => b.deleteBackward(t), {
10642
+ }) : D(() => b.deleteBackward(t), {
10648
10643
  at: S
10649
10644
  });
10650
10645
  }
10651
10646
  case "deleteEntireSoftLine":
10652
- return y(() => {
10647
+ return D(() => {
10653
10648
  b.deleteBackward(t, {
10654
10649
  unit: "line"
10655
10650
  }), b.deleteForward(t, {
@@ -10659,47 +10654,47 @@ function Tb(e) {
10659
10654
  at: S
10660
10655
  });
10661
10656
  case "deleteHardLineBackward":
10662
- return y(() => b.deleteBackward(t, {
10657
+ return D(() => b.deleteBackward(t, {
10663
10658
  unit: "block"
10664
10659
  }), {
10665
10660
  at: S
10666
10661
  });
10667
10662
  case "deleteSoftLineBackward":
10668
- return y(() => b.deleteBackward(t, {
10663
+ return D(() => b.deleteBackward(t, {
10669
10664
  unit: "line"
10670
10665
  }), {
10671
10666
  at: S
10672
10667
  });
10673
10668
  case "deleteHardLineForward":
10674
- return y(() => b.deleteForward(t, {
10669
+ return D(() => b.deleteForward(t, {
10675
10670
  unit: "block"
10676
10671
  }), {
10677
10672
  at: S
10678
10673
  });
10679
10674
  case "deleteSoftLineForward":
10680
- return y(() => b.deleteForward(t, {
10675
+ return D(() => b.deleteForward(t, {
10681
10676
  unit: "line"
10682
10677
  }), {
10683
10678
  at: S
10684
10679
  });
10685
10680
  case "deleteWordBackward":
10686
- return y(() => b.deleteBackward(t, {
10681
+ return D(() => b.deleteBackward(t, {
10687
10682
  unit: "word"
10688
10683
  }), {
10689
10684
  at: S
10690
10685
  });
10691
10686
  case "deleteWordForward":
10692
- return y(() => b.deleteForward(t, {
10687
+ return D(() => b.deleteForward(t, {
10693
10688
  unit: "word"
10694
10689
  }), {
10695
10690
  at: S
10696
10691
  });
10697
10692
  case "insertLineBreak":
10698
- return y(() => b.insertSoftBreak(t), {
10693
+ return D(() => b.insertSoftBreak(t), {
10699
10694
  at: S
10700
10695
  });
10701
10696
  case "insertParagraph":
10702
- return y(() => b.insertBreak(t), {
10697
+ return D(() => b.insertBreak(t), {
10703
10698
  at: S
10704
10699
  });
10705
10700
  case "insertCompositionText":
@@ -10711,13 +10706,13 @@ function Tb(e) {
10711
10706
  case "insertReplacementText":
10712
10707
  case "insertText": {
10713
10708
  if (Fb(z))
10714
- return y(() => Q.insertData(t, z), {
10709
+ return D(() => Q.insertData(t, z), {
10715
10710
  at: S
10716
10711
  });
10717
10712
  var pe = z ?? "";
10718
10713
  if (jt.get(t) && (pe = pe.replace("\uFEFF", "")), j === "insertText" && /.*\n.*\n$/.test(pe) && (pe = pe.slice(0, -1)), pe.includes(`
10719
10714
  `))
10720
- return y(() => {
10715
+ return D(() => {
10721
10716
  var ye = pe.split(`
10722
10717
  `);
10723
10718
  ye.forEach((_e, Xe) => {
@@ -10740,11 +10735,11 @@ function Tb(e) {
10740
10735
  text: u.text + pe
10741
10736
  }) : u = !1 : u = !1;
10742
10737
  if (v) {
10743
- D(Oe.path, V);
10738
+ y(Oe.path, V);
10744
10739
  return;
10745
10740
  }
10746
10741
  }
10747
- return y(() => b.insertText(t, pe), {
10742
+ return D(() => b.insertText(t, pe), {
10748
10743
  at: S
10749
10744
  });
10750
10745
  }
@@ -10992,7 +10987,7 @@ var Kb = (e) => {
10992
10987
  if (he(() => (f ? p.current || (p.current = setTimeout(() => {
10993
10988
  h(!0), p.current = null;
10994
10989
  }, Ub)) : (tl(p), h(!1)), () => tl(p)), [f, h]), f && c) {
10995
- var D = {
10990
+ var y = {
10996
10991
  children: t.placeholder,
10997
10992
  attributes: {
10998
10993
  "data-slate-placeholder": !0,
@@ -11013,13 +11008,13 @@ var Kb = (e) => {
11013
11008
  ref: m
11014
11009
  }
11015
11010
  };
11016
- g = /* @__PURE__ */ re.createElement(re.Fragment, null, i(D), g);
11011
+ g = /* @__PURE__ */ re.createElement(re.Fragment, null, i(y), g);
11017
11012
  }
11018
- var y = {
11013
+ var D = {
11019
11014
  "data-slate-leaf": !0
11020
11015
  };
11021
11016
  return s({
11022
- attributes: y,
11017
+ attributes: D,
11023
11018
  children: g,
11024
11019
  leaf: t,
11025
11020
  text: r
@@ -11051,8 +11046,8 @@ var Kb = (e) => {
11051
11046
  }));
11052
11047
  }
11053
11048
  var g = Pe((f) => {
11054
- var D = Ga.get(o);
11055
- f ? (D == null || D.set(c, f), wn.set(s, f), Nr.set(f, s)) : (D == null || D.delete(c), wn.delete(s), l.current && Nr.delete(l.current)), l.current = f;
11049
+ var y = Ga.get(o);
11050
+ f ? (y == null || y.set(c, f), wn.set(s, f), Nr.set(f, s)) : (y == null || y.delete(c), wn.delete(s), l.current && Nr.delete(l.current)), l.current = f;
11056
11051
  }, [l, o, c, s]);
11057
11052
  return /* @__PURE__ */ re.createElement("span", {
11058
11053
  "data-slate-node": "text",
@@ -11108,8 +11103,8 @@ var Qb = (e) => {
11108
11103
  }
11109
11104
  if (b.isVoid(o, n)) {
11110
11105
  m["data-slate-void"] = !0, !l && u && (m.contentEditable = !1);
11111
- var D = u ? "span" : "div", [[y]] = oe.texts(n);
11112
- p = /* @__PURE__ */ re.createElement(D, {
11106
+ var y = u ? "span" : "div", [[D]] = oe.texts(n);
11107
+ p = /* @__PURE__ */ re.createElement(y, {
11113
11108
  "data-slate-spacer": !0,
11114
11109
  style: {
11115
11110
  height: "0",
@@ -11122,8 +11117,8 @@ var Qb = (e) => {
11122
11117
  decorations: [],
11123
11118
  isLast: !1,
11124
11119
  parent: n,
11125
- text: y
11126
- })), eo.set(y, 0), to.set(y, n);
11120
+ text: D
11121
+ })), eo.set(D, 0), to.set(D, n);
11127
11122
  }
11128
11123
  return r({
11129
11124
  attributes: m,
@@ -11150,14 +11145,14 @@ var Qb = (e) => {
11150
11145
  renderLeaf: i,
11151
11146
  selection: s
11152
11147
  } = e, o = ey(), l = hn(), u = Q.findPath(l, n), c = [], h = le.isElement(n) && !l.isInline(n) && b.hasInlines(l, n), p = 0; p < n.children.length; p++) {
11153
- var m = u.concat(p), g = n.children[p], f = Q.findKey(l, g), D = b.range(l, m), y = s && U.intersection(D, s), x = o([g, m]);
11148
+ var m = u.concat(p), g = n.children[p], f = Q.findKey(l, g), y = b.range(l, m), D = s && U.intersection(y, s), x = o([g, m]);
11154
11149
  for (var B of t) {
11155
- var k = U.intersection(B, D);
11150
+ var k = U.intersection(B, y);
11156
11151
  k && x.push(k);
11157
11152
  }
11158
11153
  le.isElement(g) ? c.push(/* @__PURE__ */ re.createElement(ty.Provider, {
11159
11154
  key: "provider-".concat(f.id),
11160
- value: !!y
11155
+ value: !!D
11161
11156
  }, /* @__PURE__ */ re.createElement(Jb, {
11162
11157
  decorations: x,
11163
11158
  element: g,
@@ -11165,7 +11160,7 @@ var Qb = (e) => {
11165
11160
  renderElement: r,
11166
11161
  renderPlaceholder: a,
11167
11162
  renderLeaf: i,
11168
- selection: y
11163
+ selection: D
11169
11164
  }))) : c.push(/* @__PURE__ */ re.createElement(Od, {
11170
11165
  decorations: x,
11171
11166
  key: f.id,
@@ -11372,7 +11367,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11372
11367
  style: h = {},
11373
11368
  as: p = "div",
11374
11369
  disableDefaultStyles: m = !1
11375
- } = e, g = Qn(e, dy), f = Sn(), [D, y] = de(!1), x = ke(null), B = ke([]), [k, C] = de(), {
11370
+ } = e, g = Qn(e, dy), f = Sn(), [y, D] = de(!1), x = ke(null), B = ke([]), [k, C] = de(), {
11376
11371
  onUserInput: A,
11377
11372
  receivedUserInput: T
11378
11373
  } = ry(), [, $] = tr((F) => F + 1, 0);
@@ -11615,7 +11610,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11615
11610
  case "insertFromYank":
11616
11611
  case "insertReplacementText":
11617
11612
  case "insertText": {
11618
- H === "insertFromComposition" && Q.isComposing(f) && (y(!1), bn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? Q.insertData(f, ee) : typeof ee == "string" && (ie ? B.current.push(() => b.insertText(f, ee)) : b.insertText(f, ee));
11613
+ H === "insertFromComposition" && Q.isComposing(f) && (D(!1), bn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? Q.insertData(f, ee) : typeof ee == "string" && (ie ? B.current.push(() => b.insertText(f, ee)) : b.insertText(f, ee));
11619
11614
  break;
11620
11615
  }
11621
11616
  }
@@ -11631,7 +11626,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11631
11626
  F.document.removeEventListener("selectionchange", w);
11632
11627
  };
11633
11628
  }, [w]);
11634
- var S = r([f, []]), z = i && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !D, L = Pe((F) => {
11629
+ var S = r([f, []]), z = i && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !y, L = Pe((F) => {
11635
11630
  if (F && z) {
11636
11631
  var q;
11637
11632
  C((q = F.getBoundingClientRect()) === null || q === void 0 ? void 0 : q.height);
@@ -11799,7 +11794,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11799
11794
  if (Q.hasSelectableTarget(f, F.target)) {
11800
11795
  var q;
11801
11796
  if (Q.isComposing(f) && Promise.resolve().then(() => {
11802
- y(!1), bn.set(f, !1);
11797
+ D(!1), bn.set(f, !1);
11803
11798
  }), (q = M.current) === null || q === void 0 || q.handleCompositionEnd(F), lt(F, g.onCompositionEnd) || ft)
11804
11799
  return;
11805
11800
  if (!vr && !ob && !rb && !lb && !ub && F.data) {
@@ -11811,14 +11806,14 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11811
11806
  }
11812
11807
  }, [g.onCompositionEnd, f]),
11813
11808
  onCompositionUpdate: Pe((F) => {
11814
- Q.hasSelectableTarget(f, F.target) && !lt(F, g.onCompositionUpdate) && (Q.isComposing(f) || (y(!0), bn.set(f, !0)));
11809
+ Q.hasSelectableTarget(f, F.target) && !lt(F, g.onCompositionUpdate) && (Q.isComposing(f) || (D(!0), bn.set(f, !0)));
11815
11810
  }, [g.onCompositionUpdate, f]),
11816
11811
  onCompositionStart: Pe((F) => {
11817
11812
  if (Q.hasSelectableTarget(f, F.target)) {
11818
11813
  var q;
11819
11814
  if ((q = M.current) === null || q === void 0 || q.handleCompositionStart(F), lt(F, g.onCompositionStart) || ft)
11820
11815
  return;
11821
- y(!0);
11816
+ D(!0);
11822
11817
  var {
11823
11818
  selection: I
11824
11819
  } = f;
@@ -11898,7 +11893,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11898
11893
  var {
11899
11894
  nativeEvent: I
11900
11895
  } = F;
11901
- if (Q.isComposing(f) && I.isComposing === !1 && (bn.set(f, !1), y(!1)), lt(F, g.onKeyDown) || Q.isComposing(f))
11896
+ if (Q.isComposing(f) && I.isComposing === !1 && (bn.set(f, !1), D(!1)), lt(F, g.onKeyDown) || Q.isComposing(f))
11902
11897
  return;
11903
11898
  var {
11904
11899
  selection: H
@@ -12123,16 +12118,16 @@ var wy = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
12123
12118
  selectorContext: c,
12124
12119
  onChange: h
12125
12120
  } = xy(t), p = Pe((f) => {
12126
- var D;
12127
- switch (r && r(t.children), f == null || (D = f.operation) === null || D === void 0 ? void 0 : D.type) {
12121
+ var y;
12122
+ switch (r && r(t.children), f == null || (y = f.operation) === null || y === void 0 ? void 0 : y.type) {
12128
12123
  case "set_selection":
12129
12124
  a == null || a(t.selection);
12130
12125
  break;
12131
12126
  default:
12132
12127
  i == null || i(t.children);
12133
12128
  }
12134
- u((y) => ({
12135
- v: y.v + 1,
12129
+ u((D) => ({
12130
+ v: D.v + 1,
12136
12131
  editor: t
12137
12132
  })), h(t);
12138
12133
  }, [t, h, r, a, i]);
@@ -12237,9 +12232,9 @@ var ky = function(t) {
12237
12232
  g && sn.set(r, Yu(r, g, u));
12238
12233
  var f = an.get(r);
12239
12234
  if (f != null && f.at) {
12240
- var D = Be.isPoint(f == null ? void 0 : f.at) ? ws(r, f.at, u) : Yu(r, f.at, u);
12241
- an.set(r, D ? ul(ul({}, f), {}, {
12242
- at: D
12235
+ var y = Be.isPoint(f == null ? void 0 : f.at) ? ws(r, f.at, u) : Yu(r, f.at, u);
12236
+ an.set(r, y ? ul(ul({}, f), {}, {
12237
+ at: y
12243
12238
  }) : null);
12244
12239
  }
12245
12240
  switch (u.type) {
@@ -12251,8 +12246,8 @@ var ky = function(t) {
12251
12246
  break;
12252
12247
  }
12253
12248
  case "set_selection": {
12254
- var y;
12255
- (y = xr.get(r)) === null || y === void 0 || y.unref(), xr.delete(r);
12249
+ var D;
12250
+ (D = xr.get(r)) === null || D === void 0 || D.unref(), xr.delete(r);
12256
12251
  break;
12257
12252
  }
12258
12253
  case "insert_node":
@@ -12296,25 +12291,25 @@ var ky = function(t) {
12296
12291
  at: p.path
12297
12292
  });
12298
12293
  if (!(U.isCollapsed(c) && !m)) {
12299
- var f = Q.toDOMRange(r, c), D = f.cloneContents(), y = D.childNodes[0];
12300
- if (D.childNodes.forEach((M) => {
12301
- M.textContent && M.textContent.trim() !== "" && (y = M);
12294
+ var f = Q.toDOMRange(r, c), y = f.cloneContents(), D = y.childNodes[0];
12295
+ if (y.childNodes.forEach((M) => {
12296
+ M.textContent && M.textContent.trim() !== "" && (D = M);
12302
12297
  }), g) {
12303
12298
  var [x] = g, B = f.cloneRange(), k = Q.toDOMNode(r, x);
12304
- B.setEndAfter(k), D = B.cloneContents();
12299
+ B.setEndAfter(k), y = B.cloneContents();
12305
12300
  }
12306
- if (m && (y = D.querySelector("[data-slate-spacer]")), Array.from(D.querySelectorAll("[data-slate-zero-width]")).forEach((M) => {
12301
+ if (m && (D = y.querySelector("[data-slate-spacer]")), Array.from(y.querySelectorAll("[data-slate-zero-width]")).forEach((M) => {
12307
12302
  var R = M.getAttribute("data-slate-zero-width") === "n";
12308
12303
  M.textContent = R ? `
12309
12304
  ` : "";
12310
- }), _d(y)) {
12311
- var C = y.ownerDocument.createElement("span");
12312
- C.style.whiteSpace = "pre", C.appendChild(y), D.appendChild(C), y = C;
12305
+ }), _d(D)) {
12306
+ var C = D.ownerDocument.createElement("span");
12307
+ C.style.whiteSpace = "pre", C.appendChild(D), y.appendChild(C), D = C;
12313
12308
  }
12314
12309
  var A = r.getFragment(), T = JSON.stringify(A), $ = window.btoa(encodeURIComponent(T));
12315
- y.setAttribute("data-slate-fragment", $), u.setData("application/".concat(n), $);
12316
- var N = D.ownerDocument.createElement("div");
12317
- return N.appendChild(D), N.setAttribute("hidden", "true"), D.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", Ad(N)), D.ownerDocument.body.removeChild(N), u;
12310
+ D.setAttribute("data-slate-fragment", $), u.setData("application/".concat(n), $);
12311
+ var N = y.ownerDocument.createElement("div");
12312
+ return N.appendChild(y), N.setAttribute("hidden", "true"), y.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", Ad(N)), y.ownerDocument.body.removeChild(N), u;
12318
12313
  }
12319
12314
  }
12320
12315
  }, r.insertData = (u) => {
@@ -12423,13 +12418,13 @@ const By = ({
12423
12418
  return;
12424
12419
  let u, c = 0;
12425
12420
  if (t === "mention-popover") {
12426
- const { position: f } = i, D = (B) => {
12421
+ const { position: f } = i, y = (B) => {
12427
12422
  if (!b.hasPath(e, B.path))
12428
12423
  return !1;
12429
12424
  const k = oe.get(e, B.path);
12430
12425
  return b.isEditor(k) || le.isElement(k) ? B.offset <= k.children.length : fe.isText(k) ? B.offset <= k.text.length : !1;
12431
12426
  };
12432
- if (f && (!D(f == null ? void 0 : f.anchor) || !D(f == null ? void 0 : f.focus)))
12427
+ if (f && (!y(f == null ? void 0 : f.anchor) || !y(f == null ? void 0 : f.focus)))
12433
12428
  return;
12434
12429
  u = Q.toDOMRange(
12435
12430
  e,
@@ -13996,7 +13991,7 @@ function d1(e) {
13996
13991
  A = t.events[C][1].end;
13997
13992
  break;
13998
13993
  }
13999
- y(r);
13994
+ D(r);
14000
13995
  let T = k;
14001
13996
  for (; T < t.events.length; )
14002
13997
  t.events[T][1].end = Object.assign({}, A), T++;
@@ -14024,7 +14019,7 @@ function d1(e) {
14024
14019
  )(B);
14025
14020
  }
14026
14021
  function c(B) {
14027
- return a && x(), y(r), p(B);
14022
+ return a && x(), D(r), p(B);
14028
14023
  }
14029
14024
  function h(B) {
14030
14025
  return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(B);
@@ -14041,7 +14036,7 @@ function d1(e) {
14041
14036
  }
14042
14037
  function g(B) {
14043
14038
  if (B === null) {
14044
- a && x(), y(0), e.consume(B);
14039
+ a && x(), D(0), e.consume(B);
14045
14040
  return;
14046
14041
  }
14047
14042
  return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -14052,12 +14047,12 @@ function d1(e) {
14052
14047
  }
14053
14048
  function f(B) {
14054
14049
  if (B === null) {
14055
- D(e.exit("chunkFlow"), !0), y(0), e.consume(B);
14050
+ y(e.exit("chunkFlow"), !0), D(0), e.consume(B);
14056
14051
  return;
14057
14052
  }
14058
- return xe(B) ? (e.consume(B), D(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(B), f);
14053
+ return xe(B) ? (e.consume(B), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(B), f);
14059
14054
  }
14060
- function D(B, k) {
14055
+ function y(B, k) {
14061
14056
  const C = t.sliceStream(B);
14062
14057
  if (k && C.push(null), B.previous = i, i && (i.next = B), i = B, a.defineSkip(B.start), a.write(C), t.parser.lazy[B.start.line]) {
14063
14058
  let A = a.events.length;
@@ -14079,7 +14074,7 @@ function d1(e) {
14079
14074
  }
14080
14075
  N = !0;
14081
14076
  }
14082
- for (y(r), A = T; A < t.events.length; )
14077
+ for (D(r), A = T; A < t.events.length; )
14083
14078
  t.events[A][1].end = Object.assign({}, M), A++;
14084
14079
  qt(
14085
14080
  t.events,
@@ -14089,7 +14084,7 @@ function d1(e) {
14089
14084
  ), t.events.length = A;
14090
14085
  }
14091
14086
  }
14092
- function y(B) {
14087
+ function D(B) {
14093
14088
  let k = n.length;
14094
14089
  for (; k-- > B; ) {
14095
14090
  const C = n[k];
@@ -14378,12 +14373,12 @@ function C1(e, t, n) {
14378
14373
  return A === null || xe(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(A)) : A === 96 && A === o ? n(A) : (e.consume(A), g);
14379
14374
  }
14380
14375
  function f(A) {
14381
- return e.attempt(a, k, D)(A);
14382
- }
14383
- function D(A) {
14384
- return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), y;
14376
+ return e.attempt(a, k, y)(A);
14385
14377
  }
14386
14378
  function y(A) {
14379
+ return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), D;
14380
+ }
14381
+ function D(A) {
14387
14382
  return i > 0 && Re(A) ? ze(
14388
14383
  e,
14389
14384
  x,
@@ -14538,7 +14533,7 @@ function j1(e, t) {
14538
14533
  let a = t - 1;
14539
14534
  const i = [], s = n._tokenizer || r.parser[n.contentType](n.start), o = s.events, l = [], u = {};
14540
14535
  let c, h, p = -1, m = n, g = 0, f = 0;
14541
- const D = [f];
14536
+ const y = [f];
14542
14537
  for (; m; ) {
14543
14538
  for (; e[++a][1] !== m; )
14544
14539
  ;
@@ -14546,10 +14541,10 @@ function j1(e, t) {
14546
14541
  }
14547
14542
  for (m = n; ++p < o.length; )
14548
14543
  // Find a void token that includes a break.
14549
- o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (f = p + 1, D.push(f), m._tokenizer = void 0, m.previous = void 0, m = m.next);
14550
- for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : D.pop(), p = D.length; p--; ) {
14551
- const y = o.slice(D[p], D[p + 1]), x = i.pop();
14552
- l.unshift([x, x + y.length - 1]), qt(e, x, 2, y);
14544
+ o[p][0] === "exit" && o[p - 1][0] === "enter" && o[p][1].type === o[p - 1][1].type && o[p][1].start.line !== o[p][1].end.line && (f = p + 1, y.push(f), m._tokenizer = void 0, m.previous = void 0, m = m.next);
14545
+ for (s.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : y.pop(), p = y.length; p--; ) {
14546
+ const D = o.slice(y[p], y[p + 1]), x = i.pop();
14547
+ l.unshift([x, x + D.length - 1]), qt(e, x, 2, D);
14553
14548
  }
14554
14549
  for (p = -1; ++p < l.length; )
14555
14550
  u[g + l[p][0]] = g + l[p][1], g += l[p][1] - l[p][0] - 1;
@@ -14607,27 +14602,27 @@ function Zd(e, t, n, r, a, i, s, o, l) {
14607
14602
  const u = l || Number.POSITIVE_INFINITY;
14608
14603
  let c = 0;
14609
14604
  return h;
14610
- function h(y) {
14611
- return y === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(y), e.exit(i), p) : y === null || y === 32 || y === 41 || As(y) ? n(y) : (e.enter(r), e.enter(s), e.enter(o), e.enter("chunkString", {
14605
+ function h(D) {
14606
+ return D === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(D), e.exit(i), p) : D === null || D === 32 || D === 41 || As(D) ? n(D) : (e.enter(r), e.enter(s), e.enter(o), e.enter("chunkString", {
14612
14607
  contentType: "string"
14613
- }), f(y));
14608
+ }), f(D));
14614
14609
  }
14615
- function p(y) {
14616
- return y === 62 ? (e.enter(i), e.consume(y), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
14610
+ function p(D) {
14611
+ return D === 62 ? (e.enter(i), e.consume(D), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
14617
14612
  contentType: "string"
14618
- }), m(y));
14613
+ }), m(D));
14619
14614
  }
14620
- function m(y) {
14621
- return y === 62 ? (e.exit("chunkString"), e.exit(o), p(y)) : y === null || y === 60 || xe(y) ? n(y) : (e.consume(y), y === 92 ? g : m);
14615
+ function m(D) {
14616
+ return D === 62 ? (e.exit("chunkString"), e.exit(o), p(D)) : D === null || D === 60 || xe(D) ? n(D) : (e.consume(D), D === 92 ? g : m);
14622
14617
  }
14623
- function g(y) {
14624
- return y === 60 || y === 62 || y === 92 ? (e.consume(y), m) : m(y);
14618
+ function g(D) {
14619
+ return D === 60 || D === 62 || D === 92 ? (e.consume(D), m) : m(D);
14625
14620
  }
14626
- function f(y) {
14627
- return !c && (y === null || y === 41 || vt(y)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(y)) : c < u && y === 40 ? (e.consume(y), c++, f) : y === 41 ? (e.consume(y), c--, f) : y === null || y === 32 || y === 40 || As(y) ? n(y) : (e.consume(y), y === 92 ? D : f);
14621
+ function f(D) {
14622
+ return !c && (D === null || D === 41 || vt(D)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(D)) : c < u && D === 40 ? (e.consume(D), c++, f) : D === 41 ? (e.consume(D), c--, f) : D === null || D === 32 || D === 40 || As(D) ? n(D) : (e.consume(D), D === 92 ? y : f);
14628
14623
  }
14629
- function D(y) {
14630
- return y === 40 || y === 41 || y === 92 ? (e.consume(y), f) : f(y);
14624
+ function y(D) {
14625
+ return D === 40 || D === 41 || D === 92 ? (e.consume(D), f) : f(D);
14631
14626
  }
14632
14627
  }
14633
14628
  function Yd(e, t, n, r, a, i) {
@@ -14915,7 +14910,7 @@ function J1(e, t, n) {
14915
14910
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(_), h;
14916
14911
  }
14917
14912
  function h(_) {
14918
- return _ === 33 ? (e.consume(_), p) : _ === 47 ? (e.consume(_), i = !0, f) : _ === 63 ? (e.consume(_), a = 3, r.interrupt ? t : v) : It(_) ? (e.consume(_), s = String.fromCharCode(_), D) : n(_);
14913
+ return _ === 33 ? (e.consume(_), p) : _ === 47 ? (e.consume(_), i = !0, f) : _ === 63 ? (e.consume(_), a = 3, r.interrupt ? t : v) : It(_) ? (e.consume(_), s = String.fromCharCode(_), y) : n(_);
14919
14914
  }
14920
14915
  function p(_) {
14921
14916
  return _ === 45 ? (e.consume(_), a = 2, m) : _ === 91 ? (e.consume(_), a = 5, o = 0, g) : It(_) ? (e.consume(_), a = 4, r.interrupt ? t : v) : n(_);
@@ -14928,16 +14923,16 @@ function J1(e, t, n) {
14928
14923
  return _ === F.charCodeAt(o++) ? (e.consume(_), o === F.length ? r.interrupt ? t : w : g) : n(_);
14929
14924
  }
14930
14925
  function f(_) {
14931
- return It(_) ? (e.consume(_), s = String.fromCharCode(_), D) : n(_);
14926
+ return It(_) ? (e.consume(_), s = String.fromCharCode(_), y) : n(_);
14932
14927
  }
14933
- function D(_) {
14928
+ function y(_) {
14934
14929
  if (_ === null || _ === 47 || _ === 62 || vt(_)) {
14935
14930
  const F = _ === 47, q = s.toLowerCase();
14936
- return !F && !i && Tl.includes(q) ? (a = 1, r.interrupt ? t(_) : w(_)) : K1.includes(s.toLowerCase()) ? (a = 6, F ? (e.consume(_), y) : r.interrupt ? t(_) : w(_)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : i ? x(_) : B(_));
14931
+ return !F && !i && Tl.includes(q) ? (a = 1, r.interrupt ? t(_) : w(_)) : K1.includes(s.toLowerCase()) ? (a = 6, F ? (e.consume(_), D) : r.interrupt ? t(_) : w(_)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : i ? x(_) : B(_));
14937
14932
  }
14938
- return _ === 45 || Ot(_) ? (e.consume(_), s += String.fromCharCode(_), D) : n(_);
14933
+ return _ === 45 || Ot(_) ? (e.consume(_), s += String.fromCharCode(_), y) : n(_);
14939
14934
  }
14940
- function y(_) {
14935
+ function D(_) {
14941
14936
  return _ === 62 ? (e.consume(_), r.interrupt ? t : w) : n(_);
14942
14937
  }
14943
14938
  function x(_) {
@@ -15066,13 +15061,13 @@ function nD(e, t, n) {
15066
15061
  return v === W.charCodeAt(i++) ? (e.consume(v), i === W.length ? f : g) : n(v);
15067
15062
  }
15068
15063
  function f(v) {
15069
- return v === null ? n(v) : v === 93 ? (e.consume(v), D) : xe(v) ? (s = f, L(v)) : (e.consume(v), f);
15070
- }
15071
- function D(v) {
15072
- return v === 93 ? (e.consume(v), y) : f(v);
15064
+ return v === null ? n(v) : v === 93 ? (e.consume(v), y) : xe(v) ? (s = f, L(v)) : (e.consume(v), f);
15073
15065
  }
15074
15066
  function y(v) {
15075
- return v === 62 ? z(v) : v === 93 ? (e.consume(v), y) : f(v);
15067
+ return v === 93 ? (e.consume(v), D) : f(v);
15068
+ }
15069
+ function D(v) {
15070
+ return v === 62 ? z(v) : v === 93 ? (e.consume(v), D) : f(v);
15076
15071
  }
15077
15072
  function x(v) {
15078
15073
  return v === null || v === 62 ? z(v) : xe(v) ? (s = x, L(v)) : (e.consume(v), x);
@@ -15707,7 +15702,7 @@ function OD(e, t, n) {
15707
15702
  let c = t.tokenize.call(u, l);
15708
15703
  return t.resolveAll && i.push(t), u;
15709
15704
  function h(R) {
15710
- return s = Bt(s, R), D(), s[s.length - 1] !== null ? [] : ($(t, 0), u.events = oo(i, u.events, u), u.events);
15705
+ return s = Bt(s, R), y(), s[s.length - 1] !== null ? [] : ($(t, 0), u.events = oo(i, u.events, u), u.events);
15711
15706
  }
15712
15707
  function p(R, w) {
15713
15708
  return ND(m(R), w);
@@ -15728,18 +15723,18 @@ function OD(e, t, n) {
15728
15723
  function f(R) {
15729
15724
  a[R.line] = R.column, M();
15730
15725
  }
15731
- function D() {
15726
+ function y() {
15732
15727
  let R;
15733
15728
  for (; r._index < s.length; ) {
15734
15729
  const w = s[r._index];
15735
15730
  if (typeof w == "string")
15736
15731
  for (R = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === R && r._bufferIndex < w.length; )
15737
- y(w.charCodeAt(r._bufferIndex));
15732
+ D(w.charCodeAt(r._bufferIndex));
15738
15733
  else
15739
- y(w);
15734
+ D(w);
15740
15735
  }
15741
15736
  }
15742
- function y(R) {
15737
+ function D(R) {
15743
15738
  c = c(R);
15744
15739
  }
15745
15740
  function x(R) {
@@ -16089,12 +16084,12 @@ function XD(e) {
16089
16084
  characterReferenceMarkerHexadecimal: q,
16090
16085
  characterReferenceMarkerNumeric: q,
16091
16086
  characterReferenceValue: I,
16092
- codeFenced: l(D),
16087
+ codeFenced: l(y),
16093
16088
  codeFencedFence: f,
16094
16089
  codeFencedFenceInfo: m,
16095
16090
  codeFencedFenceMeta: g,
16096
16091
  codeFlowValue: M,
16097
- codeIndented: l(y),
16092
+ codeIndented: l(D),
16098
16093
  codeText: l(S),
16099
16094
  codeTextData: M,
16100
16095
  data: M,
@@ -16307,11 +16302,11 @@ function XD(e) {
16307
16302
  function f() {
16308
16303
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
16309
16304
  }
16310
- function D() {
16305
+ function y() {
16311
16306
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16312
16307
  se.value = V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
16313
16308
  }
16314
- function y() {
16309
+ function D() {
16315
16310
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16316
16311
  se.value = V.replace(/(\r?\n|\r)$/g, "");
16317
16312
  }
@@ -17045,13 +17040,13 @@ const lx = () => {
17045
17040
  },
17046
17041
  onBlur: (f) => {
17047
17042
  f.stopPropagation();
17048
- const D = [
17043
+ const y = [
17049
17044
  { type: "openTooltip", value: null }
17050
17045
  ];
17051
- l.selection && D.push({
17046
+ l.selection && y.push({
17052
17047
  type: "lastAnchor",
17053
17048
  value: l.selection.anchor
17054
- }), m(D);
17049
+ }), m(y);
17055
17050
  },
17056
17051
  contentEditable: !1,
17057
17052
  children: [
@@ -17068,7 +17063,7 @@ const lx = () => {
17068
17063
  f.stopPropagation(), f.preventDefault(), r();
17069
17064
  },
17070
17065
  onKeyDown: (f) => {
17071
- var D, y, x, B;
17066
+ var y, D, x, B;
17072
17067
  if (f.key !== "Tab")
17073
17068
  switch (f.key) {
17074
17069
  case "Enter":
@@ -17081,9 +17076,9 @@ const lx = () => {
17081
17076
  let C = k == null ? void 0 : k.nextElementSibling;
17082
17077
  if (f.key === "ArrowLeft") {
17083
17078
  const $ = k == null ? void 0 : k.previousElementSibling;
17084
- $ ? C = $ : C = (D = k == null ? void 0 : k.parentElement) == null ? void 0 : D.lastElementChild;
17079
+ $ ? C = $ : C = (y = k == null ? void 0 : k.parentElement) == null ? void 0 : y.lastElementChild;
17085
17080
  } else
17086
- C || (C = (y = k == null ? void 0 : k.parentElement) == null ? void 0 : y.firstElementChild);
17081
+ C || (C = (D = k == null ? void 0 : k.parentElement) == null ? void 0 : D.firstElementChild);
17087
17082
  const A = C == null ? void 0 : C.className.split(" ")[0];
17088
17083
  A && (h(A), (x = C == null ? void 0 : C.querySelector("button")) == null || x.focus());
17089
17084
  break;
@@ -17243,38 +17238,38 @@ let Pi = null;
17243
17238
  const mx = () => {
17244
17239
  const e = ce(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, dispatch: a, reportError: i } = Ke(en), s = Sn(), o = Fy(s), l = (o == null ? void 0 : o.text) || ax(s), [u, c] = de(Er(s)), h = Ld(s, "link-editor", `${n}-link`), p = ke(null);
17245
17240
  he(() => {
17246
- var D;
17247
- !u && r && ((D = p.current) == null || D.focus());
17241
+ var y;
17242
+ !u && r && ((y = p.current) == null || y.focus());
17248
17243
  }, [u]), he(() => {
17249
17244
  Pi && clearTimeout(Pi), Pi = setTimeout(() => {
17250
17245
  c(Er(s));
17251
17246
  }, 500);
17252
17247
  }, [s.selection]);
17253
- const m = [], g = ["open", "edit", "remove"].map((D) => {
17254
- const y = {
17248
+ const m = [], g = ["open", "edit", "remove"].map((y) => {
17249
+ const D = {
17255
17250
  variant: "tertiary",
17256
17251
  size: "small",
17257
17252
  children: e.formatMessage(
17258
- { id: `${t}${D}` },
17253
+ { id: `${t}${y}` },
17259
17254
  { link: o == null ? void 0 : o.pretty }
17260
17255
  )
17261
17256
  };
17262
- switch (m.push({ className: D }), D) {
17257
+ switch (m.push({ className: y }), y) {
17263
17258
  case "open":
17264
- y.href = (o == null ? void 0 : o.full) || "", y.onClick = (x) => {
17259
+ D.href = (o == null ? void 0 : o.full) || "", D.onClick = (x) => {
17265
17260
  x.preventDefault(), x.stopPropagation(), window.open((o == null ? void 0 : o.full) || "", "_blank"), a([{ type: "showLinkEditor", value: !1 }]);
17266
- }, y.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17267
- y.children,
17268
- /* @__PURE__ */ d.jsx(qe, { children: e.formatMessage({ id: `${t}${D}_text` }) })
17261
+ }, D.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17262
+ D.children,
17263
+ /* @__PURE__ */ d.jsx(qe, { children: e.formatMessage({ id: `${t}${y}_text` }) })
17269
17264
  ] });
17270
17265
  break;
17271
17266
  case "edit":
17272
- y.onClick = () => {
17267
+ D.onClick = () => {
17273
17268
  c(!1);
17274
17269
  };
17275
17270
  break;
17276
17271
  case "remove":
17277
- y.onClick = () => {
17272
+ D.onClick = () => {
17278
17273
  const x = [
17279
17274
  { type: "showLinkEditor", value: !1 }
17280
17275
  ];
@@ -17282,7 +17277,7 @@ const mx = () => {
17282
17277
  };
17283
17278
  break;
17284
17279
  }
17285
- return y;
17280
+ return D;
17286
17281
  }), f = [
17287
17282
  {
17288
17283
  id: "url",
@@ -17323,8 +17318,8 @@ const mx = () => {
17323
17318
  callbacks: {
17324
17319
  onOpen: () => {
17325
17320
  setTimeout(() => {
17326
- var D;
17327
- return (D = p.current) == null ? void 0 : D.focus();
17321
+ var y;
17322
+ return (y = p.current) == null ? void 0 : y.focus();
17328
17323
  });
17329
17324
  }
17330
17325
  },
@@ -17336,16 +17331,16 @@ const mx = () => {
17336
17331
  className: Z({ "show-labels": l }),
17337
17332
  meta: { shouldReset: !0, showRequiredLabels: !1 },
17338
17333
  functions: {
17339
- onSuccess: async (D) => {
17334
+ onSuccess: async (y) => {
17340
17335
  setTimeout(() => {
17341
- const y = [
17336
+ const D = [
17342
17337
  { type: "showLinkEditor", value: !1 }
17343
17338
  ];
17344
- if (D.url) {
17345
- const { full: x } = Bc(D.url);
17346
- o != null && o.full ? hx(s, x, n, i) : fx(s, x, n, i), y.push({ type: "lastAnchor", value: null });
17339
+ if (y.url) {
17340
+ const { full: x } = Bc(y.url);
17341
+ o != null && o.full ? hx(s, x, n, i) : fx(s, x, n, i), D.push({ type: "lastAnchor", value: null });
17347
17342
  }
17348
- a(y);
17343
+ a(D);
17349
17344
  });
17350
17345
  }
17351
17346
  },
@@ -17510,8 +17505,8 @@ const Fx = ({
17510
17505
  lastKey: null,
17511
17506
  hasInteracted: !1,
17512
17507
  hasLoaded: !1
17513
- }, [f, D] = tr(Ha, g), {
17514
- originalValue: y,
17508
+ }, [f, y] = tr(Ha, g), {
17509
+ originalValue: D,
17515
17510
  initialValue: x,
17516
17511
  stringValue: B,
17517
17512
  lastAnchor: k,
@@ -17521,7 +17516,7 @@ const Fx = ({
17521
17516
  mentionPopover: $
17522
17517
  } = f, N = (S) => {
17523
17518
  const z = S || Ta[0];
17524
- S && D([{ type: "tabbableOption", value: z }]);
17519
+ S && y([{ type: "tabbableOption", value: z }]);
17525
17520
  }, M = `rte-${e}`, R = Pe(
17526
17521
  (S) => /* @__PURE__ */ d.jsx(By, { ...S }),
17527
17522
  []
@@ -17545,33 +17540,33 @@ const Fx = ({
17545
17540
  mentions: s.mentions,
17546
17541
  listMembers: c || (() => Promise.resolve([]))
17547
17542
  })), rx(z, (L) => {
17548
- D([{ type: "initialValue", value: L }]), setTimeout(() => {
17549
- D([{ type: "stringValue", value: Pl(E) }]);
17543
+ y([{ type: "initialValue", value: L }]), setTimeout(() => {
17544
+ y([{ type: "stringValue", value: Pl(E) }]);
17550
17545
  }, 150);
17551
17546
  });
17552
17547
  })();
17553
17548
  }, []), he(() => {
17554
17549
  if (E.children.length > 0 && !T) {
17555
- if (D([{ type: "hasLoaded", value: !0 }]), !i)
17550
+ if (y([{ type: "hasLoaded", value: !0 }]), !i)
17556
17551
  return;
17557
17552
  const S = b.end(E, []);
17558
17553
  Y.select(E, S), Q.focus(E);
17559
17554
  }
17560
17555
  }, [E.children.length]), he(() => {
17561
- t !== "" || !E || pc(y, t) && !A || (b.withoutNormalizing(E, () => {
17556
+ t !== "" || !E || pc(D, t) && !A || (b.withoutNormalizing(E, () => {
17562
17557
  Y.delete(E, {
17563
17558
  at: {
17564
17559
  anchor: b.start(E, []),
17565
17560
  focus: b.end(E, [])
17566
17561
  }
17567
17562
  }), Y.deselect(E), E.children.length !== 0 && Y.unwrapNodes(E, { at: [0] }), Y.insertNodes(E, m, { at: [0] });
17568
- }), D([
17563
+ }), y([
17569
17564
  { type: "initialValue", value: m },
17570
17565
  { type: "lastAnchor", value: null }
17571
17566
  ]));
17572
17567
  }, [t]);
17573
17568
  const j = yc(() => {
17574
- sx(E, $.show, c, D);
17569
+ sx(E, $.show, c, y);
17575
17570
  }, 100);
17576
17571
  return x ? /* @__PURE__ */ d.jsx("div", { id: M, className: "rich-text-editor", children: /* @__PURE__ */ d.jsxs(
17577
17572
  en.Provider,
@@ -17580,7 +17575,7 @@ const Fx = ({
17580
17575
  ...f,
17581
17576
  id: M,
17582
17577
  setFocus: N,
17583
- dispatch: D,
17578
+ dispatch: y,
17584
17579
  reportError: p
17585
17580
  },
17586
17581
  children: [
@@ -17592,7 +17587,7 @@ const Fx = ({
17592
17587
  onChange: (S) => {
17593
17588
  if (E.operations.some((L) => L.type !== "set_selection")) {
17594
17589
  const L = ux(S);
17595
- h(L), D([{ type: "stringValue", value: Pl(E) }]), A || D([{ type: "hasInteracted", value: !0 }]), j(), u && console.log({ serialized: L, json: S });
17590
+ h(L), y([{ type: "stringValue", value: Pl(E) }]), A || y([{ type: "hasInteracted", value: !0 }]), j(), u && console.log({ serialized: L, json: S });
17596
17591
  }
17597
17592
  },
17598
17593
  ...o,
@@ -17608,7 +17603,7 @@ const Fx = ({
17608
17603
  tabIndex: 0,
17609
17604
  onKeyDown: (S) => {
17610
17605
  if (S.key === "Enter") {
17611
- $.show && (S.preventDefault(), S.stopPropagation(), nf(E, $, D, M));
17606
+ $.show && (S.preventDefault(), S.stopPropagation(), nf(E, $, y, M));
17612
17607
  const { selection: z } = E;
17613
17608
  if (z) {
17614
17609
  const L = U.isCollapsed(z), [ne, J] = b.node(E, z, { depth: 1 });
@@ -17637,7 +17632,7 @@ const Fx = ({
17637
17632
  }
17638
17633
  } else if (S.key === "Escape") {
17639
17634
  if ($.show) {
17640
- S.preventDefault(), S.stopPropagation(), D([
17635
+ S.preventDefault(), S.stopPropagation(), y([
17641
17636
  { type: "mentionPopover", value: { ...$, show: !1 } }
17642
17637
  ]);
17643
17638
  return;
@@ -17646,17 +17641,17 @@ const Fx = ({
17646
17641
  S.preventDefault(), S.stopPropagation();
17647
17642
  const { selectedUser: z, possibleUsers: L } = $;
17648
17643
  let ne = S.key === "ArrowUp" ? z - 1 : z + 1;
17649
- ne < 0 && (ne = L.length - 1), ne >= L.length && (ne = 0), D([
17644
+ ne < 0 && (ne = L.length - 1), ne >= L.length && (ne = 0), y([
17650
17645
  {
17651
17646
  type: "mentionPopover",
17652
17647
  value: { ...$, selectedUser: ne }
17653
17648
  }
17654
17649
  ]);
17655
17650
  }
17656
- D([{ type: "lastKey", value: S.key }]), ix(S, E, D, p);
17651
+ y([{ type: "lastKey", value: S.key }]), ix(S, E, y, p);
17657
17652
  },
17658
17653
  onBlur: () => {
17659
- E.selection && D([{ type: "lastAnchor", value: E.selection.anchor }]);
17654
+ E.selection && y([{ type: "lastAnchor", value: E.selection.anchor }]);
17660
17655
  },
17661
17656
  onFocus: () => {
17662
17657
  if (k) {
@@ -17860,7 +17855,7 @@ const Sx = ({
17860
17855
  initialFormStatus: u = "NOT_SUBMITTED"
17861
17856
  /* NOT_SUBMITTED */
17862
17857
  }) => {
17863
- const [c, h] = de([]), [p, m] = de(!0), [g, f] = de(u), { formatMessage: D } = ce(), y = async (k) => {
17858
+ const [c, h] = de([]), [p, m] = de(!0), [g, f] = de(u), { formatMessage: y } = ce(), D = async (k) => {
17864
17859
  k.preventDefault();
17865
17860
  try {
17866
17861
  await l(c), h([]), f(
@@ -17885,20 +17880,20 @@ const Sx = ({
17885
17880
  );
17886
17881
  };
17887
17882
  return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ d.jsxs("div", { className: "invite-form-wrapper", children: [
17888
- /* @__PURE__ */ d.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsx("h2", { className: "success-title", children: D({ id: "inviteForm_success" }) }) : /* @__PURE__ */ d.jsxs("h2", { className: "error-title", children: [
17883
+ /* @__PURE__ */ d.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsx("h2", { className: "success-title", children: y({ id: "inviteForm_success" }) }) : /* @__PURE__ */ d.jsxs("h2", { className: "error-title", children: [
17889
17884
  " ",
17890
- D({ id: "inviteForm_error" })
17885
+ y({ id: "inviteForm_error" })
17891
17886
  ] }) }),
17892
17887
  /* @__PURE__ */ d.jsx(Cn, {}),
17893
17888
  /* @__PURE__ */ d.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17894
- /* @__PURE__ */ d.jsx(Se, { variant: "secondary", onClick: x, children: D({ id: "inviteForm_ctaSendMoreInvites" }) }),
17895
- /* @__PURE__ */ d.jsx(Se, { onClick: B, children: D({ id: "inviteForm_ctaDone" }) })
17896
- ] }) : /* @__PURE__ */ d.jsx(Se, { onClick: x, children: D({ id: "inviteForm_ctaTryAgain" }) }) })
17889
+ /* @__PURE__ */ d.jsx(Se, { variant: "secondary", onClick: x, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
17890
+ /* @__PURE__ */ d.jsx(Se, { onClick: B, children: y({ id: "inviteForm_ctaDone" }) })
17891
+ ] }) : /* @__PURE__ */ d.jsx(Se, { onClick: x, children: y({ id: "inviteForm_ctaTryAgain" }) }) })
17897
17892
  ] }) : /* @__PURE__ */ d.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ d.jsxs(
17898
17893
  "form",
17899
17894
  {
17900
17895
  style: { backgroundColor: i },
17901
- onSubmit: y,
17896
+ onSubmit: D,
17902
17897
  className: Z("invite-form gtm-trackable"),
17903
17898
  children: [
17904
17899
  /* @__PURE__ */ d.jsxs("fieldset", { className: "content", children: [
@@ -17909,7 +17904,7 @@ const Sx = ({
17909
17904
  {
17910
17905
  id: "email-input",
17911
17906
  inputClassName: "email-input input",
17912
- placeholder: D({ id: "inviteForm_email_placeholder" }),
17907
+ placeholder: y({ id: "inviteForm_email_placeholder" }),
17913
17908
  emails: c,
17914
17909
  onChange: (k) => {
17915
17910
  h(k), m(!k.length);
@@ -17927,7 +17922,7 @@ const Sx = ({
17927
17922
  A(C), m(!c.length);
17928
17923
  },
17929
17924
  className: "remove-email-button",
17930
- screenreaderText: D({ id: "overlay_close" })
17925
+ screenreaderText: y({ id: "overlay_close" })
17931
17926
  }
17932
17927
  )
17933
17928
  ] }, C)
@@ -18366,8 +18361,8 @@ const Mx = {
18366
18361
  url: h,
18367
18362
  logInButton: p,
18368
18363
  successMessage: m
18369
- }, [f, D] = tr(Ha, Mx), {
18370
- validFields: y,
18364
+ }, [f, y] = tr(Ha, Mx), {
18365
+ validFields: D,
18371
18366
  emailDetails: x,
18372
18367
  shouldManuallyApprove: B,
18373
18368
  shouldDisableButton: k,
@@ -18388,7 +18383,7 @@ const Mx = {
18388
18383
  he(() => {
18389
18384
  B === !0 && N.jobTitle.current && N.jobTitle.current.focus();
18390
18385
  }, [B]), he(() => {
18391
- T["signup-this-session"] && D([{ type: "showSuccessMessage", value: !0 }]);
18386
+ T["signup-this-session"] && y([{ type: "showSuccessMessage", value: !0 }]);
18392
18387
  }, [T]), he(() => {
18393
18388
  C && T["functional-cookie-consent"] && $("signup-this-session", "true", {
18394
18389
  path: "/",
@@ -18402,10 +18397,10 @@ const Mx = {
18402
18397
  functions: r,
18403
18398
  refs: N,
18404
18399
  state: f,
18405
- dispatch: D,
18400
+ dispatch: y,
18406
18401
  dataToSubmit: s,
18407
18402
  intl: l
18408
- }), [s, r, l, N, g, f]), R = k ? !0 : B ? !Object.values(y).every((w) => w === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
18403
+ }), [s, r, l, N, g, f]), R = k ? !0 : B ? !Object.values(D).every((w) => w === !0) : !D.name || !D.email || ["exists", "pending", "verify"].includes(x.boxType);
18409
18404
  return g.successMessage && C ? /* @__PURE__ */ d.jsx(Rx, { className: e }) : /* @__PURE__ */ d.jsxs(
18410
18405
  "fieldset",
18411
18406
  {
@@ -18462,12 +18457,12 @@ const Mx = {
18462
18457
  dataToSubmit: s,
18463
18458
  createAccount: r.createAccount,
18464
18459
  onSuccess: r.onSuccess,
18465
- dispatch: D,
18460
+ dispatch: y,
18466
18461
  state: f
18467
18462
  });
18468
18463
  },
18469
18464
  onCatch: (w) => {
18470
- r.handleError(w), D([
18465
+ r.handleError(w), y([
18471
18466
  { type: "showSuccessMessage", value: !1 },
18472
18467
  { type: "showError", value: !0 }
18473
18468
  ]);
@@ -18494,7 +18489,7 @@ function $x() {
18494
18489
  if (Ll)
18495
18490
  return Me;
18496
18491
  Ll = 1;
18497
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18492
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18498
18493
  function B(C) {
18499
18494
  if (typeof C == "object" && C !== null) {
18500
18495
  var A = C.$$typeof;
@@ -18553,7 +18548,7 @@ function $x() {
18553
18548
  }, Me.isSuspense = function(C) {
18554
18549
  return B(C) === h;
18555
18550
  }, Me.isValidElementType = function(C) {
18556
- return typeof C == "string" || typeof C == "function" || C === r || C === u || C === i || C === a || C === h || C === p || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === m || C.$$typeof === s || C.$$typeof === o || C.$$typeof === c || C.$$typeof === D || C.$$typeof === y || C.$$typeof === x || C.$$typeof === f);
18551
+ return typeof C == "string" || typeof C == "function" || C === r || C === u || C === i || C === a || C === h || C === p || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === m || C.$$typeof === s || C.$$typeof === o || C.$$typeof === c || C.$$typeof === y || C.$$typeof === D || C.$$typeof === x || C.$$typeof === f);
18557
18552
  }, Me.typeOf = B, Me;
18558
18553
  }
18559
18554
  var $e = {};
@@ -18568,10 +18563,10 @@ var $e = {};
18568
18563
  var zl;
18569
18564
  function Ix() {
18570
18565
  return zl || (zl = 1, process.env.NODE_ENV !== "production" && function() {
18571
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18566
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18572
18567
  function B(G) {
18573
18568
  return typeof G == "string" || typeof G == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
18574
- G === r || G === u || G === i || G === a || G === h || G === p || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === m || G.$$typeof === s || G.$$typeof === o || G.$$typeof === c || G.$$typeof === D || G.$$typeof === y || G.$$typeof === x || G.$$typeof === f);
18569
+ G === r || G === u || G === i || G === a || G === h || G === p || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === m || G.$$typeof === s || G.$$typeof === o || G.$$typeof === c || G.$$typeof === y || G.$$typeof === D || G.$$typeof === x || G.$$typeof === f);
18575
18570
  }
18576
18571
  function k(G) {
18577
18572
  if (typeof G == "object" && G !== null) {
@@ -18792,14 +18787,14 @@ function qx() {
18792
18787
  return W;
18793
18788
  }
18794
18789
  var p = "<<anonymous>>", m = {
18795
- array: y("array"),
18796
- bigint: y("bigint"),
18797
- bool: y("boolean"),
18798
- func: y("function"),
18799
- number: y("number"),
18800
- object: y("object"),
18801
- string: y("string"),
18802
- symbol: y("symbol"),
18790
+ array: D("array"),
18791
+ bigint: D("bigint"),
18792
+ bool: D("boolean"),
18793
+ func: D("function"),
18794
+ number: D("number"),
18795
+ object: D("object"),
18796
+ string: D("string"),
18797
+ symbol: D("symbol"),
18803
18798
  any: x(),
18804
18799
  arrayOf: B,
18805
18800
  element: k(),
@@ -18819,7 +18814,7 @@ function qx() {
18819
18814
  this.message = v, this.data = W && typeof W == "object" ? W : {}, this.stack = "";
18820
18815
  }
18821
18816
  f.prototype = Error.prototype;
18822
- function D(v) {
18817
+ function y(v) {
18823
18818
  if (process.env.NODE_ENV !== "production")
18824
18819
  var W = {}, X = 0;
18825
18820
  function _(q, I, H, ee, te, ie, me) {
@@ -18842,7 +18837,7 @@ function qx() {
18842
18837
  var F = _.bind(null, !1);
18843
18838
  return F.isRequired = _.bind(null, !0), F;
18844
18839
  }
18845
- function y(v) {
18840
+ function D(v) {
18846
18841
  function W(X, _, F, q, I, H) {
18847
18842
  var ee = X[_], te = z(ee);
18848
18843
  if (te !== v) {
@@ -18854,10 +18849,10 @@ function qx() {
18854
18849
  }
18855
18850
  return null;
18856
18851
  }
18857
- return D(W);
18852
+ return y(W);
18858
18853
  }
18859
18854
  function x() {
18860
- return D(s);
18855
+ return y(s);
18861
18856
  }
18862
18857
  function B(v) {
18863
18858
  function W(X, _, F, q, I) {
@@ -18875,7 +18870,7 @@ function qx() {
18875
18870
  }
18876
18871
  return null;
18877
18872
  }
18878
- return D(W);
18873
+ return y(W);
18879
18874
  }
18880
18875
  function k() {
18881
18876
  function v(W, X, _, F, q) {
@@ -18886,7 +18881,7 @@ function qx() {
18886
18881
  }
18887
18882
  return null;
18888
18883
  }
18889
- return D(v);
18884
+ return y(v);
18890
18885
  }
18891
18886
  function C() {
18892
18887
  function v(W, X, _, F, q) {
@@ -18897,7 +18892,7 @@ function qx() {
18897
18892
  }
18898
18893
  return null;
18899
18894
  }
18900
- return D(v);
18895
+ return y(v);
18901
18896
  }
18902
18897
  function A(v) {
18903
18898
  function W(X, _, F, q, I) {
@@ -18907,7 +18902,7 @@ function qx() {
18907
18902
  }
18908
18903
  return null;
18909
18904
  }
18910
- return D(W);
18905
+ return y(W);
18911
18906
  }
18912
18907
  function T(v) {
18913
18908
  if (!Array.isArray(v))
@@ -18924,7 +18919,7 @@ function qx() {
18924
18919
  });
18925
18920
  return new f("Invalid " + q + " `" + I + "` of value `" + String(H) + "` " + ("supplied to `" + F + "`, expected one of " + te + "."));
18926
18921
  }
18927
- return D(W);
18922
+ return y(W);
18928
18923
  }
18929
18924
  function $(v) {
18930
18925
  function W(X, _, F, q, I) {
@@ -18941,7 +18936,7 @@ function qx() {
18941
18936
  }
18942
18937
  return null;
18943
18938
  }
18944
- return D(W);
18939
+ return y(W);
18945
18940
  }
18946
18941
  function N(v) {
18947
18942
  if (!Array.isArray(v))
@@ -18963,13 +18958,13 @@ function qx() {
18963
18958
  var ve = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
18964
18959
  return new f("Invalid " + H + " `" + ee + "` supplied to " + ("`" + I + "`" + ve + "."));
18965
18960
  }
18966
- return D(_);
18961
+ return y(_);
18967
18962
  }
18968
18963
  function M() {
18969
18964
  function v(W, X, _, F, q) {
18970
18965
  return j(W[X]) ? null : new f("Invalid " + F + " `" + q + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
18971
18966
  }
18972
- return D(v);
18967
+ return y(v);
18973
18968
  }
18974
18969
  function R(v, W, X, _, F) {
18975
18970
  return new f(
@@ -18991,7 +18986,7 @@ function qx() {
18991
18986
  }
18992
18987
  return null;
18993
18988
  }
18994
- return D(W);
18989
+ return y(W);
18995
18990
  }
18996
18991
  function E(v) {
18997
18992
  function W(X, _, F, q, I) {
@@ -19014,7 +19009,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
19014
19009
  }
19015
19010
  return null;
19016
19011
  }
19017
- return D(W);
19012
+ return y(W);
19018
19013
  }
19019
19014
  function j(v) {
19020
19015
  switch (typeof v) {
@@ -19590,7 +19585,7 @@ var Jl = {
19590
19585
  }, f = function(w) {
19591
19586
  var E = c("setReturnFocus", w);
19592
19587
  return E || (E === !1 ? !1 : w);
19593
- }, D = function(w) {
19588
+ }, y = function(w) {
19594
19589
  var E = w.target, j = w.event, S = w.isBackward, z = S === void 0 ? !1 : S;
19595
19590
  E = E || aa(j), p();
19596
19591
  var L = null;
@@ -19622,7 +19617,7 @@ var Jl = {
19622
19617
  } else
19623
19618
  L = c("fallbackFocus");
19624
19619
  return L;
19625
- }, y = function(w) {
19620
+ }, D = function(w) {
19626
19621
  var E = aa(w);
19627
19622
  if (!(u(E, w) >= 0)) {
19628
19623
  if (fr(i.clickOutsideDeactivates, w)) {
@@ -19663,7 +19658,7 @@ var Jl = {
19663
19658
  }) || (z = !1);
19664
19659
  else
19665
19660
  z = !1;
19666
- z && (S = D({
19661
+ z && (S = y({
19667
19662
  // move FROM the MRU node, not event-related node (which will be the node that is
19668
19663
  // outside the trap causing the focus escape we're trying to fix)
19669
19664
  target: s.mostRecentlyFocusedNode,
@@ -19674,7 +19669,7 @@ var Jl = {
19674
19669
  }, B = function(w) {
19675
19670
  var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
19676
19671
  s.recentNavEvent = w;
19677
- var j = D({
19672
+ var j = y({
19678
19673
  event: w,
19679
19674
  isBackward: E
19680
19675
  });
@@ -19692,10 +19687,10 @@ var Jl = {
19692
19687
  if (s.active)
19693
19688
  return Jl.activateTrap(a, o), s.delayInitialFocusTimer = i.delayInitialFocus ? Xl(function() {
19694
19689
  g(h());
19695
- }) : g(h()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
19690
+ }) : g(h()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", D, {
19696
19691
  capture: !0,
19697
19692
  passive: !1
19698
- }), r.addEventListener("touchstart", y, {
19693
+ }), r.addEventListener("touchstart", D, {
19699
19694
  capture: !0,
19700
19695
  passive: !1
19701
19696
  }), r.addEventListener("click", C, {
@@ -19707,7 +19702,7 @@ var Jl = {
19707
19702
  }), o;
19708
19703
  }, T = function() {
19709
19704
  if (s.active)
19710
- return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", C, !0), r.removeEventListener("keydown", k, !0), o;
19705
+ return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", D, !0), r.removeEventListener("touchstart", D, !0), r.removeEventListener("click", C, !0), r.removeEventListener("keydown", k, !0), o;
19711
19706
  }, $ = function(w) {
19712
19707
  var E = w.some(function(j) {
19713
19708
  var S = Array.from(j.removedNodes);
@@ -20230,14 +20225,14 @@ const Ja = ({
20230
20225
  className: c = "",
20231
20226
  gtmContext: h = "Modal"
20232
20227
  }) => {
20233
- const p = ce(), { registerOverlay: m, unregisterOverlay: g } = zw(), [f, D] = de(t), y = (k) => {
20228
+ const p = ce(), { registerOverlay: m, unregisterOverlay: g } = zw(), [f, y] = de(t), D = (k) => {
20234
20229
  k.key === "Escape" && x(!1);
20235
20230
  };
20236
- he(() => (window.addEventListener("keyup", y), () => {
20237
- window.removeEventListener("keyup", y);
20231
+ he(() => (window.addEventListener("keyup", D), () => {
20232
+ window.removeEventListener("keyup", D);
20238
20233
  }));
20239
20234
  const x = (k) => {
20240
- D(k), k ? (a(), m(e)) : (i(), g(e));
20235
+ y(k), k ? (a(), m(e)) : (i(), g(e));
20241
20236
  };
20242
20237
  he(() => (x(t), () => {
20243
20238
  f && g(e);
@@ -20663,34 +20658,34 @@ const Vw = [
20663
20658
  };
20664
20659
  r || (r = u.imageFullWidth ? "default" : "light");
20665
20660
  const c = ["eyebrow", "title", "text"], h = { eyebrow: "small", title: "h1", text: "p" }, p = {};
20666
- c.forEach((D) => {
20667
- if (!t[D]) {
20668
- p[D] = !1;
20661
+ c.forEach((y) => {
20662
+ if (!t[y]) {
20663
+ p[y] = !1;
20669
20664
  return;
20670
20665
  }
20671
- if (!s[D]) {
20672
- if (typeof t[D] == "object") {
20673
- p[D] = t[D];
20674
- const { text: y, element: x } = t[D];
20666
+ if (!s[y]) {
20667
+ if (typeof t[y] == "object") {
20668
+ p[y] = t[y];
20669
+ const { text: D, element: x } = t[y];
20675
20670
  if (x && Vw.includes(x.toLowerCase()))
20676
20671
  return;
20677
- p[D] = {
20678
- text: y,
20679
- element: h[D]
20672
+ p[y] = {
20673
+ text: D,
20674
+ element: h[y]
20680
20675
  };
20681
20676
  return;
20682
20677
  }
20683
- p[D] = {
20684
- text: t[D],
20685
- element: h[D]
20678
+ p[y] = {
20679
+ text: t[y],
20680
+ element: h[y]
20686
20681
  };
20687
20682
  }
20688
20683
  });
20689
20684
  const m = o && o.text && o.link;
20690
- return m && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (D) => {
20691
- D.preventDefault(), D.stopPropagation();
20692
- const y = document.getElementById(o.link.substring(1));
20693
- y && y.scrollIntoView({ behavior: "smooth" });
20685
+ return m && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (y) => {
20686
+ y.preventDefault(), y.stopPropagation();
20687
+ const D = document.getElementById(o.link.substring(1));
20688
+ D && D.scrollIntoView({ behavior: "smooth" });
20694
20689
  }), /* @__PURE__ */ d.jsx(
20695
20690
  jn,
20696
20691
  {
@@ -20703,10 +20698,10 @@ const Vw = [
20703
20698
  }),
20704
20699
  children: /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
20705
20700
  /* @__PURE__ */ d.jsxs("div", { className: "content-wrapper", children: [
20706
- c.map((D) => {
20707
- if (p[D] && typeof p[D] == "object") {
20708
- const { text: y, element: x = "" } = p[D];
20709
- return D === "text" ? /* @__PURE__ */ d.jsx(Fr, { overrideType: "text-only", className: "text", children: y }, D) : re.createElement(x, { key: D, className: D }, y);
20701
+ c.map((y) => {
20702
+ if (p[y] && typeof p[y] == "object") {
20703
+ const { text: D, element: x = "" } = p[y];
20704
+ return y === "text" ? /* @__PURE__ */ d.jsx(Fr, { overrideType: "text-only", className: "text", children: D }, y) : re.createElement(x, { key: y, className: y }, D);
20710
20705
  }
20711
20706
  return null;
20712
20707
  }),
@@ -20776,8 +20771,7 @@ const Zw = ({
20776
20771
  {
20777
20772
  image: {
20778
20773
  ...r,
20779
- alt: ""
20780
- // We don't want alt text on the image
20774
+ description: ""
20781
20775
  }
20782
20776
  }
20783
20777
  )
@@ -20945,13 +20939,13 @@ const ek = ({
20945
20939
  gtmEvent: "learning-hub"
20946
20940
  }
20947
20941
  }, Gw = ({ data: e, cta: t, link: n, gtmContext: r }) => {
20948
- var f, D;
20942
+ var f, y;
20949
20943
  const a = ce(), [i, s] = de({
20950
20944
  loading: !1,
20951
20945
  registered: e.registered || !1
20952
20946
  });
20953
20947
  he(() => {
20954
- e.registered && s((y) => ({ ...y, registered: !0 }));
20948
+ e.registered && s((D) => ({ ...D, registered: !0 }));
20955
20949
  }, [e.registered]);
20956
20950
  const { customLinkText: o, startDate: l, dateHasPassed: u, pill: c, slug: h } = e, p = e.contentType;
20957
20951
  let m = "";
@@ -20981,8 +20975,8 @@ const ek = ({
20981
20975
  ) : null;
20982
20976
  const g = ["communityPage", "microcourse", "event"];
20983
20977
  if (t && t.onClick && g.includes(p) && c !== "premium") {
20984
- const y = i.loading || i.registered || ((D = e == null ? void 0 : e.members) == null ? void 0 : D.isMember), x = async (B) => {
20985
- if (B.preventDefault(), B.stopPropagation(), !(y || !t || !t.onClick)) {
20978
+ const D = i.loading || i.registered || ((y = e == null ? void 0 : e.members) == null ? void 0 : y.isMember), x = async (B) => {
20979
+ if (B.preventDefault(), B.stopPropagation(), !(D || !t || !t.onClick)) {
20986
20980
  s((k) => ({ ...k, loading: !0 }));
20987
20981
  try {
20988
20982
  const k = await t.onClick(e);
@@ -21005,12 +20999,12 @@ const ek = ({
21005
20999
  className: "gtm-trackable",
21006
21000
  size: "small",
21007
21001
  styling: { fullWidth: !0 },
21008
- disabled: y,
21002
+ disabled: D,
21009
21003
  "data-gtm-event-context": `${r}Page-${p}: ${h}`,
21010
21004
  "data-gtm-event-type": `${r}-${p}-register-click`,
21011
21005
  "data-testid": "in-card-button",
21012
21006
  children: o || a.formatMessage({
21013
- id: `card_cta_${p}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
21007
+ id: `card_cta_${p}${D ? `_${i.loading ? "loading" : "done"}` : ""}`
21014
21008
  })
21015
21009
  }
21016
21010
  )
@@ -21038,13 +21032,13 @@ const Qw = {
21038
21032
  const l = ce(), u = Ke(tn), c = u && typeof u.id == "string", h = re.useRef(null), [p, m] = de({
21039
21033
  data: null,
21040
21034
  isLoading: !0
21041
- }), { data: g, isLoading: f } = p, D = Pe(() => {
21035
+ }), { data: g, isLoading: f } = p, y = Pe(() => {
21042
21036
  n(t, c).then((z) => {
21043
21037
  m(() => ({ data: z, isLoading: !1 }));
21044
21038
  }).catch(() => m((z) => ({ ...z, isLoading: !1 })));
21045
21039
  }, [e]);
21046
21040
  if (he(() => {
21047
- D();
21041
+ y();
21048
21042
  }, []), f || !g)
21049
21043
  return /* @__PURE__ */ d.jsx(
21050
21044
  Pt,
@@ -21058,15 +21052,15 @@ const Qw = {
21058
21052
  text: l.formatMessage({ id: `card_cta_${t.contentType}` }),
21059
21053
  onClick: s
21060
21054
  });
21061
- const { contentType: y } = g;
21062
- if (!y || !Ra[y])
21055
+ const { contentType: D } = g;
21056
+ if (!D || !Ra[D])
21063
21057
  return /* @__PURE__ */ d.jsx(Pt, { element: "li", className: "card-wrapper" });
21064
21058
  const {
21065
21059
  basePath: x = "",
21066
21060
  className: B,
21067
21061
  length: k,
21068
21062
  gtmEvent: C
21069
- } = Ra[y];
21063
+ } = Ra[D];
21070
21064
  let A = g.slug ? `${x}${g.slug}` : !1;
21071
21065
  g.slug && (g.slug.slice(0, 4) === "http" || g.slug.slice(0, 2) === "//" || g.slug.slice(0, 6) === "mailto" || g.slug.slice(0, 3) === "tel") && (A = g.slug);
21072
21066
  const T = (z) => {
@@ -21095,18 +21089,18 @@ const Qw = {
21095
21089
  "no-link": !A,
21096
21090
  "has-image": g.banner
21097
21091
  }),
21098
- "data-testid": `${y}-card`,
21092
+ "data-testid": `${D}-card`,
21099
21093
  children: /* @__PURE__ */ d.jsxs("div", { ...N, ref: h, children: [
21100
21094
  /* @__PURE__ */ d.jsx(
21101
21095
  Rh,
21102
21096
  {
21103
21097
  className: "card-label",
21104
- contentType: y,
21098
+ contentType: D,
21105
21099
  customIcon: g.isPrivate ? "lock-locked" : g.customIcon,
21106
21100
  customLabel: g.customLabel
21107
21101
  }
21108
21102
  ),
21109
- y === "communityPage" && (g == null ? void 0 : g.createdAt) && Dh(g == null ? void 0 : g.createdAt, 60) && /* @__PURE__ */ d.jsx(Ln, { size: "small", variant: "information", "data-testid": "new-community", children: l.formatMessage({ id: "card_new" }) }),
21103
+ D === "communityPage" && (g == null ? void 0 : g.createdAt) && Dh(g == null ? void 0 : g.createdAt, 60) && /* @__PURE__ */ d.jsx(Ln, { size: "small", variant: "information", "data-testid": "new-community", children: l.formatMessage({ id: "card_new" }) }),
21110
21104
  g.startDate && !g.isOngoingEvent && /* @__PURE__ */ d.jsx(
21111
21105
  Ln,
21112
21106
  {
@@ -21136,7 +21130,7 @@ const Qw = {
21136
21130
  showGap: B !== "question",
21137
21131
  showText: !0
21138
21132
  },
21139
- multipleText: ["event", "solutionArticle"].includes(y) ? l.formatMessage({ id: `card_contributors_${y}` }) : void 0,
21133
+ multipleText: ["event", "solutionArticle"].includes(D) ? l.formatMessage({ id: `card_contributors_${D}` }) : void 0,
21140
21134
  "data-testid": "contributors"
21141
21135
  }
21142
21136
  ),
@@ -21248,7 +21242,7 @@ const tC = ({
21248
21242
  }), { cardsPerPage: h, isLoading: p } = u, [m, g] = de({
21249
21243
  currentPage: 0,
21250
21244
  loadedPages: [0]
21251
- }), { currentPage: f, loadedPages: D } = m, [y, x] = de(""), B = t.length, k = Math.ceil(B / h), C = ke(null), A = Mr(!0, !0, C == null ? void 0 : C.current);
21245
+ }), { currentPage: f, loadedPages: y } = m, [D, x] = de(""), B = t.length, k = Math.ceil(B / h), C = ke(null), A = Mr(!0, !0, C == null ? void 0 : C.current);
21252
21246
  he(() => {
21253
21247
  let w = 1;
21254
21248
  A && (A >= Wi.fourCards ? w = 4 : A >= Wi.threeCards ? w = 3 : A >= Wi.twoCards && (w = 2), w > B && (w = B)), c((E) => ({
@@ -21274,7 +21268,7 @@ const tC = ({
21274
21268
  g((S) => ({
21275
21269
  ...S,
21276
21270
  currentPage: E,
21277
- loadedPages: [.../* @__PURE__ */ new Set([...D, E])]
21271
+ loadedPages: [.../* @__PURE__ */ new Set([...y, E])]
21278
21272
  }));
21279
21273
  const j = () => {
21280
21274
  const S = E * u.cardsPerPage, z = S + u.cardsPerPage;
@@ -21329,7 +21323,7 @@ const tC = ({
21329
21323
  "data-testid": "carousel-list",
21330
21324
  children: t.map((w, E) => {
21331
21325
  let j = R(w, E);
21332
- return j && Xw(E, h, f, D) ? /* @__PURE__ */ d.jsx(
21326
+ return j && Xw(E, h, f, y) ? /* @__PURE__ */ d.jsx(
21333
21327
  kf,
21334
21328
  {
21335
21329
  id: j,
@@ -21404,7 +21398,7 @@ const tC = ({
21404
21398
  }
21405
21399
  ) })
21406
21400
  ] }),
21407
- /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: y })
21401
+ /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: D })
21408
21402
  ] })
21409
21403
  ]
21410
21404
  }
@@ -21463,11 +21457,11 @@ const mr = "joinCommunityButton", _f = ({
21463
21457
  styling: { fullWidth: !0 },
21464
21458
  icon: c && p !== "leaving" ? { icon: "tick", position: "left" } : !1,
21465
21459
  tooltip: !t && !c ? s.formatMessage({ id: `${mr}_closed_tooltip` }) : "",
21466
- onClick: async (D) => {
21460
+ onClick: async (y) => {
21467
21461
  if (u)
21468
21462
  return;
21469
- D.currentTarget.blur(), m(c ? "leaving" : "joining");
21470
- const y = new CustomEvent("ariaLive", {
21463
+ y.currentTarget.blur(), m(c ? "leaving" : "joining");
21464
+ const D = new CustomEvent("ariaLive", {
21471
21465
  detail: {
21472
21466
  message: s.formatMessage(
21473
21467
  { id: `${mr}_aria_live` },
@@ -21475,7 +21469,7 @@ const mr = "joinCommunityButton", _f = ({
21475
21469
  )
21476
21470
  }
21477
21471
  });
21478
- document.dispatchEvent(y);
21472
+ document.dispatchEvent(D);
21479
21473
  const x = c ? i : a;
21480
21474
  typeof x == "function" && setTimeout(async () => {
21481
21475
  await x();
@@ -21639,38 +21633,38 @@ const oa = "languageSwitcher_", ik = ({
21639
21633
  if (he(() => {
21640
21634
  e !== h && p(e);
21641
21635
  }, [e]), !r || !Object.values(r).some(
21642
- (D) => D && D.post_name
21636
+ (y) => y && y.post_name
21643
21637
  ))
21644
21638
  return null;
21645
21639
  const g = Object.keys(r), f = h !== e;
21646
21640
  return /* @__PURE__ */ d.jsxs("div", { className: Z("language-switcher text-small", s, l), children: [
21647
21641
  /* @__PURE__ */ d.jsxs("nav", { children: [
21648
21642
  s !== "short" && /* @__PURE__ */ d.jsx("p", { children: o || u.formatMessage({ id: `${oa}label` }) }),
21649
- /* @__PURE__ */ d.jsx("ul", { children: g.map((D) => {
21643
+ /* @__PURE__ */ d.jsx("ul", { children: g.map((y) => {
21650
21644
  var B;
21651
- if (!qi[D])
21645
+ if (!qi[y])
21652
21646
  return null;
21653
- const y = (B = r[D]) == null ? void 0 : B.post_name;
21654
- let x = { className: D };
21655
- if (h === D)
21647
+ const D = (B = r[y]) == null ? void 0 : B.post_name;
21648
+ let x = { className: y };
21649
+ if (h === y)
21656
21650
  x["aria-label"] = u.formatMessage(
21657
21651
  { id: `${oa}selected` },
21658
- { language: qi[D] }
21652
+ { language: qi[y] }
21659
21653
  );
21660
21654
  else {
21661
- const k = nC(D, y, i);
21655
+ const k = nC(y, D, i);
21662
21656
  x = {
21663
21657
  ...x,
21664
21658
  href: typeof k == "string" ? k : k.url,
21665
21659
  onClick: (C) => {
21666
- p(D), c(D), typeof a < "u" && (C.preventDefault(), C.stopPropagation(), a(
21667
- D,
21660
+ p(y), c(y), typeof a < "u" && (C.preventDefault(), C.stopPropagation(), a(
21661
+ y,
21668
21662
  typeof k == "string" ? k : k.urlForRouter
21669
21663
  ));
21670
21664
  }
21671
21665
  };
21672
21666
  }
21673
- return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(ir, { ...x, fallbackElement: "span", children: qi[D] }) }, D);
21667
+ return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(ir, { ...x, fallbackElement: "span", children: qi[y] }) }, y);
21674
21668
  }) }),
21675
21669
  s !== "short" && !f && /* @__PURE__ */ d.jsx("p", { children: u.formatMessage({
21676
21670
  id: `${oa}translation_${t ? "original" : n ? "human" : "machine"}`
@@ -21684,9 +21678,9 @@ const oa = "languageSwitcher_", ik = ({
21684
21678
  { id: `${oa}disclaimer` },
21685
21679
  {
21686
21680
  email: gr.support,
21687
- link: (D) => {
21688
- const y = `mailto:${D}`;
21689
- return /* @__PURE__ */ d.jsx("a", { href: y, children: D });
21681
+ link: (y) => {
21682
+ const D = `mailto:${y}`;
21683
+ return /* @__PURE__ */ d.jsx("a", { href: D, children: y });
21690
21684
  }
21691
21685
  }
21692
21686
  )
@@ -21784,8 +21778,8 @@ const rC = ({
21784
21778
  /* @__PURE__ */ d.jsx("ul", { id: t, hidden: !s, children: n.map(({ href: u, onClick: c, text: h, icon: p, ...m }, g) => {
21785
21779
  const f = {
21786
21780
  ...m,
21787
- onClick: (D) => {
21788
- o(!1), typeof c == "function" && c(D);
21781
+ onClick: (y) => {
21782
+ o(!1), typeof c == "function" && c(y);
21789
21783
  },
21790
21784
  onFocus: () => {
21791
21785
  ua && (clearTimeout(ua), ua = !1);
@@ -21970,8 +21964,8 @@ const ok = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
21970
21964
  m.preventDefault();
21971
21965
  let f = g;
21972
21966
  m.key === "ArrowLeft" ? g > 0 ? f = g - 1 : f = e.length - 1 : m.key === "ArrowRight" && (g < e.length - 1 ? f = g + 1 : f = 0);
21973
- const D = r(e[f].id, e[f].text, f), y = document.getElementById(`tab-${D}`);
21974
- y == null || y.focus(), l(D);
21967
+ const y = r(e[f].id, e[f].text, f), D = document.getElementById(`tab-${y}`);
21968
+ D == null || D.focus(), l(y);
21975
21969
  break;
21976
21970
  }
21977
21971
  case "Enter":
@@ -21988,10 +21982,10 @@ const ok = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
21988
21982
  }
21989
21983
  }, [i]);
21990
21984
  const c = [], h = [];
21991
- return e.forEach(({ id: m, text: g, content: f, href: D, hasCarousel: y }, x) => {
21985
+ return e.forEach(({ id: m, text: g, content: f, href: y, hasCarousel: D }, x) => {
21992
21986
  m = r(m, g, x);
21993
21987
  const B = i === m, k = {};
21994
- D || (k["aria-controls"] = m, k.onClick = (C) => {
21988
+ y || (k["aria-controls"] = m, k.onClick = (C) => {
21995
21989
  C.preventDefault(), C.stopPropagation(), s(m), !n && (window.location.hash = `#${m}`);
21996
21990
  }, h.push(
21997
21991
  /* @__PURE__ */ d.jsx(
@@ -22010,7 +22004,7 @@ const ok = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
22010
22004
  /* @__PURE__ */ d.jsx("li", { "data-testid": "navigation-tab", children: /* @__PURE__ */ d.jsx(
22011
22005
  "a",
22012
22006
  {
22013
- href: D || `#${m}`,
22007
+ href: y || `#${m}`,
22014
22008
  id: `tab-${m}`,
22015
22009
  "aria-controls": m,
22016
22010
  className: Z({ selected: B }),
@@ -22574,8 +22568,8 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22574
22568
  });
22575
22569
  }
22576
22570
  const m = o.order && o.order[0] && o[o.order[0]], g = m && o[o.order[0]].order, f = p && window.location.pathname === o.href;
22577
- let D = {}, y = {};
22578
- if (f && (D = { ...D, "aria-current": "page" }), m) {
22571
+ let y = {}, D = {};
22572
+ if (f && (y = { ...y, "aria-current": "page" }), m) {
22579
22573
  const x = o.menuId || e, B = {
22580
22574
  onClick: (k) => Ie.events.onClick(k, { id: x, callback: a, isOpen: r[x] }),
22581
22575
  onFocus: () => Ie.events.onFocus({ id: x }),
@@ -22583,7 +22577,7 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22583
22577
  onMouseLeave: () => Ie.events.onBlur({ id: x, callback: a }),
22584
22578
  onMouseEnter: () => Ie.events.onMouseEnter({ id: x, callback: a })
22585
22579
  };
22586
- n && (g && (D = {
22580
+ n && (g && (y = {
22587
22581
  ...B,
22588
22582
  onKeyPress: (k) => {
22589
22583
  k.key === "Enter" && Ie.events.onClick(k, { id: x, callback: a, isOpen: r[x] });
@@ -22593,8 +22587,8 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22593
22587
  "aria-haspopup": !0,
22594
22588
  "aria-expanded": r[x],
22595
22589
  "aria-controls": x
22596
- }), y = { hidden: x in r ? !r[x] : !0 }), g || (y = {
22597
- ...y,
22590
+ }), D = { hidden: x in r ? !r[x] : !0 }), g || (D = {
22591
+ ...D,
22598
22592
  ...B
22599
22593
  });
22600
22594
  }
@@ -22607,14 +22601,14 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22607
22601
  parent: g,
22608
22602
  active: f
22609
22603
  }),
22610
- ...D,
22604
+ ...y,
22611
22605
  children: [
22612
22606
  p ? re.createElement(
22613
22607
  c ? Se : "a",
22614
22608
  p,
22615
22609
  s.formatMessage({ id: h })
22616
22610
  ) : s.formatMessage({ id: h }),
22617
- o.order && /* @__PURE__ */ d.jsx("ul", { ...y, children: o.order.map((x) => {
22611
+ o.order && /* @__PURE__ */ d.jsx("ul", { ...D, children: o.order.map((x) => {
22618
22612
  if (!o[x])
22619
22613
  return null;
22620
22614
  const B = {
@@ -22684,18 +22678,18 @@ const fC = { height: 67, height_desktop: 83 }, Ff = ({ showNavigation: e = !0 })
22684
22678
  }
22685
22679
  }
22686
22680
  });
22687
- const p = (f, D, y = !1) => {
22688
- Ie.handleMenus({ id: f, value: D, menus: h.current.menus, dispatch: o, forceHandle: y });
22681
+ const p = (f, y, D = !1) => {
22682
+ Ie.handleMenus({ id: f, value: y, menus: h.current.menus, dispatch: o, forceHandle: D });
22689
22683
  }, m = ke(null), g = (f) => {
22690
- f.key === "Escape" && ["navigation", "search", "account"].forEach((D) => {
22691
- h.current.menus[D] && p(D, !1, !0);
22684
+ f.key === "Escape" && ["navigation", "search", "account"].forEach((y) => {
22685
+ h.current.menus[y] && p(y, !1, !0);
22692
22686
  });
22693
22687
  };
22694
22688
  return he(() => {
22695
22689
  var f;
22696
22690
  return (f = document.getElementById("header")) == null || f.addEventListener("keydown", g), () => {
22697
- var D;
22698
- (D = document.getElementById("header")) == null || D.removeEventListener("keydown", g);
22691
+ var y;
22692
+ (y = document.getElementById("header")) == null || y.removeEventListener("keydown", g);
22699
22693
  };
22700
22694
  }, []), Ar(() => {
22701
22695
  u.navigation && Ie.autoFocus({
@@ -22873,14 +22867,14 @@ const hC = () => {
22873
22867
  variant: h = "default",
22874
22868
  circle: p = "default",
22875
22869
  modal: m = "default"
22876
- } = i, g = ch(), [f, D] = de(""), y = (A) => {
22870
+ } = i, g = ch(), [f, y] = de(""), D = (A) => {
22877
22871
  const {
22878
22872
  detail: { message: T }
22879
22873
  } = A;
22880
- D(T);
22874
+ y(T);
22881
22875
  };
22882
- he(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", y), () => {
22883
- document.removeEventListener("ariaLive", y);
22876
+ he(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", D), () => {
22877
+ document.removeEventListener("ariaLive", D);
22884
22878
  }), [g]);
22885
22879
  const x = fa(e, { locale: o }), B = fa(t, {
22886
22880
  locale: o
@@ -23148,8 +23142,8 @@ const hk = ({
23148
23142
  ({
23149
23143
  completed: g,
23150
23144
  completionTime: f,
23151
- contentType: D,
23152
- icon: y,
23145
+ contentType: y,
23146
+ icon: D,
23153
23147
  image: x,
23154
23148
  isIntroduction: B,
23155
23149
  optional: k,
@@ -23163,10 +23157,10 @@ const hk = ({
23163
23157
  "li",
23164
23158
  {
23165
23159
  className: Z({
23166
- article: D === Hr.ARTICLE,
23167
- discussion: D === Hr.DISCUSSION,
23168
- quiz: D === Hr.QUIZ,
23169
- completed: g && D === Hr.ARTICLE,
23160
+ article: y === Hr.ARTICLE,
23161
+ discussion: y === Hr.DISCUSSION,
23162
+ quiz: y === Hr.QUIZ,
23163
+ completed: g && y === Hr.ARTICLE,
23170
23164
  locked: !N
23171
23165
  }),
23172
23166
  ...M,
@@ -23193,7 +23187,7 @@ const hk = ({
23193
23187
  vC,
23194
23188
  {
23195
23189
  completionTime: f,
23196
- icon: y,
23190
+ icon: D,
23197
23191
  optional: k,
23198
23192
  type: $,
23199
23193
  children: c && c[C] && /* @__PURE__ */ d.jsx("span", { className: "quiz-score", children: `${c[C]}%` })
@@ -23274,7 +23268,7 @@ const ct = "discussion_form_", vo = ({
23274
23268
  var R, w, E;
23275
23269
  const c = ce(), h = Ke(tn), [p, m] = de(""), [g, f] = de(
23276
23270
  r.isEditing && r.isEditing.text || ""
23277
- ), [D, y] = de(s.error || !1), [x, B] = de(!1);
23271
+ ), [y, D] = de(s.error || !1), [x, B] = de(!1);
23278
23272
  if (r.isLoading)
23279
23273
  return /* @__PURE__ */ d.jsx(
23280
23274
  Pt,
@@ -23296,7 +23290,7 @@ const ct = "discussion_form_", vo = ({
23296
23290
  `${ct}error_noPermission`,
23297
23291
  t.type,
23298
23292
  "action"
23299
- ), S ? y(S) : D && y(!1);
23293
+ ), S ? D(S) : y && D(!1);
23300
23294
  };
23301
23295
  let C = `${t.type}-form`;
23302
23296
  if (t.type === "response" || t.type === "reply") {
@@ -23358,11 +23352,11 @@ const ct = "discussion_form_", vo = ({
23358
23352
  `${ct}error_tooMany`,
23359
23353
  t.type,
23360
23354
  "action"
23361
- ) : ne != null && ne.message.includes("400") && (J = `${ct}error`), y(J), T();
23355
+ ) : ne != null && ne.message.includes("400") && (J = `${ct}error`), D(J), T();
23362
23356
  }
23363
23357
  }, T = () => {
23364
23358
  la = setTimeout(() => {
23365
- y(!1), B(!1), m("");
23359
+ D(!1), B(!1), m("");
23366
23360
  }, 5e3);
23367
23361
  }, $ = !g || !Th(g), N = x === "submitting", M = [];
23368
23362
  return (r.isEditing && !N || s.cancel) && M.push({
@@ -23416,7 +23410,7 @@ const ct = "discussion_form_", vo = ({
23416
23410
  Fx,
23417
23411
  {
23418
23412
  id: `${C}-input`,
23419
- value: x === "submitting" && !D ? "" : g,
23413
+ value: x === "submitting" && !y ? "" : g,
23420
23414
  placeholder: a || St(
23421
23415
  c.formatMessage,
23422
23416
  `${ct}placeholder`,
@@ -23427,7 +23421,7 @@ const ct = "discussion_form_", vo = ({
23427
23421
  functions: { onChange: k, listMembers: o.listMembers },
23428
23422
  data: l,
23429
23423
  autoFocus: !!r.isEditing,
23430
- "aria-invalid": !!D,
23424
+ "aria-invalid": !!y,
23431
23425
  "aria-errormessage": "error-message"
23432
23426
  }
23433
23427
  ),
@@ -23458,15 +23452,15 @@ const ct = "discussion_form_", vo = ({
23458
23452
  t.type,
23459
23453
  "action"
23460
23454
  ) }),
23461
- D && /* @__PURE__ */ d.jsx(xa, { id: "error-message", className: "error", "data-testid": "error", children: s.error ? s.error : typeof D == "string" ? D.includes(" ") ? D : c.formatMessage(
23462
- { id: D },
23455
+ y && /* @__PURE__ */ d.jsx(xa, { id: "error-message", className: "error", "data-testid": "error", children: s.error ? s.error : typeof y == "string" ? y.includes(" ") ? y : c.formatMessage(
23456
+ { id: y },
23463
23457
  {
23464
23458
  action: c.formatMessage({
23465
23459
  id: `discussion_action_${t.type}`
23466
23460
  }),
23467
23461
  maxLength: i
23468
23462
  }
23469
- ) : D })
23463
+ ) : y })
23470
23464
  ]
23471
23465
  }
23472
23466
  ),
@@ -23546,8 +23540,8 @@ const wC = ({
23546
23540
  numberOfLikes: m,
23547
23541
  userLikedContent: g,
23548
23542
  ignoreInteractions: f,
23549
- showLikers: D,
23550
- tabbableLink: y
23543
+ showLikers: y,
23544
+ tabbableLink: D
23551
23545
  } = h;
23552
23546
  he(() => {
23553
23547
  p([{ type: "userLikedContent", value: a }]);
@@ -23669,7 +23663,7 @@ const wC = ({
23669
23663
  onKeyDown: (T) => {
23670
23664
  T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), C());
23671
23665
  },
23672
- "aria-expanded": D,
23666
+ "aria-expanded": y,
23673
23667
  "aria-controls": `likes-tooltip-${i.slug}`,
23674
23668
  children: /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: u.formatMessage(
23675
23669
  { id: "discussion_likes_show" },
@@ -23681,14 +23675,14 @@ const wC = ({
23681
23675
  nr,
23682
23676
  {
23683
23677
  id: `likes-tooltip-${i.slug}`,
23684
- isOpen: D,
23678
+ isOpen: y,
23685
23679
  isLoading: n.length === 0,
23686
23680
  children: n.length && /* @__PURE__ */ d.jsxs("ul", { children: [
23687
23681
  x.map((T, $) => {
23688
23682
  if (typeof T == "string" || !T.name)
23689
23683
  return null;
23690
23684
  const N = {};
23691
- return y !== $ && (N.tabIndex = -1), /* @__PURE__ */ d.jsx("li", { "data-index": $, children: /* @__PURE__ */ d.jsx(
23685
+ return D !== $ && (N.tabIndex = -1), /* @__PURE__ */ d.jsx("li", { "data-index": $, children: /* @__PURE__ */ d.jsx(
23692
23686
  ir,
23693
23687
  {
23694
23688
  href: T.id ? `/profiles/${T.id}` : void 0,
@@ -23811,8 +23805,8 @@ const kC = 3e3, _C = ({ url: e }) => {
23811
23805
  setFocus: m = !1
23812
23806
  }) => {
23813
23807
  var be, Ae, Ee, Fe, Ze, He, Ge, tt;
23814
- const g = ce(), f = Ke(tn), D = Ke(bo), {
23815
- createContent: y = async () => {
23808
+ const g = ce(), f = Ke(tn), y = Ke(bo), {
23809
+ createContent: D = async () => {
23816
23810
  },
23817
23811
  deleteContent: x = async () => {
23818
23812
  },
@@ -23886,7 +23880,7 @@ const kC = 3e3, _C = ({ url: e }) => {
23886
23880
  H(`${Kt}form_error`);
23887
23881
  }
23888
23882
  }, me = () => {
23889
- D && D.updateConversation && D.updateConversation({ showForm: !0 }), setTimeout(() => {
23883
+ y && y.updateConversation && y.updateConversation({ showForm: !0 }), setTimeout(() => {
23890
23884
  var se, ge, ye;
23891
23885
  const Oe = `reply-form-${(t.type === "answer" ? t.slug : ((se = t.slugs) == null ? void 0 : se.reply) || ((ge = t.slugs) == null ? void 0 : ge.answer) || ((ye = t.slugs) == null ? void 0 : ye.question) || "").toLowerCase().slice(-15)}`, We = document.getElementById(Oe), V = document.getElementById(`${Oe}-input`);
23892
23886
  V && V.focus(), We && We.scrollIntoView({ behavior: "smooth" });
@@ -23994,7 +23988,7 @@ const kC = 3e3, _C = ({ url: e }) => {
23994
23988
  ) : !1
23995
23989
  },
23996
23990
  functions: {
23997
- create: y,
23991
+ create: D,
23998
23992
  handleSaveEdit: ie,
23999
23993
  handleCancel: () => {
24000
23994
  H(""), W({ ...v, isEditing: !1 });
@@ -24603,9 +24597,9 @@ function qC({
24603
24597
  },
24604
24598
  user: l,
24605
24599
  ...u
24606
- }, h = LC({ ...c, mutationFn: e }), p = zC({ ...c, mutationFn: t }), m = WC({ ...c, mutationFn: n }), g = UC({ ...c, mutationFn: a }), f = VC({ ...c, mutationFn: i }), { activities: D, ...y } = HC({ queryKey: s, queryFn: r });
24600
+ }, h = LC({ ...c, mutationFn: e }), p = zC({ ...c, mutationFn: t }), m = WC({ ...c, mutationFn: n }), g = UC({ ...c, mutationFn: a }), f = VC({ ...c, mutationFn: i }), { activities: y, ...D } = HC({ queryKey: s, queryFn: r });
24607
24601
  return {
24608
- activities: D,
24602
+ activities: y,
24609
24603
  mutations: {
24610
24604
  create: h,
24611
24605
  edit: p,
@@ -24614,7 +24608,7 @@ function qC({
24614
24608
  unlike: f
24615
24609
  },
24616
24610
  user: l,
24617
- ...y
24611
+ ...D
24618
24612
  };
24619
24613
  }
24620
24614
  function WC({
@@ -24736,7 +24730,7 @@ const pk = ({
24736
24730
  fetchNextPage: c,
24737
24731
  hasNextPage: h,
24738
24732
  isLoading: p,
24739
- mutations: { create: m, edit: g, remove: f, like: D, unlike: y },
24733
+ mutations: { create: m, edit: g, remove: f, like: y, unlike: D },
24740
24734
  user: x
24741
24735
  } = qC({
24742
24736
  queryKey: [e, t, "activities"],
@@ -24823,8 +24817,8 @@ const pk = ({
24823
24817
  updateContent: (H, { body: ee }) => g({ activityId: $, content: ee })
24824
24818
  },
24825
24819
  likes: {
24826
- createLike: () => D({ activityId: $ }),
24827
- deleteLike: () => y({ activityId: $, reactionId: S })
24820
+ createLike: () => y({ activityId: $ }),
24821
+ deleteLike: () => D({ activityId: $, reactionId: S })
24828
24822
  },
24829
24823
  comments: {
24830
24824
  openComments: () => null
@@ -25459,9 +25453,9 @@ function Mf({
25459
25453
  },
25460
25454
  user: l,
25461
25455
  ...u
25462
- }, h = YC({ ...c, mutationFn: e }), p = GC({ ...c, mutationFn: t }), m = QC({ ...c, mutationFn: n }), g = XC({ ...c, mutationFn: a }), f = eE({ ...c, mutationFn: i }), { replies: D, ...y } = JC({ queryKey: s, queryFn: r });
25456
+ }, h = YC({ ...c, mutationFn: e }), p = GC({ ...c, mutationFn: t }), m = QC({ ...c, mutationFn: n }), g = XC({ ...c, mutationFn: a }), f = eE({ ...c, mutationFn: i }), { replies: y, ...D } = JC({ queryKey: s, queryFn: r });
25463
25457
  return {
25464
- replies: D,
25458
+ replies: y,
25465
25459
  mutations: {
25466
25460
  create: h,
25467
25461
  edit: p,
@@ -25470,7 +25464,7 @@ function Mf({
25470
25464
  unlike: f
25471
25465
  },
25472
25466
  user: l,
25473
- ...y
25467
+ ...D
25474
25468
  };
25475
25469
  }
25476
25470
  function QC({
@@ -25604,8 +25598,8 @@ const sE = ({
25604
25598
  fetchNextPage: u,
25605
25599
  hasNextPage: c,
25606
25600
  isLoading: h,
25607
- mutations: { create: p, edit: m, like: g, remove: f, unlike: D },
25608
- user: y
25601
+ mutations: { create: p, edit: m, like: g, remove: f, unlike: y },
25602
+ user: D
25609
25603
  } = Mf({
25610
25604
  queryKey: [e, t, n, r, "replies"],
25611
25605
  queryFns: {
@@ -25666,14 +25660,14 @@ const sE = ({
25666
25660
  data: { mentioned_users: N }
25667
25661
  } = k, R = (((v = A == null ? void 0 : A.like) == null ? void 0 : v.length) || 0) > 0 ? (W = A == null ? void 0 : A.like) == null ? void 0 : W.find((G) => {
25668
25662
  var ve;
25669
- return ((ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id) === (y == null ? void 0 : y.id);
25663
+ return ((ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id) === (D == null ? void 0 : D.id);
25670
25664
  }) : !1, w = R ? R == null ? void 0 : R.id : "", E = !!R, S = (((X = T == null ? void 0 : T.like) == null ? void 0 : X.length) || 0) > 0 ? (_ = T == null ? void 0 : T.like) == null ? void 0 : _.map((G) => {
25671
25665
  var ve, be, Ae;
25672
25666
  return {
25673
25667
  id: (ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id,
25674
25668
  name: (Ae = (be = G == null ? void 0 : G.user) == null ? void 0 : be.data) == null ? void 0 : Ae.name
25675
25669
  };
25676
- }) : !1, z = k == null ? void 0 : k.user, L = (z == null ? void 0 : z.id) === (y == null ? void 0 : y.id), ne = ei(a, L), J = typeof k.data.content == "string" ? (F = k == null ? void 0 : k.data) == null ? void 0 : F.content : (
25670
+ }) : !1, z = k == null ? void 0 : k.user, L = (z == null ? void 0 : z.id) === (D == null ? void 0 : D.id), ne = ei(a, L), J = typeof k.data.content == "string" ? (F = k == null ? void 0 : k.data) == null ? void 0 : F.content : (
25677
25671
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25678
25672
  ((I = (q = k == null ? void 0 : k.data) == null ? void 0 : q.content) == null ? void 0 : I.text) || ""
25679
25673
  );
@@ -25718,7 +25712,7 @@ const sE = ({
25718
25712
  },
25719
25713
  likes: {
25720
25714
  createLike: () => g({ replyId: C }),
25721
- deleteLike: () => D({ replyId: C, reactionId: w })
25715
+ deleteLike: () => y({ replyId: C, reactionId: w })
25722
25716
  },
25723
25717
  comments: {},
25724
25718
  mentions: {
@@ -25747,7 +25741,7 @@ const oE = ({
25747
25741
  fetchNextPage: h,
25748
25742
  hasNextPage: p,
25749
25743
  isLoading: m,
25750
- mutations: { create: g, edit: f, like: D, remove: y, unlike: x },
25744
+ mutations: { create: g, edit: f, like: y, remove: D, unlike: x },
25751
25745
  user: B
25752
25746
  } = Mf({
25753
25747
  queryKey: [e, t, n, "replies"],
@@ -25833,12 +25827,12 @@ const oE = ({
25833
25827
  functions: {
25834
25828
  content: {
25835
25829
  createContent: () => null,
25836
- deleteContent: () => y({ replyId: N }),
25830
+ deleteContent: () => D({ replyId: N }),
25837
25831
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25838
25832
  updateContent: (Ee, { body: Fe }) => f({ replyId: N, content: Fe })
25839
25833
  },
25840
25834
  likes: {
25841
- createLike: () => D({ replyId: N }),
25835
+ createLike: () => y({ replyId: N }),
25842
25836
  deleteLike: () => x({ replyId: N, reactionId: z })
25843
25837
  },
25844
25838
  comments: {},
@@ -25989,7 +25983,7 @@ const vk = ({
25989
25983
  activity: p,
25990
25984
  error: m,
25991
25985
  isLoading: g,
25992
- mutations: { edit: f, like: D, unlike: y }
25986
+ mutations: { edit: f, like: y, unlike: D }
25993
25987
  } = cE({
25994
25988
  queryFns: i,
25995
25989
  queryKey: [e, t, n]
@@ -26053,8 +26047,8 @@ const vk = ({
26053
26047
  updateContent: (W, { body: X }) => f({ content: X })
26054
26048
  },
26055
26049
  likes: {
26056
- createLike: () => D({ activityId: n }),
26057
- deleteLike: () => y({ activityId: n, reactionId: T })
26050
+ createLike: () => y({ activityId: n }),
26051
+ deleteLike: () => D({ activityId: n, reactionId: T })
26058
26052
  },
26059
26053
  comments: {
26060
26054
  openComments: () => {