@quartz-community/github-flavored-markdown 2.1.0 → 2.1.2

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/index.js CHANGED
@@ -1,122 +1,6 @@
1
- import default2 from 'path';
2
- import default3 from 'process';
3
- import { fileURLToPath } from 'url';
4
-
5
- var __create = Object.create;
6
- var __defProp = Object.defineProperty;
7
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
- var __getOwnPropNames = Object.getOwnPropertyNames;
9
- var __getProtoOf = Object.getPrototypeOf;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- __defProp(target, "default", { value: mod, enumerable: true }) ,
28
- mod
29
- ));
30
-
31
- // node_modules/extend/index.js
32
- var require_extend = __commonJS({
33
- "node_modules/extend/index.js"(exports, module) {
34
- var hasOwn = Object.prototype.hasOwnProperty;
35
- var toStr = Object.prototype.toString;
36
- var defineProperty = Object.defineProperty;
37
- var gOPD = Object.getOwnPropertyDescriptor;
38
- var isArray = function isArray2(arr) {
39
- if (typeof Array.isArray === "function") {
40
- return Array.isArray(arr);
41
- }
42
- return toStr.call(arr) === "[object Array]";
43
- };
44
- var isPlainObject2 = function isPlainObject3(obj) {
45
- if (!obj || toStr.call(obj) !== "[object Object]") {
46
- return false;
47
- }
48
- var hasOwnConstructor = hasOwn.call(obj, "constructor");
49
- var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, "isPrototypeOf");
50
- if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
51
- return false;
52
- }
53
- var key;
54
- for (key in obj) {
55
- }
56
- return typeof key === "undefined" || hasOwn.call(obj, key);
57
- };
58
- var setProperty = function setProperty2(target, options) {
59
- if (defineProperty && options.name === "__proto__") {
60
- defineProperty(target, options.name, {
61
- enumerable: true,
62
- configurable: true,
63
- value: options.newValue,
64
- writable: true
65
- });
66
- } else {
67
- target[options.name] = options.newValue;
68
- }
69
- };
70
- var getProperty = function getProperty2(obj, name) {
71
- if (name === "__proto__") {
72
- if (!hasOwn.call(obj, name)) {
73
- return void 0;
74
- } else if (gOPD) {
75
- return gOPD(obj, name).value;
76
- }
77
- }
78
- return obj[name];
79
- };
80
- module.exports = function extend2() {
81
- var options, name, src, copy, copyIsArray, clone2;
82
- var target = arguments[0];
83
- var i2 = 1;
84
- var length = arguments.length;
85
- var deep = false;
86
- if (typeof target === "boolean") {
87
- deep = target;
88
- target = arguments[1] || {};
89
- i2 = 2;
90
- }
91
- if (target == null || typeof target !== "object" && typeof target !== "function") {
92
- target = {};
93
- }
94
- for (; i2 < length; ++i2) {
95
- options = arguments[i2];
96
- if (options != null) {
97
- for (name in options) {
98
- src = getProperty(target, name);
99
- copy = getProperty(options, name);
100
- if (target !== copy) {
101
- if (deep && copy && (isPlainObject2(copy) || (copyIsArray = isArray(copy)))) {
102
- if (copyIsArray) {
103
- copyIsArray = false;
104
- clone2 = src && isArray(src) ? src : [];
105
- } else {
106
- clone2 = src && isPlainObject2(src) ? src : {};
107
- }
108
- setProperty(target, { name, newValue: extend2(deep, clone2, copy) });
109
- } else if (typeof copy !== "undefined") {
110
- setProperty(target, { name, newValue: copy });
111
- }
112
- }
113
- }
114
- }
115
- }
116
- return target;
117
- };
118
- }
119
- });
1
+ import { unified } from 'unified';
2
+ import 'preact/jsx-runtime';
3
+ import 'preact';
120
4
 
121
5
  // node_modules/ccount/index.js
