@grandaniel/vue-markdown-editor 1.1.3-dev.bc50199 → 1.1.3-dev.df4d480

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.
@@ -17482,99 +17482,132 @@ var uC = { class: "markdown-editor-module-controls" }, dC = /* @__PURE__ */ $n(/
17482
17482
  "onUpdate:cursorPosition"
17483
17483
  ]))), 128)) : (C(), a("p", fC, " Click to start writing... ")), c(nr)], 512));
17484
17484
  }
17485
- }), [["__scopeId", "data-v-1f5fcb46"]]), mC = {};
17486
- function hC(e, t) {
17487
- let n = t || mC;
17488
- return gC(e, typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, typeof n.includeHtml == "boolean" ? n.includeHtml : !0);
17485
+ }), [["__scopeId", "data-v-1f5fcb46"]]), mC = class {
17486
+ id;
17487
+ type;
17488
+ componentState;
17489
+ editingState;
17490
+ constructor(e) {
17491
+ Object.assign(this, e), this.id = Symbol();
17492
+ }
17493
+ }, hC = new class {
17494
+ createNode(e, t) {
17495
+ let n = cC[e].stateType;
17496
+ return new mC({
17497
+ type: e,
17498
+ componentState: new n(t),
17499
+ editingState: { cursorPosition: 0 }
17500
+ });
17501
+ }
17502
+ createTextNode(e, t) {
17503
+ return this.createNode(e, { text: t });
17504
+ }
17505
+ createImageNode(e, t, n = "") {
17506
+ return this.createNode(X.IMAGE, {
17507
+ src: e,
17508
+ alt: t,
17509
+ caption: n
17510
+ });
17511
+ }
17512
+ createListNode(e) {
17513
+ return this.createNode(X.LIST, { items: e.map((e) => new aC({ text: e })) });
17514
+ }
17515
+ createBlankParagraph() {
17516
+ return this.createTextNode(X.PARAGRAPH, "");
17517
+ }
17518
+ }(), gC = {};
17519
+ function _C(e, t) {
17520
+ let n = t || gC;
17521
+ return vC(e, typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, typeof n.includeHtml == "boolean" ? n.includeHtml : !0);
17489
17522
  }
