@xcan-cloud/markdown 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{index-BioYUjcx.cjs → index-6EKBllxX.cjs} +1 -1
  2. package/dist/{index-Cha8COKm.cjs → index-6IhdWeWl.cjs} +1 -1
  3. package/dist/{index-8HXmiR6d.js → index-6RoveRAL.js} +1 -1
  4. package/dist/{index-qJ80CDx2.js → index-B-RaMuYz.js} +1 -1
  5. package/dist/{index-U1-yKG5k.js → index-B-joHEky.js} +1 -1
  6. package/dist/{index-DfVCb0li.cjs → index-B6nSuUUv.cjs} +1 -1
  7. package/dist/{index-DeQd2nwt.js → index-BJDmk8ZB.js} +1 -1
  8. package/dist/{index-BGKHksBj.cjs → index-BNkdxgH9.cjs} +1 -1
  9. package/dist/{index-uY5fbYRT.js → index-BcIouwsS.js} +1 -1
  10. package/dist/{index-C8qszkqt.cjs → index-Bky3deYj.cjs} +22 -20
  11. package/dist/{index-D6_NUYM5.js → index-BxIy6tzf.js} +1 -1
  12. package/dist/{index-ljIZorrF.cjs → index-C165VzBX.cjs} +1 -1
  13. package/dist/{index-4N5Fhhxx.cjs → index-C5X9T4_T.cjs} +1 -1
  14. package/dist/{index-C7ELt4p2.cjs → index-CBdIVyfO.cjs} +1 -1
  15. package/dist/{index-r71_2Ucj.js → index-C_UggGkb.js} +1 -1
  16. package/dist/{index-D2WX6ljJ.cjs → index-CqRp8Yp8.cjs} +1 -1
  17. package/dist/{index-CbGwuYBY.cjs → index-D2v4SDe9.cjs} +1 -1
  18. package/dist/{index-C0B6fIWm.js → index-D4RF5j7W.js} +1 -1
  19. package/dist/{index-w22d-mbt.cjs → index-D7DZ_UKw.cjs} +1 -1
  20. package/dist/{index-BDVNSID8.cjs → index-D9wGVuDW.cjs} +1 -1
  21. package/dist/{index-_Ct2k800.js → index-DEp7S83E.js} +1 -1
  22. package/dist/{index-B6o4La7h.js → index-DGs2U46s.js} +1 -1
  23. package/dist/{index-CfkwCrlM.js → index-DP_oYLEF.js} +1 -1
  24. package/dist/{index-DoY1QyGN.cjs → index-DUUMu4ii.cjs} +1 -1
  25. package/dist/{index-47ShbCe5.js → index-DUX_-QJW.js} +923 -910
  26. package/dist/{index-DPu6IKpn.js → index-DdWOJkZC.js} +1 -1
  27. package/dist/{index-DWiN9Px5.js → index-Do342SqB.js} +1 -1
  28. package/dist/{index-cJNaLP3g.js → index-Dpu0GUhM.js} +1 -1
  29. package/dist/{index-C2GQ5UP3.cjs → index-U82JdFGo.cjs} +1 -1
  30. package/dist/{index-DdtUtlgn.js → index-fFFhFMcL.js} +1 -1
  31. package/dist/{index-Pwl8uswf.cjs → index-jKawzljz.cjs} +1 -1
  32. package/dist/{index-C6xtGHmX.cjs → index-maiVAN8X.cjs} +1 -1
  33. package/dist/{index-CJ_Tlrpr.cjs → index-pFj5vR6k.cjs} +1 -1
  34. package/dist/{index-vvWbiQGM.cjs → index-qPJWfKw6.cjs} +1 -1
  35. package/dist/{index-BkU-cFhY.js → index-sG6gaGQU.js} +1 -1
  36. package/dist/{index-CCrEmlAO.js → index-zo9pZ31h.js} +1 -1
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/styles/markdown-renderer.css +9 -7
  40. package/package.json +1 -1
@@ -1405,13 +1405,13 @@ function Os(t) {
1405
1405
  );
1406
1406
  }
