@jxsuite/parser 0.32.0 → 0.34.0

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.
package/dist/markdown.js CHANGED
@@ -1740,12 +1740,12 @@ var convert = function(test) {
1740
1740
  // ../../node_modules/unist-util-is/index.js
1741
1741
  var init_unist_util_is = () => {};
1742
1742
 
1743
- // ../../node_modules/unist-util-visit-parents/lib/color.node.js
1743
+ // ../../node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/color.node.js
1744
1744
  function color(d) {
1745
1745
  return "\x1B[33m" + d + "\x1B[39m";
1746
1746
  }
1747
1747
 
1748
- // ../../node_modules/unist-util-visit-parents/lib/index.js
1748
+ // ../../node_modules/unist-util-visit/node_modules/unist-util-visit-parents/lib/index.js
1749
1749
  function visitParents(tree, test, visitor, reverse) {
1750
1750
  let check;
1751
1751
  if (typeof test === "function" && typeof visitor !== "function") {
@@ -1811,7 +1811,7 @@ var init_lib4 = __esm(() => {
1811
1811
  empty = [];
1812
1812
  });
1813
1813
 
1814
- // ../../node_modules/unist-util-visit-parents/index.js
1814
+ // ../../node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js
1815
1815
  var init_unist_util_visit_parents = __esm(() => {
1816
1816
  init_lib4();
1817
1817
  });
@@ -5625,6 +5625,82 @@ var init_stringify_entities = __esm(() => {
5625
5625
  init_lib11();
5626
5626
  });
5627
5627
 
5628
+ // ../../node_modules/mdast-util-directive/node_modules/unist-util-visit-parents/lib/color.node.js
5629
+ function color2(d) {
5630
+ return "\x1B[33m" + d + "\x1B[39m";
5631
+ }
5632
+
5633
+ // ../../node_modules/mdast-util-directive/node_modules/unist-util-visit-parents/lib/index.js
5634
+ function visitParents2(tree, test, visitor, reverse) {
5635
+ let check;
5636
+ if (typeof test === "function" && typeof visitor !== "function") {
5637
+ reverse = visitor;
5638
+ visitor = test;
5639
+ } else {
5640
+ check = test;
5641
+ }
5642
+ const is2 = convert(check);
5643
+ const step = reverse ? -1 : 1;
5644
+ factory(tree, undefined, [])();
5645
+ function factory(node2, index2, parents) {
5646
+ const value = node2 && typeof node2 === "object" ? node2 : {};
5647
+ if (typeof value.type === "string") {
5648
+ const name = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : undefined;
5649
+ Object.defineProperty(visit2, "name", {
5650
+ value: "node (" + color2(node2.type + (name ? "<" + name + ">" : "")) + ")"
5651
+ });
5652
+ }
5653
+ return visit2;
5654
+ function visit2() {
5655
+ let result = empty2;
5656
+ let subresult;
5657
+ let offset;
5658
+ let grandparents;
5659
+ if (!test || is2(node2, index2, parents[parents.length - 1] || undefined)) {
5660
+ result = toResult2(visitor(node2, parents));
5661
+ if (result[0] === EXIT2) {
5662
+ return result;
5663
+ }
5664
+ }
5665
+ if ("children" in node2 && node2.children) {
5666
+ const nodeAsParent = node2;
5667
+ if (nodeAsParent.children && result[0] !== SKIP2) {
5668
+ offset = (reverse ? nodeAsParent.children.length : -1) + step;
5669
+ grandparents = parents.concat(nodeAsParent);
5670
+ while (offset > -1 && offset < nodeAsParent.children.length) {
5671
+ const child = nodeAsParent.children[offset];
5672
+ subresult = factory(child, offset, grandparents)();
5673
+ if (subresult[0] === EXIT2) {
5674
+ return subresult;
5675
+ }
5676
+ offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
5677
+ }
5678
+ }
5679
+ }
5680
+ return result;
5681
+ }
5682
+ }
5683
+ }
5684
+ function toResult2(value) {
5685
+ if (Array.isArray(value)) {
5686
+ return value;
5687
+ }
5688
+ if (typeof value === "number") {
5689
+ return [CONTINUE2, value];
5690
+ }
5691
+ return value === null || value === undefined ? empty2 : [value];
5692
+ }
5693
+ var empty2, CONTINUE2 = true, EXIT2 = false, SKIP2 = "skip";
5694
+ var init_lib12 = __esm(() => {
5695
+ init_unist_util_is();
5696
+ empty2 = [];
5697
+ });
5698
+
5699
+ // ../../node_modules/mdast-util-directive/node_modules/unist-util-visit-parents/index.js
5700
+ var init_unist_util_visit_parents2 = __esm(() => {
5701
+ init_lib12();
5702
+ });
5703
+
5628
5704
  // ../../node_modules/mdast-util-directive/lib/index.js
5629
5705
  function directiveFromMarkdown() {
5630
5706
  return {
@@ -5877,7 +5953,7 @@ function inlineDirectiveLabel(node2) {
5877
5953
  function fence(node2) {
5878
5954
  let size = 0;
5879
5955
  if (node2.type === "containerDirective") {
5880
- visitParents(node2, function(node3, parents) {
5956
+ visitParents2(node2, function(node3, parents) {
5881
5957
  if (node3.type === "containerDirective") {
5882
5958
  let index2 = parents.length;
5883
5959
  let nesting = 0;
@@ -5899,11 +5975,11 @@ function fence(node2) {
5899
5975
  return ":".repeat(size);
5900
5976
  }
5901
5977
  var own5, emptyOptions2, shortcut, unquoted;
5902
- var init_lib12 = __esm(() => {
5978
+ var init_lib13 = __esm(() => {
5903
5979
  init_development();
5904
5980
  init_parse_entities();
5905
5981
  init_stringify_entities();
5906
- init_unist_util_visit_parents();
5982
+ init_unist_util_visit_parents2();
5907
5983
  own5 = {}.hasOwnProperty;
5908
5984
  emptyOptions2 = {};
5909
5985
  shortcut = /^[^\t\n\r "#'.<=>`}]+$/;
@@ -5912,7 +5988,7 @@ var init_lib12 = __esm(() => {
5912
5988
 
5913
5989
  // ../../node_modules/mdast-util-directive/index.js
5914
5990
  var init_mdast_util_directive = __esm(() => {
5915
- init_lib12();
5991
+ init_lib13();
5916
5992
  });
5917
5993
 
5918
5994
  // ../../node_modules/micromark-factory-space/dev/index.js
@@ -6577,14 +6653,14 @@ function remarkDirective() {
6577
6653
  fromMarkdownExtensions.push(directiveFromMarkdown());
6578
6654
  toMarkdownExtensions.push(directiveToMarkdown());
6579
6655
  }
6580
- var init_lib13 = __esm(() => {
6656
+ var init_lib14 = __esm(() => {
6581
6657
  init_mdast_util_directive();
6582
6658
  init_dev7();
6583
6659
  });
6584
6660
 
6585
6661
  // ../../node_modules/remark-directive/index.js
6586
6662
  var init_remark_directive = __esm(() => {
6587
- init_lib13();
6663
+ init_lib14();
6588
6664
  });
6589
6665
 
6590
6666
  // ../../node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
@@ -6595,6 +6671,82 @@ function escapeStringRegexp(string) {
6595
6671
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
6596
6672
  }
6597
6673
 
6674
+ // ../../node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/color.node.js
6675
+ function color3(d) {
6676
+ return "\x1B[33m" + d + "\x1B[39m";
6677
+ }
6678
+
6679
+ // ../../node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/lib/index.js
6680
+ function visitParents3(tree, test, visitor, reverse) {
6681
+ let check;
6682
+ if (typeof test === "function" && typeof visitor !== "function") {
6683
+ reverse = visitor;
6684
+ visitor = test;
6685
+ } else {
6686
+ check = test;
6687
+ }
6688
+ const is2 = convert(check);
6689
+ const step = reverse ? -1 : 1;
6690
+ factory(tree, undefined, [])();
6691
+ function factory(node2, index2, parents) {
6692
+ const value = node2 && typeof node2 === "object" ? node2 : {};
6693
+ if (typeof value.type === "string") {
6694
+ const name = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : undefined;
6695
+ Object.defineProperty(visit2, "name", {
6696
+ value: "node (" + color3(node2.type + (name ? "<" + name + ">" : "")) + ")"
6697
+ });
6698
+ }
6699
+ return visit2;
6700
+ function visit2() {
6701
+ let result = empty3;
6702
+ let subresult;
6703
+ let offset;
6704
+ let grandparents;
6705
+ if (!test || is2(node2, index2, parents[parents.length - 1] || undefined)) {
6706
+ result = toResult3(visitor(node2, parents));
6707
+ if (result[0] === EXIT3) {
6708
+ return result;
6709
+ }
6710
+ }
6711
+ if ("children" in node2 && node2.children) {
6712
+ const nodeAsParent = node2;
6713
+ if (nodeAsParent.children && result[0] !== SKIP3) {
6714
+ offset = (reverse ? nodeAsParent.children.length : -1) + step;
6715
+ grandparents = parents.concat(nodeAsParent);
6716
+ while (offset > -1 && offset < nodeAsParent.children.length) {
6717
+ const child = nodeAsParent.children[offset];
6718
+ subresult = factory(child, offset, grandparents)();
6719
+ if (subresult[0] === EXIT3) {
6720
+ return subresult;
6721
+ }
6722
+ offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
6723
+ }
6724
+ }
6725
+ }
6726
+ return result;
6727
+ }
6728
+ }
6729
+ }
6730
+ function toResult3(value) {
6731
+ if (Array.isArray(value)) {
6732
+ return value;
6733
+ }
6734
+ if (typeof value === "number") {
6735
+ return [CONTINUE3, value];
6736
+ }
6737
+ return value === null || value === undefined ? empty3 : [value];
6738
+ }
6739
+ var empty3, CONTINUE3 = true, EXIT3 = false, SKIP3 = "skip";
6740
+ var init_lib15 = __esm(() => {
6741
+ init_unist_util_is();
6742
+ empty3 = [];
6743
+ });
6744
+
6745
+ // ../../node_modules/mdast-util-find-and-replace/node_modules/unist-util-visit-parents/index.js
6746
+ var init_unist_util_visit_parents3 = __esm(() => {
6747
+ init_lib15();
6748
+ });
6749
+
6598
6750
  // ../../node_modules/mdast-util-find-and-replace/lib/index.js
6599
6751
  function findAndReplace(tree, list3, options) {
6600
6752
  const settings = options || {};
@@ -6602,7 +6754,7 @@ function findAndReplace(tree, list3, options) {
6602
6754
  const pairs = toPairs(list3);
6603
6755
  let pairIndex = -1;
6604
6756
  while (++pairIndex < pairs.length) {
6605
- visitParents(tree, "text", visitor);
6757
+ visitParents3(tree, "text", visitor);
6606
6758
  }
6607
6759
  function visitor(node2, parents) {
6608
6760
  let index2 = -1;
@@ -6695,14 +6847,14 @@ function toFunction(replace) {
6695
6847
  return replace;
6696
6848
  };
6697
6849
  }
6698
- var init_lib14 = __esm(() => {
6699
- init_unist_util_visit_parents();
6850
+ var init_lib16 = __esm(() => {
6851
+ init_unist_util_visit_parents3();
6700
6852
  init_unist_util_is();
6701
6853
  });
6702
6854
 
6703
6855
  // ../../node_modules/mdast-util-find-and-replace/index.js
6704
6856
  var init_mdast_util_find_and_replace = __esm(() => {
6705
- init_lib14();
6857
+ init_lib16();
6706
6858
  });
6707
6859
 
6708
6860
  // ../../node_modules/mdast-util-gfm-autolink-literal/lib/index.js
@@ -6845,7 +6997,7 @@ function previous2(match, email) {
6845
6997
  return (match.index === 0 || unicodeWhitespace(code2) || unicodePunctuation(code2)) && (!email || code2 !== 47);
6846
6998
  }
6847
6999
  var inConstruct = "phrasing", notInConstruct;
6848
- var init_lib15 = __esm(() => {
7000
+ var init_lib17 = __esm(() => {
6849
7001
  init_development();
6850
7002
  init_dev();
6851
7003
  init_mdast_util_find_and_replace();
@@ -6854,7 +7006,7 @@ var init_lib15 = __esm(() => {
6854
7006
 
6855
7007
  // ../../node_modules/mdast-util-gfm-autolink-literal/index.js
6856
7008
  var init_mdast_util_gfm_autolink_literal = __esm(() => {
6857
- init_lib15();
7009
+ init_lib17();
6858
7010
  });
6859
7011
 
6860
7012
  // ../../node_modules/micromark-util-normalize-identifier/dev/index.js
@@ -6960,7 +7112,7 @@ function mapExceptFirst(line, index2, blank) {
6960
7112
  function mapAll(line, index2, blank) {
6961
7113
  return (blank ? "" : " ") + line;
6962
7114
  }
6963
- var init_lib16 = __esm(() => {
7115
+ var init_lib18 = __esm(() => {
6964
7116
  init_development();
6965
7117
  init_dev8();
6966
7118
  footnoteReference.peek = footnoteReferencePeek;
@@ -6968,7 +7120,7 @@ var init_lib16 = __esm(() => {
6968
7120
 
6969
7121
  // ../../node_modules/mdast-util-gfm-footnote/index.js
6970
7122
  var init_mdast_util_gfm_footnote = __esm(() => {
6971
- init_lib16();
7123
+ init_lib18();
6972
7124
  });
6973
7125
 
6974
7126
  // ../../node_modules/mdast-util-gfm-strikethrough/lib/index.js
@@ -7014,7 +7166,7 @@ function peekDelete() {
7014
7166
  return "~";
7015
7167
  }
7016
7168
  var constructsWithoutStrikethrough;
7017
- var init_lib17 = __esm(() => {
7169
+ var init_lib19 = __esm(() => {
7018
7170
  constructsWithoutStrikethrough = [
7019
7171
  "autolink",
7020
7172
  "destinationLiteral",
@@ -7028,7 +7180,7 @@ var init_lib17 = __esm(() => {
7028
7180
 
7029
7181
  // ../../node_modules/mdast-util-gfm-strikethrough/index.js
7030
7182
  var init_mdast_util_gfm_strikethrough = __esm(() => {
7031
- init_lib17();
7183
+ init_lib19();
7032
7184
  });
7033
7185
 
7034
7186
  // ../../node_modules/markdown-table/index.js
@@ -7304,14 +7456,14 @@ function gfmTableToMarkdown(options) {
7304
7456
  return value;
7305
7457
  }
7306
7458
  }
7307
- var init_lib18 = __esm(() => {
7459
+ var init_lib20 = __esm(() => {
7308
7460
  init_development();
7309
7461
  init_mdast_util_to_markdown();
7310
7462
  });
7311
7463
 
7312
7464
  // ../../node_modules/mdast-util-gfm-table/index.js
7313
7465
  var init_mdast_util_gfm_table = __esm(() => {
7314
- init_lib18();
7466
+ init_lib20();
7315
7467
  });
7316
7468
 
7317
7469
  // ../../node_modules/mdast-util-gfm-task-list-item/lib/index.js
@@ -7386,14 +7538,14 @@ function listItemWithTaskListItem(node2, parent, state, info) {
7386
7538
  return $0 + checkbox;
7387
7539
  }
7388
7540
  }
7389
- var init_lib19 = __esm(() => {
7541
+ var init_lib21 = __esm(() => {
7390
7542
  init_development();
7391
7543
  init_mdast_util_to_markdown();
7392
7544
  });
7393
7545
 
7394
7546
  // ../../node_modules/mdast-util-gfm-task-list-item/index.js
7395
7547
  var init_mdast_util_gfm_task_list_item = __esm(() => {
7396
- init_lib19();
7548
+ init_lib21();
7397
7549
  });
7398
7550
 
7399
7551
  // ../../node_modules/mdast-util-gfm/lib/index.js
@@ -7417,7 +7569,7 @@ function gfmToMarkdown(options) {
7417
7569
  ]
7418
7570
  };
7419
7571
  }
7420
- var init_lib20 = __esm(() => {
7572
+ var init_lib22 = __esm(() => {
7421
7573
  init_mdast_util_gfm_autolink_literal();
7422
7574
  init_mdast_util_gfm_footnote();
7423
7575
  init_mdast_util_gfm_strikethrough();
@@ -7427,7 +7579,7 @@ var init_lib20 = __esm(() => {
7427
7579
 
7428
7580
  // ../../node_modules/mdast-util-gfm/index.js
7429
7581
  var init_mdast_util_gfm = __esm(() => {
7430
- init_lib20();
7582
+ init_lib22();
7431
7583
  });
7432
7584
 
7433
7585
  // ../../node_modules/micromark-util-chunked/dev/index.js
@@ -11789,7 +11941,7 @@ function remarkGfm(options) {
11789
11941
  toMarkdownExtensions.push(gfmToMarkdown(settings));
11790
11942
  }
11791
11943
  var emptyOptions3;
11792
- var init_lib21 = __esm(() => {
11944
+ var init_lib23 = __esm(() => {
11793
11945
  init_mdast_util_gfm();
11794
11946
  init_micromark_extension_gfm();
11795
11947
  emptyOptions3 = {};
@@ -11797,7 +11949,7 @@ var init_lib21 = __esm(() => {
11797
11949
 
11798
11950
  // ../../node_modules/remark-gfm/index.js
11799
11951
  var init_remark_gfm = __esm(() => {
11800
- init_lib21();
11952
+ init_lib23();
11801
11953
  });
11802
11954
 
11803
11955
  // ../../node_modules/yaml/dist/nodes/identity.js
@@ -11858,7 +12010,7 @@ var require_identity = __commonJS((exports) => {
11858
12010
  var require_visit = __commonJS((exports) => {
11859
12011
  var identity = require_identity();
11860
12012
  var BREAK = Symbol("break visit");
11861
- var SKIP2 = Symbol("skip children");
12013
+ var SKIP4 = Symbol("skip children");
11862
12014
  var REMOVE = Symbol("remove node");
11863
12015
  function visit2(node2, visitor) {
11864
12016
  const visitor_ = initVisitor(visitor);
@@ -11870,7 +12022,7 @@ var require_visit = __commonJS((exports) => {
11870
12022
  visit_(null, node2, visitor_, Object.freeze([]));
11871
12023
  }
11872
12024
  visit2.BREAK = BREAK;
11873
- visit2.SKIP = SKIP2;
12025
+ visit2.SKIP = SKIP4;
11874
12026
  visit2.REMOVE = REMOVE;
11875
12027
  function visit_(key, node2, visitor, path2) {
11876
12028
  const ctrl = callVisitor(key, node2, visitor, path2);
@@ -11918,7 +12070,7 @@ var require_visit = __commonJS((exports) => {
11918
12070
  await visitAsync_(null, node2, visitor_, Object.freeze([]));
11919
12071
  }
11920
12072
  visitAsync.BREAK = BREAK;
11921
- visitAsync.SKIP = SKIP2;
12073
+ visitAsync.SKIP = SKIP4;
11922
12074
  visitAsync.REMOVE = REMOVE;
11923
12075
  async function visitAsync_(key, node2, visitor, path2) {
11924
12076
  const ctrl = await callVisitor(key, node2, visitor, path2);
@@ -17009,7 +17161,7 @@ var require_cst_stringify = __commonJS((exports) => {
17009
17161
  // ../../node_modules/yaml/dist/parse/cst-visit.js
17010
17162
  var require_cst_visit = __commonJS((exports) => {
17011
17163
  var BREAK = Symbol("break visit");
17012
- var SKIP2 = Symbol("skip children");
17164
+ var SKIP4 = Symbol("skip children");
17013
17165
  var REMOVE = Symbol("remove item");
17014
17166
  function visit2(cst, visitor) {
17015
17167
  if ("type" in cst && cst.type === "document")
@@ -17017,7 +17169,7 @@ var require_cst_visit = __commonJS((exports) => {
17017
17169
  _visit(Object.freeze([]), cst, visitor);
17018
17170
  }
17019
17171
  visit2.BREAK = BREAK;
17020
- visit2.SKIP = SKIP2;
17172
+ visit2.SKIP = SKIP4;
17021
17173
  visit2.REMOVE = REMOVE;
17022
17174
  visit2.itemAtPath = (cst, path2) => {
17023
17175
  let item = cst;
@@ -20030,13 +20182,13 @@ function parseSelector(selector, defaultTagName) {
20030
20182
  };
20031
20183
  }
20032
20184
  var search;
20033
- var init_lib22 = __esm(() => {
20185
+ var init_lib24 = __esm(() => {
20034
20186
  search = /[#.]/g;
20035
20187
  });
20036
20188
 
20037
20189
  // ../../node_modules/hast-util-parse-selector/index.js
20038
20190
  var init_hast_util_parse_selector = __esm(() => {
20039
- init_lib22();
20191
+ init_lib24();
20040
20192
  });
20041
20193
 
20042
20194
  // ../../node_modules/space-separated-tokens/index.js
@@ -20237,7 +20389,7 @@ var init_svg_case_sensitive_tag_names = __esm(() => {
20237
20389
 
20238
20390
  // ../../node_modules/hastscript/lib/index.js
20239
20391
  var h, s;
20240
- var init_lib23 = __esm(() => {
20392
+ var init_lib25 = __esm(() => {
20241
20393
  init_property_information();
20242
20394
  init_create_h();
20243
20395
  init_svg_case_sensitive_tag_names();
@@ -20247,7 +20399,7 @@ var init_lib23 = __esm(() => {
20247
20399
 
20248
20400
  // ../../node_modules/hastscript/index.js
20249
20401
  var init_hastscript = __esm(() => {
20250
- init_lib23();
20402
+ init_lib25();
20251
20403
  });
20252
20404
 
20253
20405
  // ../../node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.js
@@ -21652,7 +21804,7 @@ function point2(point3) {
21652
21804
  return point3.line && point3.column ? point3 : undefined;
21653
21805
  }
21654
21806
  var own6, proto;
21655
- var init_lib24 = __esm(() => {
21807
+ var init_lib26 = __esm(() => {
21656
21808
  init_development();
21657
21809
  init_hastscript();
21658
21810
  init_property_information2();
@@ -21664,7 +21816,7 @@ var init_lib24 = __esm(() => {
21664
21816
 
21665
21817
  // ../../node_modules/hast-util-from-parse5/index.js
21666
21818
  var init_hast_util_from_parse5 = __esm(() => {
21667
- init_lib24();
21819
+ init_lib26();
21668
21820
  });
21669
21821
 
21670
21822
  // ../../node_modules/parse5/dist/common/unicode.js
@@ -29557,7 +29709,7 @@ function visualizeCharacterCode(charCode) {
29557
29709
  return "0x" + charCode.toString(16).toUpperCase();
29558
29710
  }
29559
29711
  var base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-", dashToCamelRe, formatCRe, formatXRe, fatalities, emptyOptions4;
29560
- var init_lib25 = __esm(() => {
29712
+ var init_lib27 = __esm(() => {
29561
29713
  init_development();
29562
29714
  init_hast_util_from_parse5();
29563
29715
  init_dist3();
@@ -29573,24 +29725,24 @@ var init_lib25 = __esm(() => {
29573
29725
 
29574
29726
  // ../../node_modules/hast-util-from-html/index.js
29575
29727
  var init_hast_util_from_html = __esm(() => {
29576
- init_lib25();
29728
+ init_lib27();
29577
29729
  });
29578
29730
 
29579
29731
  // ../../node_modules/hast-util-whitespace/lib/index.js
29580
29732
  function whitespace(thing) {
29581
- return typeof thing === "object" ? thing.type === "text" ? empty2(thing.value) : false : empty2(thing);
29733
+ return typeof thing === "object" ? thing.type === "text" ? empty4(thing.value) : false : empty4(thing);
29582
29734
  }
29583
- function empty2(value) {
29735
+ function empty4(value) {
29584
29736
  return value.replace(re, "") === "";
29585
29737
  }
29586
29738
  var re;
29587
- var init_lib26 = __esm(() => {
29739
+ var init_lib28 = __esm(() => {
29588
29740
  re = /[ \t\n\f\r]/g;
29589
29741
  });
29590
29742
 
29591
29743
  // ../../node_modules/hast-util-whitespace/index.js
29592
29744
  var init_hast_util_whitespace = __esm(() => {
29593
- init_lib26();
29745
+ init_lib28();
29594
29746
  });
29595
29747
 
29596
29748
  // ../../node_modules/property-information/lib/util/schema.js
@@ -31822,28 +31974,34 @@ var require_browser = __commonJS((exports, module) => {
31822
31974
 
31823
31975
  // ../../node_modules/has-flag/index.js
31824
31976
  var require_has_flag = __commonJS((exports, module) => {
31825
- module.exports = (flag, argv) => {
31826
- argv = argv || process.argv;
31977
+ module.exports = (flag, argv = process.argv) => {
31827
31978
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
31828
- const pos = argv.indexOf(prefix + flag);
31829
- const terminatorPos = argv.indexOf("--");
31830
- return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
31979
+ const position3 = argv.indexOf(prefix + flag);
31980
+ const terminatorPosition = argv.indexOf("--");
31981
+ return position3 !== -1 && (terminatorPosition === -1 || position3 < terminatorPosition);
31831
31982
  };
31832
31983
  });
31833
31984
 
31834
31985
  // ../../node_modules/supports-color/index.js
31835
31986
  var require_supports_color = __commonJS((exports, module) => {
31836
31987
  var os = __require("os");
31988
+ var tty = __require("tty");
31837
31989
  var hasFlag = require_has_flag();
31838
- var env = process.env;
31990
+ var { env } = process;
31839
31991
  var forceColor;
31840
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
31841
- forceColor = false;
31992
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
31993
+ forceColor = 0;
31842
31994
  } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
31843
- forceColor = true;
31995
+ forceColor = 1;
31844
31996
  }
31845
31997
  if ("FORCE_COLOR" in env) {
31846
- forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
31998
+ if (env.FORCE_COLOR === "true") {
31999
+ forceColor = 1;
32000
+ } else if (env.FORCE_COLOR === "false") {
32001
+ forceColor = 0;
32002
+ } else {
32003
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
32004
+ }
31847
32005
  }
31848
32006
  function translateLevel(level) {
31849
32007
  if (level === 0) {
@@ -31856,8 +32014,8 @@ var require_supports_color = __commonJS((exports, module) => {
31856
32014
  has16m: level >= 3
31857
32015
  };
31858
32016
  }
31859
- function supportsColor(stream) {
31860
- if (forceColor === false) {
32017
+ function supportsColor(haveStream, streamIsTTY) {
32018
+ if (forceColor === 0) {
31861
32019
  return 0;
31862
32020
  }
31863
32021
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
@@ -31866,19 +32024,22 @@ var require_supports_color = __commonJS((exports, module) => {
31866
32024
  if (hasFlag("color=256")) {
31867
32025
  return 2;
31868
32026
  }
31869
- if (stream && !stream.isTTY && forceColor !== true) {
32027
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
31870
32028
  return 0;
31871
32029
  }
31872
- const min = forceColor ? 1 : 0;
32030
+ const min = forceColor || 0;
32031
+ if (env.TERM === "dumb") {
32032
+ return min;
32033
+ }
31873
32034
  if (process.platform === "win32") {
31874
32035
  const osRelease = os.release().split(".");
31875
- if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
32036
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
31876
32037
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
31877
32038
  }
31878
32039
  return 1;
31879
32040
  }
31880
32041
  if ("CI" in env) {
31881
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
32042
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
31882
32043
  return 1;
31883
32044
  }
31884
32045
  return min;
@@ -31907,19 +32068,16 @@ var require_supports_color = __commonJS((exports, module) => {
31907
32068
  if ("COLORTERM" in env) {
31908
32069
  return 1;
31909
32070
  }
31910
- if (env.TERM === "dumb") {
31911
- return min;
31912
- }
31913
32071
  return min;
31914
32072
  }
31915
32073
  function getSupportLevel(stream) {
31916
- const level = supportsColor(stream);
32074
+ const level = supportsColor(stream, stream && stream.isTTY);
31917
32075
  return translateLevel(level);
31918
32076
  }
31919
32077
  module.exports = {
31920
32078
  supportsColor: getSupportLevel,
31921
- stdout: getSupportLevel(process.stdout),
31922
- stderr: getSupportLevel(process.stderr)
32079
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
32080
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
31923
32081
  };
31924
32082
  });
31925
32083
 
@@ -33262,7 +33420,7 @@ function defaultOnError(left, right) {
33262
33420
  }
33263
33421
  }
33264
33422
  var own7;
33265
- var init_lib27 = __esm(() => {
33423
+ var init_lib29 = __esm(() => {
33266
33424
  init_development();
33267
33425
  init_mdast_util_to_string();
33268
33426
  init_dev20();
@@ -33277,7 +33435,7 @@ var init_lib27 = __esm(() => {
33277
33435
 
33278
33436
  // ../../node_modules/mdast-util-from-markdown/dev/index.js
33279
33437
  var init_dev21 = __esm(() => {
33280
- init_lib27();
33438
+ init_lib29();
33281
33439
  });
33282
33440
 
33283
33441
  // ../../node_modules/remark-parse/lib/index.js
@@ -33293,13 +33451,13 @@ function remarkParse(options) {
33293
33451
  });
33294
33452
  }
33295
33453
  }
33296
- var init_lib28 = __esm(() => {
33454
+ var init_lib30 = __esm(() => {
33297
33455
  init_dev21();
33298
33456
  });
33299
33457
 
33300
33458
  // ../../node_modules/remark-parse/index.js
33301
33459
  var init_remark_parse = __esm(() => {
33302
- init_lib28();
33460
+ init_lib30();
33303
33461
  });
33304
33462
 
33305
33463
  // ../../node_modules/format/format.js
@@ -33698,14 +33856,14 @@ function fence3(matter2, prop) {
33698
33856
  function pick2(schema, prop) {
33699
33857
  return typeof schema === "string" ? schema : schema[prop];
33700
33858
  }
33701
- var init_lib29 = __esm(() => {
33859
+ var init_lib31 = __esm(() => {
33702
33860
  init_development();
33703
33861
  init_dev22();
33704
33862
  });
33705
33863
 
33706
33864
  // ../../node_modules/mdast-util-frontmatter/index.js
33707
33865
  var init_mdast_util_frontmatter = __esm(() => {
33708
- init_lib29();
33866
+ init_lib31();
33709
33867
  });
33710
33868
 
33711
33869
  // ../../node_modules/remark-frontmatter/lib/index.js
@@ -33721,17 +33879,17 @@ function remarkFrontmatter(options) {
33721
33879
  toMarkdownExtensions.push(frontmatterToMarkdown(settings));
33722
33880
  }
33723
33881
  var emptyOptions5 = "yaml";
33724
- var init_lib30 = __esm(() => {
33882
+ var init_lib32 = __esm(() => {
33725
33883
  init_mdast_util_frontmatter();
33726
33884
  init_dev22();
33727
33885
  });
33728
33886
 
33729
33887
  // ../../node_modules/remark-frontmatter/index.js
33730
33888
  var init_remark_frontmatter = __esm(() => {
33731
- init_lib30();
33889
+ init_lib32();
33732
33890
  });
33733
33891
 
33734
- // ../../node_modules/unist-util-find/node_modules/unist-util-visit/node_modules/unist-util-is/convert.js
33892
+ // ../../node_modules/unist-util-visit-parents/node_modules/unist-util-is/convert.js
33735
33893
  var require_convert = __commonJS((exports, module) => {
33736
33894
  module.exports = convert2;
33737
33895
  function convert2(test) {
@@ -33788,26 +33946,26 @@ var require_convert = __commonJS((exports, module) => {
33788
33946
  }
33789
33947
  });
33790
33948
 
33791
- // ../../node_modules/unist-util-find/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/color.js
33949
+ // ../../node_modules/unist-util-visit-parents/color.js
33792
33950
  var require_color = __commonJS((exports, module) => {
33793
- module.exports = color2;
33794
- function color2(d) {
33951
+ module.exports = color4;
33952
+ function color4(d) {
33795
33953
  return "\x1B[33m" + d + "\x1B[39m";
33796
33954
  }
33797
33955
  });
33798
33956
 
33799
- // ../../node_modules/unist-util-find/node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js
33957
+ // ../../node_modules/unist-util-visit-parents/index.js
33800
33958
  var require_unist_util_visit_parents = __commonJS((exports, module) => {
33801
- module.exports = visitParents2;
33959
+ module.exports = visitParents4;
33802
33960
  var convert2 = require_convert();
33803
- var color2 = require_color();
33804
- var CONTINUE2 = true;
33805
- var SKIP2 = "skip";
33806
- var EXIT2 = false;
33807
- visitParents2.CONTINUE = CONTINUE2;
33808
- visitParents2.SKIP = SKIP2;
33809
- visitParents2.EXIT = EXIT2;
33810
- function visitParents2(tree, test, visitor, reverse) {
33961
+ var color4 = require_color();
33962
+ var CONTINUE4 = true;
33963
+ var SKIP4 = "skip";
33964
+ var EXIT4 = false;
33965
+ visitParents4.CONTINUE = CONTINUE4;
33966
+ visitParents4.SKIP = SKIP4;
33967
+ visitParents4.EXIT = EXIT4;
33968
+ function visitParents4(tree, test, visitor, reverse) {
33811
33969
  var step;
33812
33970
  var is2;
33813
33971
  if (typeof test === "function" && typeof visitor !== "function") {
@@ -33823,7 +33981,7 @@ var require_unist_util_visit_parents = __commonJS((exports, module) => {
33823
33981
  var name;
33824
33982
  if (typeof value2.type === "string") {
33825
33983
  name = typeof value2.tagName === "string" ? value2.tagName : typeof value2.name === "string" ? value2.name : undefined;
33826
- visit3.displayName = "node (" + color2(value2.type + (name ? "<" + name + ">" : "")) + ")";
33984
+ visit3.displayName = "node (" + color4(value2.type + (name ? "<" + name + ">" : "")) + ")";
33827
33985
  }
33828
33986
  return visit3;
33829
33987
  function visit3() {
@@ -33832,16 +33990,16 @@ var require_unist_util_visit_parents = __commonJS((exports, module) => {
33832
33990
  var subresult;
33833
33991
  var offset;
33834
33992
  if (!test || is2(node2, index2, parents[parents.length - 1] || null)) {
33835
- result = toResult2(visitor(node2, parents));
33836
- if (result[0] === EXIT2) {
33993
+ result = toResult4(visitor(node2, parents));
33994
+ if (result[0] === EXIT4) {
33837
33995
  return result;
33838
33996
  }
33839
33997
  }
33840
- if (node2.children && result[0] !== SKIP2) {
33998
+ if (node2.children && result[0] !== SKIP4) {
33841
33999
  offset = (reverse ? node2.children.length : -1) + step;
33842
34000
  while (offset > -1 && offset < node2.children.length) {
33843
34001
  subresult = factory(node2.children[offset], offset, grandparents)();
33844
- if (subresult[0] === EXIT2) {
34002
+ if (subresult[0] === EXIT4) {
33845
34003
  return subresult;
33846
34004
  }
33847
34005
  offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
@@ -33851,12 +34009,12 @@ var require_unist_util_visit_parents = __commonJS((exports, module) => {
33851
34009
  }
33852
34010
  }
33853
34011
  }
33854
- function toResult2(value2) {
34012
+ function toResult4(value2) {
33855
34013
  if (value2 !== null && typeof value2 === "object" && "length" in value2) {
33856
34014
  return value2;
33857
34015
  }
33858
34016
  if (typeof value2 === "number") {
33859
- return [CONTINUE2, value2];
34017
+ return [CONTINUE4, value2];
33860
34018
  }
33861
34019
  return [value2];
33862
34020
  }
@@ -33865,20 +34023,20 @@ var require_unist_util_visit_parents = __commonJS((exports, module) => {
33865
34023
  // ../../node_modules/unist-util-find/node_modules/unist-util-visit/index.js
33866
34024
  var require_unist_util_visit = __commonJS((exports, module) => {
33867
34025
  module.exports = visit3;
33868
- var visitParents2 = require_unist_util_visit_parents();
33869
- var CONTINUE2 = visitParents2.CONTINUE;
33870
- var SKIP2 = visitParents2.SKIP;
33871
- var EXIT2 = visitParents2.EXIT;
33872
- visit3.CONTINUE = CONTINUE2;
33873
- visit3.SKIP = SKIP2;
33874
- visit3.EXIT = EXIT2;
34026
+ var visitParents4 = require_unist_util_visit_parents();
34027
+ var CONTINUE4 = visitParents4.CONTINUE;
34028
+ var SKIP4 = visitParents4.SKIP;
34029
+ var EXIT4 = visitParents4.EXIT;
34030
+ visit3.CONTINUE = CONTINUE4;
34031
+ visit3.SKIP = SKIP4;
34032
+ visit3.EXIT = EXIT4;
33875
34033
  function visit3(tree, test, visitor, reverse) {
33876
34034
  if (typeof test === "function" && typeof visitor !== "function") {
33877
34035
  reverse = visitor;
33878
34036
  visitor = test;
33879
34037
  test = null;
33880
34038
  }
33881
- visitParents2(tree, test, overload, reverse);
34039
+ visitParents4(tree, test, overload, reverse);
33882
34040
  function overload(node2, parents) {
33883
34041
  var parent = parents[parents.length - 1];
33884
34042
  var index2 = parent ? parent.children.indexOf(node2) : null;