17490
- function gC(e, t, n) {
17491
- if (vC(e)) {
17523
+ function vC(e, t, n) {
17524
+ if (bC(e)) {
17492
17525
  if ("value" in e) return e.type === "html" && !n ? "" : e.value;
17493
17526
  if (t && "alt" in e && e.alt) return e.alt;
17494
- if ("children" in e) return _C(e.children, t, n);
17527
+ if ("children" in e) return yC(e.children, t, n);
17495
17528
  }
17496
- return Array.isArray(e) ? _C(e, t, n) : "";
17529
+ return Array.isArray(e) ? yC(e, t, n) : "";
17497
17530
  }
17498
- function _C(e, t, n) {
17531
+ function yC(e, t, n) {
17499
17532
  let r = [], i = -1;
17500
- for (; ++i < e.length;) r[i] = gC(e[i], t, n);
17533
+ for (; ++i < e.length;) r[i] = vC(e[i], t, n);
17501
17534
  return r.join("");
17502
17535
  }
17503
- function vC(e) {
17536
+ function bC(e) {
17504
17537
  return !!(e && typeof e == "object");
17505
17538
  }
17506
17539
  //#endregion
17507
17540
  //#region node_modules/decode-named-character-reference/index.dom.js
17508
- var yC = document.createElement("i");
17509
- function bC(e) {
17541
+ var xC = document.createElement("i");
17542
+ function SC(e) {
17510
17543
  let t = "&" + e + ";";
17511
- yC.innerHTML = t;
17512
- let n = yC.textContent;
17544
+ xC.innerHTML = t;
17545
+ let n = xC.textContent;
17513
17546
  return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
17514
17547
  }
17515
17548
  //#endregion
17516
17549
  //#region node_modules/micromark-util-chunked/index.js
17517
- function xC(e, t, n, r) {
17550
+ function CC(e, t, n, r) {
17518
17551
  let i = e.length, a = 0, o;
17519
17552
  if (t = t < 0 ? -t > i ? 0 : i + t : t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4) o = Array.from(r), o.unshift(t, n), e.splice(...o);
17520
17553
  else for (n && e.splice(t, n); a < r.length;) o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
17521
17554
  }
17522
- function SC(e, t) {
17523
- return e.length > 0 ? (xC(e, e.length, 0, t), e) : t;
17555
+ function wC(e, t) {
17556
+ return e.length > 0 ? (CC(e, e.length, 0, t), e) : t;
17524
17557
  }
17525
17558
  //#endregion
17526
17559
  //#region node_modules/micromark-util-combine-extensions/index.js
17527
- var CC = {}.hasOwnProperty;
17528
- function wC(e) {
17560
+ var TC = {}.hasOwnProperty;
17561
+ function EC(e) {
17529
17562
  let t = {}, n = -1;
17530
- for (; ++n < e.length;) TC(t, e[n]);
17563
+ for (; ++n < e.length;) DC(t, e[n]);
17531
17564
  return t;
17532
17565
  }
17533
- function TC(e, t) {
17566
+ function DC(e, t) {
17534
17567
  let n;
17535
17568
  for (n in t) {
17536
- let r = (CC.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n], a;
17569
+ let r = (TC.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n], a;
17537
17570
  if (i) for (a in i) {
17538
- CC.call(r, a) || (r[a] = []);
17571
+ TC.call(r, a) || (r[a] = []);
17539
17572
  let e = i[a];
17540
- EC(r[a], Array.isArray(e) ? e : e ? [e] : []);
17573
+ OC(r[a], Array.isArray(e) ? e : e ? [e] : []);
17541
17574
  }
17542
17575
  }
17543
17576
  }
17544
- function EC(e, t) {
17577
+ function OC(e, t) {
17545
17578
  let n = -1, r = [];
17546
17579
  for (; ++n < t.length;) (t[n].add === "after" ? e : r).push(t[n]);
17547
- xC(e, 0, 0, r);
17580
+ CC(e, 0, 0, r);
17548
17581
  }
17549
17582
  //#endregion
17550
17583
  //#region node_modules/micromark-util-decode-numeric-character-reference/index.js
17551
- function DC(e, t) {
17584
+ function kC(e, t) {
17552
17585
  let n = Number.parseInt(e, t);
17553
17586
  return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
17554
17587
  }
17555
17588
  //#endregion
17556
17589
  //#region node_modules/micromark-util-normalize-identifier/index.js
17557
- function OC(e) {
17590
+ function AC(e) {
17558
17591
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
17559
17592
  }
17560
17593
  //#endregion
17561
17594
  //#region node_modules/micromark-util-character/index.js
17562
- var kC = zC(/[A-Za-z]/), AC = zC(/[\dA-Za-z]/), jC = zC(/[#-'*+\--9=?A-Z^-~]/);
17563
- function MC(e) {
17595
+ var jC = VC(/[A-Za-z]/), MC = VC(/[\dA-Za-z]/), NC = VC(/[#-'*+\--9=?A-Z^-~]/);
17596
+ function PC(e) {
17564
17597
  return e !== null && (e < 32 || e === 127);
17565
17598
  }
17566
- var NC = zC(/\d/), PC = zC(/[\dA-Fa-f]/), FC = zC(/[!-/:-@[-`{-~]/);
17599
+ var FC = VC(/\d/), IC = VC(/[\dA-Fa-f]/), LC = VC(/[!-/:-@[-`{-~]/);
17567
17600
  function Z(e) {
17568
17601
  return e !== null && e < -2;
17569
17602
  }
17570
- function IC(e) {
17603
+ function RC(e) {
17571
17604
  return e !== null && (e < 0 || e === 32);
17572
17605
  }
17573
17606
  function Q(e) {
17574
17607
  return e === -2 || e === -1 || e === 32;
17575
17608
  }
17576
- var LC = zC(/\p{P}|\p{S}/u), RC = zC(/\s/);
17577
- function zC(e) {
17609
+ var zC = VC(/\p{P}|\p{S}/u), BC = VC(/\s/);
17610
+ function VC(e) {
17578
17611
  return t;
17579
17612
  function t(t) {
17580
17613
  return t !== null && t > -1 && e.test(String.fromCharCode(t));
@@ -17594,8 +17627,8 @@ function $(e, t, n, r) {
17594
17627
  }
17595
17628
  //#endregion
17596
17629
  //#region node_modules/micromark/lib/initialize/content.js
17597
- var BC = { tokenize: VC };
17598
- function VC(e) {
17630
+ var HC = { tokenize: UC };
17631
+ function UC(e) {
17599
17632
  let t = e.attempt(this.parser.constructs.contentInitial, r, i), n;
17600
17633
  return t;
17601
17634
  function r(n) {
@@ -17625,8 +17658,8 @@ function VC(e) {
17625
17658
  }
17626
17659
  //#endregion
17627
17660
  //#region node_modules/micromark/lib/initialize/document.js
17628
- var HC = { tokenize: WC }, UC = { tokenize: GC };
17629
- function WC(e) {
17661
+ var WC = { tokenize: KC }, GC = { tokenize: qC };
17662
+ function KC(e) {
17630
17663
  let t = this, n = [], r = 0, i, a, o;
17631
17664
  return s;
17632
17665
  function s(i) {
@@ -17647,7 +17680,7 @@ function WC(e) {
17647
17680
  _(r);
17648
17681
  let s = n;
17649
17682
  for (; s < t.events.length;) t.events[s][1].end = { ...o }, s++;
17650
- return xC(t.events, a + 1, 0, t.events.slice(n)), t.events.length = s, l(e);
17683
+ return CC(t.events, a + 1, 0, t.events.slice(n)), t.events.length = s, l(e);
17651
17684
  }
17652
17685
  return s(e);
17653
17686
  }
@@ -17657,7 +17690,7 @@ function WC(e) {
17657
17690
  if (i.currentConstruct && i.currentConstruct.concrete) return m(a);
17658
17691
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
17659
17692
  }
17660
- return t.containerState = {}, e.check(UC, u, d)(a);
17693
+ return t.containerState = {}, e.check(GC, u, d)(a);
17661
17694
  }
17662
17695
  function u(e) {
17663
17696
  return i && v(), _(r), f(e);
@@ -17666,7 +17699,7 @@ function WC(e) {
17666
17699
  return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, m(e);
17667
17700
  }
17668
17701
  function f(n) {
17669
- return t.containerState = {}, e.attempt(UC, p, m)(n);
17702
+ return t.containerState = {}, e.attempt(GC, p, m)(n);
17670
17703
  }
17671
17704
  function p(e) {
17672
17705
  return r++, n.push([t.currentConstruct, t.containerState]), f(e);
@@ -17703,7 +17736,7 @@ function WC(e) {
17703
17736
  s = !0;
17704
17737
  }
17705
17738
  for (_(r), e = n; e < t.events.length;) t.events[e][1].end = { ...c }, e++;
17706
- xC(t.events, a + 1, 0, t.events.slice(n)), t.events.length = e;
17739
+ CC(t.events, a + 1, 0, t.events.slice(n)), t.events.length = e;
17707
17740
  }
17708
17741
  }
17709
17742
  function _(r) {
@@ -17718,18 +17751,18 @@ function WC(e) {
17718
17751
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
17719
17752
  }
17720
17753
  }
17721
- function GC(e, t, n) {
17754
+ function qC(e, t, n) {
17722
17755
  return $(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
17723
17756
  }
17724
17757
  //#endregion
17725
17758
  //#region node_modules/micromark-util-classify-character/index.js
17726
- function KC(e) {
17727
- if (e === null || IC(e) || RC(e)) return 1;
17728
- if (LC(e)) return 2;
17759
+ function JC(e) {
17760
+ if (e === null || RC(e) || BC(e)) return 1;
17761
+ if (zC(e)) return 2;
17729
17762
  }
17730
17763
  //#endregion
17731
17764
  //#region node_modules/micromark-util-resolve-all/index.js
17732
- function qC(e, t, n) {
17765
+ function YC(e, t, n) {
17733
17766
  let r = [], i = -1;
17734
17767
  for (; ++i < e.length;) {
17735
17768
  let a = e[i].resolveAll;
@@ -17739,19 +17772,19 @@ function qC(e, t, n) {
17739
17772
  }
17740
17773
  //#endregion
17741
17774
  //#region node_modules/micromark-core-commonmark/lib/attention.js
17742
- var JC = {
17775
+ var XC = {
17743
17776
  name: "attention",
17744
- resolveAll: YC,
17745
- tokenize: XC
17777
+ resolveAll: ZC,
17778
+ tokenize: QC
17746
17779
  };
17747
- function YC(e, t) {
17780
+ function ZC(e, t) {
17748
17781
  let n = -1, r, i, a, o, s, c, l, u;
17749
17782
  for (; ++n < e.length;) if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
17750
17783
  for (r = n; r--;) if (e[r][0] === "exit" && e[r][1].type === "attentionSequence" && e[r][1]._open && t.sliceSerialize(e[r][1]).charCodeAt(0) === t.sliceSerialize(e[n][1]).charCodeAt(0)) {
17751
17784
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3)) continue;
17752
17785
  c = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
17753
17786
  let d = { ...e[r][1].end }, f = { ...e[n][1].start };
17754
- ZC(d, -c), ZC(f, c), o = {
17787
+ $C(d, -c), $C(f, c), o = {
17755
17788
  type: c > 1 ? "strongSequence" : "emphasisSequence",
17756
17789
  start: d,
17757
17790
  end: { ...e[r][1].end }
@@ -17767,7 +17800,7 @@ function YC(e, t) {
17767
17800
  type: c > 1 ? "strong" : "emphasis",
17768
17801
  start: { ...o.start },
17769
17802
  end: { ...s.end }
17770
- }, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = SC(l, [[
17803
+ }, e[r][1].end = { ...o.start }, e[n][1].start = { ...s.end }, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = wC(l, [[
17771
17804
  "enter",
17772
17805
  e[r][1],
17773
17806
  t
@@ -17775,7 +17808,7 @@ function YC(e, t) {
17775
17808
  "exit",
17776
17809
  e[r][1],
17777
17810
  t
17778
- ]])), l = SC(l, [
17811
+ ]])), l = wC(l, [
17779
17812
  [
17780
17813
  "enter",
17781
17814
  i,
@@ -17796,7 +17829,7 @@ function YC(e, t) {
17796
17829
  a,
17797
17830
  t
17798
17831
  ]
17799
- ]), l = SC(l, qC(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = SC(l, [
17832
+ ]), l = wC(l, YC(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = wC(l, [
17800
17833
  [
17801
17834
  "exit",
17802
17835
  a,
@@ -17817,7 +17850,7 @@ function YC(e, t) {
17817
17850
  i,
17818
17851
  t
17819
17852
  ]
17820
- ]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l = SC(l, [[
17853
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (u = 2, l = wC(l, [[
17821
17854
  "enter",
17822
17855
  e[n][1],
17823
17856
  t
@@ -17825,63 +17858,63 @@ function YC(e, t) {
17825
17858
  "exit",
17826
17859
  e[n][1],
17827
17860
  t
17828
- ]])) : u = 0, xC(e, r - 1, n - r + 3, l), n = r + l.length - u - 2;
17861
+ ]])) : u = 0, CC(e, r - 1, n - r + 3, l), n = r + l.length - u - 2;
17829
17862
  break;
17830
17863
  }
17831
17864
  }
17832
17865
  for (n = -1; ++n < e.length;) e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
17833
17866
  return e;
17834
17867
  }
17835
- function XC(e, t) {
17836
- let n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = KC(r), a;
17868
+ function QC(e, t) {
17869
+ let n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = JC(r), a;
17837
17870
  return o;
17838
17871
  function o(t) {
17839
17872
  return a = t, e.enter("attentionSequence"), s(t);
17840
17873
  }
17841
17874
  function s(o) {
17842
17875
  if (o === a) return e.consume(o), s;
17843
- let c = e.exit("attentionSequence"), l = KC(o), u = !l || l === 2 && i || n.includes(o), d = !i || i === 2 && l || n.includes(r);
17876
+ let c = e.exit("attentionSequence"), l = JC(o), u = !l || l === 2 && i || n.includes(o), d = !i || i === 2 && l || n.includes(r);
17844
17877
  return c._open = !!(a === 42 ? u : u && (i || !d)), c._close = !!(a === 42 ? d : d && (l || !u)), t(o);
17845
17878
  }
17846
17879
  }
17847
- function ZC(e, t) {
17880
+ function $C(e, t) {
17848
17881
  e.column += t, e.offset += t, e._bufferIndex += t;
17849
17882
  }
17850
17883
  //#endregion
17851
17884
  //#region node_modules/micromark-core-commonmark/lib/autolink.js
17852
- var QC = {
17885
+ var ew = {
17853
17886
  name: "autolink",
17854
- tokenize: $C
17887
+ tokenize: tw
17855
17888
  };
17856
- function $C(e, t, n) {
17889
+ function tw(e, t, n) {
17857
17890
  let r = 0;
17858
17891
  return i;
17859
17892
  function i(t) {
17860
17893
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(t), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
17861
17894
  }
17862
17895
  function a(t) {
17863
- return kC(t) ? (e.consume(t), o) : t === 64 ? n(t) : l(t);
17896
+ return jC(t) ? (e.consume(t), o) : t === 64 ? n(t) : l(t);
17864
17897
  }
17865
17898
  function o(e) {
17866
- return e === 43 || e === 45 || e === 46 || AC(e) ? (r = 1, s(e)) : l(e);
17899
+ return e === 43 || e === 45 || e === 46 || MC(e) ? (r = 1, s(e)) : l(e);
17867
17900
  }
17868
17901
  function s(t) {
17869
- return t === 58 ? (e.consume(t), r = 0, c) : (t === 43 || t === 45 || t === 46 || AC(t)) && r++ < 32 ? (e.consume(t), s) : (r = 0, l(t));
17902
+ return t === 58 ? (e.consume(t), r = 0, c) : (t === 43 || t === 45 || t === 46 || MC(t)) && r++ < 32 ? (e.consume(t), s) : (r = 0, l(t));
17870
17903
  }
17871
17904
  function c(r) {
17872
- return r === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(r), e.exit("autolinkMarker"), e.exit("autolink"), t) : r === null || r === 32 || r === 60 || MC(r) ? n(r) : (e.consume(r), c);
17905
+ return r === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(r), e.exit("autolinkMarker"), e.exit("autolink"), t) : r === null || r === 32 || r === 60 || PC(r) ? n(r) : (e.consume(r), c);
17873
17906
  }
17874
17907
  function l(t) {
17875
- return t === 64 ? (e.consume(t), u) : jC(t) ? (e.consume(t), l) : n(t);
17908
+ return t === 64 ? (e.consume(t), u) : NC(t) ? (e.consume(t), l) : n(t);
17876
17909
  }
17877
17910
  function u(e) {
17878
- return AC(e) ? d(e) : n(e);
17911
+ return MC(e) ? d(e) : n(e);
17879
17912
  }
17880
17913
  function d(n) {
17881
17914
  return n === 46 ? (e.consume(n), r = 0, u) : n === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(n), e.exit("autolinkMarker"), e.exit("autolink"), t) : f(n);
17882
17915
  }
17883
17916
  function f(t) {
17884
- if ((t === 45 || AC(t)) && r++ < 63) {
17917
+ if ((t === 45 || MC(t)) && r++ < 63) {
17885
17918
  let n = t === 45 ? f : d;
17886
17919
  return e.consume(t), n;
17887
17920
  }
@@ -17890,11 +17923,11 @@ function $C(e, t, n) {
17890
17923
  }
17891
17924
  //#endregion
17892
17925
  //#region node_modules/micromark-core-commonmark/lib/blank-line.js
17893
- var ew = {
17926
+ var nw = {
17894
17927
  partial: !0,
17895
- tokenize: tw
17928
+ tokenize: rw
17896
17929
  };
17897
- function tw(e, t, n) {
17930
+ function rw(e, t, n) {
17898
17931
  return r;
17899
17932
  function r(t) {
17900
17933
  return Q(t) ? $(e, i, "linePrefix")(t) : i(t);
@@ -17905,13 +17938,13 @@ function tw(e, t, n) {
17905
17938
  }
17906
17939
  //#endregion
17907
17940
  //#region node_modules/micromark-core-commonmark/lib/block-quote.js
17908
- var nw = {
17909
- continuation: { tokenize: iw },
17910
- exit: aw,
17941
+ var iw = {
17942
+ continuation: { tokenize: ow },
17943
+ exit: sw,
17911
17944
  name: "blockQuote",
17912
- tokenize: rw
17945
+ tokenize: aw
17913
17946
  };
17914
- function rw(e, t, n) {
17947
+ function aw(e, t, n) {
17915
17948
  let r = this;
17916
17949
  return i;
17917
17950
  function i(t) {
@@ -17925,71 +17958,71 @@ function rw(e, t, n) {
17925
17958
  return Q(n) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(n), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(n));
17926
17959
  }
17927
17960
  }
17928
- function iw(e, t, n) {
17961
+ function ow(e, t, n) {
17929
17962
  let r = this;
17930
17963
  return i;
17931
17964
  function i(t) {
17932
17965
  return Q(t) ? $(e, a, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t) : a(t);
17933
17966
  }
17934
17967
  function a(r) {
17935
- return e.attempt(nw, t, n)(r);
17968
+ return e.attempt(iw, t, n)(r);
17936
17969
  }
17937
17970
  }
17938
- function aw(e) {
17971
+ function sw(e) {
17939
17972
  e.exit("blockQuote");
17940
17973
  }
17941
17974
  //#endregion
17942
17975
  //#region node_modules/micromark-core-commonmark/lib/character-escape.js
17943
- var ow = {
17976
+ var cw = {
17944
17977
  name: "characterEscape",
17945
- tokenize: sw
17978
+ tokenize: lw
17946
17979
  };
17947
- function sw(e, t, n) {
17980
+ function lw(e, t, n) {
17948
17981
  return r;
17949
17982
  function r(t) {
17950
17983
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(t), e.exit("escapeMarker"), i;
17951
17984
  }
17952
17985
  function i(r) {
17953
- return FC(r) ? (e.enter("characterEscapeValue"), e.consume(r), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(r);
17986
+ return LC(r) ? (e.enter("characterEscapeValue"), e.consume(r), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(r);
17954
17987
  }
17955
17988
  }
17956
17989
  //#endregion
17957
17990
  //#region node_modules/micromark-core-commonmark/lib/character-reference.js
17958
- var cw = {
17991
+ var uw = {
17959
17992
  name: "characterReference",
17960
- tokenize: lw
17993
+ tokenize: dw
17961
17994
  };
17962
- function lw(e, t, n) {
17995
+ function dw(e, t, n) {
17963
17996
  let r = this, i = 0, a, o;
17964
17997
  return s;
17965
17998
  function s(t) {
17966
17999
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(t), e.exit("characterReferenceMarker"), c;
17967
18000
  }
17968
18001
  function c(t) {
17969
- return t === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(t), e.exit("characterReferenceMarkerNumeric"), l) : (e.enter("characterReferenceValue"), a = 31, o = AC, u(t));
18002
+ return t === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(t), e.exit("characterReferenceMarkerNumeric"), l) : (e.enter("characterReferenceValue"), a = 31, o = MC, u(t));
17970
18003
  }
17971
18004
  function l(t) {
17972
- return t === 88 || t === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(t), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = PC, u) : (e.enter("characterReferenceValue"), a = 7, o = NC, u(t));
18005
+ return t === 88 || t === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(t), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = IC, u) : (e.enter("characterReferenceValue"), a = 7, o = FC, u(t));
17973
18006
  }
17974
18007
  function u(s) {
17975
18008
  if (s === 59 && i) {
17976
18009
  let i = e.exit("characterReferenceValue");
17977
- return o === AC && !bC(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
18010
+ return o === MC && !SC(r.sliceSerialize(i)) ? n(s) : (e.enter("characterReferenceMarker"), e.consume(s), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
17978
18011
  }
17979
18012
  return o(s) && i++ < a ? (e.consume(s), u) : n(s);
17980
18013
  }
17981
18014
  }
17982
18015
  //#endregion
17983
18016
  //#region node_modules/micromark-core-commonmark/lib/code-fenced.js
17984
- var uw = {
18017
+ var fw = {
17985
18018
  partial: !0,
17986
- tokenize: pw
17987
- }, dw = {
18019
+ tokenize: hw
18020
+ }, pw = {
17988
18021
  concrete: !0,
17989
18022
  name: "codeFenced",
17990
- tokenize: fw
18023
+ tokenize: mw
17991
18024
  };
17992
- function fw(e, t, n) {
18025
+ function mw(e, t, n) {
17993
18026
  let r = this, i = {
17994
18027
  partial: !0,
17995
18028
  tokenize: x
@@ -18006,7 +18039,7 @@ function fw(e, t, n) {
18006
18039
  return t === s ? (o++, e.consume(t), u) : o < 3 ? n(t) : (e.exit("codeFencedFenceSequence"), Q(t) ? $(e, d, "whitespace")(t) : d(t));
18007
18040
  }
18008
18041
  function d(n) {
18009
- return n === null || Z(n) ? (e.exit("codeFencedFence"), r.interrupt ? t(n) : e.check(uw, h, b)(n)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), f(n));
18042
+ return n === null || Z(n) ? (e.exit("codeFencedFence"), r.interrupt ? t(n) : e.check(fw, h, b)(n)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", { contentType: "string" }), f(n));
18010
18043
  }
18011
18044
  function f(t) {
18012
18045
  return t === null || Z(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(t)) : Q(t) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), $(e, p, "whitespace")(t)) : t === 96 && t === s ? n(t) : (e.consume(t), f);
@@ -18027,7 +18060,7 @@ function fw(e, t, n) {
18027
18060
  return a > 0 && Q(t) ? $(e, v, "linePrefix", a + 1)(t) : v(t);
18028
18061
  }
18029
18062
  function v(t) {
18030
- return t === null || Z(t) ? e.check(uw, h, b)(t) : (e.enter("codeFlowValue"), y(t));
18063
+ return t === null || Z(t) ? e.check(fw, h, b)(t) : (e.enter("codeFlowValue"), y(t));
18031
18064
  }
18032
18065
  function y(t) {
18033
18066
  return t === null || Z(t) ? (e.exit("codeFlowValue"), v(t)) : (e.consume(t), y);
@@ -18055,7 +18088,7 @@ function fw(e, t, n) {
18055
18088
  }
18056
18089
  }
18057
18090
  }
18058
- function pw(e, t, n) {
18091
+ function hw(e, t, n) {
18059
18092
  let r = this;
18060
18093
  return i;
18061
18094
  function i(t) {
@@ -18067,14 +18100,14 @@ function pw(e, t, n) {
18067
18100
  }
18068
18101
  //#endregion
18069
18102
  //#region node_modules/micromark-core-commonmark/lib/code-indented.js
18070
- var mw = {
18103
+ var gw = {
18071
18104
  name: "codeIndented",
18072
- tokenize: gw
18073
- }, hw = {
18105
+ tokenize: vw
18106
+ }, _w = {
18074
18107
  partial: !0,
18075
- tokenize: _w
18108
+ tokenize: yw
18076
18109
  };
18077
- function gw(e, t, n) {
18110
+ function vw(e, t, n) {
18078
18111
  let r = this;
18079
18112
  return i;
18080
18113
  function i(t) {
@@ -18085,7 +18118,7 @@ function gw(e, t, n) {
18085
18118
  return t && t[1].type === "linePrefix" && t[2].sliceSerialize(t[1], !0).length >= 4 ? o(e) : n(e);
18086
18119
  }
18087
18120
  function o(t) {
18088
- return t === null ? c(t) : Z(t) ? e.attempt(hw, o, c)(t) : (e.enter("codeFlowValue"), s(t));
18121
+ return t === null ? c(t) : Z(t) ? e.attempt(_w, o, c)(t) : (e.enter("codeFlowValue"), s(t));
18089
18122
  }
18090
18123
  function s(t) {
18091
18124
  return t === null || Z(t) ? (e.exit("codeFlowValue"), o(t)) : (e.consume(t), s);
@@ -18094,7 +18127,7 @@ function gw(e, t, n) {
18094
18127
  return e.exit("codeIndented"), t(n);
18095
18128
  }
18096
18129
  }
18097
- function _w(e, t, n) {
18130
+ function yw(e, t, n) {
18098
18131
  let r = this;
18099
18132
  return i;
18100
18133
  function i(t) {
@@ -18107,13 +18140,13 @@ function _w(e, t, n) {
18107
18140
  }
18108
18141
  //#endregion
18109
18142
  //#region node_modules/micromark-core-commonmark/lib/code-text.js
18110
- var vw = {
18143
+ var bw = {
18111
18144
  name: "codeText",
18112
- previous: bw,
18113
- resolve: yw,
18114
- tokenize: xw
18145
+ previous: Sw,
18146
+ resolve: xw,
18147
+ tokenize: Cw
18115
18148
  };
18116
- function yw(e) {
18149
+ function xw(e) {
18117
18150
  let t = e.length - 4, n = 3, r, i;
18118
18151
  if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
18119
18152
  for (r = n; ++r < t;) if (e[r][1].type === "codeTextData") {
@@ -18124,10 +18157,10 @@ function yw(e) {
18124
18157
  for (r = n - 1, t++; ++r <= t;) i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
18125
18158
  return e;
18126
18159
  }
18127
- function bw(e) {
18160
+ function Sw(e) {
18128
18161
  return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
18129
18162
  }
18130
- function xw(e, t, n) {
18163
+ function Cw(e, t, n) {
18131
18164
  let r = 0, i, a;
18132
18165
  return o;
18133
18166
  function o(t) {
@@ -18148,7 +18181,7 @@ function xw(e, t, n) {
18148
18181
  }
18149
18182
  //#endregion
18150
18183
  //#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
18151
- var Sw = class {
18184
+ var ww = class {
18152
18185
  constructor(e) {
18153
18186
  this.left = e ? [...e] : [], this.right = [];
18154
18187
  }
@@ -18170,7 +18203,7 @@ var Sw = class {
18170
18203
  let r = t || 0;
18171
18204
  this.setCursor(Math.trunc(e));
18172
18205
  let i = this.right.splice(this.right.length - r, Infinity);
18173
- return n && Cw(this.left, n), i.reverse();
18206
+ return n && Tw(this.left, n), i.reverse();
18174
18207
  }
18175
18208
  pop() {
18176
18209
  return this.setCursor(Infinity), this.left.pop();
@@ -18179,46 +18212,46 @@ var Sw = class {
18179
18212
  this.setCursor(Infinity), this.left.push(e);
18180
18213
  }
18181
18214
  pushMany(e) {
18182
- this.setCursor(Infinity), Cw(this.left, e);
18215
+ this.setCursor(Infinity), Tw(this.left, e);
18183
18216
  }
18184
18217
  unshift(e) {
18185
18218
  this.setCursor(0), this.right.push(e);
18186
18219
  }
18187
18220
  unshiftMany(e) {
18188
- this.setCursor(0), Cw(this.right, e.reverse());
18221
+ this.setCursor(0), Tw(this.right, e.reverse());
18189
18222
  }
18190
18223
  setCursor(e) {
18191
18224
  if (!(e === this.left.length || e > this.left.length && this.right.length === 0 || e < 0 && this.left.length === 0)) if (e < this.left.length) {
18192
18225
  let t = this.left.splice(e, Infinity);
18193
- Cw(this.right, t.reverse());
18226
+ Tw(this.right, t.reverse());
18194
18227
  } else {
18195
18228
  let t = this.right.splice(this.left.length + this.right.length - e, Infinity);
18196
- Cw(this.left, t.reverse());
18229
+ Tw(this.left, t.reverse());
18197
18230
  }
18198
18231
  }
18199
18232
  };
18200
- function Cw(e, t) {
18233
+ function Tw(e, t) {
18201
18234
  let n = 0;
18202
18235
  if (t.length < 1e4) e.push(...t);
18203
18236
  else for (; n < t.length;) e.push(...t.slice(n, n + 1e4)), n += 1e4;
18204
18237
  }
18205
18238
  //#endregion
18206
18239
  //#region node_modules/micromark-util-subtokenize/index.js
18207
- function ww(e) {
18208
- let t = {}, n = -1, r, i, a, o, s, c, l, u = new Sw(e);
18240
+ function Ew(e) {
18241
+ let t = {}, n = -1, r, i, a, o, s, c, l, u = new ww(e);
18209
18242
  for (; ++n < u.length;) {
18210
18243
  for (; n in t;) n = t[n];
18211
18244
  if (r = u.get(n), n && r[1].type === "chunkFlow" && u.get(n - 1)[1].type === "listItemPrefix" && (c = r[1]._tokenizer.events, a = 0, a < c.length && c[a][1].type === "lineEndingBlank" && (a += 2), a < c.length && c[a][1].type === "content")) for (; ++a < c.length && c[a][1].type !== "content";) c[a][1].type === "chunkText" && (c[a][1]._isInFirstContentOfListItem = !0, a++);
18212
- if (r[0] === "enter") r[1].contentType && (Object.assign(t, Tw(u, n)), n = t[n], l = !0);
18245
+ if (r[0] === "enter") r[1].contentType && (Object.assign(t, Dw(u, n)), n = t[n], l = !0);
18213
18246
  else if (r[1]._container) {
18214
18247
  for (a = n, i = void 0; a--;) if (o = u.get(a), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank") o[0] === "enter" && (i && (u.get(i)[1].type = "lineEndingBlank"), o[1].type = "lineEnding", i = a);
18215
18248
  else if (!(o[1].type === "linePrefix" || o[1].type === "listItemIndent")) break;
18216
18249
  i && (r[1].end = { ...u.get(i)[1].start }, s = u.slice(i, n), s.unshift(r), u.splice(i, n - i + 1, s));
18217
18250
  }
18218
18251
  }
18219
- return xC(e, 0, Infinity, u.slice(0)), !l;
18252
+ return CC(e, 0, Infinity, u.slice(0)), !l;
18220
18253
  }
18221
- function Tw(e, t) {
18254
+ function Dw(e, t) {
18222
18255
  let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
18223
18256
  o || (o = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
18224
18257
  let s = o.events, c = [], l = {}, u, d, f = -1, p = n, m = 0, h = 0, g = [h];
@@ -18236,24 +18269,24 @@ function Tw(e, t) {
18236
18269
  }
18237
18270
  //#endregion
18238
18271
  //#region node_modules/micromark-core-commonmark/lib/content.js
18239
- var Ew = {
18240
- resolve: Ow,
18241
- tokenize: kw
18242
- }, Dw = {
18272
+ var Ow = {
18273
+ resolve: Aw,
18274
+ tokenize: jw
18275
+ }, kw = {
18243
18276
  partial: !0,
18244
- tokenize: Aw
18277
+ tokenize: Mw
18245
18278
  };
18246
- function Ow(e) {
18247
- return ww(e), e;
18279
+ function Aw(e) {
18280
+ return Ew(e), e;
18248
18281
  }
18249
- function kw(e, t) {
18282
+ function jw(e, t) {
18250
18283
  let n;
18251
18284
  return r;
18252
18285
  function r(t) {
18253
18286
  return e.enter("content"), n = e.enter("chunkContent", { contentType: "content" }), i(t);
18254
18287
  }
18255
18288
  function i(t) {
18256
- return t === null ? a(t) : Z(t) ? e.check(Dw, o, a)(t) : (e.consume(t), i);
18289
+ return t === null ? a(t) : Z(t) ? e.check(kw, o, a)(t) : (e.consume(t), i);
18257
18290
  }
18258
18291
  function a(n) {
18259
18292
  return e.exit("chunkContent"), e.exit("content"), t(n);
@@ -18265,7 +18298,7 @@ function kw(e, t) {
18265
18298
  }), n = n.next, i;
18266
18299
  }
18267
18300
  }
18268
- function Aw(e, t, n) {
18301
+ function Mw(e, t, n) {
18269
18302
  let r = this;
18270
18303
  return i;
18271
18304
  function i(t) {
@@ -18279,11 +18312,11 @@ function Aw(e, t, n) {
18279
18312
  }
18280
18313
  //#endregion
18281
18314
  //#region node_modules/micromark-factory-destination/index.js
18282
- function jw(e, t, n, r, i, a, o, s, c) {
18315
+ function Nw(e, t, n, r, i, a, o, s, c) {
18283
18316
  let l = c || Infinity, u = 0;
18284
18317
  return d;
18285
18318
  function d(t) {
18286
- return t === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(t), e.exit(a), f) : t === null || t === 32 || t === 41 || MC(t) ? n(t) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", { contentType: "string" }), h(t));
18319
+ return t === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(t), e.exit(a), f) : t === null || t === 32 || t === 41 || PC(t) ? n(t) : (e.enter(r), e.enter(o), e.enter(s), e.enter("chunkString", { contentType: "string" }), h(t));
18287
18320
  }
18288
18321
  function f(n) {
18289
18322
  return n === 62 ? (e.enter(a), e.consume(n), e.exit(a), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", { contentType: "string" }), p(n));
@@ -18295,7 +18328,7 @@ function jw(e, t, n, r, i, a, o, s, c) {
18295
18328
  return t === 60 || t === 62 || t === 92 ? (e.consume(t), p) : p(t);
18296
18329
  }
18297
18330
  function h(i) {
18298
- return !u && (i === null || i === 41 || IC(i)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(i)) : u < l && i === 40 ? (e.consume(i), u++, h) : i === 41 ? (e.consume(i), u--, h) : i === null || i === 32 || i === 40 || MC(i) ? n(i) : (e.consume(i), i === 92 ? g : h);
18331
+ return !u && (i === null || i === 41 || RC(i)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(i)) : u < l && i === 40 ? (e.consume(i), u++, h) : i === 41 ? (e.consume(i), u--, h) : i === null || i === 32 || i === 40 || PC(i) ? n(i) : (e.consume(i), i === 92 ? g : h);
18299
18332
  }
18300
18333
  function g(t) {
18301
18334
  return t === 40 || t === 41 || t === 92 ? (e.consume(t), h) : h(t);
@@ -18303,7 +18336,7 @@ function jw(e, t, n, r, i, a, o, s, c) {
18303
18336
  }
18304
18337
  //#endregion
18305
18338
  //#region node_modules/micromark-factory-label/index.js
18306
- function Mw(e, t, n, r, i, a) {
18339
+ function Pw(e, t, n, r, i, a) {
18307
18340
  let o = this, s = 0, c;
18308
18341
  return l;
18309
18342
  function l(t) {
@@ -18321,7 +18354,7 @@ function Mw(e, t, n, r, i, a) {
18321
18354
  }
18322
18355
  //#endregion
18323
18356
  //#region node_modules/micromark-factory-title/index.js
18324
- function Nw(e, t, n, r, i, a) {
18357
+ function Fw(e, t, n, r, i, a) {
18325
18358
  let o;
18326
18359
  return s;
18327
18360
  function s(t) {
@@ -18342,7 +18375,7 @@ function Nw(e, t, n, r, i, a) {
18342
18375
  }
18343
18376
  //#endregion
18344
18377
  //#region node_modules/micromark-factory-whitespace/index.js
18345
- function Pw(e, t) {
18378
+ function Iw(e, t) {
18346
18379
  let n;
18347
18380
  return r;
18348
18381
  function r(i) {
@@ -18351,33 +18384,33 @@ function Pw(e, t) {
18351
18384
  }
18352
18385
  //#endregion
18353
18386
  //#region node_modules/micromark-core-commonmark/lib/definition.js
18354
- var Fw = {
18387
+ var Lw = {
18355
18388
  name: "definition",
18356
- tokenize: Lw
18357
- }, Iw = {
18389
+ tokenize: zw
18390
+ }, Rw = {
18358
18391
  partial: !0,
18359
- tokenize: Rw
18392
+ tokenize: Bw
18360
18393
  };
18361
- function Lw(e, t, n) {
18394
+ function zw(e, t, n) {
18362
18395
  let r = this, i;
18363
18396
  return a;
18364
18397
  function a(t) {
18365
18398
  return e.enter("definition"), o(t);
18366
18399
  }
18367
18400
  function o(t) {
18368
- return Mw.call(r, e, s, n, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(t);
18401
+ return Pw.call(r, e, s, n, "definitionLabel", "definitionLabelMarker", "definitionLabelString")(t);
18369
18402
  }
18370
18403
  function s(t) {
18371
- return i = OC(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), c) : n(t);
18404
+ return i = AC(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), t === 58 ? (e.enter("definitionMarker"), e.consume(t), e.exit("definitionMarker"), c) : n(t);
18372
18405
  }
18373
18406
  function c(t) {
18374
- return IC(t) ? Pw(e, l)(t) : l(t);
18407
+ return RC(t) ? Iw(e, l)(t) : l(t);
18375
18408
  }
18376
18409
  function l(t) {
18377
- return jw(e, u, n, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(t);
18410
+ return Nw(e, u, n, "definitionDestination", "definitionDestinationLiteral", "definitionDestinationLiteralMarker", "definitionDestinationRaw", "definitionDestinationString")(t);
18378
18411
  }
18379
18412
  function u(t) {
18380
- return e.attempt(Iw, d, d)(t);
18413
+ return e.attempt(Rw, d, d)(t);
18381
18414
  }
18382
18415
  function d(t) {
18383
18416
  return Q(t) ? $(e, f, "whitespace")(t) : f(t);
@@ -18386,13 +18419,13 @@ function Lw(e, t, n) {
18386
18419
  return a === null || Z(a) ? (e.exit("definition"), r.parser.defined.push(i), t(a)) : n(a);
18387
18420
  }
18388
18421
  }
18389
- function Rw(e, t, n) {
18422
+ function Bw(e, t, n) {
18390
18423
  return r;
18391
18424
  function r(t) {
18392
- return IC(t) ? Pw(e, i)(t) : n(t);
18425
+ return RC(t) ? Iw(e, i)(t) : n(t);
18393
18426
  }
18394
18427
  function i(t) {
18395
- return Nw(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(t);
18428
+ return Fw(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(t);
18396
18429
  }
18397
18430
  function a(t) {
18398
18431
  return Q(t) ? $(e, o, "whitespace")(t) : o(t);
@@ -18403,11 +18436,11 @@ function Rw(e, t, n) {
18403
18436
  }
18404
18437
  //#endregion
18405
18438
  //#region node_modules/micromark-core-commonmark/lib/hard-break-escape.js
18406
- var zw = {
18439
+ var Vw = {
18407
18440
  name: "hardBreakEscape",
18408
- tokenize: Bw
18441
+ tokenize: Hw
18409
18442
  };
18410
- function Bw(e, t, n) {
18443
+ function Hw(e, t, n) {
18411
18444
  return r;
18412
18445
  function r(t) {
18413
18446
  return e.enter("hardBreakEscape"), e.consume(t), i;
@@ -18418,12 +18451,12 @@ function Bw(e, t, n) {
18418
18451
  }
18419
18452
  //#endregion
18420
18453
  //#region node_modules/micromark-core-commonmark/lib/heading-atx.js
18421
- var Vw = {
18454
+ var Uw = {
18422
18455
  name: "headingAtx",
18423
- resolve: Hw,
18424
- tokenize: Uw
18456
+ resolve: Ww,
18457
+ tokenize: Gw
18425
18458
  };
18426
- function Hw(e, t) {
18459
+ function Ww(e, t) {
18427
18460
  let n = e.length - 2, r = 3, i, a;
18428
18461
  return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
18429
18462
  type: "atxHeadingText",
@@ -18434,7 +18467,7 @@ function Hw(e, t) {
18434
18467
  start: e[r][1].start,
18435
18468
  end: e[n][1].end,
18436
18469
  contentType: "text"
18437
- }, xC(e, r, n - r + 1, [
18470
+ }, CC(e, r, n - r + 1, [
18438
18471
  [
18439
18472
  "enter",
18440
18473
  i,
@@ -18457,7 +18490,7 @@ function Hw(e, t) {
18457
18490
  ]
18458
18491
  ])), e;
18459
18492
  }
18460
- function Uw(e, t, n) {
18493
+ function Gw(e, t, n) {
18461
18494
  let r = 0;
18462
18495
  return i;
18463
18496
  function i(t) {
@@ -18467,7 +18500,7 @@ function Uw(e, t, n) {
18467
18500
  return e.enter("atxHeadingSequence"), o(t);
18468
18501
  }
18469
18502
  function o(t) {
18470
- return t === 35 && r++ < 6 ? (e.consume(t), o) : t === null || IC(t) ? (e.exit("atxHeadingSequence"), s(t)) : n(t);
18503
+ return t === 35 && r++ < 6 ? (e.consume(t), o) : t === null || RC(t) ? (e.exit("atxHeadingSequence"), s(t)) : n(t);
18471
18504
  }
18472
18505
  function s(n) {
18473
18506
  return n === 35 ? (e.enter("atxHeadingSequence"), c(n)) : n === null || Z(n) ? (e.exit("atxHeading"), t(n)) : Q(n) ? $(e, s, "whitespace")(n) : (e.enter("atxHeadingText"), l(n));
@@ -18476,34 +18509,34 @@ function Uw(e, t, n) {
18476
18509
  return t === 35 ? (e.consume(t), c) : (e.exit("atxHeadingSequence"), s(t));
18477
18510
  }
18478
18511
  function l(t) {
18479
- return t === null || t === 35 || IC(t) ? (e.exit("atxHeadingText"), s(t)) : (e.consume(t), l);
18512
+ return t === null || t === 35 || RC(t) ? (e.exit("atxHeadingText"), s(t)) : (e.consume(t), l);
18480
18513
  }
18481
18514
  }
18482
18515
  //#endregion
18483
18516
  //#region node_modules/micromark-util-html-tag-name/index.js
18484
- var Ww = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), Gw = [
18517
+ var Kw = /* @__PURE__ */ "address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."), qw = [
18485
18518
  "pre",
18486
18519
  "script",
18487
18520
  "style",
18488
18521
  "textarea"
18489
- ], Kw = {
18522
+ ], Jw = {
18490
18523
  concrete: !0,
18491
18524
  name: "htmlFlow",
18492
- resolveTo: Yw,
18493
- tokenize: Xw
18494
- }, qw = {
18495
- partial: !0,
18525
+ resolveTo: Zw,
18496
18526
  tokenize: Qw
18497
- }, Jw = {
18527
+ }, Yw = {
18528
+ partial: !0,
18529
+ tokenize: eT
18530
+ }, Xw = {
18498
18531
  partial: !0,
18499
- tokenize: Zw
18532
+ tokenize: $w
18500
18533
  };
18501
- function Yw(e) {
18534
+ function Zw(e) {
18502
18535
  let t = e.length;
18503
18536
  for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"););
18504
18537
  return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
18505
18538
  }
18506
- function Xw(e, t, n) {
18539
+ function Qw(e, t, n) {
18507
18540
  let r = this, i, a, o, s, c;
18508
18541
  return l;
18509
18542
  function l(e) {
@@ -18513,10 +18546,10 @@ function Xw(e, t, n) {
18513
18546
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(t), d;
18514
18547
  }
18515
18548
  function d(s) {
18516
- return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : se) : kC(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
18549
+ return s === 33 ? (e.consume(s), f) : s === 47 ? (e.consume(s), a = !0, h) : s === 63 ? (e.consume(s), i = 3, r.interrupt ? t : se) : jC(s) ? (e.consume(s), o = String.fromCharCode(s), g) : n(s);
18517
18550
  }
18518
18551
  function f(a) {
18519
- return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : kC(a) ? (e.consume(a), i = 4, r.interrupt ? t : se) : n(a);
18552
+ return a === 45 ? (e.consume(a), i = 2, p) : a === 91 ? (e.consume(a), i = 5, s = 0, m) : jC(a) ? (e.consume(a), i = 4, r.interrupt ? t : se) : n(a);
18520
18553
  }
18521
18554
  function p(i) {
18522
18555
  return i === 45 ? (e.consume(i), r.interrupt ? t : se) : n(i);
@@ -18525,14 +18558,14 @@ function Xw(e, t, n) {
18525
18558
  return i === "CDATA[".charCodeAt(s++) ? (e.consume(i), s === 6 ? r.interrupt ? t : E : m) : n(i);
18526
18559
  }
18527
18560
  function h(t) {
18528
- return kC(t) ? (e.consume(t), o = String.fromCharCode(t), g) : n(t);
18561
+ return jC(t) ? (e.consume(t), o = String.fromCharCode(t), g) : n(t);
18529
18562
  }
18530
18563
  function g(s) {
18531
- if (s === null || s === 47 || s === 62 || IC(s)) {
18564
+ if (s === null || s === 47 || s === 62 || RC(s)) {
18532
18565
  let c = s === 47, l = o.toLowerCase();
18533
- return !c && !a && Gw.includes(l) ? (i = 1, r.interrupt ? t(s) : E(s)) : Ww.includes(o.toLowerCase()) ? (i = 6, c ? (e.consume(s), _) : r.interrupt ? t(s) : E(s)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(s) : a ? v(s) : y(s));
18566
+ return !c && !a && qw.includes(l) ? (i = 1, r.interrupt ? t(s) : E(s)) : Kw.includes(o.toLowerCase()) ? (i = 6, c ? (e.consume(s), _) : r.interrupt ? t(s) : E(s)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(s) : a ? v(s) : y(s));
18534
18567
  }
18535
- return s === 45 || AC(s) ? (e.consume(s), o += String.fromCharCode(s), g) : n(s);
18568
+ return s === 45 || MC(s) ? (e.consume(s), o += String.fromCharCode(s), g) : n(s);
18536
18569
  }
18537
18570
  function _(i) {
18538
18571
  return i === 62 ? (e.consume(i), r.interrupt ? t : E) : n(i);
@@ -18541,10 +18574,10 @@ function Xw(e, t, n) {
18541
18574
  return Q(t) ? (e.consume(t), v) : T(t);
18542
18575
  }
18543
18576
  function y(t) {
18544
- return t === 47 ? (e.consume(t), T) : t === 58 || t === 95 || kC(t) ? (e.consume(t), b) : Q(t) ? (e.consume(t), y) : T(t);
18577
+ return t === 47 ? (e.consume(t), T) : t === 58 || t === 95 || jC(t) ? (e.consume(t), b) : Q(t) ? (e.consume(t), y) : T(t);
18545
18578
  }
18546
18579
  function b(t) {
18547
- return t === 45 || t === 46 || t === 58 || t === 95 || AC(t) ? (e.consume(t), b) : x(t);
18580
+ return t === 45 || t === 46 || t === 58 || t === 95 || MC(t) ? (e.consume(t), b) : x(t);
18548
18581
  }
18549
18582
  function x(t) {
18550
18583
  return t === 61 ? (e.consume(t), S) : Q(t) ? (e.consume(t), x) : y(t);
@@ -18556,7 +18589,7 @@ function Xw(e, t, n) {
18556
18589
  return t === c ? (e.consume(t), c = null, w) : t === null || Z(t) ? n(t) : (e.consume(t), ee);
18557
18590
  }
18558
18591
  function C(t) {
18559
- return t === null || t === 34 || t === 39 || t === 47 || t === 60 || t === 61 || t === 62 || t === 96 || IC(t) ? x(t) : (e.consume(t), C);
18592
+ return t === null || t === 34 || t === 39 || t === 47 || t === 60 || t === 61 || t === 62 || t === 96 || RC(t) ? x(t) : (e.consume(t), C);
18560
18593
  }
18561
18594
  function w(e) {
18562
18595
  return e === 47 || e === 62 || Q(e) ? y(e) : n(e);
@@ -18568,10 +18601,10 @@ function Xw(e, t, n) {
18568
18601
  return t === null || Z(t) ? E(t) : Q(t) ? (e.consume(t), te) : n(t);
18569
18602
  }
18570
18603
  function E(t) {
18571
- return t === 45 && i === 2 ? (e.consume(t), O) : t === 60 && i === 1 ? (e.consume(t), ie) : t === 62 && i === 4 ? (e.consume(t), ce) : t === 63 && i === 3 ? (e.consume(t), se) : t === 93 && i === 5 ? (e.consume(t), oe) : Z(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(qw, le, ne)(t)) : t === null || Z(t) ? (e.exit("htmlFlowData"), ne(t)) : (e.consume(t), E);
18604
+ return t === 45 && i === 2 ? (e.consume(t), O) : t === 60 && i === 1 ? (e.consume(t), ie) : t === 62 && i === 4 ? (e.consume(t), ce) : t === 63 && i === 3 ? (e.consume(t), se) : t === 93 && i === 5 ? (e.consume(t), oe) : Z(t) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Yw, le, ne)(t)) : t === null || Z(t) ? (e.exit("htmlFlowData"), ne(t)) : (e.consume(t), E);
18572
18605
  }
18573
18606
  function ne(t) {
18574
- return e.check(Jw, re, le)(t);
18607
+ return e.check(Xw, re, le)(t);
18575
18608
  }
18576
18609
  function re(t) {
18577
18610
  return e.enter("lineEnding"), e.consume(t), e.exit("lineEnding"), D;
@@ -18588,9 +18621,9 @@ function Xw(e, t, n) {
18588
18621
  function ae(t) {
18589
18622
  if (t === 62) {
18590
18623
  let n = o.toLowerCase();
18591
- return Gw.includes(n) ? (e.consume(t), ce) : E(t);
18624
+ return qw.includes(n) ? (e.consume(t), ce) : E(t);
18592
18625
  }
18593
- return kC(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), ae) : E(t);
18626
+ return jC(t) && o.length < 8 ? (e.consume(t), o += String.fromCharCode(t), ae) : E(t);
18594
18627
  }
18595
18628
  function oe(t) {
18596
18629
  return t === 93 ? (e.consume(t), se) : E(t);
@@ -18605,7 +18638,7 @@ function Xw(e, t, n) {
18605
18638
  return e.exit("htmlFlow"), t(n);
18606
18639
  }
18607
18640
  }
18608
- function Zw(e, t, n) {
18641
+ function $w(e, t, n) {
18609
18642
  let r = this;
18610
18643
  return i;
18611
18644
  function i(t) {
@@ -18615,29 +18648,29 @@ function Zw(e, t, n) {
18615
18648
  return r.parser.lazy[r.now().line] ? n(e) : t(e);
18616
18649
  }
18617
18650
  }
18618
- function Qw(e, t, n) {
18651
+ function eT(e, t, n) {
18619
18652
  return r;
18620
18653
  function r(r) {
18621
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), e.attempt(ew, t, n);
18654
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), e.attempt(nw, t, n);
18622
18655
  }
18623
18656
  }
18624
18657
  //#endregion
18625
18658
  //#region node_modules/micromark-core-commonmark/lib/html-text.js
18626
- var $w = {
18659
+ var tT = {
18627
18660
  name: "htmlText",
18628
- tokenize: eT
18661
+ tokenize: nT
18629
18662
  };
18630
- function eT(e, t, n) {
18663
+ function nT(e, t, n) {
18631
18664
  let r = this, i, a, o;
18632
18665
  return s;
18633
18666
  function s(t) {
18634
18667
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(t), c;
18635
18668
  }
18636
18669
  function c(t) {
18637
- return t === 33 ? (e.consume(t), l) : t === 47 ? (e.consume(t), x) : t === 63 ? (e.consume(t), y) : kC(t) ? (e.consume(t), C) : n(t);
18670
+ return t === 33 ? (e.consume(t), l) : t === 47 ? (e.consume(t), x) : t === 63 ? (e.consume(t), y) : jC(t) ? (e.consume(t), C) : n(t);
18638
18671
  }
18639
18672
  function l(t) {
18640
- return t === 45 ? (e.consume(t), u) : t === 91 ? (e.consume(t), a = 0, m) : kC(t) ? (e.consume(t), v) : n(t);
18673
+ return t === 45 ? (e.consume(t), u) : t === 91 ? (e.consume(t), a = 0, m) : jC(t) ? (e.consume(t), v) : n(t);
18641
18674
  }
18642
18675
  function u(t) {
18643
18676
  return t === 45 ? (e.consume(t), p) : n(t);
@@ -18673,22 +18706,22 @@ function eT(e, t, n) {
18673
18706
  return e === 62 ? O(e) : y(e);
18674
18707
  }
18675
18708
  function x(t) {
18676
- return kC(t) ? (e.consume(t), S) : n(t);
18709
+ return jC(t) ? (e.consume(t), S) : n(t);
18677
18710
  }
18678
18711
  function S(t) {
18679
- return t === 45 || AC(t) ? (e.consume(t), S) : ee(t);
18712
+ return t === 45 || MC(t) ? (e.consume(t), S) : ee(t);
18680
18713
  }
18681
18714
  function ee(t) {
18682
18715
  return Z(t) ? (o = ee, ie(t)) : Q(t) ? (e.consume(t), ee) : O(t);
18683
18716
  }
18684
18717
  function C(t) {
18685
- return t === 45 || AC(t) ? (e.consume(t), C) : t === 47 || t === 62 || IC(t) ? w(t) : n(t);
18718
+ return t === 45 || MC(t) ? (e.consume(t), C) : t === 47 || t === 62 || RC(t) ? w(t) : n(t);
18686
18719
  }
18687
18720
  function w(t) {
18688
- return t === 47 ? (e.consume(t), O) : t === 58 || t === 95 || kC(t) ? (e.consume(t), T) : Z(t) ? (o = w, ie(t)) : Q(t) ? (e.consume(t), w) : O(t);
18721
+ return t === 47 ? (e.consume(t), O) : t === 58 || t === 95 || jC(t) ? (e.consume(t), T) : Z(t) ? (o = w, ie(t)) : Q(t) ? (e.consume(t), w) : O(t);
18689
18722
  }
18690
18723
  function T(t) {
18691
- return t === 45 || t === 46 || t === 58 || t === 95 || AC(t) ? (e.consume(t), T) : te(t);
18724
+ return t === 45 || t === 46 || t === 58 || t === 95 || MC(t) ? (e.consume(t), T) : te(t);
18692
18725
  }
18693
18726
  function te(t) {
18694
18727
  return t === 61 ? (e.consume(t), E) : Z(t) ? (o = te, ie(t)) : Q(t) ? (e.consume(t), te) : w(t);
@@ -18700,10 +18733,10 @@ function eT(e, t, n) {
18700
18733
  return t === i ? (e.consume(t), i = void 0, D) : t === null ? n(t) : Z(t) ? (o = ne, ie(t)) : (e.consume(t), ne);
18701
18734
  }
18702
18735
  function re(t) {
18703
- return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || IC(t) ? w(t) : (e.consume(t), re);
18736
+ return t === null || t === 34 || t === 39 || t === 60 || t === 61 || t === 96 ? n(t) : t === 47 || t === 62 || RC(t) ? w(t) : (e.consume(t), re);
18704
18737
  }
18705
18738
  function D(e) {
18706
- return e === 47 || e === 62 || IC(e) ? w(e) : n(e);
18739
+ return e === 47 || e === 62 || RC(e) ? w(e) : n(e);
18707
18740
  }
18708
18741
  function O(r) {
18709
18742
  return r === 62 ? (e.consume(r), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(r);
@@ -18720,13 +18753,13 @@ function eT(e, t, n) {
18720
18753
  }
18721
18754
  //#endregion
18722
18755
  //#region node_modules/micromark-core-commonmark/lib/label-end.js
18723
- var tT = {
18756
+ var rT = {
18724
18757
  name: "labelEnd",
18725
- resolveAll: aT,
18726
- resolveTo: oT,
18727
- tokenize: sT
18728
- }, nT = { tokenize: cT }, rT = { tokenize: lT }, iT = { tokenize: uT };
18729
- function aT(e) {
18758
+ resolveAll: sT,
18759
+ resolveTo: cT,
18760
+ tokenize: lT
18761
+ }, iT = { tokenize: uT }, aT = { tokenize: dT }, oT = { tokenize: fT };
18762
+ function sT(e) {
18730
18763
  let t = -1, n = [];
18731
18764
  for (; ++t < e.length;) {
18732
18765
  let r = e[t][1];
@@ -18735,9 +18768,9 @@ function aT(e) {
18735
18768
  r.type = "data", t += e;
18736
18769
  }
18737
18770
  }
18738
- return e.length !== n.length && xC(e, 0, e.length, n), e;
18771
+ return e.length !== n.length && CC(e, 0, e.length, n), e;
18739
18772
  }
18740
- function oT(e, t) {
18773
+ function cT(e, t) {
18741
18774
  let n = e.length, r = 0, i, a, o, s;
18742
18775
  for (; n--;) if (i = e[n][1], a) {
18743
18776
  if (i.type === "link" || i.type === "labelLink" && i._inactive) break;
@@ -18769,11 +18802,11 @@ function oT(e, t) {
18769
18802
  "enter",
18770
18803
  l,
18771
18804
  t
18772
- ]], s = SC(s, e.slice(a + 1, a + r + 3)), s = SC(s, [[
18805
+ ]], s = wC(s, e.slice(a + 1, a + r + 3)), s = wC(s, [[
18773
18806
  "enter",
18774
18807
  u,
18775
18808
  t
18776
- ]]), s = SC(s, qC(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = SC(s, [
18809
+ ]]), s = wC(s, YC(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, o - 3), t)), s = wC(s, [
18777
18810
  [
18778
18811
  "exit",
18779
18812
  u,
@@ -18786,13 +18819,13 @@ function oT(e, t) {
18786
18819
  l,
18787
18820
  t
18788
18821
  ]
18789
- ]), s = SC(s, e.slice(o + 1)), s = SC(s, [[
18822
+ ]), s = wC(s, e.slice(o + 1)), s = wC(s, [[
18790
18823
  "exit",
18791
18824
  c,
18792
18825
  t
18793
- ]]), xC(e, a, e.length, s), e;
18826
+ ]]), CC(e, a, e.length, s), e;
18794
18827
  }
18795
- function sT(e, t, n) {
18828
+ function lT(e, t, n) {
18796
18829
  let r = this, i = r.events.length, a, o;
18797
18830
  for (; i--;) if ((r.events[i][1].type === "labelImage" || r.events[i][1].type === "labelLink") && !r.events[i][1]._balanced) {
18798
18831
  a = r.events[i][1];
@@ -18800,16 +18833,16 @@ function sT(e, t, n) {
18800
18833
  }
18801
18834
  return s;
18802
18835
  function s(t) {
18803
- return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(OC(r.sliceSerialize({
18836
+ return a ? a._inactive ? d(t) : (o = r.parser.defined.includes(AC(r.sliceSerialize({
18804
18837
  start: a.end,
18805
18838
  end: r.now()
18806
18839
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelEnd"), c) : n(t);
18807
18840
  }
18808
18841
  function c(t) {
18809
- return t === 40 ? e.attempt(nT, u, o ? u : d)(t) : t === 91 ? e.attempt(rT, u, o ? l : d)(t) : o ? u(t) : d(t);
18842
+ return t === 40 ? e.attempt(iT, u, o ? u : d)(t) : t === 91 ? e.attempt(aT, u, o ? l : d)(t) : o ? u(t) : d(t);
18810
18843
  }
18811
18844
  function l(t) {
18812
- return e.attempt(iT, u, d)(t);
18845
+ return e.attempt(oT, u, d)(t);
18813
18846
  }
18814
18847
  function u(e) {
18815
18848
  return t(e);
@@ -18818,47 +18851,47 @@ function sT(e, t, n) {
18818
18851
  return a._balanced = !0, n(e);
18819
18852
  }
18820
18853
  }
18821
- function cT(e, t, n) {
18854
+ function uT(e, t, n) {
18822
18855
  return r;
18823
18856
  function r(t) {
18824
18857
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(t), e.exit("resourceMarker"), i;
18825
18858
  }
18826
18859
  function i(t) {
18827
- return IC(t) ? Pw(e, a)(t) : a(t);
18860
+ return RC(t) ? Iw(e, a)(t) : a(t);
18828
18861
  }
18829
18862
  function a(t) {
18830
- return t === 41 ? u(t) : jw(e, o, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(t);
18863
+ return t === 41 ? u(t) : Nw(e, o, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(t);
18831
18864
  }
18832
18865
  function o(t) {
18833
- return IC(t) ? Pw(e, c)(t) : u(t);
18866
+ return RC(t) ? Iw(e, c)(t) : u(t);
18834
18867
  }
18835
18868
  function s(e) {
18836
18869
  return n(e);
18837
18870
  }
18838
18871
  function c(t) {
18839
- return t === 34 || t === 39 || t === 40 ? Nw(e, l, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(t) : u(t);
18872
+ return t === 34 || t === 39 || t === 40 ? Fw(e, l, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(t) : u(t);
18840
18873
  }
18841
18874
  function l(t) {
18842
- return IC(t) ? Pw(e, u)(t) : u(t);
18875
+ return RC(t) ? Iw(e, u)(t) : u(t);
18843
18876
  }
18844
18877
  function u(r) {
18845
18878
  return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), t) : n(r);
18846
18879
  }
18847
18880
  }
18848
- function lT(e, t, n) {
18881
+ function dT(e, t, n) {
18849
18882
  let r = this;
18850
18883
  return i;
18851
18884
  function i(t) {
18852
- return Mw.call(r, e, a, o, "reference", "referenceMarker", "referenceString")(t);
18885
+ return Pw.call(r, e, a, o, "reference", "referenceMarker", "referenceString")(t);
18853
18886
  }
18854
18887
  function a(e) {
18855
- return r.parser.defined.includes(OC(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(e) : n(e);
18888
+ return r.parser.defined.includes(AC(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(e) : n(e);
18856
18889
  }
18857
18890
  function o(e) {
18858
18891
  return n(e);
18859
18892
  }
18860
18893
  }
18861
- function uT(e, t, n) {
18894
+ function fT(e, t, n) {
18862
18895
  return r;
18863
18896
  function r(t) {
18864
18897
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), i;
@@ -18869,12 +18902,12 @@ function uT(e, t, n) {
18869
18902
  }
18870
18903
  //#endregion
18871
18904
  //#region node_modules/micromark-core-commonmark/lib/label-start-image.js
18872
- var dT = {
18905
+ var pT = {
18873
18906
  name: "labelStartImage",
18874
- resolveAll: tT.resolveAll,
18875
- tokenize: fT
18907
+ resolveAll: rT.resolveAll,
18908
+ tokenize: mT
18876
18909
  };
18877
- function fT(e, t, n) {
18910
+ function mT(e, t, n) {
18878
18911
  let r = this;
18879
18912
  return i;
18880
18913
  function i(t) {
@@ -18890,12 +18923,12 @@ function fT(e, t, n) {
18890
18923
  }
18891
18924
  //#endregion
18892
18925
  //#region node_modules/micromark-core-commonmark/lib/label-start-link.js
18893
- var pT = {
18926
+ var hT = {
18894
18927
  name: "labelStartLink",
18895
- resolveAll: tT.resolveAll,
18896
- tokenize: mT
18928
+ resolveAll: rT.resolveAll,
18929
+ tokenize: gT
18897
18930
  };
18898
- function mT(e, t, n) {
18931
+ function gT(e, t, n) {
18899
18932
  let r = this;
18900
18933
  return i;
18901
18934
  function i(t) {
@@ -18908,11 +18941,11 @@ function mT(e, t, n) {
18908
18941
  }
18909
18942
  //#endregion
18910
18943
  //#region node_modules/micromark-core-commonmark/lib/line-ending.js
18911
- var hT = {
18944
+ var _T = {
18912
18945
  name: "lineEnding",
18913
- tokenize: gT
18946
+ tokenize: vT
18914
18947
  };
18915
- function gT(e, t) {
18948
+ function vT(e, t) {
18916
18949
  return n;
18917
18950
  function n(n) {
18918
18951
  return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), $(e, t, "linePrefix");
@@ -18920,11 +18953,11 @@ function gT(e, t) {
18920
18953
  }
18921
18954
  //#endregion
18922
18955
  //#region node_modules/micromark-core-commonmark/lib/thematic-break.js
18923
- var _T = {
18956
+ var yT = {
18924
18957
  name: "thematicBreak",
18925
- tokenize: vT
18958
+ tokenize: bT
18926
18959
  };
18927
- function vT(e, t, n) {
18960
+ function bT(e, t, n) {
18928
18961
  let r = 0, i;
18929
18962
  return a;
18930
18963
  function a(t) {
@@ -18942,34 +18975,34 @@ function vT(e, t, n) {
18942
18975
  }
18943
18976
  //#endregion
18944
18977
  //#region node_modules/micromark-core-commonmark/lib/list.js
18945
- var yT = {
18946
- continuation: { tokenize: CT },
18947
- exit: TT,
18978
+ var xT = {
18979
+ continuation: { tokenize: TT },
18980
+ exit: DT,
18948
18981
  name: "list",
18949
- tokenize: ST
18950
- }, bT = {
18982
+ tokenize: wT
18983
+ }, ST = {
18951
18984
  partial: !0,
18952
- tokenize: ET
18953
- }, xT = {
18985
+ tokenize: OT
18986
+ }, CT = {
18954
18987
  partial: !0,
18955
- tokenize: wT
18988
+ tokenize: ET
18956
18989
  };
18957
- function ST(e, t, n) {
18990
+ function wT(e, t, n) {
18958
18991
  let r = this, i = r.events[r.events.length - 1], a = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
18959
18992
  return s;
18960
18993
  function s(t) {
18961
18994
  let i = r.containerState.type || (t === 42 || t === 43 || t === 45 ? "listUnordered" : "listOrdered");
18962
- if (i === "listUnordered" ? !r.containerState.marker || t === r.containerState.marker : NC(t)) {
18963
- if (r.containerState.type || (r.containerState.type = i, e.enter(i, { _container: !0 })), i === "listUnordered") return e.enter("listItemPrefix"), t === 42 || t === 45 ? e.check(_T, n, l)(t) : l(t);
18995
+ if (i === "listUnordered" ? !r.containerState.marker || t === r.containerState.marker : FC(t)) {
18996
+ if (r.containerState.type || (r.containerState.type = i, e.enter(i, { _container: !0 })), i === "listUnordered") return e.enter("listItemPrefix"), t === 42 || t === 45 ? e.check(yT, n, l)(t) : l(t);
18964
18997
  if (!r.interrupt || t === 49) return e.enter("listItemPrefix"), e.enter("listItemValue"), c(t);
18965
18998
  }
18966
18999
  return n(t);
18967
19000
  }
18968
19001
  function c(t) {
18969
- return NC(t) && ++o < 10 ? (e.consume(t), c) : (!r.interrupt || o < 2) && (r.containerState.marker ? t === r.containerState.marker : t === 41 || t === 46) ? (e.exit("listItemValue"), l(t)) : n(t);
19002
+ return FC(t) && ++o < 10 ? (e.consume(t), c) : (!r.interrupt || o < 2) && (r.containerState.marker ? t === r.containerState.marker : t === 41 || t === 46) ? (e.exit("listItemValue"), l(t)) : n(t);
18970
19003
  }
18971
19004
  function l(t) {
18972
- return e.enter("listItemMarker"), e.consume(t), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || t, e.check(ew, r.interrupt ? n : u, e.attempt(bT, f, d));
19005
+ return e.enter("listItemMarker"), e.consume(t), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || t, e.check(nw, r.interrupt ? n : u, e.attempt(ST, f, d));
18973
19006
  }
18974
19007
  function u(e) {
18975
19008
  return r.containerState.initialBlankLine = !0, a++, f(e);
@@ -18981,20 +19014,20 @@ function ST(e, t, n) {
18981
19014
  return r.containerState.size = a + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(n);
18982
19015
  }
18983
19016
  }
18984
- function CT(e, t, n) {
19017
+ function TT(e, t, n) {
18985
19018
  let r = this;
18986
- return r.containerState._closeFlow = void 0, e.check(ew, i, a);
19019
+ return r.containerState._closeFlow = void 0, e.check(nw, i, a);
18987
19020
  function i(n) {
18988
19021
  return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, $(e, t, "listItemIndent", r.containerState.size + 1)(n);
18989
19022
  }
18990
19023
  function a(n) {
18991
- return r.containerState.furtherBlankLines || !Q(n) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(n)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(xT, t, o)(n));
19024
+ return r.containerState.furtherBlankLines || !Q(n) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(n)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(CT, t, o)(n));
18992
19025
  }
18993
19026
  function o(i) {
18994
- return r.containerState._closeFlow = !0, r.interrupt = void 0, $(e, e.attempt(yT, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i);
19027
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, $(e, e.attempt(xT, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i);
18995
19028
  }
18996
19029
  }
18997
- function wT(e, t, n) {
19030
+ function ET(e, t, n) {
18998
19031
  let r = this;
18999
19032
  return $(e, i, "listItemIndent", r.containerState.size + 1);
19000
19033
  function i(e) {
@@ -19002,10 +19035,10 @@ function wT(e, t, n) {
19002
19035
  return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === r.containerState.size ? t(e) : n(e);
19003
19036
  }
19004
19037
  }
19005
- function TT(e) {
19038
+ function DT(e) {
19006
19039
  e.exit(this.containerState.type);
19007
19040
  }
19008
- function ET(e, t, n) {
19041
+ function OT(e, t, n) {
19009
19042
  let r = this;
19010
19043
  return $(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
19011
19044
  function i(e) {
@@ -19015,12 +19048,12 @@ function ET(e, t, n) {
19015
19048
  }
19016
19049
  //#endregion
19017
19050
  //#region node_modules/micromark-core-commonmark/lib/setext-underline.js
19018
- var DT = {
19051
+ var kT = {
19019
19052
  name: "setextUnderline",
19020
- resolveTo: OT,
19021
- tokenize: kT
19053
+ resolveTo: AT,
19054
+ tokenize: jT
19022
19055
  };
19023
- function OT(e, t) {
19056
+ function AT(e, t) {
19024
19057
  let n = e.length, r, i, a;
19025
19058
  for (; n--;) if (e[n][0] === "enter") {
19026
19059
  if (e[n][1].type === "content") {
@@ -19048,7 +19081,7 @@ function OT(e, t) {
19048
19081
  t
19049
19082
  ]), e;
19050
19083
  }
19051
- function kT(e, t, n) {
19084
+ function jT(e, t, n) {
19052
19085
  let r = this, i;
19053
19086
  return a;
19054
19087
  function a(t) {
@@ -19071,9 +19104,9 @@ function kT(e, t, n) {
19071
19104
  }
19072
19105
  //#endregion
19073
19106
  //#region node_modules/micromark/lib/initialize/flow.js
19074
- var AT = { tokenize: jT };
19075
- function jT(e) {
19076
- let t = this, n = e.attempt(ew, r, e.attempt(this.parser.constructs.flowInitial, i, $(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Ew, i)), "linePrefix")));
19107
+ var MT = { tokenize: NT };
19108
+ function NT(e) {
19109
+ let t = this, n = e.attempt(nw, r, e.attempt(this.parser.constructs.flowInitial, i, $(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Ow, i)), "linePrefix")));
19077
19110
  return n;
19078
19111
  function r(r) {
19079
19112
  if (r === null) {
@@ -19092,10 +19125,10 @@ function jT(e) {
19092
19125
  }
19093
19126
  //#endregion
19094
19127
  //#region node_modules/micromark/lib/initialize/text.js
19095
- var MT = { resolveAll: IT() }, NT = FT("string"), PT = FT("text");
19096
- function FT(e) {
19128
+ var PT = { resolveAll: RT() }, FT = LT("string"), IT = LT("text");
19129
+ function LT(e) {
19097
19130
  return {
19098
- resolveAll: IT(e === "text" ? LT : void 0),
19131
+ resolveAll: RT(e === "text" ? zT : void 0),
19099
19132
  tokenize: t
19100
19133
  };
19101
19134
  function t(t) {
@@ -19125,7 +19158,7 @@ function FT(e) {
19125
19158
  }
19126
19159
  }
19127
19160
  }
19128
- function IT(e) {
19161
+ function RT(e) {
19129
19162
  return t;
19130
19163
  function t(t, n) {
19131
19164
  let r = -1, i;
@@ -19133,7 +19166,7 @@ function IT(e) {
19133
19166
  return e ? e(t, n) : t;
19134
19167
  }
19135
19168
  }
19136
- function LT(e, t) {
19169
+ function zT(e, t) {
19137
19170
  let n = 0;
19138
19171
  for (; ++n <= e.length;) if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
19139
19172
  let r = e[n - 1][1], i = t.sliceStream(r), a = i.length, o = -1, s = 0, c;
@@ -19177,64 +19210,64 @@ function LT(e, t) {
19177
19210
  }
19178
19211
  //#endregion
19179
19212
  //#region node_modules/micromark/lib/constructs.js
19180
- var RT = /* @__PURE__ */ be({
19181
- attentionMarkers: () => KT,
19182
- contentInitial: () => BT,
19183
- disable: () => qT,
19184
- document: () => zT,
19185
- flow: () => HT,
19186
- flowInitial: () => VT,
19187
- insideSpan: () => GT,
19188
- string: () => UT,
19189
- text: () => WT
19190
- }), zT = {
19191
- 42: yT,
19192
- 43: yT,
19193
- 45: yT,
19194
- 48: yT,
19195
- 49: yT,
19196
- 50: yT,
19197
- 51: yT,
19198
- 52: yT,
19199
- 53: yT,
19200
- 54: yT,
19201
- 55: yT,
19202
- 56: yT,
19203
- 57: yT,
19204
- 62: nw
19205
- }, BT = { 91: Fw }, VT = {
19206
- [-2]: mw,
19207
- [-1]: mw,
19208
- 32: mw
19209
- }, HT = {
19210
- 35: Vw,
19211
- 42: _T,
19212
- 45: [DT, _T],
19213
- 60: Kw,
19214
- 61: DT,
19215
- 95: _T,
19216
- 96: dw,
19217
- 126: dw
19218
- }, UT = {
19219
- 38: cw,
19220
- 92: ow
19213
+ var BT = /* @__PURE__ */ be({
19214
+ attentionMarkers: () => JT,
19215
+ contentInitial: () => HT,
19216
+ disable: () => YT,
19217
+ document: () => VT,
19218
+ flow: () => WT,
19219
+ flowInitial: () => UT,
19220
+ insideSpan: () => qT,
19221
+ string: () => GT,
19222
+ text: () => KT
19223
+ }), VT = {
19224
+ 42: xT,
19225
+ 43: xT,
19226
+ 45: xT,
19227
+ 48: xT,
19228
+ 49: xT,
19229
+ 50: xT,
19230
+ 51: xT,
19231
+ 52: xT,
19232
+ 53: xT,
19233
+ 54: xT,
19234
+ 55: xT,
19235
+ 56: xT,
19236
+ 57: xT,
19237
+ 62: iw
19238
+ }, HT = { 91: Lw }, UT = {
19239
+ [-2]: gw,
19240
+ [-1]: gw,
19241
+ 32: gw
19221
19242
  }, WT = {
19222
- [-5]: hT,
19223
- [-4]: hT,
19224
- [-3]: hT,
19225
- 33: dT,
19226
- 38: cw,
19227
- 42: JC,
19228
- 60: [QC, $w],
19229
- 91: pT,
19230
- 92: [zw, ow],
19231
- 93: tT,
19232
- 95: JC,
19233
- 96: vw
19234
- }, GT = { null: [JC, MT] }, KT = { null: [42, 95] }, qT = { null: [] };
19243
+ 35: Uw,
19244
+ 42: yT,
19245
+ 45: [kT, yT],
19246
+ 60: Jw,
19247
+ 61: kT,
19248
+ 95: yT,
19249
+ 96: pw,
19250
+ 126: pw
19251
+ }, GT = {
19252
+ 38: uw,
19253
+ 92: cw
19254
+ }, KT = {
19255
+ [-5]: _T,
19256
+ [-4]: _T,
19257
+ [-3]: _T,
19258
+ 33: pT,
19259
+ 38: uw,
19260
+ 42: XC,
19261
+ 60: [ew, tT],
19262
+ 91: hT,
19263
+ 92: [Vw, cw],
19264
+ 93: rT,
19265
+ 95: XC,
19266
+ 96: bw
19267
+ }, qT = { null: [XC, PT] }, JT = { null: [42, 95] }, YT = { null: [] };
19235
19268
  //#endregion
19236
19269
  //#region node_modules/micromark/lib/create-tokenizer.js
19237
- function JT(e, t, n) {
19270
+ function XT(e, t, n) {
19238
19271
  let r = {
19239
19272
  _bufferIndex: -1,
19240
19273
  _index: 0,
@@ -19262,13 +19295,13 @@ function JT(e, t, n) {
19262
19295
  }, u = t.tokenize.call(l, c);
19263
19296
  return t.resolveAll && a.push(t), l;
19264
19297
  function d(e) {
19265
- return o = SC(o, e), g(), o[o.length - 1] === null ? (C(t, 0), l.events = qC(a, l.events, l), l.events) : [];
19298
+ return o = wC(o, e), g(), o[o.length - 1] === null ? (C(t, 0), l.events = YC(a, l.events, l), l.events) : [];
19266
19299
  }
19267
19300
  function f(e, t) {
19268
- return XT(p(e), t);
19301
+ return QT(p(e), t);
19269
19302
  }
19270
19303
  function p(e) {
19271
- return YT(o, e);
19304
+ return ZT(o, e);
19272
19305
  }
19273
19306
  function m() {
19274
19307
  let { _bufferIndex: e, _index: t, line: n, column: i, offset: a } = r;
@@ -19349,7 +19382,7 @@ function JT(e, t, n) {
19349
19382
  }
19350
19383
  }
19351
19384
  function C(e, t) {
19352
- e.resolveAll && !a.includes(e) && a.push(e), e.resolve && xC(l.events, t, l.events.length - t, e.resolve(l.events.slice(t), l)), e.resolveTo && (l.events = e.resolveTo(l.events, l));
19385
+ e.resolveAll && !a.includes(e) && a.push(e), e.resolve && CC(l.events, t, l.events.length - t, e.resolve(l.events.slice(t), l)), e.resolveTo && (l.events = e.resolveTo(l.events, l));
19353
19386
  }
19354
19387
  function w() {
19355
19388
  let e = m(), t = l.previous, n = l.currentConstruct, i = l.events.length, a = Array.from(s);
@@ -19365,7 +19398,7 @@ function JT(e, t, n) {
19365
19398
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
19366
19399
  }
19367
19400
  }
19368
- function YT(e, t) {
19401
+ function ZT(e, t) {
19369
19402
  let n = t.start._index, r = t.start._bufferIndex, i = t.end._index, a = t.end._bufferIndex, o;
19370
19403
  if (n === i) o = [e[n].slice(r, a)];
19371
19404
  else {
@@ -19377,7 +19410,7 @@ function YT(e, t) {
19377
19410
  }
19378
19411
  return o;
19379
19412
  }
19380
- function XT(e, t) {
19413
+ function QT(e, t) {
19381
19414
  let n = -1, r = [], i;
19382
19415
  for (; ++n < e.length;) {
19383
19416
  let a = e[n], o;
@@ -19407,41 +19440,41 @@ function XT(e, t) {
19407
19440
  }
19408
19441
  //#endregion
19409
19442
  //#region node_modules/micromark/lib/parse.js
19410
- function ZT(e) {
19443
+ function $T(e) {
19411
19444
  let t = {
19412
- constructs: wC([RT, ...(e || {}).extensions || []]),
19413
- content: n(BC),
19445
+ constructs: EC([BT, ...(e || {}).extensions || []]),
19446
+ content: n(HC),
19414
19447
  defined: [],
19415
- document: n(HC),
19416
- flow: n(AT),
19448
+ document: n(WC),
19449
+ flow: n(MT),
19417
19450
  lazy: {},
19418
- string: n(NT),
19419
- text: n(PT)
19451
+ string: n(FT),
19452
+ text: n(IT)
19420
19453
  };
19421
19454
  return t;
19422
19455
  function n(e) {
19423
19456
  return n;
19424
19457
  function n(n) {
19425
- return JT(t, e, n);
19458
+ return XT(t, e, n);
19426
19459
  }
19427
19460
  }
19428
19461
  }
19429
19462
  //#endregion
19430
19463
  //#region node_modules/micromark/lib/postprocess.js
19431
- function QT(e) {
19432
- for (; !ww(e););
19464
+ function eE(e) {
19465
+ for (; !Ew(e););
19433
19466
  return e;
19434
19467
  }
19435
19468
  //#endregion
19436
19469
  //#region node_modules/micromark/lib/preprocess.js
19437
- var $T = /[\0\t\n\r]/g;
19438
- function eE() {
19470
+ var tE = /[\0\t\n\r]/g;
19471
+ function nE() {
19439
19472
  let e = 1, t = "", n = !0, r;
19440
19473
  return i;
19441
19474
  function i(i, a, o) {
19442
19475
  let s = [], c, l, u, d, f;
19443
19476
  for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), u = 0, t = "", n &&= (i.charCodeAt(0) === 65279 && u++, void 0); u < i.length;) {
19444
- if ($T.lastIndex = u, c = $T.exec(i), d = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(d), !c) {
19477
+ if (tE.lastIndex = u, c = tE.exec(i), d = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(d), !c) {
19445
19478
  t = i.slice(u);
19446
19479
  break;
19447
19480
  }
@@ -19465,39 +19498,39 @@ function eE() {
19465
19498
  }
19466
19499
  //#endregion
19467
19500
  //#region node_modules/micromark-util-decode-string/index.js
19468
- var tE = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
19469
- function nE(e) {
19470
- return e.replace(tE, rE);
19501
+ var rE = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
19502
+ function iE(e) {
19503
+ return e.replace(rE, aE);
19471
19504
  }
19472
- function rE(e, t, n) {
19505
+ function aE(e, t, n) {
19473
19506
  if (t) return t;
19474
19507
  if (n.charCodeAt(0) === 35) {
19475
19508
  let e = n.charCodeAt(1), t = e === 120 || e === 88;
19476
- return DC(n.slice(t ? 2 : 1), t ? 16 : 10);
19509
+ return kC(n.slice(t ? 2 : 1), t ? 16 : 10);
19477
19510
  }
19478
- return bC(n) || e;
19511
+ return SC(n) || e;
19479
19512
  }
19480
19513
  //#endregion
19481
19514
  //#region node_modules/unist-util-stringify-position/lib/index.js
19482
- function iE(e) {
19483
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? oE(e.position) : "start" in e || "end" in e ? oE(e) : "line" in e || "column" in e ? aE(e) : "";
19484
- }
19485
- function aE(e) {
19486
- return sE(e && e.line) + ":" + sE(e && e.column);
19487
- }
19488
19515
  function oE(e) {
19489
- return aE(e && e.start) + "-" + aE(e && e.end);
19516
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? cE(e.position) : "start" in e || "end" in e ? cE(e) : "line" in e || "column" in e ? sE(e) : "";
19490
19517
  }
19491
19518
  function sE(e) {
19519
+ return lE(e && e.line) + ":" + lE(e && e.column);
19520
+ }
19521
+ function cE(e) {
19522
+ return sE(e && e.start) + "-" + sE(e && e.end);
19523
+ }
19524
+ function lE(e) {
19492
19525
  return e && typeof e == "number" ? e : 1;
19493
19526
  }
19494
19527
  //#endregion
19495
19528
  //#region node_modules/mdast-util-from-markdown/lib/index.js
19496
- var cE = {}.hasOwnProperty;
19497
- function lE(e, t, n) {
19498
- return t && typeof t == "object" && (n = t, t = void 0), uE(n)(QT(ZT(n).document().write(eE()(e, t, !0))));
19529
+ var uE = {}.hasOwnProperty;
19530
+ function dE(e, t, n) {
19531
+ return t && typeof t == "object" && (n = t, t = void 0), fE(n)(eE($T(n).document().write(nE()(e, t, !0))));
19499
19532
  }
19500
- function uE(e) {
19533
+ function fE(e) {
19501
19534
  let t = {
19502
19535
  transforms: [],
19503
19536
  canContainEols: [
@@ -19602,7 +19635,7 @@ function uE(e) {
19602
19635
  thematicBreak: c()
19603
19636
  }
19604
19637
  };
19605
- fE(t, (e || {}).mdastExtensions || []);
19638
+ mE(t, (e || {}).mdastExtensions || []);
19606
19639
  let n = {};
19607
19640
  return r;
19608
19641
  function r(e) {
@@ -19622,19 +19655,19 @@ function uE(e) {
19622
19655
  for (; ++d < e.length;) (e[d][1].type === "listOrdered" || e[d][1].type === "listUnordered") && (e[d][0] === "enter" ? c.push(d) : d = i(e, c.pop(), d));
19623
19656
  for (d = -1; ++d < e.length;) {
19624
19657
  let n = t[e[d][0]];
19625
- cE.call(n, e[d][1].type) && n[e[d][1].type].call(Object.assign({ sliceSerialize: e[d][2].sliceSerialize }, a), e[d][1]);
19658
+ uE.call(n, e[d][1].type) && n[e[d][1].type].call(Object.assign({ sliceSerialize: e[d][2].sliceSerialize }, a), e[d][1]);
19626
19659
  }
19627
19660
  if (a.tokenStack.length > 0) {
19628
19661
  let e = a.tokenStack[a.tokenStack.length - 1];
19629
- (e[1] || mE).call(a, void 0, e[0]);
19662
+ (e[1] || gE).call(a, void 0, e[0]);
19630
19663
  }
19631
19664
  for (r.position = {
19632
- start: dE(e.length > 0 ? e[0][1].start : {
19665
+ start: pE(e.length > 0 ? e[0][1].start : {
19633
19666
  line: 1,
19634
19667
  column: 1,
19635
19668
  offset: 0
19636
19669
  }),
19637
- end: dE(e.length > 0 ? e[e.length - 2][1].end : {
19670
+ end: pE(e.length > 0 ? e[e.length - 2][1].end : {
19638
19671
  line: 1,
19639
19672
  column: 1,
19640
19673
  offset: 0
@@ -19709,7 +19742,7 @@ function uE(e) {
19709
19742
  }
19710
19743
  function s(e, t, n) {
19711
19744
  this.stack[this.stack.length - 1].children.push(e), this.stack.push(e), this.tokenStack.push([t, n || void 0]), e.position = {
19712
- start: dE(t.start),
19745
+ start: pE(t.start),
19713
19746
  end: void 0
19714
19747
  };
19715
19748
  }
@@ -19721,15 +19754,15 @@ function uE(e) {
19721
19754
  }
19722
19755
  function l(e, t) {
19723
19756
  let n = this.stack.pop(), r = this.tokenStack.pop();
19724
- if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || mE).call(this, e, r[0]));
19725
- else throw Error("Cannot close `" + e.type + "` (" + iE({
19757
+ if (r) r[0].type !== e.type && (t ? t.call(this, e, r[0]) : (r[1] || gE).call(this, e, r[0]));
19758
+ else throw Error("Cannot close `" + e.type + "` (" + oE({
19726
19759
  start: e.start,
19727
19760
  end: e.end
19728
19761
  }) + "): it’s not open");
19729
- n.position.end = dE(e.end);
19762
+ n.position.end = pE(e.end);
19730
19763
  }
19731
19764
  function u() {
19732
- return hC(this.stack.pop());
19765
+ return _C(this.stack.pop());
19733
19766
  }
19734
19767
  function d() {
19735
19768
  this.data.expectingFirstListItemValue = !0;
@@ -19761,7 +19794,7 @@ function uE(e) {
19761
19794
  }
19762
19795
  function v(e) {
19763
19796
  let t = this.resume(), n = this.stack[this.stack.length - 1];
19764
- n.label = t, n.identifier = OC(this.sliceSerialize(e)).toLowerCase();
19797
+ n.label = t, n.identifier = AC(this.sliceSerialize(e)).toLowerCase();
19765
19798
  }
19766
19799
  function y() {
19767
19800
  let e = this.resume(), t = this.stack[this.stack.length - 1];
@@ -19788,19 +19821,19 @@ function uE(e) {
19788
19821
  function w(e) {
19789
19822
  let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
19790
19823
  (!n || n.type !== "text") && (n = je(), n.position = {
19791
- start: dE(e.start),
19824
+ start: pE(e.start),
19792
19825
  end: void 0
19793
19826
  }, t.push(n)), this.stack.push(n);
19794
19827
  }
19795
19828
  function T(e) {
19796
19829
  let t = this.stack.pop();
19797
- t.value += this.sliceSerialize(e), t.position.end = dE(e.end);
19830
+ t.value += this.sliceSerialize(e), t.position.end = pE(e.end);
19798
19831
  }
19799
19832
  function te(e) {
19800
19833
  let n = this.stack[this.stack.length - 1];
19801
19834
  if (this.data.atHardBreak) {
19802
19835
  let t = n.children[n.children.length - 1];
19803
- t.position.end = dE(e.end), this.data.atHardBreak = void 0;
19836
+ t.position.end = pE(e.end), this.data.atHardBreak = void 0;
19804
19837
  return;
19805
19838
  }
19806
19839
  !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(n.type) && (w.call(this, e), T.call(this, e));
@@ -19838,7 +19871,7 @@ function uE(e) {
19838
19871
  }
19839
19872
  function ae(e) {
19840
19873
  let t = this.sliceSerialize(e), n = this.stack[this.stack.length - 2];
19841
- n.label = nE(t), n.identifier = OC(t).toLowerCase();
19874
+ n.label = iE(t), n.identifier = AC(t).toLowerCase();
19842
19875
  }
19843
19876
  function oe() {
19844
19877
  let e = this.stack[this.stack.length - 1], t = this.resume(), n = this.stack[this.stack.length - 1];
@@ -19860,20 +19893,20 @@ function uE(e) {
19860
19893
  }
19861
19894
  function de(e) {
19862
19895
  let t = this.resume(), n = this.stack[this.stack.length - 1];
19863
- n.label = t, n.identifier = OC(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
19896
+ n.label = t, n.identifier = AC(this.sliceSerialize(e)).toLowerCase(), this.data.referenceType = "full";
19864
19897
  }
19865
19898
  function fe(e) {
19866
19899
  this.data.characterReferenceType = e.type;
19867
19900
  }
19868
19901
  function pe(e) {
19869
19902
  let t = this.sliceSerialize(e), n = this.data.characterReferenceType, r;
19870
- n ? (r = DC(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = bC(t);
19903
+ n ? (r = kC(t, n === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : r = SC(t);
19871
19904
  let i = this.stack[this.stack.length - 1];
19872
19905
  i.value += r;
19873
19906
  }
19874
19907
  function me(e) {
19875
19908
  let t = this.stack.pop();
19876
- t.position.end = dE(e.end);
19909
+ t.position.end = pE(e.end);
19877
19910
  }
19878
19911
  function he(e) {
19879
19912
  T.call(this, e);
@@ -19991,23 +20024,23 @@ function uE(e) {
19991
20024
  return { type: "thematicBreak" };
19992
20025
  }
19993
20026
  }
19994
- function dE(e) {
20027
+ function pE(e) {
19995
20028
  return {
19996
20029
  line: e.line,
19997
20030
  column: e.column,
19998
20031
  offset: e.offset
19999
20032
  };
20000
20033
  }
20001
- function fE(e, t) {
20034
+ function mE(e, t) {
20002
20035
  let n = -1;
20003
20036
  for (; ++n < t.length;) {
20004
20037
  let r = t[n];
20005
- Array.isArray(r) ? fE(e, r) : pE(e, r);
20038
+ Array.isArray(r) ? mE(e, r) : hE(e, r);
20006
20039
  }
20007
20040
  }
20008
- function pE(e, t) {
20041
+ function hE(e, t) {
20009
20042
  let n;
20010
- for (n in t) if (cE.call(t, n)) switch (n) {
20043
+ for (n in t) if (uE.call(t, n)) switch (n) {
20011
20044
  case "canContainEols": {
20012
20045
  let r = t[n];
20013
20046
  r && e[n].push(...r);
@@ -20026,25 +20059,25 @@ function pE(e, t) {
20026
20059
  }
20027
20060
  }
20028
20061
  }
20029
- function mE(e, t) {
20030
- throw Error(e ? "Cannot close `" + e.type + "` (" + iE({
20062
+ function gE(e, t) {
20063
+ throw Error(e ? "Cannot close `" + e.type + "` (" + oE({
20031
20064
  start: e.start,
20032
20065
  end: e.end
20033
- }) + "): a different token (`" + t.type + "`, " + iE({
20066
+ }) + "): a different token (`" + t.type + "`, " + oE({
20034
20067
  start: t.start,
20035
20068
  end: t.end
20036
- }) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " + iE({
20069
+ }) + ") is open" : "Cannot close document, a token (`" + t.type + "`, " + oE({
20037
20070
  start: t.start,
20038
20071
  end: t.end
20039
20072
  }) + ") is still open");
20040
20073
  }
20041
20074
  //#endregion
20042
20075
  //#region node_modules/remark-parse/lib/index.js
20043
- function hE(e) {
20076
+ function _E(e) {
20044
20077
  let t = this;
20045
20078
  t.parser = n;
20046
20079
  function n(n) {
20047
- return lE(n, {
20080
+ return dE(n, {
20048
20081
  ...t.data("settings"),
20049
20082
  ...e,
20050
20083
  extensions: t.data("micromarkExtensions") || [],
@@ -20054,12 +20087,12 @@ function hE(e) {
20054
20087
  }
20055
20088
  //#endregion
20056
20089
  //#region node_modules/bail/index.js
20057
- function gE(e) {
20090
+ function vE(e) {
20058
20091
  if (e) throw e;
20059
20092
  }
20060
20093
  //#endregion
20061
20094
  //#region node_modules/extend/index.js
20062
- var _E = /* @__PURE__ */ ye(((e, t) => {
20095
+ var yE = /* @__PURE__ */ ye(((e, t) => {
20063
20096
  var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
20064
20097
  return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
20065
20098
  }, s = function(e) {
@@ -20096,14 +20129,14 @@ var _E = /* @__PURE__ */ ye(((e, t) => {
20096
20129
  }));
20097
20130
  //#endregion
20098
20131
  //#region node_modules/is-plain-obj/index.js
20099
- function vE(e) {
20132
+ function bE(e) {
20100
20133
  if (typeof e != "object" || !e) return !1;
20101
20134
  let t = Object.getPrototypeOf(e);
20102
20135
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
20103
20136
  }
20104
20137
  //#endregion
20105
20138
  //#region node_modules/trough/lib/index.js
20106
- function yE() {
20139
+ function xE() {
20107
20140
  let e = [], t = {
20108
20141
  run: n,
20109
20142
  use: r
@@ -20120,7 +20153,7 @@ function yE() {
20120
20153
  return;
20121
20154
  }
20122
20155
  for (; ++c < t.length;) (o[c] === null || o[c] === void 0) && (o[c] = t[c]);
20123
- t = o, s ? bE(s, i)(...o) : r(null, ...o);
20156
+ t = o, s ? SE(s, i)(...o) : r(null, ...o);
20124
20157
  }
20125
20158
  }
20126
20159
  function r(n) {
@@ -20128,7 +20161,7 @@ function yE() {
20128
20161
  return e.push(n), t;
20129
20162
  }
20130
20163
  }
20131
- function bE(e, t) {
20164
+ function SE(e, t) {
20132
20165
  let n;
20133
20166
  return r;
20134
20167
  function r(...t) {
@@ -20152,7 +20185,7 @@ function bE(e, t) {
20152
20185
  }
20153
20186
  //#endregion
20154
20187
  //#region node_modules/vfile-message/lib/index.js
20155
- var xE = class extends Error {
20188
+ var CE = class extends Error {
20156
20189
  constructor(e, t, n) {
20157
20190
  super(), typeof t == "string" && (n = t, t = void 0);
20158
20191
  let r = "", i = {}, a = !1;
@@ -20168,22 +20201,22 @@ var xE = class extends Error {
20168
20201
  e && (i.place = e.position);
20169
20202
  }
20170
20203
  let o = i.place && "start" in i.place ? i.place.start : i.place;
20171
- this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = iE(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
20204
+ this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = oE(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
20172
20205
  }
20173
20206
  };
20174
- xE.prototype.file = "", xE.prototype.name = "", xE.prototype.reason = "", xE.prototype.message = "", xE.prototype.stack = "", xE.prototype.column = void 0, xE.prototype.line = void 0, xE.prototype.ancestors = void 0, xE.prototype.cause = void 0, xE.prototype.fatal = void 0, xE.prototype.place = void 0, xE.prototype.ruleId = void 0, xE.prototype.source = void 0;
20207
+ CE.prototype.file = "", CE.prototype.name = "", CE.prototype.reason = "", CE.prototype.message = "", CE.prototype.stack = "", CE.prototype.column = void 0, CE.prototype.line = void 0, CE.prototype.ancestors = void 0, CE.prototype.cause = void 0, CE.prototype.fatal = void 0, CE.prototype.place = void 0, CE.prototype.ruleId = void 0, CE.prototype.source = void 0;
20175
20208
  //#endregion
20176
20209
  //#region node_modules/vfile/lib/minpath.browser.js
20177
- var SE = {
20178
- basename: CE,
20179
- dirname: wE,
20180
- extname: TE,
20181
- join: EE,
20210
+ var wE = {
20211
+ basename: TE,
20212
+ dirname: EE,
20213
+ extname: DE,
20214
+ join: OE,
20182
20215
  sep: "/"
20183
20216
  };
20184
- function CE(e, t) {
20217
+ function TE(e, t) {
20185
20218
  if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
20186
- kE(e);
20219
+ jE(e);
20187
20220
  let n = 0, r = -1, i = e.length, a;
20188
20221
  if (t === void 0 || t.length === 0 || t.length > e.length) {
20189
20222
  for (; i--;) if (e.codePointAt(i) === 47) {
@@ -20204,8 +20237,8 @@ function CE(e, t) {
20204
20237
  } else o < 0 && (a = !0, o = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (r = i) : (s = -1, r = o));
20205
20238
  return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
20206
20239
  }
20207
- function wE(e) {
20208
- if (kE(e), e.length === 0) return ".";
20240
+ function EE(e) {
20241
+ if (jE(e), e.length === 0) return ".";
20209
20242
  let t = -1, n = e.length, r;
20210
20243
  for (; --n;) if (e.codePointAt(n) === 47) {
20211
20244
  if (r) {
@@ -20215,8 +20248,8 @@ function wE(e) {
20215
20248
  } else r ||= !0;
20216
20249
  return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
20217
20250
  }
20218
- function TE(e) {
20219
- kE(e);
20251
+ function DE(e) {
20252
+ jE(e);
20220
20253
  let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
20221
20254
  for (; t--;) {
20222
20255
  let s = e.codePointAt(t);
@@ -20231,17 +20264,17 @@ function TE(e) {
20231
20264
  }
20232
20265
  return i < 0 || n < 0 || a === 0 || a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
20233
20266
  }
20234
- function EE(...e) {
20267
+ function OE(...e) {
20235
20268
  let t = -1, n;
20236
- for (; ++t < e.length;) kE(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
20237
- return n === void 0 ? "." : DE(n);
20269
+ for (; ++t < e.length;) jE(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
20270
+ return n === void 0 ? "." : kE(n);
20238
20271
  }
20239
- function DE(e) {
20240
- kE(e);
20241
- let t = e.codePointAt(0) === 47, n = OE(e, !t);
20272
+ function kE(e) {
20273
+ jE(e);
20274
+ let t = e.codePointAt(0) === 47, n = AE(e, !t);
20242
20275
  return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
20243
20276
  }
20244
- function OE(e, t) {
20277
+ function AE(e, t) {
20245
20278
  let n = "", r = 0, i = -1, a = 0, o = -1, s, c;
20246
20279
  for (; ++o <= e.length;) {
20247
20280
  if (o < e.length) s = e.codePointAt(o);
@@ -20267,25 +20300,25 @@ function OE(e, t) {
20267
20300
  }
20268
20301
  return n;
20269
20302
  }
20270
- function kE(e) {
20303
+ function jE(e) {
20271
20304
  if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
20272
20305
  }
20273
20306
  //#endregion
20274
20307
  //#region node_modules/vfile/lib/minproc.browser.js
20275
- var AE = { cwd: jE };
20276
- function jE() {
20308
+ var ME = { cwd: NE };
20309
+ function NE() {
20277
20310
  return "/";
20278
20311
  }
20279
20312
  //#endregion
20280
20313
  //#region node_modules/vfile/lib/minurl.shared.js
20281
- function ME(e) {
20314
+ function PE(e) {
20282
20315
  return !!(typeof e == "object" && e && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
20283
20316
  }
20284
20317
  //#endregion
20285
20318
  //#region node_modules/vfile/lib/minurl.browser.js
20286
- function NE(e) {
20319
+ function FE(e) {
20287
20320
  if (typeof e == "string") e = new URL(e);
20288
- else if (!ME(e)) {
20321
+ else if (!PE(e)) {
20289
20322
  let t = /* @__PURE__ */ TypeError("The \"path\" argument must be of type string or an instance of URL. Received `" + e + "`");
20290
20323
  throw t.code = "ERR_INVALID_ARG_TYPE", t;
20291
20324
  }
@@ -20293,9 +20326,9 @@ function NE(e) {
20293
20326
  let e = /* @__PURE__ */ TypeError("The URL must be of scheme file");
20294
20327
  throw e.code = "ERR_INVALID_URL_SCHEME", e;
20295
20328
  }
20296
- return PE(e);
20329
+ return IE(e);
20297
20330
  }
20298
- function PE(e) {
20331
+ function IE(e) {
20299
20332
  if (e.hostname !== "") {
20300
20333
  let e = /* @__PURE__ */ TypeError("File URL host must be \"localhost\" or empty on darwin");
20301
20334
  throw e.code = "ERR_INVALID_FILE_URL_HOST", e;
@@ -20312,58 +20345,58 @@ function PE(e) {
20312
20345
  }
20313
20346
  //#endregion
20314
20347
  //#region node_modules/vfile/lib/index.js
20315
- var FE = [
20348
+ var LE = [
20316
20349
  "history",
20317
20350
  "path",
20318
20351
  "basename",
20319
20352
  "stem",
20320
20353
  "extname",
20321
20354
  "dirname"
20322
- ], IE = class {
20355
+ ], RE = class {
20323
20356
  constructor(e) {
20324
20357
  let t;
20325
- t = e ? ME(e) ? { path: e } : typeof e == "string" || BE(e) ? { value: e } : e : {}, this.cwd = "cwd" in t ? "" : AE.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
20358
+ t = e ? PE(e) ? { path: e } : typeof e == "string" || HE(e) ? { value: e } : e : {}, this.cwd = "cwd" in t ? "" : ME.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
20326
20359
  let n = -1;
20327
- for (; ++n < FE.length;) {
20328
- let e = FE[n];
20360
+ for (; ++n < LE.length;) {
20361
+ let e = LE[n];
20329
20362
  e in t && t[e] !== void 0 && t[e] !== null && (this[e] = e === "history" ? [...t[e]] : t[e]);
20330
20363
  }
20331
20364
  let r;
20332
- for (r in t) FE.includes(r) || (this[r] = t[r]);
20365
+ for (r in t) LE.includes(r) || (this[r] = t[r]);
20333
20366
  }
20334
20367
  get basename() {
20335
- return typeof this.path == "string" ? SE.basename(this.path) : void 0;
20368
+ return typeof this.path == "string" ? wE.basename(this.path) : void 0;
20336
20369
  }
20337
20370
  set basename(e) {
20338
- RE(e, "basename"), LE(e, "basename"), this.path = SE.join(this.dirname || "", e);
20371
+ BE(e, "basename"), zE(e, "basename"), this.path = wE.join(this.dirname || "", e);
20339
20372
  }
20340
20373
  get dirname() {
20341
- return typeof this.path == "string" ? SE.dirname(this.path) : void 0;
20374
+ return typeof this.path == "string" ? wE.dirname(this.path) : void 0;
20342
20375
  }
20343
20376
  set dirname(e) {
20344
- zE(this.basename, "dirname"), this.path = SE.join(e || "", this.basename);
20377
+ VE(this.basename, "dirname"), this.path = wE.join(e || "", this.basename);
20345
20378
  }
20346
20379
  get extname() {
20347
- return typeof this.path == "string" ? SE.extname(this.path) : void 0;
20380
+ return typeof this.path == "string" ? wE.extname(this.path) : void 0;
20348
20381
  }
20349
20382
  set extname(e) {
20350
- if (LE(e, "extname"), zE(this.dirname, "extname"), e) {
20383
+ if (zE(e, "extname"), VE(this.dirname, "extname"), e) {
20351
20384
  if (e.codePointAt(0) !== 46) throw Error("`extname` must start with `.`");
20352
20385
  if (e.includes(".", 1)) throw Error("`extname` cannot contain multiple dots");
20353
20386
  }
20354
- this.path = SE.join(this.dirname, this.stem + (e || ""));
20387
+ this.path = wE.join(this.dirname, this.stem + (e || ""));
20355
20388
  }
20356
20389
  get path() {
20357
20390
  return this.history[this.history.length - 1];
20358
20391
  }
20359
20392
  set path(e) {
20360
- ME(e) && (e = NE(e)), RE(e, "path"), this.path !== e && this.history.push(e);
20393
+ PE(e) && (e = FE(e)), BE(e, "path"), this.path !== e && this.history.push(e);
20361
20394
  }
20362
20395
  get stem() {
20363
- return typeof this.path == "string" ? SE.basename(this.path, this.extname) : void 0;
20396
+ return typeof this.path == "string" ? wE.basename(this.path, this.extname) : void 0;
20364
20397
  }
20365
20398
  set stem(e) {
20366
- RE(e, "stem"), LE(e, "stem"), this.path = SE.join(this.dirname || "", e + (this.extname || ""));
20399
+ BE(e, "stem"), zE(e, "stem"), this.path = wE.join(this.dirname || "", e + (this.extname || ""));
20367
20400
  }
20368
20401
  fail(e, t, n) {
20369
20402
  let r = this.message(e, t, n);
@@ -20374,35 +20407,35 @@ var FE = [
20374
20407
  return r.fatal = void 0, r;
20375
20408
  }
20376
20409
  message(e, t, n) {
20377
- let r = new xE(e, t, n);
20410
+ let r = new CE(e, t, n);
20378
20411
  return this.path && (r.name = this.path + ":" + r.name, r.file = this.path), r.fatal = !1, this.messages.push(r), r;
20379
20412
  }
20380
20413
  toString(e) {
20381
20414
  return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
20382
20415
  }
20383
20416
  };
20384
- function LE(e, t) {
20385
- if (e && e.includes(SE.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + SE.sep + "`");
20417
+ function zE(e, t) {
20418
+ if (e && e.includes(wE.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + wE.sep + "`");
20386
20419
  }
20387
- function RE(e, t) {
20420
+ function BE(e, t) {
20388
20421
  if (!e) throw Error("`" + t + "` cannot be empty");
20389
20422
  }
20390
- function zE(e, t) {
20423
+ function VE(e, t) {
20391
20424
  if (!e) throw Error("Setting `" + t + "` requires `path` to be set too");
20392
20425
  }
20393
- function BE(e) {
20426
+ function HE(e) {
20394
20427
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
20395
20428
  }
20396
20429
  //#endregion
20397
20430
  //#region node_modules/unified/lib/callable-instance.js
20398
- var VE = (function(e) {
20431
+ var UE = (function(e) {
20399
20432
  let t = this.constructor.prototype, n = t[e], r = function() {
20400
20433
  return n.apply(r, arguments);
20401
20434
  };
20402
20435
  return Object.setPrototypeOf(r, t), r;
20403
- }), HE = /* @__PURE__ */ Se(_E(), 1), UE = {}.hasOwnProperty, WE = new class e extends VE {
20436
+ }), WE = /* @__PURE__ */ Se(yE(), 1), GE = {}.hasOwnProperty, KE = new class e extends UE {
20404
20437
  constructor() {
20405
- super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = yE();
20438
+ super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = xE();
20406
20439
  }
20407
20440
  copy() {
20408
20441
  let t = new e(), n = -1;
@@ -20410,10 +20443,10 @@ var VE = (function(e) {
20410
20443
  let e = this.attachers[n];
20411
20444
  t.use(...e);
20412
20445
  }
20413
- return t.data((0, HE.default)(!0, {}, this.namespace)), t;
20446
+ return t.data((0, WE.default)(!0, {}, this.namespace)), t;
20414
20447
  }
20415
20448
  data(e, t) {
20416
- return typeof e == "string" ? arguments.length === 2 ? (qE("data", this.frozen), this.namespace[e] = t, this) : UE.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (qE("data", this.frozen), this.namespace = e, this) : this.namespace;
20449
+ return typeof e == "string" ? arguments.length === 2 ? (YE("data", this.frozen), this.namespace[e] = t, this) : GE.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (YE("data", this.frozen), this.namespace = e, this) : this.namespace;
20417
20450
  }
20418
20451
  freeze() {
20419
20452
  if (this.frozen) return this;
@@ -20429,18 +20462,18 @@ var VE = (function(e) {
20429
20462
  }
20430
20463
  parse(e) {
20431
20464
  this.freeze();
20432
- let t = XE(e), n = this.parser || this.Parser;
20433
- return GE("parse", n), n(String(t), t);
20465
+ let t = QE(e), n = this.parser || this.Parser;
20466
+ return qE("parse", n), n(String(t), t);
20434
20467
  }
20435
20468
  process(e, t) {
20436
20469
  let n = this;
20437
- return this.freeze(), GE("process", this.parser || this.Parser), KE("process", this.compiler || this.Compiler), t ? r(void 0, t) : new Promise(r);
20470
+ return this.freeze(), qE("process", this.parser || this.Parser), JE("process", this.compiler || this.Compiler), t ? r(void 0, t) : new Promise(r);
20438
20471
  function r(r, i) {
20439
- let a = XE(e), o = n.parse(a);
20472
+ let a = QE(e), o = n.parse(a);
20440
20473
  n.run(o, a, function(e, t, r) {
20441
20474
  if (e || !t || !r) return s(e);
20442
20475
  let i = t, a = n.stringify(i, r);
20443
- QE(a) ? r.value = a : r.result = a, s(e, r);
20476
+ eD(a) ? r.value = a : r.result = a, s(e, r);
20444
20477
  });
20445
20478
  function s(e, n) {
20446
20479
  e || !n ? i(e) : r ? r(n) : t(void 0, n);
@@ -20449,17 +20482,17 @@ var VE = (function(e) {
20449
20482
  }
20450
20483
  processSync(e) {
20451
20484
  let t = !1, n;
20452
- return this.freeze(), GE("processSync", this.parser || this.Parser), KE("processSync", this.compiler || this.Compiler), this.process(e, r), YE("processSync", "process", t), n;
20485
+ return this.freeze(), qE("processSync", this.parser || this.Parser), JE("processSync", this.compiler || this.Compiler), this.process(e, r), ZE("processSync", "process", t), n;
20453
20486
  function r(e, r) {
20454
- t = !0, gE(e), n = r;
20487
+ t = !0, vE(e), n = r;
20455
20488
  }
20456
20489
  }
20457
20490
  run(e, t, n) {
20458
- JE(e), this.freeze();
20491
+ XE(e), this.freeze();
20459
20492
  let r = this.transformers;
20460
20493
  return !n && typeof t == "function" && (n = t, t = void 0), n ? i(void 0, n) : new Promise(i);
20461
20494
  function i(i, a) {
20462
- let o = XE(t);
20495
+ let o = QE(t);
20463
20496
  r.run(e, o, s);
20464
20497
  function s(t, r, o) {
20465
20498
  let s = r || e;
@@ -20469,19 +20502,19 @@ var VE = (function(e) {
20469
20502
  }
20470
20503
  runSync(e, t) {
20471
20504
  let n = !1, r;
20472
- return this.run(e, t, i), YE("runSync", "run", n), r;
20505
+ return this.run(e, t, i), ZE("runSync", "run", n), r;
20473
20506
  function i(e, t) {
20474
- gE(e), r = t, n = !0;
20507
+ vE(e), r = t, n = !0;
20475
20508
  }
20476
20509
  }
20477
20510
  stringify(e, t) {
20478
20511
  this.freeze();
20479
- let n = XE(t), r = this.compiler || this.Compiler;
20480
- return KE("stringify", r), JE(e), r(e, n);
20512
+ let n = QE(t), r = this.compiler || this.Compiler;
20513
+ return JE("stringify", r), XE(e), r(e, n);
20481
20514
  }
20482
20515
  use(e, ...t) {
20483
20516
  let n = this.attachers, r = this.namespace;
20484
- if (qE("use", this.frozen), e != null) if (typeof e == "function") s(e, t);
20517
+ if (YE("use", this.frozen), e != null) if (typeof e == "function") s(e, t);
20485
20518
  else if (typeof e == "object") Array.isArray(e) ? o(e) : a(e);
20486
20519
  else throw TypeError("Expected usable value, not `" + e + "`");
20487
20520
  return this;
@@ -20495,7 +20528,7 @@ var VE = (function(e) {
20495
20528
  }
20496
20529
  function a(e) {
20497
20530
  if (!("plugins" in e) && !("settings" in e)) throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
20498
- o(e.plugins), e.settings && (r.settings = (0, HE.default)(!0, r.settings, e.settings));
20531
+ o(e.plugins), e.settings && (r.settings = (0, WE.default)(!0, r.settings, e.settings));
20499
20532
  }
20500
20533
  function o(e) {
20501
20534
  let t = -1;
@@ -20514,7 +20547,7 @@ var VE = (function(e) {
20514
20547
  if (i === -1) n.push([e, ...t]);
20515
20548
  else if (t.length > 0) {
20516
20549
  let [r, ...a] = t, o = n[i][1];
20517
- vE(o) && vE(r) && (r = (0, HE.default)(!0, o, r)), n[i] = [
20550
+ bE(o) && bE(r) && (r = (0, WE.default)(!0, o, r)), n[i] = [
20518
20551
  e,
20519
20552
  r,
20520
20553
  ...a
@@ -20523,176 +20556,145 @@ var VE = (function(e) {
20523
20556
  }
20524
20557
  }
20525
20558
  }().freeze();
20526
- function GE(e, t) {
20559
+ function qE(e, t) {
20527
20560
  if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `parser`");
20528
20561
  }
20529
- function KE(e, t) {
20562
+ function JE(e, t) {
20530
20563
  if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `compiler`");
20531
20564
  }
20532
- function qE(e, t) {
20565
+ function YE(e, t) {
20533
20566
  if (t) throw Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
20534
20567
  }
20535
- function JE(e) {
20536
- if (!vE(e) || typeof e.type != "string") throw TypeError("Expected node, got `" + e + "`");
20568
+ function XE(e) {
20569
+ if (!bE(e) || typeof e.type != "string") throw TypeError("Expected node, got `" + e + "`");
20537
20570
  }
20538
- function YE(e, t, n) {
20571
+ function ZE(e, t, n) {
20539
20572
  if (!n) throw Error("`" + e + "` finished async. Use `" + t + "` instead");
20540
20573
  }
20541
- function XE(e) {
20542
- return ZE(e) ? e : new IE(e);
20574
+ function QE(e) {
20575
+ return $E(e) ? e : new RE(e);
20543
20576
  }
20544
- function ZE(e) {
20577
+ function $E(e) {
20545
20578
  return !!(e && typeof e == "object" && "message" in e && "messages" in e);
20546
20579
  }
20547
- function QE(e) {
20548
- return typeof e == "string" || $E(e);
20580
+ function eD(e) {
20581
+ return typeof e == "string" || tD(e);
20549
20582
  }
20550
- function $E(e) {
20583
+ function tD(e) {
20551
20584
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
20552
20585
  }
20553
20586
  //#endregion
20554
- //#region src/components/MarkdownEditor/Types/MarkdownAstNode.ts
20555
- var eD = class {
20556
- id;
20557
- type;
20558
- componentState;
20559
- editingState;
20560
- constructor(e) {
20561
- Object.assign(this, e), this.id = Symbol();
20562
- }
20563
- }, tD = new class {
20564
- createNode(e, t) {
20565
- let n = cC[e].stateType;
20566
- return new eD({
20567
- type: e,
20568
- componentState: new n(t),
20569
- editingState: { cursorPosition: 0 }
20570
- });
20571
- }
20572
- createTextNode(e, t) {
20573
- return this.createNode(e, { text: t });
20574
- }
20575
- createImageNode(e, t, n = "") {
20576
- return this.createNode(X.IMAGE, {
20577
- src: e,
20578
- alt: t,
20579
- caption: n
20587
+ //#region src/components/MarkdownEditor/Composable/parseMarkdown.ts
20588
+ function nD(e) {
20589
+ let t = [], n = KE().use(_E).parse(e);
20590
+ for (let e of n.children) if (e.type === "paragraph" && e.children[0]?.type === "text") {
20591
+ let n = e.children[0].value ?? "";
20592
+ if (n.startsWith("\"\"\"") && n.endsWith("\"\"\"") && (n.split("\n")[0] ?? "").slice(3).trim() === "MarkdownModuleImage") {
20593
+ let e = n.match(/src:\s*(\S+)/), r = n.match(/alt:\s*(.+)/), i = n.match(/caption:\s*(.+)/);
20594
+ t.push(hC.createImageNode(e?.[1] ?? "", r?.[1] ?? "", i?.[1] ?? ""));
20595
+ continue;
20596
+ }
20597
+ let r = rD(e.children);
20598
+ t.push(hC.createTextNode(X.PARAGRAPH, r));
20599
+ } else if (e.type === "heading" && e.depth === 1) {
20600
+ let n = rD(e.children);
20601
+ t.push(hC.createTextNode(X.HEADLINE1, n));
20602
+ } else if (e.type === "heading" && e.depth === 2) t.push(hC.createTextNode(X.HEADLINE2, rD(e.children)));
20603
+ else if (e.type === "heading" && e.depth === 3) t.push(hC.createTextNode(X.HEADLINE3, rD(e.children)));
20604
+ else if (e.type === "list") {
20605
+ let n = e.children.map((e) => {
20606
+ let t = e.children.find((e) => e.type === "paragraph");
20607
+ return t && t.type === "paragraph" ? rD(t.children) : "";
20580
20608
  });
20609
+ t.push(hC.createListNode(n));
20581
20610
  }
20582
- createListNode(e) {
20583
- return this.createNode(X.LIST, { items: e.map((e) => new aC({ text: e })) });
20584
- }
20585
- createBlankParagraph() {
20586
- return this.createTextNode(X.PARAGRAPH, "");
20587
- }
20588
- }();
20611
+ return t;
20612
+ }
20613
+ function rD(e) {
20614
+ let t = "";
20615
+ for (let n of e) n.type === "text" && (t += n.value), n.type === "strong" && (t += `**${rD(n.children)}**`), n.type === "emphasis" && (t += `*${rD(n.children)}*`);
20616
+ return t;
20617
+ }
20618
+ //#endregion
20619
+ //#region src/components/MarkdownEditor/Composable/serializeMarkdown.ts
20620
+ function iD(e) {
20621
+ return e.map((e) => {
20622
+ if (aS(e.type) && lC(e)) return `${{
20623
+ [X.PARAGRAPH]: "",
20624
+ [X.LIST]: "",
20625
+ [X.HEADLINE1]: "# ",
20626
+ [X.HEADLINE2]: "## ",
20627
+ [X.HEADLINE3]: "### "
20628
+ }[e.type]}${e.componentState.text}`;
20629
+ if (e.type === X.LIST) return e.componentState.items.map((e) => `- ${e.text}`).join("\n");
20630
+ if (e.type === X.IMAGE) {
20631
+ let t = e.componentState;
20632
+ return `"""MarkdownModuleImage
20633
+ src: ${t.src}
20634
+ alt: ${t.alt}
20635
+ caption: ${t.caption}
20636
+ """`;
20637
+ }
20638
+ return "";
20639
+ }).join("\n\n");
20640
+ }
20589
20641
  //#endregion
20590
20642
  //#region src/components/MarkdownEditor/Composable/useMarkdownProcessor.ts
20591
- function nD(e) {
20643
+ function aD(e) {
20592
20644
  let t = w([]), n = w(!1);
20593
- r(e.value ?? ""), se(t, () => {
20594
- n.value = !0, e.value = i(), _(() => {
20645
+ t.value = nD(e.value ?? ""), se(t, () => {
20646
+ n.value = !0, e.value = iD(t.value), _(() => {
20595
20647
  n.value = !1;
20596
20648
  });
20597
20649
  }, { deep: !0 }), se(e, (e) => {
20598
- n.value || (t.value = [], r(e ?? ""));
20650
+ n.value || (t.value = nD(e ?? ""));
20599
20651
  });
20600
20652
  function r(e) {
20601
- let n = WE().use(hE).parse(e);
20602
- for (let e of n.children) if (e.type === "paragraph" && e.children[0]?.type === "text") {
20603
- let n = e.children[0].value ?? "";
20604
- if (n.startsWith("\"\"\"") && n.endsWith("\"\"\"") && (n.split("\n")[0] ?? "").slice(3).trim() === "MarkdownModuleImage") {
20605
- let e = n.match(/src:\s*(\S+)/), r = n.match(/alt:\s*(.+)/), i = n.match(/caption:\s*(.+)/);
20606
- t.value.push(tD.createImageNode(e?.[1] ?? "", r?.[1] ?? "", i?.[1] ?? ""));
20607
- continue;
20608
- }
20609
- let r = rD(e.children);
20610
- t.value.push(tD.createTextNode(X.PARAGRAPH, r));
20611
- } else if (e.type === "heading" && e.depth === 1) {
20612
- let n = rD(e.children);
20613
- t.value.push(tD.createTextNode(X.HEADLINE1, n));
20614
- } else if (e.type === "heading" && e.depth === 2) t.value.push(tD.createTextNode(X.HEADLINE2, rD(e.children)));
20615
- else if (e.type === "heading" && e.depth === 3) t.value.push(tD.createTextNode(X.HEADLINE3, rD(e.children)));
20616
- else if (e.type === "list") {
20617
- let n = e.children.map((e) => {
20618
- let t = e.children.find((e) => e.type === "paragraph");
20619
- return t && t.type === "paragraph" ? rD(t.children) : "";
20620
- });
20621
- t.value.push(tD.createListNode(n));
20622
- }
20623
- }
20624
- function i() {
20625
- return t.value.map((e) => {
20626
- if (aS(e.type) && lC(e)) return `${{
20627
- [X.PARAGRAPH]: "",
20628
- [X.LIST]: "",
20629
- [X.HEADLINE1]: "# ",
20630
- [X.HEADLINE2]: "## ",
20631
- [X.HEADLINE3]: "### "
20632
- }[e.type]}${e.componentState.text}`;
20633
- if (e.type === X.LIST) return e.componentState.items.map((e) => `- ${e.text}`).join("\n");
20634
- if (e.type === X.IMAGE) {
20635
- let t = e.componentState;
20636
- return `"""MarkdownModuleImage
20637
- src: ${t.src}
20638
- alt: ${t.alt}
20639
- caption: ${t.caption}
20640
- """`;
20641
- }
20642
- return "";
20643
- }).join("\n\n");
20644
- }
20645
- function a(e) {
20646
20653
  _(() => {
20647
20654
  t.value.splice(e, 1);
20648
20655
  });
20649
20656
  }
20650
- function o(e) {
20651
- let n = tD.createBlankParagraph();
20657
+ function i(e) {
20658
+ let n = hC.createBlankParagraph();
20652
20659
  return e === void 0 ? t.value.push(n) : t.value.splice(e + 1, 0, n), e + 1;
20653
20660
  }
20654
- function s(e, n, r = "") {
20655
- let i = c(r, n);
20661
+ function a(e, n, r = "") {
20662
+ let i = o(r, n);
20656
20663
  return e === void 0 ? t.value.push(i) : t.value.splice(e + 1, 0, i), e + 1;
20657
20664
  }
20658
- function c(e, t) {
20659
- if (t === X.LIST) return tD.createListNode(e ? [e] : [""]);
20660
- if (aS(t)) return tD.createTextNode(t, e);
20661
- if (t === X.IMAGE) return tD.createImageNode(e, "", "");
20665
+ function o(e, t) {
20666
+ if (t === X.LIST) return hC.createListNode(e ? [e] : [""]);
20667
+ if (aS(t)) return hC.createTextNode(t, e);
20668
+ if (t === X.IMAGE) return hC.createImageNode(e, "", "");
20662
20669
  throw Error(`Unsupported node type: ${t}`);
20663
20670
  }
20664
- function l(e, n) {
20671
+ function s(e, n) {
20665
20672
  if (e.type === n) return null;
20666
20673
  let r = t.value.indexOf(e);
20667
20674
  if (r === -1) return null;
20668
- let i = c(lC(e) ? e.componentState.text : "", n);
20675
+ let i = o(lC(e) ? e.componentState.text : "", n);
20669
20676
  return t.value.splice(r, 1, i), {
20670
20677
  newNode: i,
20671
20678
  index: r
20672
20679
  };
20673
20680
  }
20674
- function u(e, n) {
20681
+ function c(e, n) {
20675
20682
  let [r] = t.value.splice(e, 1);
20676
20683
  r && t.value.splice(n, 0, r);
20677
20684
  }
20678
20685
  return {
20679
20686
  markdownNodes: t,
20680
- deleteNode: a,
20681
- addBlankNode: o,
20682
- addNodeWithType: s,
20683
- replaceNodeType: l,
20684
- moveNode: u
20687
+ deleteNode: r,
20688
+ addBlankNode: i,
20689
+ addNodeWithType: a,
20690
+ replaceNodeType: s,
20691
+ moveNode: c
20685
20692
  };
20686
20693
  }
20687
- function rD(e) {
20688
- let t = "";
20689
- for (let n of e) n.type === "text" && (t += n.value), n.type === "strong" && (t += `**${rD(n.children)}**`), n.type === "emphasis" && (t += `*${rD(n.children)}*`);
20690
- return t;
20691
- }
20692
20694
  //#endregion
20693
20695
  //#region src/components/MarkdownEditor/Composable/useMarkdownEditor.ts
20694
- function iD(e = "") {
20695
- let t = w(e), { markdownNodes: n, deleteNode: r, addBlankNode: i, addNodeWithType: a, replaceNodeType: o, moveNode: s } = nD(t);
20696
+ function oD(e = "") {
20697
+ let t = w(e), { markdownNodes: n, deleteNode: r, addBlankNode: i, addNodeWithType: a, replaceNodeType: o, moveNode: s } = aD(t);
20696
20698
  return {
20697
20699
  markdownContent: t,
20698
20700
  markdownNodes: n,
@@ -20704,4 +20706,77 @@ function iD(e = "") {
20704
20706
  };
20705
20707
  }
20706
20708
  //#endregion
20707
- export { eD as MarkdownAstNode, X as MarkdownAstNodeType, pC as MarkdownEditor, lC as isTextNodeState, aS as isTextNodeType, iD as useMarkdownEditor };
20709
+ //#region src/components/MarkdownRenderer/RenderModules/MarkdownModuleHeadline1Render.vue?vue&type=script&setup=true&lang.ts
20710
+ var sD = ["innerHTML"], cD = /* @__PURE__ */ u({
20711
+ __name: "MarkdownModuleHeadline1Render",
20712
+ props: { state: {} },
20713
+ setup(e) {
20714
+ let t = e, r = n(() => Y.parseInline(t.state.text));
20715
+ return (e, t) => (C(), a("h1", { innerHTML: r.value }, null, 8, sD));
20716
+ }
20717
+ }), lD = ["innerHTML"], uD = /* @__PURE__ */ u({
20718
+ __name: "MarkdownModuleHeadline2Render",
20719
+ props: { state: {} },
20720
+ setup(e) {
20721
+ let t = e, r = n(() => Y.parseInline(t.state.text));
20722
+ return (e, t) => (C(), a("h2", { innerHTML: r.value }, null, 8, lD));
20723
+ }
20724
+ }), dD = ["innerHTML"], fD = /* @__PURE__ */ u({
20725
+ __name: "MarkdownModuleHeadline3Render",
20726
+ props: { state: {} },
20727
+ setup(e) {
20728
+ let t = e, r = n(() => Y.parseInline(t.state.text));
20729
+ return (e, t) => (C(), a("h3", { innerHTML: r.value }, null, 8, dD));
20730
+ }
20731
+ }), pD = ["src", "alt"], mD = { key: 0 }, hD = /* @__PURE__ */ u({
20732
+ __name: "MarkdownModuleImageRender",
20733
+ props: { state: {} },
20734
+ setup(e) {
20735
+ return (t, n) => (C(), a("figure", null, [o("img", {
20736
+ src: e.state.src,
20737
+ alt: e.state.alt,
20738
+ loading: "lazy"
20739
+ }, null, 8, pD), e.state.caption ? (C(), a("figcaption", mD, re(e.state.caption), 1)) : i("", !0)]));
20740
+ }
20741
+ }), gD = ["innerHTML"], _D = /* @__PURE__ */ u({
20742
+ __name: "MarkdownModuleListRender",
20743
+ props: { state: {} },
20744
+ setup(t) {
20745
+ function n(e) {
20746
+ return Y.parseInline(e.text);
20747
+ }
20748
+ return (r, i) => (C(), a("ul", null, [(C(!0), a(e, null, T(t.state.items, (e, t) => (C(), a("li", {
20749
+ key: t,
20750
+ innerHTML: n(e)
20751
+ }, null, 8, gD))), 128))]));
20752
+ }
20753
+ }), vD = ["innerHTML"], yD = /* @__PURE__ */ u({
20754
+ __name: "MarkdownModuleParagraphRender",
20755
+ props: { state: {} },
20756
+ setup(e) {
20757
+ let t = e, r = n(() => Y.parseInline(t.state.text));
20758
+ return (e, t) => (C(), a("p", { innerHTML: r.value }, null, 8, vD));
20759
+ }
20760
+ }), bD = {
20761
+ [X.PARAGRAPH]: yD,
20762
+ [X.HEADLINE1]: cD,
20763
+ [X.HEADLINE2]: uD,
20764
+ [X.HEADLINE3]: fD,
20765
+ [X.LIST]: _D,
20766
+ [X.IMAGE]: hD
20767
+ }, xD = { class: "markdown-renderer" }, SD = /* @__PURE__ */ u({
20768
+ __name: "MarkdownRenderer",
20769
+ props: { markdown: {
20770
+ type: String,
20771
+ required: !0
20772
+ } },
20773
+ setup(t) {
20774
+ let o = t, s = n(() => nD(o.markdown));
20775
+ return (t, n) => (C(), a("div", xD, [s.value.length > 0 ? (C(!0), a(e, { key: 0 }, T(s.value, (e) => (C(), r(E(O(bD)[e.type]), {
20776
+ key: e.id,
20777
+ state: e.componentState
20778
+ }, null, 8, ["state"]))), 128)) : i("", !0)]));
20779
+ }
20780
+ });
20781
+ //#endregion
20782
+ export { mC as MarkdownAstNode, X as MarkdownAstNodeType, pC as MarkdownEditor, SD as MarkdownRenderer, bD as RenderComponentRegistry, lC as isTextNodeState, aS as isTextNodeType, oD as useMarkdownEditor };