1407
1407
  const Vl = qn(/\d/), cb = qn(/[\dA-Fa-f]/), ub = qn(/[!-/:-@[-`{-~]/);
1408
- function J(t) {
1408
+ function W(t) {
1409
1409
  return t !== null && t < -2;
1410
1410
  }
1411
1411
  function _e(t) {
1412
1412
  return t !== null && (t < 0 || t === 32);
1413
1413
  }
1414
- function ce(t) {
1414
+ function he(t) {
1415
1415
  return t === -2 || t === -1 || t === 32;
1416
1416
  }
1417
1417
  const Ks = qn(new RegExp("\\p{P}|\\p{S}", "u")), or = qn(/\s/);
@@ -1440,15 +1440,15 @@ function Zr(t) {
1440
1440
  }
1441
1441
  return e.join("") + t.slice(r);
1442
1442
  }
1443
- function le(t, e, n, r) {
1443
+ function oe(t, e, n, r) {
1444
1444
  const a = r ? r - 1 : Number.POSITIVE_INFINITY;
1445
1445
  let i = 0;
1446
1446
  return s;
1447
1447
  function s(l) {
1448
- return ce(l) ? (t.enter(n), o(l)) : e(l);
1448
+ return he(l) ? (t.enter(n), o(l)) : e(l);
1449
1449
  }
1450
1450
  function o(l) {
1451
- return ce(l) && i++ < a ? (t.consume(l), o) : (t.exit(n), e(l));
1451
+ return he(l) && i++ < a ? (t.consume(l), o) : (t.exit(n), e(l));
1452
1452
  }
1453
1453
  }
1454
1454
  const hb = {
@@ -1463,7 +1463,7 @@ function db(t) {
1463
1463
  t.consume(o);
1464
1464
  return;
1465
1465
  }
1466
- return t.enter("lineEnding"), t.consume(o), t.exit("lineEnding"), le(t, e, "linePrefix");
1466
+ return t.enter("lineEnding"), t.consume(o), t.exit("lineEnding"), oe(t, e, "linePrefix");
1467
1467
  }
1468
1468
  function a(o) {
1469
1469
  return t.enter("paragraph"), i(o);
@@ -1480,7 +1480,7 @@ function db(t) {
1480
1480
  t.exit("chunkText"), t.exit("paragraph"), t.consume(o);
1481
1481
  return;
1482
1482
  }
1483
- return J(o) ? (t.consume(o), t.exit("chunkText"), i) : (t.consume(o), s);
1483
+ return W(o) ? (t.consume(o), t.exit("chunkText"), i) : (t.consume(o), s);
1484
1484
  }
1485
1485
  }
1486
1486
  const fb = {
@@ -1503,10 +1503,10 @@ function pb(t) {
1503
1503
  if (r++, e.containerState._closeFlow) {
1504
1504
  e.containerState._closeFlow = void 0, a && w();
1505
1505
  const M = e.events.length;
1506
- let S = M, m;
1507
- for (; S--; )
1508
- if (e.events[S][0] === "exit" && e.events[S][1].type === "chunkFlow") {
1509
- m = e.events[S][1].end;
1506
+ let A = M, m;
1507
+ for (; A--; )
1508
+ if (e.events[A][0] === "exit" && e.events[A][1].type === "chunkFlow") {
1509
+ m = e.events[A][1].end;
1510
1510
  break;
1511
1511
  }
1512
1512
  k(r);
@@ -1515,7 +1515,7 @@ function pb(t) {
1515
1515
  e.events[T][1].end = {
1516
1516
  ...m
1517
1517
  }, T++;
1518
- return xt(e.events, S + 1, 0, e.events.slice(M)), e.events.length = T, c(C);
1518
+ return xt(e.events, A + 1, 0, e.events.slice(M)), e.events.length = T, c(C);
1519
1519
  }
1520
1520
  return o(C);
1521
1521
  }
@@ -1557,11 +1557,11 @@ function pb(t) {
1557
1557
  _(t.exit("chunkFlow"), !0), k(0), t.consume(C);
1558
1558
  return;
1559
1559
  }
1560
- return J(C) ? (t.consume(C), _(t.exit("chunkFlow")), r = 0, e.interrupt = void 0, o) : (t.consume(C), y);
1560
+ return W(C) ? (t.consume(C), _(t.exit("chunkFlow")), r = 0, e.interrupt = void 0, o) : (t.consume(C), y);
1561
1561
  }
1562
1562
  function _(C, M) {
1563
- const S = e.sliceStream(C);
1564
- if (M && S.push(null), C.previous = i, i && (i.next = C), i = C, a.defineSkip(C.start), a.write(S), e.parser.lazy[C.start.line]) {
1563
+ const A = e.sliceStream(C);
1564
+ if (M && A.push(null), C.previous = i, i && (i.next = C), i = C, a.defineSkip(C.start), a.write(A), e.parser.lazy[C.start.line]) {
1565
1565
  let m = a.events.length;
1566
1566
  for (; m--; )
1567
1567
  if (
@@ -1591,8 +1591,8 @@ function pb(t) {
1591
1591
  function k(C) {
1592
1592
  let M = n.length;
1593
1593
  for (; M-- > C; ) {
1594
- const S = n[M];
1595
- e.containerState = S[1], S[0].exit.call(e, t);
1594
+ const A = n[M];
1595
+ e.containerState = A[1], A[0].exit.call(e, t);
1596
1596
  }
1597
1597
  n.length = C;
1598
1598
  }
@@ -1601,7 +1601,7 @@ function pb(t) {
1601
1601
  }
1602
1602
  }
1603
1603
  function mb(t, e, n) {
1604
- return le(t, t.attempt(this.parser.constructs.document, e, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
1604
+ return oe(t, t.attempt(this.parser.constructs.document, e, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
1605
1605
  }
1606
1606
  function Ir(t) {
1607
1607
  if (t === null || _e(t) || or(t))
@@ -1741,10 +1741,10 @@ const fi = {
1741
1741
  function bb(t, e, n) {
1742
1742
  return r;
1743
1743
  function r(i) {
1744
- return ce(i) ? le(t, a, "linePrefix")(i) : a(i);
1744
+ return he(i) ? oe(t, a, "linePrefix")(i) : a(i);
1745
1745
  }
1746
1746
  function a(i) {
1747
- return i === null || J(i) ? e(i) : n(i);
1747
+ return i === null || W(i) ? e(i) : n(i);
1748
1748
  }
1749
1749
  }
1750
1750
  const Am = {
@@ -1768,14 +1768,14 @@ function Ob(t, e, n) {
1768
1768
  return n(s);
1769
1769
  }
1770
1770
  function i(s) {
1771
- return ce(s) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(s), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(s));
1771
+ return he(s) ? (t.enter("blockQuotePrefixWhitespace"), t.consume(s), t.exit("blockQuotePrefixWhitespace"), t.exit("blockQuotePrefix"), e) : (t.exit("blockQuotePrefix"), e(s));
1772
1772
  }
1773
1773
  }
1774
1774
  function wb(t, e, n) {
1775
1775
  const r = this;
1776
1776
  return a;
1777
1777
  function a(s) {
1778
- return ce(s) ? le(t, i, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : i(s);
1778
+ return he(s) ? oe(t, i, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : i(s);
1779
1779
  }
1780
1780
  function i(s) {
1781
1781
  return t.attempt(Am, e, n)(s);
@@ -1833,7 +1833,7 @@ const Yh = {
1833
1833
  function Sb(t, e, n) {
1834
1834
  const r = this, a = {
1835
1835
  partial: !0,
1836
- tokenize: S
1836
+ tokenize: A
1837
1837
  };
1838
1838
  let i = 0, s = 0, o;
1839
1839
  return l;
@@ -1845,23 +1845,23 @@ function Sb(t, e, n) {
1845
1845
  return i = T && T[1].type === "linePrefix" ? T[2].sliceSerialize(T[1], !0).length : 0, o = m, t.enter("codeFenced"), t.enter("codeFencedFence"), t.enter("codeFencedFenceSequence"), u(m);
1846
1846
  }
1847
1847
  function u(m) {
1848
- return m === o ? (s++, t.consume(m), u) : s < 3 ? n(m) : (t.exit("codeFencedFenceSequence"), ce(m) ? le(t, h, "whitespace")(m) : h(m));
1848
+ return m === o ? (s++, t.consume(m), u) : s < 3 ? n(m) : (t.exit("codeFencedFenceSequence"), he(m) ? oe(t, h, "whitespace")(m) : h(m));
1849
1849
  }
1850
1850
  function h(m) {
1851
- return m === null || J(m) ? (t.exit("codeFencedFence"), r.interrupt ? e(m) : t.check(Yh, y, M)(m)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
1851
+ return m === null || W(m) ? (t.exit("codeFencedFence"), r.interrupt ? e(m) : t.check(Yh, y, M)(m)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
1852
1852
  contentType: "string"
1853
1853
  }), d(m));
1854
1854
  }
1855
1855
  function d(m) {
1856
- return m === null || J(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), h(m)) : ce(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), le(t, f, "whitespace")(m)) : m === 96 && m === o ? n(m) : (t.consume(m), d);
1856
+ return m === null || W(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), h(m)) : he(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceInfo"), oe(t, f, "whitespace")(m)) : m === 96 && m === o ? n(m) : (t.consume(m), d);
1857
1857
  }
1858
1858
  function f(m) {
1859
- return m === null || J(m) ? h(m) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
1859
+ return m === null || W(m) ? h(m) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
1860
1860
  contentType: "string"
1861
1861
  }), g(m));
1862
1862
  }
1863
1863
  function g(m) {
1864
- return m === null || J(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), h(m)) : m === 96 && m === o ? n(m) : (t.consume(m), g);
1864
+ return m === null || W(m) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), h(m)) : m === 96 && m === o ? n(m) : (t.consume(m), g);
1865
1865
  }
1866
1866
  function y(m) {
1867
1867
  return t.attempt(a, M, _)(m);
@@ -1870,34 +1870,34 @@ function Sb(t, e, n) {
1870
1870
  return t.enter("lineEnding"), t.consume(m), t.exit("lineEnding"), k;
1871
1871
  }
1872
1872
  function k(m) {
1873
- return i > 0 && ce(m) ? le(t, w, "linePrefix", i + 1)(m) : w(m);
1873
+ return i > 0 && he(m) ? oe(t, w, "linePrefix", i + 1)(m) : w(m);
1874
1874
  }
1875
1875
  function w(m) {
1876
- return m === null || J(m) ? t.check(Yh, y, M)(m) : (t.enter("codeFlowValue"), C(m));
1876
+ return m === null || W(m) ? t.check(Yh, y, M)(m) : (t.enter("codeFlowValue"), C(m));
1877
1877
  }
1878
1878
  function C(m) {
1879
- return m === null || J(m) ? (t.exit("codeFlowValue"), w(m)) : (t.consume(m), C);
1879
+ return m === null || W(m) ? (t.exit("codeFlowValue"), w(m)) : (t.consume(m), C);
1880
1880
  }
1881
1881
  function M(m) {
1882
1882
  return t.exit("codeFenced"), e(m);
1883
1883
  }
1884
- function S(m, T, F) {
1884
+ function A(m, T, F) {
1885
1885
  let P = 0;
1886
1886
  return z;
1887
1887
  function z(D) {
1888
1888
  return m.enter("lineEnding"), m.consume(D), m.exit("lineEnding"), B;
1889
1889
  }
1890
1890
  function B(D) {
1891
- return m.enter("codeFencedFence"), ce(D) ? le(m, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : L(D);
1891
+ return m.enter("codeFencedFence"), he(D) ? oe(m, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : L(D);
1892
1892
  }
1893
1893
  function L(D) {
1894
1894
  return D === o ? (m.enter("codeFencedFenceSequence"), q(D)) : F(D);
1895
1895
  }
1896
1896
  function q(D) {
1897
- return D === o ? (P++, m.consume(D), q) : P >= s ? (m.exit("codeFencedFenceSequence"), ce(D) ? le(m, W, "whitespace")(D) : W(D)) : F(D);
1897
+ return D === o ? (P++, m.consume(D), q) : P >= s ? (m.exit("codeFencedFenceSequence"), he(D) ? oe(m, Z, "whitespace")(D) : Z(D)) : F(D);
1898
1898
  }
1899
- function W(D) {
1900
- return D === null || J(D) ? (m.exit("codeFencedFence"), T(D)) : F(D);
1899
+ function Z(D) {
1900
+ return D === null || W(D) ? (m.exit("codeFencedFence"), T(D)) : F(D);
1901
1901
  }
1902
1902
  }
1903
1903
  }
@@ -1922,17 +1922,17 @@ function Cb(t, e, n) {
1922
1922
  const r = this;
1923
1923
  return a;
1924
1924
  function a(c) {
1925
- return t.enter("codeIndented"), le(t, i, "linePrefix", 5)(c);
1925
+ return t.enter("codeIndented"), oe(t, i, "linePrefix", 5)(c);
1926
1926
  }
1927
1927
  function i(c) {
1928
1928
  const u = r.events[r.events.length - 1];
1929
1929
  return u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? s(c) : n(c);
1930
1930
  }
1931
1931
  function s(c) {
1932
- return c === null ? l(c) : J(c) ? t.attempt(vb, s, l)(c) : (t.enter("codeFlowValue"), o(c));
1932
+ return c === null ? l(c) : W(c) ? t.attempt(vb, s, l)(c) : (t.enter("codeFlowValue"), o(c));
1933
1933
  }
1934
1934
  function o(c) {
1935
- return c === null || J(c) ? (t.exit("codeFlowValue"), s(c)) : (t.consume(c), o);
1935
+ return c === null || W(c) ? (t.exit("codeFlowValue"), s(c)) : (t.consume(c), o);
1936
1936
  }
1937
1937
  function l(c) {
1938
1938
  return t.exit("codeIndented"), e(c);
@@ -1942,11 +1942,11 @@ function Db(t, e, n) {
1942
1942
  const r = this;
1943
1943
  return a;
1944
1944
  function a(s) {
1945
- return r.parser.lazy[r.now().line] ? n(s) : J(s) ? (t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), a) : le(t, i, "linePrefix", 5)(s);
1945
+ return r.parser.lazy[r.now().line] ? n(s) : W(s) ? (t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), a) : oe(t, i, "linePrefix", 5)(s);
1946
1946
  }
1947
1947
  function i(s) {
1948
1948
  const o = r.events[r.events.length - 1];
1949
- return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? e(s) : J(s) ? a(s) : n(s);
1949
+ return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? e(s) : W(s) ? a(s) : n(s);
1950
1950
  }
1951
1951
  }
1952
1952
  const zb = {
@@ -1981,10 +1981,10 @@ function Nb(t, e, n) {
1981
1981
  return h === 96 ? (t.consume(h), r++, o) : (t.exit("codeTextSequence"), l(h));
1982
1982
  }
1983
1983
  function l(h) {
1984
- return h === null ? n(h) : h === 32 ? (t.enter("space"), t.consume(h), t.exit("space"), l) : h === 96 ? (i = t.enter("codeTextSequence"), a = 0, u(h)) : J(h) ? (t.enter("lineEnding"), t.consume(h), t.exit("lineEnding"), l) : (t.enter("codeTextData"), c(h));
1984
+ return h === null ? n(h) : h === 32 ? (t.enter("space"), t.consume(h), t.exit("space"), l) : h === 96 ? (i = t.enter("codeTextSequence"), a = 0, u(h)) : W(h) ? (t.enter("lineEnding"), t.consume(h), t.exit("lineEnding"), l) : (t.enter("codeTextData"), c(h));
1985
1985
  }
1986
1986
  function c(h) {
1987
- return h === null || h === 32 || h === 96 || J(h) ? (t.exit("codeTextData"), l(h)) : (t.consume(h), c);
1987
+ return h === null || h === 32 || h === 96 || W(h) ? (t.exit("codeTextData"), l(h)) : (t.consume(h), c);
1988
1988
  }
1989
1989
  function u(h) {
1990
1990
  return h === 96 ? (t.consume(h), a++, u) : a === r ? (t.exit("codeTextSequence"), t.exit("codeText"), e(h)) : (i.type = "codeTextData", c(h));
@@ -2230,7 +2230,7 @@ function Qb(t, e) {
2230
2230
  }), a(o);
2231
2231
  }
2232
2232
  function a(o) {
2233
- return o === null ? i(o) : J(o) ? t.check(Fb, s, i)(o) : (t.consume(o), a);
2233
+ return o === null ? i(o) : W(o) ? t.check(Fb, s, i)(o) : (t.consume(o), a);
2234
2234
  }
2235
2235
  function i(o) {
2236
2236
  return t.exit("chunkContent"), t.exit("content"), e(o);
@@ -2246,10 +2246,10 @@ function $b(t, e, n) {
2246
2246
  const r = this;
2247
2247
  return a;
2248
2248
  function a(s) {
2249
- return t.exit("chunkContent"), t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), le(t, i, "linePrefix");
2249
+ return t.exit("chunkContent"), t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), oe(t, i, "linePrefix");
2250
2250
  }
2251
2251
  function i(s) {
2252
- if (s === null || J(s))
2252
+ if (s === null || W(s))
2253
2253
  return n(s);
2254
2254
  const o = r.events[r.events.length - 1];
2255
2255
  return !r.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? e(s) : t.interrupt(r.parser.constructs.flow, n, e)(s);
@@ -2270,7 +2270,7 @@ function zm(t, e, n, r, a, i, s, o, l) {
2270
2270
  }), f(k));
2271
2271
  }
2272
2272
  function f(k) {
2273
- return k === 62 ? (t.exit("chunkString"), t.exit(o), d(k)) : k === null || k === 60 || J(k) ? n(k) : (t.consume(k), k === 92 ? g : f);
2273
+ return k === 62 ? (t.exit("chunkString"), t.exit(o), d(k)) : k === null || k === 60 || W(k) ? n(k) : (t.consume(k), k === 92 ? g : f);
2274
2274
  }
2275
2275
  function g(k) {
2276
2276
  return k === 60 || k === 62 || k === 92 ? (t.consume(k), f) : f(k);
@@ -2295,12 +2295,12 @@ function Pm(t, e, n, r, a, i) {
2295
2295
  // which doesn’t need this.
2296
2296
  // Hidden footnotes hook.
2297
2297
  /* c8 ignore next 3 */
2298
- f === 94 && !o && "_hiddenFootnoteSupport" in s.parser.constructs ? n(f) : f === 93 ? (t.exit(i), t.enter(a), t.consume(f), t.exit(a), t.exit(r), e) : J(f) ? (t.enter("lineEnding"), t.consume(f), t.exit("lineEnding"), u) : (t.enter("chunkString", {
2298
+ f === 94 && !o && "_hiddenFootnoteSupport" in s.parser.constructs ? n(f) : f === 93 ? (t.exit(i), t.enter(a), t.consume(f), t.exit(a), t.exit(r), e) : W(f) ? (t.enter("lineEnding"), t.consume(f), t.exit("lineEnding"), u) : (t.enter("chunkString", {
2299
2299
  contentType: "string"
2300
2300
  }), h(f));
2301
2301
  }
2302
2302
  function h(f) {
2303
- return f === null || f === 91 || f === 93 || J(f) || o++ > 999 ? (t.exit("chunkString"), u(f)) : (t.consume(f), l || (l = !ce(f)), f === 92 ? d : h);
2303
+ return f === null || f === 91 || f === 93 || W(f) || o++ > 999 ? (t.exit("chunkString"), u(f)) : (t.consume(f), l || (l = !he(f)), f === 92 ? d : h);
2304
2304
  }
2305
2305
  function d(f) {
2306
2306
  return f === 91 || f === 92 || f === 93 ? (t.consume(f), o++, h) : h(f);
@@ -2316,12 +2316,12 @@ function Im(t, e, n, r, a, i) {
2316
2316
  return d === s ? (t.enter(a), t.consume(d), t.exit(a), t.exit(r), e) : (t.enter(i), c(d));
2317
2317
  }
2318
2318
  function c(d) {
2319
- return d === s ? (t.exit(i), l(s)) : d === null ? n(d) : J(d) ? (t.enter("lineEnding"), t.consume(d), t.exit("lineEnding"), le(t, c, "linePrefix")) : (t.enter("chunkString", {
2319
+ return d === s ? (t.exit(i), l(s)) : d === null ? n(d) : W(d) ? (t.enter("lineEnding"), t.consume(d), t.exit("lineEnding"), oe(t, c, "linePrefix")) : (t.enter("chunkString", {
2320
2320
  contentType: "string"
2321
2321
  }), u(d));
2322
2322
  }
2323
2323
  function u(d) {
2324
- return d === s || d === null || J(d) ? (t.exit("chunkString"), c(d)) : (t.consume(d), d === 92 ? h : u);
2324
+ return d === s || d === null || W(d) ? (t.exit("chunkString"), c(d)) : (t.consume(d), d === 92 ? h : u);
2325
2325
  }
2326
2326
  function h(d) {
2327
2327
  return d === s || d === 92 ? (t.consume(d), u) : u(d);
@@ -2331,7 +2331,7 @@ function kn(t, e) {
2331
2331
  let n;
2332
2332
  return r;
2333
2333
  function r(a) {
2334
- return J(a) ? (t.enter("lineEnding"), t.consume(a), t.exit("lineEnding"), n = !0, r) : ce(a) ? le(t, r, n ? "linePrefix" : "lineSuffix")(a) : e(a);
2334
+ return W(a) ? (t.enter("lineEnding"), t.consume(a), t.exit("lineEnding"), n = !0, r) : he(a) ? oe(t, r, n ? "linePrefix" : "lineSuffix")(a) : e(a);
2335
2335
  }
2336
2336
  }
2337
2337
  const Ub = {
@@ -2383,10 +2383,10 @@ function Hb(t, e, n) {
2383
2383
  return t.attempt(jb, h, h)(f);
2384
2384
  }
2385
2385
  function h(f) {
2386
- return ce(f) ? le(t, d, "whitespace")(f) : d(f);
2386
+ return he(f) ? oe(t, d, "whitespace")(f) : d(f);
2387
2387
  }
2388
2388
  function d(f) {
2389
- return f === null || J(f) ? (t.exit("definition"), r.parser.defined.push(a), e(f)) : n(f);
2389
+ return f === null || W(f) ? (t.exit("definition"), r.parser.defined.push(a), e(f)) : n(f);
2390
2390
  }
2391
2391
  }
2392
2392
  function qb(t, e, n) {
@@ -2398,10 +2398,10 @@ function qb(t, e, n) {
2398
2398
  return Im(t, i, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
2399
2399
  }
2400
2400
  function i(o) {
2401
- return ce(o) ? le(t, s, "whitespace")(o) : s(o);
2401
+ return he(o) ? oe(t, s, "whitespace")(o) : s(o);
2402
2402
  }
2403
2403
  function s(o) {
2404
- return o === null || J(o) ? e(o) : n(o);
2404
+ return o === null || W(o) ? e(o) : n(o);
2405
2405
  }
2406
2406
  }
2407
2407
  const Xb = {
@@ -2414,7 +2414,7 @@ function Yb(t, e, n) {
2414
2414
  return t.enter("hardBreakEscape"), t.consume(i), a;
2415
2415
  }
2416
2416
  function a(i) {
2417
- return J(i) ? (t.exit("hardBreakEscape"), e(i)) : n(i);
2417
+ return W(i) ? (t.exit("hardBreakEscape"), e(i)) : n(i);
2418
2418
  }
2419
2419
  }
2420
2420
  const Gb = {
@@ -2448,7 +2448,7 @@ function Zb(t, e, n) {
2448
2448
  return u === 35 && r++ < 6 ? (t.consume(u), s) : u === null || _e(u) ? (t.exit("atxHeadingSequence"), o(u)) : n(u);
2449
2449
  }
2450
2450
  function o(u) {
2451
- return u === 35 ? (t.enter("atxHeadingSequence"), l(u)) : u === null || J(u) ? (t.exit("atxHeading"), e(u)) : ce(u) ? le(t, o, "whitespace")(u) : (t.enter("atxHeadingText"), c(u));
2451
+ return u === 35 ? (t.enter("atxHeadingSequence"), l(u)) : u === null || W(u) ? (t.exit("atxHeading"), e(u)) : he(u) ? oe(t, o, "whitespace")(u) : (t.enter("atxHeadingText"), c(u));
2452
2452
  }
2453
2453
  function l(u) {
2454
2454
  return u === 35 ? (t.consume(u), l) : (t.exit("atxHeadingSequence"), o(u));
@@ -2542,111 +2542,111 @@ function nO(t, e, n) {
2542
2542
  const r = this;
2543
2543
  let a, i, s, o, l;
2544
2544
  return c;
2545
- function c(A) {
2546
- return u(A);
2545
+ function c(S) {
2546
+ return u(S);
2547
2547
  }
2548
- function u(A) {
2549
- return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(A), h;
2548
+ function u(S) {
2549
+ return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(S), h;
2550
2550
  }
2551
- function h(A) {
2552
- return A === 33 ? (t.consume(A), d) : A === 47 ? (t.consume(A), i = !0, y) : A === 63 ? (t.consume(A), a = 3, r.interrupt ? e : x) : Ve(A) ? (t.consume(A), s = String.fromCharCode(A), _) : n(A);
2551
+ function h(S) {
2552
+ return S === 33 ? (t.consume(S), d) : S === 47 ? (t.consume(S), i = !0, y) : S === 63 ? (t.consume(S), a = 3, r.interrupt ? e : x) : Ve(S) ? (t.consume(S), s = String.fromCharCode(S), _) : n(S);
2553
2553
  }
2554
- function d(A) {
2555
- return A === 45 ? (t.consume(A), a = 2, f) : A === 91 ? (t.consume(A), a = 5, o = 0, g) : Ve(A) ? (t.consume(A), a = 4, r.interrupt ? e : x) : n(A);
2554
+ function d(S) {
2555
+ return S === 45 ? (t.consume(S), a = 2, f) : S === 91 ? (t.consume(S), a = 5, o = 0, g) : Ve(S) ? (t.consume(S), a = 4, r.interrupt ? e : x) : n(S);
2556
2556
  }
2557
- function f(A) {
2558
- return A === 45 ? (t.consume(A), r.interrupt ? e : x) : n(A);
2557
+ function f(S) {
2558
+ return S === 45 ? (t.consume(S), r.interrupt ? e : x) : n(S);
2559
2559
  }
2560
- function g(A) {
2560
+ function g(S) {
2561
2561
  const we = "CDATA[";
2562
- return A === we.charCodeAt(o++) ? (t.consume(A), o === we.length ? r.interrupt ? e : L : g) : n(A);
2562
+ return S === we.charCodeAt(o++) ? (t.consume(S), o === we.length ? r.interrupt ? e : L : g) : n(S);
2563
2563
  }
2564
- function y(A) {
2565
- return Ve(A) ? (t.consume(A), s = String.fromCharCode(A), _) : n(A);
2564
+ function y(S) {
2565
+ return Ve(S) ? (t.consume(S), s = String.fromCharCode(S), _) : n(S);
2566
2566
  }
2567
- function _(A) {
2568
- if (A === null || A === 47 || A === 62 || _e(A)) {
2569
- const we = A === 47, Te = s.toLowerCase();
2570
- return !we && !i && Vh.includes(Te) ? (a = 1, r.interrupt ? e(A) : L(A)) : Wb.includes(s.toLowerCase()) ? (a = 6, we ? (t.consume(A), k) : r.interrupt ? e(A) : L(A)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(A) : i ? w(A) : C(A));
2567
+ function _(S) {
2568
+ if (S === null || S === 47 || S === 62 || _e(S)) {
2569
+ const we = S === 47, Te = s.toLowerCase();
2570
+ return !we && !i && Vh.includes(Te) ? (a = 1, r.interrupt ? e(S) : L(S)) : Wb.includes(s.toLowerCase()) ? (a = 6, we ? (t.consume(S), k) : r.interrupt ? e(S) : L(S)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(S) : i ? w(S) : C(S));
2571
2571
  }
2572
- return A === 45 || Xe(A) ? (t.consume(A), s += String.fromCharCode(A), _) : n(A);
2572
+ return S === 45 || Xe(S) ? (t.consume(S), s += String.fromCharCode(S), _) : n(S);
2573
2573
  }
2574
- function k(A) {
2575
- return A === 62 ? (t.consume(A), r.interrupt ? e : L) : n(A);
2574
+ function k(S) {
2575
+ return S === 62 ? (t.consume(S), r.interrupt ? e : L) : n(S);
2576
2576
  }
2577
- function w(A) {
2578
- return ce(A) ? (t.consume(A), w) : z(A);
2577
+ function w(S) {
2578
+ return he(S) ? (t.consume(S), w) : z(S);
2579
2579
  }
2580
- function C(A) {
2581
- return A === 47 ? (t.consume(A), z) : A === 58 || A === 95 || Ve(A) ? (t.consume(A), M) : ce(A) ? (t.consume(A), C) : z(A);
2580
+ function C(S) {
2581
+ return S === 47 ? (t.consume(S), z) : S === 58 || S === 95 || Ve(S) ? (t.consume(S), M) : he(S) ? (t.consume(S), C) : z(S);
2582
2582
  }
2583
- function M(A) {
2584
- return A === 45 || A === 46 || A === 58 || A === 95 || Xe(A) ? (t.consume(A), M) : S(A);
2583
+ function M(S) {
2584
+ return S === 45 || S === 46 || S === 58 || S === 95 || Xe(S) ? (t.consume(S), M) : A(S);
2585
2585
  }
2586
- function S(A) {
2587
- return A === 61 ? (t.consume(A), m) : ce(A) ? (t.consume(A), S) : C(A);
2586
+ function A(S) {
2587
+ return S === 61 ? (t.consume(S), m) : he(S) ? (t.consume(S), A) : C(S);
2588
2588
  }
2589
- function m(A) {
2590
- return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (t.consume(A), l = A, T) : ce(A) ? (t.consume(A), m) : F(A);
2589
+ function m(S) {
2590
+ return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (t.consume(S), l = S, T) : he(S) ? (t.consume(S), m) : F(S);
2591
2591
  }
2592
- function T(A) {
2593
- return A === l ? (t.consume(A), l = null, P) : A === null || J(A) ? n(A) : (t.consume(A), T);
2592
+ function T(S) {
2593
+ return S === l ? (t.consume(S), l = null, P) : S === null || W(S) ? n(S) : (t.consume(S), T);
2594
2594
  }
2595
- function F(A) {
2596
- return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || _e(A) ? S(A) : (t.consume(A), F);
2595
+ function F(S) {
2596
+ return S === null || S === 34 || S === 39 || S === 47 || S === 60 || S === 61 || S === 62 || S === 96 || _e(S) ? A(S) : (t.consume(S), F);
2597
2597
  }
2598
- function P(A) {
2599
- return A === 47 || A === 62 || ce(A) ? C(A) : n(A);
2598
+ function P(S) {
2599
+ return S === 47 || S === 62 || he(S) ? C(S) : n(S);
2600
2600
  }
2601
- function z(A) {
2602
- return A === 62 ? (t.consume(A), B) : n(A);
2601
+ function z(S) {
2602
+ return S === 62 ? (t.consume(S), B) : n(S);
2603
2603
  }
2604
- function B(A) {
2605
- return A === null || J(A) ? L(A) : ce(A) ? (t.consume(A), B) : n(A);
2604
+ function B(S) {
2605
+ return S === null || W(S) ? L(S) : he(S) ? (t.consume(S), B) : n(S);
2606
2606
  }
2607
- function L(A) {
2608
- return A === 45 && a === 2 ? (t.consume(A), G) : A === 60 && a === 1 ? (t.consume(A), ne) : A === 62 && a === 4 ? (t.consume(A), K) : A === 63 && a === 3 ? (t.consume(A), x) : A === 93 && a === 5 ? (t.consume(A), fe) : J(A) && (a === 6 || a === 7) ? (t.exit("htmlFlowData"), t.check(Jb, oe, q)(A)) : A === null || J(A) ? (t.exit("htmlFlowData"), q(A)) : (t.consume(A), L);
2607
+ function L(S) {
2608
+ return S === 45 && a === 2 ? (t.consume(S), K) : S === 60 && a === 1 ? (t.consume(S), J) : S === 62 && a === 4 ? (t.consume(S), ee) : S === 63 && a === 3 ? (t.consume(S), x) : S === 93 && a === 5 ? (t.consume(S), le) : W(S) && (a === 6 || a === 7) ? (t.exit("htmlFlowData"), t.check(Jb, ce, q)(S)) : S === null || W(S) ? (t.exit("htmlFlowData"), q(S)) : (t.consume(S), L);
2609
2609
  }
2610
- function q(A) {
2611
- return t.check(eO, W, oe)(A);
2610
+ function q(S) {
2611
+ return t.check(eO, Z, ce)(S);
2612
2612
  }
2613
- function W(A) {
2614
- return t.enter("lineEnding"), t.consume(A), t.exit("lineEnding"), D;
2613
+ function Z(S) {
2614
+ return t.enter("lineEnding"), t.consume(S), t.exit("lineEnding"), D;
2615
2615
  }
2616
- function D(A) {
2617
- return A === null || J(A) ? q(A) : (t.enter("htmlFlowData"), L(A));
2616
+ function D(S) {
2617
+ return S === null || W(S) ? q(S) : (t.enter("htmlFlowData"), L(S));
2618
2618
  }
2619
- function G(A) {
2620
- return A === 45 ? (t.consume(A), x) : L(A);
2619
+ function K(S) {
2620
+ return S === 45 ? (t.consume(S), x) : L(S);
2621
2621
  }
2622
- function ne(A) {
2623
- return A === 47 ? (t.consume(A), s = "", de) : L(A);
2622
+ function J(S) {
2623
+ return S === 47 ? (t.consume(S), s = "", ue) : L(S);
2624
2624
  }
2625
- function de(A) {
2626
- if (A === 62) {
2625
+ function ue(S) {
2626
+ if (S === 62) {
2627
2627
  const we = s.toLowerCase();
2628
- return Vh.includes(we) ? (t.consume(A), K) : L(A);
2628
+ return Vh.includes(we) ? (t.consume(S), ee) : L(S);
2629
2629
  }
2630
- return Ve(A) && s.length < 8 ? (t.consume(A), s += String.fromCharCode(A), de) : L(A);
2630
+ return Ve(S) && s.length < 8 ? (t.consume(S), s += String.fromCharCode(S), ue) : L(S);
2631
2631
  }
2632
- function fe(A) {
2633
- return A === 93 ? (t.consume(A), x) : L(A);
2632
+ function le(S) {
2633
+ return S === 93 ? (t.consume(S), x) : L(S);
2634
2634
  }
2635
- function x(A) {
2636
- return A === 62 ? (t.consume(A), K) : A === 45 && a === 2 ? (t.consume(A), x) : L(A);
2635
+ function x(S) {
2636
+ return S === 62 ? (t.consume(S), ee) : S === 45 && a === 2 ? (t.consume(S), x) : L(S);
2637
2637
  }
2638
- function K(A) {
2639
- return A === null || J(A) ? (t.exit("htmlFlowData"), oe(A)) : (t.consume(A), K);
2638
+ function ee(S) {
2639
+ return S === null || W(S) ? (t.exit("htmlFlowData"), ce(S)) : (t.consume(S), ee);
2640
2640
  }
2641
- function oe(A) {
2642
- return t.exit("htmlFlow"), e(A);
2641
+ function ce(S) {
2642
+ return t.exit("htmlFlow"), e(S);
2643
2643
  }
2644
2644
  }
2645
2645
  function rO(t, e, n) {
2646
2646
  const r = this;
2647
2647
  return a;
2648
2648
  function a(s) {
2649
- return J(s) ? (t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), i) : n(s);
2649
+ return W(s) ? (t.enter("lineEnding"), t.consume(s), t.exit("lineEnding"), i) : n(s);
2650
2650
  }
2651
2651
  function i(s) {
2652
2652
  return r.parser.lazy[r.now().line] ? n(s) : e(s);
@@ -2670,7 +2670,7 @@ function sO(t, e, n) {
2670
2670
  return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(x), l;
2671
2671
  }
2672
2672
  function l(x) {
2673
- return x === 33 ? (t.consume(x), c) : x === 47 ? (t.consume(x), S) : x === 63 ? (t.consume(x), C) : Ve(x) ? (t.consume(x), F) : n(x);
2673
+ return x === 33 ? (t.consume(x), c) : x === 47 ? (t.consume(x), A) : x === 63 ? (t.consume(x), C) : Ve(x) ? (t.consume(x), F) : n(x);
2674
2674
  }
2675
2675
  function c(x) {
2676
2676
  return x === 45 ? (t.consume(x), u) : x === 91 ? (t.consume(x), i = 0, g) : Ve(x) ? (t.consume(x), w) : n(x);
@@ -2679,79 +2679,79 @@ function sO(t, e, n) {
2679
2679
  return x === 45 ? (t.consume(x), f) : n(x);
2680
2680
  }
2681
2681
  function h(x) {
2682
- return x === null ? n(x) : x === 45 ? (t.consume(x), d) : J(x) ? (s = h, ne(x)) : (t.consume(x), h);
2682
+ return x === null ? n(x) : x === 45 ? (t.consume(x), d) : W(x) ? (s = h, J(x)) : (t.consume(x), h);
2683
2683
  }
2684
2684
  function d(x) {
2685
2685
  return x === 45 ? (t.consume(x), f) : h(x);
2686
2686
  }
2687
2687
  function f(x) {
2688
- return x === 62 ? G(x) : x === 45 ? d(x) : h(x);
2688
+ return x === 62 ? K(x) : x === 45 ? d(x) : h(x);
2689
2689
  }
2690
2690
  function g(x) {
2691
- const K = "CDATA[";
2692
- return x === K.charCodeAt(i++) ? (t.consume(x), i === K.length ? y : g) : n(x);
2691
+ const ee = "CDATA[";
2692
+ return x === ee.charCodeAt(i++) ? (t.consume(x), i === ee.length ? y : g) : n(x);
2693
2693
  }
2694
2694
  function y(x) {
2695
- return x === null ? n(x) : x === 93 ? (t.consume(x), _) : J(x) ? (s = y, ne(x)) : (t.consume(x), y);
2695
+ return x === null ? n(x) : x === 93 ? (t.consume(x), _) : W(x) ? (s = y, J(x)) : (t.consume(x), y);
2696
2696
  }
2697
2697
  function _(x) {
2698
2698
  return x === 93 ? (t.consume(x), k) : y(x);
2699
2699
  }
2700
2700
  function k(x) {
2701
- return x === 62 ? G(x) : x === 93 ? (t.consume(x), k) : y(x);
2701
+ return x === 62 ? K(x) : x === 93 ? (t.consume(x), k) : y(x);
2702
2702
  }
2703
2703
  function w(x) {
2704
- return x === null || x === 62 ? G(x) : J(x) ? (s = w, ne(x)) : (t.consume(x), w);
2704
+ return x === null || x === 62 ? K(x) : W(x) ? (s = w, J(x)) : (t.consume(x), w);
2705
2705
  }
2706
2706
  function C(x) {
2707
- return x === null ? n(x) : x === 63 ? (t.consume(x), M) : J(x) ? (s = C, ne(x)) : (t.consume(x), C);
2707
+ return x === null ? n(x) : x === 63 ? (t.consume(x), M) : W(x) ? (s = C, J(x)) : (t.consume(x), C);
2708
2708
  }
2709
2709
  function M(x) {
2710
- return x === 62 ? G(x) : C(x);
2710
+ return x === 62 ? K(x) : C(x);
2711
2711
  }
2712
- function S(x) {
2712
+ function A(x) {
2713
2713
  return Ve(x) ? (t.consume(x), m) : n(x);
2714
2714
  }
2715
2715
  function m(x) {
2716
2716
  return x === 45 || Xe(x) ? (t.consume(x), m) : T(x);
2717
2717
  }
2718
2718
  function T(x) {
2719
- return J(x) ? (s = T, ne(x)) : ce(x) ? (t.consume(x), T) : G(x);
2719
+ return W(x) ? (s = T, J(x)) : he(x) ? (t.consume(x), T) : K(x);
2720
2720
  }
2721
2721
  function F(x) {
2722
2722
  return x === 45 || Xe(x) ? (t.consume(x), F) : x === 47 || x === 62 || _e(x) ? P(x) : n(x);
2723
2723
  }
2724
2724
  function P(x) {
2725
- return x === 47 ? (t.consume(x), G) : x === 58 || x === 95 || Ve(x) ? (t.consume(x), z) : J(x) ? (s = P, ne(x)) : ce(x) ? (t.consume(x), P) : G(x);
2725
+ return x === 47 ? (t.consume(x), K) : x === 58 || x === 95 || Ve(x) ? (t.consume(x), z) : W(x) ? (s = P, J(x)) : he(x) ? (t.consume(x), P) : K(x);
2726
2726
  }
2727
2727
  function z(x) {
2728
2728
  return x === 45 || x === 46 || x === 58 || x === 95 || Xe(x) ? (t.consume(x), z) : B(x);
2729
2729
  }
2730
2730
  function B(x) {
2731
- return x === 61 ? (t.consume(x), L) : J(x) ? (s = B, ne(x)) : ce(x) ? (t.consume(x), B) : P(x);
2731
+ return x === 61 ? (t.consume(x), L) : W(x) ? (s = B, J(x)) : he(x) ? (t.consume(x), B) : P(x);
2732
2732
  }
2733
2733
  function L(x) {
2734
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (t.consume(x), a = x, q) : J(x) ? (s = L, ne(x)) : ce(x) ? (t.consume(x), L) : (t.consume(x), W);
2734
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (t.consume(x), a = x, q) : W(x) ? (s = L, J(x)) : he(x) ? (t.consume(x), L) : (t.consume(x), Z);
2735
2735
  }
2736
2736
  function q(x) {
2737
- return x === a ? (t.consume(x), a = void 0, D) : x === null ? n(x) : J(x) ? (s = q, ne(x)) : (t.consume(x), q);
2737
+ return x === a ? (t.consume(x), a = void 0, D) : x === null ? n(x) : W(x) ? (s = q, J(x)) : (t.consume(x), q);
2738
2738
  }
2739
- function W(x) {
2740
- return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || _e(x) ? P(x) : (t.consume(x), W);
2739
+ function Z(x) {
2740
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 96 ? n(x) : x === 47 || x === 62 || _e(x) ? P(x) : (t.consume(x), Z);
2741
2741
  }
2742
2742
  function D(x) {
2743
2743
  return x === 47 || x === 62 || _e(x) ? P(x) : n(x);
2744
2744
  }
2745
- function G(x) {
2745
+ function K(x) {
2746
2746
  return x === 62 ? (t.consume(x), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(x);
2747
2747
  }
2748
- function ne(x) {
2749
- return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(x), t.exit("lineEnding"), de;
2748
+ function J(x) {
2749
+ return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(x), t.exit("lineEnding"), ue;
2750
2750
  }
2751
- function de(x) {
2752
- return ce(x) ? le(t, fe, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : fe(x);
2751
+ function ue(x) {
2752
+ return he(x) ? oe(t, le, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : le(x);
2753
2753
  }
2754
- function fe(x) {
2754
+ function le(x) {
2755
2755
  return t.enter("htmlTextData"), s(x);
2756
2756
  }
2757
2757
  }
@@ -2936,7 +2936,7 @@ const $o = {
2936
2936
  function bO(t, e) {
2937
2937
  return n;
2938
2938
  function n(r) {
2939
- return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), le(t, e, "linePrefix");
2939
+ return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), oe(t, e, "linePrefix");
2940
2940
  }
2941
2941
  }
2942
2942
  const cs = {
@@ -2953,10 +2953,10 @@ function OO(t, e, n) {
2953
2953
  return a = c, o(c);
2954
2954
  }
2955
2955
  function o(c) {
2956
- return c === a ? (t.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || J(c)) ? (t.exit("thematicBreak"), e(c)) : n(c);
2956
+ return c === a ? (t.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || W(c)) ? (t.exit("thematicBreak"), e(c)) : n(c);
2957
2957
  }
2958
2958
  function l(c) {
2959
- return c === a ? (t.consume(c), r++, l) : (t.exit("thematicBreakSequence"), ce(c) ? le(t, o, "whitespace")(c) : o(c));
2959
+ return c === a ? (t.consume(c), r++, l) : (t.exit("thematicBreakSequence"), he(c) ? oe(t, o, "whitespace")(c) : o(c));
2960
2960
  }
2961
2961
  }
2962
2962
  const ct = {
@@ -3004,7 +3004,7 @@ function EO(t, e, n) {
3004
3004
  return r.containerState.initialBlankLine = !0, i++, d(f);
3005
3005
  }
3006
3006
  function h(f) {
3007
- return ce(f) ? (t.enter("listItemPrefixWhitespace"), t.consume(f), t.exit("listItemPrefixWhitespace"), d) : n(f);
3007
+ return he(f) ? (t.enter("listItemPrefixWhitespace"), t.consume(f), t.exit("listItemPrefixWhitespace"), d) : n(f);
3008
3008
  }
3009
3009
  function d(f) {
3010
3010
  return r.containerState.size = i + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, e(f);
@@ -3014,18 +3014,18 @@ function xO(t, e, n) {
3014
3014
  const r = this;
3015
3015
  return r.containerState._closeFlow = void 0, t.check(fi, a, i);
3016
3016
  function a(o) {
3017
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, le(t, e, "listItemIndent", r.containerState.size + 1)(o);
3017
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, oe(t, e, "listItemIndent", r.containerState.size + 1)(o);
3018
3018
  }
3019
3019
  function i(o) {
3020
- return r.containerState.furtherBlankLines || !ce(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(TO, e, s)(o));
3020
+ return r.containerState.furtherBlankLines || !he(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, t.attempt(TO, e, s)(o));
3021
3021
  }
3022
3022
  function s(o) {
3023
- return r.containerState._closeFlow = !0, r.interrupt = void 0, le(t, t.attempt(ct, e, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o);
3023
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, oe(t, t.attempt(ct, e, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o);
3024
3024
  }
3025
3025
  }
3026
3026
  function SO(t, e, n) {
3027
3027
  const r = this;
3028
- return le(t, a, "listItemIndent", r.containerState.size + 1);
3028
+ return oe(t, a, "listItemIndent", r.containerState.size + 1);
3029
3029
  function a(i) {
3030
3030
  const s = r.events[r.events.length - 1];
3031
3031
  return s && s[1].type === "listItemIndent" && s[2].sliceSerialize(s[1], !0).length === r.containerState.size ? e(i) : n(i);
@@ -3036,10 +3036,10 @@ function AO(t) {
3036
3036
  }
3037
3037
  function vO(t, e, n) {
3038
3038
  const r = this;
3039
- return le(t, a, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3039
+ return oe(t, a, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
3040
3040
  function a(i) {
3041
3041
  const s = r.events[r.events.length - 1];
3042
- return !ce(i) && s && s[1].type === "listItemPrefixWhitespace" ? e(i) : n(i);
3042
+ return !he(i) && s && s[1].type === "listItemPrefixWhitespace" ? e(i) : n(i);
3043
3043
  }
3044
3044
  }
3045
3045
  const Zh = {
@@ -3088,10 +3088,10 @@ function DO(t, e, n) {
3088
3088
  return t.enter("setextHeadingLineSequence"), o(c);
3089
3089
  }
3090
3090
  function o(c) {
3091
- return c === a ? (t.consume(c), o) : (t.exit("setextHeadingLineSequence"), ce(c) ? le(t, l, "lineSuffix")(c) : l(c));
3091
+ return c === a ? (t.consume(c), o) : (t.exit("setextHeadingLineSequence"), he(c) ? oe(t, l, "lineSuffix")(c) : l(c));
3092
3092
  }
3093
3093
  function l(c) {
3094
- return c === null || J(c) ? (t.exit("setextHeadingLine"), e(c)) : n(c);
3094
+ return c === null || W(c) ? (t.exit("setextHeadingLine"), e(c)) : n(c);
3095
3095
  }
3096
3096
  }
3097
3097
  const zO = {
@@ -3103,7 +3103,7 @@ function PO(t) {
3103
3103
  fi,
3104
3104
  r,
3105
3105
  // Try to parse initial flow (essentially, only code).
3106
- t.attempt(this.parser.constructs.flowInitial, a, le(t, t.attempt(this.parser.constructs.flow, a, t.attempt(Mb, a)), "linePrefix"))
3106
+ t.attempt(this.parser.constructs.flowInitial, a, oe(t, t.attempt(this.parser.constructs.flow, a, t.attempt(Mb, a)), "linePrefix"))
3107
3107
  );
3108
3108
  return n;
3109
3109
  function r(i) {
@@ -3286,7 +3286,7 @@ function YO(t, e, n) {
3286
3286
  const a = {}, i = [];
3287
3287
  let s = [], o = [];
3288
3288
  const l = {
3289
- attempt: T(S),
3289
+ attempt: T(A),
3290
3290
  check: T(m),
3291
3291
  consume: w,
3292
3292
  enter: C,
@@ -3322,14 +3322,14 @@ function YO(t, e, n) {
3322
3322
  _bufferIndex: B,
3323
3323
  _index: L,
3324
3324
  line: q,
3325
- column: W,
3325
+ column: Z,
3326
3326
  offset: D
3327
3327
  } = r;
3328
3328
  return {
3329
3329
  _bufferIndex: B,
3330
3330
  _index: L,
3331
3331
  line: q,
3332
- column: W,
3332
+ column: Z,
3333
3333
  offset: D
3334
3334
  };
3335
3335
  }
@@ -3351,7 +3351,7 @@ function YO(t, e, n) {
3351
3351
  u = u(B);
3352
3352
  }
3353
3353
  function w(B) {
3354
- J(B) ? (r.line++, r.column = 1, r.offset += B === -3 ? 2 : 1, z()) : B !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3354
+ W(B) ? (r.line++, r.column = 1, r.offset += B === -3 ? 2 : 1, z()) : B !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3355
3355
  // strings.
3356
3356
  /** @type {string} */
3357
3357
  s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = B;
@@ -3364,7 +3364,7 @@ function YO(t, e, n) {
3364
3364
  const L = o.pop();
3365
3365
  return L.end = g(), c.events.push(["exit", L, c]), L;
3366
3366
  }
3367
- function S(B, L) {
3367
+ function A(B, L) {
3368
3368
  F(B, L.from);
3369
3369
  }
3370
3370
  function m(B, L) {
@@ -3372,19 +3372,19 @@ function YO(t, e, n) {
3372
3372
  }
3373
3373
  function T(B, L) {
3374
3374
  return q;
3375
- function q(W, D, G) {
3376
- let ne, de, fe, x;
3377
- return Array.isArray(W) ? (
3375
+ function q(Z, D, K) {
3376
+ let J, ue, le, x;
3377
+ return Array.isArray(Z) ? (
3378
3378
  /* c8 ignore next 1 */
3379
- oe(W)
3380
- ) : "tokenize" in W ? (
3379
+ ce(Z)
3380
+ ) : "tokenize" in Z ? (
3381
3381
  // Looks like a construct.
3382
- oe([
3382
+ ce([
3383
3383
  /** @type {Construct} */
3384
- W
3384
+ Z
3385
3385
  ])
3386
- ) : K(W);
3387
- function K(ge) {
3386
+ ) : ee(Z);
3387
+ function ee(ge) {
3388
3388
  return Ze;
3389
3389
  function Ze(ot) {
3390
3390
  const At = ot !== null && ge[ot], Mt = ot !== null && ge.null, Yt = [
@@ -3393,16 +3393,16 @@ function YO(t, e, n) {
3393
3393
  ...Array.isArray(At) ? At : At ? [At] : [],
3394
3394
  ...Array.isArray(Mt) ? Mt : Mt ? [Mt] : []
3395
3395
  ];
3396
- return oe(Yt)(ot);
3396
+ return ce(Yt)(ot);
3397
3397
  }
3398
3398
  }
3399
- function oe(ge) {
3400
- return ne = ge, de = 0, ge.length === 0 ? G : A(ge[de]);
3399
+ function ce(ge) {
3400
+ return J = ge, ue = 0, ge.length === 0 ? K : S(ge[ue]);
3401
3401
  }
3402
- function A(ge) {
3402
+ function S(ge) {
3403
3403
  return Ze;
3404
3404
  function Ze(ot) {
3405
- return x = P(), fe = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? Te() : ge.tokenize.call(
3405
+ return x = P(), le = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? Te() : ge.tokenize.call(
3406
3406
  // If we do have fields, create an object w/ `context` as its
3407
3407
  // prototype.
3408
3408
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -3414,10 +3414,10 @@ function YO(t, e, n) {
3414
3414
  }
3415
3415
  }
3416
3416
  function we(ge) {
3417
- return B(fe, x), D;
3417
+ return B(le, x), D;
3418
3418
  }
3419
3419
  function Te(ge) {
3420
- return x.restore(), ++de < ne.length ? A(ne[de]) : G;
3420
+ return x.restore(), ++ue < J.length ? S(J[ue]) : K;
3421
3421
  }
3422
3422
  }
3423
3423
  }
@@ -3425,13 +3425,13 @@ function YO(t, e, n) {
3425
3425
  B.resolveAll && !i.includes(B) && i.push(B), B.resolve && xt(c.events, L, c.events.length - L, B.resolve(c.events.slice(L), c)), B.resolveTo && (c.events = B.resolveTo(c.events, c));
3426
3426
  }
3427
3427
  function P() {
3428
- const B = g(), L = c.previous, q = c.currentConstruct, W = c.events.length, D = Array.from(o);
3428
+ const B = g(), L = c.previous, q = c.currentConstruct, Z = c.events.length, D = Array.from(o);
3429
3429
  return {
3430
- from: W,
3431
- restore: G
3430
+ from: Z,
3431
+ restore: K
3432
3432
  };
3433
- function G() {
3434
- r = B, c.previous = L, c.currentConstruct = q, c.events.length = W, o = D, z();
3433
+ function K() {
3434
+ r = B, c.previous = L, c.currentConstruct = q, c.events.length = Z, o = D, z();
3435
3435
  }
3436
3436
  }
3437
3437
  function z() {
@@ -3611,7 +3611,7 @@ function rw(t) {
3611
3611
  listOrdered: i(Ih, h),
3612
3612
  listUnordered: i(Ih),
3613
3613
  paragraph: i(P_),
3614
- reference: A,
3614
+ reference: S,
3615
3615
  referenceString: s,
3616
3616
  resourceDestinationString: s,
3617
3617
  resourceTitleString: s,
@@ -3621,7 +3621,7 @@ function rw(t) {
3621
3621
  },
3622
3622
  exit: {
3623
3623
  atxHeading: l(),
3624
- atxHeadingSequence: S,
3624
+ atxHeadingSequence: A,
3625
3625
  autolink: l(),
3626
3626
  autolinkEmail: At,
3627
3627
  autolinkProtocol: ot,
@@ -3649,21 +3649,21 @@ function rw(t) {
3649
3649
  hardBreakTrailing: l(L),
3650
3650
  htmlFlow: l(q),
3651
3651
  htmlFlowData: z,
3652
- htmlText: l(W),
3652
+ htmlText: l(Z),
3653
3653
  htmlTextData: z,
3654
- image: l(ne),
3655
- label: fe,
3656
- labelText: de,
3654
+ image: l(J),
3655
+ label: le,
3656
+ labelText: ue,
3657
3657
  lineEnding: B,
3658
- link: l(G),
3658
+ link: l(K),
3659
3659
  listItem: l(),
3660
3660
  listOrdered: l(),
3661
3661
  listUnordered: l(),
3662
3662
  paragraph: l(),
3663
3663
  referenceString: we,
3664
3664
  resourceDestinationString: x,
3665
- resourceTitleString: K,
3666
- resource: oe,
3665
+ resourceTitleString: ee,
3666
+ resource: ce,
3667
3667
  setextHeading: l(F),
3668
3668
  setextHeadingLineSequence: T,
3669
3669
  setextHeadingText: m,
@@ -3675,12 +3675,12 @@ function rw(t) {
3675
3675
  const n = {};
3676
3676
  return r;
3677
3677
  function r(Q) {
3678
- let V = {
3678
+ let G = {
3679
3679
  type: "root",
3680
3680
  children: []
3681
3681
  };
3682
- const ue = {
3683
- stack: [V],
3682
+ const de = {
3683
+ stack: [G],
3684
3684
  tokenStack: [],
3685
3685
  config: e,
3686
3686
  enter: o,
@@ -3702,13 +3702,13 @@ function rw(t) {
3702
3702
  const Ft = e[Q[Se][0]];
3703
3703
  Lm.call(Ft, Q[Se][1].type) && Ft[Q[Se][1].type].call(Object.assign({
3704
3704
  sliceSerialize: Q[Se][2].sliceSerialize
3705
- }, ue), Q[Se][1]);
3705
+ }, de), Q[Se][1]);
3706
3706
  }
3707
- if (ue.tokenStack.length > 0) {
3708
- const Ft = ue.tokenStack[ue.tokenStack.length - 1];
3709
- (Ft[1] || Kh).call(ue, void 0, Ft[0]);
3707
+ if (de.tokenStack.length > 0) {
3708
+ const Ft = de.tokenStack[de.tokenStack.length - 1];
3709
+ (Ft[1] || Kh).call(de, void 0, Ft[0]);
3710
3710
  }
3711
- for (V.position = {
3711
+ for (G.position = {
3712
3712
  start: An(Q.length > 0 ? Q[0][1].start : {
3713
3713
  line: 1,
3714
3714
  column: 1,
@@ -3720,12 +3720,12 @@ function rw(t) {
3720
3720
  offset: 0
3721
3721
  })
3722
3722
  }, Se = -1; ++Se < e.transforms.length; )
3723
- V = e.transforms[Se](V) || V;
3724
- return V;
3723
+ G = e.transforms[Se](G) || G;
3724
+ return G;
3725
3725
  }
3726
- function a(Q, V, ue) {
3727
- let ye = V - 1, Se = -1, Ft = !1, Gn, hn, la, ca;
3728
- for (; ++ye <= ue; ) {
3726
+ function a(Q, G, de) {
3727
+ let ye = G - 1, Se = -1, Ft = !1, Gn, hn, la, ca;
3728
+ for (; ++ye <= de; ) {
3729
3729
  const yt = Q[ye];
3730
3730
  switch (yt[1].type) {
3731
3731
  case "listUnordered":
@@ -3757,7 +3757,7 @@ function rw(t) {
3757
3757
  hn && (Q[hn][1].type = "lineEndingBlank", Ft = !0), dn[1].type = "lineEnding", hn = yr;
3758
3758
  } else if (!(dn[1].type === "linePrefix" || dn[1].type === "blockQuotePrefix" || dn[1].type === "blockQuotePrefixWhitespace" || dn[1].type === "blockQuoteMarker" || dn[1].type === "listItemIndent")) break;
3759
3759
  }
3760
- la && (!hn || la < hn) && (Gn._spread = !0), Gn.end = Object.assign({}, hn ? Q[hn][1].start : yt[1].end), Q.splice(hn || ye, 0, ["exit", Gn, yt[2]]), ye++, ue++;
3760
+ la && (!hn || la < hn) && (Gn._spread = !0), Gn.end = Object.assign({}, hn ? Q[hn][1].start : yt[1].end), Q.splice(hn || ye, 0, ["exit", Gn, yt[2]]), ye++, de++;
3761
3761
  }
3762
3762
  if (yt[1].type === "listItemPrefix") {
3763
3763
  const yr = {
@@ -3767,16 +3767,16 @@ function rw(t) {
3767
3767
  // @ts-expect-error: we’ll add `end` in a second.
3768
3768
  end: void 0
3769
3769
  };
3770
- Gn = yr, Q.splice(ye, 0, ["enter", yr, yt[2]]), ye++, ue++, la = void 0, ca = !0;
3770
+ Gn = yr, Q.splice(ye, 0, ["enter", yr, yt[2]]), ye++, de++, la = void 0, ca = !0;
3771
3771
  }
3772
3772
  }
3773
3773
  }
3774
- return Q[V][1]._spread = Ft, ue;
3774
+ return Q[G][1]._spread = Ft, de;
3775
3775
  }
3776
- function i(Q, V) {
3777
- return ue;
3778
- function ue(ye) {
3779
- o.call(this, Q(ye), ye), V && V.call(this, ye);
3776
+ function i(Q, G) {
3777
+ return de;
3778
+ function de(ye) {
3779
+ o.call(this, Q(ye), ye), G && G.call(this, ye);
3780
3780
  }
3781
3781
  }
3782
3782
  function s() {
@@ -3785,28 +3785,28 @@ function rw(t) {
3785
3785
  children: []
3786
3786
  });
3787
3787
  }
3788
- function o(Q, V, ue) {
3789
- this.stack[this.stack.length - 1].children.push(Q), this.stack.push(Q), this.tokenStack.push([V, ue || void 0]), Q.position = {
3790
- start: An(V.start),
3788
+ function o(Q, G, de) {
3789
+ this.stack[this.stack.length - 1].children.push(Q), this.stack.push(Q), this.tokenStack.push([G, de || void 0]), Q.position = {
3790
+ start: An(G.start),
3791
3791
  // @ts-expect-error: `end` will be patched later.
3792
3792
  end: void 0
3793
3793
  };
3794
3794
  }
3795
3795
  function l(Q) {
3796
- return V;
3797
- function V(ue) {
3798
- Q && Q.call(this, ue), c.call(this, ue);
3796
+ return G;
3797
+ function G(de) {
3798
+ Q && Q.call(this, de), c.call(this, de);
3799
3799
  }
3800
3800
  }
3801
- function c(Q, V) {
3802
- const ue = this.stack.pop(), ye = this.tokenStack.pop();
3801
+ function c(Q, G) {
3802
+ const de = this.stack.pop(), ye = this.tokenStack.pop();
3803
3803
  if (ye)
3804
- ye[0].type !== Q.type && (V ? V.call(this, Q, ye[0]) : (ye[1] || Kh).call(this, Q, ye[0]));
3804
+ ye[0].type !== Q.type && (G ? G.call(this, Q, ye[0]) : (ye[1] || Kh).call(this, Q, ye[0]));
3805
3805
  else throw new Error("Cannot close `" + Q.type + "` (" + va({
3806
3806
  start: Q.start,
3807
3807
  end: Q.end
3808
3808
  }) + "): it’s not open");
3809
- ue.position.end = An(Q.end);
3809
+ de.position.end = An(Q.end);
3810
3810
  }
3811
3811
  function u() {
3812
3812
  return di(this.stack.pop());
@@ -3816,166 +3816,166 @@ function rw(t) {
3816
3816
  }
3817
3817
  function d(Q) {
3818
3818
  if (this.data.expectingFirstListItemValue) {
3819
- const V = this.stack[this.stack.length - 2];
3820
- V.start = Number.parseInt(this.sliceSerialize(Q), 10), this.data.expectingFirstListItemValue = void 0;
3819
+ const G = this.stack[this.stack.length - 2];
3820
+ G.start = Number.parseInt(this.sliceSerialize(Q), 10), this.data.expectingFirstListItemValue = void 0;
3821
3821
  }
3822
3822
  }
3823
3823
  function f() {
3824
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3825
- V.lang = Q;
3824
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3825
+ G.lang = Q;
3826
3826
  }
3827
3827
  function g() {
3828
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3829
- V.meta = Q;
3828
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3829
+ G.meta = Q;
3830
3830
  }
3831
3831
  function y() {
3832
3832
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
3833
3833
  }
3834
3834
  function _() {
3835
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3836
- V.value = Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
3835
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3836
+ G.value = Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
3837
3837
  }
3838
3838
  function k() {
3839
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3840
- V.value = Q.replace(/(\r?\n|\r)$/g, "");
3839
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3840
+ G.value = Q.replace(/(\r?\n|\r)$/g, "");
3841
3841
  }
3842
3842
  function w(Q) {
3843
- const V = this.resume(), ue = this.stack[this.stack.length - 1];
3844
- ue.label = V, ue.identifier = $t(this.sliceSerialize(Q)).toLowerCase();
3843
+ const G = this.resume(), de = this.stack[this.stack.length - 1];
3844
+ de.label = G, de.identifier = $t(this.sliceSerialize(Q)).toLowerCase();
3845
3845
  }
3846
3846
  function C() {
3847
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3848
- V.title = Q;
3847
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3848
+ G.title = Q;
3849
3849
  }
3850
3850
  function M() {
3851
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3852
- V.url = Q;
3851
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3852
+ G.url = Q;
3853
3853
  }
3854
- function S(Q) {
3855
- const V = this.stack[this.stack.length - 1];
3856
- if (!V.depth) {
3857
- const ue = this.sliceSerialize(Q).length;
3858
- V.depth = ue;
3854
+ function A(Q) {
3855
+ const G = this.stack[this.stack.length - 1];
3856
+ if (!G.depth) {
3857
+ const de = this.sliceSerialize(Q).length;
3858
+ G.depth = de;
3859
3859
  }
3860
3860
  }
3861
3861
  function m() {
3862
3862
  this.data.setextHeadingSlurpLineEnding = !0;
3863
3863
  }
3864
3864
  function T(Q) {
3865
- const V = this.stack[this.stack.length - 1];
3866
- V.depth = this.sliceSerialize(Q).codePointAt(0) === 61 ? 1 : 2;
3865
+ const G = this.stack[this.stack.length - 1];
3866
+ G.depth = this.sliceSerialize(Q).codePointAt(0) === 61 ? 1 : 2;
3867
3867
  }
3868
3868
  function F() {
3869
3869
  this.data.setextHeadingSlurpLineEnding = void 0;
3870
3870
  }
3871
3871
  function P(Q) {
3872
- const ue = this.stack[this.stack.length - 1].children;
3873
- let ye = ue[ue.length - 1];
3872
+ const de = this.stack[this.stack.length - 1].children;
3873
+ let ye = de[de.length - 1];
3874
3874
  (!ye || ye.type !== "text") && (ye = N_(), ye.position = {
3875
3875
  start: An(Q.start),
3876
3876
  // @ts-expect-error: we’ll add `end` later.
3877
3877
  end: void 0
3878
- }, ue.push(ye)), this.stack.push(ye);
3878
+ }, de.push(ye)), this.stack.push(ye);
3879
3879
  }
3880
3880
  function z(Q) {
3881
- const V = this.stack.pop();
3882
- V.value += this.sliceSerialize(Q), V.position.end = An(Q.end);
3881
+ const G = this.stack.pop();
3882
+ G.value += this.sliceSerialize(Q), G.position.end = An(Q.end);
3883
3883
  }
3884
3884
  function B(Q) {
3885
- const V = this.stack[this.stack.length - 1];
3885
+ const G = this.stack[this.stack.length - 1];
3886
3886
  if (this.data.atHardBreak) {
3887
- const ue = V.children[V.children.length - 1];
3888
- ue.position.end = An(Q.end), this.data.atHardBreak = void 0;
3887
+ const de = G.children[G.children.length - 1];
3888
+ de.position.end = An(Q.end), this.data.atHardBreak = void 0;
3889
3889
  return;
3890
3890
  }
3891
- !this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(V.type) && (P.call(this, Q), z.call(this, Q));
3891
+ !this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(G.type) && (P.call(this, Q), z.call(this, Q));
3892
3892
  }
3893
3893
  function L() {
3894
3894
  this.data.atHardBreak = !0;
3895
3895
  }
3896
3896
  function q() {
3897
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3898
- V.value = Q;
3897
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3898
+ G.value = Q;
3899
3899
  }
3900
- function W() {
3901
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3902
- V.value = Q;
3900
+ function Z() {
3901
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3902
+ G.value = Q;
3903
3903
  }
3904
3904
  function D() {
3905
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3906
- V.value = Q;
3905
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3906
+ G.value = Q;
3907
3907
  }
3908
- function G() {
3908
+ function K() {
3909
3909
  const Q = this.stack[this.stack.length - 1];
3910
3910
  if (this.data.inReference) {
3911
- const V = this.data.referenceType || "shortcut";
3912
- Q.type += "Reference", Q.referenceType = V, delete Q.url, delete Q.title;
3911
+ const G = this.data.referenceType || "shortcut";
3912
+ Q.type += "Reference", Q.referenceType = G, delete Q.url, delete Q.title;
3913
3913
  } else
3914
3914
  delete Q.identifier, delete Q.label;
3915
3915
  this.data.referenceType = void 0;
3916
3916
  }
3917
- function ne() {
3917
+ function J() {
3918
3918
  const Q = this.stack[this.stack.length - 1];
3919
3919
  if (this.data.inReference) {
3920
- const V = this.data.referenceType || "shortcut";
3921
- Q.type += "Reference", Q.referenceType = V, delete Q.url, delete Q.title;
3920
+ const G = this.data.referenceType || "shortcut";
3921
+ Q.type += "Reference", Q.referenceType = G, delete Q.url, delete Q.title;
3922
3922
  } else
3923
3923
  delete Q.identifier, delete Q.label;
3924
3924
  this.data.referenceType = void 0;
3925
3925
  }
3926
- function de(Q) {
3927
- const V = this.sliceSerialize(Q), ue = this.stack[this.stack.length - 2];
3928
- ue.label = ew(V), ue.identifier = $t(V).toLowerCase();
3926
+ function ue(Q) {
3927
+ const G = this.sliceSerialize(Q), de = this.stack[this.stack.length - 2];
3928
+ de.label = ew(G), de.identifier = $t(G).toLowerCase();
3929
3929
  }
3930
- function fe() {
3931
- const Q = this.stack[this.stack.length - 1], V = this.resume(), ue = this.stack[this.stack.length - 1];
3932
- if (this.data.inReference = !0, ue.type === "link") {
3930
+ function le() {
3931
+ const Q = this.stack[this.stack.length - 1], G = this.resume(), de = this.stack[this.stack.length - 1];
3932
+ if (this.data.inReference = !0, de.type === "link") {
3933
3933
  const ye = Q.children;
3934
- ue.children = ye;
3934
+ de.children = ye;
3935
3935
  } else
3936
- ue.alt = V;
3936
+ de.alt = G;
3937
3937
  }
3938
3938
  function x() {
3939
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3940
- V.url = Q;
3939
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3940
+ G.url = Q;
3941
3941
  }
3942
- function K() {
3943
- const Q = this.resume(), V = this.stack[this.stack.length - 1];
3944
- V.title = Q;
3942
+ function ee() {
3943
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3944
+ G.title = Q;
3945
3945
  }
3946
- function oe() {
3946
+ function ce() {
3947
3947
  this.data.inReference = void 0;
3948
3948
  }
3949
- function A() {
3949
+ function S() {
3950
3950
  this.data.referenceType = "collapsed";
3951
3951
  }
3952
3952
  function we(Q) {
3953
- const V = this.resume(), ue = this.stack[this.stack.length - 1];
3954
- ue.label = V, ue.identifier = $t(this.sliceSerialize(Q)).toLowerCase(), this.data.referenceType = "full";
3953
+ const G = this.resume(), de = this.stack[this.stack.length - 1];
3954
+ de.label = G, de.identifier = $t(this.sliceSerialize(Q)).toLowerCase(), this.data.referenceType = "full";
3955
3955
  }
3956
3956
  function Te(Q) {
3957
3957
  this.data.characterReferenceType = Q.type;
3958
3958
  }
3959
3959
  function ge(Q) {
3960
- const V = this.sliceSerialize(Q), ue = this.data.characterReferenceType;
3960
+ const G = this.sliceSerialize(Q), de = this.data.characterReferenceType;
3961
3961
  let ye;
3962
- ue ? (ye = Sm(V, ue === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ye = Ha(V);
3962
+ de ? (ye = Sm(G, de === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ye = Ha(G);
3963
3963
  const Se = this.stack[this.stack.length - 1];
3964
3964
  Se.value += ye;
3965
3965
  }
3966
3966
  function Ze(Q) {
3967
- const V = this.stack.pop();
3968
- V.position.end = An(Q.end);
3967
+ const G = this.stack.pop();
3968
+ G.position.end = An(Q.end);
3969
3969
  }
3970
3970
  function ot(Q) {
3971
3971
  z.call(this, Q);
3972
- const V = this.stack[this.stack.length - 1];
3973
- V.url = this.sliceSerialize(Q);
3972
+ const G = this.stack[this.stack.length - 1];
3973
+ G.url = this.sliceSerialize(Q);
3974
3974
  }
3975
3975
  function At(Q) {
3976
3976
  z.call(this, Q);
3977
- const V = this.stack[this.stack.length - 1];
3978
- V.url = "mailto:" + this.sliceSerialize(Q);
3977
+ const G = this.stack[this.stack.length - 1];
3978
+ G.url = "mailto:" + this.sliceSerialize(Q);
3979
3979
  }
3980
3980
  function Mt() {
3981
3981
  return {
@@ -4330,12 +4330,12 @@ function $m(t, e, n) {
4330
4330
  d.lastIndex = 0;
4331
4331
  let C = d.exec(c.value);
4332
4332
  for (; C; ) {
4333
- const M = C.index, S = {
4333
+ const M = C.index, A = {
4334
4334
  index: C.index,
4335
4335
  input: C.input,
4336
4336
  stack: [...u, c]
4337
4337
  };
4338
- let m = f(...C, S);
4338
+ let m = f(...C, A);
4339
4339
  if (typeof m == "string" && (m = m.length > 0 ? { type: "text", value: m } : void 0), m === !1 ? d.lastIndex = M + 1 : (g !== M && w.push({
4340
4340
  type: "text",
4341
4341
  value: c.value.slice(g, M)
@@ -4674,8 +4674,8 @@ function Xw(t, e) {
4674
4674
  const w = y[h] || "";
4675
4675
  let C = "", M = "";
4676
4676
  if (n.alignDelimiters !== !1) {
4677
- const S = l[h] - (_[h] || 0), m = i[h];
4678
- m === 114 ? C = " ".repeat(S) : m === 99 ? S % 2 ? (C = " ".repeat(S / 2 + 0.5), M = " ".repeat(S / 2 - 0.5)) : (C = " ".repeat(S / 2), M = C) : M = " ".repeat(S);
4677
+ const A = l[h] - (_[h] || 0), m = i[h];
4678
+ m === 114 ? C = " ".repeat(A) : m === 99 ? A % 2 ? (C = " ".repeat(A / 2 + 0.5), M = " ".repeat(A / 2 - 0.5)) : (C = " ".repeat(A / 2), M = C) : M = " ".repeat(A);
4679
4679
  }
4680
4680
  n.delimiterStart !== !1 && !h && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
4681
4681
  // empty: there will be a closing space.
@@ -5868,7 +5868,7 @@ function eE(t, e, n) {
5868
5868
  return g === 91 || g === 92 || g === 93 ? (t.consume(g), s++, u) : u(g);
5869
5869
  }
5870
5870
  function d(g) {
5871
- return g === 58 ? (t.enter("definitionMarker"), t.consume(g), t.exit("definitionMarker"), a.includes(i) || a.push(i), le(t, f, "gfmFootnoteDefinitionWhitespace")) : n(g);
5871
+ return g === 58 ? (t.enter("definitionMarker"), t.consume(g), t.exit("definitionMarker"), a.includes(i) || a.push(i), oe(t, f, "gfmFootnoteDefinitionWhitespace")) : n(g);
5872
5872
  }
5873
5873
  function f(g) {
5874
5874
  return e(g);
@@ -5882,7 +5882,7 @@ function nE(t) {
5882
5882
  }
5883
5883
  function rE(t, e, n) {
5884
5884
  const r = this;
5885
- return le(t, a, "gfmFootnoteDefinitionIndent", 5);
5885
+ return oe(t, a, "gfmFootnoteDefinitionIndent", 5);
5886
5886
  function a(i) {
5887
5887
  const s = r.events[r.events.length - 1];
5888
5888
  return s && s[1].type === "gfmFootnoteDefinitionIndent" && s[2].sliceSerialize(s[1], !0).length === 4 ? e(i) : n(i);
@@ -6055,9 +6055,9 @@ function cE(t, e, n) {
6055
6055
  function o(z) {
6056
6056
  let B = r.events.length - 1;
6057
6057
  for (; B > -1; ) {
6058
- const W = r.events[B][1].type;
6059
- if (W === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
6060
- W === "linePrefix") B--;
6058
+ const Z = r.events[B][1].type;
6059
+ if (Z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
6060
+ Z === "linePrefix") B--;
6061
6061
  else break;
6062
6062
  }
6063
6063
  const L = B > -1 ? r.events[B][1].type : null, q = L === "tableHead" || L === "tableRow" ? m : l;
@@ -6070,7 +6070,7 @@ function cE(t, e, n) {
6070
6070
  return z === 124 || (s = !0, i += 1), u(z);
6071
6071
  }
6072
6072
  function u(z) {
6073
- return z === null ? n(z) : J(z) ? i > 1 ? (i = 0, r.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(z), t.exit("lineEnding"), f) : n(z) : ce(z) ? le(t, u, "whitespace")(z) : (i += 1, s && (s = !1, a += 1), z === 124 ? (t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), s = !0, u) : (t.enter("data"), h(z)));
6073
+ return z === null ? n(z) : W(z) ? i > 1 ? (i = 0, r.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(z), t.exit("lineEnding"), f) : n(z) : he(z) ? oe(t, u, "whitespace")(z) : (i += 1, s && (s = !1, a += 1), z === 124 ? (t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), s = !0, u) : (t.enter("data"), h(z)));
6074
6074
  }
6075
6075
  function h(z) {
6076
6076
  return z === null || z === 124 || _e(z) ? (t.exit("data"), u(z)) : (t.consume(z), z === 92 ? d : h);
@@ -6079,37 +6079,37 @@ function cE(t, e, n) {
6079
6079
  return z === 92 || z === 124 ? (t.consume(z), h) : h(z);
6080
6080
  }
6081
6081
  function f(z) {
6082
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(z) : (t.enter("tableDelimiterRow"), s = !1, ce(z) ? le(t, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : g(z));
6082
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(z) : (t.enter("tableDelimiterRow"), s = !1, he(z) ? oe(t, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : g(z));
6083
6083
  }
6084
6084
  function g(z) {
6085
- return z === 45 || z === 58 ? _(z) : z === 124 ? (s = !0, t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), y) : S(z);
6085
+ return z === 45 || z === 58 ? _(z) : z === 124 ? (s = !0, t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), y) : A(z);
6086
6086
  }
6087
6087
  function y(z) {
6088
- return ce(z) ? le(t, _, "whitespace")(z) : _(z);
6088
+ return he(z) ? oe(t, _, "whitespace")(z) : _(z);
6089
6089
  }
6090
6090
  function _(z) {
6091
- return z === 58 ? (i += 1, s = !0, t.enter("tableDelimiterMarker"), t.consume(z), t.exit("tableDelimiterMarker"), k) : z === 45 ? (i += 1, k(z)) : z === null || J(z) ? M(z) : S(z);
6091
+ return z === 58 ? (i += 1, s = !0, t.enter("tableDelimiterMarker"), t.consume(z), t.exit("tableDelimiterMarker"), k) : z === 45 ? (i += 1, k(z)) : z === null || W(z) ? M(z) : A(z);
6092
6092
  }
6093
6093
  function k(z) {
6094
- return z === 45 ? (t.enter("tableDelimiterFiller"), w(z)) : S(z);
6094
+ return z === 45 ? (t.enter("tableDelimiterFiller"), w(z)) : A(z);
6095
6095
  }
6096
6096
  function w(z) {
6097
6097
  return z === 45 ? (t.consume(z), w) : z === 58 ? (s = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(z), t.exit("tableDelimiterMarker"), C) : (t.exit("tableDelimiterFiller"), C(z));
6098
6098
  }
6099
6099
  function C(z) {
6100
- return ce(z) ? le(t, M, "whitespace")(z) : M(z);
6100
+ return he(z) ? oe(t, M, "whitespace")(z) : M(z);
6101
6101
  }
6102
6102
  function M(z) {
6103
- return z === 124 ? g(z) : z === null || J(z) ? !s || a !== i ? S(z) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(z)) : S(z);
6103
+ return z === 124 ? g(z) : z === null || W(z) ? !s || a !== i ? A(z) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(z)) : A(z);
6104
6104
  }
6105
- function S(z) {
6105
+ function A(z) {
6106
6106
  return n(z);
6107
6107
  }
6108
6108
  function m(z) {
6109
6109
  return t.enter("tableRow"), T(z);
6110
6110
  }
6111
6111
  function T(z) {
6112
- return z === 124 ? (t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), T) : z === null || J(z) ? (t.exit("tableRow"), e(z)) : ce(z) ? le(t, T, "whitespace")(z) : (t.enter("data"), F(z));
6112
+ return z === 124 ? (t.enter("tableCellDivider"), t.consume(z), t.exit("tableCellDivider"), T) : z === null || W(z) ? (t.exit("tableRow"), e(z)) : he(z) ? oe(t, T, "whitespace")(z) : (t.enter("data"), F(z));
6113
6113
  }
6114
6114
  function F(z) {
6115
6115
  return z === null || z === 124 || _e(z) ? (t.exit("data"), T(z)) : (t.consume(z), z === 92 ? P : F);
@@ -6204,13 +6204,13 @@ function fE(t, e, n) {
6204
6204
  return l === 93 ? (t.enter("taskListCheckMarker"), t.consume(l), t.exit("taskListCheckMarker"), t.exit("taskListCheck"), o) : n(l);
6205
6205
  }
6206
6206
  function o(l) {
6207
- return J(l) ? e(l) : ce(l) ? t.check({
6207
+ return W(l) ? e(l) : he(l) ? t.check({
6208
6208
  tokenize: pE
6209
6209
  }, e, n)(l) : n(l);
6210
6210
  }
6211
6211
  }
6212
6212
  function pE(t, e, n) {
6213
- return le(t, r, "whitespace");
6213
+ return oe(t, r, "whitespace");
6214
6214
  function r(a) {
6215
6215
  return a === null ? n(a) : e(a);
6216
6216
  }
@@ -6386,15 +6386,15 @@ function bE(t, e, n) {
6386
6386
  return t.enter("mathFlow"), t.enter("mathFlowFence"), t.enter("mathFlowFenceSequence"), l(w);
6387
6387
  }
6388
6388
  function l(w) {
6389
- return w === 36 ? (t.consume(w), s++, l) : s < 2 ? n(w) : (t.exit("mathFlowFenceSequence"), le(t, c, "whitespace")(w));
6389
+ return w === 36 ? (t.consume(w), s++, l) : s < 2 ? n(w) : (t.exit("mathFlowFenceSequence"), oe(t, c, "whitespace")(w));
6390
6390
  }
6391
6391
  function c(w) {
6392
- return w === null || J(w) ? h(w) : (t.enter("mathFlowFenceMeta"), t.enter("chunkString", {
6392
+ return w === null || W(w) ? h(w) : (t.enter("mathFlowFenceMeta"), t.enter("chunkString", {
6393
6393
  contentType: "string"
6394
6394
  }), u(w));
6395
6395
  }
6396
6396
  function u(w) {
6397
- return w === null || J(w) ? (t.exit("chunkString"), t.exit("mathFlowFenceMeta"), h(w)) : w === 36 ? n(w) : (t.consume(w), u);
6397
+ return w === null || W(w) ? (t.exit("chunkString"), t.exit("mathFlowFenceMeta"), h(w)) : w === 36 ? n(w) : (t.consume(w), u);
6398
6398
  }
6399
6399
  function h(w) {
6400
6400
  return t.exit("mathFlowFence"), r.interrupt ? e(w) : t.attempt(sd, d, _)(w);
@@ -6406,28 +6406,28 @@ function bE(t, e, n) {
6406
6406
  }, _, f)(w);
6407
6407
  }
6408
6408
  function f(w) {
6409
- return (i ? le(t, g, "linePrefix", i + 1) : g)(w);
6409
+ return (i ? oe(t, g, "linePrefix", i + 1) : g)(w);
6410
6410
  }
6411
6411
  function g(w) {
6412
- return w === null ? _(w) : J(w) ? t.attempt(sd, d, _)(w) : (t.enter("mathFlowValue"), y(w));
6412
+ return w === null ? _(w) : W(w) ? t.attempt(sd, d, _)(w) : (t.enter("mathFlowValue"), y(w));
6413
6413
  }
6414
6414
  function y(w) {
6415
- return w === null || J(w) ? (t.exit("mathFlowValue"), g(w)) : (t.consume(w), y);
6415
+ return w === null || W(w) ? (t.exit("mathFlowValue"), g(w)) : (t.consume(w), y);
6416
6416
  }
6417
6417
  function _(w) {
6418
6418
  return t.exit("mathFlow"), e(w);
6419
6419
  }
6420
6420
  function k(w, C, M) {
6421
- let S = 0;
6422
- return le(w, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
6421
+ let A = 0;
6422
+ return oe(w, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
6423
6423
  function m(P) {
6424
6424
  return w.enter("mathFlowFence"), w.enter("mathFlowFenceSequence"), T(P);
6425
6425
  }
6426
6426
  function T(P) {
6427
- return P === 36 ? (S++, w.consume(P), T) : S < s ? M(P) : (w.exit("mathFlowFenceSequence"), le(w, F, "whitespace")(P));
6427
+ return P === 36 ? (A++, w.consume(P), T) : A < s ? M(P) : (w.exit("mathFlowFenceSequence"), oe(w, F, "whitespace")(P));
6428
6428
  }
6429
6429
  function F(P) {
6430
- return P === null || J(P) ? (w.exit("mathFlowFence"), C(P)) : M(P);
6430
+ return P === null || W(P) ? (w.exit("mathFlowFence"), C(P)) : M(P);
6431
6431
  }
6432
6432
  }
6433
6433
  }
@@ -6459,10 +6459,10 @@ function wE(t) {
6459
6459
  return y === 36 ? (a.consume(y), o++, h) : o < 2 && !n ? s(y) : (a.exit("mathTextSequence"), d(y));
6460
6460
  }
6461
6461
  function d(y) {
6462
- return y === null ? s(y) : y === 36 ? (c = a.enter("mathTextSequence"), l = 0, g(y)) : y === 32 ? (a.enter("space"), a.consume(y), a.exit("space"), d) : J(y) ? (a.enter("lineEnding"), a.consume(y), a.exit("lineEnding"), d) : (a.enter("mathTextData"), f(y));
6462
+ return y === null ? s(y) : y === 36 ? (c = a.enter("mathTextSequence"), l = 0, g(y)) : y === 32 ? (a.enter("space"), a.consume(y), a.exit("space"), d) : W(y) ? (a.enter("lineEnding"), a.consume(y), a.exit("lineEnding"), d) : (a.enter("mathTextData"), f(y));
6463
6463
  }
6464
6464
  function f(y) {
6465
- return y === null || y === 32 || y === 36 || J(y) ? (a.exit("mathTextData"), d(y)) : (a.consume(y), f);
6465
+ return y === null || y === 32 || y === 36 || W(y) ? (a.exit("mathTextData"), d(y)) : (a.consume(y), f);
6466
6466
  }
6467
6467
  function g(y) {
6468
6468
  return y === 36 ? (a.consume(y), l++, g) : l === o ? (a.exit("mathTextSequence"), a.exit("mathText"), i(y)) : (c.type = "mathTextData", f(y));
@@ -6652,21 +6652,21 @@ function PE(t) {
6652
6652
  );
6653
6653
  }
6654
6654
  function _(T) {
6655
- return l === o.length ? (h.exit(a), ce(T) ? (h.enter("whitespace"), k(T)) : w(T)) : T === o.charCodeAt(l++) ? (h.consume(T), _) : f(T);
6655
+ return l === o.length ? (h.exit(a), he(T) ? (h.enter("whitespace"), k(T)) : w(T)) : T === o.charCodeAt(l++) ? (h.consume(T), _) : f(T);
6656
6656
  }
6657
6657
  function k(T) {
6658
- return ce(T) ? (h.consume(T), k) : (h.exit("whitespace"), w(T));
6658
+ return he(T) ? (h.consume(T), k) : (h.exit("whitespace"), w(T));
6659
6659
  }
6660
6660
  function w(T) {
6661
- return J(T) ? (h.exit(r), h.enter("lineEnding"), h.consume(T), h.exit("lineEnding"), o = Jl(t, "close"), l = 0, h.attempt(s, m, C)) : f(T);
6661
+ return W(T) ? (h.exit(r), h.enter("lineEnding"), h.consume(T), h.exit("lineEnding"), o = Jl(t, "close"), l = 0, h.attempt(s, m, C)) : f(T);
6662
6662
  }
6663
6663
  function C(T) {
6664
- return T === null || J(T) ? S(T) : (h.enter(i), M(T));
6664
+ return T === null || W(T) ? A(T) : (h.enter(i), M(T));
6665
6665
  }
6666
6666
  function M(T) {
6667
- return T === null || J(T) ? (h.exit(i), S(T)) : (h.consume(T), M);
6667
+ return T === null || W(T) ? (h.exit(i), A(T)) : (h.consume(T), M);
6668
6668
  }
6669
- function S(T) {
6669
+ function A(T) {
6670
6670
  return T === null ? f(T) : (h.enter("lineEnding"), h.consume(T), h.exit("lineEnding"), h.attempt(s, m, C));
6671
6671
  }
6672
6672
  function m(T) {
@@ -6680,13 +6680,13 @@ function PE(t) {
6680
6680
  return C === o.charCodeAt(g) ? (h.enter(r), h.enter(a), _(C)) : f(C);
6681
6681
  }
6682
6682
  function _(C) {
6683
- return g === o.length ? (h.exit(a), ce(C) ? (h.enter("whitespace"), k(C)) : w(C)) : C === o.charCodeAt(g++) ? (h.consume(C), _) : f(C);
6683
+ return g === o.length ? (h.exit(a), he(C) ? (h.enter("whitespace"), k(C)) : w(C)) : C === o.charCodeAt(g++) ? (h.consume(C), _) : f(C);
6684
6684
  }
6685
6685
  function k(C) {
6686
- return ce(C) ? (h.consume(C), k) : (h.exit("whitespace"), w(C));
6686
+ return he(C) ? (h.consume(C), k) : (h.exit("whitespace"), w(C));
6687
6687
  }
6688
6688
  function w(C) {
6689
- return C === null || J(C) ? (h.exit(r), d(C)) : f(C);
6689
+ return C === null || W(C) ? (h.exit(r), d(C)) : f(C);
6690
6690
  }
6691
6691
  }
6692
6692
  }
@@ -6944,38 +6944,38 @@ function pu(t, e) {
6944
6944
  continue;
6945
6945
  }
6946
6946
  const w = i + 1;
6947
- let C = w, M = w, S;
6947
+ let C = w, M = w, A;
6948
6948
  if (k === 35) {
6949
6949
  M = ++C;
6950
6950
  const q = t.charCodeAt(M);
6951
- q === 88 || q === 120 ? (S = "hexadecimal", M = ++C) : S = "decimal";
6951
+ q === 88 || q === 120 ? (A = "hexadecimal", M = ++C) : A = "decimal";
6952
6952
  } else
6953
- S = "named";
6953
+ A = "named";
6954
6954
  let m = "", T = "", F = "";
6955
- const P = S === "named" ? dd : S === "decimal" ? g0 : QE;
6955
+ const P = A === "named" ? dd : A === "decimal" ? g0 : QE;
6956
6956
  for (M--; ++M <= t.length; ) {
6957
6957
  const q = t.charCodeAt(M);
6958
6958
  if (!P(q))
6959
6959
  break;
6960
- F += String.fromCharCode(q), S === "named" && m0.includes(F) && (m = F, T = Ha(F));
6960
+ F += String.fromCharCode(q), A === "named" && m0.includes(F) && (m = F, T = Ha(F));
6961
6961
  }
6962
6962
  let z = t.charCodeAt(M) === 59;
6963
6963
  if (z) {
6964
6964
  M++;
6965
- const q = S === "named" ? Ha(F) : !1;
6965
+ const q = A === "named" ? Ha(F) : !1;
6966
6966
  q && (m = F, T = q);
6967
6967
  }
6968
6968
  let B = 1 + M - w, L = "";
6969
6969
  if (!(!z && n.nonTerminated === !1)) if (!F)
6970
- S !== "named" && y(4, B);
6971
- else if (S === "named") {
6970
+ A !== "named" && y(4, B);
6971
+ else if (A === "named") {
6972
6972
  if (z && !T)
6973
6973
  y(5, 1);
6974
6974
  else if (m !== F && (M = C + m.length, B = 1 + M - C, z = !1), !z) {
6975
6975
  const q = m ? 1 : 3;
6976
6976
  if (n.attribute) {
6977
- const W = t.charCodeAt(M);
6978
- W === 61 ? (y(q, B), T = "") : dd(W) ? T = "" : y(q, B);
6977
+ const Z = t.charCodeAt(M);
6978
+ Z === 61 ? (y(q, B), T = "") : dd(Z) ? T = "" : y(q, B);
6979
6979
  } else
6980
6980
  y(q, B);
6981
6981
  }
@@ -6984,17 +6984,17 @@ function pu(t, e) {
6984
6984
  z || y(2, B);
6985
6985
  let q = Number.parseInt(
6986
6986
  F,
6987
- S === "hexadecimal" ? 16 : 10
6987
+ A === "hexadecimal" ? 16 : 10
6988
6988
  );
6989
6989
  if (jE(q))
6990
6990
  y(7, B), L = "�";
6991
6991
  else if (q in hd)
6992
6992
  y(6, B), L = hd[q];
6993
6993
  else {
6994
- let W = "";
6995
- HE(q) && y(6, B), q > 65535 && (q -= 65536, W += String.fromCharCode(
6994
+ let Z = "";
6995
+ HE(q) && y(6, B), q > 65535 && (q -= 65536, Z += String.fromCharCode(
6996
6996
  q >>> 10 | 55296
6997
- ), q = 56320 | q & 1023), L = W + String.fromCharCode(q);
6997
+ ), q = 56320 | q & 1023), L = Z + String.fromCharCode(q);
6998
6998
  }
6999
6999
  }
7000
7000
  if (L) {
@@ -7596,44 +7596,44 @@ function gu(t, e, n, r, a, i, s, o, l, c, u, h, d, f, g) {
7596
7596
  return t.enter(r), t.enter(a), t.consume(D), t.exit(a), w;
7597
7597
  }
7598
7598
  function w(D) {
7599
- return D === 35 ? (y = s, C(D)) : D === 46 ? (y = o, C(D)) : D === 58 || D === 95 || Ve(D) ? (t.enter(i), t.enter(l), t.consume(D), m) : g && ce(D) ? le(t, w, "whitespace")(D) : !g && _e(D) ? kn(t, w)(D) : W(D);
7599
+ return D === 35 ? (y = s, C(D)) : D === 46 ? (y = o, C(D)) : D === 58 || D === 95 || Ve(D) ? (t.enter(i), t.enter(l), t.consume(D), m) : g && he(D) ? oe(t, w, "whitespace")(D) : !g && _e(D) ? kn(t, w)(D) : Z(D);
7600
7600
  }
7601
7601
  function C(D) {
7602
- const G = (
7602
+ const K = (
7603
7603
  /** @type {TokenType} */
7604
7604
  y + "Marker"
7605
7605
  );
7606
- return t.enter(i), t.enter(y), t.enter(G), t.consume(D), t.exit(G), M;
7606
+ return t.enter(i), t.enter(y), t.enter(K), t.consume(D), t.exit(K), M;
7607
7607
  }
7608
7608
  function M(D) {
7609
7609
  if (D === null || D === 34 || D === 35 || D === 39 || D === 46 || D === 60 || D === 61 || D === 62 || D === 96 || D === 125 || _e(D))
7610
7610
  return n(D);
7611
- const G = (
7611
+ const K = (
7612
7612
  /** @type {TokenType} */
7613
7613
  y + "Value"
7614
7614
  );
7615
- return t.enter(G), t.consume(D), S;
7615
+ return t.enter(K), t.consume(D), A;
7616
7616
  }
7617
- function S(D) {
7617
+ function A(D) {
7618
7618
  if (D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 62 || D === 96)
7619
7619
  return n(D);
7620
7620
  if (D === 35 || D === 46 || D === 125 || _e(D)) {
7621
- const G = (
7621
+ const K = (
7622
7622
  /** @type {TokenType} */
7623
7623
  y + "Value"
7624
7624
  );
7625
- return t.exit(G), t.exit(y), t.exit(i), w(D);
7625
+ return t.exit(K), t.exit(y), t.exit(i), w(D);
7626
7626
  }
7627
- return t.consume(D), S;
7627
+ return t.consume(D), A;
7628
7628
  }
7629
7629
  function m(D) {
7630
- return D === 45 || D === 46 || D === 58 || D === 95 || Xe(D) ? (t.consume(D), m) : (t.exit(l), g && ce(D) ? le(t, T, "whitespace")(D) : !g && _e(D) ? kn(t, T)(D) : T(D));
7630
+ return D === 45 || D === 46 || D === 58 || D === 95 || Xe(D) ? (t.consume(D), m) : (t.exit(l), g && he(D) ? oe(t, T, "whitespace")(D) : !g && _e(D) ? kn(t, T)(D) : T(D));
7631
7631
  }
7632
7632
  function T(D) {
7633
7633
  return D === 61 ? (t.enter(c), t.consume(D), t.exit(c), F) : (t.exit(i), w(D));
7634
7634
  }
7635
7635
  function F(D) {
7636
- return D === null || D === 60 || D === 61 || D === 62 || D === 96 || D === 125 || g && J(D) ? n(D) : D === 34 || D === 39 ? (t.enter(u), t.enter(d), t.consume(D), t.exit(d), _ = D, z) : g && ce(D) ? le(t, F, "whitespace")(D) : !g && _e(D) ? kn(t, F)(D) : (t.enter(h), t.enter(f), t.consume(D), _ = void 0, P);
7636
+ return D === null || D === 60 || D === 61 || D === 62 || D === 96 || D === 125 || g && W(D) ? n(D) : D === 34 || D === 39 ? (t.enter(u), t.enter(d), t.consume(D), t.exit(d), _ = D, z) : g && he(D) ? oe(t, F, "whitespace")(D) : !g && _e(D) ? kn(t, F)(D) : (t.enter(h), t.enter(f), t.consume(D), _ = void 0, P);
7637
7637
  }
7638
7638
  function P(D) {
7639
7639
  return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 125 || _e(D) ? (t.exit(f), t.exit(h), t.exit(i), w(D)) : (t.consume(D), P);
@@ -7642,15 +7642,15 @@ function gu(t, e, n, r, a, i, s, o, l, c, u, h, d, f, g) {
7642
7642
  return D === _ ? (t.enter(d), t.consume(D), t.exit(d), t.exit(u), t.exit(i), q) : (t.enter(h), B(D));
7643
7643
  }
7644
7644
  function B(D) {
7645
- return D === _ ? (t.exit(h), z(D)) : D === null ? n(D) : J(D) ? g ? n(D) : kn(t, B)(D) : (t.enter(f), t.consume(D), L);
7645
+ return D === _ ? (t.exit(h), z(D)) : D === null ? n(D) : W(D) ? g ? n(D) : kn(t, B)(D) : (t.enter(f), t.consume(D), L);
7646
7646
  }
7647
7647
  function L(D) {
7648
- return D === _ || D === null || J(D) ? (t.exit(f), B(D)) : (t.consume(D), L);
7648
+ return D === _ || D === null || W(D) ? (t.exit(f), B(D)) : (t.consume(D), L);
7649
7649
  }
7650
7650
  function q(D) {
7651
- return D === 125 || _e(D) ? w(D) : W(D);
7651
+ return D === 125 || _e(D) ? w(D) : Z(D);
7652
7652
  }
7653
- function W(D) {
7653
+ function Z(D) {
7654
7654
  return D === 125 ? (t.enter(a), t.consume(D), t.exit(a), t.exit(r), e) : n(D);
7655
7655
  }
7656
7656
  }
@@ -7673,7 +7673,7 @@ function yu(t, e, n, r, a, i, s) {
7673
7673
  return c && (c.next = k), c = k, f(_);
7674
7674
  }
7675
7675
  function f(_) {
7676
- return _ === null || o > 999 || _ === 91 && ++l > 32 ? n(_) : _ === 93 && !l-- ? (t.exit("chunkText"), y(_)) : J(_) ? s ? n(_) : (t.consume(_), t.exit("chunkText"), d) : (t.consume(_), _ === 92 ? g : f);
7676
+ return _ === null || o > 999 || _ === 91 && ++l > 32 ? n(_) : _ === 93 && !l-- ? (t.exit("chunkText"), y(_)) : W(_) ? s ? n(_) : (t.consume(_), t.exit("chunkText"), d) : (t.consume(_), _ === 92 ? g : f);
7677
7677
  }
7678
7678
  function g(_) {
7679
7679
  return _ === 91 || _ === 92 || _ === 93 ? (t.consume(_), o++, f) : f(_);
@@ -7722,29 +7722,29 @@ function w4(t, e, n) {
7722
7722
  return P === 123 ? t.attempt(O4, d, d)(P) : d(P);
7723
7723
  }
7724
7724
  function d(P) {
7725
- return le(t, f, "whitespace")(P);
7725
+ return oe(t, f, "whitespace")(P);
7726
7726
  }
7727
7727
  function f(P) {
7728
- return t.exit("directiveContainerFence"), P === null ? T(P) : J(P) ? r.interrupt ? e(P) : t.attempt(Ri, g, T)(P) : n(P);
7728
+ return t.exit("directiveContainerFence"), P === null ? T(P) : W(P) ? r.interrupt ? e(P) : t.attempt(Ri, g, T)(P) : n(P);
7729
7729
  }
7730
7730
  function g(P) {
7731
- return P === null ? T(P) : J(P) ? t.check(Ri, C, T)(P) : (t.enter("directiveContainerContent"), y(P));
7731
+ return P === null ? T(P) : W(P) ? t.check(Ri, C, T)(P) : (t.enter("directiveContainerContent"), y(P));
7732
7732
  }
7733
7733
  function y(P) {
7734
7734
  return t.attempt({
7735
7735
  tokenize: F,
7736
7736
  partial: !0
7737
- }, m, i ? le(t, _, "linePrefix", i + 1) : _)(P);
7737
+ }, m, i ? oe(t, _, "linePrefix", i + 1) : _)(P);
7738
7738
  }
7739
7739
  function _(P) {
7740
- return P === null ? m(P) : J(P) ? t.check(Ri, w, m)(P) : w(P);
7740
+ return P === null ? m(P) : W(P) ? t.check(Ri, w, m)(P) : w(P);
7741
7741
  }
7742
7742
  function k(P) {
7743
7743
  if (P === null) {
7744
7744
  const z = t.exit("chunkDocument");
7745
7745
  return r.parser.lazy[z.start.line] = !1, m(P);
7746
7746
  }
7747
- return J(P) ? t.check(Ri, M, S)(P) : (t.consume(P), k);
7747
+ return W(P) ? t.check(Ri, M, A)(P) : (t.consume(P), k);
7748
7748
  }
7749
7749
  function w(P) {
7750
7750
  const z = t.enter("chunkDocument", {
@@ -7761,7 +7761,7 @@ function w4(t, e, n) {
7761
7761
  const z = t.exit("chunkDocument");
7762
7762
  return r.parser.lazy[z.start.line] = !1, y;
7763
7763
  }
7764
- function S(P) {
7764
+ function A(P) {
7765
7765
  const z = t.exit("chunkDocument");
7766
7766
  return r.parser.lazy[z.start.line] = !1, m(P);
7767
7767
  }
@@ -7773,15 +7773,15 @@ function w4(t, e, n) {
7773
7773
  }
7774
7774
  function F(P, z, B) {
7775
7775
  let L = 0;
7776
- return le(P, q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
7777
- function q(G) {
7778
- return P.enter("directiveContainerFence"), P.enter("directiveContainerSequence"), W(G);
7776
+ return oe(P, q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
7777
+ function q(K) {
7778
+ return P.enter("directiveContainerFence"), P.enter("directiveContainerSequence"), Z(K);
7779
7779
  }
7780
- function W(G) {
7781
- return G === 58 ? (P.consume(G), L++, W) : L < s ? B(G) : (P.exit("directiveContainerSequence"), le(P, D, "whitespace")(G));
7780
+ function Z(K) {
7781
+ return K === 58 ? (P.consume(K), L++, Z) : L < s ? B(K) : (P.exit("directiveContainerSequence"), oe(P, D, "whitespace")(K));
7782
7782
  }
7783
- function D(G) {
7784
- return G === null || J(G) ? (P.exit("directiveContainerFence"), z(G)) : B(G);
7783
+ function D(K) {
7784
+ return K === null || W(K) ? (P.exit("directiveContainerFence"), z(K)) : B(K);
7785
7785
  }
7786
7786
  }
7787
7787
  }
@@ -7826,10 +7826,10 @@ function C4(t, e, n) {
7826
7826
  return u === 123 ? t.attempt(v4, l, l)(u) : l(u);
7827
7827
  }
7828
7828
  function l(u) {
7829
- return le(t, c, "whitespace")(u);
7829
+ return oe(t, c, "whitespace")(u);
7830
7830
  }
7831
7831
  function c(u) {
7832
- return u === null || J(u) ? (t.exit("directiveLeaf"), e(u)) : n(u);
7832
+ return u === null || W(u) ? (t.exit("directiveLeaf"), e(u)) : n(u);
7833
7833
  }
7834
7834
  }
7835
7835
  function D4(t, e, n) {
@@ -8057,7 +8057,7 @@ function $4() {
8057
8057
  return m.call(F, T);
8058
8058
  };
8059
8059
  d.any = (m, ...T) => (d.array(m) ? m : [m]).some((P) => M(Array.prototype.some, P, T)), d.all = (m, ...T) => M(Array.prototype.every, m, T);
8060
- const S = (m, T, F, P = {}) => {
8060
+ const A = (m, T, F, P = {}) => {
8061
8061
  if (!m) {
8062
8062
  const { multipleValues: z } = P, B = z ? `received values of types ${[
8063
8063
  ...new Set(F.map((L) => `\`${d(L)}\``))
@@ -8067,97 +8067,97 @@ function $4() {
8067
8067
  };
8068
8068
  e.assert = {
8069
8069
  // Unknowns.
8070
- undefined: (m) => S(d.undefined(m), "undefined", m),
8071
- string: (m) => S(d.string(m), "string", m),
8072
- number: (m) => S(d.number(m), "number", m),
8073
- bigint: (m) => S(d.bigint(m), "bigint", m),
8070
+ undefined: (m) => A(d.undefined(m), "undefined", m),
8071
+ string: (m) => A(d.string(m), "string", m),
8072
+ number: (m) => A(d.number(m), "number", m),
8073
+ bigint: (m) => A(d.bigint(m), "bigint", m),
8074
8074
  // eslint-disable-next-line @typescript-eslint/ban-types
8075
- function_: (m) => S(d.function_(m), "Function", m),
8076
- null_: (m) => S(d.null_(m), "null", m),
8077
- class_: (m) => S(d.class_(m), "Class", m),
8078
- boolean: (m) => S(d.boolean(m), "boolean", m),
8079
- symbol: (m) => S(d.symbol(m), "symbol", m),
8080
- numericString: (m) => S(d.numericString(m), "string with a number", m),
8075
+ function_: (m) => A(d.function_(m), "Function", m),
8076
+ null_: (m) => A(d.null_(m), "null", m),
8077
+ class_: (m) => A(d.class_(m), "Class", m),
8078
+ boolean: (m) => A(d.boolean(m), "boolean", m),
8079
+ symbol: (m) => A(d.symbol(m), "symbol", m),
8080
+ numericString: (m) => A(d.numericString(m), "string with a number", m),
8081
8081
  array: (m, T) => {
8082
- S(d.array(m), "Array", m), T && m.forEach(T);
8082
+ A(d.array(m), "Array", m), T && m.forEach(T);
8083
8083
  },
8084
- buffer: (m) => S(d.buffer(m), "Buffer", m),
8085
- blob: (m) => S(d.blob(m), "Blob", m),
8086
- nullOrUndefined: (m) => S(d.nullOrUndefined(m), "null or undefined", m),
8087
- object: (m) => S(d.object(m), "Object", m),
8088
- iterable: (m) => S(d.iterable(m), "Iterable", m),
8089
- asyncIterable: (m) => S(d.asyncIterable(m), "AsyncIterable", m),
8090
- generator: (m) => S(d.generator(m), "Generator", m),
8091
- asyncGenerator: (m) => S(d.asyncGenerator(m), "AsyncGenerator", m),
8092
- nativePromise: (m) => S(d.nativePromise(m), "native Promise", m),
8093
- promise: (m) => S(d.promise(m), "Promise", m),
8094
- generatorFunction: (m) => S(d.generatorFunction(m), "GeneratorFunction", m),
8095
- asyncGeneratorFunction: (m) => S(d.asyncGeneratorFunction(m), "AsyncGeneratorFunction", m),
8084
+ buffer: (m) => A(d.buffer(m), "Buffer", m),
8085
+ blob: (m) => A(d.blob(m), "Blob", m),
8086
+ nullOrUndefined: (m) => A(d.nullOrUndefined(m), "null or undefined", m),
8087
+ object: (m) => A(d.object(m), "Object", m),
8088
+ iterable: (m) => A(d.iterable(m), "Iterable", m),
8089
+ asyncIterable: (m) => A(d.asyncIterable(m), "AsyncIterable", m),
8090
+ generator: (m) => A(d.generator(m), "Generator", m),
8091
+ asyncGenerator: (m) => A(d.asyncGenerator(m), "AsyncGenerator", m),
8092
+ nativePromise: (m) => A(d.nativePromise(m), "native Promise", m),
8093
+ promise: (m) => A(d.promise(m), "Promise", m),
8094
+ generatorFunction: (m) => A(d.generatorFunction(m), "GeneratorFunction", m),
8095
+ asyncGeneratorFunction: (m) => A(d.asyncGeneratorFunction(m), "AsyncGeneratorFunction", m),
8096
8096
  // eslint-disable-next-line @typescript-eslint/ban-types
8097
- asyncFunction: (m) => S(d.asyncFunction(m), "AsyncFunction", m),
8097
+ asyncFunction: (m) => A(d.asyncFunction(m), "AsyncFunction", m),
8098
8098
  // eslint-disable-next-line @typescript-eslint/ban-types
8099
- boundFunction: (m) => S(d.boundFunction(m), "Function", m),
8100
- regExp: (m) => S(d.regExp(m), "RegExp", m),
8101
- date: (m) => S(d.date(m), "Date", m),
8102
- error: (m) => S(d.error(m), "Error", m),
8103
- map: (m) => S(d.map(m), "Map", m),
8104
- set: (m) => S(d.set(m), "Set", m),
8105
- weakMap: (m) => S(d.weakMap(m), "WeakMap", m),
8106
- weakSet: (m) => S(d.weakSet(m), "WeakSet", m),
8107
- int8Array: (m) => S(d.int8Array(m), "Int8Array", m),
8108
- uint8Array: (m) => S(d.uint8Array(m), "Uint8Array", m),
8109
- uint8ClampedArray: (m) => S(d.uint8ClampedArray(m), "Uint8ClampedArray", m),
8110
- int16Array: (m) => S(d.int16Array(m), "Int16Array", m),
8111
- uint16Array: (m) => S(d.uint16Array(m), "Uint16Array", m),
8112
- int32Array: (m) => S(d.int32Array(m), "Int32Array", m),
8113
- uint32Array: (m) => S(d.uint32Array(m), "Uint32Array", m),
8114
- float32Array: (m) => S(d.float32Array(m), "Float32Array", m),
8115
- float64Array: (m) => S(d.float64Array(m), "Float64Array", m),
8116
- bigInt64Array: (m) => S(d.bigInt64Array(m), "BigInt64Array", m),
8117
- bigUint64Array: (m) => S(d.bigUint64Array(m), "BigUint64Array", m),
8118
- arrayBuffer: (m) => S(d.arrayBuffer(m), "ArrayBuffer", m),
8119
- sharedArrayBuffer: (m) => S(d.sharedArrayBuffer(m), "SharedArrayBuffer", m),
8120
- dataView: (m) => S(d.dataView(m), "DataView", m),
8121
- enumCase: (m, T) => S(d.enumCase(m, T), "EnumCase", m),
8122
- urlInstance: (m) => S(d.urlInstance(m), "URL", m),
8123
- urlString: (m) => S(d.urlString(m), "string with a URL", m),
8124
- truthy: (m) => S(d.truthy(m), "truthy", m),
8125
- falsy: (m) => S(d.falsy(m), "falsy", m),
8126
- nan: (m) => S(d.nan(m), "NaN", m),
8127
- primitive: (m) => S(d.primitive(m), "primitive", m),
8128
- integer: (m) => S(d.integer(m), "integer", m),
8129
- safeInteger: (m) => S(d.safeInteger(m), "integer", m),
8130
- plainObject: (m) => S(d.plainObject(m), "plain object", m),
8131
- typedArray: (m) => S(d.typedArray(m), "TypedArray", m),
8132
- arrayLike: (m) => S(d.arrayLike(m), "array-like", m),
8133
- domElement: (m) => S(d.domElement(m), "HTMLElement", m),
8134
- observable: (m) => S(d.observable(m), "Observable", m),
8135
- nodeStream: (m) => S(d.nodeStream(m), "Node.js Stream", m),
8136
- infinite: (m) => S(d.infinite(m), "infinite number", m),
8137
- emptyArray: (m) => S(d.emptyArray(m), "empty array", m),
8138
- nonEmptyArray: (m) => S(d.nonEmptyArray(m), "non-empty array", m),
8139
- emptyString: (m) => S(d.emptyString(m), "empty string", m),
8140
- emptyStringOrWhitespace: (m) => S(d.emptyStringOrWhitespace(m), "empty string or whitespace", m),
8141
- nonEmptyString: (m) => S(d.nonEmptyString(m), "non-empty string", m),
8142
- nonEmptyStringAndNotWhitespace: (m) => S(d.nonEmptyStringAndNotWhitespace(m), "non-empty string and not whitespace", m),
8143
- emptyObject: (m) => S(d.emptyObject(m), "empty object", m),
8144
- nonEmptyObject: (m) => S(d.nonEmptyObject(m), "non-empty object", m),
8145
- emptySet: (m) => S(d.emptySet(m), "empty set", m),
8146
- nonEmptySet: (m) => S(d.nonEmptySet(m), "non-empty set", m),
8147
- emptyMap: (m) => S(d.emptyMap(m), "empty map", m),
8148
- nonEmptyMap: (m) => S(d.nonEmptyMap(m), "non-empty map", m),
8149
- propertyKey: (m) => S(d.propertyKey(m), "PropertyKey", m),
8150
- formData: (m) => S(d.formData(m), "FormData", m),
8151
- urlSearchParams: (m) => S(d.urlSearchParams(m), "URLSearchParams", m),
8099
+ boundFunction: (m) => A(d.boundFunction(m), "Function", m),
8100
+ regExp: (m) => A(d.regExp(m), "RegExp", m),
8101
+ date: (m) => A(d.date(m), "Date", m),
8102
+ error: (m) => A(d.error(m), "Error", m),
8103
+ map: (m) => A(d.map(m), "Map", m),
8104
+ set: (m) => A(d.set(m), "Set", m),
8105
+ weakMap: (m) => A(d.weakMap(m), "WeakMap", m),
8106
+ weakSet: (m) => A(d.weakSet(m), "WeakSet", m),
8107
+ int8Array: (m) => A(d.int8Array(m), "Int8Array", m),
8108
+ uint8Array: (m) => A(d.uint8Array(m), "Uint8Array", m),
8109
+ uint8ClampedArray: (m) => A(d.uint8ClampedArray(m), "Uint8ClampedArray", m),
8110
+ int16Array: (m) => A(d.int16Array(m), "Int16Array", m),
8111
+ uint16Array: (m) => A(d.uint16Array(m), "Uint16Array", m),
8112
+ int32Array: (m) => A(d.int32Array(m), "Int32Array", m),
8113
+ uint32Array: (m) => A(d.uint32Array(m), "Uint32Array", m),
8114
+ float32Array: (m) => A(d.float32Array(m), "Float32Array", m),
8115
+ float64Array: (m) => A(d.float64Array(m), "Float64Array", m),
8116
+ bigInt64Array: (m) => A(d.bigInt64Array(m), "BigInt64Array", m),
8117
+ bigUint64Array: (m) => A(d.bigUint64Array(m), "BigUint64Array", m),
8118
+ arrayBuffer: (m) => A(d.arrayBuffer(m), "ArrayBuffer", m),
8119
+ sharedArrayBuffer: (m) => A(d.sharedArrayBuffer(m), "SharedArrayBuffer", m),
8120
+ dataView: (m) => A(d.dataView(m), "DataView", m),
8121
+ enumCase: (m, T) => A(d.enumCase(m, T), "EnumCase", m),
8122
+ urlInstance: (m) => A(d.urlInstance(m), "URL", m),
8123
+ urlString: (m) => A(d.urlString(m), "string with a URL", m),
8124
+ truthy: (m) => A(d.truthy(m), "truthy", m),
8125
+ falsy: (m) => A(d.falsy(m), "falsy", m),
8126
+ nan: (m) => A(d.nan(m), "NaN", m),
8127
+ primitive: (m) => A(d.primitive(m), "primitive", m),
8128
+ integer: (m) => A(d.integer(m), "integer", m),
8129
+ safeInteger: (m) => A(d.safeInteger(m), "integer", m),
8130
+ plainObject: (m) => A(d.plainObject(m), "plain object", m),
8131
+ typedArray: (m) => A(d.typedArray(m), "TypedArray", m),
8132
+ arrayLike: (m) => A(d.arrayLike(m), "array-like", m),
8133
+ domElement: (m) => A(d.domElement(m), "HTMLElement", m),
8134
+ observable: (m) => A(d.observable(m), "Observable", m),
8135
+ nodeStream: (m) => A(d.nodeStream(m), "Node.js Stream", m),
8136
+ infinite: (m) => A(d.infinite(m), "infinite number", m),
8137
+ emptyArray: (m) => A(d.emptyArray(m), "empty array", m),
8138
+ nonEmptyArray: (m) => A(d.nonEmptyArray(m), "non-empty array", m),
8139
+ emptyString: (m) => A(d.emptyString(m), "empty string", m),
8140
+ emptyStringOrWhitespace: (m) => A(d.emptyStringOrWhitespace(m), "empty string or whitespace", m),
8141
+ nonEmptyString: (m) => A(d.nonEmptyString(m), "non-empty string", m),
8142
+ nonEmptyStringAndNotWhitespace: (m) => A(d.nonEmptyStringAndNotWhitespace(m), "non-empty string and not whitespace", m),
8143
+ emptyObject: (m) => A(d.emptyObject(m), "empty object", m),
8144
+ nonEmptyObject: (m) => A(d.nonEmptyObject(m), "non-empty object", m),
8145
+ emptySet: (m) => A(d.emptySet(m), "empty set", m),
8146
+ nonEmptySet: (m) => A(d.nonEmptySet(m), "non-empty set", m),
8147
+ emptyMap: (m) => A(d.emptyMap(m), "empty map", m),
8148
+ nonEmptyMap: (m) => A(d.nonEmptyMap(m), "non-empty map", m),
8149
+ propertyKey: (m) => A(d.propertyKey(m), "PropertyKey", m),
8150
+ formData: (m) => A(d.formData(m), "FormData", m),
8151
+ urlSearchParams: (m) => A(d.urlSearchParams(m), "URLSearchParams", m),
8152
8152
  // Numbers.
8153
- evenInteger: (m) => S(d.evenInteger(m), "even integer", m),
8154
- oddInteger: (m) => S(d.oddInteger(m), "odd integer", m),
8153
+ evenInteger: (m) => A(d.evenInteger(m), "even integer", m),
8154
+ oddInteger: (m) => A(d.oddInteger(m), "odd integer", m),
8155
8155
  // Two arguments.
8156
- directInstanceOf: (m, T) => S(d.directInstanceOf(m, T), "T", m),
8157
- inRange: (m, T) => S(d.inRange(m, T), "in range", m),
8156
+ directInstanceOf: (m, T) => A(d.directInstanceOf(m, T), "T", m),
8157
+ inRange: (m, T) => A(d.inRange(m, T), "in range", m),
8158
8158
  // Variadic functions.
8159
- any: (m, ...T) => S(d.any(m, ...T), "predicate returns truthy for any value", T, { multipleValues: !0 }),
8160
- all: (m, ...T) => S(d.all(m, ...T), "predicate returns truthy for all values", T, { multipleValues: !0 })
8159
+ any: (m, ...T) => A(d.any(m, ...T), "predicate returns truthy for any value", T, { multipleValues: !0 }),
8160
+ all: (m, ...T) => A(d.all(m, ...T), "predicate returns truthy for all values", T, { multipleValues: !0 })
8161
8161
  }, Object.defineProperties(d, {
8162
8162
  class: {
8163
8163
  value: d.class_
@@ -9767,7 +9767,7 @@ const FX = /* @__PURE__ */ Ws(MX);
9767
9767
  var rl, kd;
9768
9768
  function BX() {
9769
9769
  return kd || (kd = 1, rl = () => {
9770
- const t = "\\ud800-\\udfff", s = "\\u0300-\\u036f" + "\\ufe20-\\ufe2f" + "\\u20d0-\\u20ff" + "\\u1ab0-\\u1aff" + "\\u1dc0-\\u1dff", o = "\\ufe0e\\ufe0f", l = "\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83C\\uDF93", c = `[${t}]`, u = `[${s}]`, h = "\\ud83c[\\udffb-\\udfff]", d = `(?:${u}|${h})`, f = `[^${t}]`, g = "(?:\\uD83C[\\uDDE6-\\uDDFF]){2}", y = "[\\ud800-\\udbff][\\udc00-\\udfff]", _ = "\\u200d", k = "(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)", w = `[${l}]`, C = `${d}?`, M = `[${o}]?`, S = `(?:${_}(?:${[f, g, y].join("|")})${M + C})*`, m = M + C + S, F = `(?:${[`${f}${u}?`, u, g, y, c, w].join("|")})`;
9770
+ const t = "\\ud800-\\udfff", s = "\\u0300-\\u036f" + "\\ufe20-\\ufe2f" + "\\u20d0-\\u20ff" + "\\u1ab0-\\u1aff" + "\\u1dc0-\\u1dff", o = "\\ufe0e\\ufe0f", l = "\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83C\\uDF93", c = `[${t}]`, u = `[${s}]`, h = "\\ud83c[\\udffb-\\udfff]", d = `(?:${u}|${h})`, f = `[^${t}]`, g = "(?:\\uD83C[\\uDDE6-\\uDDFF]){2}", y = "[\\ud800-\\udbff][\\udc00-\\udfff]", _ = "\\u200d", k = "(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)", w = `[${l}]`, C = `${d}?`, M = `[${o}]?`, A = `(?:${_}(?:${[f, g, y].join("|")})${M + C})*`, m = M + C + A, F = `(?:${[`${f}${u}?`, u, g, y, c, w].join("|")})`;
9771
9771
  return new RegExp(`${k}|${h}(?=${h})|${F + m}`, "g");
9772
9772
  }), rl;
9773
9773
  }
@@ -11074,13 +11074,13 @@ gt.prototype.property = "";
11074
11074
  gt.prototype.spaceSeparated = !1;
11075
11075
  gt.prototype.space = void 0;
11076
11076
  let BY = 0;
11077
- const he = fr(), Fe = fr(), rc = fr(), X = fr(), ve = fr(), xr = fr(), bt = fr();
11077
+ const fe = fr(), Fe = fr(), rc = fr(), X = fr(), ve = fr(), xr = fr(), bt = fr();
11078
11078
  function fr() {
11079
11079
  return 2 ** ++BY;
11080
11080
  }
11081
11081
  const ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11082
11082
  __proto__: null,
11083
- boolean: he,
11083
+ boolean: fe,
11084
11084
  booleanish: Fe,
11085
11085
  commaOrSpaceSeparated: bt,
11086
11086
  commaSeparated: xr,
@@ -11209,38 +11209,38 @@ const QY = Wr({
11209
11209
  accessKey: ve,
11210
11210
  action: null,
11211
11211
  allow: null,
11212
- allowFullScreen: he,
11213
- allowPaymentRequest: he,
11214
- allowUserMedia: he,
11212
+ allowFullScreen: fe,
11213
+ allowPaymentRequest: fe,
11214
+ allowUserMedia: fe,
11215
11215
  alt: null,
11216
11216
  as: null,
11217
- async: he,
11217
+ async: fe,
11218
11218
  autoCapitalize: null,
11219
11219
  autoComplete: ve,
11220
- autoFocus: he,
11221
- autoPlay: he,
11220
+ autoFocus: fe,
11221
+ autoPlay: fe,
11222
11222
  blocking: ve,
11223
11223
  capture: null,
11224
11224
  charSet: null,
11225
- checked: he,
11225
+ checked: fe,
11226
11226
  cite: null,
11227
11227
  className: ve,
11228
11228
  cols: X,
11229
11229
  colSpan: null,
11230
11230
  content: null,
11231
11231
  contentEditable: Fe,
11232
- controls: he,
11232
+ controls: fe,
11233
11233
  controlsList: ve,
11234
11234
  coords: X | xr,
11235
11235
  crossOrigin: null,
11236
11236
  data: null,
11237
11237
  dateTime: null,
11238
11238
  decoding: null,
11239
- default: he,
11240
- defer: he,
11239
+ default: fe,
11240
+ defer: fe,
11241
11241
  dir: null,
11242
11242
  dirName: null,
11243
- disabled: he,
11243
+ disabled: fe,
11244
11244
  download: rc,
11245
11245
  draggable: Fe,
11246
11246
  encType: null,
@@ -11250,7 +11250,7 @@ const QY = Wr({
11250
11250
  formAction: null,
11251
11251
  formEncType: null,
11252
11252
  formMethod: null,
11253
- formNoValidate: he,
11253
+ formNoValidate: fe,
11254
11254
  formTarget: null,
11255
11255
  headers: ve,
11256
11256
  height: X,
@@ -11263,15 +11263,15 @@ const QY = Wr({
11263
11263
  id: null,
11264
11264
  imageSizes: null,
11265
11265
  imageSrcSet: null,
11266
- inert: he,
11266
+ inert: fe,
11267
11267
  inputMode: null,
11268
11268
  integrity: null,
11269
11269
  is: null,
11270
- isMap: he,
11270
+ isMap: fe,
11271
11271
  itemId: null,
11272
11272
  itemProp: ve,
11273
11273
  itemRef: ve,
11274
- itemScope: he,
11274
+ itemScope: fe,
11275
11275
  itemType: ve,
11276
11276
  kind: null,
11277
11277
  label: null,
@@ -11279,7 +11279,7 @@ const QY = Wr({
11279
11279
  language: null,
11280
11280
  list: null,
11281
11281
  loading: null,
11282
- loop: he,
11282
+ loop: fe,
11283
11283
  low: X,
11284
11284
  manifest: null,
11285
11285
  max: null,
@@ -11288,12 +11288,12 @@ const QY = Wr({
11288
11288
  method: null,
11289
11289
  min: null,
11290
11290
  minLength: X,
11291
- multiple: he,
11292
- muted: he,
11291
+ multiple: fe,
11292
+ muted: fe,
11293
11293
  name: null,
11294
11294
  nonce: null,
11295
- noModule: he,
11296
- noValidate: he,
11295
+ noModule: fe,
11296
+ noValidate: fe,
11297
11297
  onAbort: null,
11298
11298
  onAfterPrint: null,
11299
11299
  onAuxClick: null,
@@ -11382,31 +11382,31 @@ const QY = Wr({
11382
11382
  onVolumeChange: null,
11383
11383
  onWaiting: null,
11384
11384
  onWheel: null,
11385
- open: he,
11385
+ open: fe,
11386
11386
  optimum: X,
11387
11387
  pattern: null,
11388
11388
  ping: ve,
11389
11389
  placeholder: null,
11390
- playsInline: he,
11390
+ playsInline: fe,
11391
11391
  popover: null,
11392
11392
  popoverTarget: null,
11393
11393
  popoverTargetAction: null,
11394
11394
  poster: null,
11395
11395
  preload: null,
11396
- readOnly: he,
11396
+ readOnly: fe,
11397
11397
  referrerPolicy: null,
11398
11398
  rel: ve,
11399
- required: he,
11400
- reversed: he,
11399
+ required: fe,
11400
+ reversed: fe,
11401
11401
  rows: X,
11402
11402
  rowSpan: X,
11403
11403
  sandbox: ve,
11404
11404
  scope: null,
11405
- scoped: he,
11406
- seamless: he,
11407
- selected: he,
11408
- shadowRootClonable: he,
11409
- shadowRootDelegatesFocus: he,
11405
+ scoped: fe,
11406
+ seamless: fe,
11407
+ selected: fe,
11408
+ shadowRootClonable: fe,
11409
+ shadowRootDelegatesFocus: fe,
11410
11410
  shadowRootMode: null,
11411
11411
  shape: null,
11412
11412
  size: X,
@@ -11426,7 +11426,7 @@ const QY = Wr({
11426
11426
  title: null,
11427
11427
  translate: null,
11428
11428
  type: null,
11429
- typeMustMatch: he,
11429
+ typeMustMatch: fe,
11430
11430
  useMap: null,
11431
11431
  value: Fe,
11432
11432
  width: X,
@@ -11472,9 +11472,9 @@ const QY = Wr({
11472
11472
  // `<object>`
11473
11473
  color: null,
11474
11474
  // `<font>` and `<hr>`. Use CSS instead
11475
- compact: he,
11475
+ compact: fe,
11476
11476
  // Lists. Use CSS to reduce space between items instead
11477
- declare: he,
11477
+ declare: fe,
11478
11478
  // `<object>`
11479
11479
  event: null,
11480
11480
  // `<script>`
@@ -11498,13 +11498,13 @@ const QY = Wr({
11498
11498
  // `<body>`
11499
11499
  marginWidth: X,
11500
11500
  // `<body>`
11501
- noResize: he,
11501
+ noResize: fe,
11502
11502
  // `<frame>`
11503
- noHref: he,
11503
+ noHref: fe,
11504
11504
  // `<area>`. Use no href instead of an explicit `nohref`
11505
- noShade: he,
11505
+ noShade: fe,
11506
11506
  // `<hr>`. Use background-color and height instead of borders
11507
- noWrap: he,
11507
+ noWrap: fe,
11508
11508
  // `<td>` and `<th>`
11509
11509
  object: null,
11510
11510
  // `<applet>`
@@ -11544,8 +11544,8 @@ const QY = Wr({
11544
11544
  allowTransparency: null,
11545
11545
  autoCorrect: null,
11546
11546
  autoSave: null,
11547
- disablePictureInPicture: he,
11548
- disableRemotePlayback: he,
11547
+ disablePictureInPicture: fe,
11548
+ disableRemotePlayback: fe,
11549
11549
  prefix: null,
11550
11550
  property: null,
11551
11551
  results: X,
@@ -11780,7 +11780,7 @@ const QY = Wr({
11780
11780
  dur: null,
11781
11781
  divisor: X,
11782
11782
  dominantBaseline: null,
11783
- download: he,
11783
+ download: fe,
11784
11784
  dx: null,
11785
11785
  dy: null,
11786
11786
  edgeMode: null,
@@ -20078,9 +20078,10 @@ async function jK(t, e) {
20078
20078
  const { svg: a } = await n.render(e, t);
20079
20079
  return a;
20080
20080
  } catch (r) {
20081
- return hf(
20082
- r instanceof Error ? r.message : "Mermaid render error"
20083
- );
20081
+ let a = r instanceof Error ? r.message : "Mermaid render error";
20082
+ return a = a.split(`
20083
+ `).filter((i) => !/mermaid\s+version\s+/i.test(i.trim())).join(`
20084
+ `).trim() || "Mermaid render error", hf(a);
20084
20085
  }
20085
20086
  }
20086
20087
  function hf(t) {
@@ -20358,72 +20359,84 @@ const jg = Om(
20358
20359
  streaming: u = !1,
20359
20360
  onStreamEnd: h
20360
20361
  }) => {
20361
- const { resolvedTheme: d, theme: f } = uo(), { messages: g } = bi(), y = r ?? (f || "auto"), _ = y === "auto" ? d : y, [k, w] = Ue(""), [C, M] = Ue([]), [S, m] = Ue(!1), [T, F] = Ue(null), P = mn(null), z = mn(u), B = u ? Math.max(50, s) : s, L = qK(t, B), q = wm(
20362
+ const { resolvedTheme: d, theme: f } = uo(), { messages: g } = bi(), y = r ?? (f || "auto"), _ = y === "auto" ? d : y, [k, w] = Ue(""), [C, M] = Ue([]), [A, m] = Ue(!1), [T, F] = Ue(null), P = mn(null), z = mn(u), B = u ? Math.max(50, s) : s, L = qK(t, B), q = wm(
20362
20363
  () => co(e),
20363
20364
  // eslint-disable-next-line react-hooks/exhaustive-deps
20364
20365
  [JSON.stringify(e)]
20365
20366
  );
20366
20367
  ht(() => {
20367
20368
  let D = !1;
20368
- async function G() {
20369
+ async function K() {
20369
20370
  if (!L.trim()) {
20370
20371
  w(""), M([]);
20371
20372
  return;
20372
20373
  }
20373
20374
  m(!0), F(null);
20374
20375
  try {
20375
- const ne = await q.process(L);
20376
+ const J = await q.process(L);
20376
20377
  if (D) return;
20377
- const de = String(ne), fe = Fg(L, e), x = Ru(fe);
20378
- w(de), M(x), o == null || o({ html: de, toc: x });
20379
- } catch (ne) {
20380
- D || F(ne instanceof Error ? ne : new Error(String(ne)));
20378
+ const ue = String(J), le = Fg(L, e), x = Ru(le);
20379
+ w(ue), M(x), o == null || o({ html: ue, toc: x });
20380
+ } catch (J) {
20381
+ D || F(J instanceof Error ? J : new Error(String(J)));
20381
20382
  } finally {
20382
20383
  D || m(!1);
20383
20384
  }
20384
20385
  }
20385
- return G(), () => {
20386
+ return K(), () => {
20386
20387
  D = !0;
20387
20388
  };
20388
20389
  }, [L, q]), ht(() => {
20389
20390
  if (!P.current) return;
20390
- P.current.querySelectorAll(".mermaid-container").forEach(async (G, ne) => {
20391
- const de = G.getAttribute("data-mermaid");
20392
- if (!de || G.getAttribute("data-rendered")) return;
20393
- G.setAttribute("data-rendered", "true");
20394
- const fe = await jK(de, `mermaid-${ne}`);
20395
- if (G.innerHTML = fe, u || G.querySelector(".mermaid-actions")) return;
20396
- const x = document.createElement("div");
20397
- if (x.className = "mermaid-actions", G.querySelector("svg")) {
20398
- const oe = document.createElement("button");
20399
- oe.className = "download-button", oe.textContent = g.renderer.download, oe.addEventListener("click", () => JK(G)), x.appendChild(oe);
20391
+ const D = P.current.querySelectorAll(".mermaid-container"), K = (J) => {
20392
+ if (u || J.querySelector(".mermaid-actions")) return;
20393
+ const ue = document.createElement("div");
20394
+ if (ue.className = "mermaid-actions", J.querySelector("svg")) {
20395
+ const x = document.createElement("button");
20396
+ x.className = "download-button", x.textContent = g.renderer.download, x.addEventListener("click", () => JK(J)), ue.appendChild(x);
20397
+ }
20398
+ const le = document.createElement("button");
20399
+ le.className = "preview-button", le.textContent = g.renderer.preview, le.addEventListener("click", () => {
20400
+ eJ(J, g.renderer.closePreview);
20401
+ }), ue.appendChild(le), J.insertBefore(ue, J.firstChild);
20402
+ };
20403
+ D.forEach(async (J, ue) => {
20404
+ const le = J.getAttribute("data-mermaid");
20405
+ if (!le) return;
20406
+ if (J.getAttribute("data-rendered") === "true") {
20407
+ if (!J.querySelector(".mermaid-diagram-scroll")) {
20408
+ const S = document.createElement("div");
20409
+ for (S.className = "mermaid-diagram-scroll"; J.firstChild; ) S.appendChild(J.firstChild);
20410
+ J.appendChild(S);
20411
+ }
20412
+ K(J);
20413
+ return;
20400
20414
  }
20401
- const K = document.createElement("button");
20402
- K.className = "preview-button", K.textContent = g.renderer.preview, K.addEventListener("click", () => {
20403
- eJ(G, g.renderer.closePreview);
20404
- }), x.appendChild(K), G.insertBefore(x, G.firstChild);
20415
+ J.setAttribute("data-rendered", "true");
20416
+ const ee = await jK(le, `mermaid-${ue}`), ce = document.createElement("div");
20417
+ ce.className = "mermaid-diagram-scroll", ce.innerHTML = ee, J.innerHTML = "", J.appendChild(ce), K(J);
20405
20418
  });
20406
20419
  }, [k, u, g.renderer]), ht(() => {
20407
20420
  if (!P.current || u) return;
20408
- P.current.querySelectorAll(".code-block").forEach((G) => {
20409
- var oe;
20410
- if (G.querySelector(".code-block-actions")) return;
20411
- const ne = (G.getAttribute("data-language") ?? "").toLowerCase(), de = ((oe = G.querySelector("code")) == null ? void 0 : oe.textContent) ?? "", fe = document.createElement("div");
20412
- fe.className = "code-block-actions";
20421
+ P.current.querySelectorAll(".code-block").forEach((K) => {
20422
+ var ce;
20423
+ if (K.querySelector(".code-block-actions")) return;
20424
+ const J = (K.getAttribute("data-language") ?? "").toLowerCase(), ue = ((ce = K.querySelector("code")) == null ? void 0 : ce.textContent) ?? "", le = document.createElement("div");
20425
+ le.className = "code-block-actions";
20413
20426
  const x = document.createElement("button");
20414
20427
  x.className = "copy-button", x.textContent = g.renderer.copyCode, x.addEventListener("click", async () => {
20415
- await XK(de), x.textContent = g.renderer.copied, setTimeout(() => x.textContent = g.renderer.copyCode, 2e3);
20416
- }), fe.appendChild(x);
20417
- const K = document.createElement("button");
20418
- if (K.className = "download-button", K.textContent = g.renderer.download, K.addEventListener("click", () => {
20419
- KK(de, ne);
20420
- }), fe.appendChild(K), ne === "html") {
20421
- const A = document.createElement("button");
20422
- A.className = "preview-button", A.textContent = g.renderer.preview, A.addEventListener("click", () => {
20423
- tJ(de, g.renderer.closePreview);
20424
- }), fe.appendChild(A);
20428
+ await XK(ue), x.textContent = g.renderer.copied, setTimeout(() => x.textContent = g.renderer.copyCode, 2e3);
20429
+ }), le.appendChild(x);
20430
+ const ee = document.createElement("button");
20431
+ if (ee.className = "download-button", ee.textContent = g.renderer.download, ee.addEventListener("click", () => {
20432
+ KK(ue, J);
20433
+ }), le.appendChild(ee), J === "html") {
20434
+ const S = document.createElement("button");
20435
+ S.className = "preview-button", S.textContent = g.renderer.preview, S.addEventListener("click", () => {
20436
+ tJ(ue, g.renderer.closePreview);
20437
+ }), le.appendChild(S);
20425
20438
  }
20426
- G.style.position = "relative", G.appendChild(fe);
20439
+ K.style.position = "relative", K.appendChild(le);
20427
20440
  });
20428
20441
  }, [k, g.renderer, u]), ht(() => {
20429
20442
  z.current && !u && (h == null || h()), z.current = u;
@@ -20433,16 +20446,16 @@ const jg = Om(
20433
20446
  D.scrollHeight - D.scrollTop - D.clientHeight < WK && (D.scrollTop = D.scrollHeight);
20434
20447
  }
20435
20448
  }, [k, u]);
20436
- const W = Pr(
20449
+ const Z = Pr(
20437
20450
  (D) => {
20438
- const G = D.target, ne = G.closest("a");
20439
- if (ne && l) {
20440
- const de = ne.getAttribute("href");
20441
- de && l(de, D);
20451
+ const K = D.target, J = K.closest("a");
20452
+ if (J && l) {
20453
+ const ue = J.getAttribute("href");
20454
+ ue && l(ue, D);
20442
20455
  }
20443
- if (G.tagName === "IMG" && c) {
20444
- const de = G;
20445
- c(de.src, de.alt, D);
20456
+ if (K.tagName === "IMG" && c) {
20457
+ const ue = K;
20458
+ c(ue.src, ue.alt, D);
20446
20459
  }
20447
20460
  },
20448
20461
  [l, c]
@@ -20455,7 +20468,7 @@ const jg = Om(
20455
20468
  "div",
20456
20469
  {
20457
20470
  className: `markdown-renderer markdown-theme-${_} toc-${i} ${n}`,
20458
- "data-loading": S || void 0,
20471
+ "data-loading": A || void 0,
20459
20472
  children: [
20460
20473
  a && C.length > 0 && /* @__PURE__ */ ie("aside", { className: "markdown-toc-sidebar", children: /* @__PURE__ */ ie(nJ, { items: C }) }),
20461
20474
  /* @__PURE__ */ ie(
@@ -20463,7 +20476,7 @@ const jg = Om(
20463
20476
  {
20464
20477
  ref: P,
20465
20478
  className: `markdown-body${u ? " streaming" : ""}`,
20466
- onClick: W,
20479
+ onClick: Z,
20467
20480
  dangerouslySetInnerHTML: { __html: k }
20468
20481
  }
20469
20482
  )
@@ -23379,7 +23392,7 @@ function AJ(t) {
23379
23392
  }
23380
23393
  let at = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Sc = typeof document < "u" ? document : { documentElement: { style: {} } };
23381
23394
  const Ac = /* @__PURE__ */ /Edge\/(\d+)/.exec(at.userAgent), uy = /* @__PURE__ */ /MSIE \d/.test(at.userAgent), vc = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(at.userAgent), po = !!(uy || vc || Ac), Tf = !po && /* @__PURE__ */ /gecko\/(\d+)/i.test(at.userAgent), pl = !po && /* @__PURE__ */ /Chrome\/(\d+)/.exec(at.userAgent), vJ = "webkitFontSmoothing" in Sc.documentElement.style, Cc = !po && /* @__PURE__ */ /Apple Computer/.test(at.vendor), Ef = Cc && (/* @__PURE__ */ /Mobile\/\w+/.test(at.userAgent) || at.maxTouchPoints > 2);
23382
- var ee = {
23395
+ var te = {
23383
23396
  mac: Ef || /* @__PURE__ */ /Mac/.test(at.platform),
23384
23397
  windows: /* @__PURE__ */ /Win/.test(at.platform),
23385
23398
  linux: /* @__PURE__ */ /Linux|X11/.test(at.platform),
@@ -23843,7 +23856,7 @@ class NJ {
23843
23856
  }
23844
23857
  }
23845
23858
  let er = null;
23846
- ee.safari && ee.safari_version >= 26 && (er = !1);
23859
+ te.safari && te.safari_version >= 26 && (er = !1);
23847
23860
  function py(t) {
23848
23861
  if (t.setActive)
23849
23862
  return t.setActive();
@@ -24786,12 +24799,12 @@ class ar extends Re {
24786
24799
  let r = this.dom.nodeValue.length;
24787
24800
  e > r && (e = r);
24788
24801
  let a = e, i = e, s = 0;
24789
- e == 0 && n < 0 || e == r && n >= 0 ? ee.chrome || ee.gecko || (e ? (a--, s = 1) : i < r && (i++, s = -1)) : n < 0 ? a-- : i < r && i++;
24802
+ e == 0 && n < 0 || e == r && n >= 0 ? te.chrome || te.gecko || (e ? (a--, s = 1) : i < r && (i++, s = -1)) : n < 0 ? a-- : i < r && i++;
24790
24803
  let o = ei(this.dom, a, i).getClientRects();
24791
24804
  if (!o.length)
24792
24805
  return null;
24793
24806
  let l = o[(s ? s < 0 : n >= 0) ? 0 : o.length - 1];
24794
- return ee.safari && !s && l.width == 0 && (l = Array.prototype.find.call(o, (c) => c.width) || l), s ? zs(l, s < 0) : l || null;
24807
+ return te.safari && !s && l.width == 0 && (l = Array.prototype.find.call(o, (c) => c.width) || l), s ? zs(l, s < 0) : l || null;
24795
24808
  }
24796
24809
  static of(e, n) {
24797
24810
  let r = new ar(n || document.createTextNode(e), e);
@@ -25010,7 +25023,7 @@ class KJ {
25010
25023
  if (this.curLine) {
25011
25024
  this.flushBuffer();
25012
25025
  let e = this.curLine.lastChild;
25013
- (!e || !Df(this.curLine, !1) || e.dom.nodeName != "BR" && e.isWidget() && !(ee.ios && Df(this.curLine, !0))) && this.curLine.append(this.cache.findWidget(
25026
+ (!e || !Df(this.curLine, !1) || e.dom.nodeName != "BR" && e.isWidget() && !(te.ios && Df(this.curLine, !0))) && this.curLine.append(this.cache.findWidget(
25014
25027
  yl,
25015
25028
  0,
25016
25029
  32
@@ -25345,7 +25358,7 @@ class zf {
25345
25358
  let { from: u, to: h } = this.hasComposition;
25346
25359
  r = new zt(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(r.slice());
25347
25360
  }
25348
- this.hasComposition = i ? { from: i.range.fromB, to: i.range.toB } : null, (ee.ie || ee.chrome) && !i && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
25361
+ this.hasComposition = i ? { from: i.range.fromB, to: i.range.toB } : null, (te.ie || te.chrome) && !i && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
25349
25362
  let s = this.decorations, o = this.blockWrappers;
25350
25363
  this.updateDeco();
25351
25364
  let l = cee(s, this.decorations, e.changes);
@@ -25368,7 +25381,7 @@ class zf {
25368
25381
  ), this.tile = o.run(e, n), Rc(s, o.cache.reused);
25369
25382
  }
25370
25383
  this.tile.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.tile.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
25371
- let i = ee.chrome || ee.ios ? { node: r.selectionRange.focusNode, written: !1 } : void 0;
25384
+ let i = te.chrome || te.ios ? { node: r.selectionRange.focusNode, written: !1 } : void 0;
25372
25385
  this.tile.sync(i), i && (i.written || r.selectionRange.focusNode != i.node || !this.tile.dom.contains(i.node)) && (this.forceSelection = !0), this.tile.dom.style.height = "";
25373
25386
  });
25374
25387
  let a = [];
@@ -25392,16 +25405,16 @@ class zf {
25392
25405
  let o = this.forceSelection;
25393
25406
  this.forceSelection = !1;
25394
25407
  let l = this.view.state.selection.main, c, u;
25395
- if (l.empty ? u = c = this.inlineDOMNearPos(l.anchor, l.assoc || 1) : (u = this.inlineDOMNearPos(l.head, l.head == l.from ? 1 : -1), c = this.inlineDOMNearPos(l.anchor, l.anchor == l.from ? 1 : -1)), ee.gecko && l.empty && !this.hasComposition && iee(c)) {
25408
+ if (l.empty ? u = c = this.inlineDOMNearPos(l.anchor, l.assoc || 1) : (u = this.inlineDOMNearPos(l.head, l.head == l.from ? 1 : -1), c = this.inlineDOMNearPos(l.anchor, l.anchor == l.from ? 1 : -1)), te.gecko && l.empty && !this.hasComposition && iee(c)) {
25396
25409
  let d = document.createTextNode("");
25397
25410
  this.view.observer.ignore(() => c.node.insertBefore(d, c.node.childNodes[c.offset] || null)), c = u = new Qt(d, 0), o = !0;
25398
25411
  }
25399
25412
  let h = this.view.observer.selectionRange;
25400
25413
  (o || !h.focusNode || (!Ba(c.node, c.offset, h.anchorNode, h.anchorOffset) || !Ba(u.node, u.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, l)) && (this.view.observer.ignore(() => {
25401
- ee.android && ee.chrome && r.contains(h.focusNode) && dee(h.focusNode, r) && (r.blur(), r.focus({ preventScroll: !0 }));
25414
+ te.android && te.chrome && r.contains(h.focusNode) && dee(h.focusNode, r) && (r.blur(), r.focus({ preventScroll: !0 }));
25402
25415
  let d = Ja(this.view.root);
25403
25416
  if (d) if (l.empty) {
25404
- if (ee.gecko) {
25417
+ if (te.gecko) {
25405
25418
  let f = oee(c.node, c.offset);
25406
25419
  if (f && f != 3) {
25407
25420
  let g = (f == 1 ? gy : yy)(c.node, c.offset);
@@ -25546,7 +25559,7 @@ class zf {
25546
25559
  else if (d >= r && (c > 0 && n.push(-c), n.push(w + c), c = 0, s)) {
25547
25560
  let C = y.dom.lastChild, M = C ? ps(C) : [];
25548
25561
  if (M.length) {
25549
- let S = M[M.length - 1], m = l ? S.right - k.left : k.right - S.left;
25562
+ let A = M[M.length - 1], m = l ? A.right - k.left : k.right - A.left;
25550
25563
  m > o && (o = m, this.minWidth = i, this.minWidthFrom = d, this.minWidthTo = _);
25551
25564
  }
25552
25565
  }
@@ -26150,7 +26163,7 @@ class Tee {
26150
26163
  l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = See(o, this.bounds.from);
26151
26164
  } else {
26152
26165
  let o = e.observer.selectionRange, l = i && i.node == o.focusNode && i.offset == o.focusOffset || !Dc(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), c = s && s.node == o.anchorNode && s.offset == o.anchorOffset || !Dc(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset), u = e.viewport;
26153
- if ((ee.ios || ee.chrome) && e.state.selection.main.empty && l != c && (u.from > 0 || u.to < e.state.doc.length)) {
26166
+ if ((te.ios || te.chrome) && e.state.selection.main.empty && l != c && (u.from > 0 || u.to < e.state.doc.length)) {
26154
26167
  let h = Math.min(l, c), d = Math.max(l, c), f = u.from - h, g = u.to - d;
26155
26168
  (f == 0 || f == 1 || h == 0) && (g == 0 || g == -1 || d == e.state.doc.length) && (l = 0, c = e.state.doc.length);
26156
26169
  }
@@ -26183,13 +26196,13 @@ function Uy(t, e) {
26183
26196
  let n, { newSel: r } = e, { state: a } = t, i = a.selection.main, s = t.inputState.lastKeyTime > Date.now() - 100 ? t.inputState.lastKeyCode : -1;
26184
26197
  if (e.bounds) {
26185
26198
  let { from: o, to: l } = e.bounds, c = i.from, u = null;
26186
- (s === 8 || ee.android && e.text.length < l - o) && (c = i.to, u = "end");
26199
+ (s === 8 || te.android && e.text.length < l - o) && (c = i.to, u = "end");
26187
26200
  let h = a.doc.sliceString(o, l, br), d, f;
26188
26201
  !i.empty && i.from >= o && i.to <= l && (e.typeOver || h != e.text) && h.slice(0, i.from - o) == e.text.slice(0, i.from - o) && h.slice(i.to - o) == e.text.slice(d = e.text.length - (h.length - (i.to - o))) ? n = {
26189
26202
  from: i.from,
26190
26203
  to: i.to,
26191
26204
  insert: be.of(e.text.slice(i.from - o, d).split(br))
26192
- } : (f = jy(h, e.text, c - o, u)) && (ee.chrome && s == 13 && f.toB == f.from + 2 && e.text.slice(f.from, f.toB) == br + br && f.toB--, n = {
26205
+ } : (f = jy(h, e.text, c - o, u)) && (te.chrome && s == 13 && f.toB == f.from + 2 && e.text.slice(f.from, f.toB) == br + br && f.toB--, n = {
26193
26206
  from: o + f.from,
26194
26207
  to: o + f.toA,
26195
26208
  insert: be.of(e.text.slice(f.from, f.toB).split(br))
@@ -26197,11 +26210,11 @@ function Uy(t, e) {
26197
26210
  } else r && (!t.hasFocus && a.facet(yn) || Rs(r, i)) && (r = null);
26198
26211
  if (!n && !r)
26199
26212
  return !1;
26200
- if ((ee.mac || ee.android) && n && n.from == n.to && n.from == i.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (r && n.insert.length == 2 && (r = U.single(r.main.anchor - 1, r.main.head - 1)), n = { from: n.from, to: n.to, insert: be.of([n.insert.toString().replace(".", " ")]) }) : a.doc.lineAt(i.from).to < i.to && t.docView.lineHasWidget(i.to) && t.inputState.insertingTextAt > Date.now() - 50 ? n = {
26213
+ if ((te.mac || te.android) && n && n.from == n.to && n.from == i.head - 1 && /^\. ?$/.test(n.insert.toString()) && t.contentDOM.getAttribute("autocorrect") == "off" ? (r && n.insert.length == 2 && (r = U.single(r.main.anchor - 1, r.main.head - 1)), n = { from: n.from, to: n.to, insert: be.of([n.insert.toString().replace(".", " ")]) }) : a.doc.lineAt(i.from).to < i.to && t.docView.lineHasWidget(i.to) && t.inputState.insertingTextAt > Date.now() - 50 ? n = {
26201
26214
  from: i.from,
26202
26215
  to: i.to,
26203
26216
  insert: a.toText(t.inputState.insertingText)
26204
- } : ee.chrome && n && n.from == n.to && n.from == i.head && n.insert.toString() == `
26217
+ } : te.chrome && n && n.from == n.to && n.from == i.head && n.insert.toString() == `
26205
26218
  ` && t.lineWrapping && (r && (r = U.single(r.main.anchor - 1, r.main.head - 1)), n = { from: i.from, to: i.to, insert: be.of([" "]) }), n)
26206
26219
  return Vu(t, n, r, s);
26207
26220
  if (r && !Rs(r, i)) {
@@ -26211,10 +26224,10 @@ function Uy(t, e) {
26211
26224
  return !1;
26212
26225
  }
26213
26226
  function Vu(t, e, n, r = -1) {
26214
- if (ee.ios && t.inputState.flushIOSKey(e))
26227
+ if (te.ios && t.inputState.flushIOSKey(e))
26215
26228
  return !0;
26216
26229
  let a = t.state.selection.main;
26217
- if (ee.android && (e.to == a.to && // GBoard will sometimes remove a space it just inserted
26230
+ if (te.android && (e.to == a.to && // GBoard will sometimes remove a space it just inserted
26218
26231
  // after a completion when you press enter
26219
26232
  (e.from == a.from || e.from == a.from - 1 && t.state.sliceDoc(e.from, a.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && vr(t.contentDOM, "Enter", 13) || (e.from == a.from - 1 && e.to == a.to && e.insert.length == 0 || r == 8 && e.insert.length < e.to - e.from && e.to > a.head) && vr(t.contentDOM, "Backspace", 8) || e.from == a.from && e.to == a.to + 1 && e.insert.length == 0 && vr(t.contentDOM, "Delete", 46)))
26220
26233
  return !0;
@@ -26315,7 +26328,7 @@ class Aee {
26315
26328
  this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
26316
26329
  }
26317
26330
  constructor(e) {
26318
- this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, ee.safari && e.contentDOM.addEventListener("input", () => null), ee.gecko && Uee(e.contentDOM.ownerDocument);
26331
+ this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, te.safari && e.contentDOM.addEventListener("input", () => null), te.gecko && Uee(e.contentDOM.ownerDocument);
26319
26332
  }
26320
26333
  handleEvent(e) {
26321
26334
  !Ree(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
@@ -26349,17 +26362,17 @@ class Aee {
26349
26362
  keydown(e) {
26350
26363
  if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
26351
26364
  return !0;
26352
- if (this.tabFocusMode > 0 && e.keyCode != 27 && qy.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), ee.android && ee.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
26365
+ if (this.tabFocusMode > 0 && e.keyCode != 27 && qy.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), te.android && te.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
26353
26366
  return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
26354
26367
  let n;
26355
- return ee.ios && !e.synthetic && !e.altKey && !e.metaKey && ((n = Hy.find((r) => r.keyCode == e.keyCode)) && !e.ctrlKey || Cee.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = n || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
26368
+ return te.ios && !e.synthetic && !e.altKey && !e.metaKey && ((n = Hy.find((r) => r.keyCode == e.keyCode)) && !e.ctrlKey || Cee.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = n || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
26356
26369
  }
26357
26370
  flushIOSKey(e) {
26358
26371
  let n = this.pendingIOSKey;
26359
26372
  return !n || n.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, vr(this.view.contentDOM, n.key, n.keyCode, n instanceof KeyboardEvent ? n : void 0));
26360
26373
  }
26361
26374
  ignoreDuringComposition(e) {
26362
- return !/^key/.test(e.type) || e.synthetic ? !1 : this.composing > 0 ? !0 : ee.safari && !ee.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1;
26375
+ return !/^key/.test(e.type) || e.synthetic ? !1 : this.composing > 0 ? !0 : te.safari && !te.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1;
26363
26376
  }
26364
26377
  startMouseSelection(e) {
26365
26378
  this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
@@ -26464,11 +26477,11 @@ class zee {
26464
26477
  }
26465
26478
  function Pee(t, e) {
26466
26479
  let n = t.state.facet(Ty);
26467
- return n.length ? n[0](e) : ee.mac ? e.metaKey : e.ctrlKey;
26480
+ return n.length ? n[0](e) : te.mac ? e.metaKey : e.ctrlKey;
26468
26481
  }
26469
26482
  function Iee(t, e) {
26470
26483
  let n = t.state.facet(Ey);
26471
- return n.length ? n[0](e) : ee.mac ? !e.altKey : !e.ctrlKey;
26484
+ return n.length ? n[0](e) : te.mac ? !e.altKey : !e.ctrlKey;
26472
26485
  }
26473
26486
  function Nee(t, e) {
26474
26487
  let { main: n } = t.state.selection;
@@ -26495,7 +26508,7 @@ function Ree(t, e) {
26495
26508
  return !1;
26496
26509
  return !0;
26497
26510
  }
26498
- const Ut = /* @__PURE__ */ Object.create(null), pt = /* @__PURE__ */ Object.create(null), Xy = ee.ie && ee.ie_version < 15 || ee.ios && ee.webkit_version < 604;
26511
+ const Ut = /* @__PURE__ */ Object.create(null), pt = /* @__PURE__ */ Object.create(null), Xy = te.ie && te.ie_version < 15 || te.ios && te.webkit_version < 604;
26499
26512
  function Lee(t) {
26500
26513
  let e = t.dom.parentNode;
26501
26514
  if (!e)
@@ -26582,7 +26595,7 @@ function Rf(t, e, n, r) {
26582
26595
  return o < t.state.doc.length && o == i.to && o++, U.range(s, o);
26583
26596
  }
26584
26597
  }
26585
- const Mee = ee.ie && ee.ie_version <= 11;
26598
+ const Mee = te.ie && te.ie_version <= 11;
26586
26599
  let Lf = null, Mf = 0, Ff = 0;
26587
26600
  function Gy(t) {
26588
26601
  if (!Mee)
@@ -26734,7 +26747,7 @@ pt.compositionstart = pt.compositionupdate = (t) => {
26734
26747
  t.observer.editContext || (t.inputState.compositionFirstChange == null && (t.inputState.compositionFirstChange = !0), t.inputState.composing < 0 && (t.inputState.composing = 0));
26735
26748
  };
26736
26749
  pt.compositionend = (t) => {
26737
- t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, ee.chrome && ee.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
26750
+ t.observer.editContext || (t.inputState.composing = -1, t.inputState.compositionEndedAt = Date.now(), t.inputState.compositionPendingKey = !0, t.inputState.compositionPendingChange = t.observer.pendingRecords().length > 0, t.inputState.compositionFirstChange = null, te.chrome && te.android ? t.observer.flushSoon() : t.inputState.compositionPendingChange ? Promise.resolve().then(() => t.observer.flush()) : setTimeout(() => {
26738
26751
  t.inputState.composing < 0 && t.docView.hasComposition && t.update([]);
26739
26752
  }, 50));
26740
26753
  };
@@ -26751,14 +26764,14 @@ Ut.beforeinput = (t, e) => {
26751
26764
  }
26752
26765
  }
26753
26766
  let a;
26754
- if (ee.chrome && ee.android && (a = Hy.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(a.key, a.keyCode), a.key == "Backspace" || a.key == "Delete")) {
26767
+ if (te.chrome && te.android && (a = Hy.find((i) => i.inputType == e.inputType)) && (t.observer.delayAndroidKey(a.key, a.keyCode), a.key == "Backspace" || a.key == "Delete")) {
26755
26768
  let i = ((r = window.visualViewport) === null || r === void 0 ? void 0 : r.height) || 0;
26756
26769
  setTimeout(() => {
26757
26770
  var s;
26758
26771
  (((s = window.visualViewport) === null || s === void 0 ? void 0 : s.height) || 0) > i + 10 && t.hasFocus && (t.contentDOM.blur(), t.focus());
26759
26772
  }, 100);
26760
26773
  }
26761
- return ee.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), ee.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => pt.compositionend(t, e), 20), !1;
26774
+ return te.ios && e.inputType == "deleteContentForward" && t.observer.flushSoon(), te.safari && e.inputType == "insertText" && t.inputState.composing >= 0 && setTimeout(() => pt.compositionend(t, e), 20), !1;
26762
26775
  };
26763
26776
  const Qf = /* @__PURE__ */ new Set();
26764
26777
  function Uee(t) {
@@ -27345,8 +27358,8 @@ class Hf {
27345
27358
  this.contentDOMHeight = o.height, this.mustMeasureContent = !1;
27346
27359
  let c = 0, u = 0;
27347
27360
  if (o.width && o.height) {
27348
- let { scaleX: S, scaleY: m } = dy(n, o);
27349
- (S > 5e-3 && Math.abs(this.scaleX - S) > 5e-3 || m > 5e-3 && Math.abs(this.scaleY - m) > 5e-3) && (this.scaleX = S, this.scaleY = m, c |= 16, s = l = !0);
27361
+ let { scaleX: A, scaleY: m } = dy(n, o);
27362
+ (A > 5e-3 && Math.abs(this.scaleX - A) > 5e-3 || m > 5e-3 && Math.abs(this.scaleY - m) > 5e-3) && (this.scaleX = A, this.scaleY = m, c |= 16, s = l = !0);
27350
27363
  }
27351
27364
  let h = (parseInt(r.paddingTop) || 0) * this.scaleY, d = (parseInt(r.paddingBottom) || 0) * this.scaleY;
27352
27365
  (this.paddingTop != h || this.paddingBottom != d) && (this.paddingTop = h, this.paddingBottom = d, c |= 18), this.editorWidth != e.scrollDOM.clientWidth && (a.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, c |= 16);
@@ -27361,14 +27374,14 @@ class Hf {
27361
27374
  return 0;
27362
27375
  let C = o.width;
27363
27376
  if ((this.contentDOMWidth != C || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = o.width, this.editorHeight = e.scrollDOM.clientHeight, c |= 16), l) {
27364
- let S = e.docView.measureVisibleLineHeights(this.viewport);
27365
- if (a.mustRefreshForHeights(S) && (s = !0), s || a.lineWrapping && Math.abs(C - this.contentDOMWidth) > a.charWidth) {
27377
+ let A = e.docView.measureVisibleLineHeights(this.viewport);
27378
+ if (a.mustRefreshForHeights(A) && (s = !0), s || a.lineWrapping && Math.abs(C - this.contentDOMWidth) > a.charWidth) {
27366
27379
  let { lineHeight: m, charWidth: T, textHeight: F } = e.docView.measureTextSize();
27367
- s = m > 0 && a.refresh(i, m, T, F, Math.max(5, C / T), S), s && (e.docView.minWidth = 0, c |= 16);
27380
+ s = m > 0 && a.refresh(i, m, T, F, Math.max(5, C / T), A), s && (e.docView.minWidth = 0, c |= 16);
27368
27381
  }
27369
27382
  _ > 0 && k > 0 ? u = Math.max(_, k) : _ < 0 && k < 0 && (u = Math.min(_, k)), Uf();
27370
27383
  for (let m of this.viewports) {
27371
- let T = m.from == this.viewport.from ? S : e.docView.measureVisibleLineHeights(m);
27384
+ let T = m.from == this.viewport.from ? A : e.docView.measureVisibleLineHeights(m);
27372
27385
  this.heightMap = (s ? st.empty().applyChanges(this.stateDeco, be.empty, this.heightOracle, [new zt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(a, 0, s, new Hee(m.from, T));
27373
27386
  }
27374
27387
  Br && (c |= 2);
@@ -27472,13 +27485,13 @@ class Hf {
27472
27485
  if (y > 2e6)
27473
27486
  for (let m of e)
27474
27487
  m.from >= u.from && m.from < u.to && m.size != m.displaySize && m.from * this.heightOracle.charWidth + k < this.pixelViewport.left && (k = m.size - m.displaySize);
27475
- let w = this.pixelViewport.left + k, C = this.pixelViewport.right + k, M, S;
27488
+ let w = this.pixelViewport.left + k, C = this.pixelViewport.right + k, M, A;
27476
27489
  if (d != null) {
27477
27490
  let m = Zi(h, d), T = ((C - w) / 2 + _) / y;
27478
- M = m - T, S = m + T;
27491
+ M = m - T, A = m + T;
27479
27492
  } else
27480
- M = (w - _) / y, S = (C + _) / y;
27481
- f = Vi(h, M), g = Vi(h, S);
27493
+ M = (w - _) / y, A = (C + _) / y;
27494
+ f = Vi(h, M), g = Vi(h, A);
27482
27495
  }
27483
27496
  f > u.from && l(u.from, f, u, h), g < u.to && l(g, u.to, u, h);
27484
27497
  };
@@ -27925,15 +27938,15 @@ const nte = /* @__PURE__ */ $c("." + Qc, {
27925
27938
  subtree: !0,
27926
27939
  attributes: !0,
27927
27940
  characterDataOldValue: !0
27928
- }, Ol = ee.ie && ee.ie_version <= 11;
27941
+ }, Ol = te.ie && te.ie_version <= 11;
27929
27942
  class ate {
27930
27943
  constructor(e) {
27931
27944
  this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new NJ(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((n) => {
27932
27945
  for (let r of n)
27933
27946
  this.queue.push(r);
27934
- (ee.ie && ee.ie_version <= 11 || ee.ios && e.composing) && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : this.flush();
27935
- }), window.EditContext && ee.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
27936
- !(ee.chrome && ee.chrome_version < 126) && (this.editContext = new ste(e), e.state.facet(yn) && (e.contentDOM.editContext = this.editContext.editContext)), Ol && (this.onCharData = (n) => {
27947
+ (te.ie && te.ie_version <= 11 || te.ios && e.composing) && n.some((r) => r.type == "childList" && r.removedNodes.length || r.type == "characterData" && r.oldValue.length > r.target.nodeValue.length) ? this.flushSoon() : this.flush();
27948
+ }), window.EditContext && te.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
27949
+ !(te.chrome && te.chrome_version < 126) && (this.editContext = new ste(e), e.state.facet(yn) && (e.contentDOM.editContext = this.editContext.editContext)), Ol && (this.onCharData = (n) => {
27937
27950
  this.queue.push({
27938
27951
  target: n.target,
27939
27952
  type: "characterData",
@@ -27984,14 +27997,14 @@ class ate {
27984
27997
  n || (this.selectionChanged = !1);
27985
27998
  return;
27986
27999
  }
27987
- (ee.ie && ee.ie_version <= 11 || ee.android && ee.chrome) && !r.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
28000
+ (te.ie && te.ie_version <= 11 || te.android && te.chrome) && !r.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
27988
28001
  a.focusNode && Ba(a.focusNode, a.focusOffset, a.anchorNode, a.anchorOffset) ? this.flushSoon() : this.flush(!1);
27989
28002
  }
27990
28003
  readSelectionRange() {
27991
28004
  let { view: e } = this, n = Ja(e.root);
27992
28005
  if (!n)
27993
28006
  return !1;
27994
- let r = ee.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && ite(this.view, n) || n;
28007
+ let r = te.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && ite(this.view, n) || n;
27995
28008
  if (!r || this.selectionRange.eq(r))
27996
28009
  return !1;
27997
28010
  let a = Fa(this.dom, r);
@@ -28195,7 +28208,7 @@ class ste {
28195
28208
  insert: be.of(r.text.slice(u.from, u.toB).split(`
28196
28209
  `))
28197
28210
  };
28198
- if ((ee.mac || ee.android) && h.from == s - 1 && /^\. ?$/.test(r.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: o, to: l, insert: be.of([r.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
28211
+ if ((te.mac || te.android) && h.from == s - 1 && /^\. ?$/.test(r.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (h = { from: o, to: l, insert: be.of([r.text.replace(".", " ")]) }), this.pendingContextChange = h, !e.state.readOnly) {
28199
28212
  let d = this.to - this.from + (h.to - h.from + h.insert.length);
28200
28213
  Vu(e, h, U.single(this.toEditorPos(r.selectionStart, d), this.toEditorPos(r.selectionEnd, d)));
28201
28214
  }
@@ -28591,7 +28604,7 @@ class re {
28591
28604
  translate: "no",
28592
28605
  contenteditable: this.state.facet(yn) ? "true" : "false",
28593
28606
  class: "cm-content",
28594
- style: `${ee.tabSize}: ${this.state.tabSize}`,
28607
+ style: `${te.tabSize}: ${this.state.tabSize}`,
28595
28608
  role: "textbox",
28596
28609
  "aria-multiline": "true"
28597
28610
  };
@@ -28910,7 +28923,7 @@ class re {
28910
28923
  */
28911
28924
  get hasFocus() {
28912
28925
  var e;
28913
- return (this.dom.ownerDocument.hasFocus() || ee.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
28926
+ return (this.dom.ownerDocument.hasFocus() || te.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
28914
28927
  }
28915
28928
  /**
28916
28929
  Put focus on the editor.
@@ -29093,7 +29106,7 @@ function Zf(t, e, n) {
29093
29106
  }
29094
29107
  return n;
29095
29108
  }
29096
- const lte = ee.mac ? "mac" : ee.windows ? "win" : ee.linux ? "linux" : "key";
29109
+ const lte = te.mac ? "mac" : te.windows ? "win" : te.linux ? "linux" : "key";
29097
29110
  function cte(t, e) {
29098
29111
  const n = t.split(/-(?!$)/);
29099
29112
  let r = n[n.length - 1];
@@ -29194,8 +29207,8 @@ function pte(t, e, n, r) {
29194
29207
  return !1;
29195
29208
  }, f = t[r], g, y;
29196
29209
  return f && (d(f[o + Ki(a, e, !s)]) ? l = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
29197
- !(ee.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
29198
- !(ee.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (g = Un[e.keyCode]) && g != a ? (d(f[o + Ki(g, e, !0)]) || e.shiftKey && (y = Wa[e.keyCode]) != a && y != g && d(f[o + Ki(y, e, !1)])) && (l = !0) : s && e.shiftKey && d(f[o + Ki(a, e, !0)]) && (l = !0), !l && d(f._any) && (l = !0)), c && (l = !0), l && u && e.stopPropagation(), Uc = null, l;
29210
+ !(te.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
29211
+ !(te.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (g = Un[e.keyCode]) && g != a ? (d(f[o + Ki(g, e, !0)]) || e.shiftKey && (y = Wa[e.keyCode]) != a && y != g && d(f[o + Ki(y, e, !1)])) && (l = !0) : s && e.shiftKey && d(f[o + Ki(a, e, !0)]) && (l = !0), !l && d(f._any) && (l = !0)), c && (l = !0), l && u && e.stopPropagation(), Uc = null, l;
29199
29212
  }
29200
29213
  class xi {
29201
29214
  /**
@@ -29254,42 +29267,42 @@ function mte(t, e, n) {
29254
29267
  if (y && (t.lineWrapping || f.widgetLineBreaks) && (y = Kf(t, r, 1, y)), _ && (t.lineWrapping || g.widgetLineBreaks) && (_ = Kf(t, a, -1, _)), y && _ && y.from == _.from && y.to == _.to)
29255
29268
  return w(C(n.from, n.to, y));
29256
29269
  {
29257
- let S = y ? C(n.from, null, y) : M(f, !1), m = _ ? C(null, n.to, _) : M(g, !0), T = [];
29258
- return (y || f).to < (_ || g).from - (y && _ ? 1 : 0) || f.widgetLineBreaks > 1 && S.bottom + t.defaultLineHeight / 2 < m.top ? T.push(k(h, S.bottom, d, m.top)) : S.bottom < m.top && t.elementAtHeight((S.bottom + m.top) / 2).type == it.Text && (S.bottom = m.top = (S.bottom + m.top) / 2), w(S).concat(T).concat(w(m));
29270
+ let A = y ? C(n.from, null, y) : M(f, !1), m = _ ? C(null, n.to, _) : M(g, !0), T = [];
29271
+ return (y || f).to < (_ || g).from - (y && _ ? 1 : 0) || f.widgetLineBreaks > 1 && A.bottom + t.defaultLineHeight / 2 < m.top ? T.push(k(h, A.bottom, d, m.top)) : A.bottom < m.top && t.elementAtHeight((A.bottom + m.top) / 2).type == it.Text && (A.bottom = m.top = (A.bottom + m.top) / 2), w(A).concat(T).concat(w(m));
29259
29272
  }
29260
- function k(S, m, T, F) {
29261
- return new xi(e, S - l.left, m - l.top, Math.max(0, T - S), F - m);
29273
+ function k(A, m, T, F) {
29274
+ return new xi(e, A - l.left, m - l.top, Math.max(0, T - A), F - m);
29262
29275
  }
29263
- function w({ top: S, bottom: m, horizontal: T }) {
29276
+ function w({ top: A, bottom: m, horizontal: T }) {
29264
29277
  let F = [];
29265
29278
  for (let P = 0; P < T.length; P += 2)
29266
- F.push(k(T[P], S, T[P + 1], m));
29279
+ F.push(k(T[P], A, T[P + 1], m));
29267
29280
  return F;
29268
29281
  }
29269
- function C(S, m, T) {
29282
+ function C(A, m, T) {
29270
29283
  let F = 1e9, P = -1e9, z = [];
29271
- function B(W, D, G, ne, de) {
29272
- let fe = t.coordsAtPos(W, W == T.to ? -2 : 2), x = t.coordsAtPos(G, G == T.from ? 2 : -2);
29273
- !fe || !x || (F = Math.min(fe.top, x.top, F), P = Math.max(fe.bottom, x.bottom, P), de == Ne.LTR ? z.push(i && D ? h : fe.left, i && ne ? d : x.right) : z.push(!i && ne ? h : x.left, !i && D ? d : fe.right));
29274
- }
29275
- let L = S ?? T.from, q = m ?? T.to;
29276
- for (let W of t.visibleRanges)
29277
- if (W.to > L && W.from < q)
29278
- for (let D = Math.max(W.from, L), G = Math.min(W.to, q); ; ) {
29279
- let ne = t.state.doc.lineAt(D);
29280
- for (let de of t.bidiSpans(ne)) {
29281
- let fe = de.from + ne.from, x = de.to + ne.from;
29282
- if (fe >= G)
29284
+ function B(Z, D, K, J, ue) {
29285
+ let le = t.coordsAtPos(Z, Z == T.to ? -2 : 2), x = t.coordsAtPos(K, K == T.from ? 2 : -2);
29286
+ !le || !x || (F = Math.min(le.top, x.top, F), P = Math.max(le.bottom, x.bottom, P), ue == Ne.LTR ? z.push(i && D ? h : le.left, i && J ? d : x.right) : z.push(!i && J ? h : x.left, !i && D ? d : le.right));
29287
+ }
29288
+ let L = A ?? T.from, q = m ?? T.to;
29289
+ for (let Z of t.visibleRanges)
29290
+ if (Z.to > L && Z.from < q)
29291
+ for (let D = Math.max(Z.from, L), K = Math.min(Z.to, q); ; ) {
29292
+ let J = t.state.doc.lineAt(D);
29293
+ for (let ue of t.bidiSpans(J)) {
29294
+ let le = ue.from + J.from, x = ue.to + J.from;
29295
+ if (le >= K)
29283
29296
  break;
29284
- x > D && B(Math.max(fe, D), S == null && fe <= L, Math.min(x, G), m == null && x >= q, de.dir);
29297
+ x > D && B(Math.max(le, D), A == null && le <= L, Math.min(x, K), m == null && x >= q, ue.dir);
29285
29298
  }
29286
- if (D = ne.to + 1, D >= G)
29299
+ if (D = J.to + 1, D >= K)
29287
29300
  break;
29288
29301
  }
29289
- return z.length == 0 && B(L, S == null, q, m == null, t.textDirection), { top: F, bottom: P, horizontal: z };
29302
+ return z.length == 0 && B(L, A == null, q, m == null, t.textDirection), { top: F, bottom: P, horizontal: z };
29290
29303
  }
29291
- function M(S, m) {
29292
- let T = o.top + (m ? S.top : S.bottom);
29304
+ function M(A, m) {
29305
+ let T = o.top + (m ? A.top : A.bottom);
29293
29306
  return { top: T, bottom: T, horizontal: [] };
29294
29307
  }
29295
29308
  }
@@ -29328,7 +29341,7 @@ class yte {
29328
29341
  let a = n.nextSibling;
29329
29342
  n.remove(), n = a;
29330
29343
  }
29331
- this.drawn = e, ee.safari && ee.safari_version >= 26 && (this.dom.style.display = this.dom.firstChild ? "" : "none");
29344
+ this.drawn = e, te.safari && te.safari_version >= 26 && (this.dom.style.display = this.dom.firstChild ? "" : "none");
29332
29345
  }
29333
29346
  }
29334
29347
  destroy() {
@@ -30550,78 +30563,78 @@ function Ju(t) {
30550
30563
  function Dte(t) {
30551
30564
  var e;
30552
30565
  let { buffer: n, nodeSet: r, maxBufferLength: a = i1, reused: i = [], minRepeatType: s = r.types.length } = t, o = Array.isArray(n) ? new Ku(n, n.length) : n, l = r.types, c = 0, u = 0;
30553
- function h(S, m, T, F, P, z) {
30554
- let { id: B, start: L, end: q, size: W } = o, D = u, G = c;
30555
- if (W < 0)
30556
- if (o.next(), W == -1) {
30557
- let K = i[B];
30558
- T.push(K), F.push(L - S);
30566
+ function h(A, m, T, F, P, z) {
30567
+ let { id: B, start: L, end: q, size: Z } = o, D = u, K = c;
30568
+ if (Z < 0)
30569
+ if (o.next(), Z == -1) {
30570
+ let ee = i[B];
30571
+ T.push(ee), F.push(L - A);
30559
30572
  return;
30560
- } else if (W == -3) {
30573
+ } else if (Z == -3) {
30561
30574
  c = B;
30562
30575
  return;
30563
- } else if (W == -4) {
30576
+ } else if (Z == -4) {
30564
30577
  u = B;
30565
30578
  return;
30566
30579
  } else
30567
- throw new RangeError(`Unrecognized record size: ${W}`);
30568
- let ne = l[B], de, fe, x = L - S;
30569
- if (q - L <= a && (fe = _(o.pos - m, P))) {
30570
- let K = new Uint16Array(fe.size - fe.skip), oe = o.pos - fe.size, A = K.length;
30571
- for (; o.pos > oe; )
30572
- A = k(fe.start, K, A);
30573
- de = new Hn(K, q - fe.start, r), x = fe.start - S;
30580
+ throw new RangeError(`Unrecognized record size: ${Z}`);
30581
+ let J = l[B], ue, le, x = L - A;
30582
+ if (q - L <= a && (le = _(o.pos - m, P))) {
30583
+ let ee = new Uint16Array(le.size - le.skip), ce = o.pos - le.size, S = ee.length;
30584
+ for (; o.pos > ce; )
30585
+ S = k(le.start, ee, S);
30586
+ ue = new Hn(ee, q - le.start, r), x = le.start - A;
30574
30587
  } else {
30575
- let K = o.pos - W;
30588
+ let ee = o.pos - Z;
30576
30589
  o.next();
30577
- let oe = [], A = [], we = B >= s ? B : -1, Te = 0, ge = q;
30578
- for (; o.pos > K; )
30579
- we >= 0 && o.id == we && o.size >= 0 ? (o.end <= ge - a && (g(oe, A, L, Te, o.end, ge, we, D, G), Te = oe.length, ge = o.end), o.next()) : z > 2500 ? d(L, K, oe, A) : h(L, K, oe, A, we, z + 1);
30580
- if (we >= 0 && Te > 0 && Te < oe.length && g(oe, A, L, Te, L, ge, we, D, G), oe.reverse(), A.reverse(), we > -1 && Te > 0) {
30581
- let Ze = f(ne, G);
30582
- de = eh(ne, oe, A, 0, oe.length, 0, q - L, Ze, Ze);
30590
+ let ce = [], S = [], we = B >= s ? B : -1, Te = 0, ge = q;
30591
+ for (; o.pos > ee; )
30592
+ we >= 0 && o.id == we && o.size >= 0 ? (o.end <= ge - a && (g(ce, S, L, Te, o.end, ge, we, D, K), Te = ce.length, ge = o.end), o.next()) : z > 2500 ? d(L, ee, ce, S) : h(L, ee, ce, S, we, z + 1);
30593
+ if (we >= 0 && Te > 0 && Te < ce.length && g(ce, S, L, Te, L, ge, we, D, K), ce.reverse(), S.reverse(), we > -1 && Te > 0) {
30594
+ let Ze = f(J, K);
30595
+ ue = eh(J, ce, S, 0, ce.length, 0, q - L, Ze, Ze);
30583
30596
  } else
30584
- de = y(ne, oe, A, q - L, D - q, G);
30597
+ ue = y(J, ce, S, q - L, D - q, K);
30585
30598
  }
30586
- T.push(de), F.push(x);
30599
+ T.push(ue), F.push(x);
30587
30600
  }
30588
- function d(S, m, T, F) {
30601
+ function d(A, m, T, F) {
30589
30602
  let P = [], z = 0, B = -1;
30590
30603
  for (; o.pos > m; ) {
30591
- let { id: L, start: q, end: W, size: D } = o;
30604
+ let { id: L, start: q, end: Z, size: D } = o;
30592
30605
  if (D > 4)
30593
30606
  o.next();
30594
30607
  else {
30595
30608
  if (B > -1 && q < B)
30596
30609
  break;
30597
- B < 0 && (B = W - a), P.push(L, q, W), z++, o.next();
30610
+ B < 0 && (B = Z - a), P.push(L, q, Z), z++, o.next();
30598
30611
  }
30599
30612
  }
30600
30613
  if (z) {
30601
30614
  let L = new Uint16Array(z * 4), q = P[P.length - 2];
30602
- for (let W = P.length - 3, D = 0; W >= 0; W -= 3)
30603
- L[D++] = P[W], L[D++] = P[W + 1] - q, L[D++] = P[W + 2] - q, L[D++] = D;
30604
- T.push(new Hn(L, P[2] - q, r)), F.push(q - S);
30615
+ for (let Z = P.length - 3, D = 0; Z >= 0; Z -= 3)
30616
+ L[D++] = P[Z], L[D++] = P[Z + 1] - q, L[D++] = P[Z + 2] - q, L[D++] = D;
30617
+ T.push(new Hn(L, P[2] - q, r)), F.push(q - A);
30605
30618
  }
30606
30619
  }
30607
- function f(S, m) {
30620
+ function f(A, m) {
30608
30621
  return (T, F, P) => {
30609
30622
  let z = 0, B = T.length - 1, L, q;
30610
30623
  if (B >= 0 && (L = T[B]) instanceof me) {
30611
- if (!B && L.type == S && L.length == P)
30624
+ if (!B && L.type == A && L.length == P)
30612
30625
  return L;
30613
30626
  (q = L.prop(se.lookAhead)) && (z = F[B] + L.length + q);
30614
30627
  }
30615
- return y(S, T, F, P, z, m);
30628
+ return y(A, T, F, P, z, m);
30616
30629
  };
30617
30630
  }
30618
- function g(S, m, T, F, P, z, B, L, q) {
30619
- let W = [], D = [];
30620
- for (; S.length > F; )
30621
- W.push(S.pop()), D.push(m.pop() + T - P);
30622
- S.push(y(r.types[B], W, D, z - P, L - z, q)), m.push(P - T);
30631
+ function g(A, m, T, F, P, z, B, L, q) {
30632
+ let Z = [], D = [];
30633
+ for (; A.length > F; )
30634
+ Z.push(A.pop()), D.push(m.pop() + T - P);
30635
+ A.push(y(r.types[B], Z, D, z - P, L - z, q)), m.push(P - T);
30623
30636
  }
30624
- function y(S, m, T, F, P, z, B) {
30637
+ function y(A, m, T, F, P, z, B) {
30625
30638
  if (z) {
30626
30639
  let L = [se.contextHash, z];
30627
30640
  B = B ? [L].concat(B) : [L];
@@ -30630,43 +30643,43 @@ function Dte(t) {
30630
30643
  let L = [se.lookAhead, P];
30631
30644
  B = B ? [L].concat(B) : [L];
30632
30645
  }
30633
- return new me(S, m, T, F, B);
30646
+ return new me(A, m, T, F, B);
30634
30647
  }
30635
- function _(S, m) {
30648
+ function _(A, m) {
30636
30649
  let T = o.fork(), F = 0, P = 0, z = 0, B = T.end - a, L = { size: 0, start: 0, skip: 0 };
30637
- e: for (let q = T.pos - S; T.pos > q; ) {
30638
- let W = T.size;
30639
- if (T.id == m && W >= 0) {
30650
+ e: for (let q = T.pos - A; T.pos > q; ) {
30651
+ let Z = T.size;
30652
+ if (T.id == m && Z >= 0) {
30640
30653
  L.size = F, L.start = P, L.skip = z, z += 4, F += 4, T.next();
30641
30654
  continue;
30642
30655
  }
30643
- let D = T.pos - W;
30644
- if (W < 0 || D < q || T.start < B)
30656
+ let D = T.pos - Z;
30657
+ if (Z < 0 || D < q || T.start < B)
30645
30658
  break;
30646
- let G = T.id >= s ? 4 : 0, ne = T.start;
30659
+ let K = T.id >= s ? 4 : 0, J = T.start;
30647
30660
  for (T.next(); T.pos > D; ) {
30648
30661
  if (T.size < 0)
30649
30662
  if (T.size == -3 || T.size == -4)
30650
- G += 4;
30663
+ K += 4;
30651
30664
  else
30652
30665
  break e;
30653
- else T.id >= s && (G += 4);
30666
+ else T.id >= s && (K += 4);
30654
30667
  T.next();
30655
30668
  }
30656
- P = ne, F += W, z += G;
30669
+ P = J, F += Z, z += K;
30657
30670
  }
30658
- return (m < 0 || F == S) && (L.size = F, L.start = P, L.skip = z), L.size > 4 ? L : void 0;
30671
+ return (m < 0 || F == A) && (L.size = F, L.start = P, L.skip = z), L.size > 4 ? L : void 0;
30659
30672
  }
30660
- function k(S, m, T) {
30673
+ function k(A, m, T) {
30661
30674
  let { id: F, start: P, end: z, size: B } = o;
30662
30675
  if (o.next(), B >= 0 && F < s) {
30663
30676
  let L = T;
30664
30677
  if (B > 4) {
30665
30678
  let q = o.pos - (B - 4);
30666
30679
  for (; o.pos > q; )
30667
- T = k(S, m, T);
30680
+ T = k(A, m, T);
30668
30681
  }
30669
- m[--T] = L, m[--T] = z - S, m[--T] = P - S, m[--T] = F;
30682
+ m[--T] = L, m[--T] = z - A, m[--T] = P - A, m[--T] = F;
30670
30683
  } else B == -3 ? c = F : B == -4 && (u = F);
30671
30684
  return T;
30672
30685
  }
@@ -30704,7 +30717,7 @@ function eh(t, e, n, r, a, i, s, o, l) {
30704
30717
  ), h = [], d = [];
30705
30718
  function f(g, y, _, k, w) {
30706
30719
  for (let C = _; C < k; ) {
30707
- let M = C, S = y[C], m = ys(t, g[C]);
30720
+ let M = C, A = y[C], m = ys(t, g[C]);
30708
30721
  for (C++; C < k; C++) {
30709
30722
  let T = ys(t, g[C]);
30710
30723
  if (m + T >= u)
@@ -30719,10 +30732,10 @@ function eh(t, e, n, r, a, i, s, o, l) {
30719
30732
  }
30720
30733
  h.push(g[M]);
30721
30734
  } else {
30722
- let T = y[C - 1] + g[C - 1].length - S;
30723
- h.push(eh(t, g, y, M, C, S, T, null, l));
30735
+ let T = y[C - 1] + g[C - 1].length - A;
30736
+ h.push(eh(t, g, y, M, C, A, T, null, l));
30724
30737
  }
30725
- d.push(S + w - i);
30738
+ d.push(A + w - i);
30726
30739
  }
30727
30740
  }
30728
30741
  return f(e, n, r, a, 0), (o || l)(h, d, s);
@@ -31007,8 +31020,8 @@ function Rte(t) {
31007
31020
  ip(s, u, _, k, w, f);
31008
31021
  let C = o[_ + 1], M = o[_ + 2];
31009
31022
  l.push(k.length);
31010
- let S = y ? c(_ + 4, o[_ + 3], s.set.types[o[_]], C, M - C, y - 1) : e.toTree();
31011
- return k.push(S), w.push(C - f), ip(s, o[_ + 3], h, k, w, f), new me(d, k, w, g);
31023
+ let A = y ? c(_ + 4, o[_ + 3], s.set.types[o[_]], C, M - C, y - 1) : e.toTree();
31024
+ return k.push(A), w.push(C - f), ip(s, o[_ + 3], h, k, w, f), new me(d, k, w, g);
31012
31025
  }
31013
31026
  a.children[i] = c(0, o.length, Qe.none, 0, s.length, n.length - 1);
31014
31027
  for (let u of l) {
@@ -31327,9 +31340,9 @@ class Hte {
31327
31340
  if (d && d.overlay) {
31328
31341
  let f = e.node.enter(d.overlay[0].from + o, 1), g = this.highlighters.filter((_) => !_.scope || _.scope(d.tree.type)), y = e.firstChild();
31329
31342
  for (let _ = 0, k = o; ; _++) {
31330
- let w = _ < d.overlay.length ? d.overlay[_] : null, C = w ? w.from + o : l, M = Math.max(n, k), S = Math.min(r, C);
31331
- if (M < S && y)
31332
- for (; e.from < S && (this.highlightRange(e, M, S, a, i), this.startSpan(Math.min(S, e.to), c), !(e.to >= C || !e.nextSibling())); )
31343
+ let w = _ < d.overlay.length ? d.overlay[_] : null, C = w ? w.from + o : l, M = Math.max(n, k), A = Math.min(r, C);
31344
+ if (M < A && y)
31345
+ for (; e.from < A && (this.highlightRange(e, M, A, a, i), this.startSpan(Math.min(A, e.to), c), !(e.to >= C || !e.nextSibling())); )
31333
31346
  ;
31334
31347
  if (!w || C > r)
31335
31348
  break;
@@ -31355,7 +31368,7 @@ function qte(t) {
31355
31368
  e = e.next;
31356
31369
  return e || null;
31357
31370
  }
31358
- const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts = Z(Nn), wl = Z(Nn), Wt = Z(), Kn = Z(Wt), Vt = Z(), Zt = Z(), qc = Z(), ga = Z(qc), ns = Z(), v = {
31371
+ const V = Tt.define, es = V(), In = V(), cp = V(In), up = V(In), Nn = V(), ts = V(Nn), wl = V(Nn), Wt = V(), Kn = V(Wt), Vt = V(), Zt = V(), qc = V(), ga = V(qc), ns = V(), v = {
31359
31372
  /**
31360
31373
  A comment.
31361
31374
  */
@@ -31363,15 +31376,15 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31363
31376
  /**
31364
31377
  A line [comment](#highlight.tags.comment).
31365
31378
  */
31366
- lineComment: Z(es),
31379
+ lineComment: V(es),
31367
31380
  /**
31368
31381
  A block [comment](#highlight.tags.comment).
31369
31382
  */
31370
- blockComment: Z(es),
31383
+ blockComment: V(es),
31371
31384
  /**
31372
31385
  A documentation [comment](#highlight.tags.comment).
31373
31386
  */
31374
- docComment: Z(es),
31387
+ docComment: V(es),
31375
31388
  /**
31376
31389
  Any kind of identifier.
31377
31390
  */
@@ -31379,7 +31392,7 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31379
31392
  /**
31380
31393
  The [name](#highlight.tags.name) of a variable.
31381
31394
  */
31382
- variableName: Z(In),
31395
+ variableName: V(In),
31383
31396
  /**
31384
31397
  A type [name](#highlight.tags.name).
31385
31398
  */
@@ -31387,7 +31400,7 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31387
31400
  /**
31388
31401
  A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
31389
31402
  */
31390
- tagName: Z(cp),
31403
+ tagName: V(cp),
31391
31404
  /**
31392
31405
  A property or field [name](#highlight.tags.name).
31393
31406
  */
@@ -31395,23 +31408,23 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31395
31408
  /**
31396
31409
  An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
31397
31410
  */
31398
- attributeName: Z(up),
31411
+ attributeName: V(up),
31399
31412
  /**
31400
31413
  The [name](#highlight.tags.name) of a class.
31401
31414
  */
31402
- className: Z(In),
31415
+ className: V(In),
31403
31416
  /**
31404
31417
  A label [name](#highlight.tags.name).
31405
31418
  */
31406
- labelName: Z(In),
31419
+ labelName: V(In),
31407
31420
  /**
31408
31421
  A namespace [name](#highlight.tags.name).
31409
31422
  */
31410
- namespace: Z(In),
31423
+ namespace: V(In),
31411
31424
  /**
31412
31425
  The [name](#highlight.tags.name) of a macro.
31413
31426
  */
31414
- macroName: Z(In),
31427
+ macroName: V(In),
31415
31428
  /**
31416
31429
  A literal value.
31417
31430
  */
@@ -31423,15 +31436,15 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31423
31436
  /**
31424
31437
  A documentation [string](#highlight.tags.string).
31425
31438
  */
31426
- docString: Z(ts),
31439
+ docString: V(ts),
31427
31440
  /**
31428
31441
  A character literal (subtag of [string](#highlight.tags.string)).
31429
31442
  */
31430
- character: Z(ts),
31443
+ character: V(ts),
31431
31444
  /**
31432
31445
  An attribute value (subtag of [string](#highlight.tags.string)).
31433
31446
  */
31434
- attributeValue: Z(ts),
31447
+ attributeValue: V(ts),
31435
31448
  /**
31436
31449
  A number [literal](#highlight.tags.literal).
31437
31450
  */
@@ -31439,32 +31452,32 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31439
31452
  /**
31440
31453
  An integer [number](#highlight.tags.number) literal.
31441
31454
  */
31442
- integer: Z(wl),
31455
+ integer: V(wl),
31443
31456
  /**
31444
31457
  A floating-point [number](#highlight.tags.number) literal.
31445
31458
  */
31446
- float: Z(wl),
31459
+ float: V(wl),
31447
31460
  /**
31448
31461
  A boolean [literal](#highlight.tags.literal).
31449
31462
  */
31450
- bool: Z(Nn),
31463
+ bool: V(Nn),
31451
31464
  /**
31452
31465
  Regular expression [literal](#highlight.tags.literal).
31453
31466
  */
31454
- regexp: Z(Nn),
31467
+ regexp: V(Nn),
31455
31468
  /**
31456
31469
  An escape [literal](#highlight.tags.literal), for example a
31457
31470
  backslash escape in a string.
31458
31471
  */
31459
- escape: Z(Nn),
31472
+ escape: V(Nn),
31460
31473
  /**
31461
31474
  A color [literal](#highlight.tags.literal).
31462
31475
  */
31463
- color: Z(Nn),
31476
+ color: V(Nn),
31464
31477
  /**
31465
31478
  A URL [literal](#highlight.tags.literal).
31466
31479
  */
31467
- url: Z(Nn),
31480
+ url: V(Nn),
31468
31481
  /**
31469
31482
  A language keyword.
31470
31483
  */
@@ -31473,40 +31486,40 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31473
31486
  The [keyword](#highlight.tags.keyword) for the self or this
31474
31487
  object.
31475
31488
  */
31476
- self: Z(Vt),
31489
+ self: V(Vt),
31477
31490
  /**
31478
31491
  The [keyword](#highlight.tags.keyword) for null.
31479
31492
  */
31480
- null: Z(Vt),
31493
+ null: V(Vt),
31481
31494
  /**
31482
31495
  A [keyword](#highlight.tags.keyword) denoting some atomic value.
31483
31496
  */
31484
- atom: Z(Vt),
31497
+ atom: V(Vt),
31485
31498
  /**
31486
31499
  A [keyword](#highlight.tags.keyword) that represents a unit.
31487
31500
  */
31488
- unit: Z(Vt),
31501
+ unit: V(Vt),
31489
31502
  /**
31490
31503
  A modifier [keyword](#highlight.tags.keyword).
31491
31504
  */
31492
- modifier: Z(Vt),
31505
+ modifier: V(Vt),
31493
31506
  /**
31494
31507
  A [keyword](#highlight.tags.keyword) that acts as an operator.
31495
31508
  */
31496
- operatorKeyword: Z(Vt),
31509
+ operatorKeyword: V(Vt),
31497
31510
  /**
31498
31511
  A control-flow related [keyword](#highlight.tags.keyword).
31499
31512
  */
31500
- controlKeyword: Z(Vt),
31513
+ controlKeyword: V(Vt),
31501
31514
  /**
31502
31515
  A [keyword](#highlight.tags.keyword) that defines something.
31503
31516
  */
31504
- definitionKeyword: Z(Vt),
31517
+ definitionKeyword: V(Vt),
31505
31518
  /**
31506
31519
  A [keyword](#highlight.tags.keyword) related to defining or
31507
31520
  interfacing with modules.
31508
31521
  */
31509
- moduleKeyword: Z(Vt),
31522
+ moduleKeyword: V(Vt),
31510
31523
  /**
31511
31524
  An operator.
31512
31525
  */
@@ -31514,39 +31527,39 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31514
31527
  /**
31515
31528
  An [operator](#highlight.tags.operator) that dereferences something.
31516
31529
  */
31517
- derefOperator: Z(Zt),
31530
+ derefOperator: V(Zt),
31518
31531
  /**
31519
31532
  Arithmetic-related [operator](#highlight.tags.operator).
31520
31533
  */
31521
- arithmeticOperator: Z(Zt),
31534
+ arithmeticOperator: V(Zt),
31522
31535
  /**
31523
31536
  Logical [operator](#highlight.tags.operator).
31524
31537
  */
31525
- logicOperator: Z(Zt),
31538
+ logicOperator: V(Zt),
31526
31539
  /**
31527
31540
  Bit [operator](#highlight.tags.operator).
31528
31541
  */
31529
- bitwiseOperator: Z(Zt),
31542
+ bitwiseOperator: V(Zt),
31530
31543
  /**
31531
31544
  Comparison [operator](#highlight.tags.operator).
31532
31545
  */
31533
- compareOperator: Z(Zt),
31546
+ compareOperator: V(Zt),
31534
31547
  /**
31535
31548
  [Operator](#highlight.tags.operator) that updates its operand.
31536
31549
  */
31537
- updateOperator: Z(Zt),
31550
+ updateOperator: V(Zt),
31538
31551
  /**
31539
31552
  [Operator](#highlight.tags.operator) that defines something.
31540
31553
  */
31541
- definitionOperator: Z(Zt),
31554
+ definitionOperator: V(Zt),
31542
31555
  /**
31543
31556
  Type-related [operator](#highlight.tags.operator).
31544
31557
  */
31545
- typeOperator: Z(Zt),
31558
+ typeOperator: V(Zt),
31546
31559
  /**
31547
31560
  Control-flow [operator](#highlight.tags.operator).
31548
31561
  */
31549
- controlOperator: Z(Zt),
31562
+ controlOperator: V(Zt),
31550
31563
  /**
31551
31564
  Program or markup punctuation.
31552
31565
  */
@@ -31555,7 +31568,7 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31555
31568
  [Punctuation](#highlight.tags.punctuation) that separates
31556
31569
  things.
31557
31570
  */
31558
- separator: Z(qc),
31571
+ separator: V(qc),
31559
31572
  /**
31560
31573
  Bracket-style [punctuation](#highlight.tags.punctuation).
31561
31574
  */
@@ -31564,22 +31577,22 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31564
31577
  Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
31565
31578
  tokens).
31566
31579
  */
31567
- angleBracket: Z(ga),
31580
+ angleBracket: V(ga),
31568
31581
  /**
31569
31582
  Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
31570
31583
  tokens).
31571
31584
  */
31572
- squareBracket: Z(ga),
31585
+ squareBracket: V(ga),
31573
31586
  /**
31574
31587
  Parentheses (usually `(` and `)` tokens). Subtag of
31575
31588
  [bracket](#highlight.tags.bracket).
31576
31589
  */
31577
- paren: Z(ga),
31590
+ paren: V(ga),
31578
31591
  /**
31579
31592
  Braces (usually `{` and `}` tokens). Subtag of
31580
31593
  [bracket](#highlight.tags.bracket).
31581
31594
  */
31582
- brace: Z(ga),
31595
+ brace: V(ga),
31583
31596
  /**
31584
31597
  Content, for example plain text in XML or markup documents.
31585
31598
  */
@@ -31591,77 +31604,77 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31591
31604
  /**
31592
31605
  A level 1 [heading](#highlight.tags.heading).
31593
31606
  */
31594
- heading1: Z(Kn),
31607
+ heading1: V(Kn),
31595
31608
  /**
31596
31609
  A level 2 [heading](#highlight.tags.heading).
31597
31610
  */
31598
- heading2: Z(Kn),
31611
+ heading2: V(Kn),
31599
31612
  /**
31600
31613
  A level 3 [heading](#highlight.tags.heading).
31601
31614
  */
31602
- heading3: Z(Kn),
31615
+ heading3: V(Kn),
31603
31616
  /**
31604
31617
  A level 4 [heading](#highlight.tags.heading).
31605
31618
  */
31606
- heading4: Z(Kn),
31619
+ heading4: V(Kn),
31607
31620
  /**
31608
31621
  A level 5 [heading](#highlight.tags.heading).
31609
31622
  */
31610
- heading5: Z(Kn),
31623
+ heading5: V(Kn),
31611
31624
  /**
31612
31625
  A level 6 [heading](#highlight.tags.heading).
31613
31626
  */
31614
- heading6: Z(Kn),
31627
+ heading6: V(Kn),
31615
31628
  /**
31616
31629
  A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
31617
31630
  */
31618
- contentSeparator: Z(Wt),
31631
+ contentSeparator: V(Wt),
31619
31632
  /**
31620
31633
  [Content](#highlight.tags.content) that represents a list.
31621
31634
  */
31622
- list: Z(Wt),
31635
+ list: V(Wt),
31623
31636
  /**
31624
31637
  [Content](#highlight.tags.content) that represents a quote.
31625
31638
  */
31626
- quote: Z(Wt),
31639
+ quote: V(Wt),
31627
31640
  /**
31628
31641
  [Content](#highlight.tags.content) that is emphasized.
31629
31642
  */
31630
- emphasis: Z(Wt),
31643
+ emphasis: V(Wt),
31631
31644
  /**
31632
31645
  [Content](#highlight.tags.content) that is styled strong.
31633
31646
  */
31634
- strong: Z(Wt),
31647
+ strong: V(Wt),
31635
31648
  /**
31636
31649
  [Content](#highlight.tags.content) that is part of a link.
31637
31650
  */
31638
- link: Z(Wt),
31651
+ link: V(Wt),
31639
31652
  /**
31640
31653
  [Content](#highlight.tags.content) that is styled as code or
31641
31654
  monospace.
31642
31655
  */
31643
- monospace: Z(Wt),
31656
+ monospace: V(Wt),
31644
31657
  /**
31645
31658
  [Content](#highlight.tags.content) that has a strike-through
31646
31659
  style.
31647
31660
  */
31648
- strikethrough: Z(Wt),
31661
+ strikethrough: V(Wt),
31649
31662
  /**
31650
31663
  Inserted text in a change-tracking format.
31651
31664
  */
31652
- inserted: Z(),
31665
+ inserted: V(),
31653
31666
  /**
31654
31667
  Deleted text.
31655
31668
  */
31656
- deleted: Z(),
31669
+ deleted: V(),
31657
31670
  /**
31658
31671
  Changed text.
31659
31672
  */
31660
- changed: Z(),
31673
+ changed: V(),
31661
31674
  /**
31662
31675
  An invalid or unsyntactic element.
31663
31676
  */
31664
- invalid: Z(),
31677
+ invalid: V(),
31665
31678
  /**
31666
31679
  Metadata or meta-instruction.
31667
31680
  */
@@ -31670,17 +31683,17 @@ const Z = Tt.define, es = Z(), In = Z(), cp = Z(In), up = Z(In), Nn = Z(), ts =
31670
31683
  [Metadata](#highlight.tags.meta) that applies to the entire
31671
31684
  document.
31672
31685
  */
31673
- documentMeta: Z(ns),
31686
+ documentMeta: V(ns),
31674
31687
  /**
31675
31688
  [Metadata](#highlight.tags.meta) that annotates or adds
31676
31689
  attributes to a given syntactic element.
31677
31690
  */
31678
- annotation: Z(ns),
31691
+ annotation: V(ns),
31679
31692
  /**
31680
31693
  Processing instruction or preprocessor directive. Subtag of
31681
31694
  [meta](#highlight.tags.meta).
31682
31695
  */
31683
- processingInstruction: Z(ns),
31696
+ processingInstruction: V(ns),
31684
31697
  /**
31685
31698
  [Modifier](#highlight.Tag^defineModifier) that indicates that a
31686
31699
  given element is being defined. Expected to be used with the
@@ -35143,9 +35156,9 @@ class vo extends bo {
35143
35156
  let d = r.types.slice(), f;
35144
35157
  for (let g of n.defineNodes) {
35145
35158
  let { name: y, block: _, composite: k, style: w } = typeof g == "string" ? { name: g } : g;
35146
- if (d.some((S) => S.name == y))
35159
+ if (d.some((A) => A.name == y))
35147
35160
  continue;
35148
- k && (a[d.length] = (S, m, T) => k(m, T, S.value));
35161
+ k && (a[d.length] = (A, m, T) => k(m, T, A.value));
35149
35162
  let C = d.length, M = k ? ["Block", "BlockContext"] : _ ? C >= Y.ATXHeading1 && C <= Y.SetextHeading2 ? ["Block", "LeafBlock", "Heading"] : ["Block", "LeafBlock"] : void 0;
35150
35163
  d.push(Qe.define({
35151
35164
  id: C,
@@ -39101,7 +39114,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39101
39114
  tsxLanguage: Ah,
39102
39115
  typescriptLanguage: xh,
39103
39116
  typescriptSnippets: Yk
39104
- }, Symbol.toStringTag, { value: "Module" })), Oa = ["_blank", "_self", "_top", "_parent"], Bl = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ql = ["get", "post", "put", "delete"], $l = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], _t = ["true", "false"], te = {}, Xse = {
39117
+ }, Symbol.toStringTag, { value: "Module" })), Oa = ["_blank", "_self", "_top", "_parent"], Bl = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ql = ["get", "post", "put", "delete"], $l = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], _t = ["true", "false"], ne = {}, Xse = {
39105
39118
  a: {
39106
39119
  attrs: {
39107
39120
  href: null,
@@ -39112,8 +39125,8 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39112
39125
  hreflang: null
39113
39126
  }
39114
39127
  },
39115
- abbr: te,
39116
- address: te,
39128
+ abbr: ne,
39129
+ address: ne,
39117
39130
  area: {
39118
39131
  attrs: {
39119
39132
  alt: null,
@@ -39127,8 +39140,8 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39127
39140
  shape: ["default", "rect", "circle", "poly"]
39128
39141
  }
39129
39142
  },
39130
- article: te,
39131
- aside: te,
39143
+ article: ne,
39144
+ aside: ne,
39132
39145
  audio: {
39133
39146
  attrs: {
39134
39147
  src: null,
@@ -39140,13 +39153,13 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39140
39153
  controls: ["controls"]
39141
39154
  }
39142
39155
  },
39143
- b: te,
39156
+ b: ne,
39144
39157
  base: { attrs: { href: null, target: Oa } },
39145
- bdi: te,
39146
- bdo: te,
39158
+ bdi: ne,
39159
+ bdo: ne,
39147
39160
  blockquote: { attrs: { cite: null } },
39148
- body: te,
39149
- br: te,
39161
+ body: ne,
39162
+ br: ne,
39150
39163
  button: {
39151
39164
  attrs: {
39152
39165
  form: null,
@@ -39163,10 +39176,10 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39163
39176
  }
39164
39177
  },
39165
39178
  canvas: { attrs: { width: null, height: null } },
39166
- caption: te,
39167
- center: te,
39168
- cite: te,
39169
- code: te,
39179
+ caption: ne,
39180
+ center: ne,
39181
+ cite: ne,
39182
+ code: ne,
39170
39183
  col: { attrs: { span: null } },
39171
39184
  colgroup: { attrs: { span: null } },
39172
39185
  command: {
@@ -39184,20 +39197,20 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39184
39197
  data: { attrs: { value: null } },
39185
39198
  datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
39186
39199
  datalist: { attrs: { data: null } },
39187
- dd: te,
39200
+ dd: ne,
39188
39201
  del: { attrs: { cite: null, datetime: null } },
39189
39202
  details: { attrs: { open: ["open"] } },
39190
- dfn: te,
39191
- div: te,
39192
- dl: te,
39193
- dt: te,
39194
- em: te,
39203
+ dfn: ne,
39204
+ div: ne,
39205
+ dl: ne,
39206
+ dt: ne,
39207
+ em: ne,
39195
39208
  embed: { attrs: { src: null, type: null, width: null, height: null } },
39196
39209
  eventsource: { attrs: { src: null } },
39197
39210
  fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
39198
- figcaption: te,
39199
- figure: te,
39200
- footer: te,
39211
+ figcaption: ne,
39212
+ figure: ne,
39213
+ footer: ne,
39201
39214
  form: {
39202
39215
  attrs: {
39203
39216
  action: null,
@@ -39210,22 +39223,22 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39210
39223
  target: Oa
39211
39224
  }
39212
39225
  },
39213
- h1: te,
39214
- h2: te,
39215
- h3: te,
39216
- h4: te,
39217
- h5: te,
39218
- h6: te,
39226
+ h1: ne,
39227
+ h2: ne,
39228
+ h3: ne,
39229
+ h4: ne,
39230
+ h5: ne,
39231
+ h6: ne,
39219
39232
  head: {
39220
39233
  children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
39221
39234
  },
39222
- header: te,
39223
- hgroup: te,
39224
- hr: te,
39235
+ header: ne,
39236
+ hgroup: ne,
39237
+ hr: ne,
39225
39238
  html: {
39226
39239
  attrs: { manifest: null }
39227
39240
  },
39228
- i: te,
39241
+ i: ne,
39229
39242
  iframe: {
39230
39243
  attrs: {
39231
39244
  src: null,
@@ -39307,7 +39320,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39307
39320
  }
39308
39321
  },
39309
39322
  ins: { attrs: { cite: null, datetime: null } },
39310
- kbd: te,
39323
+ kbd: ne,
39311
39324
  keygen: {
39312
39325
  attrs: {
39313
39326
  challenge: null,
@@ -39319,7 +39332,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39319
39332
  }
39320
39333
  },
39321
39334
  label: { attrs: { for: null, form: null } },
39322
- legend: te,
39335
+ legend: ne,
39323
39336
  li: { attrs: { value: null } },
39324
39337
  link: {
39325
39338
  attrs: {
@@ -39331,7 +39344,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39331
39344
  }
39332
39345
  },
39333
39346
  map: { attrs: { name: null } },
39334
- mark: te,
39347
+ mark: ne,
39335
39348
  menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
39336
39349
  meta: {
39337
39350
  attrs: {
@@ -39342,8 +39355,8 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39342
39355
  }
39343
39356
  },
39344
39357
  meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
39345
- nav: te,
39346
- noscript: te,
39358
+ nav: ne,
39359
+ noscript: ne,
39347
39360
  object: {
39348
39361
  attrs: {
39349
39362
  data: null,
@@ -39363,15 +39376,15 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39363
39376
  optgroup: { attrs: { disabled: ["disabled"], label: null } },
39364
39377
  option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
39365
39378
  output: { attrs: { for: null, form: null, name: null } },
39366
- p: te,
39379
+ p: ne,
39367
39380
  param: { attrs: { name: null, value: null } },
39368
- pre: te,
39381
+ pre: ne,
39369
39382
  progress: { attrs: { value: null, max: null } },
39370
39383
  q: { attrs: { cite: null } },
39371
- rp: te,
39372
- rt: te,
39373
- ruby: te,
39374
- samp: te,
39384
+ rp: ne,
39385
+ rt: ne,
39386
+ ruby: ne,
39387
+ samp: ne,
39375
39388
  script: {
39376
39389
  attrs: {
39377
39390
  type: ["text/javascript"],
@@ -39381,7 +39394,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39381
39394
  charset: Bl
39382
39395
  }
39383
39396
  },
39384
- section: te,
39397
+ section: ne,
39385
39398
  select: {
39386
39399
  attrs: {
39387
39400
  form: null,
@@ -39393,10 +39406,10 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39393
39406
  }
39394
39407
  },
39395
39408
  slot: { attrs: { name: null } },
39396
- small: te,
39409
+ small: ne,
39397
39410
  source: { attrs: { src: null, type: null, media: null } },
39398
- span: te,
39399
- strong: te,
39411
+ span: ne,
39412
+ strong: ne,
39400
39413
  style: {
39401
39414
  attrs: {
39402
39415
  type: ["text/css"],
@@ -39404,13 +39417,13 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39404
39417
  scoped: null
39405
39418
  }
39406
39419
  },
39407
- sub: te,
39408
- summary: te,
39409
- sup: te,
39410
- table: te,
39411
- tbody: te,
39420
+ sub: ne,
39421
+ summary: ne,
39422
+ sup: ne,
39423
+ table: ne,
39424
+ tbody: ne,
39412
39425
  td: { attrs: { colspan: null, rowspan: null, headers: null } },
39413
- template: te,
39426
+ template: ne,
39414
39427
  textarea: {
39415
39428
  attrs: {
39416
39429
  dirname: null,
@@ -39427,12 +39440,12 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39427
39440
  wrap: ["soft", "hard"]
39428
39441
  }
39429
39442
  },
39430
- tfoot: te,
39443
+ tfoot: ne,
39431
39444
  th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
39432
- thead: te,
39445
+ thead: ne,
39433
39446
  time: { attrs: { datetime: null } },
39434
- title: te,
39435
- tr: te,
39447
+ title: ne,
39448
+ tr: ne,
39436
39449
  track: {
39437
39450
  attrs: {
39438
39451
  src: null,
@@ -39443,7 +39456,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39443
39456
  }
39444
39457
  },
39445
39458
  ul: { children: ["li", "script", "template", "ul", "ol"] },
39446
- var: te,
39459
+ var: ne,
39447
39460
  video: {
39448
39461
  attrs: {
39449
39462
  src: null,
@@ -39458,7 +39471,7 @@ const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39458
39471
  controls: ["controls"]
39459
39472
  }
39460
39473
  },
39461
- wbr: te
39474
+ wbr: ne
39462
39475
  }, r_ = {
39463
39476
  accesskey: null,
39464
39477
  class: null,
@@ -39919,10 +39932,10 @@ const O_ = (t = {}) => ({ state: e, dispatch: n }) => {
39919
39932
  if (h.item && d) {
39920
39933
  let k = h.node.firstChild, w = h.node.getChild("ListItem", "ListItem");
39921
39934
  if (k.to >= l || w && w.to < l || c.from > 0 && !/[^\s>]/.test(a.lineAt(c.from - 1).text) || t.nonTightLists === !1) {
39922
- let C = u.length > 1 ? u[u.length - 2] : null, M, S = "";
39923
- C && C.item ? (M = c.from + C.from, S = C.marker(a, 1)) : M = c.from + (C ? C.to : 0);
39924
- let m = [{ from: M, to: l, insert: S }];
39925
- return h.node.name == "OrderedList" && jl(h.item, a, m, -2), C && C.node.name == "OrderedList" && jl(C.item, a, m), { range: U.cursor(M + S.length), changes: m };
39935
+ let C = u.length > 1 ? u[u.length - 2] : null, M, A = "";
39936
+ C && C.item ? (M = c.from + C.from, A = C.marker(a, 1)) : M = c.from + (C ? C.to : 0);
39937
+ let m = [{ from: M, to: l, insert: A }];
39938
+ return h.node.name == "OrderedList" && jl(h.item, a, m, -2), C && C.node.name == "OrderedList" && jl(C.item, a, m), { range: U.cursor(M + A.length), changes: m };
39926
39939
  } else {
39927
39940
  let C = pm(u, e, c);
39928
39941
  return {
@@ -40095,7 +40108,7 @@ function $(t) {
40095
40108
  return new Hr(rh.define(t));
40096
40109
  }
40097
40110
  function Cn(t) {
40098
- return import("./index-D6_NUYM5.js").then((e) => e.sql({ dialect: e[t] }));
40111
+ return import("./index-BxIy6tzf.js").then((e) => e.sql({ dialect: e[t] }));
40099
40112
  }
40100
40113
  const coe = [
40101
40114
  // New-style language modes
@@ -40103,7 +40116,7 @@ const coe = [
40103
40116
  name: "C",
40104
40117
  extensions: ["c", "h", "ino"],
40105
40118
  load() {
40106
- return import("./index-C0B6fIWm.js").then((t) => t.cpp());
40119
+ return import("./index-D4RF5j7W.js").then((t) => t.cpp());
40107
40120
  }
40108
40121
  }),
40109
40122
  /* @__PURE__ */ N.of({
@@ -40111,7 +40124,7 @@ const coe = [
40111
40124
  alias: ["cpp"],
40112
40125
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
40113
40126
  load() {
40114
- return import("./index-C0B6fIWm.js").then((t) => t.cpp());
40127
+ return import("./index-D4RF5j7W.js").then((t) => t.cpp());
40115
40128
  }
40116
40129
  }),
40117
40130
  /* @__PURE__ */ N.of({
@@ -40133,7 +40146,7 @@ const coe = [
40133
40146
  name: "Go",
40134
40147
  extensions: ["go"],
40135
40148
  load() {
40136
- return import("./index-_Ct2k800.js").then((t) => t.go());
40149
+ return import("./index-DEp7S83E.js").then((t) => t.go());
40137
40150
  }
40138
40151
  }),
40139
40152
  /* @__PURE__ */ N.of({
@@ -40148,7 +40161,7 @@ const coe = [
40148
40161
  name: "Java",
40149
40162
  extensions: ["java"],
40150
40163
  load() {
40151
- return import("./index-CfkwCrlM.js").then((t) => t.java());
40164
+ return import("./index-DP_oYLEF.js").then((t) => t.java());
40152
40165
  }
40153
40166
  }),
40154
40167
  /* @__PURE__ */ N.of({
@@ -40163,7 +40176,7 @@ const coe = [
40163
40176
  name: "Jinja",
40164
40177
  extensions: ["j2", "jinja", "jinja2"],
40165
40178
  load() {
40166
- return import("./index-r71_2Ucj.js").then((t) => t.jinja());
40179
+ return import("./index-C_UggGkb.js").then((t) => t.jinja());
40167
40180
  }
40168
40181
  }),
40169
40182
  /* @__PURE__ */ N.of({
@@ -40171,7 +40184,7 @@ const coe = [
40171
40184
  alias: ["json5"],
40172
40185
  extensions: ["json", "map"],
40173
40186
  load() {
40174
- return import("./index-DdtUtlgn.js").then((t) => t.json());
40187
+ return import("./index-fFFhFMcL.js").then((t) => t.json());
40175
40188
  }
40176
40189
  }),
40177
40190
  /* @__PURE__ */ N.of({
@@ -40185,14 +40198,14 @@ const coe = [
40185
40198
  name: "LESS",
40186
40199
  extensions: ["less"],
40187
40200
  load() {
40188
- return import("./index-8HXmiR6d.js").then((t) => t.less());
40201
+ return import("./index-6RoveRAL.js").then((t) => t.less());
40189
40202
  }
40190
40203
  }),
40191
40204
  /* @__PURE__ */ N.of({
40192
40205
  name: "Liquid",
40193
40206
  extensions: ["liquid"],
40194
40207
  load() {
40195
- return import("./index-cJNaLP3g.js").then((t) => t.liquid());
40208
+ return import("./index-Dpu0GUhM.js").then((t) => t.liquid());
40196
40209
  }
40197
40210
  }),
40198
40211
  /* @__PURE__ */ N.of({
@@ -40224,7 +40237,7 @@ const coe = [
40224
40237
  name: "PHP",
40225
40238
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
40226
40239
  load() {
40227
- return import("./index-DeQd2nwt.js").then((t) => t.php());
40240
+ return import("./index-BJDmk8ZB.js").then((t) => t.php());
40228
40241
  }
40229
40242
  }),
40230
40243
  /* @__PURE__ */ N.of({
@@ -40245,28 +40258,28 @@ const coe = [
40245
40258
  extensions: ["BUILD", "bzl", "py", "pyw"],
40246
40259
  filename: /^(BUCK|BUILD)$/,
40247
40260
  load() {
40248
- return import("./index-DPu6IKpn.js").then((t) => t.python());
40261
+ return import("./index-DdWOJkZC.js").then((t) => t.python());
40249
40262
  }
40250
40263
  }),
40251
40264
  /* @__PURE__ */ N.of({
40252
40265
  name: "Rust",
40253
40266
  extensions: ["rs"],
40254
40267
  load() {
40255
- return import("./index-B6o4La7h.js").then((t) => t.rust());
40268
+ return import("./index-DGs2U46s.js").then((t) => t.rust());
40256
40269
  }
40257
40270
  }),
40258
40271
  /* @__PURE__ */ N.of({
40259
40272
  name: "Sass",
40260
40273
  extensions: ["sass"],
40261
40274
  load() {
40262
- return import("./index-qJ80CDx2.js").then((t) => t.sass({ indented: !0 }));
40275
+ return import("./index-B-RaMuYz.js").then((t) => t.sass({ indented: !0 }));
40263
40276
  }
40264
40277
  }),
40265
40278
  /* @__PURE__ */ N.of({
40266
40279
  name: "SCSS",
40267
40280
  extensions: ["scss"],
40268
40281
  load() {
40269
- return import("./index-qJ80CDx2.js").then((t) => t.sass());
40282
+ return import("./index-B-RaMuYz.js").then((t) => t.sass());
40270
40283
  }
40271
40284
  }),
40272
40285
  /* @__PURE__ */ N.of({
@@ -40301,7 +40314,7 @@ const coe = [
40301
40314
  name: "WebAssembly",
40302
40315
  extensions: ["wat", "wast"],
40303
40316
  load() {
40304
- return import("./index-uY5fbYRT.js").then((t) => t.wast());
40317
+ return import("./index-BcIouwsS.js").then((t) => t.wast());
40305
40318
  }
40306
40319
  }),
40307
40320
  /* @__PURE__ */ N.of({
@@ -40309,7 +40322,7 @@ const coe = [
40309
40322
  alias: ["rss", "wsdl", "xsd"],
40310
40323
  extensions: ["xml", "xsl", "xsd", "svg"],
40311
40324
  load() {
40312
- return import("./index-U1-yKG5k.js").then((t) => t.xml());
40325
+ return import("./index-B-joHEky.js").then((t) => t.xml());
40313
40326
  }
40314
40327
  }),
40315
40328
  /* @__PURE__ */ N.of({
@@ -40317,7 +40330,7 @@ const coe = [
40317
40330
  alias: ["yml"],
40318
40331
  extensions: ["yaml", "yml"],
40319
40332
  load() {
40320
- return import("./index-BkU-cFhY.js").then((t) => t.yaml());
40333
+ return import("./index-sG6gaGQU.js").then((t) => t.yaml());
40321
40334
  }
40322
40335
  }),
40323
40336
  // Legacy modes ported from CodeMirror 5
@@ -41106,13 +41119,13 @@ const coe = [
41106
41119
  name: "Vue",
41107
41120
  extensions: ["vue"],
41108
41121
  load() {
41109
- return import("./index-DWiN9Px5.js").then((t) => t.vue());
41122
+ return import("./index-Do342SqB.js").then((t) => t.vue());
41110
41123
  }
41111
41124
  }),
41112
41125
  /* @__PURE__ */ N.of({
41113
41126
  name: "Angular Template",
41114
41127
  load() {
41115
- return import("./index-CCrEmlAO.js").then((t) => t.angular());
41128
+ return import("./index-zo9pZ31h.js").then((t) => t.angular());
41116
41129
  }
41117
41130
  })
41118
41131
  ], mm = {
@@ -41240,33 +41253,33 @@ const foe = {
41240
41253
  maxLength: d,
41241
41254
  ...f
41242
41255
  }) => {
41243
- const g = mn(null), y = mn(null), [_, k] = Ue(e ?? t), [w, C] = Ue("editor"), [M, S] = Ue(!1), [m, T] = Ue(r), [F, P] = Ue(!1), z = mn(null), { resolvedTheme: B } = uo(), { messages: L } = bi(), q = mn(null), W = mn(!1), D = doe(o);
41256
+ const g = mn(null), y = mn(null), [_, k] = Ue(e ?? t), [w, C] = Ue("editor"), [M, A] = Ue(!1), [m, T] = Ue(r), [F, P] = Ue(!1), z = mn(null), { resolvedTheme: B } = uo(), { messages: L } = bi(), q = mn(null), Z = mn(!1), D = doe(o);
41244
41257
  ht(() => {
41245
41258
  if (e !== void 0 && e !== _ && (k(e), y.current)) {
41246
- const K = y.current.state.doc.toString();
41247
- K !== e && y.current.dispatch({
41259
+ const ee = y.current.state.doc.toString();
41260
+ ee !== e && y.current.dispatch({
41248
41261
  changes: {
41249
41262
  from: 0,
41250
- to: K.length,
41263
+ to: ee.length,
41251
41264
  insert: e
41252
41265
  }
41253
41266
  });
41254
41267
  }
41255
41268
  }, [e]), ht(() => {
41256
41269
  if (!u || !h) return;
41257
- const K = setInterval(() => u(_), h);
41258
- return () => clearInterval(K);
41270
+ const ee = setInterval(() => u(_), h);
41271
+ return () => clearInterval(ee);
41259
41272
  }, [_, u, h]), ht(() => {
41260
41273
  if (!g.current) return;
41261
- const K = re.updateListener.of((Te) => {
41274
+ const ee = re.updateListener.of((Te) => {
41262
41275
  if (Te.docChanged) {
41263
- if (W.current) {
41264
- W.current = !1;
41276
+ if (Z.current) {
41277
+ Z.current = !1;
41265
41278
  return;
41266
41279
  }
41267
41280
  let ge = Te.state.doc.toString();
41268
41281
  if (d !== void 0 && ge.length > d) {
41269
- ge = ge.slice(0, d), W.current = !0;
41282
+ ge = ge.slice(0, d), Z.current = !0;
41270
41283
  const Ze = Math.min(Te.state.selection.main.head, d);
41271
41284
  Te.view.dispatch({
41272
41285
  changes: { from: d, to: Te.state.doc.length },
@@ -41275,7 +41288,7 @@ const foe = {
41275
41288
  }
41276
41289
  k(ge), n == null || n(ge);
41277
41290
  }
41278
- }), oe = re.domEventHandlers({
41291
+ }), ce = re.domEventHandlers({
41279
41292
  paste: (Te, ge) => {
41280
41293
  var ot;
41281
41294
  if (!c) return !1;
@@ -41329,7 +41342,7 @@ const foe = {
41329
41342
  }), !0;
41330
41343
  return !1;
41331
41344
  }
41332
- }), A = Oe.create({
41345
+ }), S = Oe.create({
41333
41346
  doc: _,
41334
41347
  extensions: [
41335
41348
  S_({ base: Vr, codeLanguages: coe }),
@@ -41339,8 +41352,8 @@ const foe = {
41339
41352
  wte(),
41340
41353
  Kre(),
41341
41354
  _o.of([...Ire, ...Fne]),
41342
- K,
41343
- oe,
41355
+ ee,
41356
+ ce,
41344
41357
  re.lineWrapping,
41345
41358
  Oe.readOnly.of(l),
41346
41359
  re.theme({
@@ -41350,82 +41363,82 @@ const foe = {
41350
41363
  ...s
41351
41364
  ]
41352
41365
  }), we = new re({
41353
- state: A,
41366
+ state: S,
41354
41367
  parent: g.current
41355
41368
  });
41356
41369
  return y.current = we, () => {
41357
41370
  we.destroy(), y.current = null;
41358
41371
  };
41359
41372
  }, []);
41360
- const G = Pr((K) => {
41361
- const oe = y.current;
41362
- if (K === "undo") {
41363
- oe && (lh(oe), oe.focus());
41373
+ const K = Pr((ee) => {
41374
+ const ce = y.current;
41375
+ if (ee === "undo") {
41376
+ ce && (lh(ce), ce.focus());
41364
41377
  return;
41365
41378
  }
41366
- if (K === "redo") {
41367
- oe && ($s(oe), oe.focus());
41379
+ if (ee === "redo") {
41380
+ ce && ($s(ce), ce.focus());
41368
41381
  return;
41369
41382
  }
41370
- if (K === "preview") {
41383
+ if (ee === "preview") {
41371
41384
  C((we) => we === "preview" ? "editor" : "preview");
41372
41385
  return;
41373
41386
  }
41374
- if (K === "fullscreen") {
41375
- S((we) => !we);
41387
+ if (ee === "fullscreen") {
41388
+ A((we) => !we);
41376
41389
  return;
41377
41390
  }
41378
- if (K === "layout") {
41391
+ if (ee === "layout") {
41379
41392
  T((we) => {
41380
41393
  const Te = ls.indexOf(we);
41381
41394
  return ls[(Te + 1) % ls.length];
41382
41395
  });
41383
41396
  return;
41384
41397
  }
41385
- if (K === "heading") {
41398
+ if (ee === "heading") {
41386
41399
  P((we) => !we);
41387
41400
  return;
41388
41401
  }
41389
- if (P(!1), !oe) return;
41390
- const A = foe[K];
41391
- A && A(oe), oe.focus();
41402
+ if (P(!1), !ce) return;
41403
+ const S = foe[ee];
41404
+ S && S(ce), ce.focus();
41392
41405
  }, []);
41393
41406
  ht(() => {
41394
41407
  if (!F) return;
41395
- const K = (oe) => {
41396
- z.current && !z.current.contains(oe.target) && P(!1);
41408
+ const ee = (ce) => {
41409
+ z.current && !z.current.contains(ce.target) && P(!1);
41397
41410
  };
41398
- return document.addEventListener("mousedown", K), () => document.removeEventListener("mousedown", K);
41411
+ return document.addEventListener("mousedown", ee), () => document.removeEventListener("mousedown", ee);
41399
41412
  }, [F]), ht(() => {
41400
41413
  T(r);
41401
41414
  }, [r]);
41402
- const ne = m, de = ne === "split" || ne === "editor-only" || ne === "tabs" && w === "editor", fe = ne === "split" || ne === "preview-only" || ne === "tabs" && w === "preview", x = f.theme ? f.theme === "auto" ? B : f.theme : B;
41415
+ const J = m, ue = J === "split" || J === "editor-only" || J === "tabs" && w === "editor", le = J === "split" || J === "preview-only" || J === "tabs" && w === "preview", x = f.theme ? f.theme === "auto" ? B : f.theme : B;
41403
41416
  return /* @__PURE__ */ We(
41404
41417
  "div",
41405
41418
  {
41406
41419
  ref: q,
41407
- className: `markdown-editor layout-${ne} markdown-theme-${x}${M ? " markdown-editor-fullscreen" : ""}${f.className ? ` ${f.className}` : ""}`,
41420
+ className: `markdown-editor layout-${J} markdown-theme-${x}${M ? " markdown-editor-fullscreen" : ""}${f.className ? ` ${f.className}` : ""}`,
41408
41421
  children: [
41409
41422
  D.show && /* @__PURE__ */ We("div", { className: "markdown-toolbar", role: "toolbar", children: [
41410
- /* @__PURE__ */ ie("div", { className: "toolbar-left", children: ls.map((K) => /* @__PURE__ */ ie(
41423
+ /* @__PURE__ */ ie("div", { className: "toolbar-left", children: ls.map((ee) => /* @__PURE__ */ ie(
41411
41424
  "button",
41412
41425
  {
41413
- className: `toolbar-btn toolbar-layout${m === K ? " active" : ""}`,
41414
- onClick: () => T(K),
41415
- title: L.toolbar[`layout_${K}`] ?? K,
41416
- "aria-label": K,
41417
- "aria-pressed": m === K,
41418
- children: /* @__PURE__ */ ie(os, { name: `layout-${K}` })
41426
+ className: `toolbar-btn toolbar-layout${m === ee ? " active" : ""}`,
41427
+ onClick: () => T(ee),
41428
+ title: L.toolbar[`layout_${ee}`] ?? ee,
41429
+ "aria-label": ee,
41430
+ "aria-pressed": m === ee,
41431
+ children: /* @__PURE__ */ ie(os, { name: `layout-${ee}` })
41419
41432
  },
41420
- K
41433
+ ee
41421
41434
  )) }),
41422
- /* @__PURE__ */ ie("div", { className: "toolbar-right", children: D.items.filter((K) => K !== "layout").map(
41423
- (K, oe) => K === "|" ? /* @__PURE__ */ ie("span", { className: "toolbar-separator" }, oe) : K === "heading" ? /* @__PURE__ */ We("div", { className: "toolbar-heading-group", ref: z, children: [
41435
+ /* @__PURE__ */ ie("div", { className: "toolbar-right", children: D.items.filter((ee) => ee !== "layout").map(
41436
+ (ee, ce) => ee === "|" ? /* @__PURE__ */ ie("span", { className: "toolbar-separator" }, ce) : ee === "heading" ? /* @__PURE__ */ We("div", { className: "toolbar-heading-group", ref: z, children: [
41424
41437
  /* @__PURE__ */ We(
41425
41438
  "button",
41426
41439
  {
41427
41440
  className: `toolbar-btn toolbar-heading${F ? " active" : ""}`,
41428
- onClick: () => G(K),
41441
+ onClick: () => K(ee),
41429
41442
  title: L.toolbar.heading,
41430
41443
  "aria-label": L.toolbar.heading,
41431
41444
  "aria-expanded": F,
@@ -41436,31 +41449,31 @@ const foe = {
41436
41449
  ]
41437
41450
  }
41438
41451
  ),
41439
- F && /* @__PURE__ */ ie("div", { className: "toolbar-dropdown", role: "menu", children: hoe.map((A) => /* @__PURE__ */ We(
41452
+ F && /* @__PURE__ */ ie("div", { className: "toolbar-dropdown", role: "menu", children: hoe.map((S) => /* @__PURE__ */ We(
41440
41453
  "button",
41441
41454
  {
41442
41455
  className: "toolbar-dropdown-item",
41443
41456
  role: "menuitem",
41444
41457
  onClick: () => {
41445
- G(A), P(!1);
41458
+ K(S), P(!1);
41446
41459
  },
41447
41460
  children: [
41448
- /* @__PURE__ */ ie(os, { name: A }),
41449
- /* @__PURE__ */ ie("span", { children: L.toolbar[A] ?? A.toUpperCase() })
41461
+ /* @__PURE__ */ ie(os, { name: S }),
41462
+ /* @__PURE__ */ ie("span", { children: L.toolbar[S] ?? S.toUpperCase() })
41450
41463
  ]
41451
41464
  },
41452
- A
41465
+ S
41453
41466
  )) })
41454
- ] }, K) : /* @__PURE__ */ ie(
41467
+ ] }, ee) : /* @__PURE__ */ ie(
41455
41468
  "button",
41456
41469
  {
41457
- className: `toolbar-btn toolbar-${K}`,
41458
- onClick: () => G(K),
41459
- title: L.toolbar[K] ?? K,
41460
- "aria-label": L.toolbar[K] ?? K,
41461
- children: /* @__PURE__ */ ie(os, { name: K })
41470
+ className: `toolbar-btn toolbar-${ee}`,
41471
+ onClick: () => K(ee),
41472
+ title: L.toolbar[ee] ?? ee,
41473
+ "aria-label": L.toolbar[ee] ?? ee,
41474
+ children: /* @__PURE__ */ ie(os, { name: ee })
41462
41475
  },
41463
- K
41476
+ ee
41464
41477
  )
41465
41478
  ) })
41466
41479
  ] }),
@@ -41470,10 +41483,10 @@ const foe = {
41470
41483
  {
41471
41484
  className: "markdown-editor-panel",
41472
41485
  ref: g,
41473
- style: de ? void 0 : { display: "none" }
41486
+ style: ue ? void 0 : { display: "none" }
41474
41487
  }
41475
41488
  ),
41476
- fe && /* @__PURE__ */ ie("div", { className: "markdown-preview-panel", children: /* @__PURE__ */ ie(jg, { source: _, ...f }) })
41489
+ le && /* @__PURE__ */ ie("div", { className: "markdown-preview-panel", children: /* @__PURE__ */ ie(jg, { source: _, ...f }) })
41477
41490
  ] }),
41478
41491
  d !== void 0 && /* @__PURE__ */ We("div", { className: "markdown-editor-counter", children: [
41479
41492
  _.length,