122
6
  function ccount(value, character) {
@@ -125,10 +9,10 @@ function ccount(value, character) {
125
9
  throw new TypeError("Expected character");
126
10
  }
127
11
  let count = 0;
128
- let index3 = source.indexOf(character);
129
- while (index3 !== -1) {
12
+ let index2 = source.indexOf(character);
13
+ while (index2 !== -1) {
130
14
  count++;
131
- index3 = source.indexOf(character, index3 + character.length);
15
+ index2 = source.indexOf(character, index2 + character.length);
132
16
  }
133
17
  return count;
134
18
  }
@@ -214,15 +98,15 @@ var convert = (
214
98
  );
215
99
  function anyFactory(tests) {
216
100
  const checks2 = [];
217
- let index3 = -1;
218
- while (++index3 < tests.length) {
219
- checks2[index3] = convert(tests[index3]);
101
+ let index2 = -1;
102
+ while (++index2 < tests.length) {
103
+ checks2[index2] = convert(tests[index2]);
220
104
  }
221
105
  return castFactory(any);
222
106
  function any(...parameters) {
223
- let index4 = -1;
224
- while (++index4 < checks2.length) {
225
- if (checks2[index4].apply(this, parameters)) return true;
107
+ let index3 = -1;
108
+ while (++index3 < checks2.length) {
109
+ if (checks2[index3].apply(this, parameters)) return true;
226
110
  }
227
111
  return false;
228
112
  }
@@ -254,12 +138,12 @@ function typeFactory(check2) {
254
138
  }
255
139
  function castFactory(testFunction) {
256
140
  return check2;
257
- function check2(value, index3, parent) {
141
+ function check2(value, index2, parent) {
258
142
  return Boolean(
259
143
  looksLikeANode(value) && testFunction.call(
260
144
  this,
261
145
  value,
262
- typeof index3 === "number" ? index3 : void 0,
146
+ typeof index2 === "number" ? index2 : void 0,
263
147
  parent || void 0
264
148
  )
265
149
  );
@@ -273,8 +157,8 @@ function looksLikeANode(value) {
273
157
  }
274
158
 
275
159
  // node_modules/unist-util-visit-parents/lib/color.node.js
276
- function color(d2) {
277
- return "\x1B[33m" + d2 + "\x1B[39m";
160
+ function color(d) {
161
+ return "\x1B[33m" + d + "\x1B[39m";
278
162
  }
279
163
 
280
164
  // node_modules/unist-util-visit-parents/lib/index.js
@@ -293,7 +177,7 @@ function visitParents(tree, test, visitor, reverse) {
293
177
  const is2 = convert(check2);
294
178
  const step = reverse ? -1 : 1;
295
179
  factory(tree, void 0, [])();
296
- function factory(node2, index3, parents) {
180
+ function factory(node2, index2, parents) {
297
181
  const value = (
298
182
  /** @type {Record<string, unknown>} */
299
183
  node2 && typeof node2 === "object" ? node2 : {}
@@ -316,7 +200,7 @@ function visitParents(tree, test, visitor, reverse) {
316
200
  let subresult;
317
201
  let offset;
318
202
  let grandparents;
319
- if (!test || is2(node2, index3, parents[parents.length - 1] || void 0)) {
203
+ if (!test || is2(node2, index2, parents[parents.length - 1] || void 0)) {
320
204
  result = toResult(visitor(node2, parents));
321
205
  if (result[0] === EXIT) {
322
206
  return result;
@@ -364,10 +248,10 @@ function findAndReplace(tree, list2, options) {
364
248
  visitParents(tree, "text", visitor);
365
249
  }
366
250
  function visitor(node2, parents) {
367
- let index3 = -1;
251
+ let index2 = -1;
368
252
  let grandparent;
369
- while (++index3 < parents.length) {
370
- const parent = parents[index3];
253
+ while (++index2 < parents.length) {
254
+ const parent = parents[index2];
371
255
  const siblings = grandparent ? grandparent.children : void 0;
372
256
  if (ignored(
373
257
  parent,
@@ -388,13 +272,13 @@ function findAndReplace(tree, list2, options) {
388
272
  const replace2 = pairs[pairIndex][1];
389
273
  let start = 0;
390
274
  const siblings = parent.children;
391
- const index3 = siblings.indexOf(node2);
275
+ const index2 = siblings.indexOf(node2);
392
276
  let change = false;
393
277
  let nodes = [];
394
278
  find.lastIndex = 0;
395
279
  let match = find.exec(node2.value);
396
280
  while (match) {
397
- const position3 = match.index;
281
+ const position = match.index;
398
282
  const matchObject = {
399
283
  index: match.index,
400
284
  input: match.input,
@@ -405,12 +289,12 @@ function findAndReplace(tree, list2, options) {
405
289
  value = value.length > 0 ? { type: "text", value } : void 0;
406
290
  }
407
291
  if (value === false) {
408
- find.lastIndex = position3 + 1;
292
+ find.lastIndex = position + 1;
409
293
  } else {
410
- if (start !== position3) {
294
+ if (start !== position) {
411
295
  nodes.push({
412
296
  type: "text",
413
- value: node2.value.slice(start, position3)
297
+ value: node2.value.slice(start, position)
414
298
  });
415
299
  }
416
300
  if (Array.isArray(value)) {
@@ -418,7 +302,7 @@ function findAndReplace(tree, list2, options) {
418
302
  } else if (value) {
419
303
  nodes.push(value);
420
304
  }
421
- start = position3 + match[0].length;
305
+ start = position + match[0].length;
422
306
  change = true;
423
307
  }
424
308
  if (!find.global) {
@@ -430,11 +314,11 @@ function findAndReplace(tree, list2, options) {
430
314
  if (start < node2.value.length) {
431
315
  nodes.push({ type: "text", value: node2.value.slice(start) });
432
316
  }
433
- parent.children.splice(index3, 1, ...nodes);
317
+ parent.children.splice(index2, 1, ...nodes);
434
318
  } else {
435
319
  nodes = [node2];
436
320
  }
437
- return index3 + nodes.length;
321
+ return index2 + nodes.length;
438
322
  }
439
323
  }
440
324
  function toPairs(tupleOrList) {
@@ -443,9 +327,9 @@ function toPairs(tupleOrList) {
443
327
  throw new TypeError("Expected find and replace tuple or list of tuples");
444
328
  }
445
329
  const list2 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? tupleOrList : [tupleOrList];
446
- let index3 = -1;
447
- while (++index3 < list2.length) {
448
- const tuple = list2[index3];
330
+ let index2 = -1;
331
+ while (++index2 < list2.length) {
332
+ const tuple = list2[index2];
449
333
  result.push([toExpression(tuple[0]), toFunction(tuple[1])]);
450
334
  }
451
335
  return result;
@@ -537,7 +421,7 @@ function transformGfmAutolinkLiterals(tree) {
537
421
  { ignore: ["link", "linkReference"] }
538
422
  );
539
423
  }
540
- function findUrl(_2, protocol, domain2, path2, match) {
424
+ function findUrl(_, protocol, domain2, path2, match) {
541
425
  let prefix = "";
542
426
  if (!previous(match)) {
543
427
  return false;
@@ -563,7 +447,7 @@ function findUrl(_2, protocol, domain2, path2, match) {
563
447
  }
564
448
  return result;
565
449
  }
566
- function findEmail(_2, atext, label, match) {
450
+ function findEmail(_, atext, label, match) {
567
451
  if (
568
452
  // Not an expected previous character.
569
453
  !previous(match, true) || // Label ends in not allowed character.
@@ -658,7 +542,7 @@ function exitFootnoteDefinition(token) {
658
542
  function footnoteReferencePeek() {
659
543
  return "[";
660
544
  }
661
- function footnoteReference(node2, _2, state, info) {
545
+ function footnoteReference(node2, _, state, info) {
662
546
  const tracker = state.createTracker(info);
663
547
  let value = tracker.move("[^");
664
548
  const exit2 = state.enter("footnoteReference");
@@ -697,7 +581,7 @@ function gfmFootnoteToMarkdown(options) {
697
581
  // This is on by default already.
698
582
  unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
699
583
  };
700
- function footnoteDefinition(node2, _2, state, info) {
584
+ function footnoteDefinition(node2, _, state, info) {
701
585
  const tracker = state.createTracker(info);
702
586
  let value = tracker.move("[^");
703
587
  const exit2 = state.enter("footnoteDefinition");
@@ -720,10 +604,10 @@ function gfmFootnoteToMarkdown(options) {
720
604
  return value;
721
605
  }
722
606
  }
723
- function mapExceptFirst(line, index3, blank) {
724
- return index3 === 0 ? line : mapAll(line, index3, blank);
607
+ function mapExceptFirst(line, index2, blank) {
608
+ return index2 === 0 ? line : mapAll(line, index2, blank);
725
609
  }
726
- function mapAll(line, index3, blank) {
610
+ function mapAll(line, index2, blank) {
727
611
  return (blank ? "" : " ") + line;
728
612
  }
729
613
 
@@ -762,7 +646,7 @@ function enterStrikethrough(token) {
762
646
  function exitStrikethrough(token) {
763
647
  this.exit(token);
764
648
  }
765
- function handleDelete(node2, _2, state, info) {
649
+ function handleDelete(node2, _, state, info) {
766
650
  const tracker = state.createTracker(info);
767
651
  const exit2 = state.enter("strikethrough");
768
652
  let value = tracker.move("~~");
@@ -921,7 +805,7 @@ function toAlignment(value) {
921
805
  }
922
806
 
923
807
  // node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
924
- function blockquote(node2, _2, state, info) {
808
+ function blockquote(node2, _, state, info) {
925
809
  const exit2 = state.enter("blockquote");
926
810
  const tracker = state.createTracker(info);
927
811
  tracker.move("> ");
@@ -933,7 +817,7 @@ function blockquote(node2, _2, state, info) {
933
817
  exit2();
934
818
  return value;
935
819
  }
936
- function map(line, _2, blank) {
820
+ function map(line, _, blank) {
937
821
  return ">" + (blank ? "" : " ") + line;
938
822
  }
939
823
 
@@ -948,9 +832,9 @@ function listInScope(stack, list2, none) {
948
832
  if (!list2 || list2.length === 0) {
949
833
  return none;
950
834
  }
951
- let index3 = -1;
952
- while (++index3 < list2.length) {
953
- if (stack.includes(list2[index3])) {
835
+ let index2 = -1;
836
+ while (++index2 < list2.length) {
837
+ if (stack.includes(list2[index2])) {
954
838
  return true;
955
839
  }
956
840
  }
@@ -958,10 +842,10 @@ function listInScope(stack, list2, none) {
958
842
  }
959
843
 
960
844
  // node_modules/mdast-util-to-markdown/lib/handle/break.js
961
- function hardBreak(_2, _1, state, info) {
962
- let index3 = -1;
963
- while (++index3 < state.unsafe.length) {
964
- if (state.unsafe[index3].character === "\n" && patternInScope(state.stack, state.unsafe[index3])) {
845
+ function hardBreak(_, _1, state, info) {
846
+ let index2 = -1;
847
+ while (++index2 < state.unsafe.length) {
848
+ if (state.unsafe[index2].character === "\n" && patternInScope(state.stack, state.unsafe[index2])) {
965
849
  return /[ \t]/.test(info.before) ? "" : " ";
966
850
  }
967
851
  }
@@ -971,23 +855,23 @@ function hardBreak(_2, _1, state, info) {
971
855
  // node_modules/longest-streak/index.js
972
856
  function longestStreak(value, substring) {
973
857
  const source = String(value);
974
- let index3 = source.indexOf(substring);
975
- let expected = index3;
858
+ let index2 = source.indexOf(substring);
859
+ let expected = index2;
976
860
  let count = 0;
977
861
  let max = 0;
978
862
  if (typeof substring !== "string") {
979
863
  throw new TypeError("Expected substring");
980
864
  }
981
- while (index3 !== -1) {
982
- if (index3 === expected) {
865
+ while (index2 !== -1) {
866
+ if (index2 === expected) {
983
867
  if (++count > max) {
984
868
  max = count;
985
869
  }
986
870
  } else {
987
871
  count = 1;
988
872
  }
989
- expected = index3 + substring.length;
990
- index3 = source.indexOf(substring, expected);
873
+ expected = index2 + substring.length;
874
+ index2 = source.indexOf(substring, expected);
991
875
  }
992
876
  return max;
993
877
  }
@@ -1014,7 +898,7 @@ function checkFence(state) {
1014
898
  }
1015
899
 
1016
900
  // node_modules/mdast-util-to-markdown/lib/handle/code.js
1017
- function code(node2, _2, state, info) {
901
+ function code(node2, _, state, info) {
1018
902
  const marker = checkFence(state);
1019
903
  const raw = node2.value || "";
1020
904
  const suffix = marker === "`" ? "GraveAccent" : "Tilde";
@@ -1061,7 +945,7 @@ function code(node2, _2, state, info) {
1061
945
  exit2();
1062
946
  return value;
1063
947
  }
1064
- function map2(line, _2, blank) {
948
+ function map2(line, _, blank) {
1065
949
  return (blank ? "" : " ") + line;
1066
950
  }
1067
951
 
@@ -1077,7 +961,7 @@ function checkQuote(state) {
1077
961
  }
1078
962
 
1079
963
  // node_modules/mdast-util-to-markdown/lib/handle/definition.js
1080
- function definition(node2, _2, state, info) {
964
+ function definition(node2, _, state, info) {
1081
965
  const quote = checkQuote(state);
1082
966
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1083
967
  const exit2 = state.enter("definition");
@@ -1202,7 +1086,7 @@ function encodeInfo(outside, inside, marker) {
1202
1086
 
1203
1087
  // node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
1204
1088
  emphasis.peek = emphasisPeek;
1205
- function emphasis(node2, _2, state, info) {
1089
+ function emphasis(node2, _, state, info) {
1206
1090
  const marker = checkEmphasis(state);
1207
1091
  const exit2 = state.enter("emphasis");
1208
1092
  const tracker = state.createTracker(info);
@@ -1236,7 +1120,7 @@ function emphasis(node2, _2, state, info) {
1236
1120
  };
1237
1121
  return before + between + after;
1238
1122
  }
1239
- function emphasisPeek(_2, _1, state) {
1123
+ function emphasisPeek(_, _1, state) {
1240
1124
  return state.options.emphasis || "*";
1241
1125
  }
1242
1126
 
@@ -1257,8 +1141,8 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
1257
1141
  visitParents(tree, test, overload, reverse);
1258
1142
  function overload(node2, parents) {
1259
1143
  const parent = parents[parents.length - 1];
1260
- const index3 = parent ? parent.children.indexOf(node2) : void 0;
1261
- return visitor(node2, index3, parent);
1144
+ const index2 = parent ? parent.children.indexOf(node2) : void 0;
1145
+ return visitor(node2, index2, parent);
1262
1146
  }
1263
1147
  }
1264
1148
 
@@ -1289,9 +1173,9 @@ function one(value, includeImageAlt, includeHtml) {
1289
1173
  }
1290
1174
  function all(values, includeImageAlt, includeHtml) {
1291
1175
  const result = [];
1292
- let index3 = -1;
1293
- while (++index3 < values.length) {
1294
- result[index3] = one(values[index3], includeImageAlt, includeHtml);
1176
+ let index2 = -1;
1177
+ while (++index2 < values.length) {
1178
+ result[index2] = one(values[index2], includeImageAlt, includeHtml);
1295
1179
  }
1296
1180
  return result.join("");
1297
1181
  }
@@ -1314,7 +1198,7 @@ function formatHeadingAsSetext(node2, state) {
1314
1198
  }
1315
1199
 
1316
1200
  // node_modules/mdast-util-to-markdown/lib/handle/heading.js
1317
- function heading(node2, _2, state, info) {
1201
+ function heading(node2, _, state, info) {
1318
1202
  const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1319
1203
  const tracker = state.createTracker(info);
1320
1204
  if (formatHeadingAsSetext(node2, state)) {
@@ -1366,7 +1250,7 @@ function htmlPeek() {
1366
1250
 
1367
1251
  // node_modules/mdast-util-to-markdown/lib/handle/image.js
1368
1252
  image.peek = imagePeek;
1369
- function image(node2, _2, state, info) {
1253
+ function image(node2, _, state, info) {
1370
1254
  const quote = checkQuote(state);
1371
1255
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1372
1256
  const exit2 = state.enter("image");
@@ -1423,7 +1307,7 @@ function imagePeek() {
1423
1307
 
1424
1308
  // node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
1425
1309
  imageReference.peek = imageReferencePeek;
1426
- function imageReference(node2, _2, state, info) {
1310
+ function imageReference(node2, _, state, info) {
1427
1311
  const type = node2.referenceType;
1428
1312
  const exit2 = state.enter("imageReference");
1429
1313
  let subexit = state.enter("label");
@@ -1462,27 +1346,27 @@ function imageReferencePeek() {
1462
1346
 
1463
1347
  // node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
1464
1348
  inlineCode.peek = inlineCodePeek;
1465
- function inlineCode(node2, _2, state) {
1349
+ function inlineCode(node2, _, state) {
1466
1350
  let value = node2.value || "";
1467
1351
  let sequence = "`";
1468
- let index3 = -1;
1352
+ let index2 = -1;
1469
1353
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
1470
1354
  sequence += "`";
1471
1355
  }
1472
1356
  if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) {
1473
1357
  value = " " + value + " ";
1474
1358
  }
1475
- while (++index3 < state.unsafe.length) {
1476
- const pattern = state.unsafe[index3];
1359
+ while (++index2 < state.unsafe.length) {
1360
+ const pattern = state.unsafe[index2];
1477
1361
  const expression = state.compilePattern(pattern);
1478
1362
  let match;
1479
1363
  if (!pattern.atBreak) continue;
1480
1364
  while (match = expression.exec(value)) {
1481
- let position3 = match.index;
1482
- if (value.charCodeAt(position3) === 10 && value.charCodeAt(position3 - 1) === 13) {
1483
- position3--;
1365
+ let position = match.index;
1366
+ if (value.charCodeAt(position) === 10 && value.charCodeAt(position - 1) === 13) {
1367
+ position--;
1484
1368
  }
1485
- value = value.slice(0, position3) + " " + value.slice(match.index + 1);
1369
+ value = value.slice(0, position) + " " + value.slice(match.index + 1);
1486
1370
  }
1487
1371
  }
1488
1372
  return sequence + value + sequence;
@@ -1508,7 +1392,7 @@ function formatLinkAsAutolink(node2, state) {
1508
1392
 
1509
1393
  // node_modules/mdast-util-to-markdown/lib/handle/link.js
1510
1394
  link.peek = linkPeek;
1511
- function link(node2, _2, state, info) {
1395
+ function link(node2, _, state, info) {
1512
1396
  const quote = checkQuote(state);
1513
1397
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
1514
1398
  const tracker = state.createTracker(info);
@@ -1582,13 +1466,13 @@ function link(node2, _2, state, info) {
1582
1466
  exit2();
1583
1467
  return value;
1584
1468
  }
1585
- function linkPeek(node2, _2, state) {
1469
+ function linkPeek(node2, _, state) {
1586
1470
  return formatLinkAsAutolink(node2, state) ? "<" : "[";
1587
1471
  }
1588
1472
 
1589
1473
  // node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
1590
1474
  linkReference.peek = linkReferencePeek;
1591
- function linkReference(node2, _2, state, info) {
1475
+ function linkReference(node2, _, state, info) {
1592
1476
  const type = node2.referenceType;
1593
1477
  const exit2 = state.enter("linkReference");
1594
1478
  let subexit = state.enter("label");
@@ -1697,9 +1581,9 @@ function list(node2, parent, state, info) {
1697
1581
  useDifferentMarker = true;
1698
1582
  }
1699
1583
  if (checkRule(state) === bullet && firstListItem) {
1700
- let index3 = -1;
1701
- while (++index3 < node2.children.length) {
1702
- const item = node2.children[index3];
1584
+ let index2 = -1;
1585
+ while (++index2 < node2.children.length) {
1586
+ const item = node2.children[index2];
1703
1587
  if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1704
1588
  useDifferentMarker = true;
1705
1589
  break;
@@ -1750,8 +1634,8 @@ function listItem(node2, parent, state, info) {
1750
1634
  );
1751
1635
  exit2();
1752
1636
  return value;
1753
- function map3(line, index3, blank) {
1754
- if (index3) {
1637
+ function map3(line, index2, blank) {
1638
+ if (index2) {
1755
1639
  return (blank ? "" : " ".repeat(size)) + line;
1756
1640
  }
1757
1641
  return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
@@ -1759,7 +1643,7 @@ function listItem(node2, parent, state, info) {
1759
1643
  }
1760
1644
 
1761
1645
  // node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
1762
- function paragraph(node2, _2, state, info) {
1646
+ function paragraph(node2, _, state, info) {
1763
1647
  const exit2 = state.enter("paragraph");
1764
1648
  const subexit = state.enter("phrasing");
1765
1649
  const value = state.containerPhrasing(node2, info);
@@ -1797,9 +1681,9 @@ var phrasing = (
1797
1681
  );
1798
1682
 
1799
1683
  // node_modules/mdast-util-to-markdown/lib/handle/root.js
1800
- function root(node2, _2, state, info) {
1801
- const hasPhrasing = node2.children.some(function(d2) {
1802
- return phrasing(d2);
1684
+ function root(node2, _, state, info) {
1685
+ const hasPhrasing = node2.children.some(function(d) {
1686
+ return phrasing(d);
1803
1687
  });
1804
1688
  const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1805
1689
  return container.call(state, node2, info);
@@ -1818,7 +1702,7 @@ function checkStrong(state) {
1818
1702
 
1819
1703
  // node_modules/mdast-util-to-markdown/lib/handle/strong.js
1820
1704
  strong.peek = strongPeek;
1821
- function strong(node2, _2, state, info) {
1705
+ function strong(node2, _, state, info) {
1822
1706
  const marker = checkStrong(state);
1823
1707
  const exit2 = state.enter("strong");
1824
1708
  const tracker = state.createTracker(info);
@@ -1852,12 +1736,12 @@ function strong(node2, _2, state, info) {
1852
1736
  };
1853
1737
  return before + between + after;
1854
1738
  }
1855
- function strongPeek(_2, _1, state) {
1739
+ function strongPeek(_, _1, state) {
1856
1740
  return state.options.strong || "*";
1857
1741
  }
1858
1742
 
1859
1743
  // node_modules/mdast-util-to-markdown/lib/handle/text.js
1860
- function text(node2, _2, state, info) {
1744
+ function text(node2, _, state, info) {
1861
1745
  return state.safe(node2.value, info);
1862
1746
  }
1863
1747
 
@@ -1873,7 +1757,7 @@ function checkRuleRepetition(state) {
1873
1757
  }
1874
1758
 
1875
1759
  // node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
1876
- function thematicBreak(_2, _1, state) {
1760
+ function thematicBreak(_, _1, state) {
1877
1761
  const value = (checkRule(state) + (state.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(state));
1878
1762
  return state.options.ruleSpaces ? value.slice(0, -1) : value;
1879
1763
  }
@@ -1925,8 +1809,8 @@ function enterTable(token) {
1925
1809
  this.enter(
1926
1810
  {
1927
1811
  type: "table",
1928
- align: align.map(function(d2) {
1929
- return d2 === "none" ? null : d2;
1812
+ align: align.map(function(d) {
1813
+ return d === "none" ? null : d;
1930
1814
  }),
1931
1815
  children: []
1932
1816
  },
@@ -1992,15 +1876,15 @@ function gfmTableToMarkdown(options) {
1992
1876
  tableRow: handleTableRow
1993
1877
  }
1994
1878
  };
1995
- function handleTable(node2, _2, state, info) {
1879
+ function handleTable(node2, _, state, info) {
1996
1880
  return serializeData(handleTableAsData(node2, state, info), node2.align);
1997
1881
  }
1998
- function handleTableRow(node2, _2, state, info) {
1882
+ function handleTableRow(node2, _, state, info) {
1999
1883
  const row = handleTableRowAsData(node2, state, info);
2000
1884
  const value = serializeData([row]);
2001
1885
  return value.slice(0, value.indexOf("\n"));
2002
1886
  }
2003
- function handleTableCell(node2, _2, state, info) {
1887
+ function handleTableCell(node2, _, state, info) {
2004
1888
  const exit2 = state.enter("tableCell");
2005
1889
  const subexit = state.enter("phrasing");
2006
1890
  const value = state.containerPhrasing(node2, {
@@ -2025,22 +1909,22 @@ function gfmTableToMarkdown(options) {
2025
1909
  }
2026
1910
  function handleTableAsData(node2, state, info) {
2027
1911
  const children = node2.children;
2028
- let index3 = -1;
1912
+ let index2 = -1;
2029
1913
  const result = [];
2030
1914
  const subexit = state.enter("table");
2031
- while (++index3 < children.length) {
2032
- result[index3] = handleTableRowAsData(children[index3], state, info);
1915
+ while (++index2 < children.length) {
1916
+ result[index2] = handleTableRowAsData(children[index2], state, info);
2033
1917
  }
2034
1918
  subexit();
2035
1919
  return result;
2036
1920
  }
2037
1921
  function handleTableRowAsData(node2, state, info) {
2038
1922
  const children = node2.children;
2039
- let index3 = -1;
1923
+ let index2 = -1;
2040
1924
  const result = [];
2041
1925
  const subexit = state.enter("tableRow");
2042
- while (++index3 < children.length) {
2043
- result[index3] = handleTableCell(children[index3], node2, state, info);
1926
+ while (++index2 < children.length) {
1927
+ result[index2] = handleTableCell(children[index2], node2, state, info);
2044
1928
  }
2045
1929
  subexit();
2046
1930
  return result;
@@ -2083,10 +1967,10 @@ function exitParagraphWithTaskListItem(token) {
2083
1967
  const head = node2.children[0];
2084
1968
  if (head && head.type === "text") {
2085
1969
  const siblings = parent.children;
2086
- let index3 = -1;
1970
+ let index2 = -1;
2087
1971
  let firstParaghraph;
2088
- while (++index3 < siblings.length) {
2089
- const sibling = siblings[index3];
1972
+ while (++index2 < siblings.length) {
1973
+ const sibling = siblings[index2];
2090
1974
  if (sibling.type === "paragraph") {
2091
1975
  firstParaghraph = sibling;
2092
1976
  break;
@@ -2180,9 +2064,9 @@ function splice(list2, start, remove, items) {
2180
2064
  var hasOwnProperty = {}.hasOwnProperty;
2181
2065
  function combineExtensions(extensions) {
2182
2066
  const all2 = {};
2183
- let index3 = -1;
2184
- while (++index3 < extensions.length) {
2185
- syntaxExtension(all2, extensions[index3]);
2067
+ let index2 = -1;
2068
+ while (++index2 < extensions.length) {
2069
+ syntaxExtension(all2, extensions[index2]);
2186
2070
  }
2187
2071
  return all2;
2188
2072
  }
@@ -2207,10 +2091,10 @@ function syntaxExtension(all2, extension) {
2207
2091
  }
2208
2092
  }
2209
2093
  function constructs(existing, list2) {
2210
- let index3 = -1;
2094
+ let index2 = -1;
2211
2095
  const before = [];
2212
- while (++index3 < list2.length) {
2213
- (list2[index3].add === "after" ? existing : before).push(list2[index3]);
2096
+ while (++index2 < list2.length) {
2097
+ (list2[index2].add === "after" ? existing : before).push(list2[index2]);
2214
2098
  }
2215
2099
  splice(existing, 0, 0, before);
2216
2100
  }
@@ -2538,10 +2422,10 @@ function gfmAtext(code3) {
2538
2422
  return code3 === 43 || code3 === 45 || code3 === 46 || code3 === 95 || asciiAlphanumeric(code3);
2539
2423
  }
2540
2424
  function previousUnbalanced(events) {
2541
- let index3 = events.length;
2425
+ let index2 = events.length;
2542
2426
  let result = false;
2543
- while (index3--) {
2544
- const token = events[index3][1];
2427
+ while (index2--) {
2428
+ const token = events[index2][1];
2545
2429
  if ((token.type === "labelLink" || token.type === "labelImage") && !token._balanced) {
2546
2430
  result = true;
2547
2431
  break;
@@ -2560,9 +2444,9 @@ function previousUnbalanced(events) {
2560
2444
  // node_modules/micromark-util-resolve-all/index.js
2561
2445
  function resolveAll(constructs2, events, context) {
2562
2446
  const called = [];
2563
- let index3 = -1;
2564
- while (++index3 < constructs2.length) {
2565
- const resolve = constructs2[index3].resolveAll;
2447
+ let index2 = -1;
2448
+ while (++index2 < constructs2.length) {
2449
+ const resolve = constructs2[index2].resolveAll;
2566
2450
  if (resolve && !called.includes(resolve)) {
2567
2451
  events = resolve(events, context);
2568
2452
  called.push(resolve);
@@ -2641,11 +2525,11 @@ function gfmFootnote() {
2641
2525
  }
2642
2526
  function tokenizePotentialGfmFootnoteCall(effects, ok3, nok) {
2643
2527
  const self2 = this;
2644
- let index3 = self2.events.length;
2528
+ let index2 = self2.events.length;
2645
2529
  const defined = self2.parser.gfmFootnotes || (self2.parser.gfmFootnotes = []);
2646
2530
  let labelStart;
2647
- while (index3--) {
2648
- const token = self2.events[index3][1];
2531
+ while (index2--) {
2532
+ const token = self2.events[index2][1];
2649
2533
  if (token.type === "labelImage") {
2650
2534
  labelStart = token;
2651
2535
  break;
@@ -2673,24 +2557,24 @@ function tokenizePotentialGfmFootnoteCall(effects, ok3, nok) {
2673
2557
  }
2674
2558
  }
2675
2559
  function resolveToPotentialGfmFootnoteCall(events, context) {
2676
- let index3 = events.length;
2677
- while (index3--) {
2678
- if (events[index3][1].type === "labelImage" && events[index3][0] === "enter") {
2679
- events[index3][1];
2560
+ let index2 = events.length;
2561
+ while (index2--) {
2562
+ if (events[index2][1].type === "labelImage" && events[index2][0] === "enter") {
2563
+ events[index2][1];
2680
2564
  break;
2681
2565
  }
2682
2566
  }
2683
- events[index3 + 1][1].type = "data";
2684
- events[index3 + 3][1].type = "gfmFootnoteCallLabelMarker";
2567
+ events[index2 + 1][1].type = "data";
2568
+ events[index2 + 3][1].type = "gfmFootnoteCallLabelMarker";
2685
2569
  const call = {
2686
2570
  type: "gfmFootnoteCall",
2687
- start: Object.assign({}, events[index3 + 3][1].start),
2571
+ start: Object.assign({}, events[index2 + 3][1].start),
2688
2572
  end: Object.assign({}, events[events.length - 1][1].end)
2689
2573
  };
2690
2574
  const marker = {
2691
2575
  type: "gfmFootnoteCallMarker",
2692
- start: Object.assign({}, events[index3 + 3][1].end),
2693
- end: Object.assign({}, events[index3 + 3][1].end)
2576
+ start: Object.assign({}, events[index2 + 3][1].end),
2577
+ end: Object.assign({}, events[index2 + 3][1].end)
2694
2578
  };
2695
2579
  marker.end.column++;
2696
2580
  marker.end.offset++;
@@ -2708,12 +2592,12 @@ function resolveToPotentialGfmFootnoteCall(events, context) {
2708
2592
  };
2709
2593
  const replacement = [
2710
2594
  // Take the `labelImageMarker` (now `data`, the `!`)
2711
- events[index3 + 1],
2712
- events[index3 + 2],
2595
+ events[index2 + 1],
2596
+ events[index2 + 2],
2713
2597
  ["enter", call, context],
2714
2598
  // The `[`
2715
- events[index3 + 3],
2716
- events[index3 + 4],
2599
+ events[index2 + 3],
2600
+ events[index2 + 4],
2717
2601
  // The `^`.
2718
2602
  ["enter", marker, context],
2719
2603
  ["exit", marker, context],
@@ -2727,7 +2611,7 @@ function resolveToPotentialGfmFootnoteCall(events, context) {
2727
2611
  events[events.length - 1],
2728
2612
  ["exit", call, context]
2729
2613
  ];
2730
- events.splice(index3, events.length - index3 + 1, ...replacement);
2614
+ events.splice(index2, events.length - index2 + 1, ...replacement);
2731
2615
  return events;
2732
2616
  }
2733
2617
  function tokenizeGfmFootnoteCall(effects, ok3, nok) {
@@ -2906,42 +2790,42 @@ function gfmStrikethrough(options) {
2906
2790
  }
2907
2791
  };
2908
2792
  function resolveAllStrikethrough(events, context) {
2909
- let index3 = -1;
2910
- while (++index3 < events.length) {
2911
- if (events[index3][0] === "enter" && events[index3][1].type === "strikethroughSequenceTemporary" && events[index3][1]._close) {
2912
- let open = index3;
2793
+ let index2 = -1;
2794
+ while (++index2 < events.length) {
2795
+ if (events[index2][0] === "enter" && events[index2][1].type === "strikethroughSequenceTemporary" && events[index2][1]._close) {
2796
+ let open = index2;
2913
2797
  while (open--) {
2914
2798
  if (events[open][0] === "exit" && events[open][1].type === "strikethroughSequenceTemporary" && events[open][1]._open && // If the sizes are the same:
2915
- events[index3][1].end.offset - events[index3][1].start.offset === events[open][1].end.offset - events[open][1].start.offset) {
2916
- events[index3][1].type = "strikethroughSequence";
2799
+ events[index2][1].end.offset - events[index2][1].start.offset === events[open][1].end.offset - events[open][1].start.offset) {
2800
+ events[index2][1].type = "strikethroughSequence";
2917
2801
  events[open][1].type = "strikethroughSequence";
2918
2802
  const strikethrough = {
2919
2803
  type: "strikethrough",
2920
2804
  start: Object.assign({}, events[open][1].start),
2921
- end: Object.assign({}, events[index3][1].end)
2805
+ end: Object.assign({}, events[index2][1].end)
2922
2806
  };
2923
2807
  const text3 = {
2924
2808
  type: "strikethroughText",
2925
2809
  start: Object.assign({}, events[open][1].end),
2926
- end: Object.assign({}, events[index3][1].start)
2810
+ end: Object.assign({}, events[index2][1].start)
2927
2811
  };
2928
2812
  const nextEvents = [["enter", strikethrough, context], ["enter", events[open][1], context], ["exit", events[open][1], context], ["enter", text3, context]];
2929
2813
  const insideSpan = context.parser.constructs.insideSpan.null;
2930
2814
  if (insideSpan) {
2931
- splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan, events.slice(open + 1, index3), context));
2815
+ splice(nextEvents, nextEvents.length, 0, resolveAll(insideSpan, events.slice(open + 1, index2), context));
2932
2816
  }
2933
- splice(nextEvents, nextEvents.length, 0, [["exit", text3, context], ["enter", events[index3][1], context], ["exit", events[index3][1], context], ["exit", strikethrough, context]]);
2934
- splice(events, open - 1, index3 - open + 3, nextEvents);
2935
- index3 = open + nextEvents.length - 2;
2817
+ splice(nextEvents, nextEvents.length, 0, [["exit", text3, context], ["enter", events[index2][1], context], ["exit", events[index2][1], context], ["exit", strikethrough, context]]);
2818
+ splice(events, open - 1, index2 - open + 3, nextEvents);
2819
+ index2 = open + nextEvents.length - 2;
2936
2820
  break;
2937
2821
  }
2938
2822
  }
2939
2823
  }
2940
2824
  }
2941
- index3 = -1;
2942
- while (++index3 < events.length) {
2943
- if (events[index3][1].type === "strikethroughSequenceTemporary") {
2944
- events[index3][1].type = "data";
2825
+ index2 = -1;
2826
+ while (++index2 < events.length) {
2827
+ if (events[index2][1].type === "strikethroughSequenceTemporary") {
2828
+ events[index2][1].type = "data";
2945
2829
  }
2946
2830
  }
2947
2831
  return events;
@@ -2992,8 +2876,8 @@ var EditMap = class {
2992
2876
  * @param {Array<Event>} add
2993
2877
  * @returns {undefined}
2994
2878
  */
2995
- add(index3, remove, add2) {
2996
- addImplementation(this, index3, remove, add2);
2879
+ add(index2, remove, add2) {
2880
+ addImplementation(this, index2, remove, add2);
2997
2881
  }
2998
2882
  // To do: add this when moving to `micromark`.
2999
2883
  // /**
@@ -3014,18 +2898,18 @@ var EditMap = class {
3014
2898
  * @returns {undefined}
3015
2899
  */
3016
2900
  consume(events) {
3017
- this.map.sort(function(a2, b2) {
3018
- return a2[0] - b2[0];
2901
+ this.map.sort(function(a, b) {
2902
+ return a[0] - b[0];
3019
2903
  });
3020
2904
  if (this.map.length === 0) {
3021
2905
  return;
3022
2906
  }
3023
- let index3 = this.map.length;
2907
+ let index2 = this.map.length;
3024
2908
  const vecs = [];
3025
- while (index3 > 0) {
3026
- index3 -= 1;
3027
- vecs.push(events.slice(this.map[index3][0] + this.map[index3][1]), this.map[index3][2]);
3028
- events.length = this.map[index3][0];
2909
+ while (index2 > 0) {
2910
+ index2 -= 1;
2911
+ vecs.push(events.slice(this.map[index2][0] + this.map[index2][1]), this.map[index2][2]);
2912
+ events.length = this.map[index2][0];
3029
2913
  }
3030
2914
  vecs.push(events.slice());
3031
2915
  events.length = 0;
@@ -3040,34 +2924,34 @@ var EditMap = class {
3040
2924
  }
3041
2925
  };
3042
2926
  function addImplementation(editMap, at, remove, add2) {
3043
- let index3 = 0;
2927
+ let index2 = 0;
3044
2928
  if (remove === 0 && add2.length === 0) {
3045
2929
  return;
3046
2930
  }
3047
- while (index3 < editMap.map.length) {
3048
- if (editMap.map[index3][0] === at) {
3049
- editMap.map[index3][1] += remove;
3050
- editMap.map[index3][2].push(...add2);
2931
+ while (index2 < editMap.map.length) {
2932
+ if (editMap.map[index2][0] === at) {
2933
+ editMap.map[index2][1] += remove;
2934
+ editMap.map[index2][2].push(...add2);
3051
2935
  return;
3052
2936
  }
3053
- index3 += 1;
2937
+ index2 += 1;
3054
2938
  }
3055
2939
  editMap.map.push([at, remove, add2]);
3056
2940
  }
3057
2941
 
3058
2942
  // node_modules/micromark-extension-gfm-table/lib/infer.js
3059
- function gfmTableAlign(events, index3) {
2943
+ function gfmTableAlign(events, index2) {
3060
2944
  let inDelimiterRow = false;
3061
2945
  const align = [];
3062
- while (index3 < events.length) {
3063
- const event = events[index3];
2946
+ while (index2 < events.length) {
2947
+ const event = events[index2];
3064
2948
  if (inDelimiterRow) {
3065
2949
  if (event[0] === "enter") {
3066
2950
  if (event[1].type === "tableContent") {
3067
- align.push(events[index3 + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
2951
+ align.push(events[index2 + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
3068
2952
  }
3069
2953
  } else if (event[1].type === "tableContent") {
3070
- if (events[index3 - 1][1].type === "tableDelimiterMarker") {
2954
+ if (events[index2 - 1][1].type === "tableDelimiterMarker") {
3071
2955
  const alignIndex = align.length - 1;
3072
2956
  align[alignIndex] = align[alignIndex] === "left" ? "center" : "right";
3073
2957
  }
@@ -3077,7 +2961,7 @@ function gfmTableAlign(events, index3) {
3077
2961
  } else if (event[0] === "enter" && event[1].type === "tableDelimiterRow") {
3078
2962
  inDelimiterRow = true;
3079
2963
  }
3080
- index3 += 1;
2964
+ index2 += 1;
3081
2965
  }
3082
2966
  return align;
3083
2967
  }
@@ -3101,14 +2985,14 @@ function tokenizeTable(effects, ok3, nok) {
3101
2985
  let seen;
3102
2986
  return start;
3103
2987
  function start(code3) {
3104
- let index3 = self2.events.length - 1;
3105
- while (index3 > -1) {
3106
- const type = self2.events[index3][1].type;
2988
+ let index2 = self2.events.length - 1;
2989
+ while (index2 > -1) {
2990
+ const type = self2.events[index2][1].type;
3107
2991
  if (type === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
3108
- type === "linePrefix") index3--;
2992
+ type === "linePrefix") index2--;
3109
2993
  else break;
3110
2994
  }
3111
- const tail = index3 > -1 ? self2.events[index3][1].type : null;
2995
+ const tail = index2 > -1 ? self2.events[index2][1].type : null;
3112
2996
  const next = tail === "tableHead" || tail === "tableRow" ? bodyRowStart : headRowBefore;
3113
2997
  if (next === bodyRowStart && self2.parser.lazy[self2.now().line]) {
3114
2998
  return nok(code3);
@@ -3310,7 +3194,7 @@ function tokenizeTable(effects, ok3, nok) {
3310
3194
  }
3311
3195
  }
3312
3196
  function resolveTable(events, context) {
3313
- let index3 = -1;
3197
+ let index2 = -1;
3314
3198
  let inFirstCellAwaitingPipe = true;
3315
3199
  let rowKind = 0;
3316
3200
  let lastCell = [0, 0, 0, 0];
@@ -3321,8 +3205,8 @@ function resolveTable(events, context) {
3321
3205
  let currentBody;
3322
3206
  let currentCell;
3323
3207
  const map3 = new EditMap();
3324
- while (++index3 < events.length) {
3325
- const event = events[index3];
3208
+ while (++index2 < events.length) {
3209
+ const event = events[index2];
3326
3210
  const token = event[1];
3327
3211
  if (event[0] === "enter") {
3328
3212
  if (token.type === "tableHead") {
@@ -3338,12 +3222,12 @@ function resolveTable(events, context) {
3338
3222
  // Note: correct end is set later.
3339
3223
  end: Object.assign({}, token.end)
3340
3224
  };
3341
- map3.add(index3, 0, [["enter", currentTable, context]]);
3225
+ map3.add(index2, 0, [["enter", currentTable, context]]);
3342
3226
  } else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
3343
3227
  inFirstCellAwaitingPipe = true;
3344
3228
  currentCell = void 0;
3345
3229
  lastCell = [0, 0, 0, 0];
3346
- cell = [0, index3 + 1, 0, 0];
3230
+ cell = [0, index2 + 1, 0, 0];
3347
3231
  if (afterHeadAwaitingFirstBodyRow) {
3348
3232
  afterHeadAwaitingFirstBodyRow = false;
3349
3233
  currentBody = {
@@ -3352,7 +3236,7 @@ function resolveTable(events, context) {
3352
3236
  // Note: correct end is set later.
3353
3237
  end: Object.assign({}, token.end)
3354
3238
  };
3355
- map3.add(index3, 0, [["enter", currentBody, context]]);
3239
+ map3.add(index2, 0, [["enter", currentBody, context]]);
3356
3240
  }
3357
3241
  rowKind = token.type === "tableDelimiterRow" ? 2 : currentBody ? 3 : 1;
3358
3242
  } else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
@@ -3363,7 +3247,7 @@ function resolveTable(events, context) {
3363
3247
  currentCell = flushCell(map3, context, lastCell, rowKind, void 0, currentCell);
3364
3248
  lastCell = [0, 0, 0, 0];
3365
3249
  }
3366
- cell[2] = index3;
3250
+ cell[2] = index2;
3367
3251
  }
3368
3252
  } else if (token.type === "tableCellDivider") {
3369
3253
  if (inFirstCellAwaitingPipe) {
@@ -3374,34 +3258,34 @@ function resolveTable(events, context) {
3374
3258
  currentCell = flushCell(map3, context, lastCell, rowKind, void 0, currentCell);
3375
3259
  }
3376
3260
  lastCell = cell;
3377
- cell = [lastCell[1], index3, 0, 0];
3261
+ cell = [lastCell[1], index2, 0, 0];
3378
3262
  }
3379
3263
  }
3380
3264
  } else if (token.type === "tableHead") {
3381
3265
  afterHeadAwaitingFirstBodyRow = true;
3382
- lastTableEnd = index3;
3266
+ lastTableEnd = index2;
3383
3267
  } else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
3384
- lastTableEnd = index3;
3268
+ lastTableEnd = index2;
3385
3269
  if (lastCell[1] !== 0) {
3386
3270
  cell[0] = cell[1];
3387
- currentCell = flushCell(map3, context, lastCell, rowKind, index3, currentCell);
3271
+ currentCell = flushCell(map3, context, lastCell, rowKind, index2, currentCell);
3388
3272
  } else if (cell[1] !== 0) {
3389
- currentCell = flushCell(map3, context, cell, rowKind, index3, currentCell);
3273
+ currentCell = flushCell(map3, context, cell, rowKind, index2, currentCell);
3390
3274
  }
3391
3275
  rowKind = 0;
3392
3276
  } else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
3393
- cell[3] = index3;
3277
+ cell[3] = index2;
3394
3278
  }
3395
3279
  }
3396
3280
  if (lastTableEnd !== 0) {
3397
3281
  flushTableEnd(map3, context, lastTableEnd, currentTable, currentBody);
3398
3282
  }
3399
3283
  map3.consume(context.events);
3400
- index3 = -1;
3401
- while (++index3 < context.events.length) {
3402
- const event = context.events[index3];
3284
+ index2 = -1;
3285
+ while (++index2 < context.events.length) {
3286
+ const event = context.events[index2];
3403
3287
  if (event[0] === "enter" && event[1].type === "table") {
3404
- event[1]._align = gfmTableAlign(context.events, index3);
3288
+ event[1]._align = gfmTableAlign(context.events, index2);
3405
3289
  }
3406
3290
  }
3407
3291
  return events;
@@ -3437,9 +3321,9 @@ function flushCell(map3, context, range, rowKind, rowEnd, previousCell) {
3437
3321
  start[1].type = "chunkText";
3438
3322
  start[1].contentType = "text";
3439
3323
  if (range[3] > range[2] + 1) {
3440
- const a2 = range[2] + 1;
3441
- const b2 = range[3] - range[2] - 1;
3442
- map3.add(a2, b2, []);
3324
+ const a = range[2] + 1;
3325
+ const b = range[3] - range[2] - 1;
3326
+ map3.add(a, b, []);
3443
3327
  }
3444
3328
  }
3445
3329
  map3.add(range[3] + 1, 0, [["exit", valueToken, context]]);
@@ -3451,19 +3335,19 @@ function flushCell(map3, context, range, rowKind, rowEnd, previousCell) {
3451
3335
  }
3452
3336
  return previousCell;
3453
3337
  }
3454
- function flushTableEnd(map3, context, index3, table, tableBody) {
3338
+ function flushTableEnd(map3, context, index2, table, tableBody) {
3455
3339
  const exits = [];
3456
- const related = getPoint(context.events, index3);
3340
+ const related = getPoint(context.events, index2);
3457
3341
  if (tableBody) {
3458
3342
  tableBody.end = Object.assign({}, related);
3459
3343
  exits.push(["exit", tableBody, context]);
3460
3344
  }
3461
3345
  table.end = Object.assign({}, related);
3462
3346
  exits.push(["exit", table, context]);
3463
- map3.add(index3 + 1, 0, exits);
3347
+ map3.add(index2 + 1, 0, exits);
3464
3348
  }
3465
- function getPoint(events, index3) {
3466
- const event = events[index3];
3349
+ function getPoint(events, index2) {
3350
+ const event = events[index2];
3467
3351
  const side = event[0] === "enter" ? "start" : "end";
3468
3352
  return event[1][side];
3469
3353
  }
@@ -3570,1644 +3454,260 @@ function remarkGfm(options) {
3570
3454
  toMarkdownExtensions.push(gfmToMarkdown(settings));
3571
3455
  }
3572
3456
 
3573
- // node_modules/bail/index.js
3574
- function bail(error) {
3575
- if (error) {
3576
- throw error;
3457
+ // node_modules/nlcst-to-string/lib/index.js
3458
+ var emptyNodes = [];
3459
+ function toString2(value) {
3460
+ let index2 = -1;
3461
+ if (!value || !Array.isArray(value) && !value.type) {
3462
+ throw new Error("Expected node, not `" + value + "`");
3463
+ }
3464
+ if ("value" in value) return value.value;
3465
+ const children = (Array.isArray(value) ? value : value.children) || emptyNodes;
3466
+ const values = [];
3467
+ while (++index2 < children.length) {
3468
+ values[index2] = toString2(children[index2]);
3577
3469
  }
3470
+ return values.join("");
3578
3471
  }
3579
3472
 
3580
- // node_modules/unified/lib/index.js
3581
- var import_extend = __toESM(require_extend());
3473
+ // node_modules/array-iterate/lib/index.js
3474
+ var own = {}.hasOwnProperty;
3475
+ function arrayIterate(values, callbackFn, thisArg) {
3476
+ let index2 = -1;
3477
+ if (!values) {
3478
+ throw new Error("Iterate requires that |this| not be " + values);
3479
+ }
3480
+ if (!own.call(values, "length")) {
3481
+ throw new Error("Iterate requires that |this| has a `length`");
3482
+ }
3483
+ if (typeof callbackFn !== "function") {
3484
+ throw new TypeError("`callback` must be a function");
3485
+ }
3486
+ while (++index2 < values.length) {
3487
+ if (!(index2 in values)) {
3488
+ continue;
3489
+ }
3490
+ const result = callbackFn.call(thisArg, values[index2], index2, values);
3491
+ if (typeof result === "number") {
3492
+ if (result < 0) {
3493
+ index2 = 0;
3494
+ }
3495
+ index2 = result - 1;
3496
+ }
3497
+ }
3498
+ }
3582
3499
 
3583
- // node_modules/is-plain-obj/index.js
3584
- function isPlainObject(value) {
3585
- if (typeof value !== "object" || value === null) {
3586
- return false;
3500
+ // node_modules/unist-util-modify-children/lib/index.js
3501
+ function modifyChildren(modifier) {
3502
+ return modify;
3503
+ function modify(parent) {
3504
+ if (!parent || !parent.children) {
3505
+ throw new Error("Missing children in `parent` for `modifier`");
3506
+ }
3507
+ arrayIterate(parent.children, iteratee, parent);
3508
+ }
3509
+ function iteratee(node2, index2) {
3510
+ return modifier(node2, index2, this);
3587
3511
  }
3588
- const prototype = Object.getPrototypeOf(value);
3589
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
3590
3512
  }
3591
3513
 
3592
- // node_modules/trough/lib/index.js
3593
- function trough() {
3594
- const fns = [];
3595
- const pipeline = { run, use };
3596
- return pipeline;
3597
- function run(...values) {
3598
- let middlewareIndex = -1;
3599
- const callback = values.pop();
3600
- if (typeof callback !== "function") {
3601
- throw new TypeError("Expected function as last argument, not " + callback);
3602
- }
3603
- next(null, ...values);
3604
- function next(error, ...output) {
3605
- const fn = fns[++middlewareIndex];
3606
- let index3 = -1;
3607
- if (error) {
3608
- callback(error);
3609
- return;
3610
- }
3611
- while (++index3 < values.length) {
3612
- if (output[index3] === null || output[index3] === void 0) {
3613
- output[index3] = values[index3];
3514
+ // node_modules/parse-latin/lib/plugin/merge-affix-exceptions.js
3515
+ var mergeAffixExceptions = modifyChildren(
3516
+ /**
3517
+ * @type {import('unist-util-modify-children').Modifier<Paragraph>}
3518
+ */
3519
+ function(child, index2, parent) {
3520
+ const previous2 = parent.children[index2 - 1];
3521
+ if (previous2 && "children" in previous2 && "children" in child && child.children.length > 0) {
3522
+ let position = -1;
3523
+ while (child.children[++position]) {
3524
+ const node2 = child.children[position];
3525
+ if (node2.type === "WordNode") {
3526
+ return;
3527
+ }
3528
+ if (node2.type === "SymbolNode" || node2.type === "PunctuationNode") {
3529
+ const value = toString2(node2);
3530
+ if (value !== "," && value !== ";") {
3531
+ return;
3532
+ }
3533
+ previous2.children.push(...child.children);
3534
+ if (previous2.position && child.position) {
3535
+ previous2.position.end = child.position.end;
3536
+ }
3537
+ parent.children.splice(index2, 1);
3538
+ return index2;
3614
3539
  }
3615
3540
  }
3616
- values = output;
3617
- if (fn) {
3618
- wrap(fn, next)(...output);
3619
- } else {
3620
- callback(null, ...output);
3541
+ }
3542
+ }
3543
+ );
3544
+
3545
+ // node_modules/parse-latin/lib/expressions.js
3546
+ var affixSymbol = /^([!"').?\u0F3B\u0F3D\u169C\u2019\u201D\u2026\u203A\u203D\u2046\u207E\u208E\u2309\u230B\u232A\u2769\u276B\u276D\u276F\u2771\u2773\u2775\u27C6\u27E7\u27E9\u27EB\u27ED\u27EF\u2984\u2986\u2988\u298A\u298C\u298E\u2990\u2992\u2994\u2996\u2998\u29D9\u29DB\u29FD\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21\u2E23\u2E25\u2E27\u2E29\u2E56\u2E58\u2E5A\u2E5C\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\u301E\u301F\uFD3E\uFE18\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE48\uFE5A\uFE5C\uFE5E\uFF09\uFF3D\uFF5D\uFF60\uFF63\u00BB\]}])\1*$/;
3547
+ var newLine = /^[ \t]*((\r?\n|\r)[\t ]*)+$/;
3548
+ var terminalMarker = /^([!.?\u2026\u203D]+)$/;
3549
+ var wordSymbolInner = /^([&'\-.:=?@\u00AD\u00B7\u2010\u2011\u2019\u2027]|_+)$/;
3550
+ var numerical = /^(?:[\d\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])+$/;
3551
+ var digitStart = /^\d/;
3552
+ var lowerInitial = /^(?:[a-z\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5F\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7BB\uA7BD\uA7BF\uA7C1\uA7C3\uA7C8\uA7CA\uA7D1\uA7D3\uA7D5\uA7D7\uA7D9\uA7F6\uA7FA\uAB30-\uAB5A\uAB60-\uAB68\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD837[\uDF00-\uDF09\uDF0B-\uDF1E\uDF25-\uDF2A]|\uD83A[\uDD22-\uDD43])/;
3553
+ var surrogates = /[\uD800-\uDFFF]/;
3554
+ var punctuation = /[!"'-),-/:;?[-\]_{}\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u201F\u2022-\u2027\u2032-\u203A\u203C-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;
3555
+ var word = /[\dA-Za-z\u00AA\u00B2\u00B3\u00B5\u00B9\u00BA\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09F4-\u09F9\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BF2\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D63\u0D66-\u0D78\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u17F0-\u17F9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA830-\uA835\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE6\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF27\uDF30-\uDF54\uDF70-\uDF85\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC52-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF]/;
3556
+ var whiteSpace = /[\t-\r \u0085\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
3557
+
3558
+ // node_modules/parse-latin/lib/plugin/merge-affix-symbol.js
3559
+ var mergeAffixSymbol = modifyChildren(
3560
+ /**
3561
+ * @type {import('unist-util-modify-children').Modifier<Paragraph>}
3562
+ */
3563
+ function(child, index2, parent) {
3564
+ if ("children" in child && child.children.length > 0 && index2 > 0) {
3565
+ const previous2 = parent.children[index2 - 1];
3566
+ const first = child.children[0];
3567
+ const second = child.children[1];
3568
+ if (previous2 && previous2.type === "SentenceNode" && (first.type === "SymbolNode" || first.type === "PunctuationNode") && affixSymbol.test(toString2(first))) {
3569
+ child.children.shift();
3570
+ previous2.children.push(first);
3571
+ if (first.position && previous2.position) {
3572
+ previous2.position.end = first.position.end;
3573
+ }
3574
+ if (second && second.position && child.position) {
3575
+ child.position.start = second.position.start;
3576
+ }
3577
+ return index2 - 1;
3621
3578
  }
3622
3579
  }
3623
3580
  }
3624
- function use(middelware) {
3625
- if (typeof middelware !== "function") {
3626
- throw new TypeError(
3627
- "Expected `middelware` to be a function, not " + middelware
3628
- );
3581
+ );
3582
+
3583
+ // node_modules/parse-latin/lib/plugin/break-implicit-sentences.js
3584
+ var breakImplicitSentences = modifyChildren(
3585
+ /**
3586
+ * @type {import('unist-util-modify-children').Modifier<Paragraph>}
3587
+ */
3588
+ function(child, index2, parent) {
3589
+ if (child.type !== "SentenceNode") {
3590
+ return;
3629
3591
  }
3630
- fns.push(middelware);
3631
- return pipeline;
3632
- }
3633
- }
3634
- function wrap(middleware, callback) {
3635
- let called;
3636
- return wrapped;
3637
- function wrapped(...parameters) {
3638
- const fnExpectsCallback = middleware.length > parameters.length;
3639
- let result;
3640
- if (fnExpectsCallback) {
3641
- parameters.push(done);
3642
- }
3643
- try {
3644
- result = middleware.apply(this, parameters);
3645
- } catch (error) {
3646
- const exception = (
3647
- /** @type {Error} */
3648
- error
3649
- );
3650
- if (fnExpectsCallback && called) {
3651
- throw exception;
3592
+ const children = child.children;
3593
+ let position = 0;
3594
+ while (++position < children.length - 1) {
3595
+ const node2 = children[position];
3596
+ if (node2.type !== "WhiteSpaceNode" || toString2(node2).split(/\r\n|\r|\n/).length < 3) {
3597
+ continue;
3652
3598
  }
3653
- return done(exception);
3654
- }
3655
- if (!fnExpectsCallback) {
3656
- if (result && result.then && typeof result.then === "function") {
3657
- result.then(then, done);
3658
- } else if (result instanceof Error) {
3659
- done(result);
3660
- } else {
3661
- then(result);
3599
+ child.children = children.slice(0, position);
3600
+ const insertion = {
3601
+ type: "SentenceNode",
3602
+ children: children.slice(position + 1)
3603
+ };
3604
+ const tail = children[position - 1];
3605
+ const head = children[position + 1];
3606
+ parent.children.splice(index2 + 1, 0, node2, insertion);
3607
+ if (child.position && tail.position && head.position) {
3608
+ const end = child.position.end;
3609
+ child.position.end = tail.position.end;
3610
+ insertion.position = { start: head.position.start, end };
3662
3611
  }
3612
+ return index2 + 1;
3663
3613
  }
3664
3614
  }
3665
- function done(error, ...output) {
3666
- if (!called) {
3667
- called = true;
3668
- callback(error, ...output);
3615
+ );
3616
+
3617
+ // node_modules/parse-latin/lib/plugin/make-final-white-space-siblings.js
3618
+ var makeFinalWhiteSpaceSiblings = modifyChildren(
3619
+ /**
3620
+ * @type {import('unist-util-modify-children').Modifier<Paragraph | Root>}
3621
+ */
3622
+ function(child, index2, parent) {
3623
+ if ("children" in child) {
3624
+ const tail = child.children[child.children.length - 1];
3625
+ if (tail && tail.type === "WhiteSpaceNode") {
3626
+ child.children.pop();
3627
+ parent.children.splice(index2 + 1, 0, tail);
3628
+ const previous2 = child.children[child.children.length - 1];
3629
+ if (previous2 && previous2.position && child.position) {
3630
+ child.position.end = previous2.position.end;
3631
+ }
3632
+ return index2;
3633
+ }
3669
3634
  }
3670
3635
  }
3671
- function then(value) {
3672
- done(null, value);
3636
+ );
3637
+
3638
+ // node_modules/unist-util-visit-children/lib/index.js
3639
+ function visitChildren(visitor) {
3640
+ return visit2;
3641
+ function visit2(parent) {
3642
+ const children = parent && parent.children;
3643
+ let index2 = -1;
3644
+ if (!children) {
3645
+ throw new Error("Missing children in `parent` for `visit`");
3646
+ }
3647
+ while (++index2 in children) {
3648
+ visitor(children[index2], index2, parent);
3649
+ }
3673
3650
  }
3674
3651
  }
3675
3652
 
3676
- // node_modules/unist-util-stringify-position/lib/index.js
3677
- function stringifyPosition(value) {
3678
- if (!value || typeof value !== "object") {
3679
- return "";
3680
- }
3681
- if ("position" in value || "type" in value) {
3682
- return position(value.position);
3683
- }
3684
- if ("start" in value || "end" in value) {
3685
- return position(value);
3653
+ // node_modules/parse-latin/lib/plugin/make-initial-white-space-siblings.js
3654
+ var makeInitialWhiteSpaceSiblings = visitChildren(
3655
+ /**
3656
+ * @type {import('unist-util-visit-children').Visitor<Paragraph | Root>}
3657
+ */
3658
+ function(child, index2, parent) {
3659
+ if ("children" in child && child.children) {
3660
+ const head = child.children[0];
3661
+ if (head && head.type === "WhiteSpaceNode") {
3662
+ child.children.shift();
3663
+ parent.children.splice(index2, 0, head);
3664
+ const next = child.children[0];
3665
+ if (next && next.position && child.position) {
3666
+ child.position.start = next.position.start;
3667
+ }
3668
+ }
3669
+ }
3686
3670
  }
3687
- if ("line" in value || "column" in value) {
3688
- return point(value);
3671
+ );
3672
+
3673
+ // node_modules/parse-latin/lib/plugin/merge-final-word-symbol.js
3674
+ var mergeFinalWordSymbol = modifyChildren(
3675
+ /**
3676
+ * @type {import('unist-util-modify-children').Modifier<Sentence>}
3677
+ */
3678
+ function(child, index2, parent) {
3679
+ if (index2 > 0 && (child.type === "SymbolNode" || child.type === "PunctuationNode") && toString2(child) === "-") {
3680
+ const children = parent.children;
3681
+ const previous2 = children[index2 - 1];
3682
+ const next = children[index2 + 1];
3683
+ if ((!next || next.type !== "WordNode") && previous2 && previous2.type === "WordNode") {
3684
+ children.splice(index2, 1);
3685
+ previous2.children.push(child);
3686
+ if (previous2.position && child.position) {
3687
+ previous2.position.end = child.position.end;
3688
+ }
3689
+ return index2;
3690
+ }
3691
+ }
3689
3692
  }
3690
- return "";
3691
- }
3692
- function point(point3) {
3693
- return index(point3 && point3.line) + ":" + index(point3 && point3.column);
3694
- }
3695
- function position(pos) {
3696
- return point(pos && pos.start) + "-" + point(pos && pos.end);
3697
- }
3698
- function index(value) {
3699
- return value && typeof value === "number" ? value : 1;
3700
- }
3693
+ );
3701
3694
 
3702
- // node_modules/vfile-message/lib/index.js
3703
- var VFileMessage = class extends Error {
3704
- /**
3705
- * Create a message for `reason`.
3706
- *
3707
- * > 🪦 **Note**: also has obsolete signatures.
3708
- *
3709
- * @overload
3710
- * @param {string} reason
3711
- * @param {Options | null | undefined} [options]
3712
- * @returns
3713
- *
3714
- * @overload
3715
- * @param {string} reason
3716
- * @param {Node | NodeLike | null | undefined} parent
3717
- * @param {string | null | undefined} [origin]
3718
- * @returns
3719
- *
3720
- * @overload
3721
- * @param {string} reason
3722
- * @param {Point | Position | null | undefined} place
3723
- * @param {string | null | undefined} [origin]
3724
- * @returns
3725
- *
3726
- * @overload
3727
- * @param {string} reason
3728
- * @param {string | null | undefined} [origin]
3729
- * @returns
3730
- *
3731
- * @overload
3732
- * @param {Error | VFileMessage} cause
3733
- * @param {Node | NodeLike | null | undefined} parent
3734
- * @param {string | null | undefined} [origin]
3735
- * @returns
3736
- *
3737
- * @overload
3738
- * @param {Error | VFileMessage} cause
3739
- * @param {Point | Position | null | undefined} place
3740
- * @param {string | null | undefined} [origin]
3741
- * @returns
3742
- *
3743
- * @overload
3744
- * @param {Error | VFileMessage} cause
3745
- * @param {string | null | undefined} [origin]
3746
- * @returns
3747
- *
3748
- * @param {Error | VFileMessage | string} causeOrReason
3749
- * Reason for message, should use markdown.
3750
- * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
3751
- * Configuration (optional).
3752
- * @param {string | null | undefined} [origin]
3753
- * Place in code where the message originates (example:
3754
- * `'my-package:my-rule'` or `'my-rule'`).
3755
- * @returns
3756
- * Instance of `VFileMessage`.
3757
- */
3758
- // eslint-disable-next-line complexity
3759
- constructor(causeOrReason, optionsOrParentOrPlace, origin) {
3760
- super();
3761
- if (typeof optionsOrParentOrPlace === "string") {
3762
- origin = optionsOrParentOrPlace;
3763
- optionsOrParentOrPlace = void 0;
3764
- }
3765
- let reason = "";
3766
- let options = {};
3767
- let legacyCause = false;
3768
- if (optionsOrParentOrPlace) {
3769
- if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
3770
- options = { place: optionsOrParentOrPlace };
3771
- } else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
3772
- options = { place: optionsOrParentOrPlace };
3773
- } else if ("type" in optionsOrParentOrPlace) {
3774
- options = {
3775
- ancestors: [optionsOrParentOrPlace],
3776
- place: optionsOrParentOrPlace.position
3777
- };
3778
- } else {
3779
- options = { ...optionsOrParentOrPlace };
3780
- }
3781
- }
3782
- if (typeof causeOrReason === "string") {
3783
- reason = causeOrReason;
3784
- } else if (!options.cause && causeOrReason) {
3785
- legacyCause = true;
3786
- reason = causeOrReason.message;
3787
- options.cause = causeOrReason;
3788
- }
3789
- if (!options.ruleId && !options.source && typeof origin === "string") {
3790
- const index3 = origin.indexOf(":");
3791
- if (index3 === -1) {
3792
- options.ruleId = origin;
3793
- } else {
3794
- options.source = origin.slice(0, index3);
3795
- options.ruleId = origin.slice(index3 + 1);
3796
- }
3797
- }
3798
- if (!options.place && options.ancestors && options.ancestors) {
3799
- const parent = options.ancestors[options.ancestors.length - 1];
3800
- if (parent) {
3801
- options.place = parent.position;
3802
- }
3803
- }
3804
- const start = options.place && "start" in options.place ? options.place.start : options.place;
3805
- this.ancestors = options.ancestors || void 0;
3806
- this.cause = options.cause || void 0;
3807
- this.column = start ? start.column : void 0;
3808
- this.fatal = void 0;
3809
- this.file = "";
3810
- this.message = reason;
3811
- this.line = start ? start.line : void 0;
3812
- this.name = stringifyPosition(options.place) || "1:1";
3813
- this.place = options.place || void 0;
3814
- this.reason = this.message;
3815
- this.ruleId = options.ruleId || void 0;
3816
- this.source = options.source || void 0;
3817
- this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
3818
- this.actual = void 0;
3819
- this.expected = void 0;
3820
- this.note = void 0;
3821
- this.url = void 0;
3822
- }
3823
- };
3824
- VFileMessage.prototype.file = "";
3825
- VFileMessage.prototype.name = "";
3826
- VFileMessage.prototype.reason = "";
3827
- VFileMessage.prototype.message = "";
3828
- VFileMessage.prototype.stack = "";
3829
- VFileMessage.prototype.column = void 0;
3830
- VFileMessage.prototype.line = void 0;
3831
- VFileMessage.prototype.ancestors = void 0;
3832
- VFileMessage.prototype.cause = void 0;
3833
- VFileMessage.prototype.fatal = void 0;
3834
- VFileMessage.prototype.place = void 0;
3835
- VFileMessage.prototype.ruleId = void 0;
3836
- VFileMessage.prototype.source = void 0;
3837
-
3838
- // node_modules/vfile/lib/minurl.shared.js
3839
- function isUrl(fileUrlOrPath) {
3840
- return Boolean(
3841
- fileUrlOrPath !== null && typeof fileUrlOrPath === "object" && "href" in fileUrlOrPath && fileUrlOrPath.href && "protocol" in fileUrlOrPath && fileUrlOrPath.protocol && // @ts-expect-error: indexing is fine.
3842
- fileUrlOrPath.auth === void 0
3843
- );
3844
- }
3845
-
3846
- // node_modules/vfile/lib/index.js
3847
- var order = (
3848
- /** @type {const} */
3849
- [
3850
- "history",
3851
- "path",
3852
- "basename",
3853
- "stem",
3854
- "extname",
3855
- "dirname"
3856
- ]
3857
- );
3858
- var VFile = class {
3859
- /**
3860
- * Create a new virtual file.
3861
- *
3862
- * `options` is treated as:
3863
- *
3864
- * * `string` or `Uint8Array` — `{value: options}`
3865
- * * `URL` — `{path: options}`
3866
- * * `VFile` — shallow copies its data over to the new file
3867
- * * `object` — all fields are shallow copied over to the new file
3868
- *
3869
- * Path related fields are set in the following order (least specific to
3870
- * most specific): `history`, `path`, `basename`, `stem`, `extname`,
3871
- * `dirname`.
3872
- *
3873
- * You cannot set `dirname` or `extname` without setting either `history`,
3874
- * `path`, `basename`, or `stem` too.
3875
- *
3876
- * @param {Compatible | null | undefined} [value]
3877
- * File value.
3878
- * @returns
3879
- * New instance.
3880
- */
3881
- constructor(value) {
3882
- let options;
3883
- if (!value) {
3884
- options = {};
3885
- } else if (isUrl(value)) {
3886
- options = { path: value };
3887
- } else if (typeof value === "string" || isUint8Array(value)) {
3888
- options = { value };
3889
- } else {
3890
- options = value;
3891
- }
3892
- this.cwd = "cwd" in options ? "" : default3.cwd();
3893
- this.data = {};
3894
- this.history = [];
3895
- this.messages = [];
3896
- this.value;
3897
- this.map;
3898
- this.result;
3899
- this.stored;
3900
- let index3 = -1;
3901
- while (++index3 < order.length) {
3902
- const field2 = order[index3];
3903
- if (field2 in options && options[field2] !== void 0 && options[field2] !== null) {
3904
- this[field2] = field2 === "history" ? [...options[field2]] : options[field2];
3905
- }
3906
- }
3907
- let field;
3908
- for (field in options) {
3909
- if (!order.includes(field)) {
3910
- this[field] = options[field];
3911
- }
3912
- }
3913
- }
3914
- /**
3915
- * Get the basename (including extname) (example: `'index.min.js'`).
3916
- *
3917
- * @returns {string | undefined}
3918
- * Basename.
3919
- */
3920
- get basename() {
3921
- return typeof this.path === "string" ? default2.basename(this.path) : void 0;
3922
- }
3923
- /**
3924
- * Set basename (including extname) (`'index.min.js'`).
3925
- *
3926
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
3927
- * on windows).
3928
- * Cannot be nullified (use `file.path = file.dirname` instead).
3929
- *
3930
- * @param {string} basename
3931
- * Basename.
3932
- * @returns {undefined}
3933
- * Nothing.
3934
- */
3935
- set basename(basename) {
3936
- assertNonEmpty(basename, "basename");
3937
- assertPart(basename, "basename");
3938
- this.path = default2.join(this.dirname || "", basename);
3939
- }
3940
- /**
3941
- * Get the parent path (example: `'~'`).
3942
- *
3943
- * @returns {string | undefined}
3944
- * Dirname.
3945
- */
3946
- get dirname() {
3947
- return typeof this.path === "string" ? default2.dirname(this.path) : void 0;
3948
- }
3949
- /**
3950
- * Set the parent path (example: `'~'`).
3951
- *
3952
- * Cannot be set if there’s no `path` yet.
3953
- *
3954
- * @param {string | undefined} dirname
3955
- * Dirname.
3956
- * @returns {undefined}
3957
- * Nothing.
3958
- */
3959
- set dirname(dirname) {
3960
- assertPath(this.basename, "dirname");
3961
- this.path = default2.join(dirname || "", this.basename);
3962
- }
3963
- /**
3964
- * Get the extname (including dot) (example: `'.js'`).
3965
- *
3966
- * @returns {string | undefined}
3967
- * Extname.
3968
- */
3969
- get extname() {
3970
- return typeof this.path === "string" ? default2.extname(this.path) : void 0;
3971
- }
3972
- /**
3973
- * Set the extname (including dot) (example: `'.js'`).
3974
- *
3975
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
3976
- * on windows).
3977
- * Cannot be set if there’s no `path` yet.
3978
- *
3979
- * @param {string | undefined} extname
3980
- * Extname.
3981
- * @returns {undefined}
3982
- * Nothing.
3983
- */
3984
- set extname(extname) {
3985
- assertPart(extname, "extname");
3986
- assertPath(this.dirname, "extname");
3987
- if (extname) {
3988
- if (extname.codePointAt(0) !== 46) {
3989
- throw new Error("`extname` must start with `.`");
3990
- }
3991
- if (extname.includes(".", 1)) {
3992
- throw new Error("`extname` cannot contain multiple dots");
3993
- }
3994
- }
3995
- this.path = default2.join(this.dirname, this.stem + (extname || ""));
3996
- }
3997
- /**
3998
- * Get the full path (example: `'~/index.min.js'`).
3999
- *
4000
- * @returns {string}
4001
- * Path.
4002
- */
4003
- get path() {
4004
- return this.history[this.history.length - 1];
4005
- }
4006
- /**
4007
- * Set the full path (example: `'~/index.min.js'`).
4008
- *
4009
- * Cannot be nullified.
4010
- * You can set a file URL (a `URL` object with a `file:` protocol) which will
4011
- * be turned into a path with `url.fileURLToPath`.
4012
- *
4013
- * @param {URL | string} path
4014
- * Path.
4015
- * @returns {undefined}
4016
- * Nothing.
4017
- */
4018
- set path(path2) {
4019
- if (isUrl(path2)) {
4020
- path2 = fileURLToPath(path2);
4021
- }
4022
- assertNonEmpty(path2, "path");
4023
- if (this.path !== path2) {
4024
- this.history.push(path2);
4025
- }
4026
- }
4027
- /**
4028
- * Get the stem (basename w/o extname) (example: `'index.min'`).
4029
- *
4030
- * @returns {string | undefined}
4031
- * Stem.
4032
- */
4033
- get stem() {
4034
- return typeof this.path === "string" ? default2.basename(this.path, this.extname) : void 0;
4035
- }
4036
- /**
4037
- * Set the stem (basename w/o extname) (example: `'index.min'`).
4038
- *
4039
- * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
4040
- * on windows).
4041
- * Cannot be nullified (use `file.path = file.dirname` instead).
4042
- *
4043
- * @param {string} stem
4044
- * Stem.
4045
- * @returns {undefined}
4046
- * Nothing.
4047
- */
4048
- set stem(stem) {
4049
- assertNonEmpty(stem, "stem");
4050
- assertPart(stem, "stem");
4051
- this.path = default2.join(this.dirname || "", stem + (this.extname || ""));
4052
- }
4053
- // Normal prototypal methods.
4054
- /**
4055
- * Create a fatal message for `reason` associated with the file.
4056
- *
4057
- * The `fatal` field of the message is set to `true` (error; file not usable)
4058
- * and the `file` field is set to the current file path.
4059
- * The message is added to the `messages` field on `file`.
4060
- *
4061
- * > 🪦 **Note**: also has obsolete signatures.
4062
- *
4063
- * @overload
4064
- * @param {string} reason
4065
- * @param {MessageOptions | null | undefined} [options]
4066
- * @returns {never}
4067
- *
4068
- * @overload
4069
- * @param {string} reason
4070
- * @param {Node | NodeLike | null | undefined} parent
4071
- * @param {string | null | undefined} [origin]
4072
- * @returns {never}
4073
- *
4074
- * @overload
4075
- * @param {string} reason
4076
- * @param {Point | Position | null | undefined} place
4077
- * @param {string | null | undefined} [origin]
4078
- * @returns {never}
4079
- *
4080
- * @overload
4081
- * @param {string} reason
4082
- * @param {string | null | undefined} [origin]
4083
- * @returns {never}
4084
- *
4085
- * @overload
4086
- * @param {Error | VFileMessage} cause
4087
- * @param {Node | NodeLike | null | undefined} parent
4088
- * @param {string | null | undefined} [origin]
4089
- * @returns {never}
4090
- *
4091
- * @overload
4092
- * @param {Error | VFileMessage} cause
4093
- * @param {Point | Position | null | undefined} place
4094
- * @param {string | null | undefined} [origin]
4095
- * @returns {never}
4096
- *
4097
- * @overload
4098
- * @param {Error | VFileMessage} cause
4099
- * @param {string | null | undefined} [origin]
4100
- * @returns {never}
4101
- *
4102
- * @param {Error | VFileMessage | string} causeOrReason
4103
- * Reason for message, should use markdown.
4104
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
4105
- * Configuration (optional).
4106
- * @param {string | null | undefined} [origin]
4107
- * Place in code where the message originates (example:
4108
- * `'my-package:my-rule'` or `'my-rule'`).
4109
- * @returns {never}
4110
- * Never.
4111
- * @throws {VFileMessage}
4112
- * Message.
4113
- */
4114
- fail(causeOrReason, optionsOrParentOrPlace, origin) {
4115
- const message = this.message(causeOrReason, optionsOrParentOrPlace, origin);
4116
- message.fatal = true;
4117
- throw message;
4118
- }
4119
- /**
4120
- * Create an info message for `reason` associated with the file.
4121
- *
4122
- * The `fatal` field of the message is set to `undefined` (info; change
4123
- * likely not needed) and the `file` field is set to the current file path.
4124
- * The message is added to the `messages` field on `file`.
4125
- *
4126
- * > 🪦 **Note**: also has obsolete signatures.
4127
- *
4128
- * @overload
4129
- * @param {string} reason
4130
- * @param {MessageOptions | null | undefined} [options]
4131
- * @returns {VFileMessage}
4132
- *
4133
- * @overload
4134
- * @param {string} reason
4135
- * @param {Node | NodeLike | null | undefined} parent
4136
- * @param {string | null | undefined} [origin]
4137
- * @returns {VFileMessage}
4138
- *
4139
- * @overload
4140
- * @param {string} reason
4141
- * @param {Point | Position | null | undefined} place
4142
- * @param {string | null | undefined} [origin]
4143
- * @returns {VFileMessage}
4144
- *
4145
- * @overload
4146
- * @param {string} reason
4147
- * @param {string | null | undefined} [origin]
4148
- * @returns {VFileMessage}
4149
- *
4150
- * @overload
4151
- * @param {Error | VFileMessage} cause
4152
- * @param {Node | NodeLike | null | undefined} parent
4153
- * @param {string | null | undefined} [origin]
4154
- * @returns {VFileMessage}
4155
- *
4156
- * @overload
4157
- * @param {Error | VFileMessage} cause
4158
- * @param {Point | Position | null | undefined} place
4159
- * @param {string | null | undefined} [origin]
4160
- * @returns {VFileMessage}
4161
- *
4162
- * @overload
4163
- * @param {Error | VFileMessage} cause
4164
- * @param {string | null | undefined} [origin]
4165
- * @returns {VFileMessage}
4166
- *
4167
- * @param {Error | VFileMessage | string} causeOrReason
4168
- * Reason for message, should use markdown.
4169
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
4170
- * Configuration (optional).
4171
- * @param {string | null | undefined} [origin]
4172
- * Place in code where the message originates (example:
4173
- * `'my-package:my-rule'` or `'my-rule'`).
4174
- * @returns {VFileMessage}
4175
- * Message.
4176
- */
4177
- info(causeOrReason, optionsOrParentOrPlace, origin) {
4178
- const message = this.message(causeOrReason, optionsOrParentOrPlace, origin);
4179
- message.fatal = void 0;
4180
- return message;
4181
- }
4182
- /**
4183
- * Create a message for `reason` associated with the file.
4184
- *
4185
- * The `fatal` field of the message is set to `false` (warning; change may be
4186
- * needed) and the `file` field is set to the current file path.
4187
- * The message is added to the `messages` field on `file`.
4188
- *
4189
- * > 🪦 **Note**: also has obsolete signatures.
4190
- *
4191
- * @overload
4192
- * @param {string} reason
4193
- * @param {MessageOptions | null | undefined} [options]
4194
- * @returns {VFileMessage}
4195
- *
4196
- * @overload
4197
- * @param {string} reason
4198
- * @param {Node | NodeLike | null | undefined} parent
4199
- * @param {string | null | undefined} [origin]
4200
- * @returns {VFileMessage}
4201
- *
4202
- * @overload
4203
- * @param {string} reason
4204
- * @param {Point | Position | null | undefined} place
4205
- * @param {string | null | undefined} [origin]
4206
- * @returns {VFileMessage}
4207
- *
4208
- * @overload
4209
- * @param {string} reason
4210
- * @param {string | null | undefined} [origin]
4211
- * @returns {VFileMessage}
4212
- *
4213
- * @overload
4214
- * @param {Error | VFileMessage} cause
4215
- * @param {Node | NodeLike | null | undefined} parent
4216
- * @param {string | null | undefined} [origin]
4217
- * @returns {VFileMessage}
4218
- *
4219
- * @overload
4220
- * @param {Error | VFileMessage} cause
4221
- * @param {Point | Position | null | undefined} place
4222
- * @param {string | null | undefined} [origin]
4223
- * @returns {VFileMessage}
4224
- *
4225
- * @overload
4226
- * @param {Error | VFileMessage} cause
4227
- * @param {string | null | undefined} [origin]
4228
- * @returns {VFileMessage}
4229
- *
4230
- * @param {Error | VFileMessage | string} causeOrReason
4231
- * Reason for message, should use markdown.
4232
- * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
4233
- * Configuration (optional).
4234
- * @param {string | null | undefined} [origin]
4235
- * Place in code where the message originates (example:
4236
- * `'my-package:my-rule'` or `'my-rule'`).
4237
- * @returns {VFileMessage}
4238
- * Message.
4239
- */
4240
- message(causeOrReason, optionsOrParentOrPlace, origin) {
4241
- const message = new VFileMessage(
4242
- // @ts-expect-error: the overloads are fine.
4243
- causeOrReason,
4244
- optionsOrParentOrPlace,
4245
- origin
4246
- );
4247
- if (this.path) {
4248
- message.name = this.path + ":" + message.name;
4249
- message.file = this.path;
4250
- }
4251
- message.fatal = false;
4252
- this.messages.push(message);
4253
- return message;
4254
- }
4255
- /**
4256
- * Serialize the file.
4257
- *
4258
- * > **Note**: which encodings are supported depends on the engine.
4259
- * > For info on Node.js, see:
4260
- * > <https://nodejs.org/api/util.html#whatwg-supported-encodings>.
4261
- *
4262
- * @param {string | null | undefined} [encoding='utf8']
4263
- * Character encoding to understand `value` as when it’s a `Uint8Array`
4264
- * (default: `'utf-8'`).
4265
- * @returns {string}
4266
- * Serialized file.
4267
- */
4268
- toString(encoding) {
4269
- if (this.value === void 0) {
4270
- return "";
4271
- }
4272
- if (typeof this.value === "string") {
4273
- return this.value;
4274
- }
4275
- const decoder = new TextDecoder(encoding || void 0);
4276
- return decoder.decode(this.value);
4277
- }
4278
- };
4279
- function assertPart(part, name) {
4280
- if (part && part.includes(default2.sep)) {
4281
- throw new Error(
4282
- "`" + name + "` cannot be a path: did not expect `" + default2.sep + "`"
4283
- );
4284
- }
4285
- }
4286
- function assertNonEmpty(part, name) {
4287
- if (!part) {
4288
- throw new Error("`" + name + "` cannot be empty");
4289
- }
4290
- }
4291
- function assertPath(path2, name) {
4292
- if (!path2) {
4293
- throw new Error("Setting `" + name + "` requires `path` to be set too");
4294
- }
4295
- }
4296
- function isUint8Array(value) {
4297
- return Boolean(
4298
- value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
4299
- );
4300
- }
4301
-
4302
- // node_modules/unified/lib/callable-instance.js
4303
- var CallableInstance = (
4304
- /**
4305
- * @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
4306
- */
4307
- /** @type {unknown} */
4308
- /**
4309
- * @this {Function}
4310
- * @param {string | symbol} property
4311
- * @returns {(...parameters: Array<unknown>) => unknown}
4312
- */
4313
- (function(property) {
4314
- const self2 = this;
4315
- const constr = self2.constructor;
4316
- const proto = (
4317
- /** @type {Record<string | symbol, Function>} */
4318
- // Prototypes do exist.
4319
- // type-coverage:ignore-next-line
4320
- constr.prototype
4321
- );
4322
- const value = proto[property];
4323
- const apply = function() {
4324
- return value.apply(apply, arguments);
4325
- };
4326
- Object.setPrototypeOf(apply, proto);
4327
- return apply;
4328
- })
4329
- );
4330
-
4331
- // node_modules/unified/lib/index.js
4332
- var own = {}.hasOwnProperty;
4333
- var Processor = class _Processor extends CallableInstance {
4334
- /**
4335
- * Create a processor.
4336
- */
4337
- constructor() {
4338
- super("copy");
4339
- this.Compiler = void 0;
4340
- this.Parser = void 0;
4341
- this.attachers = [];
4342
- this.compiler = void 0;
4343
- this.freezeIndex = -1;
4344
- this.frozen = void 0;
4345
- this.namespace = {};
4346
- this.parser = void 0;
4347
- this.transformers = trough();
4348
- }
4349
- /**
4350
- * Copy a processor.
4351
- *
4352
- * @deprecated
4353
- * This is a private internal method and should not be used.
4354
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4355
- * New *unfrozen* processor ({@linkcode Processor}) that is
4356
- * configured to work the same as its ancestor.
4357
- * When the descendant processor is configured in the future it does not
4358
- * affect the ancestral processor.
4359
- */
4360
- copy() {
4361
- const destination = (
4362
- /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
4363
- new _Processor()
4364
- );
4365
- let index3 = -1;
4366
- while (++index3 < this.attachers.length) {
4367
- const attacher = this.attachers[index3];
4368
- destination.use(...attacher);
4369
- }
4370
- destination.data((0, import_extend.default)(true, {}, this.namespace));
4371
- return destination;
4372
- }
4373
- /**
4374
- * Configure the processor with info available to all plugins.
4375
- * Information is stored in an object.
4376
- *
4377
- * Typically, options can be given to a specific plugin, but sometimes it
4378
- * makes sense to have information shared with several plugins.
4379
- * For example, a list of HTML elements that are self-closing, which is
4380
- * needed during all phases.
4381
- *
4382
- * > **Note**: setting information cannot occur on *frozen* processors.
4383
- * > Call the processor first to create a new unfrozen processor.
4384
- *
4385
- * > **Note**: to register custom data in TypeScript, augment the
4386
- * > {@linkcode Data} interface.
4387
- *
4388
- * @example
4389
- * This example show how to get and set info:
4390
- *
4391
- * ```js
4392
- * import {unified} from 'unified'
4393
- *
4394
- * const processor = unified().data('alpha', 'bravo')
4395
- *
4396
- * processor.data('alpha') // => 'bravo'
4397
- *
4398
- * processor.data() // => {alpha: 'bravo'}
4399
- *
4400
- * processor.data({charlie: 'delta'})
4401
- *
4402
- * processor.data() // => {charlie: 'delta'}
4403
- * ```
4404
- *
4405
- * @template {keyof Data} Key
4406
- *
4407
- * @overload
4408
- * @returns {Data}
4409
- *
4410
- * @overload
4411
- * @param {Data} dataset
4412
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4413
- *
4414
- * @overload
4415
- * @param {Key} key
4416
- * @returns {Data[Key]}
4417
- *
4418
- * @overload
4419
- * @param {Key} key
4420
- * @param {Data[Key]} value
4421
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4422
- *
4423
- * @param {Data | Key} [key]
4424
- * Key to get or set, or entire dataset to set, or nothing to get the
4425
- * entire dataset (optional).
4426
- * @param {Data[Key]} [value]
4427
- * Value to set (optional).
4428
- * @returns {unknown}
4429
- * The current processor when setting, the value at `key` when getting, or
4430
- * the entire dataset when getting without key.
4431
- */
4432
- data(key, value) {
4433
- if (typeof key === "string") {
4434
- if (arguments.length === 2) {
4435
- assertUnfrozen("data", this.frozen);
4436
- this.namespace[key] = value;
4437
- return this;
4438
- }
4439
- return own.call(this.namespace, key) && this.namespace[key] || void 0;
4440
- }
4441
- if (key) {
4442
- assertUnfrozen("data", this.frozen);
4443
- this.namespace = key;
4444
- return this;
4445
- }
4446
- return this.namespace;
4447
- }
4448
- /**
4449
- * Freeze a processor.
4450
- *
4451
- * Frozen processors are meant to be extended and not to be configured
4452
- * directly.
4453
- *
4454
- * When a processor is frozen it cannot be unfrozen.
4455
- * New processors working the same way can be created by calling the
4456
- * processor.
4457
- *
4458
- * It’s possible to freeze processors explicitly by calling `.freeze()`.
4459
- * Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,
4460
- * `.stringify()`, `.process()`, or `.processSync()` are called.
4461
- *
4462
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4463
- * The current processor.
4464
- */
4465
- freeze() {
4466
- if (this.frozen) {
4467
- return this;
4468
- }
4469
- const self2 = (
4470
- /** @type {Processor} */
4471
- /** @type {unknown} */
4472
- this
4473
- );
4474
- while (++this.freezeIndex < this.attachers.length) {
4475
- const [attacher, ...options] = this.attachers[this.freezeIndex];
4476
- if (options[0] === false) {
4477
- continue;
4478
- }
4479
- if (options[0] === true) {
4480
- options[0] = void 0;
4481
- }
4482
- const transformer = attacher.call(self2, ...options);
4483
- if (typeof transformer === "function") {
4484
- this.transformers.use(transformer);
4485
- }
4486
- }
4487
- this.frozen = true;
4488
- this.freezeIndex = Number.POSITIVE_INFINITY;
4489
- return this;
4490
- }
4491
- /**
4492
- * Parse text to a syntax tree.
4493
- *
4494
- * > **Note**: `parse` freezes the processor if not already *frozen*.
4495
- *
4496
- * > **Note**: `parse` performs the parse phase, not the run phase or other
4497
- * > phases.
4498
- *
4499
- * @param {Compatible | undefined} [file]
4500
- * file to parse (optional); typically `string` or `VFile`; any value
4501
- * accepted as `x` in `new VFile(x)`.
4502
- * @returns {ParseTree extends undefined ? Node : ParseTree}
4503
- * Syntax tree representing `file`.
4504
- */
4505
- parse(file) {
4506
- this.freeze();
4507
- const realFile = vfile(file);
4508
- const parser = this.parser || this.Parser;
4509
- assertParser("parse", parser);
4510
- return parser(String(realFile), realFile);
4511
- }
4512
- /**
4513
- * Process the given file as configured on the processor.
4514
- *
4515
- * > **Note**: `process` freezes the processor if not already *frozen*.
4516
- *
4517
- * > **Note**: `process` performs the parse, run, and stringify phases.
4518
- *
4519
- * @overload
4520
- * @param {Compatible | undefined} file
4521
- * @param {ProcessCallback<VFileWithOutput<CompileResult>>} done
4522
- * @returns {undefined}
4523
- *
4524
- * @overload
4525
- * @param {Compatible | undefined} [file]
4526
- * @returns {Promise<VFileWithOutput<CompileResult>>}
4527
- *
4528
- * @param {Compatible | undefined} [file]
4529
- * File (optional); typically `string` or `VFile`]; any value accepted as
4530
- * `x` in `new VFile(x)`.
4531
- * @param {ProcessCallback<VFileWithOutput<CompileResult>> | undefined} [done]
4532
- * Callback (optional).
4533
- * @returns {Promise<VFile> | undefined}
4534
- * Nothing if `done` is given.
4535
- * Otherwise a promise, rejected with a fatal error or resolved with the
4536
- * processed file.
4537
- *
4538
- * The parsed, transformed, and compiled value is available at
4539
- * `file.value` (see note).
4540
- *
4541
- * > **Note**: unified typically compiles by serializing: most
4542
- * > compilers return `string` (or `Uint8Array`).
4543
- * > Some compilers, such as the one configured with
4544
- * > [`rehype-react`][rehype-react], return other values (in this case, a
4545
- * > React tree).
4546
- * > If you’re using a compiler that doesn’t serialize, expect different
4547
- * > result values.
4548
- * >
4549
- * > To register custom results in TypeScript, add them to
4550
- * > {@linkcode CompileResultMap}.
4551
- *
4552
- * [rehype-react]: https://github.com/rehypejs/rehype-react
4553
- */
4554
- process(file, done) {
4555
- const self2 = this;
4556
- this.freeze();
4557
- assertParser("process", this.parser || this.Parser);
4558
- assertCompiler("process", this.compiler || this.Compiler);
4559
- return done ? executor(void 0, done) : new Promise(executor);
4560
- function executor(resolve, reject) {
4561
- const realFile = vfile(file);
4562
- const parseTree = (
4563
- /** @type {HeadTree extends undefined ? Node : HeadTree} */
4564
- /** @type {unknown} */
4565
- self2.parse(realFile)
4566
- );
4567
- self2.run(parseTree, realFile, function(error, tree, file2) {
4568
- if (error || !tree || !file2) {
4569
- return realDone(error);
4570
- }
4571
- const compileTree = (
4572
- /** @type {CompileTree extends undefined ? Node : CompileTree} */
4573
- /** @type {unknown} */
4574
- tree
4575
- );
4576
- const compileResult = self2.stringify(compileTree, file2);
4577
- if (looksLikeAValue(compileResult)) {
4578
- file2.value = compileResult;
4579
- } else {
4580
- file2.result = compileResult;
4581
- }
4582
- realDone(
4583
- error,
4584
- /** @type {VFileWithOutput<CompileResult>} */
4585
- file2
4586
- );
4587
- });
4588
- function realDone(error, file2) {
4589
- if (error || !file2) {
4590
- reject(error);
4591
- } else if (resolve) {
4592
- resolve(file2);
4593
- } else {
4594
- done(void 0, file2);
4595
- }
4596
- }
4597
- }
4598
- }
4599
- /**
4600
- * Process the given file as configured on the processor.
4601
- *
4602
- * An error is thrown if asynchronous transforms are configured.
4603
- *
4604
- * > **Note**: `processSync` freezes the processor if not already *frozen*.
4605
- *
4606
- * > **Note**: `processSync` performs the parse, run, and stringify phases.
4607
- *
4608
- * @param {Compatible | undefined} [file]
4609
- * File (optional); typically `string` or `VFile`; any value accepted as
4610
- * `x` in `new VFile(x)`.
4611
- * @returns {VFileWithOutput<CompileResult>}
4612
- * The processed file.
4613
- *
4614
- * The parsed, transformed, and compiled value is available at
4615
- * `file.value` (see note).
4616
- *
4617
- * > **Note**: unified typically compiles by serializing: most
4618
- * > compilers return `string` (or `Uint8Array`).
4619
- * > Some compilers, such as the one configured with
4620
- * > [`rehype-react`][rehype-react], return other values (in this case, a
4621
- * > React tree).
4622
- * > If you’re using a compiler that doesn’t serialize, expect different
4623
- * > result values.
4624
- * >
4625
- * > To register custom results in TypeScript, add them to
4626
- * > {@linkcode CompileResultMap}.
4627
- *
4628
- * [rehype-react]: https://github.com/rehypejs/rehype-react
4629
- */
4630
- processSync(file) {
4631
- let complete = false;
4632
- let result;
4633
- this.freeze();
4634
- assertParser("processSync", this.parser || this.Parser);
4635
- assertCompiler("processSync", this.compiler || this.Compiler);
4636
- this.process(file, realDone);
4637
- assertDone("processSync", "process", complete);
4638
- return result;
4639
- function realDone(error, file2) {
4640
- complete = true;
4641
- bail(error);
4642
- result = file2;
4643
- }
4644
- }
4645
- /**
4646
- * Run *transformers* on a syntax tree.
4647
- *
4648
- * > **Note**: `run` freezes the processor if not already *frozen*.
4649
- *
4650
- * > **Note**: `run` performs the run phase, not other phases.
4651
- *
4652
- * @overload
4653
- * @param {HeadTree extends undefined ? Node : HeadTree} tree
4654
- * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
4655
- * @returns {undefined}
4656
- *
4657
- * @overload
4658
- * @param {HeadTree extends undefined ? Node : HeadTree} tree
4659
- * @param {Compatible | undefined} file
4660
- * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
4661
- * @returns {undefined}
4662
- *
4663
- * @overload
4664
- * @param {HeadTree extends undefined ? Node : HeadTree} tree
4665
- * @param {Compatible | undefined} [file]
4666
- * @returns {Promise<TailTree extends undefined ? Node : TailTree>}
4667
- *
4668
- * @param {HeadTree extends undefined ? Node : HeadTree} tree
4669
- * Tree to transform and inspect.
4670
- * @param {(
4671
- * RunCallback<TailTree extends undefined ? Node : TailTree> |
4672
- * Compatible
4673
- * )} [file]
4674
- * File associated with `node` (optional); any value accepted as `x` in
4675
- * `new VFile(x)`.
4676
- * @param {RunCallback<TailTree extends undefined ? Node : TailTree>} [done]
4677
- * Callback (optional).
4678
- * @returns {Promise<TailTree extends undefined ? Node : TailTree> | undefined}
4679
- * Nothing if `done` is given.
4680
- * Otherwise, a promise rejected with a fatal error or resolved with the
4681
- * transformed tree.
4682
- */
4683
- run(tree, file, done) {
4684
- assertNode(tree);
4685
- this.freeze();
4686
- const transformers = this.transformers;
4687
- if (!done && typeof file === "function") {
4688
- done = file;
4689
- file = void 0;
4690
- }
4691
- return done ? executor(void 0, done) : new Promise(executor);
4692
- function executor(resolve, reject) {
4693
- const realFile = vfile(file);
4694
- transformers.run(tree, realFile, realDone);
4695
- function realDone(error, outputTree, file2) {
4696
- const resultingTree = (
4697
- /** @type {TailTree extends undefined ? Node : TailTree} */
4698
- outputTree || tree
4699
- );
4700
- if (error) {
4701
- reject(error);
4702
- } else if (resolve) {
4703
- resolve(resultingTree);
4704
- } else {
4705
- done(void 0, resultingTree, file2);
4706
- }
4707
- }
4708
- }
4709
- }
4710
- /**
4711
- * Run *transformers* on a syntax tree.
4712
- *
4713
- * An error is thrown if asynchronous transforms are configured.
4714
- *
4715
- * > **Note**: `runSync` freezes the processor if not already *frozen*.
4716
- *
4717
- * > **Note**: `runSync` performs the run phase, not other phases.
4718
- *
4719
- * @param {HeadTree extends undefined ? Node : HeadTree} tree
4720
- * Tree to transform and inspect.
4721
- * @param {Compatible | undefined} [file]
4722
- * File associated with `node` (optional); any value accepted as `x` in
4723
- * `new VFile(x)`.
4724
- * @returns {TailTree extends undefined ? Node : TailTree}
4725
- * Transformed tree.
4726
- */
4727
- runSync(tree, file) {
4728
- let complete = false;
4729
- let result;
4730
- this.run(tree, file, realDone);
4731
- assertDone("runSync", "run", complete);
4732
- return result;
4733
- function realDone(error, tree2) {
4734
- bail(error);
4735
- result = tree2;
4736
- complete = true;
4737
- }
4738
- }
4739
- /**
4740
- * Compile a syntax tree.
4741
- *
4742
- * > **Note**: `stringify` freezes the processor if not already *frozen*.
4743
- *
4744
- * > **Note**: `stringify` performs the stringify phase, not the run phase
4745
- * > or other phases.
4746
- *
4747
- * @param {CompileTree extends undefined ? Node : CompileTree} tree
4748
- * Tree to compile.
4749
- * @param {Compatible | undefined} [file]
4750
- * File associated with `node` (optional); any value accepted as `x` in
4751
- * `new VFile(x)`.
4752
- * @returns {CompileResult extends undefined ? Value : CompileResult}
4753
- * Textual representation of the tree (see note).
4754
- *
4755
- * > **Note**: unified typically compiles by serializing: most compilers
4756
- * > return `string` (or `Uint8Array`).
4757
- * > Some compilers, such as the one configured with
4758
- * > [`rehype-react`][rehype-react], return other values (in this case, a
4759
- * > React tree).
4760
- * > If you’re using a compiler that doesn’t serialize, expect different
4761
- * > result values.
4762
- * >
4763
- * > To register custom results in TypeScript, add them to
4764
- * > {@linkcode CompileResultMap}.
4765
- *
4766
- * [rehype-react]: https://github.com/rehypejs/rehype-react
4767
- */
4768
- stringify(tree, file) {
4769
- this.freeze();
4770
- const realFile = vfile(file);
4771
- const compiler2 = this.compiler || this.Compiler;
4772
- assertCompiler("stringify", compiler2);
4773
- assertNode(tree);
4774
- return compiler2(tree, realFile);
4775
- }
4776
- /**
4777
- * Configure the processor to use a plugin, a list of usable values, or a
4778
- * preset.
4779
- *
4780
- * If the processor is already using a plugin, the previous plugin
4781
- * configuration is changed based on the options that are passed in.
4782
- * In other words, the plugin is not added a second time.
4783
- *
4784
- * > **Note**: `use` cannot be called on *frozen* processors.
4785
- * > Call the processor first to create a new unfrozen processor.
4786
- *
4787
- * @example
4788
- * There are many ways to pass plugins to `.use()`.
4789
- * This example gives an overview:
4790
- *
4791
- * ```js
4792
- * import {unified} from 'unified'
4793
- *
4794
- * unified()
4795
- * // Plugin with options:
4796
- * .use(pluginA, {x: true, y: true})
4797
- * // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):
4798
- * .use(pluginA, {y: false, z: true})
4799
- * // Plugins:
4800
- * .use([pluginB, pluginC])
4801
- * // Two plugins, the second with options:
4802
- * .use([pluginD, [pluginE, {}]])
4803
- * // Preset with plugins and settings:
4804
- * .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})
4805
- * // Settings only:
4806
- * .use({settings: {position: false}})
4807
- * ```
4808
- *
4809
- * @template {Array<unknown>} [Parameters=[]]
4810
- * @template {Node | string | undefined} [Input=undefined]
4811
- * @template [Output=Input]
4812
- *
4813
- * @overload
4814
- * @param {Preset | null | undefined} [preset]
4815
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4816
- *
4817
- * @overload
4818
- * @param {PluggableList} list
4819
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4820
- *
4821
- * @overload
4822
- * @param {Plugin<Parameters, Input, Output>} plugin
4823
- * @param {...(Parameters | [boolean])} parameters
4824
- * @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
4825
- *
4826
- * @param {PluggableList | Plugin | Preset | null | undefined} value
4827
- * Usable value.
4828
- * @param {...unknown} parameters
4829
- * Parameters, when a plugin is given as a usable value.
4830
- * @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
4831
- * Current processor.
4832
- */
4833
- use(value, ...parameters) {
4834
- const attachers = this.attachers;
4835
- const namespace = this.namespace;
4836
- assertUnfrozen("use", this.frozen);
4837
- if (value === null || value === void 0) ; else if (typeof value === "function") {
4838
- addPlugin(value, parameters);
4839
- } else if (typeof value === "object") {
4840
- if (Array.isArray(value)) {
4841
- addList(value);
4842
- } else {
4843
- addPreset(value);
4844
- }
4845
- } else {
4846
- throw new TypeError("Expected usable value, not `" + value + "`");
4847
- }
4848
- return this;
4849
- function add2(value2) {
4850
- if (typeof value2 === "function") {
4851
- addPlugin(value2, []);
4852
- } else if (typeof value2 === "object") {
4853
- if (Array.isArray(value2)) {
4854
- const [plugin, ...parameters2] = (
4855
- /** @type {PluginTuple<Array<unknown>>} */
4856
- value2
4857
- );
4858
- addPlugin(plugin, parameters2);
4859
- } else {
4860
- addPreset(value2);
4861
- }
4862
- } else {
4863
- throw new TypeError("Expected usable value, not `" + value2 + "`");
4864
- }
4865
- }
4866
- function addPreset(result) {
4867
- if (!("plugins" in result) && !("settings" in result)) {
4868
- throw new Error(
4869
- "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"
4870
- );
4871
- }
4872
- addList(result.plugins);
4873
- if (result.settings) {
4874
- namespace.settings = (0, import_extend.default)(true, namespace.settings, result.settings);
4875
- }
4876
- }
4877
- function addList(plugins) {
4878
- let index3 = -1;
4879
- if (plugins === null || plugins === void 0) ; else if (Array.isArray(plugins)) {
4880
- while (++index3 < plugins.length) {
4881
- const thing = plugins[index3];
4882
- add2(thing);
4883
- }
4884
- } else {
4885
- throw new TypeError("Expected a list of plugins, not `" + plugins + "`");
4886
- }
4887
- }
4888
- function addPlugin(plugin, parameters2) {
4889
- let index3 = -1;
4890
- let entryIndex = -1;
4891
- while (++index3 < attachers.length) {
4892
- if (attachers[index3][0] === plugin) {
4893
- entryIndex = index3;
4894
- break;
4895
- }
4896
- }
4897
- if (entryIndex === -1) {
4898
- attachers.push([plugin, ...parameters2]);
4899
- } else if (parameters2.length > 0) {
4900
- let [primary, ...rest] = parameters2;
4901
- const currentPrimary = attachers[entryIndex][1];
4902
- if (isPlainObject(currentPrimary) && isPlainObject(primary)) {
4903
- primary = (0, import_extend.default)(true, currentPrimary, primary);
4904
- }
4905
- attachers[entryIndex] = [plugin, primary, ...rest];
4906
- }
4907
- }
4908
- }
4909
- };
4910
- var unified = new Processor().freeze();
4911
- function assertParser(name, value) {
4912
- if (typeof value !== "function") {
4913
- throw new TypeError("Cannot `" + name + "` without `parser`");
4914
- }
4915
- }
4916
- function assertCompiler(name, value) {
4917
- if (typeof value !== "function") {
4918
- throw new TypeError("Cannot `" + name + "` without `compiler`");
4919
- }
4920
- }
4921
- function assertUnfrozen(name, frozen) {
4922
- if (frozen) {
4923
- throw new Error(
4924
- "Cannot call `" + name + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
4925
- );
4926
- }
4927
- }
4928
- function assertNode(node2) {
4929
- if (!isPlainObject(node2) || typeof node2.type !== "string") {
4930
- throw new TypeError("Expected node, got `" + node2 + "`");
4931
- }
4932
- }
4933
- function assertDone(name, asyncName, complete) {
4934
- if (!complete) {
4935
- throw new Error(
4936
- "`" + name + "` finished async. Use `" + asyncName + "` instead"
4937
- );
4938
- }
4939
- }
4940
- function vfile(value) {
4941
- return looksLikeAVFile(value) ? value : new VFile(value);
4942
- }
4943
- function looksLikeAVFile(value) {
4944
- return Boolean(
4945
- value && typeof value === "object" && "message" in value && "messages" in value
4946
- );
4947
- }
4948
- function looksLikeAValue(value) {
4949
- return typeof value === "string" || isUint8Array2(value);
4950
- }
4951
- function isUint8Array2(value) {
4952
- return Boolean(
4953
- value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
4954
- );
4955
- }
4956
-
4957
- // node_modules/nlcst-to-string/lib/index.js
4958
- var emptyNodes = [];
4959
- function toString2(value) {
4960
- let index3 = -1;
4961
- if (!value || !Array.isArray(value) && !value.type) {
4962
- throw new Error("Expected node, not `" + value + "`");
4963
- }
4964
- if ("value" in value) return value.value;
4965
- const children = (Array.isArray(value) ? value : value.children) || emptyNodes;
4966
- const values = [];
4967
- while (++index3 < children.length) {
4968
- values[index3] = toString2(children[index3]);
4969
- }
4970
- return values.join("");
4971
- }
4972
-
4973
- // node_modules/array-iterate/lib/index.js
4974
- var own2 = {}.hasOwnProperty;
4975
- function arrayIterate(values, callbackFn, thisArg) {
4976
- let index3 = -1;
4977
- if (!values) {
4978
- throw new Error("Iterate requires that |this| not be " + values);
4979
- }
4980
- if (!own2.call(values, "length")) {
4981
- throw new Error("Iterate requires that |this| has a `length`");
4982
- }
4983
- if (typeof callbackFn !== "function") {
4984
- throw new TypeError("`callback` must be a function");
4985
- }
4986
- while (++index3 < values.length) {
4987
- if (!(index3 in values)) {
4988
- continue;
4989
- }
4990
- const result = callbackFn.call(thisArg, values[index3], index3, values);
4991
- if (typeof result === "number") {
4992
- if (result < 0) {
4993
- index3 = 0;
4994
- }
4995
- index3 = result - 1;
4996
- }
4997
- }
4998
- }
4999
-
5000
- // node_modules/unist-util-modify-children/lib/index.js
5001
- function modifyChildren(modifier) {
5002
- return modify;
5003
- function modify(parent) {
5004
- if (!parent || !parent.children) {
5005
- throw new Error("Missing children in `parent` for `modifier`");
5006
- }
5007
- arrayIterate(parent.children, iteratee, parent);
5008
- }
5009
- function iteratee(node2, index3) {
5010
- return modifier(node2, index3, this);
5011
- }
5012
- }
5013
-
5014
- // node_modules/parse-latin/lib/plugin/merge-affix-exceptions.js
5015
- var mergeAffixExceptions = modifyChildren(
5016
- /**
5017
- * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5018
- */
5019
- function(child, index3, parent) {
5020
- const previous2 = parent.children[index3 - 1];
5021
- if (previous2 && "children" in previous2 && "children" in child && child.children.length > 0) {
5022
- let position3 = -1;
5023
- while (child.children[++position3]) {
5024
- const node2 = child.children[position3];
5025
- if (node2.type === "WordNode") {
5026
- return;
5027
- }
5028
- if (node2.type === "SymbolNode" || node2.type === "PunctuationNode") {
5029
- const value = toString2(node2);
5030
- if (value !== "," && value !== ";") {
5031
- return;
5032
- }
5033
- previous2.children.push(...child.children);
5034
- if (previous2.position && child.position) {
5035
- previous2.position.end = child.position.end;
5036
- }
5037
- parent.children.splice(index3, 1);
5038
- return index3;
5039
- }
5040
- }
5041
- }
5042
- }
5043
- );
5044
-
5045
- // node_modules/parse-latin/lib/expressions.js
5046
- var affixSymbol = /^([!"').?\u0F3B\u0F3D\u169C\u2019\u201D\u2026\u203A\u203D\u2046\u207E\u208E\u2309\u230B\u232A\u2769\u276B\u276D\u276F\u2771\u2773\u2775\u27C6\u27E7\u27E9\u27EB\u27ED\u27EF\u2984\u2986\u2988\u298A\u298C\u298E\u2990\u2992\u2994\u2996\u2998\u29D9\u29DB\u29FD\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21\u2E23\u2E25\u2E27\u2E29\u2E56\u2E58\u2E5A\u2E5C\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\u301E\u301F\uFD3E\uFE18\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE48\uFE5A\uFE5C\uFE5E\uFF09\uFF3D\uFF5D\uFF60\uFF63\u00BB\]}])\1*$/;
5047
- var newLine = /^[ \t]*((\r?\n|\r)[\t ]*)+$/;
5048
- var terminalMarker = /^([!.?\u2026\u203D]+)$/;
5049
- var wordSymbolInner = /^([&'\-.:=?@\u00AD\u00B7\u2010\u2011\u2019\u2027]|_+)$/;
5050
- var numerical = /^(?:[\d\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])+$/;
5051
- var digitStart = /^\d/;
5052
- var lowerInitial = /^(?:[a-z\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5F\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7BB\uA7BD\uA7BF\uA7C1\uA7C3\uA7C8\uA7CA\uA7D1\uA7D3\uA7D5\uA7D7\uA7D9\uA7F6\uA7FA\uAB30-\uAB5A\uAB60-\uAB68\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD837[\uDF00-\uDF09\uDF0B-\uDF1E\uDF25-\uDF2A]|\uD83A[\uDD22-\uDD43])/;
5053
- var surrogates = /[\uD800-\uDFFF]/;
5054
- var punctuation = /[!"'-),-/:;?[-\]_{}\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u201F\u2022-\u2027\u2032-\u203A\u203C-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;
5055
- var word = /[\dA-Za-z\u00AA\u00B2\u00B3\u00B5\u00B9\u00BA\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09F4-\u09F9\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BF2\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D63\u0D66-\u0D78\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u17F0-\u17F9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA830-\uA835\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE6\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF27\uDF30-\uDF54\uDF70-\uDF85\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC52-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF]/;
5056
- var whiteSpace = /[\t-\r \u0085\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
5057
-
5058
- // node_modules/parse-latin/lib/plugin/merge-affix-symbol.js
5059
- var mergeAffixSymbol = modifyChildren(
5060
- /**
5061
- * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5062
- */
5063
- function(child, index3, parent) {
5064
- if ("children" in child && child.children.length > 0 && index3 > 0) {
5065
- const previous2 = parent.children[index3 - 1];
5066
- const first = child.children[0];
5067
- const second = child.children[1];
5068
- if (previous2 && previous2.type === "SentenceNode" && (first.type === "SymbolNode" || first.type === "PunctuationNode") && affixSymbol.test(toString2(first))) {
5069
- child.children.shift();
5070
- previous2.children.push(first);
5071
- if (first.position && previous2.position) {
5072
- previous2.position.end = first.position.end;
5073
- }
5074
- if (second && second.position && child.position) {
5075
- child.position.start = second.position.start;
5076
- }
5077
- return index3 - 1;
5078
- }
5079
- }
5080
- }
5081
- );
5082
-
5083
- // node_modules/parse-latin/lib/plugin/break-implicit-sentences.js
5084
- var breakImplicitSentences = modifyChildren(
5085
- /**
5086
- * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5087
- */
5088
- function(child, index3, parent) {
5089
- if (child.type !== "SentenceNode") {
5090
- return;
5091
- }
5092
- const children = child.children;
5093
- let position3 = 0;
5094
- while (++position3 < children.length - 1) {
5095
- const node2 = children[position3];
5096
- if (node2.type !== "WhiteSpaceNode" || toString2(node2).split(/\r\n|\r|\n/).length < 3) {
5097
- continue;
5098
- }
5099
- child.children = children.slice(0, position3);
5100
- const insertion = {
5101
- type: "SentenceNode",
5102
- children: children.slice(position3 + 1)
5103
- };
5104
- const tail = children[position3 - 1];
5105
- const head = children[position3 + 1];
5106
- parent.children.splice(index3 + 1, 0, node2, insertion);
5107
- if (child.position && tail.position && head.position) {
5108
- const end = child.position.end;
5109
- child.position.end = tail.position.end;
5110
- insertion.position = { start: head.position.start, end };
5111
- }
5112
- return index3 + 1;
5113
- }
5114
- }
5115
- );
5116
-
5117
- // node_modules/parse-latin/lib/plugin/make-final-white-space-siblings.js
5118
- var makeFinalWhiteSpaceSiblings = modifyChildren(
5119
- /**
5120
- * @type {import('unist-util-modify-children').Modifier<Paragraph | Root>}
5121
- */
5122
- function(child, index3, parent) {
5123
- if ("children" in child) {
5124
- const tail = child.children[child.children.length - 1];
5125
- if (tail && tail.type === "WhiteSpaceNode") {
5126
- child.children.pop();
5127
- parent.children.splice(index3 + 1, 0, tail);
5128
- const previous2 = child.children[child.children.length - 1];
5129
- if (previous2 && previous2.position && child.position) {
5130
- child.position.end = previous2.position.end;
5131
- }
5132
- return index3;
5133
- }
5134
- }
5135
- }
5136
- );
5137
-
5138
- // node_modules/unist-util-visit-children/lib/index.js
5139
- function visitChildren(visitor) {
5140
- return visit2;
5141
- function visit2(parent) {
5142
- const children = parent && parent.children;
5143
- let index3 = -1;
5144
- if (!children) {
5145
- throw new Error("Missing children in `parent` for `visit`");
5146
- }
5147
- while (++index3 in children) {
5148
- visitor(children[index3], index3, parent);
5149
- }
5150
- }
5151
- }
5152
-
5153
- // node_modules/parse-latin/lib/plugin/make-initial-white-space-siblings.js
5154
- var makeInitialWhiteSpaceSiblings = visitChildren(
5155
- /**
5156
- * @type {import('unist-util-visit-children').Visitor<Paragraph | Root>}
5157
- */
5158
- function(child, index3, parent) {
5159
- if ("children" in child && child.children) {
5160
- const head = child.children[0];
5161
- if (head && head.type === "WhiteSpaceNode") {
5162
- child.children.shift();
5163
- parent.children.splice(index3, 0, head);
5164
- const next = child.children[0];
5165
- if (next && next.position && child.position) {
5166
- child.position.start = next.position.start;
5167
- }
5168
- }
5169
- }
5170
- }
5171
- );
5172
-
5173
- // node_modules/parse-latin/lib/plugin/merge-final-word-symbol.js
5174
- var mergeFinalWordSymbol = modifyChildren(
5175
- /**
5176
- * @type {import('unist-util-modify-children').Modifier<Sentence>}
5177
- */
5178
- function(child, index3, parent) {
5179
- if (index3 > 0 && (child.type === "SymbolNode" || child.type === "PunctuationNode") && toString2(child) === "-") {
5180
- const children = parent.children;
5181
- const previous2 = children[index3 - 1];
5182
- const next = children[index3 + 1];
5183
- if ((!next || next.type !== "WordNode") && previous2 && previous2.type === "WordNode") {
5184
- children.splice(index3, 1);
5185
- previous2.children.push(child);
5186
- if (previous2.position && child.position) {
5187
- previous2.position.end = child.position.end;
5188
- }
5189
- return index3;
5190
- }
5191
- }
5192
- }
5193
- );
5194
-
5195
- // node_modules/parse-latin/lib/plugin/merge-initial-digit-sentences.js
5196
- var mergeInitialDigitSentences = modifyChildren(
3695
+ // node_modules/parse-latin/lib/plugin/merge-initial-digit-sentences.js
3696
+ var mergeInitialDigitSentences = modifyChildren(
5197
3697
  /**
5198
3698
  * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5199
3699
  */
5200
- function(child, index3, parent) {
5201
- const previous2 = parent.children[index3 - 1];
3700
+ function(child, index2, parent) {
3701
+ const previous2 = parent.children[index2 - 1];
5202
3702
  if (previous2 && previous2.type === "SentenceNode" && child.type === "SentenceNode") {
5203
3703
  const head = child.children[0];
5204
3704
  if (head && head.type === "WordNode" && digitStart.test(toString2(head))) {
5205
3705
  previous2.children.push(...child.children);
5206
- parent.children.splice(index3, 1);
3706
+ parent.children.splice(index2, 1);
5207
3707
  if (previous2.position && child.position) {
5208
3708
  previous2.position.end = child.position.end;
5209
3709
  }
5210
- return index3;
3710
+ return index2;
5211
3711
  }
5212
3712
  }
5213
3713
  }
@@ -5218,24 +3718,24 @@ var mergeInitialLowerCaseLetterSentences = modifyChildren(
5218
3718
  /**
5219
3719
  * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5220
3720
  */
5221
- function(child, index3, parent) {
5222
- if (child.type === "SentenceNode" && index3 > 0) {
5223
- const previous2 = parent.children[index3 - 1];
3721
+ function(child, index2, parent) {
3722
+ if (child.type === "SentenceNode" && index2 > 0) {
3723
+ const previous2 = parent.children[index2 - 1];
5224
3724
  const children = child.children;
5225
3725
  if (children.length > 0 && previous2.type === "SentenceNode") {
5226
- let position3 = -1;
5227
- while (children[++position3]) {
5228
- const node2 = children[position3];
3726
+ let position = -1;
3727
+ while (children[++position]) {
3728
+ const node2 = children[position];
5229
3729
  if (node2.type === "WordNode") {
5230
3730
  if (!lowerInitial.test(toString2(node2))) {
5231
3731
  return;
5232
3732
  }
5233
3733
  previous2.children.push(...children);
5234
- parent.children.splice(index3, 1);
3734
+ parent.children.splice(index2, 1);
5235
3735
  if (previous2.position && child.position) {
5236
3736
  previous2.position.end = child.position.end;
5237
3737
  }
5238
- return index3;
3738
+ return index2;
5239
3739
  }
5240
3740
  if (node2.type === "SymbolNode" || node2.type === "PunctuationNode") {
5241
3741
  return;
@@ -5251,21 +3751,21 @@ var mergeInitialWordSymbol = modifyChildren(
5251
3751
  /**
5252
3752
  * @type {import('unist-util-modify-children').Modifier<Sentence>}
5253
3753
  */
5254
- function(child, index3, parent) {
3754
+ function(child, index2, parent) {
5255
3755
  if (child.type !== "SymbolNode" && child.type !== "PunctuationNode" || toString2(child) !== "&") {
5256
3756
  return;
5257
3757
  }
5258
3758
  const children = parent.children;
5259
- const next = children[index3 + 1];
5260
- if (index3 > 0 && children[index3 - 1].type === "WordNode" || !(next && next.type === "WordNode")) {
3759
+ const next = children[index2 + 1];
3760
+ if (index2 > 0 && children[index2 - 1].type === "WordNode" || !(next && next.type === "WordNode")) {
5261
3761
  return;
5262
3762
  }
5263
- children.splice(index3, 1);
3763
+ children.splice(index2, 1);
5264
3764
  next.children.unshift(child);
5265
3765
  if (next.position && child.position) {
5266
3766
  next.position.start = child.position.start;
5267
3767
  }
5268
- return index3 - 1;
3768
+ return index2 - 1;
5269
3769
  }
5270
3770
  );
5271
3771
 
@@ -5274,16 +3774,16 @@ var mergeInitialisms = modifyChildren(
5274
3774
  /**
5275
3775
  * @type {import('unist-util-modify-children').Modifier<Sentence>}
5276
3776
  */
5277
- function(child, index3, parent) {
5278
- if (index3 > 0 && child.type === "PunctuationNode" && toString2(child) === ".") {
5279
- const previous2 = parent.children[index3 - 1];
3777
+ function(child, index2, parent) {
3778
+ if (index2 > 0 && child.type === "PunctuationNode" && toString2(child) === ".") {
3779
+ const previous2 = parent.children[index2 - 1];
5280
3780
  if (previous2.type === "WordNode" && previous2.children && previous2.children.length !== 1 && previous2.children.length % 2 !== 0) {
5281
- let position3 = previous2.children.length;
3781
+ let position = previous2.children.length;
5282
3782
  let isAllDigits = true;
5283
- while (previous2.children[--position3]) {
5284
- const otherChild = previous2.children[position3];
3783
+ while (previous2.children[--position]) {
3784
+ const otherChild = previous2.children[position];
5285
3785
  const value = toString2(otherChild);
5286
- if (position3 % 2 === 0) {
3786
+ if (position % 2 === 0) {
5287
3787
  if (value.length > 1) {
5288
3788
  return;
5289
3789
  }
@@ -5291,7 +3791,7 @@ var mergeInitialisms = modifyChildren(
5291
3791
  isAllDigits = false;
5292
3792
  }
5293
3793
  } else if (value !== ".") {
5294
- if (position3 < previous2.children.length - 2) {
3794
+ if (position < previous2.children.length - 2) {
5295
3795
  break;
5296
3796
  } else {
5297
3797
  return;
@@ -5299,12 +3799,12 @@ var mergeInitialisms = modifyChildren(
5299
3799
  }
5300
3800
  }
5301
3801
  if (!isAllDigits) {
5302
- parent.children.splice(index3, 1);
3802
+ parent.children.splice(index2, 1);
5303
3803
  previous2.children.push(child);
5304
3804
  if (previous2.position && child.position) {
5305
3805
  previous2.position.end = child.position.end;
5306
3806
  }
5307
- return index3;
3807
+ return index2;
5308
3808
  }
5309
3809
  }
5310
3810
  }
@@ -5316,16 +3816,16 @@ var mergeInnerWordSymbol = modifyChildren(
5316
3816
  /**
5317
3817
  * @type {import('unist-util-modify-children').Modifier<Sentence>}
5318
3818
  */
5319
- function(child, index3, parent) {
5320
- if (index3 > 0 && (child.type === "SymbolNode" || child.type === "PunctuationNode")) {
3819
+ function(child, index2, parent) {
3820
+ if (index2 > 0 && (child.type === "SymbolNode" || child.type === "PunctuationNode")) {
5321
3821
  const siblings = parent.children;
5322
- const previous2 = siblings[index3 - 1];
3822
+ const previous2 = siblings[index2 - 1];
5323
3823
  if (previous2 && previous2.type === "WordNode") {
5324
- let position3 = index3 - 1;
3824
+ let position = index2 - 1;
5325
3825
  const tokens = [];
5326
3826
  let queue = [];
5327
- while (siblings[++position3]) {
5328
- const sibling = siblings[position3];
3827
+ while (siblings[++position]) {
3828
+ const sibling = siblings[position];
5329
3829
  if (sibling.type === "WordNode") {
5330
3830
  tokens.push(...queue, ...sibling.children);
5331
3831
  queue = [];
@@ -5337,15 +3837,15 @@ var mergeInnerWordSymbol = modifyChildren(
5337
3837
  }
5338
3838
  if (tokens.length > 0) {
5339
3839
  if (queue.length > 0) {
5340
- position3 -= queue.length;
3840
+ position -= queue.length;
5341
3841
  }
5342
- siblings.splice(index3, position3 - index3);
3842
+ siblings.splice(index2, position - index2);
5343
3843
  previous2.children.push(...tokens);
5344
3844
  const last = tokens[tokens.length - 1];
5345
3845
  if (previous2.position && last.position) {
5346
3846
  previous2.position.end = last.position.end;
5347
3847
  }
5348
- return index3;
3848
+ return index2;
5349
3849
  }
5350
3850
  }
5351
3851
  }
@@ -5357,16 +3857,16 @@ var mergeInnerWordSlash = modifyChildren(
5357
3857
  /**
5358
3858
  * @type {import('unist-util-modify-children').Modifier<Sentence>}
5359
3859
  */
5360
- function(child, index3, parent) {
3860
+ function(child, index2, parent) {
5361
3861
  const siblings = parent.children;
5362
- const previous2 = siblings[index3 - 1];
3862
+ const previous2 = siblings[index2 - 1];
5363
3863
  if (previous2 && previous2.type === "WordNode" && (child.type === "SymbolNode" || child.type === "PunctuationNode") && toString2(child) === "/") {
5364
3864
  const previousValue = toString2(previous2);
5365
3865
  let tail = child;
5366
3866
  const queue = [child];
5367
3867
  let count = 1;
5368
3868
  let nextValue = "";
5369
- const next = siblings[index3 + 1];
3869
+ const next = siblings[index2 + 1];
5370
3870
  if (next && next.type === "WordNode") {
5371
3871
  nextValue = toString2(next);
5372
3872
  tail = next;
@@ -5375,11 +3875,11 @@ var mergeInnerWordSlash = modifyChildren(
5375
3875
  }
5376
3876
  if (previousValue.length < 3 && (!nextValue || nextValue.length < 3)) {
5377
3877
  previous2.children.push(...queue);
5378
- siblings.splice(index3, count);
3878
+ siblings.splice(index2, count);
5379
3879
  if (previous2.position && tail.position) {
5380
3880
  previous2.position.end = tail.position.end;
5381
3881
  }
5382
- return index3;
3882
+ return index2;
5383
3883
  }
5384
3884
  }
5385
3885
  }
@@ -5390,30 +3890,30 @@ var mergeNonWordSentences = modifyChildren(
5390
3890
  /**
5391
3891
  * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5392
3892
  */
5393
- function(child, index3, parent) {
3893
+ function(child, index2, parent) {
5394
3894
  if ("children" in child) {
5395
- let position3 = -1;
5396
- while (child.children[++position3]) {
5397
- if (child.children[position3].type === "WordNode") {
3895
+ let position = -1;
3896
+ while (child.children[++position]) {
3897
+ if (child.children[position].type === "WordNode") {
5398
3898
  return;
5399
3899
  }
5400
3900
  }
5401
- const previous2 = parent.children[index3 - 1];
3901
+ const previous2 = parent.children[index2 - 1];
5402
3902
  if (previous2 && "children" in previous2) {
5403
3903
  previous2.children.push(...child.children);
5404
- parent.children.splice(index3, 1);
3904
+ parent.children.splice(index2, 1);
5405
3905
  if (previous2.position && child.position) {
5406
3906
  previous2.position.end = child.position.end;
5407
3907
  }
5408
- return index3;
3908
+ return index2;
5409
3909
  }
5410
- const next = parent.children[index3 + 1];
3910
+ const next = parent.children[index2 + 1];
5411
3911
  if (next && "children" in next) {
5412
3912
  next.children.unshift(...child.children);
5413
3913
  if (next.position && child.position) {
5414
3914
  next.position.start = child.position.start;
5415
3915
  }
5416
- parent.children.splice(index3, 1);
3916
+ parent.children.splice(index2, 1);
5417
3917
  }
5418
3918
  }
5419
3919
  }
@@ -5427,7 +3927,7 @@ var mergePrefixExceptions = modifyChildren(
5427
3927
  /**
5428
3928
  * @type {import('unist-util-modify-children').Modifier<Paragraph>}
5429
3929
  */
5430
- function(child, index3, parent) {
3930
+ function(child, index2, parent) {
5431
3931
  if ("children" in child && child.children.length > 1) {
5432
3932
  const period = child.children[child.children.length - 1];
5433
3933
  if (period && (period.type === "PunctuationNode" || period.type === "SymbolNode") && toString2(period) === ".") {
@@ -5438,14 +3938,14 @@ var mergePrefixExceptions = modifyChildren(
5438
3938
  if (period.position && node2.position) {
5439
3939
  node2.position.end = period.position.end;
5440
3940
  }
5441
- const next = parent.children[index3 + 1];
3941
+ const next = parent.children[index2 + 1];
5442
3942
  if (next && next.type === "SentenceNode") {
5443
3943
  child.children.push(...next.children);
5444
- parent.children.splice(index3 + 1, 1);
3944
+ parent.children.splice(index2 + 1, 1);
5445
3945
  if (next.position && child.position) {
5446
3946
  child.position.end = next.position.end;
5447
3947
  }
5448
- return index3 - 1;
3948
+ return index2 - 1;
5449
3949
  }
5450
3950
  }
5451
3951
  }
@@ -5459,12 +3959,12 @@ var mergeRemainingFullStops = visitChildren(
5459
3959
  * @type {import('unist-util-visit-children').Visitor<Paragraph>}
5460
3960
  */
5461
3961
  // eslint-disable-next-line complexity
5462
- function(child, _2, _parent) {
3962
+ function(child, _, _parent) {
5463
3963
  if ("children" in child) {
5464
- let position3 = child.children.length;
3964
+ let position = child.children.length;
5465
3965
  let hasFoundDelimiter = false;
5466
- while (child.children[--position3]) {
5467
- const grandchild = child.children[position3];
3966
+ while (child.children[--position]) {
3967
+ const grandchild = child.children[position];
5468
3968
  if (grandchild.type !== "SymbolNode" && grandchild.type !== "PunctuationNode") {
5469
3969
  if (grandchild.type === "WordNode") {
5470
3970
  hasFoundDelimiter = true;
@@ -5481,21 +3981,21 @@ var mergeRemainingFullStops = visitChildren(
5481
3981
  if (toString2(grandchild) !== ".") {
5482
3982
  continue;
5483
3983
  }
5484
- const previous2 = child.children[position3 - 1];
5485
- const next = child.children[position3 + 1];
3984
+ const previous2 = child.children[position - 1];
3985
+ const next = child.children[position + 1];
5486
3986
  if (previous2 && previous2.type === "WordNode") {
5487
- const nextNext = child.children[position3 + 2];
3987
+ const nextNext = child.children[position + 2];
5488
3988
  if (next && nextNext && next.type === "WhiteSpaceNode" && toString2(nextNext) === ".") {
5489
3989
  continue;
5490
3990
  }
5491
- child.children.splice(position3, 1);
3991
+ child.children.splice(position, 1);
5492
3992
  previous2.children.push(grandchild);
5493
3993
  if (grandchild.position && previous2.position) {
5494
3994
  previous2.position.end = grandchild.position.end;
5495
3995
  }
5496
- position3--;
3996
+ position--;
5497
3997
  } else if (next && next.type === "WordNode") {
5498
- child.children.splice(position3, 1);
3998
+ child.children.splice(position, 1);
5499
3999
  next.children.unshift(grandchild);
5500
4000
  if (grandchild.position && next.position) {
5501
4001
  next.position.start = grandchild.position.start;
@@ -5511,10 +4011,10 @@ var removeEmptyNodes = modifyChildren(
5511
4011
  /**
5512
4012
  * @type {import('unist-util-modify-children').Modifier<Paragraph | Root>}
5513
4013
  */
5514
- function(child, index3, parent) {
4014
+ function(child, index2, parent) {
5515
4015
  if ("children" in child && child.children.length === 0) {
5516
- parent.children.splice(index3, 1);
5517
- return index3;
4016
+ parent.children.splice(index2, 1);
4017
+ return index2;
5518
4018
  }
5519
4019
  }
5520
4020
  );
@@ -5524,14 +4024,14 @@ var patchPosition = visitChildren(
5524
4024
  /**
5525
4025
  * @type {import('unist-util-visit-children').Visitor<Paragraph | Root | Sentence>}
5526
4026
  */
5527
- function(child, index3, node2) {
4027
+ function(child, index2, node2) {
5528
4028
  const siblings = node2.children;
5529
- if (child.position && index3 < 1 && /* c8 ignore next */
4029
+ if (child.position && index2 < 1 && /* c8 ignore next */
5530
4030
  (!node2.position || !node2.position.start)) {
5531
4031
  patch(node2);
5532
4032
  node2.position.start = child.position.start;
5533
4033
  }
5534
- if (child.position && index3 === siblings.length - 1 && (!node2.position || !node2.position.end)) {
4034
+ if (child.position && index2 === siblings.length - 1 && (!node2.position || !node2.position.end)) {
5535
4035
  patch(node2);
5536
4036
  node2.position.end = child.position.end;
5537
4037
  }
@@ -5588,9 +4088,9 @@ var ParseLatin = class {
5588
4088
  type: "RootNode",
5589
4089
  children: splitNode(paragraph2, "WhiteSpaceNode", newLine)
5590
4090
  };
5591
- let index3 = -1;
5592
- while (this.tokenizeRootPlugins[++index3]) {
5593
- this.tokenizeRootPlugins[index3](result);
4091
+ let index2 = -1;
4092
+ while (this.tokenizeRootPlugins[++index2]) {
4093
+ this.tokenizeRootPlugins[index2](result);
5594
4094
  }
5595
4095
  return result;
5596
4096
  }
@@ -5608,9 +4108,9 @@ var ParseLatin = class {
5608
4108
  type: "ParagraphNode",
5609
4109
  children: splitNode(sentence, "PunctuationNode", terminalMarker)
5610
4110
  };
5611
- let index3 = -1;
5612
- while (this.tokenizeParagraphPlugins[++index3]) {
5613
- this.tokenizeParagraphPlugins[index3](result);
4111
+ let index2 = -1;
4112
+ while (this.tokenizeParagraphPlugins[++index2]) {
4113
+ this.tokenizeParagraphPlugins[index2](result);
5614
4114
  }
5615
4115
  return result;
5616
4116
  }
@@ -5625,9 +4125,9 @@ var ParseLatin = class {
5625
4125
  tokenizeSentence(value) {
5626
4126
  const children = this.tokenize(value);
5627
4127
  const result = { type: "SentenceNode", children };
5628
- let index3 = -1;
5629
- while (this.tokenizeSentencePlugins[++index3]) {
5630
- this.tokenizeSentencePlugins[index3](result);
4128
+ let index2 = -1;
4129
+ while (this.tokenizeSentencePlugins[++index2]) {
4130
+ this.tokenizeSentencePlugins[index2](result);
5631
4131
  }
5632
4132
  return result;
5633
4133
  }
@@ -5646,19 +4146,19 @@ var ParseLatin = class {
5646
4146
  }
5647
4147
  const currentPoint = { line: 1, column: 1, offset: 0 };
5648
4148
  let from = 0;
5649
- let index3 = 0;
4149
+ let index2 = 0;
5650
4150
  let start = { ...currentPoint };
5651
4151
  let previousType;
5652
4152
  let previous2;
5653
- while (index3 < value.length) {
5654
- const current = value.charAt(index3);
4153
+ while (index2 < value.length) {
4154
+ const current = value.charAt(index2);
5655
4155
  const currentType = whiteSpace.test(current) ? "WhiteSpaceNode" : punctuation.test(current) ? "PunctuationNode" : word.test(current) ? "WordNode" : "SymbolNode";
5656
- if (from < index3 && previousType && currentType && !(previousType === currentType && // Words or white space continue.
4156
+ if (from < index2 && previousType && currentType && !(previousType === currentType && // Words or white space continue.
5657
4157
  (previousType === "WordNode" || previousType === "WhiteSpaceNode" || // Same character of punctuation or symbol also continues.
5658
4158
  current === previous2 || // Surrogates of punctuation or symbol also continue.
5659
4159
  surrogates.test(current)))) {
5660
- children.push(createNode(previousType, value.slice(from, index3)));
5661
- from = index3;
4160
+ children.push(createNode(previousType, value.slice(from, index2)));
4161
+ from = index2;
5662
4162
  start = { ...currentPoint };
5663
4163
  }
5664
4164
  if (current === "\r" || current === "\n" && previous2 !== "\r") {
@@ -5670,10 +4170,10 @@ var ParseLatin = class {
5670
4170
  currentPoint.offset++;
5671
4171
  previousType = currentType;
5672
4172
  previous2 = current;
5673
- index3++;
4173
+ index2++;
5674
4174
  }
5675
- if (previousType && from < index3) {
5676
- children.push(createNode(previousType, value.slice(from, index3)));
4175
+ if (previousType && from < index2) {
4176
+ children.push(createNode(previousType, value.slice(from, index2)));
5677
4177
  }
5678
4178
  return children;
5679
4179
  function createNode(type, value2) {
@@ -5721,14 +4221,14 @@ ParseLatin.prototype.tokenizeRootPlugins = [
5721
4221
  ];
5722
4222
  function splitNode(node2, childType, expression) {
5723
4223
  const result = [];
5724
- let index3 = -1;
4224
+ let index2 = -1;
5725
4225
  let start = 0;
5726
- while (++index3 < node2.children.length) {
5727
- const token = node2.children[index3];
5728
- if (index3 === node2.children.length - 1 || token.type === childType && expression.test(toString2(token))) {
4226
+ while (++index2 < node2.children.length) {
4227
+ const token = node2.children[index2];
4228
+ if (index2 === node2.children.length - 1 || token.type === childType && expression.test(toString2(token))) {
5729
4229
  const parent = {
5730
4230
  type: node2.type,
5731
- children: node2.children.slice(start, index3 + 1)
4231
+ children: node2.children.slice(start, index2 + 1)
5732
4232
  };
5733
4233
  const first = node2.children[start];
5734
4234
  const last = token;
@@ -5739,7 +4239,7 @@ function splitNode(node2, childType, expression) {
5739
4239
  };
5740
4240
  }
5741
4241
  result.push(parent);
5742
- start = index3 + 1;
4242
+ start = index2 + 1;
5743
4243
  }
5744
4244
  }
5745
4245
  return result;
@@ -5817,22 +4317,22 @@ function retextSmartypants(options) {
5817
4317
  open: settings.openingQuotes ? [settings.openingQuotes.double, settings.openingQuotes.single] : defaultOpeningQuotes
5818
4318
  };
5819
4319
  return function(tree) {
5820
- visit(tree, function(node2, position3, parent) {
5821
- let index3 = -1;
5822
- if (parent && position3 !== void 0 && (node2.type === "PunctuationNode" || node2.type === "SymbolNode")) {
5823
- while (++index3 < methods.length) {
5824
- const result = methods[index3](state, node2, position3, parent);
4320
+ visit(tree, function(node2, position, parent) {
4321
+ let index2 = -1;
4322
+ if (parent && position !== void 0 && (node2.type === "PunctuationNode" || node2.type === "SymbolNode")) {
4323
+ while (++index2 < methods.length) {
4324
+ const result = methods[index2](state, node2, position, parent);
5825
4325
  if (result === true) {
5826
4326
  console.log("drop", node2);
5827
- parent.children.splice(position3, 1);
5828
- return position3;
4327
+ parent.children.splice(position, 1);
4328
+ return position;
5829
4329
  }
5830
4330
  }
5831
4331
  }
5832
4332
  });
5833
4333
  };
5834
4334
  }
5835
- function backticksAll(state, node2, index3, parent) {
4335
+ function backticksAll(state, node2, index2, parent) {
5836
4336
  backticksDefault(state, node2);
5837
4337
  if (node2.value === "`") {
5838
4338
  node2.value = "\u2018";
@@ -5840,20 +4340,20 @@ function backticksAll(state, node2, index3, parent) {
5840
4340
  node2.value = "\u2019";
5841
4341
  }
5842
4342
  }
5843
- function backticksDefault(_2, node2) {
4343
+ function backticksDefault(_, node2) {
5844
4344
  if (node2.value === "``") {
5845
4345
  node2.value = "\u201C";
5846
4346
  } else if (node2.value === "''") {
5847
4347
  node2.value = "\u201D";
5848
4348
  }
5849
4349
  }
5850
- function dashesDefault(_2, node2) {
4350
+ function dashesDefault(_, node2) {
5851
4351
  if (node2.value === "--") {
5852
4352
  node2.value = "\u2014";
5853
4353
  }
5854
4354
  }
5855
- function dashesInverted(_2, node2, index3, parent) {
5856
- const next = parent.children[index3 + 1];
4355
+ function dashesInverted(_, node2, index2, parent) {
4356
+ const next = parent.children[index2 + 1];
5857
4357
  if (node2.value === "\u2014" && next && next.type === "PunctuationNode" && next.value === "-") {
5858
4358
  next.value = "\u2013";
5859
4359
  return true;
@@ -5864,8 +4364,8 @@ function dashesInverted(_2, node2, index3, parent) {
5864
4364
  node2.value = "\u2014";
5865
4365
  }
5866
4366
  }
5867
- function dashesOldschool(_2, node2, index3, parent) {
5868
- const next = parent.children[index3 + 1];
4367
+ function dashesOldschool(_, node2, index2, parent) {
4368
+ const next = parent.children[index2 + 1];
5869
4369
  if (node2.value === "\u2013" && next && next.type === "PunctuationNode" && next.value === "-") {
5870
4370
  next.value = "\u2014";
5871
4371
  return true;
@@ -5876,26 +4376,26 @@ function dashesOldschool(_2, node2, index3, parent) {
5876
4376
  node2.value = "\u2013";
5877
4377
  }
5878
4378
  }
5879
- function ellipsesDefault(_2, node2, index3, parent) {
5880
- ellipsesSpaced(_2, node2, index3, parent);
5881
- ellipsesUnspaced(_2, node2);
4379
+ function ellipsesDefault(_, node2, index2, parent) {
4380
+ ellipsesSpaced(_, node2, index2, parent);
4381
+ ellipsesUnspaced(_, node2);
5882
4382
  }
5883
- function ellipsesSpaced(_2, node2, index3, parent) {
4383
+ function ellipsesSpaced(_, node2, index2, parent) {
5884
4384
  const value = node2.value;
5885
4385
  const siblings = parent.children;
5886
4386
  if (!/^\.+$/.test(value)) {
5887
4387
  return;
5888
4388
  }
5889
4389
  const nodes = [];
5890
- let position3 = index3;
4390
+ let position = index2;
5891
4391
  let count = 1;
5892
- while (--position3 > 0) {
5893
- let sibling = siblings[position3];
4392
+ while (--position > 0) {
4393
+ let sibling = siblings[position];
5894
4394
  if (sibling.type !== "WhiteSpaceNode") {
5895
4395
  break;
5896
4396
  }
5897
4397
  const queue = sibling;
5898
- sibling = siblings[--position3];
4398
+ sibling = siblings[--position];
5899
4399
  if (sibling && (sibling.type === "PunctuationNode" || sibling.type === "SymbolNode") && /^\.+$/.test(sibling.value)) {
5900
4400
  nodes.push(queue, sibling);
5901
4401
  count++;
@@ -5906,24 +4406,24 @@ function ellipsesSpaced(_2, node2, index3, parent) {
5906
4406
  if (count < 3) {
5907
4407
  return;
5908
4408
  }
5909
- siblings.splice(index3 - nodes.length, nodes.length);
4409
+ siblings.splice(index2 - nodes.length, nodes.length);
5910
4410
  node2.value = "\u2026";
5911
4411
  }
5912
- function ellipsesUnspaced(_2, node2) {
4412
+ function ellipsesUnspaced(_, node2) {
5913
4413
  if (/^\.{3,}$/.test(node2.value)) {
5914
4414
  node2.value = "\u2026";
5915
4415
  }
5916
4416
  }
5917
- function quotesDefault(state, node2, index3, parent) {
4417
+ function quotesDefault(state, node2, index2, parent) {
5918
4418
  const siblings = parent.children;
5919
4419
  const value = node2.value;
5920
4420
  if (value !== '"' && value !== "'") {
5921
4421
  return;
5922
4422
  }
5923
4423
  const quoteIndex = value === '"' ? 0 : 1;
5924
- const previous2 = siblings[index3 - 1];
5925
- const next = siblings[index3 + 1];
5926
- const nextNext = siblings[index3 + 2];
4424
+ const previous2 = siblings[index2 - 1];
4425
+ const next = siblings[index2 + 1];
4426
+ const nextNext = siblings[index2 + 2];
5927
4427
  const nextValue = next ? toString2(next) : "";
5928
4428
  if (next && (next.type === "PunctuationNode" || next.type === "SymbolNode") && (!nextNext || nextNext.type !== "WordNode")) {
5929
4429
  node2.value = state.close[quoteIndex];
@@ -5946,7 +4446,7 @@ function quotesDefault(state, node2, index3, parent) {
5946
4446
  // node_modules/remark-smartypants/dist/plugin.js
5947
4447
  var VISITED_NODES = /* @__PURE__ */ new Set(["text", "inlineCode", "paragraph"]);
5948
4448
  var IGNORED_HTML_ELEMENTS = /* @__PURE__ */ new Set(["style", "script"]);
5949
- var check = (node2, index3, parent) => {
4449
+ var check = (node2, index2, parent) => {
5950
4450
  return parent && (parent.type !== "mdxJsxTextElement" || "name" in parent && typeof parent.name === "string" && !IGNORED_HTML_ELEMENTS.has(parent.name)) && VISITED_NODES.has(node2.type) && (isLiteral(node2) || isParagraph(node2));
5951
4451
  };
5952
4452
  var remarkSmartypants = (options) => {
@@ -6026,60 +4526,60 @@ var guard = (name, init) => {
6026
4526
  }
6027
4527
  return new env[name](init);
6028
4528
  };
6029
- var deserializer = ($2, _2) => {
6030
- const as = (out, index3) => {
6031
- $2.set(index3, out);
4529
+ var deserializer = ($, _) => {
4530
+ const as = (out, index2) => {
4531
+ $.set(index2, out);
6032
4532
  return out;
6033
4533
  };
6034
- const unpair = (index3) => {
6035
- if ($2.has(index3))
6036
- return $2.get(index3);
6037
- const [type, value] = _2[index3];
4534
+ const unpair = (index2) => {
4535
+ if ($.has(index2))
4536
+ return $.get(index2);
4537
+ const [type, value] = _[index2];
6038
4538
  switch (type) {
6039
4539
  case PRIMITIVE:
6040
4540
  case VOID:
6041
- return as(value, index3);
4541
+ return as(value, index2);
6042
4542
  case ARRAY: {
6043
- const arr = as([], index3);
6044
- for (const index4 of value)
6045
- arr.push(unpair(index4));
4543
+ const arr = as([], index2);
4544
+ for (const index3 of value)
4545
+ arr.push(unpair(index3));
6046
4546
  return arr;
6047
4547
  }
6048
4548
  case OBJECT: {
6049
- const object = as({}, index3);
6050
- for (const [key, index4] of value)
6051
- object[unpair(key)] = unpair(index4);
4549
+ const object = as({}, index2);
4550
+ for (const [key, index3] of value)
4551
+ object[unpair(key)] = unpair(index3);
6052
4552
  return object;
6053
4553
  }
6054
4554
  case DATE:
6055
- return as(new Date(value), index3);
4555
+ return as(new Date(value), index2);
6056
4556
  case REGEXP: {
6057
4557
  const { source, flags } = value;
6058
- return as(new RegExp(source, flags), index3);
4558
+ return as(new RegExp(source, flags), index2);
6059
4559
  }
6060
4560
  case MAP: {
6061
- const map3 = as(/* @__PURE__ */ new Map(), index3);
6062
- for (const [key, index4] of value)
6063
- map3.set(unpair(key), unpair(index4));
4561
+ const map3 = as(/* @__PURE__ */ new Map(), index2);
4562
+ for (const [key, index3] of value)
4563
+ map3.set(unpair(key), unpair(index3));
6064
4564
  return map3;
6065
4565
  }
6066
4566
  case SET: {
6067
- const set = as(/* @__PURE__ */ new Set(), index3);
6068
- for (const index4 of value)
6069
- set.add(unpair(index4));
4567
+ const set = as(/* @__PURE__ */ new Set(), index2);
4568
+ for (const index3 of value)
4569
+ set.add(unpair(index3));
6070
4570
  return set;
6071
4571
  }
6072
4572
  case ERROR: {
6073
4573
  const { name, message } = value;
6074
4574
  return as(
6075
4575
  typeof env[name] === "function" ? guard(name, message) : new Error(message),
6076
- index3
4576
+ index2
6077
4577
  );
6078
4578
  }
6079
4579
  case BIGINT:
6080
- return as(BigInt(value), index3);
4580
+ return as(BigInt(value), index2);
6081
4581
  case "BigInt":
6082
- return as(Object(BigInt(value)), index3);
4582
+ return as(Object(BigInt(value)), index2);
6083
4583
  case "ArrayBuffer":
6084
4584
  return as(new Uint8Array(value).buffer, value);
6085
4585
  case "DataView": {
@@ -6087,7 +4587,7 @@ var deserializer = ($2, _2) => {
6087
4587
  return as(new DataView(buffer), value);
6088
4588
  }
6089
4589
  }
6090
- return as(guard(type, value), index3);
4590
+ return as(guard(type, value), index2);
6091
4591
  };
6092
4592
  return unpair;
6093
4593
  };
@@ -6125,15 +4625,15 @@ var typeOf = (value) => {
6125
4625
  return [OBJECT, asString];
6126
4626
  };
6127
4627
  var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
6128
- var serializer = (strict, json, $2, _2) => {
4628
+ var serializer = (strict, json, $, _) => {
6129
4629
  const as = (out, value) => {
6130
- const index3 = _2.push(out) - 1;
6131
- $2.set(value, index3);
6132
- return index3;
4630
+ const index2 = _.push(out) - 1;
4631
+ $.set(value, index2);
4632
+ return index2;
6133
4633
  };
6134
4634
  const pair = (value) => {
6135
- if ($2.has(value))
6136
- return $2.get(value);
4635
+ if ($.has(value))
4636
+ return $.get(value);
6137
4637
  let [TYPE, type] = typeOf(value);
6138
4638
  switch (TYPE) {
6139
4639
  case PRIMITIVE: {
@@ -6165,10 +4665,10 @@ var serializer = (strict, json, $2, _2) => {
6165
4665
  return as([type, [...spread]], value);
6166
4666
  }
6167
4667
  const arr = [];
6168
- const index3 = as([TYPE, arr], value);
4668
+ const index2 = as([TYPE, arr], value);
6169
4669
  for (const entry of value)
6170
4670
  arr.push(pair(entry));
6171
- return index3;
4671
+ return index2;
6172
4672
  }
6173
4673
  case OBJECT: {
6174
4674
  if (type) {
@@ -6184,12 +4684,12 @@ var serializer = (strict, json, $2, _2) => {
6184
4684
  if (json && "toJSON" in value)
6185
4685
  return pair(value.toJSON());
6186
4686
  const entries = [];
6187
- const index3 = as([TYPE, entries], value);
4687
+ const index2 = as([TYPE, entries], value);
6188
4688
  for (const key of keys(value)) {
6189
4689
  if (strict || !shouldSkip(typeOf(value[key])))
6190
4690
  entries.push([pair(key), pair(value[key])]);
6191
4691
  }
6192
- return index3;
4692
+ return index2;
6193
4693
  }
6194
4694
  case DATE:
6195
4695
  return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);
@@ -6199,21 +4699,21 @@ var serializer = (strict, json, $2, _2) => {
6199
4699
  }
6200
4700
  case MAP: {
6201
4701
  const entries = [];
6202
- const index3 = as([TYPE, entries], value);
4702
+ const index2 = as([TYPE, entries], value);
6203
4703
  for (const [key, entry] of value) {
6204
4704
  if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
6205
4705
  entries.push([pair(key), pair(entry)]);
6206
4706
  }
6207
- return index3;
4707
+ return index2;
6208
4708
  }
6209
4709
  case SET: {
6210
4710
  const entries = [];
6211
- const index3 = as([TYPE, entries], value);
4711
+ const index2 = as([TYPE, entries], value);
6212
4712
  for (const entry of value) {
6213
4713
  if (strict || !shouldSkip(typeOf(entry)))
6214
4714
  entries.push(pair(entry));
6215
4715
  }
6216
- return index3;
4716
+ return index2;
6217
4717
  }
6218
4718
  }
6219
4719
  const { message } = value;
@@ -6222,8 +4722,8 @@ var serializer = (strict, json, $2, _2) => {
6222
4722
  return pair;
6223
4723
  };
6224
4724
  var serialize2 = (value, { json, lossy } = {}) => {
6225
- const _2 = [];
6226
- return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _2)(value), _2;
4725
+ const _ = [];
4726
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
6227
4727
  };
6228
4728
 
6229
4729
  // node_modules/@ungap/structured-clone/esm/index.js
@@ -6272,15 +4772,15 @@ var convertElement = (
6272
4772
  );
6273
4773
  function anyFactory2(tests) {
6274
4774
  const checks2 = [];
6275
- let index3 = -1;
6276
- while (++index3 < tests.length) {
6277
- checks2[index3] = convertElement(tests[index3]);
4775
+ let index2 = -1;
4776
+ while (++index2 < tests.length) {
4777
+ checks2[index2] = convertElement(tests[index2]);
6278
4778
  }
6279
4779
  return castFactory2(any);
6280
4780
  function any(...parameters) {
6281
- let index4 = -1;
6282
- while (++index4 < checks2.length) {
6283
- if (checks2[index4].apply(this, parameters)) return true;
4781
+ let index3 = -1;
4782
+ while (++index3 < checks2.length) {
4783
+ if (checks2[index3].apply(this, parameters)) return true;
6284
4784
  }
6285
4785
  return false;
6286
4786
  }
@@ -6293,12 +4793,12 @@ function tagNameFactory(check2) {
6293
4793
  }
6294
4794
  function castFactory2(testFunction) {
6295
4795
  return check2;
6296
- function check2(value, index3, parent) {
4796
+ function check2(value, index2, parent) {
6297
4797
  return Boolean(
6298
4798
  looksLikeAnElement(value) && testFunction.call(
6299
4799
  this,
6300
4800
  value,
6301
- typeof index3 === "number" ? index3 : void 0,
4801
+ typeof index2 === "number" ? index2 : void 0,
6302
4802
  parent || void 0
6303
4803
  )
6304
4804
  );
@@ -6333,7 +4833,7 @@ function rehypeAutolinkHeadings(options) {
6333
4833
  if (behavior === "after" || behavior === "before") {
6334
4834
  method = around;
6335
4835
  } else if (behavior === "wrap") {
6336
- method = wrap2;
4836
+ method = wrap;
6337
4837
  } else {
6338
4838
  method = inject;
6339
4839
  if (!properties) {
@@ -6341,10 +4841,10 @@ function rehypeAutolinkHeadings(options) {
6341
4841
  }
6342
4842
  }
6343
4843
  return function(tree) {
6344
- visit(tree, "element", function(node2, index3, parent) {
6345
- if (headingRank(node2) && node2.properties.id && is2(node2, index3, parent)) {
4844
+ visit(tree, "element", function(node2, index2, parent) {
4845
+ if (headingRank(node2) && node2.properties.id && is2(node2, index2, parent)) {
6346
4846
  Object.assign(node2.properties, toProperties(headingOroperties, node2));
6347
- return method(node2, index3, parent);
4847
+ return method(node2, index2, parent);
6348
4848
  }
6349
4849
  });
6350
4850
  };
@@ -6355,8 +4855,8 @@ function rehypeAutolinkHeadings(options) {
6355
4855
  );
6356
4856
  return [SKIP];
6357
4857
  }
6358
- function around(node2, index3, parent) {
6359
- if (typeof index3 !== "number" || !parent) return;
4858
+ function around(node2, index2, parent) {
4859
+ if (typeof index2 !== "number" || !parent) return;
6360
4860
  const children = toChildren(content || contentDefaults, node2);
6361
4861
  const link2 = create(node2, toProperties(properties, node2), children);
6362
4862
  let nodes = behavior === "before" ? [link2, node2] : [node2, link2];
@@ -6367,10 +4867,10 @@ function rehypeAutolinkHeadings(options) {
6367
4867
  nodes = [grouping];
6368
4868
  }
6369
4869
  }
6370
- parent.children.splice(index3, 1, ...nodes);
6371
- return [SKIP, index3 + nodes.length];
4870
+ parent.children.splice(index2, 1, ...nodes);
4871
+ return [SKIP, index2 + nodes.length];
6372
4872
  }
6373
- function wrap2(node2) {
4873
+ function wrap(node2) {
6374
4874
  let before = node2.children;
6375
4875
  let after = [];
6376
4876
  if (typeof content === "function") {
@@ -6415,39 +4915,36 @@ function toProperties(value, node2) {
6415
4915
  if (typeof value === "function") return value(node2);
6416
4916
  return value ? clone(value) : {};
6417
4917
  }
6418
- "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
6419
-
6420
- // node_modules/@quartz-community/utils/dist/index.js
6421
- var __create2 = Object.create;
6422
- var __defProp2 = Object.defineProperty;
6423
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
6424
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
6425
- var __getProtoOf2 = Object.getPrototypeOf;
6426
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
6427
- var __commonJS2 = (cb, mod) => function __require() {
6428
- return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4918
+ var __create = Object.create;
4919
+ var __defProp = Object.defineProperty;
4920
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4921
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4922
+ var __getProtoOf = Object.getPrototypeOf;
4923
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4924
+ var __commonJS = (cb, mod) => function __require() {
4925
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6429
4926
  };
6430
4927
  var __export = (target, all2) => {
6431
4928
  for (var name2 in all2)
6432
- __defProp2(target, name2, { get: all2[name2], enumerable: true });
4929
+ __defProp(target, name2, { get: all2[name2], enumerable: true });
6433
4930
  };
6434
- var __copyProps2 = (to, from, except, desc) => {
4931
+ var __copyProps = (to, from, except, desc) => {
6435
4932
  if (from && typeof from === "object" || typeof from === "function") {
6436
- for (let key of __getOwnPropNames2(from))
6437
- if (!__hasOwnProp2.call(to, key) && key !== except)
6438
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
4933
+ for (let key of __getOwnPropNames(from))
4934
+ if (!__hasOwnProp.call(to, key) && key !== except)
4935
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
6439
4936
  }
6440
4937
  return to;
6441
4938
  };
6442
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
4939
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
6443
4940
  // If the importer is in node compatibility mode or this is not an ESM
6444
4941
  // file that has been converted to a CommonJS file using a Babel-
6445
4942
  // compatible transform (i.e. "__esModule" has not been set), then set
6446
4943
  // "default" to the CommonJS "module.exports" for node compatibility.
6447
- __defProp2(target, "default", { value: mod, enumerable: true }),
4944
+ __defProp(target, "default", { value: mod, enumerable: true }),
6448
4945
  mod
6449
4946
  ));
6450
- var require_cjs = __commonJS2({
4947
+ var require_cjs = __commonJS({
6451
4948
  "node_modules/inline-style-parser/cjs/index.js"(exports, module) {
6452
4949
  var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
6453
4950
  var NEWLINE_REGEX = /\n/g;
@@ -6463,7 +4960,7 @@ var require_cjs = __commonJS2({
6463
4960
  var EMPTY_STRING = "";
6464
4961
  var TYPE_COMMENT = "comment";
6465
4962
  var TYPE_DECLARATION = "declaration";
6466
- function index22(style, options) {
4963
+ function index2(style, options) {
6467
4964
  if (typeof style !== "string") {
6468
4965
  throw new TypeError("First argument must be a string");
6469
4966
  }
@@ -6474,8 +4971,8 @@ var require_cjs = __commonJS2({
6474
4971
  function updatePosition(str) {
6475
4972
  var lines = str.match(NEWLINE_REGEX);
6476
4973
  if (lines) lineno += lines.length;
6477
- var i2 = str.lastIndexOf(NEWLINE);
6478
- column = ~i2 ? str.length - i2 : column + str.length;
4974
+ var i = str.lastIndexOf(NEWLINE);
4975
+ column = ~i ? str.length - i : column + str.length;
6479
4976
  }
6480
4977
  function position3() {
6481
4978
  var start2 = { line: lineno, column };
@@ -6506,22 +5003,22 @@ var require_cjs = __commonJS2({
6506
5003
  }
6507
5004
  }
6508
5005
  function match(re2) {
6509
- var m2 = re2.exec(style);
6510
- if (!m2) return;
6511
- var str = m2[0];
5006
+ var m = re2.exec(style);
5007
+ if (!m) return;
5008
+ var str = m[0];
6512
5009
  updatePosition(str);
6513
5010
  style = style.slice(str.length);
6514
- return m2;
5011
+ return m;
6515
5012
  }
6516
5013
  function whitespace2() {
6517
5014
  match(WHITESPACE_REGEX);
6518
5015
  }
6519
5016
  function comments(rules) {
6520
- var c2;
5017
+ var c;
6521
5018
  rules = rules || [];
6522
- while (c2 = comment()) {
6523
- if (c2 !== false) {
6524
- rules.push(c2);
5019
+ while (c = comment()) {
5020
+ if (c !== false) {
5021
+ rules.push(c);
6525
5022
  }
6526
5023
  }
6527
5024
  return rules;
@@ -6529,18 +5026,18 @@ var require_cjs = __commonJS2({
6529
5026
  function comment() {
6530
5027
  var pos = position3();
6531
5028
  if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
6532
- var i2 = 2;
6533
- while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
6534
- ++i2;
5029
+ var i = 2;
5030
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
5031
+ ++i;
6535
5032
  }
6536
- i2 += 2;
6537
- if (EMPTY_STRING === style.charAt(i2 - 1)) {
5033
+ i += 2;
5034
+ if (EMPTY_STRING === style.charAt(i - 1)) {
6538
5035
  return error("End of comment missing");
6539
5036
  }
6540
- var str = style.slice(2, i2 - 2);
5037
+ var str = style.slice(2, i - 2);
6541
5038
  column += 2;
6542
5039
  updatePosition(str);
6543
- style = style.slice(i2);
5040
+ style = style.slice(i);
6544
5041
  column += 2;
6545
5042
  return pos({
6546
5043
  type: TYPE_COMMENT,
@@ -6580,10 +5077,10 @@ var require_cjs = __commonJS2({
6580
5077
  function trim(str) {
6581
5078
  return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
6582
5079
  }
6583
- module.exports = index22;
5080
+ module.exports = index2;
6584
5081
  }
6585
5082
  });
6586
- var require_cjs2 = __commonJS2({
5083
+ var require_cjs2 = __commonJS({
6587
5084
  "node_modules/style-to-object/cjs/index.js"(exports) {
6588
5085
  var __importDefault = exports && exports.__importDefault || function(mod) {
6589
5086
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -6614,7 +5111,7 @@ var require_cjs2 = __commonJS2({
6614
5111
  }
6615
5112
  }
6616
5113
  });
6617
- var require_utilities = __commonJS2({
5114
+ var require_utilities = __commonJS({
6618
5115
  "node_modules/style-to-js/cjs/utilities.js"(exports) {
6619
5116
  Object.defineProperty(exports, "__esModule", { value: true });
6620
5117
  exports.camelCase = void 0;
@@ -6650,7 +5147,7 @@ var require_utilities = __commonJS2({
6650
5147
  exports.camelCase = camelCase;
6651
5148
  }
6652
5149
  });
6653
- var require_cjs3 = __commonJS2({
5150
+ var require_cjs3 = __commonJS({
6654
5151
  "node_modules/style-to-js/cjs/index.js"(exports, module) {
6655
5152
  var __importDefault = exports && exports.__importDefault || function(mod) {
6656
5153
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -6674,7 +5171,7 @@ var require_cjs3 = __commonJS2({
6674
5171
  }
6675
5172
  });
6676
5173
  var regex = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;
6677
- var own3 = Object.hasOwnProperty;
5174
+ var own2 = Object.hasOwnProperty;
6678
5175
  var BananaSlug = class {
6679
5176
  /**
6680
5177
  * Create a new slug class.
@@ -6701,7 +5198,7 @@ var BananaSlug = class {
6701
5198
  const self2 = this;
6702
5199
  let result = slug(value, maintainCase === true);
6703
5200
  const originalSlug = result;
6704
- while (own3.call(self2.occurrences, result)) {
5201
+ while (own2.call(self2.occurrences, result)) {
6705
5202
  self2.occurrences[originalSlug]++;
6706
5203
  result = originalSlug + "-" + self2.occurrences[originalSlug];
6707
5204
  }
@@ -6852,13 +5349,13 @@ var DefinedInfo = class extends Info {
6852
5349
  * Info.
6853
5350
  */
6854
5351
  constructor(property, attribute, mask, space) {
6855
- let index22 = -1;
5352
+ let index2 = -1;
6856
5353
  super(property, attribute);
6857
5354
  mark(this, "space", space);
6858
5355
  if (typeof mask === "number") {
6859
- while (++index22 < checks.length) {
6860
- const check2 = checks[index22];
6861
- mark(this, checks[index22], (mask & types_exports[check2]) === types_exports[check2]);
5356
+ while (++index2 < checks.length) {
5357
+ const check2 = checks[index2];
5358
+ mark(this, checks[index2], (mask & types_exports[check2]) === types_exports[check2]);
6862
5359
  }
6863
5360
  }
6864
5361
  }
@@ -6940,7 +5437,7 @@ var aria = create2({
6940
5437
  ariaValueText: null,
6941
5438
  role: null
6942
5439
  },
6943
- transform(_2, property) {
5440
+ transform(_, property) {
6944
5441
  return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
6945
5442
  }
6946
5443
  });
@@ -7895,7 +6392,7 @@ var xlink = create2({
7895
6392
  xLinkType: null
7896
6393
  },
7897
6394
  space: "xlink",
7898
- transform(_2, property) {
6395
+ transform(_, property) {
7899
6396
  return "xlink:" + property.slice(5).toLowerCase();
7900
6397
  }
7901
6398
  });
@@ -7908,14 +6405,14 @@ var xmlns = create2({
7908
6405
  var xml = create2({
7909
6406
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
7910
6407
  space: "xml",
7911
- transform(_2, property) {
6408
+ transform(_, property) {
7912
6409
  return "xml:" + property.slice(3).toLowerCase();
7913
6410
  }
7914
6411
  });
7915
6412
  merge([aria, html2, xlink, xmlns, xml], "html");
7916
6413
  merge([aria, svg, xlink, xmlns, xml], "svg");
7917
- __toESM2(require_cjs3());
7918
- function stringifyPosition2(value) {
6414
+ __toESM(require_cjs3());
6415
+ function stringifyPosition(value) {
7919
6416
  if (!value || typeof value !== "object") {
7920
6417
  return "";
7921
6418
  }
@@ -7926,20 +6423,20 @@ function stringifyPosition2(value) {
7926
6423
  return position2(value);
7927
6424
  }
7928
6425
  if ("line" in value || "column" in value) {
7929
- return point22(value);
6426
+ return point2(value);
7930
6427
  }
7931
6428
  return "";
7932
6429
  }
7933
- function point22(point3) {
7934
- return index2(point3 && point3.line) + ":" + index2(point3 && point3.column);
6430
+ function point2(point3) {
6431
+ return index(point3 && point3.line) + ":" + index(point3 && point3.column);
7935
6432
  }
7936
6433
  function position2(pos) {
7937
- return point22(pos && pos.start) + "-" + point22(pos && pos.end);
6434
+ return point2(pos && pos.start) + "-" + point2(pos && pos.end);
7938
6435
  }
7939
- function index2(value) {
6436
+ function index(value) {
7940
6437
  return value && typeof value === "number" ? value : 1;
7941
6438
  }
7942
- var VFileMessage2 = class extends Error {
6439
+ var VFileMessage = class extends Error {
7943
6440
  /**
7944
6441
  * Create a message for `reason`.
7945
6442
  *
@@ -8026,12 +6523,12 @@ var VFileMessage2 = class extends Error {
8026
6523
  options.cause = causeOrReason;
8027
6524
  }
8028
6525
  if (!options.ruleId && !options.source && typeof origin === "string") {
8029
- const index22 = origin.indexOf(":");
8030
- if (index22 === -1) {
6526
+ const index2 = origin.indexOf(":");
6527
+ if (index2 === -1) {
8031
6528
  options.ruleId = origin;
8032
6529
  } else {
8033
- options.source = origin.slice(0, index22);
8034
- options.ruleId = origin.slice(index22 + 1);
6530
+ options.source = origin.slice(0, index2);
6531
+ options.ruleId = origin.slice(index2 + 1);
8035
6532
  }
8036
6533
  }
8037
6534
  if (!options.place && options.ancestors && options.ancestors) {
@@ -8048,7 +6545,7 @@ var VFileMessage2 = class extends Error {
8048
6545
  this.file = "";
8049
6546
  this.message = reason;
8050
6547
  this.line = start2 ? start2.line : void 0;
8051
- this.name = stringifyPosition2(options.place) || "1:1";
6548
+ this.name = stringifyPosition(options.place) || "1:1";
8052
6549
  this.place = options.place || void 0;
8053
6550
  this.reason = this.message;
8054
6551
  this.ruleId = options.ruleId || void 0;
@@ -8060,19 +6557,19 @@ var VFileMessage2 = class extends Error {
8060
6557
  this.url = void 0;
8061
6558
  }
8062
6559
  };
8063
- VFileMessage2.prototype.file = "";
8064
- VFileMessage2.prototype.name = "";
8065
- VFileMessage2.prototype.reason = "";
8066
- VFileMessage2.prototype.message = "";
8067
- VFileMessage2.prototype.stack = "";
8068
- VFileMessage2.prototype.column = void 0;
8069
- VFileMessage2.prototype.line = void 0;
8070
- VFileMessage2.prototype.ancestors = void 0;
8071
- VFileMessage2.prototype.cause = void 0;
8072
- VFileMessage2.prototype.fatal = void 0;
8073
- VFileMessage2.prototype.place = void 0;
8074
- VFileMessage2.prototype.ruleId = void 0;
8075
- VFileMessage2.prototype.source = void 0;
6560
+ VFileMessage.prototype.file = "";
6561
+ VFileMessage.prototype.name = "";
6562
+ VFileMessage.prototype.reason = "";
6563
+ VFileMessage.prototype.message = "";
6564
+ VFileMessage.prototype.stack = "";
6565
+ VFileMessage.prototype.column = void 0;
6566
+ VFileMessage.prototype.line = void 0;
6567
+ VFileMessage.prototype.ancestors = void 0;
6568
+ VFileMessage.prototype.cause = void 0;
6569
+ VFileMessage.prototype.fatal = void 0;
6570
+ VFileMessage.prototype.place = void 0;
6571
+ VFileMessage.prototype.ruleId = void 0;
6572
+ VFileMessage.prototype.source = void 0;
8076
6573
 
8077
6574
  // src/headingIds.ts
8078
6575
  var REWRITES_PROPERTY = "dataQuartzHeadingRewrites";
@@ -8134,12 +6631,12 @@ function headingText(el, rewrites = []) {
8134
6631
  let text3 = "";
8135
6632
  const walk = (node2) => {
8136
6633
  if (node2.type === "text") {
8137
- const i2 = pending.findIndex(([rewritten]) => rewritten === node2.value);
8138
- if (i2 === -1) {
6634
+ const i = pending.findIndex(([rewritten]) => rewritten === node2.value);
6635
+ if (i === -1) {
8139
6636
  text3 += node2.value;
8140
6637
  } else {
8141
- text3 += pending[i2][1];
8142
- pending.splice(i2, 1);
6638
+ text3 += pending[i][1];
6639
+ pending.splice(i, 1);
8143
6640
  }
8144
6641
  } else if ("children" in node2) {
8145
6642
  for (const child of node2.children) walk(child);
@@ -8208,7 +6705,10 @@ var GitHubFlavoredMarkdown = (userOpts) => {
8208
6705
  behavior: "append",
8209
6706
  properties: {
8210
6707
  role: "anchor",
8211
- ariaHidden: true,
6708
+ // A string: `true` renders as a bare `aria-hidden`, which isn't
6709
+ // "true", so the icon link was exposed as a link without a name
6710
+ // and an unknown role.
6711
+ ariaHidden: "true",
8212
6712
  tabIndex: -1,
8213
6713
  "data-no-popover": true
8214
6714
  },