@myissue/vue-website-page-builder 3.2.54 → 3.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- var Th = Object.defineProperty;
1
+ var Oh = Object.defineProperty;
2
2
  var fd = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var Oh = (r, t, e) => t in r ? Th(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
- var ht = (r, t, e) => Oh(r, typeof t != "symbol" ? t + "" : t, e), bd = (r, t, e) => t.has(r) || fd("Cannot " + e);
5
+ var Ph = (r, t, e) => t in r ? Oh(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
+ var ht = (r, t, e) => Ph(r, typeof t != "symbol" ? t + "" : t, e), bd = (r, t, e) => t.has(r) || fd("Cannot " + e);
7
7
  var Go = (r, t, e) => (bd(r, t, "read from private field"), e ? e.call(r) : t.get(r)), po = (r, t, e) => t.has(r) ? fd("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e);
8
8
  var nt = (r, t, e) => (bd(r, t, "access private method"), e);
9
9
  import * as yd from "vue";
10
- import { nextTick as Vt, computed as $, ref as O, defineComponent as re, createBlock as xt, openBlock as v, Teleport as Ph, createElementVNode as u, createElementBlock as C, createCommentVNode as I, normalizeClass as Y, renderSlot as Fr, toDisplayString as z, effectScope as xp, markRaw as hr, toRaw as Ft, hasInjectionContext as Bh, inject as Yr, getCurrentInstance as vp, watch as st, unref as A, reactive as Ah, isRef as yn, isReactive as yl, toRef as Gs, getCurrentScope as Nh, onScopeDispose as Dh, toRefs as wd, withCtx as W, createVNode as V, Transition as Ae, Fragment as dt, shallowRef as Ih, onMounted as er, onBeforeUnmount as Ps, h as Mr, watchEffect as _n, customRef as Lh, onBeforeMount as Rh, withDirectives as Rt, vModelText as wl, createTextVNode as Xt, provide as pr, resolveDynamicComponent as kp, cloneVNode as $h, onUnmounted as _h, renderList as wt, withKeys as zh, vShow as Aa, vModelSelect as xe, withModifiers as Ve, createStaticVNode as Fh } from "vue";
10
+ import { nextTick as Vt, computed as $, ref as O, defineComponent as re, createBlock as xt, openBlock as v, Teleport as Bh, createElementVNode as u, createElementBlock as C, createCommentVNode as I, normalizeClass as Y, renderSlot as Fr, toDisplayString as z, effectScope as xp, markRaw as hr, toRaw as Ft, hasInjectionContext as Ah, inject as Yr, getCurrentInstance as vp, watch as st, unref as A, reactive as Nh, isRef as yn, isReactive as yl, toRef as Gs, getCurrentScope as Dh, onScopeDispose as Ih, toRefs as wd, withCtx as W, createVNode as V, Transition as Ae, Fragment as dt, shallowRef as Lh, onMounted as er, onBeforeUnmount as Ps, h as Mr, watchEffect as _n, customRef as Rh, onBeforeMount as $h, withDirectives as Rt, vModelText as wl, createTextVNode as Xt, provide as pr, resolveDynamicComponent as kp, cloneVNode as _h, onUnmounted as zh, renderList as wt, withKeys as Fh, vShow as Aa, vModelSelect as xe, withModifiers as Ve, createStaticVNode as Hh } from "vue";
11
11
  const Di = {
12
12
  backgroundColorVariables: [
13
13
  "none",
@@ -1029,34 +1029,34 @@ const Di = {
1029
1029
  ]
1030
1030
  };
1031
1031
  let ai;
1032
- const Hh = new Uint8Array(16);
1033
- function jh() {
1032
+ const jh = new Uint8Array(16);
1033
+ function Vh() {
1034
1034
  if (!ai && (ai = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ai))
1035
1035
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1036
- return ai(Hh);
1036
+ return ai(jh);
1037
1037
  }
1038
1038
  const Nt = [];
1039
1039
  for (let r = 0; r < 256; ++r)
1040
1040
  Nt.push((r + 256).toString(16).slice(1));
1041
- function Vh(r, t = 0) {
1041
+ function Wh(r, t = 0) {
1042
1042
  return Nt[r[t + 0]] + Nt[r[t + 1]] + Nt[r[t + 2]] + Nt[r[t + 3]] + "-" + Nt[r[t + 4]] + Nt[r[t + 5]] + "-" + Nt[r[t + 6]] + Nt[r[t + 7]] + "-" + Nt[r[t + 8]] + Nt[r[t + 9]] + "-" + Nt[r[t + 10]] + Nt[r[t + 11]] + Nt[r[t + 12]] + Nt[r[t + 13]] + Nt[r[t + 14]] + Nt[r[t + 15]];
1043
1043
  }
1044
- const Wh = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), xd = {
1045
- randomUUID: Wh
1044
+ const qh = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), xd = {
1045
+ randomUUID: qh
1046
1046
  };
1047
1047
  function vd(r, t, e) {
1048
1048
  if (xd.randomUUID && !r)
1049
1049
  return xd.randomUUID();
1050
1050
  r = r || {};
1051
- const o = r.random || (r.rng || jh)();
1052
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Vh(o);
1051
+ const o = r.random || (r.rng || Vh)();
1052
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Wh(o);
1053
1053
  }
1054
- const qh = function(t = 200) {
1054
+ const Sp = function(t = 200) {
1055
1055
  return new Promise((e) => {
1056
1056
  setTimeout(e, t);
1057
1057
  });
1058
1058
  };
1059
- var tt, vt, Sp, Cp, Ms, Es, Ts, Mp, Os, Ep, Tp, Na, Op;
1059
+ var tt, vt, Cp, Mp, Ms, Es, Ts, Ep, Os, Tp, Op, Na, Pp;
1060
1060
  class St {
1061
1061
  constructor(t) {
1062
1062
  po(this, tt);
@@ -1175,11 +1175,11 @@ class St {
1175
1175
  "SPAN",
1176
1176
  "BLOCKQUOTE",
1177
1177
  "BR"
1178
- ], this.delay = qh;
1178
+ ], this.delay = Sp;
1179
1179
  }
1180
1180
  // Load existing content from HTML when in update mode
1181
1181
  async clearHtmlSelection() {
1182
- this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await nt(this, tt, Mp).call(this);
1182
+ this.pageBuilderStateStore.setComponent(null), this.pageBuilderStateStore.setElement(null), await nt(this, tt, Ep).call(this);
1183
1183
  }
1184
1184
  // Load existing content from HTML when in update mode
1185
1185
  setConfigPageBuilder(t) {
@@ -1202,7 +1202,7 @@ class St {
1202
1202
  }
1203
1203
  const n = new DOMParser().parseFromString(e.html_code || "", "text/html");
1204
1204
  n.querySelectorAll("*").forEach((a) => {
1205
- nt(this, tt, Sp).call(this, a);
1205
+ nt(this, tt, Cp).call(this, a);
1206
1206
  });
1207
1207
  const s = n.querySelector("section");
1208
1208
  return s && (s.dataset.componentid = vd(), s.querySelectorAll("img").forEach((l) => {
@@ -1500,10 +1500,10 @@ class St {
1500
1500
  this.getElement.value.closest("a") !== null && this.pageBuilderStateStore.setHyperlinkAbility(!1);
1501
1501
  const i = (s = this.getElement.value) == null ? void 0 : s.tagName.toUpperCase();
1502
1502
  if (i !== "P" && i !== "H1" && i !== "H2" && i !== "H3" && i !== "H4" && i !== "H5" && i !== "H6" && this.pageBuilderStateStore.setHyperlinkAbility(!1), t === void 0) {
1503
- nt(this, tt, Tp).call(this);
1503
+ nt(this, tt, Op).call(this);
1504
1504
  return;
1505
1505
  }
1506
- nt(this, tt, Ep).call(this, t, e || null, o || !1);
1506
+ nt(this, tt, Tp).call(this, t, e || null, o || !1);
1507
1507
  }
1508
1508
  // Helper method for custom components to easily add components
1509
1509
  async addComponent(t) {
@@ -1535,7 +1535,7 @@ class St {
1535
1535
  */
1536
1536
  setComponentsFromData(t) {
1537
1537
  const e = t.trim();
1538
- e.startsWith("[") || e.startsWith("{") ? nt(this, tt, Na).call(this, e) : e.startsWith("<") ? nt(this, tt, Op).call(this, e) : nt(this, tt, Na).call(this, e);
1538
+ e.startsWith("[") || e.startsWith("{") ? nt(this, tt, Na).call(this, e) : e.startsWith("<") ? nt(this, tt, Pp).call(this, e) : nt(this, tt, Na).call(this, e);
1539
1539
  }
1540
1540
  toggleTipTapModal(t) {
1541
1541
  this.pageBuilderStateStore.setShowModalTipTap(t), this.handleAutoSave();
@@ -1558,15 +1558,15 @@ tt = new WeakSet(), vt = function(t, e, o) {
1558
1558
  const i = e.find((a) => n.classList.contains(a));
1559
1559
  let s = i || "none";
1560
1560
  return t === void 0 ? (typeof o == "string" && o.length > 2 && this.pageBuilderStateStore[o](s), i) : (typeof t == "string" && t !== "none" ? (s && n.classList.contains(s) && n.classList.remove(s), n.classList.add(t), s = t) : typeof t == "string" && t === "none" && s && (n.classList.remove(s), s = t), typeof o == "string" && o.length > 2 && (this.pageBuilderStateStore[o](s), this.pageBuilderStateStore.setElement(n)), i);
1561
- }, Sp = function(t) {
1562
- nt(this, tt, Cp).call(this, t), t.tagName === "IMG" && t.classList.add("smooth-transition"), t.tagName === "DIV" && t.classList.length;
1563
1561
  }, Cp = function(t) {
1562
+ nt(this, tt, Mp).call(this, t), t.tagName === "IMG" && t.classList.add("smooth-transition"), t.tagName === "DIV" && t.classList.length;
1563
+ }, Mp = function(t) {
1564
1564
  var e;
1565
1565
  if (t && this.NoneListernesTags.includes(t.tagName) && (t.previousElementSibling && t.previousElementSibling.tagName === "IMG" || t.nextElementSibling && t.nextElementSibling.tagName === "IMG")) {
1566
1566
  const o = document.createElement("div");
1567
1567
  (e = t.parentNode) == null || e.insertBefore(o, t), o.appendChild(t);
1568
1568
  }
1569
- }, Ms = new WeakMap(), Es = new WeakMap(), Ts = new WeakMap(), Mp = async function() {
1569
+ }, Ms = new WeakMap(), Es = new WeakMap(), Ts = new WeakMap(), Ep = async function() {
1570
1570
  await new Promise((n) => requestAnimationFrame(n));
1571
1571
  const t = document.querySelector("#pagebuilder");
1572
1572
  if (!t) return;
@@ -1574,7 +1574,7 @@ tt = new WeakSet(), vt = function(t, e, o) {
1574
1574
  e && e.removeAttribute("hovered");
1575
1575
  const o = t.querySelector("[selected]");
1576
1576
  o && o.removeAttribute("selected");
1577
- }, Os = new WeakMap(), Ep = function(t, e, o) {
1577
+ }, Os = new WeakMap(), Tp = function(t, e, o) {
1578
1578
  if (!this.getElement.value || !(this.getElement.value instanceof HTMLElement) || typeof this.getElement.value.closest != "function")
1579
1579
  return;
1580
1580
  const n = this.getElement.value.closest("a"), i = this.getElement.value.querySelector("a");
@@ -1599,7 +1599,7 @@ tt = new WeakSet(), vt = function(t, e, o) {
1599
1599
  const l = this.getElement.value.textContent || "", d = document.createTextNode(l);
1600
1600
  this.getElement.value.textContent = "", this.getElement.value.appendChild(d), this.pageBuilderStateStore.setHyberlinkEnable(!1), this.pageBuilderStateStore.setElementContainsHyperlink(!1);
1601
1601
  }
1602
- }, Tp = function() {
1602
+ }, Op = function() {
1603
1603
  if (!this.getElement.value) return;
1604
1604
  const t = this.getElement.value.querySelector("a");
1605
1605
  if (t !== null) {
@@ -1617,7 +1617,7 @@ Na = function(t) {
1617
1617
  console.error("Error parsing JSON components:", e), this.pageBuilderStateStore.setComponents([]);
1618
1618
  }
1619
1619
  }, // Private method to parse HTML components
1620
- Op = function(t) {
1620
+ Pp = function(t) {
1621
1621
  try {
1622
1622
  const n = new DOMParser().parseFromString(t, "text/html").querySelectorAll("section[data-componentid]"), i = [];
1623
1623
  n.forEach((s) => {
@@ -1683,7 +1683,7 @@ const Uh = { class: "font-sans" }, Kh = {
1683
1683
  screen: "lg:w-screen sm:max-w-none"
1684
1684
  // truly full screen
1685
1685
  })[e.maxWidth]);
1686
- return (s, a) => (v(), xt(Ph, { to: "body" }, [
1686
+ return (s, a) => (v(), xt(Bh, { to: "body" }, [
1687
1687
  u("div", Uh, [
1688
1688
  r.showModalBuilder ? (v(), C("div", Kh, [
1689
1689
  u("div", {
@@ -1724,9 +1724,9 @@ function Ys(r, t) {
1724
1724
  delete r[t];
1725
1725
  }
1726
1726
  function Yh() {
1727
- return Pp().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1727
+ return Bp().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1728
1728
  }
1729
- function Pp() {
1729
+ function Bp() {
1730
1730
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1731
1731
  }
1732
1732
  const Qh = typeof Proxy == "function", Xh = "devtools-plugin:setup", Zh = "plugin:settings:set";
@@ -1800,8 +1800,8 @@ class rg {
1800
1800
  e.resolve(await this.target[e.method](...e.args));
1801
1801
  }
1802
1802
  }
1803
- function Bp(r, t) {
1804
- const e = r, o = Pp(), n = Yh(), i = Qh && e.enableEarlyProxy;
1803
+ function Ap(r, t) {
1804
+ const e = r, o = Bp(), n = Yh(), i = Qh && e.enableEarlyProxy;
1805
1805
  if (n && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
1806
1806
  n.emit(Xh, r, t);
1807
1807
  else {
@@ -1819,7 +1819,7 @@ function Bp(r, t) {
1819
1819
  * @license MIT
1820
1820
  */
1821
1821
  let Xo;
1822
- const wn = (r) => Xo = r, Ap = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1822
+ const wn = (r) => Xo = r, Np = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1823
1823
  /* istanbul ignore next */
1824
1824
  Symbol()
1825
1825
  );
@@ -1837,12 +1837,12 @@ function og(r, { autoBom: t = !1 } = {}) {
1837
1837
  function xl(r, t, e) {
1838
1838
  const o = new XMLHttpRequest();
1839
1839
  o.open("GET", r), o.responseType = "blob", o.onload = function() {
1840
- Ip(o.response, t, e);
1840
+ Lp(o.response, t, e);
1841
1841
  }, o.onerror = function() {
1842
1842
  console.error("could not download file");
1843
1843
  }, o.send();
1844
1844
  }
1845
- function Np(r) {
1845
+ function Dp(r) {
1846
1846
  const t = new XMLHttpRequest();
1847
1847
  t.open("HEAD", r, !1);
1848
1848
  try {
@@ -1859,9 +1859,9 @@ function Si(r) {
1859
1859
  e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), r.dispatchEvent(e);
1860
1860
  }
1861
1861
  }
1862
- const Ci = typeof navigator == "object" ? navigator : { userAgent: "" }, Dp = /Macintosh/.test(Ci.userAgent) && /AppleWebKit/.test(Ci.userAgent) && !/Safari/.test(Ci.userAgent), Ip = fr ? (
1862
+ const Ci = typeof navigator == "object" ? navigator : { userAgent: "" }, Ip = /Macintosh/.test(Ci.userAgent) && /AppleWebKit/.test(Ci.userAgent) && !/Safari/.test(Ci.userAgent), Lp = fr ? (
1863
1863
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1864
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Dp ? ng : (
1864
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Ip ? ng : (
1865
1865
  // Use msSaveOrOpenBlob as a second approach
1866
1866
  "msSaveOrOpenBlob" in Ci ? ig : (
1867
1867
  // Fallback to using FileReader and a popup
@@ -1872,7 +1872,7 @@ const Ci = typeof navigator == "object" ? navigator : { userAgent: "" }, Dp = /M
1872
1872
  };
1873
1873
  function ng(r, t = "download", e) {
1874
1874
  const o = document.createElement("a");
1875
- o.download = t, o.rel = "noopener", typeof r == "string" ? (o.href = r, o.origin !== location.origin ? Np(o.href) ? xl(r, t, e) : (o.target = "_blank", Si(o)) : Si(o)) : (o.href = URL.createObjectURL(r), setTimeout(function() {
1875
+ o.download = t, o.rel = "noopener", typeof r == "string" ? (o.href = r, o.origin !== location.origin ? Dp(o.href) ? xl(r, t, e) : (o.target = "_blank", Si(o)) : Si(o)) : (o.href = URL.createObjectURL(r), setTimeout(function() {
1876
1876
  URL.revokeObjectURL(o.href);
1877
1877
  }, 4e4), setTimeout(function() {
1878
1878
  Si(o);
@@ -1880,7 +1880,7 @@ function ng(r, t = "download", e) {
1880
1880
  }
1881
1881
  function ig(r, t = "download", e) {
1882
1882
  if (typeof r == "string")
1883
- if (Np(r))
1883
+ if (Dp(r))
1884
1884
  xl(r, t, e);
1885
1885
  else {
1886
1886
  const o = document.createElement("a");
@@ -1895,7 +1895,7 @@ function sg(r, t, e, o) {
1895
1895
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof r == "string")
1896
1896
  return xl(r, t, e);
1897
1897
  const n = r.type === "application/octet-stream", i = /constructor/i.test(String(kd.HTMLElement)) || "safari" in kd, s = /CriOS\/[\d]+/.test(navigator.userAgent);
1898
- if ((s || n && i || Dp) && typeof FileReader < "u") {
1898
+ if ((s || n && i || Ip) && typeof FileReader < "u") {
1899
1899
  const a = new FileReader();
1900
1900
  a.onloadend = function() {
1901
1901
  let l = a.result;
@@ -1917,36 +1917,36 @@ function Tt(r, t) {
1917
1917
  function vl(r) {
1918
1918
  return "_a" in r && "install" in r;
1919
1919
  }
1920
- function Lp() {
1920
+ function Rp() {
1921
1921
  if (!("clipboard" in navigator))
1922
1922
  return Tt("Your browser doesn't support the Clipboard API", "error"), !0;
1923
1923
  }
1924
- function Rp(r) {
1924
+ function $p(r) {
1925
1925
  return r instanceof Error && r.message.toLowerCase().includes("document is not focused") ? (Tt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1926
1926
  }
1927
1927
  async function ag(r) {
1928
- if (!Lp())
1928
+ if (!Rp())
1929
1929
  try {
1930
1930
  await navigator.clipboard.writeText(JSON.stringify(r.state.value)), Tt("Global state copied to clipboard.");
1931
1931
  } catch (t) {
1932
- if (Rp(t))
1932
+ if ($p(t))
1933
1933
  return;
1934
1934
  Tt("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
1935
1935
  }
1936
1936
  }
1937
1937
  async function lg(r) {
1938
- if (!Lp())
1938
+ if (!Rp())
1939
1939
  try {
1940
- $p(r, JSON.parse(await navigator.clipboard.readText())), Tt("Global state pasted from clipboard.");
1940
+ _p(r, JSON.parse(await navigator.clipboard.readText())), Tt("Global state pasted from clipboard.");
1941
1941
  } catch (t) {
1942
- if (Rp(t))
1942
+ if ($p(t))
1943
1943
  return;
1944
1944
  Tt("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
1945
1945
  }
1946
1946
  }
1947
1947
  async function dg(r) {
1948
1948
  try {
1949
- Ip(new Blob([JSON.stringify(r.state.value)], {
1949
+ Lp(new Blob([JSON.stringify(r.state.value)], {
1950
1950
  type: "text/plain;charset=utf-8"
1951
1951
  }), "pinia-state.json");
1952
1952
  } catch (t) {
@@ -1975,12 +1975,12 @@ async function pg(r) {
1975
1975
  if (!e)
1976
1976
  return;
1977
1977
  const { text: o, file: n } = e;
1978
- $p(r, JSON.parse(o)), Tt(`Global state imported from "${n.name}".`);
1978
+ _p(r, JSON.parse(o)), Tt(`Global state imported from "${n.name}".`);
1979
1979
  } catch (t) {
1980
1980
  Tt("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
1981
1981
  }
1982
1982
  }
1983
- function $p(r, t) {
1983
+ function _p(r, t) {
1984
1984
  for (const e in t) {
1985
1985
  const o = r.state.value[e];
1986
1986
  o ? Object.assign(o, t[e]) : r.state.value[e] = t[e];
@@ -1993,11 +1993,11 @@ function we(r) {
1993
1993
  }
1994
1994
  };
1995
1995
  }
1996
- const _p = "🍍 Pinia (root)", Mi = "_root";
1996
+ const zp = "🍍 Pinia (root)", Mi = "_root";
1997
1997
  function ug(r) {
1998
1998
  return vl(r) ? {
1999
1999
  id: Mi,
2000
- label: _p
2000
+ label: zp
2001
2001
  } : {
2002
2002
  id: r.$id,
2003
2003
  label: r.$id
@@ -2067,7 +2067,7 @@ function gg(r) {
2067
2067
  let ko = !0;
2068
2068
  const Ei = [], Rr = "pinia:mutations", Ht = "pinia", { assign: fg } = Object, Li = (r) => "🍍 " + r;
2069
2069
  function bg(r, t) {
2070
- Bp({
2070
+ Ap({
2071
2071
  id: "dev.esm.pinia",
2072
2072
  label: "Pinia 🍍",
2073
2073
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -2167,7 +2167,7 @@ function bg(r, t) {
2167
2167
  }), e.on.getInspectorTree((o) => {
2168
2168
  if (o.app === r && o.inspectorId === Ht) {
2169
2169
  let n = [t];
2170
- n = n.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? n.filter((i) => "$id" in i ? i.$id.toLowerCase().includes(o.filter.toLowerCase()) : _p.toLowerCase().includes(o.filter.toLowerCase())) : n).map(ug);
2170
+ n = n.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? n.filter((i) => "$id" in i ? i.$id.toLowerCase().includes(o.filter.toLowerCase()) : zp.toLowerCase().includes(o.filter.toLowerCase())) : n).map(ug);
2171
2171
  }
2172
2172
  }), globalThis.$pinia = t, e.on.getInspectorState((o) => {
2173
2173
  if (o.app === r && o.inspectorId === Ht) {
@@ -2200,7 +2200,7 @@ Only state can be modified.`);
2200
2200
  });
2201
2201
  }
2202
2202
  function yg(r, t) {
2203
- Ei.includes(Li(t.$id)) || Ei.push(Li(t.$id)), Bp({
2203
+ Ei.includes(Li(t.$id)) || Ei.push(Li(t.$id)), Ap({
2204
2204
  id: "dev.esm.pinia",
2205
2205
  label: "Pinia 🍍",
2206
2206
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -2223,7 +2223,7 @@ function yg(r, t) {
2223
2223
  }, (e) => {
2224
2224
  const o = typeof e.now == "function" ? e.now.bind(e) : Date.now;
2225
2225
  t.$onAction(({ after: s, onError: a, name: l, args: d }) => {
2226
- const c = zp++;
2226
+ const c = Fp++;
2227
2227
  e.addTimelineEvent({
2228
2228
  layerId: Rr,
2229
2229
  event: {
@@ -2329,12 +2329,12 @@ function yg(r, t) {
2329
2329
  }, e.notifyComponentUpdate(), e.sendInspectorTree(Ht), e.sendInspectorState(Ht), e.getSettings().logStoreChanges && Tt(`"${t.$id}" store installed 🆕`);
2330
2330
  });
2331
2331
  }
2332
- let zp = 0, br;
2332
+ let Fp = 0, br;
2333
2333
  function Sd(r, t, e) {
2334
2334
  const o = t.reduce((n, i) => (n[i] = Ft(r)[i], n), {});
2335
2335
  for (const n in o)
2336
2336
  r[n] = function() {
2337
- const i = zp, s = e ? new Proxy(r, {
2337
+ const i = Fp, s = e ? new Proxy(r, {
2338
2338
  get(...l) {
2339
2339
  return br = i, Reflect.get(...l);
2340
2340
  },
@@ -2368,7 +2368,7 @@ function xg() {
2368
2368
  let e = [], o = [];
2369
2369
  const n = hr({
2370
2370
  install(i) {
2371
- wn(n), n._a = i, i.provide(Ap, n), i.config.globalProperties.$pinia = n, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && fr && bg(i, n), o.forEach((s) => e.push(s)), o = [];
2371
+ wn(n), n._a = i, i.provide(Np, n), i.config.globalProperties.$pinia = n, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && fr && bg(i, n), o.forEach((s) => e.push(s)), o = [];
2372
2372
  },
2373
2373
  use(i) {
2374
2374
  return this._a ? e.push(i) : o.push(i), this;
@@ -2383,25 +2383,25 @@ function xg() {
2383
2383
  });
2384
2384
  return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && fr && typeof Proxy < "u" && n.use(wg), n;
2385
2385
  }
2386
- function Fp(r, t) {
2386
+ function Hp(r, t) {
2387
2387
  for (const e in t) {
2388
2388
  const o = t[e];
2389
2389
  if (!(e in r))
2390
2390
  continue;
2391
2391
  const n = r[e];
2392
- Qr(n) && Qr(o) && !yn(o) && !yl(o) ? r[e] = Fp(n, o) : r[e] = o;
2392
+ Qr(n) && Qr(o) && !yn(o) && !yl(o) ? r[e] = Hp(n, o) : r[e] = o;
2393
2393
  }
2394
2394
  return r;
2395
2395
  }
2396
- const Hp = () => {
2396
+ const jp = () => {
2397
2397
  };
2398
- function Cd(r, t, e, o = Hp) {
2398
+ function Cd(r, t, e, o = jp) {
2399
2399
  r.push(t);
2400
2400
  const n = () => {
2401
2401
  const i = r.indexOf(t);
2402
2402
  i > -1 && (r.splice(i, 1), o());
2403
2403
  };
2404
- return !e && Nh() && Dh(n), n;
2404
+ return !e && Dh() && Ih(n), n;
2405
2405
  }
2406
2406
  function mo(r, ...t) {
2407
2407
  r.slice().forEach((e) => {
@@ -2487,7 +2487,7 @@ function La(r, t, e = {}, o, n, i) {
2487
2487
  /* istanbul ignore next */
2488
2488
  process.env.NODE_ENV !== "production" ? () => {
2489
2489
  throw new Error(`🍍: Store "${r}" is built using the setup syntax and does not implement $reset().`);
2490
- } : Hp
2490
+ } : jp
2491
2491
  );
2492
2492
  function S() {
2493
2493
  s.stop(), p = [], m = [], o._s.delete(r);
@@ -2543,7 +2543,7 @@ function La(r, t, e = {}, o, n, i) {
2543
2543
  return R;
2544
2544
  },
2545
2545
  $dispose: S
2546
- }, B = Ah(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && fr ? de(
2546
+ }, B = Nh(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && fr ? de(
2547
2547
  {
2548
2548
  _hmrPayload: T,
2549
2549
  _customProperties: hr(/* @__PURE__ */ new Set())
@@ -2581,7 +2581,7 @@ function La(r, t, e = {}, o, n, i) {
2581
2581
  B._hotUpdating = !0, k._hmrPayload.state.forEach((x) => {
2582
2582
  if (x in B.$state) {
2583
2583
  const R = k.$state[x], K = B.$state[x];
2584
- typeof R == "object" && Qr(R) && Qr(K) ? Fp(R, K) : k.$state[x] = K;
2584
+ typeof R == "object" && Qr(R) && Qr(K) ? Hp(R, K) : k.$state[x] = K;
2585
2585
  }
2586
2586
  li(B, x, Gs(k.$state, x));
2587
2587
  }), Object.keys(B.$state).forEach((x) => {
@@ -2643,10 +2643,10 @@ function Cg(r, t, e) {
2643
2643
  const i = typeof t == "function";
2644
2644
  o = r, n = i ? e : t;
2645
2645
  function s(a, l) {
2646
- const d = Bh();
2646
+ const d = Ah();
2647
2647
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
2648
2648
  // pinia instance with getActivePinia()
2649
- (process.env.NODE_ENV === "test" && Xo && Xo._testing ? null : a) || (d ? Yr(Ap, null) : null), a && wn(a), process.env.NODE_ENV !== "production" && !Xo)
2649
+ (process.env.NODE_ENV === "test" && Xo && Xo._testing ? null : a) || (d ? Yr(Np, null) : null), a && wn(a), process.env.NODE_ENV !== "production" && !Xo)
2650
2650
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
2651
2651
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
2652
2652
  This will fail in production.`);
@@ -3033,7 +3033,7 @@ const Mg = /* @__PURE__ */ Cg("pageBuilderState", {
3033
3033
  this.isSaving = r;
3034
3034
  }
3035
3035
  }
3036
- }), jp = xg(), bt = Mg(jp), Eg = { class: "w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2" }, Tg = { id: "page-builder-editor" }, Og = ["innerHTML"], Pg = {
3036
+ }), Vp = xg(), bt = Mg(Vp), Eg = { class: "w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2" }, Tg = { id: "page-builder-editor" }, Og = ["innerHTML"], Pg = {
3037
3037
  __name: "Preview",
3038
3038
  emits: ["firstPageBuilderPreviewModalButton"],
3039
3039
  setup(r, { emit: t }) {
@@ -3583,7 +3583,7 @@ Dt.from = function(r) {
3583
3583
  if (r) for (var e in r) t.push(e, r[e]);
3584
3584
  return new Dt(t);
3585
3585
  };
3586
- function Vp(r, t, e) {
3586
+ function Wp(r, t, e) {
3587
3587
  for (let o = 0; ; o++) {
3588
3588
  if (o == r.childCount || o == t.childCount)
3589
3589
  return r.childCount == t.childCount ? null : e;
@@ -3600,14 +3600,14 @@ function Vp(r, t, e) {
3600
3600
  return e;
3601
3601
  }
3602
3602
  if (n.content.size || i.content.size) {
3603
- let s = Vp(n.content, i.content, e + 1);
3603
+ let s = Wp(n.content, i.content, e + 1);
3604
3604
  if (s != null)
3605
3605
  return s;
3606
3606
  }
3607
3607
  e += n.nodeSize;
3608
3608
  }
3609
3609
  }
3610
- function Wp(r, t, e, o) {
3610
+ function qp(r, t, e, o) {
3611
3611
  for (let n = r.childCount, i = t.childCount; ; ) {
3612
3612
  if (n == 0 || i == 0)
3613
3613
  return n == i ? null : { a: e, b: o };
@@ -3625,7 +3625,7 @@ function Wp(r, t, e, o) {
3625
3625
  return { a: e, b: o };
3626
3626
  }
3627
3627
  if (s.content.size || a.content.size) {
3628
- let d = Wp(s.content, a.content, e - 1, o - 1);
3628
+ let d = qp(s.content, a.content, e - 1, o - 1);
3629
3629
  if (d)
3630
3630
  return d;
3631
3631
  }
@@ -3794,7 +3794,7 @@ class N {
3794
3794
  fragment differ, or `null` if they are the same.
3795
3795
  */
3796
3796
  findDiffStart(t, e = 0) {
3797
- return Vp(this, t, e);
3797
+ return Wp(this, t, e);
3798
3798
  }
3799
3799
  /**
3800
3800
  Find the first position, searching from the end, at which this
@@ -3803,7 +3803,7 @@ class N {
3803
3803
  nodes, an object with two separate positions is returned.
3804
3804
  */
3805
3805
  findDiffEnd(t, e = this.size, o = t.size) {
3806
- return Wp(this, t, e, o);
3806
+ return qp(this, t, e, o);
3807
3807
  }
3808
3808
  /**
3809
3809
  Find the index and inner offset corresponding to a given relative
@@ -4047,14 +4047,14 @@ class _ {
4047
4047
  @internal
4048
4048
  */
4049
4049
  insertAt(t, e) {
4050
- let o = Up(this.content, t + this.openStart, e);
4050
+ let o = Kp(this.content, t + this.openStart, e);
4051
4051
  return o && new _(o, this.openStart, this.openEnd);
4052
4052
  }
4053
4053
  /**
4054
4054
  @internal
4055
4055
  */
4056
4056
  removeBetween(t, e) {
4057
- return new _(qp(this.content, t + this.openStart, e + this.openStart), this.openStart, this.openEnd);
4057
+ return new _(Up(this.content, t + this.openStart, e + this.openStart), this.openStart, this.openEnd);
4058
4058
  }
4059
4059
  /**
4060
4060
  Tests whether this slice is equal to another slice.
@@ -4102,7 +4102,7 @@ class _ {
4102
4102
  }
4103
4103
  }
4104
4104
  _.empty = new _(N.empty, 0, 0);
4105
- function qp(r, t, e) {
4105
+ function Up(r, t, e) {
4106
4106
  let { index: o, offset: n } = r.findIndex(t), i = r.maybeChild(o), { index: s, offset: a } = r.findIndex(e);
4107
4107
  if (n == t || i.isText) {
4108
4108
  if (a != e && !r.child(s).isText)
@@ -4111,13 +4111,13 @@ function qp(r, t, e) {
4111
4111
  }
4112
4112
  if (o != s)
4113
4113
  throw new RangeError("Removing non-flat range");
4114
- return r.replaceChild(o, i.copy(qp(i.content, t - n - 1, e - n - 1)));
4114
+ return r.replaceChild(o, i.copy(Up(i.content, t - n - 1, e - n - 1)));
4115
4115
  }
4116
- function Up(r, t, e, o) {
4116
+ function Kp(r, t, e, o) {
4117
4117
  let { index: n, offset: i } = r.findIndex(t), s = r.maybeChild(n);
4118
4118
  if (i == t || s.isText)
4119
4119
  return r.cut(0, t).append(e).append(r.cut(t));
4120
- let a = Up(s.content, t - i - 1, e);
4120
+ let a = Kp(s.content, t - i - 1, e);
4121
4121
  return a && r.replaceChild(n, s.copy(a));
4122
4122
  }
4123
4123
  function of(r, t, e) {
@@ -4125,12 +4125,12 @@ function of(r, t, e) {
4125
4125
  throw new $i("Inserted content deeper than insertion position");
4126
4126
  if (r.depth - e.openStart != t.depth - e.openEnd)
4127
4127
  throw new $i("Inconsistent open depths");
4128
- return Kp(r, t, e, 0);
4128
+ return Gp(r, t, e, 0);
4129
4129
  }
4130
- function Kp(r, t, e, o) {
4130
+ function Gp(r, t, e, o) {
4131
4131
  let n = r.index(o), i = r.node(o);
4132
4132
  if (n == t.index(o) && o < r.depth - e.openStart) {
4133
- let s = Kp(r, t, e, o + 1);
4133
+ let s = Gp(r, t, e, o + 1);
4134
4134
  return i.copy(i.content.replaceChild(n, s));
4135
4135
  } else if (e.content.size)
4136
4136
  if (!e.openStart && !e.openEnd && r.depth == o && t.depth == o) {
@@ -4138,17 +4138,17 @@ function Kp(r, t, e, o) {
4138
4138
  return qr(s, a.cut(0, r.parentOffset).append(e.content).append(a.cut(t.parentOffset)));
4139
4139
  } else {
4140
4140
  let { start: s, end: a } = nf(e, r);
4141
- return qr(i, Jp(r, s, a, t, o));
4141
+ return qr(i, Yp(r, s, a, t, o));
4142
4142
  }
4143
4143
  else return qr(i, _i(r, t, o));
4144
4144
  }
4145
- function Gp(r, t) {
4145
+ function Jp(r, t) {
4146
4146
  if (!t.type.compatibleContent(r.type))
4147
4147
  throw new $i("Cannot join " + t.type.name + " onto " + r.type.name);
4148
4148
  }
4149
4149
  function $a(r, t, e) {
4150
4150
  let o = r.node(e);
4151
- return Gp(o, t.node(e)), o;
4151
+ return Jp(o, t.node(e)), o;
4152
4152
  }
4153
4153
  function Wr(r, t) {
4154
4154
  let e = t.length - 1;
@@ -4164,9 +4164,9 @@ function on(r, t, e, o) {
4164
4164
  function qr(r, t) {
4165
4165
  return r.type.checkContent(t), r.copy(t);
4166
4166
  }
4167
- function Jp(r, t, e, o, n) {
4167
+ function Yp(r, t, e, o, n) {
4168
4168
  let i = r.depth > n && $a(r, t, n + 1), s = o.depth > n && $a(e, o, n + 1), a = [];
4169
- return on(null, r, n, a), i && s && t.index(n) == e.index(n) ? (Gp(i, s), Wr(qr(i, Jp(r, t, e, o, n + 1)), a)) : (i && Wr(qr(i, _i(r, t, n + 1)), a), on(t, e, n, a), s && Wr(qr(s, _i(e, o, n + 1)), a)), on(o, null, n, a), new N(a);
4169
+ return on(null, r, n, a), i && s && t.index(n) == e.index(n) ? (Jp(i, s), Wr(qr(i, Yp(r, t, e, o, n + 1)), a)) : (i && Wr(qr(i, _i(r, t, n + 1)), a), on(t, e, n, a), s && Wr(qr(s, _i(e, o, n + 1)), a)), on(o, null, n, a), new N(a);
4170
4170
  }
4171
4171
  function _i(r, t, e) {
4172
4172
  let o = [];
@@ -4755,7 +4755,7 @@ let vr = class _a {
4755
4755
  if (this.type.spec.toDebugString)
4756
4756
  return this.type.spec.toDebugString(this);
4757
4757
  let t = this.type.name;
4758
- return this.content.size && (t += "(" + this.content.toStringInner() + ")"), Yp(this.marks, t);
4758
+ return this.content.size && (t += "(" + this.content.toStringInner() + ")"), Qp(this.marks, t);
4759
4759
  }
4760
4760
  /**
4761
4761
  Get the content match in this node at the given index.
@@ -4859,7 +4859,7 @@ class Fi extends vr {
4859
4859
  this.text = o;
4860
4860
  }
4861
4861
  toString() {
4862
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Yp(this.marks, JSON.stringify(this.text));
4862
+ return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Qp(this.marks, JSON.stringify(this.text));
4863
4863
  }
4864
4864
  get textContent() {
4865
4865
  return this.text;
@@ -4887,7 +4887,7 @@ class Fi extends vr {
4887
4887
  return t.text = this.text, t;
4888
4888
  }
4889
4889
  }
4890
- function Yp(r, t) {
4890
+ function Qp(r, t) {
4891
4891
  for (let e = r.length - 1; e >= 0; e--)
4892
4892
  t = r[e].type.name + "(" + t + ")";
4893
4893
  return t;
@@ -4906,7 +4906,7 @@ class Xr {
4906
4906
  let o = new df(t, e);
4907
4907
  if (o.next == null)
4908
4908
  return Xr.empty;
4909
- let n = Qp(o);
4909
+ let n = Xp(o);
4910
4910
  o.next && o.err("Unexpected trailing text");
4911
4911
  let i = ff(gf(n));
4912
4912
  return bf(i, o), i;
@@ -5069,7 +5069,7 @@ class df {
5069
5069
  throw new SyntaxError(t + " (in content expression '" + this.string + "')");
5070
5070
  }
5071
5071
  }
5072
- function Qp(r) {
5072
+ function Xp(r) {
5073
5073
  let t = [];
5074
5074
  do
5075
5075
  t.push(cf(r));
@@ -5120,7 +5120,7 @@ function mf(r, t) {
5120
5120
  }
5121
5121
  function hf(r) {
5122
5122
  if (r.eat("(")) {
5123
- let t = Qp(r);
5123
+ let t = Xp(r);
5124
5124
  return r.eat(")") || r.err("Missing closing paren"), t;
5125
5125
  } else if (/\W/.test(r.next))
5126
5126
  r.err("Unexpected token '" + r.next + "'");
@@ -5183,12 +5183,12 @@ function gf(r) {
5183
5183
  }
5184
5184
  }
5185
5185
  }
5186
- function Xp(r, t) {
5186
+ function Zp(r, t) {
5187
5187
  return t - r;
5188
5188
  }
5189
5189
  function Bd(r, t) {
5190
5190
  let e = [];
5191
- return o(t), e.sort(Xp);
5191
+ return o(t), e.sort(Zp);
5192
5192
  function o(n) {
5193
5193
  let i = r[n];
5194
5194
  if (i.length == 1 && !i[0].term)
@@ -5219,7 +5219,7 @@ function ff(r) {
5219
5219
  });
5220
5220
  let i = t[o.join(",")] = new Xr(o.indexOf(r.length - 1) > -1);
5221
5221
  for (let s = 0; s < n.length; s++) {
5222
- let a = n[s][1].sort(Xp);
5222
+ let a = n[s][1].sort(Zp);
5223
5223
  i.next.push({ type: n[s][0], next: t[a.join(",")] || e(a) });
5224
5224
  }
5225
5225
  return i;
@@ -5235,7 +5235,7 @@ function bf(r, t) {
5235
5235
  i && t.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
5236
5236
  }
5237
5237
  }
5238
- function Zp(r) {
5238
+ function tu(r) {
5239
5239
  let t = /* @__PURE__ */ Object.create(null);
5240
5240
  for (let e in r) {
5241
5241
  let o = r[e];
@@ -5245,7 +5245,7 @@ function Zp(r) {
5245
5245
  }
5246
5246
  return t;
5247
5247
  }
5248
- function tu(r, t) {
5248
+ function eu(r, t) {
5249
5249
  let e = /* @__PURE__ */ Object.create(null);
5250
5250
  for (let o in r) {
5251
5251
  let n = t && t[o];
@@ -5260,7 +5260,7 @@ function tu(r, t) {
5260
5260
  }
5261
5261
  return e;
5262
5262
  }
5263
- function eu(r, t, e, o) {
5263
+ function ru(r, t, e, o) {
5264
5264
  for (let n in t)
5265
5265
  if (!(n in r))
5266
5266
  throw new RangeError(`Unsupported attribute ${n} for ${e} of type ${n}`);
@@ -5269,19 +5269,19 @@ function eu(r, t, e, o) {
5269
5269
  i.validate && i.validate(t[n]);
5270
5270
  }
5271
5271
  }
5272
- function ru(r, t) {
5272
+ function ou(r, t) {
5273
5273
  let e = /* @__PURE__ */ Object.create(null);
5274
5274
  if (t)
5275
5275
  for (let o in t)
5276
5276
  e[o] = new wf(r, o, t[o]);
5277
5277
  return e;
5278
5278
  }
5279
- let Ad = class ou {
5279
+ let Ad = class nu {
5280
5280
  /**
5281
5281
  @internal
5282
5282
  */
5283
5283
  constructor(t, e, o) {
5284
- this.name = t, this.schema = e, this.spec = o, this.markSet = null, this.groups = o.group ? o.group.split(" ") : [], this.attrs = ru(t, o.attrs), this.defaultAttrs = Zp(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(o.inline || t == "text"), this.isText = t == "text";
5284
+ this.name = t, this.schema = e, this.spec = o, this.markSet = null, this.groups = o.group ? o.group.split(" ") : [], this.attrs = ou(t, o.attrs), this.defaultAttrs = tu(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(o.inline || t == "text"), this.isText = t == "text";
5285
5285
  }
5286
5286
  /**
5287
5287
  True if this is an inline type.
@@ -5342,7 +5342,7 @@ let Ad = class ou {
5342
5342
  @internal
5343
5343
  */
5344
5344
  computeAttrs(t) {
5345
- return !t && this.defaultAttrs ? this.defaultAttrs : tu(this.attrs, t);
5345
+ return !t && this.defaultAttrs ? this.defaultAttrs : eu(this.attrs, t);
5346
5346
  }
5347
5347
  /**
5348
5348
  Create a `Node` of this type. The given attributes are
@@ -5409,7 +5409,7 @@ let Ad = class ou {
5409
5409
  @internal
5410
5410
  */
5411
5411
  checkAttrs(t) {
5412
- eu(this.attrs, t, "node", this.name);
5412
+ ru(this.attrs, t, "node", this.name);
5413
5413
  }
5414
5414
  /**
5415
5415
  Check whether the given mark type is allowed in this node.
@@ -5444,7 +5444,7 @@ let Ad = class ou {
5444
5444
  */
5445
5445
  static compile(t, e) {
5446
5446
  let o = /* @__PURE__ */ Object.create(null);
5447
- t.forEach((i, s) => o[i] = new ou(i, e, s));
5447
+ t.forEach((i, s) => o[i] = new nu(i, e, s));
5448
5448
  let n = e.spec.topNode || "doc";
5449
5449
  if (!o[n])
5450
5450
  throw new RangeError("Schema is missing its top node type ('" + n + "')");
@@ -5476,8 +5476,8 @@ class Bs {
5476
5476
  @internal
5477
5477
  */
5478
5478
  constructor(t, e, o, n) {
5479
- this.name = t, this.rank = e, this.schema = o, this.spec = n, this.attrs = ru(t, n.attrs), this.excluded = null;
5480
- let i = Zp(this.attrs);
5479
+ this.name = t, this.rank = e, this.schema = o, this.spec = n, this.attrs = ou(t, n.attrs), this.excluded = null;
5480
+ let i = tu(this.attrs);
5481
5481
  this.instance = i ? new at(this, i) : null;
5482
5482
  }
5483
5483
  /**
@@ -5486,7 +5486,7 @@ class Bs {
5486
5486
  they have defaults, will be added.
5487
5487
  */
5488
5488
  create(t = null) {
5489
- return !t && this.instance ? this.instance : new at(this, tu(this.attrs, t));
5489
+ return !t && this.instance ? this.instance : new at(this, eu(this.attrs, t));
5490
5490
  }
5491
5491
  /**
5492
5492
  @internal
@@ -5516,7 +5516,7 @@ class Bs {
5516
5516
  @internal
5517
5517
  */
5518
5518
  checkAttrs(t) {
5519
- eu(this.attrs, t, "mark", this.name);
5519
+ ru(this.attrs, t, "mark", this.name);
5520
5520
  }
5521
5521
  /**
5522
5522
  Queries whether a given mark type is
@@ -5526,7 +5526,7 @@ class Bs {
5526
5526
  return this.excluded.indexOf(t) > -1;
5527
5527
  }
5528
5528
  }
5529
- class nu {
5529
+ class iu {
5530
5530
  /**
5531
5531
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
5532
5532
  */
@@ -5746,7 +5746,7 @@ let nn = class za {
5746
5746
  return t.cached.domParser || (t.cached.domParser = new za(t, za.schemaRules(t)));
5747
5747
  }
5748
5748
  };
5749
- const iu = {
5749
+ const su = {
5750
5750
  address: !0,
5751
5751
  article: !0,
5752
5752
  aside: !0,
@@ -5786,7 +5786,7 @@ const iu = {
5786
5786
  script: !0,
5787
5787
  style: !0,
5788
5788
  title: !0
5789
- }, su = { ol: !0, ul: !0 }, kn = 1, Fa = 2, sn = 4;
5789
+ }, au = { ol: !0, ul: !0 }, kn = 1, Fa = 2, sn = 4;
5790
5790
  function Dd(r, t, e) {
5791
5791
  return t != null ? (t ? kn : 0) | (t === "full" ? Fa : 0) : r && r.whitespace == "pre" ? kn | Fa : e & ~sn;
5792
5792
  }
@@ -5820,7 +5820,7 @@ class ci {
5820
5820
  return !t && this.match && (e = e.append(this.match.fillBefore(N.empty, !0))), this.type ? this.type.create(this.attrs, e, this.marks) : e;
5821
5821
  }
5822
5822
  inlineContext(t) {
5823
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !iu.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
5823
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !su.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
5824
5824
  }
5825
5825
  }
5826
5826
  class Id {
@@ -5858,14 +5858,14 @@ class Id {
5858
5858
  let n = this.localPreserveWS, i = this.top;
5859
5859
  (t.tagName == "PRE" || /pre/.test(t.style && t.style.whiteSpace)) && (this.localPreserveWS = !0);
5860
5860
  let s = t.nodeName.toLowerCase(), a;
5861
- su.hasOwnProperty(s) && this.parser.normalizeLists && Sf(t);
5861
+ au.hasOwnProperty(s) && this.parser.normalizeLists && Sf(t);
5862
5862
  let l = this.options.ruleFromNode && this.options.ruleFromNode(t) || (a = this.parser.matchTag(t, this, o));
5863
5863
  t: if (l ? l.ignore : kf.hasOwnProperty(s))
5864
5864
  this.findInside(t), this.ignoreFallback(t, e);
5865
5865
  else if (!l || l.skip || l.closeParent) {
5866
5866
  l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (t = l.skip);
5867
5867
  let d, c = this.needsBlock;
5868
- if (iu.hasOwnProperty(s))
5868
+ if (su.hasOwnProperty(s))
5869
5869
  i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), d = !0, i.type || (this.needsBlock = !0);
5870
5870
  else if (!t.firstChild) {
5871
5871
  this.leafFallback(t, e);
@@ -6100,7 +6100,7 @@ class Id {
6100
6100
  function Sf(r) {
6101
6101
  for (let t = r.firstChild, e = null; t; t = t.nextSibling) {
6102
6102
  let o = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
6103
- o && su.hasOwnProperty(o) && e ? (e.appendChild(t), t = e) : o == "li" ? e = t : o && (e = null);
6103
+ o && au.hasOwnProperty(o) && e ? (e.appendChild(t), t = e) : o == "li" ? e = t : o && (e = null);
6104
6104
  }
6105
6105
  }
6106
6106
  function Cf(r, t) {
@@ -6306,17 +6306,17 @@ function Ti(r, t, e, o) {
6306
6306
  }
6307
6307
  return { dom: l, contentDOM: a };
6308
6308
  }
6309
- const au = 65535, lu = Math.pow(2, 16);
6309
+ const lu = 65535, du = Math.pow(2, 16);
6310
6310
  function Tf(r, t) {
6311
- return r + t * lu;
6311
+ return r + t * du;
6312
6312
  }
6313
6313
  function zd(r) {
6314
- return r & au;
6314
+ return r & lu;
6315
6315
  }
6316
6316
  function Of(r) {
6317
- return (r - (r & au)) / lu;
6317
+ return (r - (r & lu)) / du;
6318
6318
  }
6319
- const du = 1, cu = 2, Oi = 4, pu = 8;
6319
+ const cu = 1, pu = 2, Oi = 4, uu = 8;
6320
6320
  class Ha {
6321
6321
  /**
6322
6322
  @internal
@@ -6330,19 +6330,19 @@ class Ha {
6330
6330
  argument from the document.
6331
6331
  */
6332
6332
  get deleted() {
6333
- return (this.delInfo & pu) > 0;
6333
+ return (this.delInfo & uu) > 0;
6334
6334
  }
6335
6335
  /**
6336
6336
  Tells you whether the token before the mapped position was deleted.
6337
6337
  */
6338
6338
  get deletedBefore() {
6339
- return (this.delInfo & (du | Oi)) > 0;
6339
+ return (this.delInfo & (cu | Oi)) > 0;
6340
6340
  }
6341
6341
  /**
6342
6342
  True when the token after the mapped position was deleted.
6343
6343
  */
6344
6344
  get deletedAfter() {
6345
- return (this.delInfo & (cu | Oi)) > 0;
6345
+ return (this.delInfo & (pu | Oi)) > 0;
6346
6346
  }
6347
6347
  /**
6348
6348
  Tells whether any of the steps mapped through deletes across the
@@ -6393,8 +6393,8 @@ class oe {
6393
6393
  let m = d ? t == l ? -1 : t == p ? 1 : e : e, h = l + n + (m < 0 ? 0 : c);
6394
6394
  if (o)
6395
6395
  return h;
6396
- let g = t == (e < 0 ? l : p) ? null : Tf(a / 3, t - l), f = t == l ? cu : t == p ? du : Oi;
6397
- return (e < 0 ? t != l : t != p) && (f |= pu), new Ha(h, f, g);
6396
+ let g = t == (e < 0 ? l : p) ? null : Tf(a / 3, t - l), f = t == l ? pu : t == p ? cu : Oi;
6397
+ return (e < 0 ? t != l : t != p) && (f |= uu), new Ha(h, f, g);
6398
6398
  }
6399
6399
  n += c - d;
6400
6400
  }
@@ -7057,13 +7057,13 @@ function Rf(r, t, e, o, n) {
7057
7057
  let h = o.whitespace == "pre", g = !!o.contentMatch.matchType(o.schema.linebreakReplacement);
7058
7058
  h && !g ? d = !1 : !h && g && (d = !0);
7059
7059
  }
7060
- d === !1 && mu(r, s, a, i), Sl(r, r.mapping.slice(i).map(a, 1), o, void 0, d === null);
7060
+ d === !1 && hu(r, s, a, i), Sl(r, r.mapping.slice(i).map(a, 1), o, void 0, d === null);
7061
7061
  let c = r.mapping.slice(i), p = c.map(a, 1), m = c.map(a + s.nodeSize, 1);
7062
- return r.step(new Pt(p, m, p + 1, m - 1, new _(N.from(o.create(l, null, s.marks)), 0, 0), 1, !0)), d === !0 && uu(r, s, a, i), !1;
7062
+ return r.step(new Pt(p, m, p + 1, m - 1, new _(N.from(o.create(l, null, s.marks)), 0, 0), 1, !0)), d === !0 && mu(r, s, a, i), !1;
7063
7063
  }
7064
7064
  });
7065
7065
  }
7066
- function uu(r, t, e, o) {
7066
+ function mu(r, t, e, o) {
7067
7067
  t.forEach((n, i) => {
7068
7068
  if (n.isText) {
7069
7069
  let s, a = /\r?\n|\r/g;
@@ -7074,7 +7074,7 @@ function uu(r, t, e, o) {
7074
7074
  }
7075
7075
  });
7076
7076
  }
7077
- function mu(r, t, e, o) {
7077
+ function hu(r, t, e, o) {
7078
7078
  t.forEach((n, i) => {
7079
7079
  if (n.type == n.type.schema.linebreakReplacement) {
7080
7080
  let s = r.mapping.slice(o).map(e + 1 + i);
@@ -7127,7 +7127,7 @@ function zf(r, t, e = 1, o) {
7127
7127
  }
7128
7128
  function Tr(r, t) {
7129
7129
  let e = r.resolve(t), o = e.index();
7130
- return hu(e.nodeBefore, e.nodeAfter) && e.parent.canReplace(o, o + 1);
7130
+ return gu(e.nodeBefore, e.nodeAfter) && e.parent.canReplace(o, o + 1);
7131
7131
  }
7132
7132
  function Ff(r, t) {
7133
7133
  t.content.size || r.type.compatibleContent(t.type);
@@ -7139,14 +7139,14 @@ function Ff(r, t) {
7139
7139
  }
7140
7140
  return e.validEnd;
7141
7141
  }
7142
- function hu(r, t) {
7142
+ function gu(r, t) {
7143
7143
  return !!(r && t && !r.isLeaf && Ff(r, t));
7144
7144
  }
7145
7145
  function As(r, t, e = -1) {
7146
7146
  let o = r.resolve(t);
7147
7147
  for (let n = o.depth; ; n--) {
7148
7148
  let i, s, a = o.index(n);
7149
- if (n == o.depth ? (i = o.nodeBefore, s = o.nodeAfter) : e > 0 ? (i = o.node(n + 1), a++, s = o.node(n).maybeChild(a)) : (i = o.node(n).maybeChild(a - 1), s = o.node(n + 1)), i && !i.isTextblock && hu(i, s) && o.node(n).canReplace(a, a + 1))
7149
+ if (n == o.depth ? (i = o.nodeBefore, s = o.nodeAfter) : e > 0 ? (i = o.node(n + 1), a++, s = o.node(n).maybeChild(a)) : (i = o.node(n).maybeChild(a - 1), s = o.node(n + 1)), i && !i.isTextblock && gu(i, s) && o.node(n).canReplace(a, a + 1))
7150
7150
  return t;
7151
7151
  if (n == 0)
7152
7152
  break;
@@ -7162,13 +7162,13 @@ function Hf(r, t, e) {
7162
7162
  let a = r.steps.length;
7163
7163
  if (o === !1) {
7164
7164
  let c = r.doc.resolve(t + e);
7165
- mu(r, c.node(), c.before(), a);
7165
+ hu(r, c.node(), c.before(), a);
7166
7166
  }
7167
7167
  s.inlineContent && Sl(r, t + e - 1, s, i.node().contentMatchAt(i.index()), o == null);
7168
7168
  let l = r.mapping.slice(a), d = l.map(t - e);
7169
7169
  if (r.step(new Ot(d, l.map(t + e, -1), _.empty, !0)), o === !0) {
7170
7170
  let c = r.doc.resolve(d);
7171
- uu(r, c.node(), c.before(), r.steps.length);
7171
+ mu(r, c.node(), c.before(), r.steps.length);
7172
7172
  }
7173
7173
  return r;
7174
7174
  }
@@ -7194,7 +7194,7 @@ function jf(r, t, e) {
7194
7194
  }
7195
7195
  return null;
7196
7196
  }
7197
- function gu(r, t, e) {
7197
+ function fu(r, t, e) {
7198
7198
  let o = r.resolve(t);
7199
7199
  if (!e.content.size)
7200
7200
  return t;
@@ -7219,9 +7219,9 @@ function Ns(r, t, e = t, o = _.empty) {
7219
7219
  if (t == e && !o.size)
7220
7220
  return null;
7221
7221
  let n = r.resolve(t), i = r.resolve(e);
7222
- return fu(n, i, o) ? new Ot(t, e, o) : new Vf(n, i, o).fit();
7222
+ return bu(n, i, o) ? new Ot(t, e, o) : new Vf(n, i, o).fit();
7223
7223
  }
7224
- function fu(r, t, e) {
7224
+ function bu(r, t, e) {
7225
7225
  return !e.openStart && !e.openEnd && r.start() == t.start() && r.parent.canReplace(r.index(), t.index(), e.content);
7226
7226
  }
7227
7227
  class Vf {
@@ -7315,7 +7315,7 @@ class Vf {
7315
7315
  let f = a.child(d), b = p.matchType(f.type);
7316
7316
  if (!b)
7317
7317
  break;
7318
- d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(bu(f.mark(m.allowedMarks(f.marks)), d == 1 ? l : 0, d == a.childCount ? h : -1)));
7318
+ d++, (d > 1 || l == 0 || f.content.size) && (p = b, c.push(yu(f.mark(m.allowedMarks(f.marks)), d == 1 ? l : 0, d == a.childCount ? h : -1)));
7319
7319
  }
7320
7320
  let g = d == a.childCount;
7321
7321
  g || (h = -1), this.placed = tn(this.placed, e, N.from(c)), this.frontier[e].match = p, g && h < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
@@ -7382,11 +7382,11 @@ function ea(r, t) {
7382
7382
  r = r.firstChild.content;
7383
7383
  return r;
7384
7384
  }
7385
- function bu(r, t, e) {
7385
+ function yu(r, t, e) {
7386
7386
  if (t <= 0)
7387
7387
  return r;
7388
7388
  let o = r.content;
7389
- return t > 1 && (o = o.replaceChild(0, bu(o.firstChild, t - 1, o.childCount == 1 ? e - 1 : 0))), t > 0 && (o = r.type.contentMatch.fillBefore(o).append(o), e <= 0 && (o = o.append(r.type.contentMatch.matchFragment(o).fillBefore(N.empty, !0)))), r.copy(o);
7389
+ return t > 1 && (o = o.replaceChild(0, yu(o.firstChild, t - 1, o.childCount == 1 ? e - 1 : 0))), t > 0 && (o = r.type.contentMatch.fillBefore(o).append(o), e <= 0 && (o = o.append(r.type.contentMatch.matchFragment(o).fillBefore(N.empty, !0)))), r.copy(o);
7390
7390
  }
7391
7391
  function ra(r, t, e, o, n) {
7392
7392
  let i = r.node(t), s = n ? r.indexAfter(t) : r.index(t);
@@ -7408,9 +7408,9 @@ function Uf(r, t, e, o) {
7408
7408
  if (!o.size)
7409
7409
  return r.deleteRange(t, e);
7410
7410
  let n = r.doc.resolve(t), i = r.doc.resolve(e);
7411
- if (fu(n, i, o))
7411
+ if (bu(n, i, o))
7412
7412
  return r.step(new Ot(t, e, o));
7413
- let s = wu(n, r.doc.resolve(e));
7413
+ let s = xu(n, r.doc.resolve(e));
7414
7414
  s[s.length - 1] == 0 && s.pop();
7415
7415
  let a = -(n.depth + 1);
7416
7416
  s.unshift(a);
@@ -7442,7 +7442,7 @@ function Uf(r, t, e, o) {
7442
7442
  b < 0 && (w = !1, b = -b);
7443
7443
  let E = n.node(b - 1), S = n.index(b - 1);
7444
7444
  if (E.canReplaceWith(S, S, g.type, g.marks))
7445
- return r.replace(n.before(b), w ? i.after(b) : e, new _(yu(o.content, 0, o.openStart, h), h, o.openEnd));
7445
+ return r.replace(n.before(b), w ? i.after(b) : e, new _(wu(o.content, 0, o.openStart, h), h, o.openEnd));
7446
7446
  }
7447
7447
  }
7448
7448
  let p = r.steps.length;
@@ -7451,10 +7451,10 @@ function Uf(r, t, e, o) {
7451
7451
  h < 0 || (t = n.before(h), e = i.after(h));
7452
7452
  }
7453
7453
  }
7454
- function yu(r, t, e, o, n) {
7454
+ function wu(r, t, e, o, n) {
7455
7455
  if (t < e) {
7456
7456
  let i = r.firstChild;
7457
- r = r.replaceChild(0, i.copy(yu(i.content, t + 1, e, o, i)));
7457
+ r = r.replaceChild(0, i.copy(wu(i.content, t + 1, e, o, i)));
7458
7458
  }
7459
7459
  if (t > o) {
7460
7460
  let i = n.contentMatchAt(0), s = i.fillBefore(r).append(r);
@@ -7470,7 +7470,7 @@ function Kf(r, t, e, o) {
7470
7470
  r.replaceRange(t, e, new _(N.from(o), 0, 0));
7471
7471
  }
7472
7472
  function Gf(r, t, e) {
7473
- let o = r.doc.resolve(t), n = r.doc.resolve(e), i = wu(o, n);
7473
+ let o = r.doc.resolve(t), n = r.doc.resolve(e), i = xu(o, n);
7474
7474
  for (let s = 0; s < i.length; s++) {
7475
7475
  let a = i[s], l = s == i.length - 1;
7476
7476
  if (l && a == 0 || o.node(a).type.contentMatch.validEnd)
@@ -7483,7 +7483,7 @@ function Gf(r, t, e) {
7483
7483
  return r.delete(o.before(s), e);
7484
7484
  r.delete(t, e);
7485
7485
  }
7486
- function wu(r, t) {
7486
+ function xu(r, t) {
7487
7487
  let e = [], o = Math.min(r.depth, t.depth);
7488
7488
  for (let n = o; n >= 0; n--) {
7489
7489
  let i = r.start(n);
@@ -7574,7 +7574,7 @@ Po = function r(t) {
7574
7574
  Po.prototype = Object.create(Error.prototype);
7575
7575
  Po.prototype.constructor = Po;
7576
7576
  Po.prototype.name = "TransformError";
7577
- class xu {
7577
+ class vu {
7578
7578
  /**
7579
7579
  Create a transform that starts with the given document.
7580
7580
  */
@@ -8195,7 +8195,7 @@ function Vd(r, t, e) {
8195
8195
  }), r.setSelection(Q.near(r.doc.resolve(s), e));
8196
8196
  }
8197
8197
  const Wd = 1, pi = 2, qd = 4;
8198
- class Qf extends xu {
8198
+ class Qf extends vu {
8199
8199
  /**
8200
8200
  @internal
8201
8201
  */
@@ -8562,10 +8562,10 @@ class So {
8562
8562
  }), i;
8563
8563
  }
8564
8564
  }
8565
- function vu(r, t, e) {
8565
+ function ku(r, t, e) {
8566
8566
  for (let o in r) {
8567
8567
  let n = r[o];
8568
- n instanceof Function ? n = n.bind(t) : o == "handleDOMEvents" && (n = vu(n, t, {})), e[o] = n;
8568
+ n instanceof Function ? n = n.bind(t) : o == "handleDOMEvents" && (n = ku(n, t, {})), e[o] = n;
8569
8569
  }
8570
8570
  return e;
8571
8571
  }
@@ -8574,7 +8574,7 @@ class Mt {
8574
8574
  Create a plugin.
8575
8575
  */
8576
8576
  constructor(t) {
8577
- this.spec = t, this.props = {}, t.props && vu(t.props, this, this.props), this.key = t.key ? t.key.key : ku("plugin");
8577
+ this.spec = t, this.props = {}, t.props && ku(t.props, this, this.props), this.key = t.key ? t.key.key : Su("plugin");
8578
8578
  }
8579
8579
  /**
8580
8580
  Extract the plugin's state field from an editor state.
@@ -8584,7 +8584,7 @@ class Mt {
8584
8584
  }
8585
8585
  }
8586
8586
  const ia = /* @__PURE__ */ Object.create(null);
8587
- function ku(r) {
8587
+ function Su(r) {
8588
8588
  return r in ia ? r + "$" + ++ia[r] : (ia[r] = 0, r + "$");
8589
8589
  }
8590
8590
  class Yt {
@@ -8592,7 +8592,7 @@ class Yt {
8592
8592
  Create a plugin key.
8593
8593
  */
8594
8594
  constructor(t = "key") {
8595
- this.key = ku(t);
8595
+ this.key = Su(t);
8596
8596
  }
8597
8597
  /**
8598
8598
  Get the active plugin with this key, if any, from an editor
@@ -8721,9 +8721,9 @@ function i1(r, t, e) {
8721
8721
  return { node: o.startContainer, offset: Math.min(ue(o.startContainer), o.startOffset) };
8722
8722
  }
8723
8723
  }
8724
- const Re = typeof navigator < "u" ? navigator : null, Gd = typeof document < "u" ? document : null, Or = Re && Re.userAgent || "", Wa = /Edge\/(\d+)/.exec(Or), Su = /MSIE \d/.exec(Or), qa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Or), Zt = !!(Su || qa || Wa), kr = Su ? document.documentMode : qa ? +qa[1] : Wa ? +Wa[1] : 0, Se = !Zt && /gecko\/(\d+)/i.test(Or);
8724
+ const Re = typeof navigator < "u" ? navigator : null, Gd = typeof document < "u" ? document : null, Or = Re && Re.userAgent || "", Wa = /Edge\/(\d+)/.exec(Or), Cu = /MSIE \d/.exec(Or), qa = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Or), Zt = !!(Cu || qa || Wa), kr = Cu ? document.documentMode : qa ? +qa[1] : Wa ? +Wa[1] : 0, Se = !Zt && /gecko\/(\d+)/i.test(Or);
8725
8725
  Se && +(/Firefox\/(\d+)/.exec(Or) || [0, 0])[1];
8726
- const Ua = !Zt && /Chrome\/(\d+)/.exec(Or), jt = !!Ua, Cu = Ua ? +Ua[1] : 0, Kt = !Zt && !!Re && /Apple Computer/.test(Re.vendor), Ao = Kt && (/Mobile\/\w+/.test(Or) || !!Re && Re.maxTouchPoints > 2), pe = Ao || (Re ? /Mac/.test(Re.platform) : !1), s1 = Re ? /Win/.test(Re.platform) : !1, Qe = /Android \d/.test(Or), Fn = !!Gd && "webkitFontSmoothing" in Gd.documentElement.style, a1 = Fn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
8726
+ const Ua = !Zt && /Chrome\/(\d+)/.exec(Or), jt = !!Ua, Mu = Ua ? +Ua[1] : 0, Kt = !Zt && !!Re && /Apple Computer/.test(Re.vendor), Ao = Kt && (/Mobile\/\w+/.test(Or) || !!Re && Re.maxTouchPoints > 2), pe = Ao || (Re ? /Mac/.test(Re.platform) : !1), s1 = Re ? /Win/.test(Re.platform) : !1, Qe = /Android \d/.test(Or), Fn = !!Gd && "webkitFontSmoothing" in Gd.documentElement.style, a1 = Fn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
8727
8727
  function l1(r) {
8728
8728
  let t = r.defaultView && r.defaultView.visualViewport;
8729
8729
  return t ? {
@@ -8785,9 +8785,9 @@ function c1(r) {
8785
8785
  break;
8786
8786
  }
8787
8787
  }
8788
- return { refDOM: o, refTop: n, stack: Mu(r.dom) };
8788
+ return { refDOM: o, refTop: n, stack: Eu(r.dom) };
8789
8789
  }
8790
- function Mu(r) {
8790
+ function Eu(r) {
8791
8791
  let t = [], e = r.ownerDocument;
8792
8792
  for (let o = r; o && (t.push({ dom: o, top: o.scrollTop, left: o.scrollLeft }), r != e); o = Bo(o))
8793
8793
  ;
@@ -8795,9 +8795,9 @@ function Mu(r) {
8795
8795
  }
8796
8796
  function p1({ refDOM: r, refTop: t, stack: e }) {
8797
8797
  let o = r ? r.getBoundingClientRect().top : 0;
8798
- Eu(e, o == 0 ? 0 : o - t);
8798
+ Tu(e, o == 0 ? 0 : o - t);
8799
8799
  }
8800
- function Eu(r, t) {
8800
+ function Tu(r, t) {
8801
8801
  for (let e = 0; e < r.length; e++) {
8802
8802
  let { dom: o, top: n, left: i } = r[e];
8803
8803
  o.scrollTop != n + t && (o.scrollTop = n + t), o.scrollLeft != i && (o.scrollLeft = i);
@@ -8809,14 +8809,14 @@ function u1(r) {
8809
8809
  return r.setActive();
8810
8810
  if (ho)
8811
8811
  return r.focus(ho);
8812
- let t = Mu(r);
8812
+ let t = Eu(r);
8813
8813
  r.focus(ho == null ? {
8814
8814
  get preventScroll() {
8815
8815
  return ho = { preventScroll: !0 }, !0;
8816
8816
  }
8817
- } : void 0), ho || (ho = !1, Eu(t, 0));
8817
+ } : void 0), ho || (ho = !1, Tu(t, 0));
8818
8818
  }
8819
- function Tu(r, t) {
8819
+ function Ou(r, t) {
8820
8820
  let e, o = 2e8, n, i = 0, s = t.top, a = t.top, l, d;
8821
8821
  for (let c = r.firstChild, p = 0; c; c = c.nextSibling, p++) {
8822
8822
  let m;
@@ -8842,7 +8842,7 @@ function Tu(r, t) {
8842
8842
  !e && (t.left >= g.right && t.top >= g.top || t.left >= g.left && t.top >= g.bottom) && (i = p + 1);
8843
8843
  }
8844
8844
  }
8845
- return !e && l && (e = l, n = d, o = 0), e && e.nodeType == 3 ? m1(e, n) : !e || o && e.nodeType == 1 ? { node: r, offset: i } : Tu(e, n);
8845
+ return !e && l && (e = l, n = d, o = 0), e && e.nodeType == 3 ? m1(e, n) : !e || o && e.nodeType == 1 ? { node: r, offset: i } : Ou(e, n);
8846
8846
  }
8847
8847
  function m1(r, t) {
8848
8848
  let e = r.nodeValue.length, o = document.createRange();
@@ -8862,7 +8862,7 @@ function h1(r, t) {
8862
8862
  return e && /^li$/i.test(e.nodeName) && t.left < r.getBoundingClientRect().left ? e : r;
8863
8863
  }
8864
8864
  function g1(r, t, e) {
8865
- let { node: o, offset: n } = Tu(t, e), i = -1;
8865
+ let { node: o, offset: n } = Ou(t, e), i = -1;
8866
8866
  if (o.nodeType == 1 && !o.firstChild) {
8867
8867
  let s = o.getBoundingClientRect();
8868
8868
  i = s.left != s.right && e.left > (s.left + s.right) / 2 ? 1 : -1;
@@ -8882,7 +8882,7 @@ function f1(r, t, e, o) {
8882
8882
  }
8883
8883
  return n > -1 ? n : r.docView.posFromDOM(t, e, -1);
8884
8884
  }
8885
- function Ou(r, t, e) {
8885
+ function Pu(r, t, e) {
8886
8886
  let o = r.childNodes.length;
8887
8887
  if (o && e.top < e.bottom)
8888
8888
  for (let n = Math.max(0, Math.min(o - 1, Math.floor(o * (t.top - e.top) / (e.bottom - e.top)) - 2)), i = n; ; ) {
@@ -8892,7 +8892,7 @@ function Ou(r, t, e) {
8892
8892
  for (let l = 0; l < a.length; l++) {
8893
8893
  let d = a[l];
8894
8894
  if (El(t, d))
8895
- return Ou(s, t, d);
8895
+ return Pu(s, t, d);
8896
8896
  }
8897
8897
  }
8898
8898
  if ((i = (i + 1) % o) == n)
@@ -8906,7 +8906,7 @@ function b1(r, t) {
8906
8906
  let s = (r.root.elementFromPoint ? r.root : e).elementFromPoint(t.left, t.top), a;
8907
8907
  if (!s || !r.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
8908
8908
  let d = r.dom.getBoundingClientRect();
8909
- if (!El(t, d) || (s = Ou(r.dom, t, d), !s))
8909
+ if (!El(t, d) || (s = Pu(r.dom, t, d), !s))
8910
8910
  return null;
8911
8911
  }
8912
8912
  if (Kt)
@@ -8937,7 +8937,7 @@ function ar(r, t) {
8937
8937
  return Array.prototype.find.call(e, Yd) || r.getBoundingClientRect();
8938
8938
  }
8939
8939
  const y1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
8940
- function Pu(r, t, e) {
8940
+ function Bu(r, t, e) {
8941
8941
  let { node: o, offset: n, atom: i } = r.docView.domFromPos(t, e < 0 ? -1 : 1), s = Fn || Se;
8942
8942
  if (o.nodeType == 3)
8943
8943
  if (s && (y1.test(o.nodeValue) || (e < 0 ? !n : n == o.nodeValue.length))) {
@@ -8995,7 +8995,7 @@ function sa(r, t) {
8995
8995
  let e = t ? r.top : r.bottom;
8996
8996
  return { top: e, bottom: e, left: r.left, right: r.right };
8997
8997
  }
8998
- function Bu(r, t, e) {
8998
+ function Au(r, t, e) {
8999
8999
  let o = r.state, n = r.root.activeElement;
9000
9000
  o != t && r.updateState(t), n != r.dom && r.focus();
9001
9001
  try {
@@ -9006,7 +9006,7 @@ function Bu(r, t, e) {
9006
9006
  }
9007
9007
  function w1(r, t, e) {
9008
9008
  let o = t.selection, n = e == "up" ? o.$from : o.$to;
9009
- return Bu(r, t, () => {
9009
+ return Au(r, t, () => {
9010
9010
  let { node: i } = r.docView.domFromPos(n.pos, e == "up" ? -1 : 1);
9011
9011
  for (; ; ) {
9012
9012
  let a = r.docView.nearestDesc(i, !0);
@@ -9018,7 +9018,7 @@ function w1(r, t, e) {
9018
9018
  }
9019
9019
  i = a.dom.parentNode;
9020
9020
  }
9021
- let s = Pu(r, n.pos, 1);
9021
+ let s = Bu(r, n.pos, 1);
9022
9022
  for (let a = i.firstChild; a; a = a.nextSibling) {
9023
9023
  let l;
9024
9024
  if (a.nodeType == 1)
@@ -9042,7 +9042,7 @@ function v1(r, t, e) {
9042
9042
  if (!o.parent.isTextblock)
9043
9043
  return !1;
9044
9044
  let n = o.parentOffset, i = !n, s = n == o.parent.content.size, a = r.domSelection();
9045
- return a ? !x1.test(o.parent.textContent) || !a.modify ? e == "left" || e == "backward" ? i : s : Bu(r, t, () => {
9045
+ return a ? !x1.test(o.parent.textContent) || !a.modify ? e == "left" || e == "backward" ? i : s : Au(r, t, () => {
9046
9046
  let { focusNode: l, focusOffset: d, anchorNode: c, anchorOffset: p } = r.domSelectionRange(), m = a.caretBidiLevel;
9047
9047
  a.modify("move", e, "character");
9048
9048
  let h = o.depth ? r.docView.domAfterPos(o.before()) : r.dom, { focusNode: g, focusOffset: f } = r.domSelectionRange(), b = g && !h.contains(g.nodeType == 1 ? g : g.parentNode) || l == g && d == f;
@@ -9229,7 +9229,7 @@ class Hn {
9229
9229
  let o = 0, n = 0;
9230
9230
  for (let i = 0; o < this.children.length; o++) {
9231
9231
  let s = this.children[o], a = i + s.size;
9232
- if (a > t || s instanceof Nu) {
9232
+ if (a > t || s instanceof Du) {
9233
9233
  n = t - i;
9234
9234
  break;
9235
9235
  }
@@ -9237,7 +9237,7 @@ class Hn {
9237
9237
  }
9238
9238
  if (n)
9239
9239
  return this.children[o].domFromPos(n - this.children[o].border, e);
9240
- for (let i; o && !(i = this.children[o - 1]).size && i instanceof Au && i.side >= 0; o--)
9240
+ for (let i; o && !(i = this.children[o - 1]).size && i instanceof Nu && i.side >= 0; o--)
9241
9241
  ;
9242
9242
  if (e <= 0) {
9243
9243
  let i, s = !0;
@@ -9402,7 +9402,7 @@ class Hn {
9402
9402
  return !1;
9403
9403
  }
9404
9404
  }
9405
- class Au extends Hn {
9405
+ class Nu extends Hn {
9406
9406
  constructor(t, e, o, n) {
9407
9407
  let i, s = e.type.toDOM;
9408
9408
  if (typeof s == "function" && (s = s(o, () => {
@@ -9526,7 +9526,7 @@ class Sr extends Hn {
9526
9526
  } else c || ({ dom: c, contentDOM: p } = no.renderSpec(document, e.type.spec.toDOM(e), null, e.attrs));
9527
9527
  !p && !e.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), e.type.spec.draggable && (c.draggable = !0));
9528
9528
  let m = c;
9529
- return c = Lu(c, o, e), d ? l = new C1(t, e, o, n, c, p || null, m, d, i, s + 1) : e.isText ? new Ls(t, e, o, n, c, m, i) : new Sr(t, e, o, n, c, p || null, m, i, s + 1);
9529
+ return c = Ru(c, o, e), d ? l = new C1(t, e, o, n, c, p || null, m, d, i, s + 1) : e.isText ? new Ls(t, e, o, n, c, m, i) : new Sr(t, e, o, n, c, p || null, m, i, s + 1);
9530
9530
  }
9531
9531
  parseRule() {
9532
9532
  if (this.node.type.spec.reparseInView)
@@ -9569,7 +9569,7 @@ class Sr extends Hn {
9569
9569
  l.syncToMarks(d.marks, o, t);
9570
9570
  let h;
9571
9571
  l.findNodeMatch(d, c, p, m) || a && t.state.selection.from > n && t.state.selection.to < n + d.nodeSize && (h = l.findIndexWithChild(i.node)) > -1 && l.updateNodeAt(d, c, p, h, t) || l.updateNextNode(d, c, p, t, m, n) || l.addNode(d, c, p, t, n), n += d.nodeSize;
9572
- }), l.syncToMarks([], o, t), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Hr) && (s && this.protectLocalComposition(t, s), Du(this.contentDOM, this.children, t), Ao && B1(this.dom));
9572
+ }), l.syncToMarks([], o, t), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Hr) && (s && this.protectLocalComposition(t, s), Iu(this.contentDOM, this.children, t), Ao && B1(this.dom));
9573
9573
  }
9574
9574
  localCompositionInfo(t, e) {
9575
9575
  let { from: o, to: n } = t.state.selection;
@@ -9610,7 +9610,7 @@ class Sr extends Hn {
9610
9610
  if (Hi(t, this.outerDeco))
9611
9611
  return;
9612
9612
  let e = this.nodeDOM.nodeType != 1, o = this.dom;
9613
- this.dom = Iu(this.dom, this.nodeDOM, Ka(this.outerDeco, this.node, e), Ka(t, this.node, e)), this.dom != o && (o.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
9613
+ this.dom = Lu(this.dom, this.nodeDOM, Ka(this.outerDeco, this.node, e), Ka(t, this.node, e)), this.dom != o && (o.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
9614
9614
  }
9615
9615
  // Mark this node as being the selected node.
9616
9616
  selectNode() {
@@ -9625,7 +9625,7 @@ class Sr extends Hn {
9625
9625
  }
9626
9626
  }
9627
9627
  function ec(r, t, e, o, n) {
9628
- Lu(o, t, r);
9628
+ Ru(o, t, r);
9629
9629
  let i = new Sr(void 0, r, t, e, o, o, o, n, 0);
9630
9630
  return i.contentDOM && i.updateChildren(n, 0), i;
9631
9631
  }
@@ -9672,7 +9672,7 @@ class Ls extends Sr {
9672
9672
  return this.node.text == t;
9673
9673
  }
9674
9674
  }
9675
- class Nu extends Hn {
9675
+ class Du extends Hn {
9676
9676
  parseRule() {
9677
9677
  return { ignore: !0 };
9678
9678
  }
@@ -9720,7 +9720,7 @@ class C1 extends Sr {
9720
9720
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(t) : super.ignoreMutation(t);
9721
9721
  }
9722
9722
  }
9723
- function Du(r, t, e) {
9723
+ function Iu(r, t, e) {
9724
9724
  let o = r.firstChild, n = !1;
9725
9725
  for (let i = 0; i < t.length; i++) {
9726
9726
  let s = t[i], a = s.dom;
@@ -9732,7 +9732,7 @@ function Du(r, t, e) {
9732
9732
  n = !0, r.insertBefore(a, o);
9733
9733
  if (s instanceof eo) {
9734
9734
  let l = o ? o.previousSibling : r.lastChild;
9735
- Du(s.contentDOM, s.children, e), o = l ? l.nextSibling : r.firstChild;
9735
+ Iu(s.contentDOM, s.children, e), o = l ? l.nextSibling : r.firstChild;
9736
9736
  }
9737
9737
  }
9738
9738
  for (; o; )
@@ -9760,7 +9760,7 @@ function Ka(r, t, e) {
9760
9760
  }
9761
9761
  return n;
9762
9762
  }
9763
- function Iu(r, t, e, o) {
9763
+ function Lu(r, t, e, o) {
9764
9764
  if (e == jr && o == jr)
9765
9765
  return t;
9766
9766
  let n = t;
@@ -9796,8 +9796,8 @@ function M1(r, t, e) {
9796
9796
  e.style && (r.style.cssText += e.style);
9797
9797
  }
9798
9798
  }
9799
- function Lu(r, t, e) {
9800
- return Iu(r, r, jr, Ka(t, e, r.nodeType != 1));
9799
+ function Ru(r, t, e) {
9800
+ return Lu(r, r, jr, Ka(t, e, r.nodeType != 1));
9801
9801
  }
9802
9802
  function Hi(r, t) {
9803
9803
  if (r.length != t.length)
@@ -9934,7 +9934,7 @@ class E1 {
9934
9934
  if (n && n.matchesWidget(t) && (t == n.widget || !n.widget.type.toDOM.parentNode))
9935
9935
  this.index++;
9936
9936
  else {
9937
- let i = new Au(this.top, t, e, o);
9937
+ let i = new Nu(this.top, t, e, o);
9938
9938
  this.top.children.splice(this.index++, 0, i), this.changed = !0;
9939
9939
  }
9940
9940
  }
@@ -9953,7 +9953,7 @@ class E1 {
9953
9953
  else {
9954
9954
  let o = document.createElement(t);
9955
9955
  t == "IMG" && (o.className = "ProseMirror-separator", o.alt = ""), t == "BR" && (o.className = "ProseMirror-trailingBreak");
9956
- let n = new Nu(this.top, [], o, null);
9956
+ let n = new Du(this.top, [], o, null);
9957
9957
  e != this.top ? e.children.push(n) : e.children.splice(this.index++, 0, n), this.changed = !0;
9958
9958
  }
9959
9959
  }
@@ -10115,12 +10115,12 @@ function Tl(r, t = null) {
10115
10115
  }
10116
10116
  return d;
10117
10117
  }
10118
- function Ru(r) {
10119
- return r.editable ? r.hasFocus() : _u(r) && document.activeElement && document.activeElement.contains(r.dom);
10118
+ function $u(r) {
10119
+ return r.editable ? r.hasFocus() : zu(r) && document.activeElement && document.activeElement.contains(r.dom);
10120
10120
  }
10121
10121
  function tr(r, t = !1) {
10122
10122
  let e = r.state.selection;
10123
- if ($u(r, e), !!Ru(r)) {
10123
+ if (_u(r, e), !!$u(r)) {
10124
10124
  if (!t && r.input.mouseDown && r.input.mouseDown.allowDefault && jt) {
10125
10125
  let o = r.domSelectionRange(), n = r.domObserver.currentSelection;
10126
10126
  if (o.anchorNode && n.anchorNode && to(o.anchorNode, o.anchorOffset, n.anchorNode, n.anchorOffset)) {
@@ -10137,7 +10137,7 @@ function tr(r, t = !1) {
10137
10137
  r.domObserver.setCurSelection(), r.domObserver.connectSelection();
10138
10138
  }
10139
10139
  }
10140
- const oc = Kt || jt && Cu < 63;
10140
+ const oc = Kt || jt && Mu < 63;
10141
10141
  function nc(r, t) {
10142
10142
  let { node: e, offset: o } = r.docView.domFromPos(t, 0), n = o < e.childNodes.length ? e.childNodes[o] : null, i = o ? e.childNodes[o - 1] : null;
10143
10143
  if (Kt && n && n.contentEditable == "false")
@@ -10161,7 +10161,7 @@ function N1(r) {
10161
10161
  let e = r.domSelectionRange(), o = e.anchorNode, n = e.anchorOffset;
10162
10162
  t.addEventListener("selectionchange", r.input.hideSelectionGuard = () => {
10163
10163
  (e.anchorNode != o || e.anchorOffset != n) && (t.removeEventListener("selectionchange", r.input.hideSelectionGuard), setTimeout(() => {
10164
- (!Ru(r) || r.state.selection.visible) && r.dom.classList.remove("ProseMirror-hideselection");
10164
+ (!$u(r) || r.state.selection.visible) && r.dom.classList.remove("ProseMirror-hideselection");
10165
10165
  }, 20));
10166
10166
  });
10167
10167
  }
@@ -10172,7 +10172,7 @@ function D1(r) {
10172
10172
  let o = r.cursorWrapper.dom, n = o.nodeName == "IMG";
10173
10173
  n ? e.setStart(o.parentNode, It(o) + 1) : e.setStart(o, 0), e.collapse(!0), t.removeAllRanges(), t.addRange(e), !n && !r.state.selection.visible && Zt && kr <= 11 && (o.disabled = !0, o.disabled = !1);
10174
10174
  }
10175
- function $u(r, t) {
10175
+ function _u(r, t) {
10176
10176
  if (t instanceof q) {
10177
10177
  let e = r.docView.descAt(t.from);
10178
10178
  e != r.lastSelectedViewDesc && (sc(r), e && e.selectNode(), r.lastSelectedViewDesc = e);
@@ -10186,9 +10186,9 @@ function Ol(r, t, e, o) {
10186
10186
  return r.someProp("createSelectionBetween", (n) => n(r, t, e)) || J.between(t, e, o);
10187
10187
  }
10188
10188
  function ac(r) {
10189
- return r.editable && !r.hasFocus() ? !1 : _u(r);
10189
+ return r.editable && !r.hasFocus() ? !1 : zu(r);
10190
10190
  }
10191
- function _u(r) {
10191
+ function zu(r) {
10192
10192
  let t = r.domSelectionRange();
10193
10193
  if (!t.anchorNode)
10194
10194
  return !1;
@@ -10268,7 +10268,7 @@ function L1(r) {
10268
10268
  break;
10269
10269
  }
10270
10270
  } else {
10271
- if (zu(e))
10271
+ if (Fu(e))
10272
10272
  break;
10273
10273
  {
10274
10274
  let a = e.previousSibling;
@@ -10300,7 +10300,7 @@ function R1(r) {
10300
10300
  else
10301
10301
  break;
10302
10302
  } else {
10303
- if (zu(e))
10303
+ if (Fu(e))
10304
10304
  break;
10305
10305
  {
10306
10306
  let a = e.nextSibling;
@@ -10317,7 +10317,7 @@ function R1(r) {
10317
10317
  }
10318
10318
  i && Ya(r, i, s);
10319
10319
  }
10320
- function zu(r) {
10320
+ function Fu(r) {
10321
10321
  let t = r.pmViewDesc;
10322
10322
  return t && t.node && t.node.isBlock;
10323
10323
  }
@@ -10464,10 +10464,10 @@ function Pl(r, t) {
10464
10464
  let h = o.firstChild;
10465
10465
  e.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), o = h.content;
10466
10466
  }
10467
- let s = r.someProp("clipboardSerializer") || no.fromSchema(r.state.schema), a = qu(), l = a.createElement("div");
10467
+ let s = r.someProp("clipboardSerializer") || no.fromSchema(r.state.schema), a = Uu(), l = a.createElement("div");
10468
10468
  l.appendChild(s.serializeFragment(o, { document: a }));
10469
10469
  let d = l.firstChild, c, p = 0;
10470
- for (; d && d.nodeType == 1 && (c = Wu[d.nodeName.toLowerCase()]); ) {
10470
+ for (; d && d.nodeType == 1 && (c = qu[d.nodeName.toLowerCase()]); ) {
10471
10471
  for (let h = c.length - 1; h >= 0; h--) {
10472
10472
  let g = a.createElement(c[h]);
10473
10473
  for (; l.firstChild; )
@@ -10482,7 +10482,7 @@ function Pl(r, t) {
10482
10482
  `);
10483
10483
  return { dom: l, text: m, slice: t };
10484
10484
  }
10485
- function Fu(r, t, e, o, n) {
10485
+ function Hu(r, t, e, o, n) {
10486
10486
  let i = n.parent.type.spec.code, s, a;
10487
10487
  if (!e && !t)
10488
10488
  return null;
@@ -10549,11 +10549,11 @@ function V1(r, t) {
10549
10549
  let l = n.findWrapping(a.type), d;
10550
10550
  if (!l)
10551
10551
  return s = null;
10552
- if (d = s.length && i.length && ju(l, i, a, s[s.length - 1], 0))
10552
+ if (d = s.length && i.length && Vu(l, i, a, s[s.length - 1], 0))
10553
10553
  s[s.length - 1] = d;
10554
10554
  else {
10555
- s.length && (s[s.length - 1] = Vu(s[s.length - 1], i.length));
10556
- let c = Hu(a, l);
10555
+ s.length && (s[s.length - 1] = Wu(s[s.length - 1], i.length));
10556
+ let c = ju(a, l);
10557
10557
  s.push(c), n = n.matchType(c.type), i = l;
10558
10558
  }
10559
10559
  }), s)
@@ -10561,24 +10561,24 @@ function V1(r, t) {
10561
10561
  }
10562
10562
  return r;
10563
10563
  }
10564
- function Hu(r, t, e = 0) {
10564
+ function ju(r, t, e = 0) {
10565
10565
  for (let o = t.length - 1; o >= e; o--)
10566
10566
  r = t[o].create(null, N.from(r));
10567
10567
  return r;
10568
10568
  }
10569
- function ju(r, t, e, o, n) {
10569
+ function Vu(r, t, e, o, n) {
10570
10570
  if (n < r.length && n < t.length && r[n] == t[n]) {
10571
- let i = ju(r, t, e, o.lastChild, n + 1);
10571
+ let i = Vu(r, t, e, o.lastChild, n + 1);
10572
10572
  if (i)
10573
10573
  return o.copy(o.content.replaceChild(o.childCount - 1, i));
10574
10574
  if (o.contentMatchAt(o.childCount).matchType(n == r.length - 1 ? e.type : r[n + 1]))
10575
- return o.copy(o.content.append(N.from(Hu(e, r, n + 1))));
10575
+ return o.copy(o.content.append(N.from(ju(e, r, n + 1))));
10576
10576
  }
10577
10577
  }
10578
- function Vu(r, t) {
10578
+ function Wu(r, t) {
10579
10579
  if (t == 0)
10580
10580
  return r;
10581
- let e = r.content.replaceChild(r.childCount - 1, Vu(r.lastChild, t - 1)), o = r.contentMatchAt(r.childCount).fillBefore(N.empty, !0);
10581
+ let e = r.content.replaceChild(r.childCount - 1, Wu(r.lastChild, t - 1)), o = r.contentMatchAt(r.childCount).fillBefore(N.empty, !0);
10582
10582
  return r.copy(e.append(o));
10583
10583
  }
10584
10584
  function Qa(r, t, e, o, n, i) {
@@ -10588,7 +10588,7 @@ function Qa(r, t, e, o, n, i) {
10588
10588
  function mc(r, t, e) {
10589
10589
  return t < r.openStart && (r = new _(Qa(r.content, -1, t, r.openStart, 0, r.openEnd), t, r.openEnd)), e < r.openEnd && (r = new _(Qa(r.content, 1, e, r.openEnd, 0, 0), r.openStart, e)), r;
10590
10590
  }
10591
- const Wu = {
10591
+ const qu = {
10592
10592
  thead: ["table"],
10593
10593
  tbody: ["table"],
10594
10594
  tfoot: ["table"],
@@ -10600,7 +10600,7 @@ const Wu = {
10600
10600
  th: ["table", "tbody", "tr"]
10601
10601
  };
10602
10602
  let hc = null;
10603
- function qu() {
10603
+ function Uu() {
10604
10604
  return hc || (hc = document.implementation.createHTMLDocument("title"));
10605
10605
  }
10606
10606
  let la = null;
@@ -10611,8 +10611,8 @@ function W1(r) {
10611
10611
  function q1(r) {
10612
10612
  let t = /^(\s*<meta [^>]*>)*/.exec(r);
10613
10613
  t && (r = r.slice(t[0].length));
10614
- let e = qu().createElement("div"), o = /<([a-z][^>\s]+)/i.exec(r), n;
10615
- if ((n = o && Wu[o[1].toLowerCase()]) && (r = n.map((i) => "<" + i + ">").join("") + r + n.map((i) => "</" + i + ">").reverse().join("")), e.innerHTML = W1(r), n)
10614
+ let e = Uu().createElement("div"), o = /<([a-z][^>\s]+)/i.exec(r), n;
10615
+ if ((n = o && qu[o[1].toLowerCase()]) && (r = n.map((i) => "<" + i + ">").join("") + r + n.map((i) => "</" + i + ">").reverse().join("")), e.innerHTML = W1(r), n)
10616
10616
  for (let i = 0; i < n.length; i++)
10617
10617
  e = e.querySelector(n[i]) || e;
10618
10618
  return e;
@@ -10693,7 +10693,7 @@ function Z1(r, t) {
10693
10693
  }
10694
10694
  Jt.keydown = (r, t) => {
10695
10695
  let e = t;
10696
- if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !Ku(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(Qe && jt && e.keyCode == 13)))
10696
+ if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !Gu(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(Qe && jt && e.keyCode == 13)))
10697
10697
  if (e.keyCode != 229 && r.domObserver.forceFlush(), Ao && e.keyCode == 13 && !e.ctrlKey && !e.altKey && !e.metaKey) {
10698
10698
  let o = Date.now();
10699
10699
  r.input.lastIOSEnter = o, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -10706,7 +10706,7 @@ Jt.keyup = (r, t) => {
10706
10706
  };
10707
10707
  Jt.keypress = (r, t) => {
10708
10708
  let e = t;
10709
- if (Ku(r, e) || !e.charCode || e.ctrlKey && !e.altKey || pe && e.metaKey)
10709
+ if (Gu(r, e) || !e.charCode || e.ctrlKey && !e.altKey || pe && e.metaKey)
10710
10710
  return;
10711
10711
  if (r.someProp("handleKeyPress", (n) => n(r, e))) {
10712
10712
  e.preventDefault();
@@ -10791,18 +10791,18 @@ function s0(r, t, e) {
10791
10791
  function Nl(r) {
10792
10792
  return Vi(r);
10793
10793
  }
10794
- const Uu = pe ? "metaKey" : "ctrlKey";
10794
+ const Ku = pe ? "metaKey" : "ctrlKey";
10795
10795
  Gt.mousedown = (r, t) => {
10796
10796
  let e = t;
10797
10797
  r.input.shiftKey = e.shiftKey;
10798
10798
  let o = Nl(r), n = Date.now(), i = "singleClick";
10799
- n - r.input.lastClick.time < 500 && t0(e, r.input.lastClick) && !e[Uu] && r.input.lastClick.button == e.button && (r.input.lastClick.type == "singleClick" ? i = "doubleClick" : r.input.lastClick.type == "doubleClick" && (i = "tripleClick")), r.input.lastClick = { time: n, x: e.clientX, y: e.clientY, type: i, button: e.button };
10799
+ n - r.input.lastClick.time < 500 && t0(e, r.input.lastClick) && !e[Ku] && r.input.lastClick.button == e.button && (r.input.lastClick.type == "singleClick" ? i = "doubleClick" : r.input.lastClick.type == "doubleClick" && (i = "tripleClick")), r.input.lastClick = { time: n, x: e.clientX, y: e.clientY, type: i, button: e.button };
10800
10800
  let s = r.posAtCoords(Rs(e));
10801
10801
  s && (i == "singleClick" ? (r.input.mouseDown && r.input.mouseDown.done(), r.input.mouseDown = new a0(r, s, e, !!o)) : (i == "doubleClick" ? n0 : i0)(r, s.pos, s.inside, e) ? e.preventDefault() : xr(r, "pointer"));
10802
10802
  };
10803
10803
  class a0 {
10804
10804
  constructor(t, e, o, n) {
10805
- this.view = t, this.pos = e, this.event = o, this.flushed = n, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = t.state.doc, this.selectNode = !!o[Uu], this.allowDefault = o.shiftKey;
10805
+ this.view = t, this.pos = e, this.event = o, this.flushed = n, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = t.state.doc, this.selectNode = !!o[Ku], this.allowDefault = o.shiftKey;
10806
10806
  let i, s;
10807
10807
  if (e.inside > -1)
10808
10808
  i = t.state.doc.nodeAt(e.inside), s = e.inside;
@@ -10853,7 +10853,7 @@ Gt.touchmove = (r) => {
10853
10853
  r.input.lastTouch = Date.now(), xr(r, "pointer");
10854
10854
  };
10855
10855
  Gt.contextmenu = (r) => Nl(r);
10856
- function Ku(r, t) {
10856
+ function Gu(r, t) {
10857
10857
  return r.composing ? !0 : Kt && Math.abs(t.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
10858
10858
  }
10859
10859
  const l0 = Qe ? 5e3 : -1;
@@ -10879,15 +10879,15 @@ Jt.compositionstart = Jt.compositionupdate = (r) => {
10879
10879
  }
10880
10880
  r.input.composing = !0;
10881
10881
  }
10882
- Gu(r, l0);
10882
+ Ju(r, l0);
10883
10883
  };
10884
10884
  Jt.compositionend = (r, t) => {
10885
- r.composing && (r.input.composing = !1, r.input.compositionEndedAt = t.timeStamp, r.input.compositionPendingChanges = r.domObserver.pendingRecords().length ? r.input.compositionID : 0, r.input.compositionNode = null, r.input.compositionPendingChanges && Promise.resolve().then(() => r.domObserver.flush()), r.input.compositionID++, Gu(r, 20));
10885
+ r.composing && (r.input.composing = !1, r.input.compositionEndedAt = t.timeStamp, r.input.compositionPendingChanges = r.domObserver.pendingRecords().length ? r.input.compositionID : 0, r.input.compositionNode = null, r.input.compositionPendingChanges && Promise.resolve().then(() => r.domObserver.flush()), r.input.compositionID++, Ju(r, 20));
10886
10886
  };
10887
- function Gu(r, t) {
10887
+ function Ju(r, t) {
10888
10888
  clearTimeout(r.input.composingTimeout), t > -1 && (r.input.composingTimeout = setTimeout(() => Vi(r), t));
10889
10889
  }
10890
- function Ju(r) {
10890
+ function Yu(r) {
10891
10891
  for (r.composing && (r.input.composing = !1, r.input.compositionEndedAt = c0()); r.input.compositionNodes.length > 0; )
10892
10892
  r.input.compositionNodes.pop().markParentsDirty();
10893
10893
  }
@@ -10916,7 +10916,7 @@ function c0() {
10916
10916
  }
10917
10917
  function Vi(r, t = !1) {
10918
10918
  if (!(Qe && r.domObserver.flushingSoon >= 0)) {
10919
- if (r.domObserver.forceFlush(), Ju(r), t || r.docView && r.docView.dirty) {
10919
+ if (r.domObserver.forceFlush(), Yu(r), t || r.docView && r.docView.dirty) {
10920
10920
  let e = Tl(r), o = r.state.selection;
10921
10921
  return e && !e.eq(o) ? r.dispatch(r.state.tr.setSelection(e)) : (r.markCursor || t) && !o.$from.node(o.$from.sharedDepth(o.to)).inlineContent ? r.dispatch(r.state.tr.deleteSelection()) : r.updateState(r.state), !0;
10922
10922
  }
@@ -10955,7 +10955,7 @@ function m0(r, t) {
10955
10955
  }, 50);
10956
10956
  }
10957
10957
  function En(r, t, e, o, n) {
10958
- let i = Fu(r, t, e, o, r.state.selection.$from);
10958
+ let i = Hu(r, t, e, o, r.state.selection.$from);
10959
10959
  if (r.someProp("handlePaste", (l) => l(r, n, i || _.empty)))
10960
10960
  return !0;
10961
10961
  if (!i)
@@ -10963,7 +10963,7 @@ function En(r, t, e, o, n) {
10963
10963
  let s = u0(i), a = s ? r.state.tr.replaceSelectionWith(s, o) : r.state.tr.replaceSelection(i);
10964
10964
  return r.dispatch(a.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
10965
10965
  }
10966
- function Yu(r) {
10966
+ function Qu(r) {
10967
10967
  let t = r.getData("text/plain") || r.getData("Text");
10968
10968
  if (t)
10969
10969
  return t;
@@ -10975,15 +10975,15 @@ Jt.paste = (r, t) => {
10975
10975
  if (r.composing && !Qe)
10976
10976
  return;
10977
10977
  let o = Mn ? null : e.clipboardData, n = r.input.shiftKey && r.input.lastKeyCode != 45;
10978
- o && En(r, Yu(o), o.getData("text/html"), n, e) ? e.preventDefault() : m0(r, e);
10978
+ o && En(r, Qu(o), o.getData("text/html"), n, e) ? e.preventDefault() : m0(r, e);
10979
10979
  };
10980
- class Qu {
10980
+ class Xu {
10981
10981
  constructor(t, e, o) {
10982
10982
  this.slice = t, this.move = e, this.node = o;
10983
10983
  }
10984
10984
  }
10985
10985
  const h0 = pe ? "altKey" : "ctrlKey";
10986
- function Xu(r, t) {
10986
+ function Zu(r, t) {
10987
10987
  let e = r.someProp("dragCopies", (o) => !o(t));
10988
10988
  return e ?? !t[h0];
10989
10989
  }
@@ -11001,7 +11001,7 @@ Gt.dragstart = (r, t) => {
11001
11001
  }
11002
11002
  }
11003
11003
  let a = (s || r.state.selection).content(), { dom: l, text: d, slice: c } = Pl(r, a);
11004
- (!e.dataTransfer.files.length || !jt || Cu > 120) && e.dataTransfer.clearData(), e.dataTransfer.setData(Mn ? "Text" : "text/html", l.innerHTML), e.dataTransfer.effectAllowed = "copyMove", Mn || e.dataTransfer.setData("text/plain", d), r.dragging = new Qu(c, Xu(r, e), s);
11004
+ (!e.dataTransfer.files.length || !jt || Mu > 120) && e.dataTransfer.clearData(), e.dataTransfer.setData(Mn ? "Text" : "text/html", l.innerHTML), e.dataTransfer.effectAllowed = "copyMove", Mn || e.dataTransfer.setData("text/plain", d), r.dragging = new Xu(c, Zu(r, e), s);
11005
11005
  };
11006
11006
  Gt.dragend = (r) => {
11007
11007
  let t = r.dragging;
@@ -11020,8 +11020,8 @@ Jt.drop = (r, t) => {
11020
11020
  let i = r.state.doc.resolve(n.pos), s = o && o.slice;
11021
11021
  s ? r.someProp("transformPasted", (g) => {
11022
11022
  s = g(s, r);
11023
- }) : s = Fu(r, Yu(e.dataTransfer), Mn ? null : e.dataTransfer.getData("text/html"), !1, i);
11024
- let a = !!(o && Xu(r, e));
11023
+ }) : s = Hu(r, Qu(e.dataTransfer), Mn ? null : e.dataTransfer.getData("text/html"), !1, i);
11024
+ let a = !!(o && Zu(r, e));
11025
11025
  if (r.someProp("handleDrop", (g) => g(r, e, s || _.empty, a))) {
11026
11026
  e.preventDefault();
11027
11027
  return;
@@ -11029,7 +11029,7 @@ Jt.drop = (r, t) => {
11029
11029
  if (!s)
11030
11030
  return;
11031
11031
  e.preventDefault();
11032
- let l = s ? gu(r.state.doc, i.pos, s) : i.pos;
11032
+ let l = s ? fu(r.state.doc, i.pos, s) : i.pos;
11033
11033
  l == null && (l = i.pos);
11034
11034
  let d = r.state.tr;
11035
11035
  if (a) {
@@ -11282,13 +11282,13 @@ class Ct {
11282
11282
  let n, i = 0;
11283
11283
  t.forEach((a, l) => {
11284
11284
  let d = l + o, c;
11285
- if (c = tm(e, a, d)) {
11285
+ if (c = em(e, a, d)) {
11286
11286
  for (n || (n = this.children.slice()); i < n.length && n[i] < l; )
11287
11287
  i += 3;
11288
11288
  n[i] == l ? n[i + 2] = n[i + 2].addInner(a, c, d + 1) : n.splice(i, 0, l, l + a.nodeSize, qi(c, a, d + 1, Ur)), i += 3;
11289
11289
  }
11290
11290
  });
11291
- let s = Zu(i ? em(e) : e, -o);
11291
+ let s = tm(i ? rm(e) : e, -o);
11292
11292
  for (let a = 0; a < s.length; a++)
11293
11293
  s[a].type.valid(t, s[a]) || s.splice(a--, 1);
11294
11294
  return new Ct(s.length ? this.local.concat(s).sort(Kr) : this.local, n || this.children);
@@ -11494,7 +11494,7 @@ function g0(r, t, e, o, n, i, s) {
11494
11494
  }
11495
11495
  return new Ct(t.sort(Kr), a);
11496
11496
  }
11497
- function Zu(r, t) {
11497
+ function tm(r, t) {
11498
11498
  if (!t || !r.length)
11499
11499
  return r;
11500
11500
  let e = [];
@@ -11517,7 +11517,7 @@ function f0(r, t, e, o, n, i, s) {
11517
11517
  r[l + 1] == -1 && a(r[l + 2], t[l] + i + 1);
11518
11518
  return e;
11519
11519
  }
11520
- function tm(r, t, e) {
11520
+ function em(r, t, e) {
11521
11521
  if (t.isLeaf)
11522
11522
  return null;
11523
11523
  let o = e + t.nodeSize, n = null;
@@ -11525,7 +11525,7 @@ function tm(r, t, e) {
11525
11525
  (s = r[i]) && s.from > e && s.to < o && ((n || (n = [])).push(s), r[i] = null);
11526
11526
  return n;
11527
11527
  }
11528
- function em(r) {
11528
+ function rm(r) {
11529
11529
  let t = [];
11530
11530
  for (let e = 0; e < r.length; e++)
11531
11531
  r[e] != null && t.push(r[e]);
@@ -11534,14 +11534,14 @@ function em(r) {
11534
11534
  function qi(r, t, e, o) {
11535
11535
  let n = [], i = !1;
11536
11536
  t.forEach((a, l) => {
11537
- let d = tm(r, a, l + e);
11537
+ let d = em(r, a, l + e);
11538
11538
  if (d) {
11539
11539
  i = !0;
11540
11540
  let c = qi(d, a, e + l + 1, o);
11541
11541
  c != zt && n.push(l, l + a.nodeSize, c);
11542
11542
  }
11543
11543
  });
11544
- let s = Zu(i ? em(r) : r, -e).sort(Kr);
11544
+ let s = tm(i ? rm(r) : r, -e).sort(Kr);
11545
11545
  for (let a = 0; a < s.length; a++)
11546
11546
  s[a].type.valid(t, s[a]) || (o.onRemove && o.onRemove(s[a].spec), s.splice(a--, 1));
11547
11547
  return s.length || n.length ? new Ct(s, n) : zt;
@@ -11967,7 +11967,7 @@ function xc(r) {
11967
11967
  let t = r.charCodeAt(0), e = r.charCodeAt(1);
11968
11968
  return t >= 56320 && t <= 57343 && e >= 55296 && e <= 56319;
11969
11969
  }
11970
- class rm {
11970
+ class om {
11971
11971
  /**
11972
11972
  Create a view. `place` may be a DOM node that the editor should
11973
11973
  be appended to, a function that will place it into the document,
@@ -12032,7 +12032,7 @@ class rm {
12032
12032
  updateStateInner(t, e) {
12033
12033
  var o;
12034
12034
  let n = this.state, i = !1, s = !1;
12035
- t.storedMarks && this.composing && (Ju(this), s = !0), this.state = t;
12035
+ t.storedMarks && this.composing && (Yu(this), s = !0), this.state = t;
12036
12036
  let a = n.plugins != t.plugins || this._props.plugins != e.plugins;
12037
12037
  if (a || this._props.plugins != e.plugins || this._props.nodeViews != e.nodeViews) {
12038
12038
  let h = Cc(this);
@@ -12049,7 +12049,7 @@ class rm {
12049
12049
  let g = jt ? this.trackWrites = this.domSelectionRange().focusNode : null;
12050
12050
  this.composing && (this.input.compositionNode = d0(this)), (i || !this.docView.update(t.doc, d, l, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = ec(t.doc, d, l, this.dom, this)), g && !this.trackWrites && (h = !0);
12051
12051
  }
12052
- h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && I1(this)) ? tr(this, h) : ($u(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
12052
+ h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && I1(this)) ? tr(this, h) : (_u(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
12053
12053
  }
12054
12054
  this.updatePluginViews(n), !((o = this.dragging) === null || o === void 0) && o.node && !n.doc.eq(t.doc) && this.updateDraggedNode(this.dragging, n), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : m && p1(m);
12055
12055
  }
@@ -12096,7 +12096,7 @@ class rm {
12096
12096
  let i = o.from + (this.state.doc.content.size - e.doc.content.size);
12097
12097
  (i > 0 && this.state.doc.nodeAt(i)) == o.node && (n = i);
12098
12098
  }
12099
- this.dragging = new Qu(t.slice, t.move, n < 0 ? void 0 : q.create(this.state.doc, n));
12099
+ this.dragging = new Xu(t.slice, t.move, n < 0 ? void 0 : q.create(this.state.doc, n));
12100
12100
  }
12101
12101
  someProp(t, e) {
12102
12102
  let o = this._props && this._props[t], n;
@@ -12183,7 +12183,7 @@ class rm {
12183
12183
  otherwise the element after.
12184
12184
  */
12185
12185
  coordsAtPos(t, e = 1) {
12186
- return Pu(this, t, e);
12186
+ return Bu(this, t, e);
12187
12187
  }
12188
12188
  /**
12189
12189
  Find the DOM position that corresponds to the given document
@@ -12299,7 +12299,7 @@ class rm {
12299
12299
  return this.root.getSelection();
12300
12300
  }
12301
12301
  }
12302
- rm.prototype.dispatch = function(r) {
12302
+ om.prototype.dispatch = function(r) {
12303
12303
  let t = this._props.dispatchTransaction;
12304
12304
  t ? t.call(this, r) : this.updateState(this.state.apply(r));
12305
12305
  };
@@ -12468,9 +12468,9 @@ function ua(r, t, e = !0) {
12468
12468
  return t.altKey && (r = "Alt-" + r), t.ctrlKey && (r = "Ctrl-" + r), t.metaKey && (r = "Meta-" + r), e && t.shiftKey && (r = "Shift-" + r), r;
12469
12469
  }
12470
12470
  function F0(r) {
12471
- return new Mt({ props: { handleKeyDown: om(r) } });
12471
+ return new Mt({ props: { handleKeyDown: nm(r) } });
12472
12472
  }
12473
- function om(r) {
12473
+ function nm(r) {
12474
12474
  let t = z0(r);
12475
12475
  return function(e, o) {
12476
12476
  let n = L0(o), i, s = t[ua(n, o)];
@@ -12493,12 +12493,12 @@ function om(r) {
12493
12493
  };
12494
12494
  }
12495
12495
  const Ll = (r, t) => r.selection.empty ? !1 : (t && t(r.tr.deleteSelection().scrollIntoView()), !0);
12496
- function nm(r, t) {
12496
+ function im(r, t) {
12497
12497
  let { $cursor: e } = r.selection;
12498
12498
  return !e || (t ? !t.endOfTextblock("backward", r) : e.parentOffset > 0) ? null : e;
12499
12499
  }
12500
- const im = (r, t, e) => {
12501
- let o = nm(r, e);
12500
+ const sm = (r, t, e) => {
12501
+ let o = im(r, e);
12502
12502
  if (!o)
12503
12503
  return !1;
12504
12504
  let n = Rl(o);
@@ -12507,7 +12507,7 @@ const im = (r, t, e) => {
12507
12507
  return a == null ? !1 : (t && t(r.tr.lift(s, a).scrollIntoView()), !0);
12508
12508
  }
12509
12509
  let i = n.nodeBefore;
12510
- if (hm(r, n, t, -1))
12510
+ if (gm(r, n, t, -1))
12511
12511
  return !0;
12512
12512
  if (o.parent.content.size == 0 && (No(i, "end") || q.isSelectable(i)))
12513
12513
  for (let s = o.depth; ; s--) {
@@ -12524,19 +12524,19 @@ const im = (r, t, e) => {
12524
12524
  }
12525
12525
  return i.isAtom && n.depth == o.depth - 1 ? (t && t(r.tr.delete(n.pos - i.nodeSize, n.pos).scrollIntoView()), !0) : !1;
12526
12526
  }, H0 = (r, t, e) => {
12527
- let o = nm(r, e);
12527
+ let o = im(r, e);
12528
12528
  if (!o)
12529
12529
  return !1;
12530
12530
  let n = Rl(o);
12531
- return n ? sm(r, n, t) : !1;
12531
+ return n ? am(r, n, t) : !1;
12532
12532
  }, j0 = (r, t, e) => {
12533
- let o = lm(r, e);
12533
+ let o = dm(r, e);
12534
12534
  if (!o)
12535
12535
  return !1;
12536
12536
  let n = $l(o);
12537
- return n ? sm(r, n, t) : !1;
12537
+ return n ? am(r, n, t) : !1;
12538
12538
  };
12539
- function sm(r, t, e) {
12539
+ function am(r, t, e) {
12540
12540
  let o = t.nodeBefore, n = o, i = t.pos - 1;
12541
12541
  for (; !n.isTextblock; i--) {
12542
12542
  if (n.type.spec.isolating)
@@ -12573,7 +12573,7 @@ function No(r, t, e = !1) {
12573
12573
  }
12574
12574
  return !1;
12575
12575
  }
12576
- const am = (r, t, e) => {
12576
+ const lm = (r, t, e) => {
12577
12577
  let { $head: o, empty: n } = r.selection, i = o;
12578
12578
  if (!n)
12579
12579
  return !1;
@@ -12595,19 +12595,19 @@ function Rl(r) {
12595
12595
  }
12596
12596
  return null;
12597
12597
  }
12598
- function lm(r, t) {
12598
+ function dm(r, t) {
12599
12599
  let { $cursor: e } = r.selection;
12600
12600
  return !e || (t ? !t.endOfTextblock("forward", r) : e.parentOffset < e.parent.content.size) ? null : e;
12601
12601
  }
12602
- const dm = (r, t, e) => {
12603
- let o = lm(r, e);
12602
+ const cm = (r, t, e) => {
12603
+ let o = dm(r, e);
12604
12604
  if (!o)
12605
12605
  return !1;
12606
12606
  let n = $l(o);
12607
12607
  if (!n)
12608
12608
  return !1;
12609
12609
  let i = n.nodeAfter;
12610
- if (hm(r, n, t, 1))
12610
+ if (gm(r, n, t, 1))
12611
12611
  return !0;
12612
12612
  if (o.parent.content.size == 0 && (No(i, "start") || q.isSelectable(i))) {
12613
12613
  let s = Ns(r.doc, o.before(), o.after(), _.empty);
@@ -12620,7 +12620,7 @@ const dm = (r, t, e) => {
12620
12620
  }
12621
12621
  }
12622
12622
  return i.isAtom && n.depth == o.depth - 1 ? (t && t(r.tr.delete(n.pos, n.pos + i.nodeSize).scrollIntoView()), !0) : !1;
12623
- }, cm = (r, t, e) => {
12623
+ }, pm = (r, t, e) => {
12624
12624
  let { $head: o, empty: n } = r.selection, i = o;
12625
12625
  if (!n)
12626
12626
  return !1;
@@ -12668,7 +12668,7 @@ const V0 = (r, t) => {
12668
12668
  }, q0 = (r, t) => {
12669
12669
  let { $from: e, $to: o } = r.selection, n = e.blockRange(o), i = n && zo(n);
12670
12670
  return i == null ? !1 : (t && t(r.tr.lift(n, i).scrollIntoView()), !0);
12671
- }, pm = (r, t) => {
12671
+ }, um = (r, t) => {
12672
12672
  let { $head: e, $anchor: o } = r.selection;
12673
12673
  return !e.parent.type.spec.code || !e.sameParent(o) ? !1 : (t && t(r.tr.insertText(`
12674
12674
  `).scrollIntoView()), !0);
@@ -12693,7 +12693,7 @@ const U0 = (r, t) => {
12693
12693
  l.setSelection(Q.near(l.doc.resolve(a), 1)), t(l.scrollIntoView());
12694
12694
  }
12695
12695
  return !0;
12696
- }, um = (r, t) => {
12696
+ }, mm = (r, t) => {
12697
12697
  let e = r.selection, { $from: o, $to: n } = e;
12698
12698
  if (e instanceof ie || o.parent.inlineContent || n.parent.inlineContent)
12699
12699
  return !1;
@@ -12705,7 +12705,7 @@ const U0 = (r, t) => {
12705
12705
  a.setSelection(J.create(a.doc, s + 1)), t(a.scrollIntoView());
12706
12706
  }
12707
12707
  return !0;
12708
- }, mm = (r, t) => {
12708
+ }, hm = (r, t) => {
12709
12709
  let { $cursor: e } = r.selection;
12710
12710
  if (!e || e.parent.content.size)
12711
12711
  return !1;
@@ -12754,7 +12754,7 @@ function Y0(r, t, e) {
12754
12754
  let o = t.nodeBefore, n = t.nodeAfter, i = t.index();
12755
12755
  return !o || !n || !o.type.compatibleContent(n.type) ? !1 : !o.content.size && t.parent.canReplace(i - 1, i) ? (e && e(r.tr.delete(t.pos - o.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(i, i + 1) || !(n.isTextblock || Tr(r.doc, t.pos)) ? !1 : (e && e(r.tr.join(t.pos).scrollIntoView()), !0);
12756
12756
  }
12757
- function hm(r, t, e, o) {
12757
+ function gm(r, t, e, o) {
12758
12758
  let n = t.nodeBefore, i = t.nodeAfter, s, a, l = n.type.spec.isolating || i.type.spec.isolating;
12759
12759
  if (!l && Y0(r, t, e))
12760
12760
  return !0;
@@ -12793,7 +12793,7 @@ function hm(r, t, e, o) {
12793
12793
  }
12794
12794
  return !1;
12795
12795
  }
12796
- function gm(r) {
12796
+ function fm(r) {
12797
12797
  return function(t, e) {
12798
12798
  let o = t.selection, n = r < 0 ? o.$from : o.$to, i = n.depth;
12799
12799
  for (; n.node(i).isInline; ) {
@@ -12804,7 +12804,7 @@ function gm(r) {
12804
12804
  return n.node(i).isTextblock ? (e && e(t.tr.setSelection(J.create(t.doc, r < 0 ? n.start(i) : n.end(i)))), !0) : !1;
12805
12805
  };
12806
12806
  }
12807
- const Q0 = gm(-1), X0 = gm(1);
12807
+ const Q0 = fm(-1), X0 = fm(1);
12808
12808
  function Z0(r, t = null) {
12809
12809
  return function(e, o) {
12810
12810
  let { $from: n, $to: i } = e.selection, s = n.blockRange(i), a = s && Cl(s, r, t);
@@ -12849,9 +12849,9 @@ function zl(...r) {
12849
12849
  return !1;
12850
12850
  };
12851
12851
  }
12852
- zl(Ll, im, am);
12853
- zl(Ll, dm, cm);
12854
- zl(pm, um, mm, G0);
12852
+ zl(Ll, sm, lm);
12853
+ zl(Ll, cm, pm);
12854
+ zl(um, mm, hm, G0);
12855
12855
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
12856
12856
  function tb(r, t = null) {
12857
12857
  return function(e, o) {
@@ -13057,7 +13057,7 @@ function zs(r) {
13057
13057
  markExtensions: o
13058
13058
  };
13059
13059
  }
13060
- function fm(r) {
13060
+ function bm(r) {
13061
13061
  const t = [], { nodeExtensions: e, markExtensions: o } = zs(r), n = [...e, ...o], i = {
13062
13062
  default: null,
13063
13063
  rendered: !0,
@@ -13149,11 +13149,11 @@ function Za(r, t) {
13149
13149
  [e.name]: r.attrs[e.name]
13150
13150
  }).reduce((e, o) => $t(e, o), {});
13151
13151
  }
13152
- function bm(r) {
13152
+ function ym(r) {
13153
13153
  return typeof r == "function";
13154
13154
  }
13155
13155
  function Z(r, t = void 0, ...e) {
13156
- return bm(r) ? t ? r.bind(t)(...e) : r(...e) : r;
13156
+ return ym(r) ? t ? r.bind(t)(...e) : r(...e) : r;
13157
13157
  }
13158
13158
  function lb(r = {}) {
13159
13159
  return Object.keys(r).length === 0 && r.constructor === Object;
@@ -13187,7 +13187,7 @@ function Oc(r) {
13187
13187
  }
13188
13188
  function cb(r, t) {
13189
13189
  var e;
13190
- const o = fm(r), { nodeExtensions: n, markExtensions: i } = zs(r), s = (e = n.find((d) => H(d, "topNode"))) === null || e === void 0 ? void 0 : e.name, a = Object.fromEntries(n.map((d) => {
13190
+ const o = bm(r), { nodeExtensions: n, markExtensions: i } = zs(r), s = (e = n.find((d) => H(d, "topNode"))) === null || e === void 0 ? void 0 : e.name, a = Object.fromEntries(n.map((d) => {
13191
13191
  const c = o.filter((w) => w.type === d.name), p = {
13192
13192
  name: d.name,
13193
13193
  options: d.options,
@@ -13257,7 +13257,7 @@ function cb(r, t) {
13257
13257
  HTMLAttributes: Za(b, c)
13258
13258
  })), [d.name, h];
13259
13259
  }));
13260
- return new nu({
13260
+ return new iu({
13261
13261
  topNode: s,
13262
13262
  nodes: a,
13263
13263
  marks: l
@@ -13735,7 +13735,7 @@ class Co {
13735
13735
  * @returns An array of attributes
13736
13736
  */
13737
13737
  get attributes() {
13738
- return fm(this.extensions);
13738
+ return bm(this.extensions);
13739
13739
  }
13740
13740
  /**
13741
13741
  * Get all node views from the extensions.
@@ -13827,7 +13827,7 @@ class _t {
13827
13827
  })), e;
13828
13828
  }
13829
13829
  }
13830
- function ym(r, t, e) {
13830
+ function wm(r, t, e) {
13831
13831
  const { from: o, to: n } = t, { blockSeparator: i = `
13832
13832
 
13833
13833
  `, textSerializers: s = {} } = e || {};
@@ -13864,7 +13864,7 @@ const kb = _t.create({
13864
13864
  props: {
13865
13865
  clipboardTextSerializer: () => {
13866
13866
  const { editor: r } = this, { state: t, schema: e } = r, { doc: o, selection: n } = t, { ranges: i } = n, s = Math.min(...i.map((c) => c.$from.pos)), a = Math.max(...i.map((c) => c.$to.pos)), l = jl(e);
13867
- return ym(o, { from: s, to: a }, {
13867
+ return wm(o, { from: s, to: a }, {
13868
13868
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
13869
13869
  textSerializers: l
13870
13870
  });
@@ -13893,7 +13893,7 @@ const kb = _t.create({
13893
13893
  (g || g === 0) && t.lift(h, g);
13894
13894
  });
13895
13895
  }), !0;
13896
- }, Eb = (r) => (t) => r(t), Tb = () => ({ state: r, dispatch: t }) => um(r, t), Ob = (r, t) => ({ editor: e, tr: o }) => {
13896
+ }, Eb = (r) => (t) => r(t), Tb = () => ({ state: r, dispatch: t }) => mm(r, t), Ob = (r, t) => ({ editor: e, tr: o }) => {
13897
13897
  const { state: n } = e, i = n.doc.slice(r.from, r.to);
13898
13898
  o.deleteRange(r.from, r.to);
13899
13899
  const s = o.mapping.map(t);
@@ -13931,7 +13931,7 @@ function Ki(r, t, e = { strict: !0 }) {
13931
13931
  const o = Object.keys(t);
13932
13932
  return o.length ? o.every((n) => e.strict ? t[n] === r[n] : Hl(t[n]) ? t[n].test(r[n]) : t[n] === r[n]) : !0;
13933
13933
  }
13934
- function wm(r, t, e = {}) {
13934
+ function xm(r, t, e = {}) {
13935
13935
  return r.find((o) => o.type === t && Ki(
13936
13936
  // Only check equality for the attributes that are provided
13937
13937
  Object.fromEntries(Object.keys(e).map((n) => [n, o.attrs[n]])),
@@ -13939,14 +13939,14 @@ function wm(r, t, e = {}) {
13939
13939
  ));
13940
13940
  }
13941
13941
  function Bc(r, t, e = {}) {
13942
- return !!wm(r, t, e);
13942
+ return !!xm(r, t, e);
13943
13943
  }
13944
13944
  function Vl(r, t, e) {
13945
13945
  var o;
13946
13946
  if (!r || !t)
13947
13947
  return;
13948
13948
  let n = r.parent.childAfter(r.parentOffset);
13949
- if ((!n.node || !n.node.marks.some((c) => c.type === t)) && (n = r.parent.childBefore(r.parentOffset)), !n.node || !n.node.marks.some((c) => c.type === t) || (e = e || ((o = n.node.marks[0]) === null || o === void 0 ? void 0 : o.attrs), !wm([...n.node.marks], t, e)))
13949
+ if ((!n.node || !n.node.marks.some((c) => c.type === t)) && (n = r.parent.childBefore(r.parentOffset)), !n.node || !n.node.marks.some((c) => c.type === t) || (e = e || ((o = n.node.marks[0]) === null || o === void 0 ? void 0 : o.attrs), !xm([...n.node.marks], t, e)))
13950
13950
  return;
13951
13951
  let s = n.index, a = r.start() + n.offset, l = s + 1, d = a + n.node.nodeSize;
13952
13952
  for (; s > 0 && Bc([...r.parent.child(s - 1).marks], t, e); )
@@ -13989,7 +13989,7 @@ function Wl(r) {
13989
13989
  function Xe(r = 0, t = 0, e = 0) {
13990
13990
  return Math.min(Math.max(r, t), e);
13991
13991
  }
13992
- function xm(r, t = null) {
13992
+ function vm(r, t = null) {
13993
13993
  if (!t)
13994
13994
  return null;
13995
13995
  const e = Q.atStart(r), o = Q.atEnd(r);
@@ -14027,19 +14027,19 @@ const _b = (r = null, t = {}) => ({ editor: e, view: o, tr: n, dispatch: i }) =>
14027
14027
  return !0;
14028
14028
  if (i && r === null && !Wl(e.state.selection))
14029
14029
  return s(), !0;
14030
- const a = xm(n.doc, r) || e.state.selection, l = e.state.selection.eq(a);
14030
+ const a = vm(n.doc, r) || e.state.selection, l = e.state.selection.eq(a);
14031
14031
  return i && (l || n.setSelection(a), l && n.storedMarks && n.setStoredMarks(n.storedMarks), s()), !0;
14032
- }, zb = (r, t) => (e) => r.every((o, n) => t(o, { ...e, index: n })), Fb = (r, t) => ({ tr: e, commands: o }) => o.insertContentAt({ from: e.selection.from, to: e.selection.to }, r, t), vm = (r) => {
14032
+ }, zb = (r, t) => (e) => r.every((o, n) => t(o, { ...e, index: n })), Fb = (r, t) => ({ tr: e, commands: o }) => o.insertContentAt({ from: e.selection.from, to: e.selection.to }, r, t), km = (r) => {
14033
14033
  const t = r.childNodes;
14034
14034
  for (let e = t.length - 1; e >= 0; e -= 1) {
14035
14035
  const o = t[e];
14036
- o.nodeType === 3 && o.nodeValue && /^(\n\s\s|\n)$/.test(o.nodeValue) ? r.removeChild(o) : o.nodeType === 1 && vm(o);
14036
+ o.nodeType === 3 && o.nodeValue && /^(\n\s\s|\n)$/.test(o.nodeValue) ? r.removeChild(o) : o.nodeType === 1 && km(o);
14037
14037
  }
14038
14038
  return r;
14039
14039
  };
14040
14040
  function gi(r) {
14041
14041
  const t = `<body>${r}</body>`, e = new window.DOMParser().parseFromString(t, "text/html").body;
14042
- return vm(e);
14042
+ return km(e);
14043
14043
  }
14044
14044
  function On(r, t, e) {
14045
14045
  if (r instanceof vr || r instanceof N)
@@ -14064,7 +14064,7 @@ function On(r, t, e) {
14064
14064
  if (n) {
14065
14065
  if (e.errorOnInvalidContent) {
14066
14066
  let s = !1, a = "";
14067
- const l = new nu({
14067
+ const l = new iu({
14068
14068
  topNode: t.spec.topNode,
14069
14069
  marks: t.spec.marks,
14070
14070
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -14166,7 +14166,7 @@ const jb = (r) => !("type" in r), Vb = (r, t, e) => ({ tr: o, dispatch: n, edito
14166
14166
  e.updateSelection && Hb(o, o.steps.length - 1, -1), e.applyInputRules && o.setMeta("applyInputRules", { from: c, text: f }), e.applyPasteRules && o.setMeta("applyPasteRules", { from: c, text: f });
14167
14167
  }
14168
14168
  return !0;
14169
- }, Wb = () => ({ state: r, dispatch: t }) => V0(r, t), qb = () => ({ state: r, dispatch: t }) => W0(r, t), Ub = () => ({ state: r, dispatch: t }) => im(r, t), Kb = () => ({ state: r, dispatch: t }) => dm(r, t), Gb = () => ({ state: r, dispatch: t, tr: e }) => {
14169
+ }, Wb = () => ({ state: r, dispatch: t }) => V0(r, t), qb = () => ({ state: r, dispatch: t }) => W0(r, t), Ub = () => ({ state: r, dispatch: t }) => sm(r, t), Kb = () => ({ state: r, dispatch: t }) => cm(r, t), Gb = () => ({ state: r, dispatch: t, tr: e }) => {
14170
14170
  try {
14171
14171
  const o = As(r.doc, r.selection.$from.pos, -1);
14172
14172
  return o == null ? !1 : (e.join(o, 2), t && t(e), !0);
@@ -14181,7 +14181,7 @@ const jb = (r) => !("type" in r), Vb = (r, t, e) => ({ tr: o, dispatch: n, edito
14181
14181
  return !1;
14182
14182
  }
14183
14183
  }, Yb = () => ({ state: r, dispatch: t }) => H0(r, t), Qb = () => ({ state: r, dispatch: t }) => j0(r, t);
14184
- function km() {
14184
+ function Sm() {
14185
14185
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
14186
14186
  }
14187
14187
  function Xb(r) {
@@ -14200,7 +14200,7 @@ function Xb(r) {
14200
14200
  else if (/^s(hift)?$/i.test(l))
14201
14201
  i = !0;
14202
14202
  else if (/^mod$/i.test(l))
14203
- ql() || km() ? s = !0 : n = !0;
14203
+ ql() || Sm() ? s = !0 : n = !0;
14204
14204
  else
14205
14205
  throw new Error(`Unrecognized modifier name: ${l}`);
14206
14206
  }
@@ -14241,10 +14241,10 @@ function Pn(r, t, e = {}) {
14241
14241
  const ty = (r, t = {}) => ({ state: e, dispatch: o }) => {
14242
14242
  const n = At(r, e.schema);
14243
14243
  return Pn(e, n, t) ? q0(e, o) : !1;
14244
- }, ey = () => ({ state: r, dispatch: t }) => mm(r, t), ry = (r) => ({ state: t, dispatch: e }) => {
14244
+ }, ey = () => ({ state: r, dispatch: t }) => hm(r, t), ry = (r) => ({ state: t, dispatch: e }) => {
14245
14245
  const o = At(r, t.schema);
14246
14246
  return ob(o)(t, e);
14247
- }, oy = () => ({ state: r, dispatch: t }) => pm(r, t);
14247
+ }, oy = () => ({ state: r, dispatch: t }) => um(r, t);
14248
14248
  function js(r, t) {
14249
14249
  return t.nodes[r] ? "node" : t.marks[r] ? "mark" : null;
14250
14250
  }
@@ -14268,7 +14268,7 @@ const ny = (r, t) => ({ tr: e, state: o, dispatch: n }) => {
14268
14268
  r.setSelection(e);
14269
14269
  }
14270
14270
  return !0;
14271
- }, ay = () => ({ state: r, dispatch: t }) => am(r, t), ly = () => ({ state: r, dispatch: t }) => cm(r, t), dy = () => ({ state: r, dispatch: t }) => J0(r, t), cy = () => ({ state: r, dispatch: t }) => X0(r, t), py = () => ({ state: r, dispatch: t }) => Q0(r, t);
14271
+ }, ay = () => ({ state: r, dispatch: t }) => lm(r, t), ly = () => ({ state: r, dispatch: t }) => pm(r, t), dy = () => ({ state: r, dispatch: t }) => J0(r, t), cy = () => ({ state: r, dispatch: t }) => X0(r, t), py = () => ({ state: r, dispatch: t }) => Q0(r, t);
14272
14272
  function tl(r, t, e = {}, o = {}) {
14273
14273
  return On(r, t, {
14274
14274
  slice: !1,
@@ -14290,7 +14290,7 @@ const uy = (r, t = !1, e = {}, o = {}) => ({ editor: n, tr: i, dispatch: s, comm
14290
14290
  errorOnInvalidContent: (d = o.errorOnInvalidContent) !== null && d !== void 0 ? d : n.options.enableContentCheck
14291
14291
  });
14292
14292
  };
14293
- function Sm(r, t) {
14293
+ function Cm(r, t) {
14294
14294
  const e = Pr(t, r.schema), { from: o, to: n, empty: i } = r.selection, s = [];
14295
14295
  i ? (r.storedMarks && s.push(...r.storedMarks), s.push(...r.selection.$head.marks())) : r.doc.nodesBetween(o, n, (l) => {
14296
14296
  s.push(...l.marks);
@@ -14299,7 +14299,7 @@ function Sm(r, t) {
14299
14299
  return a ? { ...a.attrs } : {};
14300
14300
  }
14301
14301
  function my(r, t) {
14302
- const e = new xu(r);
14302
+ const e = new vu(r);
14303
14303
  return t.forEach((o) => {
14304
14304
  o.steps.forEach((n) => {
14305
14305
  e.step(n);
@@ -14338,12 +14338,12 @@ function fy(r, t) {
14338
14338
  function Ul(r) {
14339
14339
  return (t) => fy(t.$from, r);
14340
14340
  }
14341
- function Cm(r, t) {
14341
+ function Mm(r, t) {
14342
14342
  const e = {
14343
14343
  from: 0,
14344
14344
  to: r.content.size
14345
14345
  };
14346
- return ym(r, e, t);
14346
+ return wm(r, e, t);
14347
14347
  }
14348
14348
  function by(r, t) {
14349
14349
  const e = At(t, r.schema), { from: o, to: n } = r.selection, i = [];
@@ -14353,9 +14353,9 @@ function by(r, t) {
14353
14353
  const s = i.reverse().find((a) => a.type.name === e.name);
14354
14354
  return s ? { ...s.attrs } : {};
14355
14355
  }
14356
- function Mm(r, t) {
14356
+ function Em(r, t) {
14357
14357
  const e = js(typeof t == "string" ? t : t.name, r.schema);
14358
- return e === "node" ? by(r, t) : e === "mark" ? Sm(r, t) : {};
14358
+ return e === "node" ? by(r, t) : e === "mark" ? Cm(r, t) : {};
14359
14359
  }
14360
14360
  function yy(r, t = JSON.stringify) {
14361
14361
  const e = {};
@@ -14481,10 +14481,10 @@ function Gl(r, { checkChildren: t = !0, ignoreWhitespace: e = !1 } = {}) {
14481
14481
  }
14482
14482
  return !1;
14483
14483
  }
14484
- function Em(r) {
14484
+ function Tm(r) {
14485
14485
  return r instanceof q;
14486
14486
  }
14487
- function Tm(r, t, e) {
14487
+ function Om(r, t, e) {
14488
14488
  const n = r.state.doc.content.size, i = Xe(t, 0, n), s = Xe(e, 0, n), a = r.coordsAtPos(i), l = r.coordsAtPos(s, -1), d = Math.min(a.top, l.top), c = Math.max(a.bottom, l.bottom), p = Math.min(a.left, l.left), m = Math.max(a.right, l.right), h = m - p, g = c - d, w = {
14489
14489
  top: d,
14490
14490
  bottom: c,
@@ -14526,7 +14526,7 @@ const Sy = (r, t = {}) => ({ tr: e, state: o, dispatch: n }) => {
14526
14526
  const { selection: i } = e, { empty: s, ranges: a } = i, l = Pr(r, o.schema);
14527
14527
  if (n)
14528
14528
  if (s) {
14529
- const d = Sm(o, l);
14529
+ const d = Cm(o, l);
14530
14530
  e.addStoredMark(l.create({
14531
14531
  ...d,
14532
14532
  ...t
@@ -14941,7 +14941,7 @@ const jy = _t.create({
14941
14941
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
14942
14942
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
14943
14943
  };
14944
- return ql() || km() ? i : n;
14944
+ return ql() || Sm() ? i : n;
14945
14945
  },
14946
14946
  addProseMirrorPlugins() {
14947
14947
  return [
@@ -15312,7 +15312,7 @@ let Xy = class extends ab {
15312
15312
  * @returns The new editor state
15313
15313
  */
15314
15314
  registerPlugin(t, e) {
15315
- const o = bm(e) ? e(t, [...this.state.plugins]) : [...this.state.plugins, t], n = this.state.reconfigure({ plugins: o });
15315
+ const o = ym(e) ? e(t, [...this.state.plugins]) : [...this.state.plugins, t], n = this.state.reconfigure({ plugins: o });
15316
15316
  return this.view.updateState(n), n;
15317
15317
  }
15318
15318
  /**
@@ -15388,8 +15388,8 @@ let Xy = class extends ab {
15388
15388
  }
15389
15389
  }), e = tl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
15390
15390
  }
15391
- const o = xm(e, this.options.autofocus);
15392
- this.view = new rm(this.options.element, {
15391
+ const o = vm(e, this.options.autofocus);
15392
+ this.view = new om(this.options.element, {
15393
15393
  ...this.options.editorProps,
15394
15394
  attributes: {
15395
15395
  // add `role="textbox"` to the editor element
@@ -15477,7 +15477,7 @@ let Xy = class extends ab {
15477
15477
  * Get attributes of the currently selected node or mark.
15478
15478
  */
15479
15479
  getAttributes(t) {
15480
- return Mm(this.state, t);
15480
+ return Em(this.state, t);
15481
15481
  }
15482
15482
  isActive(t, e) {
15483
15483
  const o = typeof t == "string" ? t : null, n = typeof t == "string" ? e : t;
@@ -15502,7 +15502,7 @@ let Xy = class extends ab {
15502
15502
  const { blockSeparator: e = `
15503
15503
 
15504
15504
  `, textSerializers: o = {} } = t || {};
15505
- return Cm(this.state.doc, {
15505
+ return Mm(this.state.doc, {
15506
15506
  blockSeparator: e,
15507
15507
  textSerializers: {
15508
15508
  ...jl(this.schema),
@@ -15684,9 +15684,9 @@ function ro(r) {
15684
15684
  }
15685
15685
  });
15686
15686
  }
15687
- var te = "top", fe = "bottom", be = "right", ee = "left", Jl = "auto", jn = [te, fe, be, ee], Io = "start", An = "end", tw = "clippingParents", Om = "viewport", Yo = "popper", ew = "reference", Ic = /* @__PURE__ */ jn.reduce(function(r, t) {
15687
+ var te = "top", fe = "bottom", be = "right", ee = "left", Jl = "auto", jn = [te, fe, be, ee], Io = "start", An = "end", tw = "clippingParents", Pm = "viewport", Yo = "popper", ew = "reference", Ic = /* @__PURE__ */ jn.reduce(function(r, t) {
15688
15688
  return r.concat([t + "-" + Io, t + "-" + An]);
15689
- }, []), Pm = /* @__PURE__ */ [].concat(jn, [Jl]).reduce(function(r, t) {
15689
+ }, []), Bm = /* @__PURE__ */ [].concat(jn, [Jl]).reduce(function(r, t) {
15690
15690
  return r.concat([t, t + "-" + Io, t + "-" + An]);
15691
15691
  }, []), rw = "beforeRead", ow = "read", nw = "afterRead", iw = "beforeMain", sw = "main", aw = "afterMain", lw = "beforeWrite", dw = "write", cw = "afterWrite", pw = [rw, ow, nw, iw, sw, aw, lw, dw, cw];
15692
15692
  function _e(r) {
@@ -15749,7 +15749,7 @@ function mw(r) {
15749
15749
  });
15750
15750
  };
15751
15751
  }
15752
- const Bm = {
15752
+ const Am = {
15753
15753
  name: "applyStyles",
15754
15754
  enabled: !0,
15755
15755
  phase: "write",
@@ -15767,14 +15767,14 @@ function nl() {
15767
15767
  return t.brand + "/" + t.version;
15768
15768
  }).join(" ") : navigator.userAgent;
15769
15769
  }
15770
- function Am() {
15770
+ function Nm() {
15771
15771
  return !/^((?!chrome|android).)*safari/i.test(nl());
15772
15772
  }
15773
15773
  function Ro(r, t, e) {
15774
15774
  t === void 0 && (t = !1), e === void 0 && (e = !1);
15775
15775
  var o = r.getBoundingClientRect(), n = 1, i = 1;
15776
15776
  t && ge(r) && (n = r.offsetWidth > 0 && Lo(o.width) / r.offsetWidth || 1, i = r.offsetHeight > 0 && Lo(o.height) / r.offsetHeight || 1);
15777
- var s = oo(r) ? se(r) : window, a = s.visualViewport, l = !Am() && e, d = (o.left + (l && a ? a.offsetLeft : 0)) / n, c = (o.top + (l && a ? a.offsetTop : 0)) / i, p = o.width / n, m = o.height / i;
15777
+ var s = oo(r) ? se(r) : window, a = s.visualViewport, l = !Nm() && e, d = (o.left + (l && a ? a.offsetLeft : 0)) / n, c = (o.top + (l && a ? a.offsetTop : 0)) / i, p = o.width / n, m = o.height / i;
15778
15778
  return {
15779
15779
  width: p,
15780
15780
  height: m,
@@ -15795,7 +15795,7 @@ function Ql(r) {
15795
15795
  height: o
15796
15796
  };
15797
15797
  }
15798
- function Nm(r, t) {
15798
+ function Dm(r, t) {
15799
15799
  var e = t.getRootNode && t.getRootNode();
15800
15800
  if (r.contains(t))
15801
15801
  return !0;
@@ -15868,7 +15868,7 @@ function fw(r, t, e) {
15868
15868
  var o = dn(r, t, e);
15869
15869
  return o > e ? e : o;
15870
15870
  }
15871
- function Dm() {
15871
+ function Im() {
15872
15872
  return {
15873
15873
  top: 0,
15874
15874
  right: 0,
@@ -15876,10 +15876,10 @@ function Dm() {
15876
15876
  left: 0
15877
15877
  };
15878
15878
  }
15879
- function Im(r) {
15880
- return Object.assign({}, Dm(), r);
15879
+ function Lm(r) {
15880
+ return Object.assign({}, Im(), r);
15881
15881
  }
15882
- function Lm(r, t) {
15882
+ function Rm(r, t) {
15883
15883
  return t.reduce(function(e, o) {
15884
15884
  return e[o] = r, e;
15885
15885
  }, {});
@@ -15887,7 +15887,7 @@ function Lm(r, t) {
15887
15887
  var bw = function(t, e) {
15888
15888
  return t = typeof t == "function" ? t(Object.assign({}, e.rects, {
15889
15889
  placement: e.placement
15890
- })) : t, Im(typeof t != "number" ? t : Lm(t, jn));
15890
+ })) : t, Lm(typeof t != "number" ? t : Rm(t, jn));
15891
15891
  };
15892
15892
  function yw(r) {
15893
15893
  var t, e = r.state, o = r.name, n = r.options, i = e.elements.arrow, s = e.modifiersData.popperOffsets, a = Le(e.placement), l = Xl(a), d = [ee, be].indexOf(a) >= 0, c = d ? "height" : "width";
@@ -15898,7 +15898,7 @@ function yw(r) {
15898
15898
  }
15899
15899
  function ww(r) {
15900
15900
  var t = r.state, e = r.options, o = e.element, n = o === void 0 ? "[data-popper-arrow]" : o;
15901
- n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || Nm(t.elements.popper, n) && (t.elements.arrow = n));
15901
+ n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || Dm(t.elements.popper, n) && (t.elements.arrow = n));
15902
15902
  }
15903
15903
  const xw = {
15904
15904
  name: "arrow",
@@ -16055,7 +16055,7 @@ function Pw(r, t) {
16055
16055
  var e = se(r), o = Br(r), n = e.visualViewport, i = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
16056
16056
  if (n) {
16057
16057
  i = n.width, s = n.height;
16058
- var d = Am();
16058
+ var d = Nm();
16059
16059
  (d || !d && t === "fixed") && (a = n.offsetLeft, l = n.offsetTop);
16060
16060
  }
16061
16061
  return {
@@ -16078,13 +16078,13 @@ function ed(r) {
16078
16078
  var t = or(r), e = t.overflow, o = t.overflowX, n = t.overflowY;
16079
16079
  return /auto|scroll|overlay|hidden/.test(e + n + o);
16080
16080
  }
16081
- function Rm(r) {
16082
- return ["html", "body", "#document"].indexOf(_e(r)) >= 0 ? r.ownerDocument.body : ge(r) && ed(r) ? r : Rm(Vs(r));
16081
+ function $m(r) {
16082
+ return ["html", "body", "#document"].indexOf(_e(r)) >= 0 ? r.ownerDocument.body : ge(r) && ed(r) ? r : $m(Vs(r));
16083
16083
  }
16084
16084
  function cn(r, t) {
16085
16085
  var e;
16086
16086
  t === void 0 && (t = []);
16087
- var o = Rm(r), n = o === ((e = r.ownerDocument) == null ? void 0 : e.body), i = se(o), s = n ? [i].concat(i.visualViewport || [], ed(o) ? o : []) : o, a = t.concat(s);
16087
+ var o = $m(r), n = o === ((e = r.ownerDocument) == null ? void 0 : e.body), i = se(o), s = n ? [i].concat(i.visualViewport || [], ed(o) ? o : []) : o, a = t.concat(s);
16088
16088
  return n ? a : (
16089
16089
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
16090
16090
  a.concat(cn(Vs(s)))
@@ -16103,12 +16103,12 @@ function Aw(r, t) {
16103
16103
  return e.top = e.top + r.clientTop, e.left = e.left + r.clientLeft, e.bottom = e.top + r.clientHeight, e.right = e.left + r.clientWidth, e.width = r.clientWidth, e.height = r.clientHeight, e.x = e.left, e.y = e.top, e;
16104
16104
  }
16105
16105
  function _c(r, t, e) {
16106
- return t === Om ? il(Pw(r, e)) : oo(t) ? Aw(t, e) : il(Bw(Br(r)));
16106
+ return t === Pm ? il(Pw(r, e)) : oo(t) ? Aw(t, e) : il(Bw(Br(r)));
16107
16107
  }
16108
16108
  function Nw(r) {
16109
16109
  var t = cn(Vs(r)), e = ["absolute", "fixed"].indexOf(or(r).position) >= 0, o = e && ge(r) ? Vn(r) : r;
16110
16110
  return oo(o) ? t.filter(function(n) {
16111
- return oo(n) && Nm(n, o) && _e(n) !== "body";
16111
+ return oo(n) && Dm(n, o) && _e(n) !== "body";
16112
16112
  }) : [];
16113
16113
  }
16114
16114
  function Dw(r, t, e, o) {
@@ -16118,7 +16118,7 @@ function Dw(r, t, e, o) {
16118
16118
  }, _c(r, s, o));
16119
16119
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
16120
16120
  }
16121
- function $m(r) {
16121
+ function _m(r) {
16122
16122
  var t = r.reference, e = r.element, o = r.placement, n = o ? Le(o) : null, i = o ? $o(o) : null, s = t.x + t.width / 2 - e.width / 2, a = t.y + t.height / 2 - e.height / 2, l;
16123
16123
  switch (n) {
16124
16124
  case te:
@@ -16167,7 +16167,7 @@ function $m(r) {
16167
16167
  }
16168
16168
  function Nn(r, t) {
16169
16169
  t === void 0 && (t = {});
16170
- var e = t, o = e.placement, n = o === void 0 ? r.placement : o, i = e.strategy, s = i === void 0 ? r.strategy : i, a = e.boundary, l = a === void 0 ? tw : a, d = e.rootBoundary, c = d === void 0 ? Om : d, p = e.elementContext, m = p === void 0 ? Yo : p, h = e.altBoundary, g = h === void 0 ? !1 : h, f = e.padding, b = f === void 0 ? 0 : f, w = Im(typeof b != "number" ? b : Lm(b, jn)), E = m === Yo ? ew : Yo, S = r.rects.popper, y = r.elements[g ? E : m], T = Dw(oo(y) ? y : y.contextElement || Br(r.elements.popper), l, c, s), M = Ro(r.elements.reference), B = $m({
16170
+ var e = t, o = e.placement, n = o === void 0 ? r.placement : o, i = e.strategy, s = i === void 0 ? r.strategy : i, a = e.boundary, l = a === void 0 ? tw : a, d = e.rootBoundary, c = d === void 0 ? Pm : d, p = e.elementContext, m = p === void 0 ? Yo : p, h = e.altBoundary, g = h === void 0 ? !1 : h, f = e.padding, b = f === void 0 ? 0 : f, w = Lm(typeof b != "number" ? b : Rm(b, jn)), E = m === Yo ? ew : Yo, S = r.rects.popper, y = r.elements[g ? E : m], T = Dw(oo(y) ? y : y.contextElement || Br(r.elements.popper), l, c, s), M = Ro(r.elements.reference), B = _m({
16171
16171
  reference: M,
16172
16172
  element: S,
16173
16173
  placement: n
@@ -16188,7 +16188,7 @@ function Nn(r, t) {
16188
16188
  }
16189
16189
  function Iw(r, t) {
16190
16190
  t === void 0 && (t = {});
16191
- var e = t, o = e.placement, n = e.boundary, i = e.rootBoundary, s = e.padding, a = e.flipVariations, l = e.allowedAutoPlacements, d = l === void 0 ? Pm : l, c = $o(o), p = c ? a ? Ic : Ic.filter(function(g) {
16191
+ var e = t, o = e.placement, n = e.boundary, i = e.rootBoundary, s = e.padding, a = e.flipVariations, l = e.allowedAutoPlacements, d = l === void 0 ? Bm : l, c = $o(o), p = c ? a ? Ic : Ic.filter(function(g) {
16192
16192
  return $o(g) === c;
16193
16193
  }) : jn, m = p.filter(function(g) {
16194
16194
  return d.indexOf(g) >= 0;
@@ -16322,7 +16322,7 @@ function Fw(r, t, e) {
16322
16322
  };
16323
16323
  }
16324
16324
  function Hw(r) {
16325
- var t = r.state, e = r.options, o = r.name, n = e.offset, i = n === void 0 ? [0, 0] : n, s = Pm.reduce(function(c, p) {
16325
+ var t = r.state, e = r.options, o = r.name, n = e.offset, i = n === void 0 ? [0, 0] : n, s = Bm.reduce(function(c, p) {
16326
16326
  return c[p] = Fw(p, t.rects, i), c;
16327
16327
  }, {}), a = s[t.placement], l = a.x, d = a.y;
16328
16328
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += d), t.modifiersData[o] = s;
@@ -16336,7 +16336,7 @@ const jw = {
16336
16336
  };
16337
16337
  function Vw(r) {
16338
16338
  var t = r.state, e = r.name;
16339
- t.modifiersData[e] = $m({
16339
+ t.modifiersData[e] = _m({
16340
16340
  reference: t.rects.reference,
16341
16341
  element: t.rects.popper,
16342
16342
  placement: t.placement
@@ -16375,7 +16375,7 @@ function Uw(r) {
16375
16375
  var K, ct = y === "y" ? te : ee, ut = y === "y" ? fe : be, et = y === "y" ? "height" : "width", G = M[y], lt = G + b[ct], mt = G - b[ut], Me = h ? -L[et] / 2 : 0, Ar = E === Io ? B[et] : L[et], Ee = E === Io ? -L[et] : -B[et], Nr = t.elements.arrow, ze = h && Nr ? Ql(Nr) : {
16376
16376
  width: 0,
16377
16377
  height: 0
16378
- }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Dm(), Fe = ye[ct], io = ye[ut], He = dn(0, B[et], ze[et]), so = S ? B[et] / 2 - Me - He - Fe - k.mainAxis : Ar - He - Fe - k.mainAxis, nr = S ? -B[et] / 2 + Me + He + io + k.mainAxis : Ee + He + io + k.mainAxis, ao = t.elements.arrow && Vn(t.elements.arrow), Jn = ao ? y === "y" ? ao.clientTop || 0 : ao.clientLeft || 0 : 0, Vo = (K = x == null ? void 0 : x[y]) != null ? K : 0, Yn = G + so - Vo - Jn, Qn = G + nr - Vo, Wo = dn(h ? Gi(lt, Yn) : lt, G, h ? Gr(mt, Qn) : mt);
16378
+ }, ye = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Im(), Fe = ye[ct], io = ye[ut], He = dn(0, B[et], ze[et]), so = S ? B[et] / 2 - Me - He - Fe - k.mainAxis : Ar - He - Fe - k.mainAxis, nr = S ? -B[et] / 2 + Me + He + io + k.mainAxis : Ee + He + io + k.mainAxis, ao = t.elements.arrow && Vn(t.elements.arrow), Jn = ao ? y === "y" ? ao.clientTop || 0 : ao.clientLeft || 0 : 0, Vo = (K = x == null ? void 0 : x[y]) != null ? K : 0, Yn = G + so - Vo - Jn, Qn = G + nr - Vo, Wo = dn(h ? Gi(lt, Yn) : lt, G, h ? Gr(mt, Qn) : mt);
16379
16379
  M[y] = Wo, R[y] = Wo - G;
16380
16380
  }
16381
16381
  if (a) {
@@ -16582,12 +16582,12 @@ function r2(r) {
16582
16582
  return h;
16583
16583
  };
16584
16584
  }
16585
- var o2 = [Ew, Ww, Cw, Bm, jw, $w, Kw, xw, zw], n2 = /* @__PURE__ */ r2({
16585
+ var o2 = [Ew, Ww, Cw, Am, jw, $w, Kw, xw, zw], n2 = /* @__PURE__ */ r2({
16586
16586
  defaultModifiers: o2
16587
- }), i2 = "tippy-box", _m = "tippy-content", s2 = "tippy-backdrop", zm = "tippy-arrow", Fm = "tippy-svg-arrow", $r = {
16587
+ }), i2 = "tippy-box", zm = "tippy-content", s2 = "tippy-backdrop", Fm = "tippy-arrow", Hm = "tippy-svg-arrow", $r = {
16588
16588
  passive: !0,
16589
16589
  capture: !0
16590
- }, Hm = function() {
16590
+ }, jm = function() {
16591
16591
  return document.body;
16592
16592
  };
16593
16593
  function a2(r, t) {
@@ -16604,7 +16604,7 @@ function rd(r, t) {
16604
16604
  var e = {}.toString.call(r);
16605
16605
  return e.indexOf("[object") === 0 && e.indexOf(t + "]") > -1;
16606
16606
  }
16607
- function jm(r, t) {
16607
+ function Vm(r, t) {
16608
16608
  return typeof r == "function" ? r.apply(void 0, t) : r;
16609
16609
  }
16610
16610
  function Vc(r, t) {
@@ -16711,11 +16711,11 @@ var Be = {
16711
16711
  isTouch: !1
16712
16712
  }, Gc = 0;
16713
16713
  function y2() {
16714
- Be.isTouch || (Be.isTouch = !0, window.performance && document.addEventListener("mousemove", Vm));
16714
+ Be.isTouch || (Be.isTouch = !0, window.performance && document.addEventListener("mousemove", Wm));
16715
16715
  }
16716
- function Vm() {
16716
+ function Wm() {
16717
16717
  var r = performance.now();
16718
- r - Gc < 20 && (Be.isTouch = !1, document.removeEventListener("mousemove", Vm)), Gc = r;
16718
+ r - Gc < 20 && (Be.isTouch = !1, document.removeEventListener("mousemove", Wm)), Gc = r;
16719
16719
  }
16720
16720
  function w2() {
16721
16721
  var r = document.activeElement;
@@ -16748,7 +16748,7 @@ function S2(r) {
16748
16748
  %c👷‍ This is a development-only message. It will be removed in production.
16749
16749
  `);
16750
16750
  }
16751
- function Wm(r) {
16751
+ function qm(r) {
16752
16752
  return [
16753
16753
  S2(r),
16754
16754
  // title
@@ -16767,20 +16767,20 @@ function C2() {
16767
16767
  function Ye(r, t) {
16768
16768
  if (r && !In.has(t)) {
16769
16769
  var e;
16770
- In.add(t), (e = console).warn.apply(e, Wm(t));
16770
+ In.add(t), (e = console).warn.apply(e, qm(t));
16771
16771
  }
16772
16772
  }
16773
16773
  function sl(r, t) {
16774
16774
  if (r && !In.has(t)) {
16775
16775
  var e;
16776
- In.add(t), (e = console).error.apply(e, Wm(t));
16776
+ In.add(t), (e = console).error.apply(e, qm(t));
16777
16777
  }
16778
16778
  }
16779
16779
  function M2(r) {
16780
16780
  var t = !r, e = Object.prototype.toString.call(r) === "[object Object]" && !r.addEventListener;
16781
16781
  sl(t, ["tippy() was passed", "`" + String(r) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), sl(e, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
16782
16782
  }
16783
- var qm = {
16783
+ var Um = {
16784
16784
  animateFill: !1,
16785
16785
  followCursor: !1,
16786
16786
  inlinePositioning: !1,
@@ -16796,7 +16796,7 @@ var qm = {
16796
16796
  theme: "",
16797
16797
  zIndex: 9999
16798
16798
  }, ne = Object.assign({
16799
- appendTo: Hm,
16799
+ appendTo: jm,
16800
16800
  aria: {
16801
16801
  content: "auto",
16802
16802
  expanded: "auto"
@@ -16843,14 +16843,14 @@ var qm = {
16843
16843
  touch: !0,
16844
16844
  trigger: "mouseenter focus",
16845
16845
  triggerTarget: null
16846
- }, qm, E2), T2 = Object.keys(ne), O2 = function(t) {
16847
- process.env.NODE_ENV !== "production" && Km(t, []);
16846
+ }, Um, E2), T2 = Object.keys(ne), O2 = function(t) {
16847
+ process.env.NODE_ENV !== "production" && Gm(t, []);
16848
16848
  var e = Object.keys(t);
16849
16849
  e.forEach(function(o) {
16850
16850
  ne[o] = t[o];
16851
16851
  });
16852
16852
  };
16853
- function Um(r) {
16853
+ function Km(r) {
16854
16854
  var t = r.plugins || [], e = t.reduce(function(o, n) {
16855
16855
  var i = n.name, s = n.defaultValue;
16856
16856
  if (i) {
@@ -16862,7 +16862,7 @@ function Um(r) {
16862
16862
  return Object.assign({}, r, e);
16863
16863
  }
16864
16864
  function P2(r, t) {
16865
- var e = t ? Object.keys(Um(Object.assign({}, ne, {
16865
+ var e = t ? Object.keys(Km(Object.assign({}, ne, {
16866
16866
  plugins: t
16867
16867
  }))) : T2, o = e.reduce(function(n, i) {
16868
16868
  var s = (r.getAttribute("data-tippy-" + i) || "").trim();
@@ -16882,18 +16882,18 @@ function P2(r, t) {
16882
16882
  }
16883
16883
  function Yc(r, t) {
16884
16884
  var e = Object.assign({}, t, {
16885
- content: jm(t.content, [r])
16885
+ content: Vm(t.content, [r])
16886
16886
  }, t.ignoreAttributes ? {} : P2(r, t.plugins));
16887
16887
  return e.aria = Object.assign({}, ne.aria, e.aria), e.aria = {
16888
16888
  expanded: e.aria.expanded === "auto" ? t.interactive : e.aria.expanded,
16889
16889
  content: e.aria.content === "auto" ? t.interactive ? null : "describedby" : e.aria.content
16890
16890
  }, e;
16891
16891
  }
16892
- function Km(r, t) {
16892
+ function Gm(r, t) {
16893
16893
  r === void 0 && (r = {}), t === void 0 && (t = []);
16894
16894
  var e = Object.keys(r);
16895
16895
  e.forEach(function(o) {
16896
- var n = l2(ne, Object.keys(qm)), i = !a2(n, o);
16896
+ var n = l2(ne, Object.keys(Um)), i = !a2(n, o);
16897
16897
  i && (i = t.filter(function(s) {
16898
16898
  return s.name === o;
16899
16899
  }).length === 0), Ye(i, ["`" + o + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -16910,7 +16910,7 @@ function al(r, t) {
16910
16910
  }
16911
16911
  function Qc(r) {
16912
16912
  var t = pn();
16913
- return r === !0 ? t.className = zm : (t.className = Fm, Dn(r) ? t.appendChild(r) : al(t, r)), t;
16913
+ return r === !0 ? t.className = Fm : (t.className = Hm, Dn(r) ? t.appendChild(r) : al(t, r)), t;
16914
16914
  }
16915
16915
  function Xc(r, t) {
16916
16916
  Dn(t.content) ? (al(r, ""), r.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? al(r, t.content) : r.textContent = t.content);
@@ -16920,21 +16920,21 @@ function ll(r) {
16920
16920
  return {
16921
16921
  box: t,
16922
16922
  content: e.find(function(o) {
16923
- return o.classList.contains(_m);
16923
+ return o.classList.contains(zm);
16924
16924
  }),
16925
16925
  arrow: e.find(function(o) {
16926
- return o.classList.contains(zm) || o.classList.contains(Fm);
16926
+ return o.classList.contains(Fm) || o.classList.contains(Hm);
16927
16927
  }),
16928
16928
  backdrop: e.find(function(o) {
16929
16929
  return o.classList.contains(s2);
16930
16930
  })
16931
16931
  };
16932
16932
  }
16933
- function Gm(r) {
16933
+ function Jm(r) {
16934
16934
  var t = pn(), e = pn();
16935
16935
  e.className = i2, e.setAttribute("data-state", "hidden"), e.setAttribute("tabindex", "-1");
16936
16936
  var o = pn();
16937
- o.className = _m, o.setAttribute("data-state", "hidden"), Xc(o, r.props), t.appendChild(e), e.appendChild(o), n(r.props, r.props);
16937
+ o.className = zm, o.setAttribute("data-state", "hidden"), Xc(o, r.props), t.appendChild(e), e.appendChild(o), n(r.props, r.props);
16938
16938
  function n(i, s) {
16939
16939
  var a = ll(t), l = a.box, d = a.content, c = a.arrow;
16940
16940
  s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) && Xc(d, r.props), s.arrow ? c ? i.arrow !== s.arrow && (l.removeChild(c), l.appendChild(Qc(s.arrow))) : l.appendChild(Qc(s.arrow)) : c && l.removeChild(c);
@@ -16944,10 +16944,10 @@ function Gm(r) {
16944
16944
  onUpdate: n
16945
16945
  };
16946
16946
  }
16947
- Gm.$$tippy = !0;
16947
+ Jm.$$tippy = !0;
16948
16948
  var A2 = 1, bi = [], wa = [];
16949
16949
  function N2(r, t) {
16950
- var e = Yc(r, Object.assign({}, ne, Um(qc(t)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, m, h = [], g = Vc(Yn, e.interactiveDebounce), f, b = A2++, w = null, E = c2(e.plugins), S = {
16950
+ var e = Yc(r, Object.assign({}, ne, Km(qc(t)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, m, h = [], g = Vc(Yn, e.interactiveDebounce), f, b = A2++, w = null, E = c2(e.plugins), S = {
16951
16951
  // Is the instance currently enabled?
16952
16952
  isEnabled: !0,
16953
16953
  // Is the tippy currently showing and not transitioning out?
@@ -16971,13 +16971,13 @@ function N2(r, t) {
16971
16971
  clearDelayTimeouts: ei,
16972
16972
  setProps: ri,
16973
16973
  setContent: oi,
16974
- show: vh,
16975
- hide: kh,
16976
- hideWithInteractivity: Sh,
16974
+ show: kh,
16975
+ hide: Sh,
16976
+ hideWithInteractivity: Ch,
16977
16977
  enable: Ko,
16978
16978
  disable: ti,
16979
- unmount: Ch,
16980
- destroy: Mh
16979
+ unmount: Mh,
16980
+ destroy: Eh
16981
16981
  };
16982
16982
  if (!e.render)
16983
16983
  return process.env.NODE_ENV !== "production" && sl(!0, "render() function has not been supplied."), y;
@@ -17192,7 +17192,7 @@ function N2(r, t) {
17192
17192
  fn: function(ni) {
17193
17193
  var co = ni.state;
17194
17194
  if (R()) {
17195
- var Eh = ut(), Ks = Eh.box;
17195
+ var Th = ut(), Ks = Th.box;
17196
17196
  ["placement", "reference-hidden", "escaped"].forEach(function(ii) {
17197
17197
  ii === "placement" ? Ks.setAttribute("data-placement", co.placement) : co.attributes.popper["data-popper-" + ii] ? Ks.setAttribute("data-" + ii, "") : Ks.removeAttribute("data-" + ii);
17198
17198
  }), co.attributes.popper = {};
@@ -17241,7 +17241,7 @@ function N2(r, t) {
17241
17241
  }
17242
17242
  function je() {
17243
17243
  var P = y.props.appendTo, j, U = K();
17244
- y.props.interactive && P === Hm || P === "parent" ? j = U.parentNode : j = jm(P, [U]), j.contains(M) || j.appendChild(M), y.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && Ye(y.props.interactive && P === ne.appendTo && U.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17244
+ y.props.interactive && P === jm || P === "parent" ? j = U.parentNode : j = Vm(P, [U]), j.contains(M) || j.appendChild(M), y.state.isMounted = !0, Xn(), process.env.NODE_ENV !== "production" && Ye(y.props.interactive && P === ne.appendTo && U.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
17245
17245
 
17246
17246
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
17247
17247
 
@@ -17300,7 +17300,7 @@ function N2(r, t) {
17300
17300
  content: P
17301
17301
  });
17302
17302
  }
17303
- function vh() {
17303
+ function kh() {
17304
17304
  process.env.NODE_ENV !== "production" && Ye(y.state.isDestroyed, fo("show"));
17305
17305
  var P = y.state.isVisible, j = y.state.isDestroyed, U = !y.state.isEnabled, ot = Be.isTouch && !y.props.touch, rt = fa(y.props.duration, 0, ne.duration);
17306
17306
  if (!(P || j || U || ot) && !K().hasAttribute("disabled") && (lt("onShow", [y], !1), y.props.onShow(y) !== !1)) {
@@ -17322,7 +17322,7 @@ function N2(r, t) {
17322
17322
  }, je();
17323
17323
  }
17324
17324
  }
17325
- function kh() {
17325
+ function Sh() {
17326
17326
  process.env.NODE_ENV !== "production" && Ye(y.state.isDestroyed, fo("hide"));
17327
17327
  var P = !y.state.isVisible, j = y.state.isDestroyed, U = !y.state.isEnabled, ot = fa(y.props.duration, 1, ne.duration);
17328
17328
  if (!(P || j || U) && (lt("onHide", [y], !1), y.props.onHide(y) !== !1)) {
@@ -17333,24 +17333,24 @@ function N2(r, t) {
17333
17333
  mt(), Me(), y.props.animation ? R() && io(ot, y.unmount) : y.unmount();
17334
17334
  }
17335
17335
  }
17336
- function Sh(P) {
17336
+ function Ch(P) {
17337
17337
  process.env.NODE_ENV !== "production" && Ye(y.state.isDestroyed, fo("hideWithInteractivity")), ct().addEventListener("mousemove", g), Wc(bi, g), g(P);
17338
17338
  }
17339
- function Ch() {
17339
+ function Mh() {
17340
17340
  process.env.NODE_ENV !== "production" && Ye(y.state.isDestroyed, fo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Zn(), ir().forEach(function(P) {
17341
17341
  P._tippy.unmount();
17342
17342
  }), M.parentNode && M.parentNode.removeChild(M), wa = wa.filter(function(P) {
17343
17343
  return P !== y;
17344
17344
  }), y.state.isMounted = !1, lt("onHidden", [y]));
17345
17345
  }
17346
- function Mh() {
17346
+ function Eh() {
17347
17347
  process.env.NODE_ENV !== "production" && Ye(y.state.isDestroyed, fo("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Jn(), delete r._tippy, y.state.isDestroyed = !0, lt("onDestroy", [y]));
17348
17348
  }
17349
17349
  }
17350
17350
  function Fo(r, t) {
17351
17351
  t === void 0 && (t = {});
17352
17352
  var e = ne.plugins.concat(t.plugins || []);
17353
- process.env.NODE_ENV !== "production" && (M2(r), Km(t, e)), x2();
17353
+ process.env.NODE_ENV !== "production" && (M2(r), Gm(t, e)), x2();
17354
17354
  var o = Object.assign({}, t, {
17355
17355
  plugins: e
17356
17356
  }), n = g2(r);
@@ -17372,7 +17372,7 @@ function Fo(r, t) {
17372
17372
  Fo.defaultProps = ne;
17373
17373
  Fo.setDefaultProps = O2;
17374
17374
  Fo.currentInput = Be;
17375
- Object.assign({}, Bm, {
17375
+ Object.assign({}, Am, {
17376
17376
  effect: function(t) {
17377
17377
  var e = t.state, o = {
17378
17378
  popper: {
@@ -17390,7 +17390,7 @@ Object.assign({}, Bm, {
17390
17390
  }
17391
17391
  });
17392
17392
  Fo.setDefaultProps({
17393
- render: Gm
17393
+ render: Jm
17394
17394
  });
17395
17395
  class D2 {
17396
17396
  constructor({ editor: t, element: e, view: o, tippyOptions: n = {}, updateDelay: i = 250, shouldShow: s }) {
@@ -17438,7 +17438,7 @@ class D2 {
17438
17438
  }
17439
17439
  (m = this.tippy) === null || m === void 0 || m.setProps({
17440
17440
  getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
17441
- if (Em(g.selection)) {
17441
+ if (Tm(g.selection)) {
17442
17442
  let M = a.nodeDOM(S);
17443
17443
  if (M) {
17444
17444
  const B = M.dataset.nodeViewWrapper ? M : M.querySelector("[data-node-view-wrapper]");
@@ -17446,7 +17446,7 @@ class D2 {
17446
17446
  return M.getBoundingClientRect();
17447
17447
  }
17448
17448
  }
17449
- return Tm(a, S, y);
17449
+ return Om(a, S, y);
17450
17450
  })
17451
17451
  }), this.show();
17452
17452
  }, this.editor = t, this.element = e, this.view = o, this.updateDelay = i, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = n, this.element.remove(), this.element.style.visibility = "visible";
@@ -17486,7 +17486,7 @@ class D2 {
17486
17486
  !((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (e = this.tippy) === null || e === void 0 || e.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
17487
17487
  }
17488
17488
  }
17489
- const Jm = (r) => new Mt({
17489
+ const Ym = (r) => new Mt({
17490
17490
  key: typeof r.pluginKey == "string" ? new Yt(r.pluginKey) : r.pluginKey,
17491
17491
  view: (t) => new D2({ view: t, ...r })
17492
17492
  });
@@ -17503,7 +17503,7 @@ _t.create({
17503
17503
  },
17504
17504
  addProseMirrorPlugins() {
17505
17505
  return this.options.element ? [
17506
- Jm({
17506
+ Ym({
17507
17507
  pluginKey: this.options.pluginKey,
17508
17508
  editor: this.editor,
17509
17509
  element: this.options.element,
@@ -17516,7 +17516,7 @@ _t.create({
17516
17516
  });
17517
17517
  class I2 {
17518
17518
  getTextContent(t) {
17519
- return Cm(t, { textSerializers: jl(this.editor.schema) });
17519
+ return Mm(t, { textSerializers: jl(this.editor.schema) });
17520
17520
  }
17521
17521
  constructor({ editor: t, element: e, view: o, tippyOptions: n = {}, shouldShow: i }) {
17522
17522
  this.preventHide = !1, this.shouldShow = ({ view: s, state: a }) => {
@@ -17565,7 +17565,7 @@ class I2 {
17565
17565
  return;
17566
17566
  }
17567
17567
  (n = this.tippy) === null || n === void 0 || n.setProps({
17568
- getReferenceClientRect: ((i = this.tippyOptions) === null || i === void 0 ? void 0 : i.getReferenceClientRect) || (() => Tm(t, d, c))
17568
+ getReferenceClientRect: ((i = this.tippyOptions) === null || i === void 0 ? void 0 : i.getReferenceClientRect) || (() => Om(t, d, c))
17569
17569
  }), this.show();
17570
17570
  }
17571
17571
  show() {
@@ -17581,7 +17581,7 @@ class I2 {
17581
17581
  !((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (e = this.tippy) === null || e === void 0 || e.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
17582
17582
  }
17583
17583
  }
17584
- const Ym = (r) => new Mt({
17584
+ const Qm = (r) => new Mt({
17585
17585
  key: typeof r.pluginKey == "string" ? new Yt(r.pluginKey) : r.pluginKey,
17586
17586
  view: (t) => new I2({ view: t, ...r })
17587
17587
  });
@@ -17597,7 +17597,7 @@ _t.create({
17597
17597
  },
17598
17598
  addProseMirrorPlugins() {
17599
17599
  return this.options.element ? [
17600
- Ym({
17600
+ Qm({
17601
17601
  pluginKey: this.options.pluginKey,
17602
17602
  editor: this.editor,
17603
17603
  element: this.options.element,
@@ -17635,7 +17635,7 @@ re({
17635
17635
  const e = O(null);
17636
17636
  return er(() => {
17637
17637
  const { updateDelay: o, editor: n, pluginKey: i, shouldShow: s, tippyOptions: a } = r;
17638
- n.registerPlugin(Jm({
17638
+ n.registerPlugin(Ym({
17639
17639
  updateDelay: o,
17640
17640
  editor: n,
17641
17641
  element: e.value,
@@ -17653,7 +17653,7 @@ re({
17653
17653
  }
17654
17654
  });
17655
17655
  function Zc(r) {
17656
- return Lh((t, e) => ({
17656
+ return Rh((t, e) => ({
17657
17657
  get() {
17658
17658
  return t(), r;
17659
17659
  },
@@ -17758,7 +17758,7 @@ re({
17758
17758
  const e = O(null);
17759
17759
  return er(() => {
17760
17760
  const { pluginKey: o, editor: n, tippyOptions: i, shouldShow: s } = r;
17761
- n.registerPlugin(Ym({
17761
+ n.registerPlugin(Qm({
17762
17762
  pluginKey: o,
17763
17763
  editor: n,
17764
17764
  element: e.value,
@@ -17815,7 +17815,7 @@ re({
17815
17815
  }
17816
17816
  });
17817
17817
  const $2 = (r = {}) => {
17818
- const t = Ih();
17818
+ const t = Lh();
17819
17819
  return er(() => {
17820
17820
  t.value = new L2(r);
17821
17821
  }), Ps(() => {
@@ -18218,7 +18218,7 @@ class ex {
18218
18218
  if (e && !i) {
18219
18219
  let s = e.pos;
18220
18220
  if (this.editorView.dragging && this.editorView.dragging.slice) {
18221
- let a = gu(this.editorView.state.doc, s, this.editorView.dragging.slice);
18221
+ let a = fu(this.editorView.state.doc, s, this.editorView.dragging.slice);
18222
18222
  a != null && (s = a);
18223
18223
  }
18224
18224
  this.setCursor(s), this.scheduleRemoval(5e3);
@@ -18396,7 +18396,7 @@ function ix() {
18396
18396
  }
18397
18397
  });
18398
18398
  }
18399
- const sx = om({
18399
+ const sx = nm({
18400
18400
  ArrowLeft: yi("horiz", -1),
18401
18401
  ArrowRight: yi("horiz", 1),
18402
18402
  ArrowUp: yi("vert", -1),
@@ -18589,9 +18589,9 @@ Bt.prototype.map = function(t, e, o) {
18589
18589
  }, e, o), n;
18590
18590
  };
18591
18591
  Bt.from = function(t) {
18592
- return t instanceof Bt ? t : t && t.length ? new Qm(t) : Bt.empty;
18592
+ return t instanceof Bt ? t : t && t.length ? new Xm(t) : Bt.empty;
18593
18593
  };
18594
- var Qm = /* @__PURE__ */ function(r) {
18594
+ var Xm = /* @__PURE__ */ function(r) {
18595
18595
  function t(o) {
18596
18596
  r.call(this), this.values = o;
18597
18597
  }
@@ -18623,7 +18623,7 @@ var Qm = /* @__PURE__ */ function(r) {
18623
18623
  return 0;
18624
18624
  }, Object.defineProperties(t.prototype, e), t;
18625
18625
  }(Bt);
18626
- Bt.empty = new Qm([]);
18626
+ Bt.empty = new Xm([]);
18627
18627
  var mx = /* @__PURE__ */ function(r) {
18628
18628
  function t(e, o) {
18629
18629
  r.call(this), this.left = e, this.right = o, this.length = e.length + o.length, this.depth = Math.max(e.depth, o.depth) + 1;
@@ -18877,14 +18877,14 @@ function vx(r = {}) {
18877
18877
  props: {
18878
18878
  handleDOMEvents: {
18879
18879
  beforeinput(t, e) {
18880
- let o = e.inputType, n = o == "historyUndo" ? Zm : o == "historyRedo" ? th : null;
18880
+ let o = e.inputType, n = o == "historyUndo" ? th : o == "historyRedo" ? eh : null;
18881
18881
  return n ? (e.preventDefault(), n(t.state, t.dispatch)) : !1;
18882
18882
  }
18883
18883
  }
18884
18884
  }
18885
18885
  });
18886
18886
  }
18887
- function Xm(r, t) {
18887
+ function Zm(r, t) {
18888
18888
  return (e, o) => {
18889
18889
  let n = Jr.getState(e);
18890
18890
  if (!n || (r ? n.undone : n.done).eventCount == 0)
@@ -18896,7 +18896,7 @@ function Xm(r, t) {
18896
18896
  return !0;
18897
18897
  };
18898
18898
  }
18899
- const Zm = Xm(!1, !0), th = Xm(!0, !0), kx = _t.create({
18899
+ const th = Zm(!1, !0), eh = Zm(!0, !0), kx = _t.create({
18900
18900
  name: "history",
18901
18901
  addOptions() {
18902
18902
  return {
@@ -18906,8 +18906,8 @@ const Zm = Xm(!1, !0), th = Xm(!0, !0), kx = _t.create({
18906
18906
  },
18907
18907
  addCommands() {
18908
18908
  return {
18909
- undo: () => ({ state: r, dispatch: t }) => Zm(r, t),
18910
- redo: () => ({ state: r, dispatch: t }) => th(r, t)
18909
+ undo: () => ({ state: r, dispatch: t }) => th(r, t),
18910
+ redo: () => ({ state: r, dispatch: t }) => eh(r, t)
18911
18911
  };
18912
18912
  },
18913
18913
  addProseMirrorPlugins() {
@@ -18948,7 +18948,7 @@ const Zm = Xm(!1, !0), th = Xm(!0, !0), kx = _t.create({
18948
18948
  to: n.pos
18949
18949
  }, {
18950
18950
  type: this.name
18951
- }) : Em(e) ? i.insertContentAt(n.pos, {
18951
+ }) : Tm(e) ? i.insertContentAt(n.pos, {
18952
18952
  type: this.name
18953
18953
  }) : i.insertContent({ type: this.name }), i.command(({ tr: s, dispatch: a }) => {
18954
18954
  var l;
@@ -19231,12 +19231,12 @@ const Zm = Xm(!1, !0), th = Xm(!0, !0), kx = _t.create({
19231
19231
  for (const e in t)
19232
19232
  r[e] = t[e];
19233
19233
  return r;
19234
- }, dl = "numeric", cl = "ascii", pl = "alpha", un = "asciinumeric", rn = "alphanumeric", ul = "domain", eh = "emoji", Fx = "scheme", Hx = "slashscheme", ka = "whitespace";
19234
+ }, dl = "numeric", cl = "ascii", pl = "alpha", un = "asciinumeric", rn = "alphanumeric", ul = "domain", rh = "emoji", Fx = "scheme", Hx = "slashscheme", ka = "whitespace";
19235
19235
  function jx(r, t) {
19236
19236
  return r in t || (t[r] = []), t[r];
19237
19237
  }
19238
19238
  function Vr(r, t, e) {
19239
- t[dl] && (t[un] = !0, t[rn] = !0), t[cl] && (t[un] = !0, t[pl] = !0), t[un] && (t[rn] = !0), t[pl] && (t[rn] = !0), t[rn] && (t[ul] = !0), t[eh] && (t[ul] = !0);
19239
+ t[dl] && (t[un] = !0, t[rn] = !0), t[cl] && (t[un] = !0, t[pl] = !0), t[un] && (t[rn] = !0), t[pl] && (t[rn] = !0), t[rn] && (t[ul] = !0), t[rh] && (t[ul] = !0);
19240
19240
  for (const o in t) {
19241
19241
  const n = jx(o, e);
19242
19242
  n.indexOf(r) < 0 && n.push(r);
@@ -19372,13 +19372,13 @@ Qt.prototype = {
19372
19372
  return n.j[r] = s, s;
19373
19373
  }
19374
19374
  };
19375
- const X = (r, t, e, o, n) => r.ta(t, e, o, n), gt = (r, t, e, o, n) => r.tr(t, e, o, n), sp = (r, t, e, o, n) => r.ts(t, e, o, n), D = (r, t, e, o, n) => r.tt(t, e, o, n), Ge = "WORD", ml = "UWORD", rh = "ASCIINUMERICAL", oh = "ALPHANUMERICAL", Ln = "LOCALHOST", hl = "TLD", gl = "UTLD", Ni = "SCHEME", xo = "SLASH_SCHEME", nd = "NUM", fl = "WS", id = "NL", mn = "OPENBRACE", hn = "CLOSEBRACE", Qi = "OPENBRACKET", Xi = "CLOSEBRACKET", Zi = "OPENPAREN", ts = "CLOSEPAREN", es = "OPENANGLEBRACKET", rs = "CLOSEANGLEBRACKET", ns = "FULLWIDTHLEFTPAREN", is = "FULLWIDTHRIGHTPAREN", ss = "LEFTCORNERBRACKET", as = "RIGHTCORNERBRACKET", ls = "LEFTWHITECORNERBRACKET", ds = "RIGHTWHITECORNERBRACKET", cs = "FULLWIDTHLESSTHAN", ps = "FULLWIDTHGREATERTHAN", us = "AMPERSAND", ms = "APOSTROPHE", hs = "ASTERISK", cr = "AT", gs = "BACKSLASH", fs = "BACKTICK", bs = "CARET", mr = "COLON", sd = "COMMA", ys = "DOLLAR", Oe = "DOT", ws = "EQUALS", ad = "EXCLAMATION", ce = "HYPHEN", gn = "PERCENT", xs = "PIPE", vs = "PLUS", ks = "POUND", fn = "QUERY", ld = "QUOTE", nh = "FULLWIDTHMIDDLEDOT", dd = "SEMI", Pe = "SLASH", bn = "TILDE", Ss = "UNDERSCORE", ih = "EMOJI", Cs = "SYM";
19376
- var sh = /* @__PURE__ */ Object.freeze({
19375
+ const X = (r, t, e, o, n) => r.ta(t, e, o, n), gt = (r, t, e, o, n) => r.tr(t, e, o, n), sp = (r, t, e, o, n) => r.ts(t, e, o, n), D = (r, t, e, o, n) => r.tt(t, e, o, n), Ge = "WORD", ml = "UWORD", oh = "ASCIINUMERICAL", nh = "ALPHANUMERICAL", Ln = "LOCALHOST", hl = "TLD", gl = "UTLD", Ni = "SCHEME", xo = "SLASH_SCHEME", nd = "NUM", fl = "WS", id = "NL", mn = "OPENBRACE", hn = "CLOSEBRACE", Qi = "OPENBRACKET", Xi = "CLOSEBRACKET", Zi = "OPENPAREN", ts = "CLOSEPAREN", es = "OPENANGLEBRACKET", rs = "CLOSEANGLEBRACKET", ns = "FULLWIDTHLEFTPAREN", is = "FULLWIDTHRIGHTPAREN", ss = "LEFTCORNERBRACKET", as = "RIGHTCORNERBRACKET", ls = "LEFTWHITECORNERBRACKET", ds = "RIGHTWHITECORNERBRACKET", cs = "FULLWIDTHLESSTHAN", ps = "FULLWIDTHGREATERTHAN", us = "AMPERSAND", ms = "APOSTROPHE", hs = "ASTERISK", cr = "AT", gs = "BACKSLASH", fs = "BACKTICK", bs = "CARET", mr = "COLON", sd = "COMMA", ys = "DOLLAR", Oe = "DOT", ws = "EQUALS", ad = "EXCLAMATION", ce = "HYPHEN", gn = "PERCENT", xs = "PIPE", vs = "PLUS", ks = "POUND", fn = "QUERY", ld = "QUOTE", ih = "FULLWIDTHMIDDLEDOT", dd = "SEMI", Pe = "SLASH", bn = "TILDE", Ss = "UNDERSCORE", sh = "EMOJI", Cs = "SYM";
19376
+ var ah = /* @__PURE__ */ Object.freeze({
19377
19377
  __proto__: null,
19378
- ALPHANUMERICAL: oh,
19378
+ ALPHANUMERICAL: nh,
19379
19379
  AMPERSAND: us,
19380
19380
  APOSTROPHE: ms,
19381
- ASCIINUMERICAL: rh,
19381
+ ASCIINUMERICAL: oh,
19382
19382
  ASTERISK: hs,
19383
19383
  AT: cr,
19384
19384
  BACKSLASH: gs,
@@ -19392,13 +19392,13 @@ var sh = /* @__PURE__ */ Object.freeze({
19392
19392
  COMMA: sd,
19393
19393
  DOLLAR: ys,
19394
19394
  DOT: Oe,
19395
- EMOJI: ih,
19395
+ EMOJI: sh,
19396
19396
  EQUALS: ws,
19397
19397
  EXCLAMATION: ad,
19398
19398
  FULLWIDTHGREATERTHAN: ps,
19399
19399
  FULLWIDTHLEFTPAREN: ns,
19400
19400
  FULLWIDTHLESSTHAN: cs,
19401
- FULLWIDTHMIDDLEDOT: nh,
19401
+ FULLWIDTHMIDDLEDOT: ih,
19402
19402
  FULLWIDTHRIGHTPAREN: is,
19403
19403
  HYPHEN: ce,
19404
19404
  LEFTCORNERBRACKET: ss,
@@ -19438,14 +19438,14 @@ function Ux(r = []) {
19438
19438
  const t = {};
19439
19439
  Qt.groups = t;
19440
19440
  const e = new Qt();
19441
- wi == null && (wi = lp(_x)), xi == null && (xi = lp(zx)), D(e, "'", ms), D(e, "{", mn), D(e, "}", hn), D(e, "[", Qi), D(e, "]", Xi), D(e, "(", Zi), D(e, ")", ts), D(e, "<", es), D(e, ">", rs), D(e, "(", ns), D(e, ")", is), D(e, "「", ss), D(e, "」", as), D(e, "『", ls), D(e, "』", ds), D(e, "<", cs), D(e, ">", ps), D(e, "&", us), D(e, "*", hs), D(e, "@", cr), D(e, "`", fs), D(e, "^", bs), D(e, ":", mr), D(e, ",", sd), D(e, "$", ys), D(e, ".", Oe), D(e, "=", ws), D(e, "!", ad), D(e, "-", ce), D(e, "%", gn), D(e, "|", xs), D(e, "+", vs), D(e, "#", ks), D(e, "?", fn), D(e, '"', ld), D(e, "/", Pe), D(e, ";", dd), D(e, "~", bn), D(e, "_", Ss), D(e, "\\", gs), D(e, "・", nh);
19441
+ wi == null && (wi = lp(_x)), xi == null && (xi = lp(zx)), D(e, "'", ms), D(e, "{", mn), D(e, "}", hn), D(e, "[", Qi), D(e, "]", Xi), D(e, "(", Zi), D(e, ")", ts), D(e, "<", es), D(e, ">", rs), D(e, "(", ns), D(e, ")", is), D(e, "「", ss), D(e, "」", as), D(e, "『", ls), D(e, "』", ds), D(e, "<", cs), D(e, ">", ps), D(e, "&", us), D(e, "*", hs), D(e, "@", cr), D(e, "`", fs), D(e, "^", bs), D(e, ":", mr), D(e, ",", sd), D(e, "$", ys), D(e, ".", Oe), D(e, "=", ws), D(e, "!", ad), D(e, "-", ce), D(e, "%", gn), D(e, "|", xs), D(e, "+", vs), D(e, "#", ks), D(e, "?", fn), D(e, '"', ld), D(e, "/", Pe), D(e, ";", dd), D(e, "~", bn), D(e, "_", Ss), D(e, "\\", gs), D(e, "・", ih);
19442
19442
  const o = gt(e, Ke, nd, {
19443
19443
  [dl]: !0
19444
19444
  });
19445
19445
  gt(o, Ke, o);
19446
- const n = gt(o, Ue, rh, {
19446
+ const n = gt(o, Ue, oh, {
19447
19447
  [un]: !0
19448
- }), i = gt(o, Qo, oh, {
19448
+ }), i = gt(o, Qo, nh, {
19449
19449
  [rn]: !0
19450
19450
  }), s = gt(e, Ue, Ge, {
19451
19451
  [cl]: !0
@@ -19463,8 +19463,8 @@ function Ux(r = []) {
19463
19463
  [ka]: !0
19464
19464
  });
19465
19465
  D(e, Ea, c), D(d, Ma, l), D(d, Ea, c), gt(d, Ca, c), D(c, ap), D(c, Ma), gt(c, Ca, c), D(c, Ea, c);
19466
- const p = gt(e, Sa, ih, {
19467
- [eh]: !0
19466
+ const p = gt(e, Sa, sh, {
19467
+ [rh]: !0
19468
19468
  });
19469
19469
  D(p, "#"), gt(p, Sa, p), D(p, Wx, p);
19470
19470
  const m = D(p, qx);
@@ -19501,10 +19501,10 @@ function Ux(r = []) {
19501
19501
  start: e,
19502
19502
  tokens: _o({
19503
19503
  groups: t
19504
- }, sh)
19504
+ }, ah)
19505
19505
  };
19506
19506
  }
19507
- function ah(r, t) {
19507
+ function lh(r, t) {
19508
19508
  const e = Kx(t.replace(/[A-Z]/g, (a) => a.toLowerCase())), o = e.length, n = [];
19509
19509
  let i = 0, s = 0;
19510
19510
  for (; s < o; ) {
@@ -19648,10 +19648,10 @@ cd.prototype = {
19648
19648
  function dp(r) {
19649
19649
  return r;
19650
19650
  }
19651
- function lh(r, t) {
19651
+ function dh(r, t) {
19652
19652
  this.t = "token", this.v = r, this.tk = t;
19653
19653
  }
19654
- lh.prototype = {
19654
+ dh.prototype = {
19655
19655
  isLink: !1,
19656
19656
  /**
19657
19657
  * Return the string this token represents.
@@ -19756,7 +19756,7 @@ lh.prototype = {
19756
19756
  }
19757
19757
  };
19758
19758
  function Ws(r, t) {
19759
- class e extends lh {
19759
+ class e extends dh {
19760
19760
  constructor(n, i) {
19761
19761
  super(n, i), this.t = r;
19762
19762
  }
@@ -19850,7 +19850,7 @@ function Jx({
19850
19850
  }
19851
19851
  return D(n, Ln, E), D(n, id, Gx), {
19852
19852
  start: n,
19853
- tokens: sh
19853
+ tokens: ah
19854
19854
  };
19855
19855
  }
19856
19856
  function Yx(r, t, e) {
@@ -19910,10 +19910,10 @@ function tv() {
19910
19910
  return pt.initialized = !0, pt;
19911
19911
  }
19912
19912
  function pd(r) {
19913
- return pt.initialized || tv(), Yx(pt.parser.start, r, ah(pt.scanner.start, r));
19913
+ return pt.initialized || tv(), Yx(pt.parser.start, r, lh(pt.scanner.start, r));
19914
19914
  }
19915
- pd.scan = ah;
19916
- function dh(r, t = null, e = null) {
19915
+ pd.scan = lh;
19916
+ function ch(r, t = null, e = null) {
19917
19917
  if (t && typeof t == "object") {
19918
19918
  if (e)
19919
19919
  throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);
@@ -19979,7 +19979,7 @@ function ov(r) {
19979
19979
  a.push(s), s = s.parentNode;
19980
19980
  if (!a.find((m) => m.nodeName === "A"))
19981
19981
  return !1;
19982
- const l = Mm(t.state, r.type.name), d = o.target, c = (n = d == null ? void 0 : d.href) !== null && n !== void 0 ? n : l.href, p = (i = d == null ? void 0 : d.target) !== null && i !== void 0 ? i : l.target;
19982
+ const l = Em(t.state, r.type.name), d = o.target, c = (n = d == null ? void 0 : d.href) !== null && n !== void 0 ? n : l.href, p = (i = d == null ? void 0 : d.target) !== null && i !== void 0 ? i : l.target;
19983
19983
  return d && c ? (window.open(c, p), !0) : !1;
19984
19984
  }
19985
19985
  }
@@ -19997,7 +19997,7 @@ function nv(r) {
19997
19997
  o.content.forEach((d) => {
19998
19998
  a += d.textContent;
19999
19999
  });
20000
- const l = dh(a, { defaultProtocol: r.defaultProtocol }).find((d) => d.isLink && d.value === a);
20000
+ const l = ch(a, { defaultProtocol: r.defaultProtocol }).find((d) => d.isLink && d.value === a);
20001
20001
  return !a || !l ? !1 : r.editor.commands.setMark(r.type, {
20002
20002
  href: l.href
20003
20003
  });
@@ -20137,7 +20137,7 @@ const sv = rr.create({
20137
20137
  find: (r) => {
20138
20138
  const t = [];
20139
20139
  if (r) {
20140
- const { protocols: e, defaultProtocol: o } = this.options, n = dh(r).filter((i) => i.isLink && this.options.isAllowedUri(i.value, {
20140
+ const { protocols: e, defaultProtocol: o } = this.options, n = ch(r).filter((i) => i.isLink && this.options.isAllowedUri(i.value, {
20141
20141
  defaultValidate: (s) => !!Lr(s, e),
20142
20142
  protocols: e,
20143
20143
  defaultProtocol: o
@@ -20242,7 +20242,7 @@ const sv = rr.create({
20242
20242
  }, F = function() {
20243
20243
  E.value.chain().focus().extendMarkRange("link").setLink({ href: T.value }).run();
20244
20244
  };
20245
- return Rh(() => {
20245
+ return $h(() => {
20246
20246
  var k;
20247
20247
  (k = E.value) == null || k.destroy();
20248
20248
  }), er(() => {
@@ -20412,7 +20412,7 @@ function Cv(r, t) {
20412
20412
  const Mv = /* @__PURE__ */ ud(Sv, [["render", Cv]]), Ev = {
20413
20413
  key: 0,
20414
20414
  class: "w-full"
20415
- }, Tv = { key: 1 }, ch = {
20415
+ }, Tv = { key: 1 }, ph = {
20416
20416
  __name: "MediaLibraryModal",
20417
20417
  props: {
20418
20418
  title: {
@@ -20523,7 +20523,7 @@ function Iv(r) {
20523
20523
  }
20524
20524
  let gp = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((r) => `${r}:not([tabindex='-1'])`).join(",");
20525
20525
  var Lv = ((r) => (r[r.First = 1] = "First", r[r.Previous = 2] = "Previous", r[r.Next = 4] = "Next", r[r.Last = 8] = "Last", r[r.WrapAround = 16] = "WrapAround", r[r.NoScroll = 32] = "NoScroll", r))(Lv || {}), Rv = ((r) => (r[r.Error = 0] = "Error", r[r.Overflow = 1] = "Overflow", r[r.Success = 2] = "Success", r[r.Underflow = 3] = "Underflow", r))(Rv || {}), $v = ((r) => (r[r.Previous = -1] = "Previous", r[r.Next = 1] = "Next", r))($v || {}), hd = ((r) => (r[r.Strict = 0] = "Strict", r[r.Loose = 1] = "Loose", r))(hd || {});
20526
- function ph(r, t = 0) {
20526
+ function uh(r, t = 0) {
20527
20527
  var e;
20528
20528
  return r === ((e = Iv(r)) == null ? void 0 : e.body) ? !1 : ke(t, { 0() {
20529
20529
  return r.matches(gp);
@@ -20582,7 +20582,7 @@ function Wv(r, t, e = $(() => !0)) {
20582
20582
  let c = d instanceof HTMLElement ? d : yt(d);
20583
20583
  if (c != null && c.contains(a) || i.composed && i.composedPath().includes(c)) return;
20584
20584
  }
20585
- return !ph(a, hd.Loose) && a.tabIndex !== -1 && i.preventDefault(), t(i, a);
20585
+ return !uh(a, hd.Loose) && a.tabIndex !== -1 && i.preventDefault(), t(i, a);
20586
20586
  }
20587
20587
  let n = O(null);
20588
20588
  ki("pointerdown", (i) => {
@@ -20624,7 +20624,7 @@ function Uv() {
20624
20624
  var bl = ((r) => (r[r.None = 0] = "None", r[r.RenderStrategy = 1] = "RenderStrategy", r[r.Static = 2] = "Static", r))(bl || {}), Kv = ((r) => (r[r.Unmount = 0] = "Unmount", r[r.Hidden = 1] = "Hidden", r))(Kv || {});
20625
20625
  function Ho({ visible: r = !0, features: t = 0, ourProps: e, theirProps: o, ...n }) {
20626
20626
  var i;
20627
- let s = mh(o, e), a = Object.assign(n, { props: s });
20627
+ let s = hh(o, e), a = Object.assign(n, { props: s });
20628
20628
  if (r || t & 2 && s.static) return Oa(a);
20629
20629
  if (t & 1) {
20630
20630
  let l = (i = s.unmount) == null || i ? 0 : 1;
@@ -20638,20 +20638,20 @@ function Ho({ visible: r = !0, features: t = 0, ourProps: e, theirProps: o, ...n
20638
20638
  }
20639
20639
  function Oa({ props: r, attrs: t, slots: e, slot: o, name: n }) {
20640
20640
  var i, s;
20641
- let { as: a, ...l } = hh(r, ["unmount", "static"]), d = (i = e.default) == null ? void 0 : i.call(e, o), c = {};
20641
+ let { as: a, ...l } = gh(r, ["unmount", "static"]), d = (i = e.default) == null ? void 0 : i.call(e, o), c = {};
20642
20642
  if (o) {
20643
20643
  let p = !1, m = [];
20644
20644
  for (let [h, g] of Object.entries(o)) typeof g == "boolean" && (p = !0), g === !0 && m.push(h);
20645
20645
  p && (c["data-headlessui-state"] = m.join(" "));
20646
20646
  }
20647
20647
  if (a === "template") {
20648
- if (d = uh(d ?? []), Object.keys(l).length > 0 || Object.keys(t).length > 0) {
20648
+ if (d = mh(d ?? []), Object.keys(l).length > 0 || Object.keys(t).length > 0) {
20649
20649
  let [p, ...m] = d ?? [];
20650
20650
  if (!Jv(p) || m.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${n} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l).concat(Object.keys(t)).map((f) => f.trim()).filter((f, b, w) => w.indexOf(f) === b).sort((f, b) => f.localeCompare(b)).map((f) => ` - ${f}`).join(`
20651
20651
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
20652
20652
  `)].join(`
20653
20653
  `));
20654
- let h = mh((s = p.props) != null ? s : {}, l, c), g = $h(p, h, !0);
20654
+ let h = hh((s = p.props) != null ? s : {}, l, c), g = _h(p, h, !0);
20655
20655
  for (let f in h) f.startsWith("on") && (g.props || (g.props = {}), g.props[f] = h[f]);
20656
20656
  return g;
20657
20657
  }
@@ -20659,10 +20659,10 @@ function Oa({ props: r, attrs: t, slots: e, slot: o, name: n }) {
20659
20659
  }
20660
20660
  return Mr(a, Object.assign({}, l, c), { default: () => d });
20661
20661
  }
20662
- function uh(r) {
20663
- return r.flatMap((t) => t.type === dt ? uh(t.children) : [t]);
20662
+ function mh(r) {
20663
+ return r.flatMap((t) => t.type === dt ? mh(t.children) : [t]);
20664
20664
  }
20665
- function mh(...r) {
20665
+ function hh(...r) {
20666
20666
  if (r.length === 0) return {};
20667
20667
  if (r.length === 1) return r[0];
20668
20668
  let t = {}, e = {};
@@ -20682,7 +20682,7 @@ function Gv(r) {
20682
20682
  for (let e in t) t[e] === void 0 && delete t[e];
20683
20683
  return t;
20684
20684
  }
20685
- function hh(r, t = []) {
20685
+ function gh(r, t = []) {
20686
20686
  let e = Object.assign({}, r);
20687
20687
  for (let o of t) o in e && delete e[o];
20688
20688
  return e;
@@ -20690,20 +20690,20 @@ function hh(r, t = []) {
20690
20690
  function Jv(r) {
20691
20691
  return r == null ? !1 : typeof r.type == "string" || typeof r.type == "object" || typeof r.type == "function";
20692
20692
  }
20693
- var gh = ((r) => (r[r.None = 1] = "None", r[r.Focusable = 2] = "Focusable", r[r.Hidden = 4] = "Hidden", r))(gh || {});
20693
+ var fh = ((r) => (r[r.None = 1] = "None", r[r.Focusable = 2] = "Focusable", r[r.Hidden = 4] = "Hidden", r))(fh || {});
20694
20694
  let Yv = re({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(r, { slots: t, attrs: e }) {
20695
20695
  return () => {
20696
20696
  var o;
20697
20697
  let { features: n, ...i } = r, s = { "aria-hidden": (n & 2) === 2 ? !0 : (o = i["aria-hidden"]) != null ? o : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
20698
20698
  return Ho({ ourProps: s, theirProps: i, slot: {}, attrs: e, slots: t, name: "Hidden" });
20699
20699
  };
20700
- } }), fh = Symbol("Context");
20700
+ } }), bh = Symbol("Context");
20701
20701
  var $n = ((r) => (r[r.Open = 1] = "Open", r[r.Closed = 2] = "Closed", r[r.Closing = 4] = "Closing", r[r.Opening = 8] = "Opening", r))($n || {});
20702
20702
  function Qv() {
20703
- return Yr(fh, null);
20703
+ return Yr(bh, null);
20704
20704
  }
20705
20705
  function Xv(r) {
20706
- pr(fh, r);
20706
+ pr(bh, r);
20707
20707
  }
20708
20708
  var Et = ((r) => (r.Space = " ", r.Enter = "Enter", r.Escape = "Escape", r.Backspace = "Backspace", r.Delete = "Delete", r.ArrowLeft = "ArrowLeft", r.ArrowUp = "ArrowUp", r.ArrowRight = "ArrowRight", r.ArrowDown = "ArrowDown", r.Home = "Home", r.End = "End", r.PageUp = "PageUp", r.PageDown = "PageDown", r.Tab = "Tab", r))(Et || {});
20709
20709
  function Zv(r) {
@@ -20742,16 +20742,16 @@ function t5(r, t) {
20742
20742
  Zv(r);
20743
20743
  }
20744
20744
  }
20745
- function bh(r = {}, t = null, e = []) {
20746
- for (let [o, n] of Object.entries(r)) wh(e, yh(t, o), n);
20745
+ function yh(r = {}, t = null, e = []) {
20746
+ for (let [o, n] of Object.entries(r)) xh(e, wh(t, o), n);
20747
20747
  return e;
20748
20748
  }
20749
- function yh(r, t) {
20749
+ function wh(r, t) {
20750
20750
  return r ? r + "[" + t + "]" : t;
20751
20751
  }
20752
- function wh(r, t, e) {
20753
- if (Array.isArray(e)) for (let [o, n] of e.entries()) wh(r, yh(t, o.toString()), n);
20754
- else e instanceof Date ? r.push([t, e.toISOString()]) : typeof e == "boolean" ? r.push([t, e ? "1" : "0"]) : typeof e == "string" ? r.push([t, e]) : typeof e == "number" ? r.push([t, `${e}`]) : e == null ? r.push([t, ""]) : bh(e, t, r);
20752
+ function xh(r, t, e) {
20753
+ if (Array.isArray(e)) for (let [o, n] of e.entries()) xh(r, wh(t, o.toString()), n);
20754
+ else e instanceof Date ? r.push([t, e.toISOString()]) : typeof e == "boolean" ? r.push([t, e ? "1" : "0"]) : typeof e == "string" ? r.push([t, e]) : typeof e == "number" ? r.push([t, `${e}`]) : e == null ? r.push([t, ""]) : yh(e, t, r);
20755
20755
  }
20756
20756
  let yp = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
20757
20757
  function wp(r) {
@@ -20798,9 +20798,9 @@ var n5 = ((r) => (r[r.Open = 0] = "Open", r[r.Closed = 1] = "Closed", r))(n5 ||
20798
20798
  function a5(r) {
20799
20799
  requestAnimationFrame(() => requestAnimationFrame(r));
20800
20800
  }
20801
- let xh = Symbol("ListboxContext");
20801
+ let vh = Symbol("ListboxContext");
20802
20802
  function Wn(r) {
20803
- let t = Yr(xh, null);
20803
+ let t = Yr(vh, null);
20804
20804
  if (t === null) {
20805
20805
  let e = new Error(`<${r} /> is missing a parent <Listbox /> component.`);
20806
20806
  throw Error.captureStackTrace && Error.captureStackTrace(e, Wn), e;
@@ -20854,8 +20854,8 @@ let qn = re({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
20854
20854
  } };
20855
20855
  Wv([s, a], (S, y) => {
20856
20856
  var T;
20857
- w.closeListbox(), ph(y, hd.Loose) || (S.preventDefault(), (T = yt(s)) == null || T.focus());
20858
- }, $(() => n.value === 0)), pr(xh, w), Xv($(() => ke(n.value, { 0: $n.Open, 1: $n.Closed })));
20857
+ w.closeListbox(), uh(y, hd.Loose) || (S.preventDefault(), (T = yt(s)) == null || T.focus());
20858
+ }, $(() => n.value === 0)), pr(vh, w), Xv($(() => ke(n.value, { 0: $n.Open, 1: $n.Closed })));
20859
20859
  let E = $(() => {
20860
20860
  var S;
20861
20861
  return (S = yt(s)) == null ? void 0 : S.closest("form");
@@ -20873,7 +20873,7 @@ let qn = re({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
20873
20873
  }, { immediate: !0 });
20874
20874
  }), () => {
20875
20875
  let { name: S, modelValue: y, disabled: T, form: M, ...B } = r, L = { open: n.value === 0, disabled: T, value: b.value };
20876
- return Mr(dt, [...S != null && b.value != null ? bh({ [S]: b.value }).map(([F, k]) => Mr(Yv, Gv({ features: gh.Hidden, key: F, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: M, disabled: T, name: F, value: k }))) : [], Ho({ ourProps: {}, theirProps: { ...e, ...hh(B, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: L, slots: t, attrs: e, name: "Listbox" })]);
20876
+ return Mr(dt, [...S != null && b.value != null ? yh({ [S]: b.value }).map(([F, k]) => Mr(Yv, Gv({ features: fh.Hidden, key: F, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: M, disabled: T, name: F, value: k }))) : [], Ho({ ourProps: {}, theirProps: { ...e, ...gh(B, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: L, slots: t, attrs: e, name: "Listbox" })]);
20877
20877
  };
20878
20878
  } });
20879
20879
  re({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: t, slots: e }) {
@@ -20991,7 +20991,7 @@ let Un = re({ name: "ListboxButton", props: { as: { type: [Object, String], defa
20991
20991
  }, 0: () => d.value })), p = r5(a), m = $(() => ({ disabled: r.disabled, value: r.value, get textValue() {
20992
20992
  return p();
20993
20993
  }, domRef: a }));
20994
- er(() => s.registerOption(i, m)), _h(() => s.unregisterOption(i)), er(() => {
20994
+ er(() => s.registerOption(i, m)), zh(() => s.unregisterOption(i)), er(() => {
20995
20995
  st([s.listboxState, d], () => {
20996
20996
  s.listboxState.value === 0 && d.value && ke(s.mode.value, { 1: () => {
20997
20997
  c.value && s.goToOption(Ut.Specific, i);
@@ -21327,7 +21327,7 @@ const l5 = { class: "relative" }, d5 = {
21327
21327
  _: 1,
21328
21328
  __: [3]
21329
21329
  }, 8, ["showDynamicModalBuilder", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
21330
- V(ch, {
21330
+ V(ph, {
21331
21331
  open: S.value,
21332
21332
  title: y.value,
21333
21333
  description: T.value,
@@ -22134,7 +22134,7 @@ const jo = /* @__PURE__ */ ud(a3, [["render", p3]]), u3 = { class: "flex flex-ro
22134
22134
  "onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
22135
22135
  type: "text",
22136
22136
  placeholder: "Type class",
22137
- onKeydown: l[1] || (l[1] = zh((d) => s(), ["enter"])),
22137
+ onKeydown: l[1] || (l[1] = Fh((d) => s(), ["enter"])),
22138
22138
  autocomplete: "off",
22139
22139
  class: "myPrimaryInput border-none rounded-r-none ml-0 w-full"
22140
22140
  }, null, 544), [
@@ -22170,7 +22170,7 @@ const v3 = ["src"], k3 = {
22170
22170
  n.value = !1;
22171
22171
  };
22172
22172
  }, h = async function(g) {
22173
- o.value = !0, g && typeof g == "string" && g.length > 2 && (await x3(g), o.value = !1);
22173
+ o.value = !0, g && typeof g == "string" && g.length > 2 && (await x3(g), await Sp(200), o.value = !1);
22174
22174
  };
22175
22175
  return (g, f) => (v(), C("div", null, [
22176
22176
  Rt(u("div", null, f[0] || (f[0] = [
@@ -22192,7 +22192,7 @@ const v3 = ["src"], k3 = {
22192
22192
  ], 512), [
22193
22193
  [Aa, p.value && !o.value]
22194
22194
  ]),
22195
- V(ch, {
22195
+ V(ph, {
22196
22196
  open: n.value,
22197
22197
  title: i.value,
22198
22198
  description: s.value,
@@ -22975,7 +22975,7 @@ const v3 = ["src"], k3 = {
22975
22975
  }, zk = { class: "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg" }, Fk = { class: "overflow-x-auto" }, Hk = { class: "min-w-full" }, jk = { class: "bg-white divide-y divide-gray-200" }, Vk = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, Wk = { key: 0 }, qk = { key: 1 }, Uk = { key: 0 }, Kk = { class: "px-6 py-4 whitespace-nowrap text-sm text-gray-500" }, Gk = { class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium" }, Jk = { class: "mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor" }, Yk = { class: "mt-4 whitespace-pre-wrap text-white overflow-hidden bg-gray-900" }, Qk = { class: "px-4 pb-8 pt-4 text-white text-xs break-all" }, Xk = { class: "myPrimaryParagraph text-xs text-white" }, Zk = {
22976
22976
  __name: "PageBuilderSettings",
22977
22977
  setup(r) {
22978
- const t = "v3.2.54", e = bt;
22978
+ const t = "v3.2.55", e = bt;
22979
22979
  new St(e);
22980
22980
  const o = O(null), n = $(() => e.getConfigPageBuilder), i = $(() => e.getComponents), s = function(l, d) {
22981
22981
  const c = document.createElement("a");
@@ -23678,7 +23678,7 @@ const kS = {
23678
23678
  }
23679
23679
  },
23680
23680
  setup(r) {
23681
- const t = r, e = jp, o = bt, n = new St(o);
23681
+ const t = r, e = Vp, o = bt, n = new St(o);
23682
23682
  pr("pageBuilderStateStore", o), pr("internalPinia", e), pr("CustomMediaComponent", t.CustomMediaLibraryComponent), pr("CustomBuilderComponents", t.CustomBuilderComponents), pr("closeAddComponentModal", () => {
23683
23683
  h.value = !1;
23684
23684
  });
@@ -23846,7 +23846,7 @@ const kS = {
23846
23846
  A(o).setComponentArrayAddMethod("unshift"), w();
23847
23847
  })
23848
23848
  }, x[23] || (x[23] = [
23849
- Fh('<div class="flex items-center justify-center gap-2"><span class="lg:block hidden"><div class="whitespace-nowrap">Add new Components</div></span><span class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"><span class="myMediumIcon material-symbols-outlined"> interests </span></span></div>', 1)
23849
+ Hh('<div class="flex items-center justify-center gap-2"><span class="lg:block hidden"><div class="whitespace-nowrap">Add new Components</div></span><span class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"><span class="myMediumIcon material-symbols-outlined"> interests </span></span></div>', 1)
23850
23850
  ])),
23851
23851
  u("div", LS, [
23852
23852
  u("button", {
@@ -23958,7 +23958,7 @@ export {
23958
23958
  St as PageBuilderClass,
23959
23959
  Pg as Preview,
23960
23960
  xg as createPinia,
23961
- jp as sharedPageBuilderPinia,
23961
+ Vp as sharedPageBuilderPinia,
23962
23962
  bt as sharedPageBuilderStore,
23963
23963
  F5 as usePageBuilderModal,
23964
23964
  Mg as usePageBuilderStateStore