@tinacms/mdx 1.3.13 → 1.3.14
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.browser.es.js +607 -633
- package/dist/index.es.js +872 -898
- package/dist/index.js +872 -898
- package/dist/next/stringify/acorn.d.ts +1 -1
- package/dist/stringify/acorn.d.ts +1 -1
- package/package.json +6 -52
package/dist/index.browser.es.js
CHANGED
|
@@ -2301,11 +2301,11 @@ var require_acorn = __commonJS({
|
|
|
2301
2301
|
};
|
|
2302
2302
|
types$13.star.updateContext = function(prevType) {
|
|
2303
2303
|
if (prevType === types$13._function) {
|
|
2304
|
-
var
|
|
2305
|
-
if (this.context[
|
|
2306
|
-
this.context[
|
|
2304
|
+
var index2 = this.context.length - 1;
|
|
2305
|
+
if (this.context[index2] === types4.f_expr) {
|
|
2306
|
+
this.context[index2] = types4.f_expr_gen;
|
|
2307
2307
|
} else {
|
|
2308
|
-
this.context[
|
|
2308
|
+
this.context[index2] = types4.f_gen;
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
this.exprAllowed = true;
|
|
@@ -4915,11 +4915,11 @@ var require_acorn = __commonJS({
|
|
|
4915
4915
|
}
|
|
4916
4916
|
this.inTemplateElement = false;
|
|
4917
4917
|
};
|
|
4918
|
-
pp3.invalidStringToken = function(
|
|
4918
|
+
pp3.invalidStringToken = function(position2, message) {
|
|
4919
4919
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9) {
|
|
4920
4920
|
throw INVALID_TEMPLATE_ESCAPE_ERROR3;
|
|
4921
4921
|
} else {
|
|
4922
|
-
this.raise(
|
|
4922
|
+
this.raise(position2, message);
|
|
4923
4923
|
}
|
|
4924
4924
|
};
|
|
4925
4925
|
pp3.readTmplToken = function() {
|
|
@@ -17076,14 +17076,14 @@ function trough() {
|
|
|
17076
17076
|
next(null, ...values2);
|
|
17077
17077
|
function next(error, ...output) {
|
|
17078
17078
|
const fn = fns[++middlewareIndex];
|
|
17079
|
-
let
|
|
17079
|
+
let index2 = -1;
|
|
17080
17080
|
if (error) {
|
|
17081
17081
|
callback(error);
|
|
17082
17082
|
return;
|
|
17083
17083
|
}
|
|
17084
|
-
while (++
|
|
17085
|
-
if (output[
|
|
17086
|
-
output[
|
|
17084
|
+
while (++index2 < values2.length) {
|
|
17085
|
+
if (output[index2] === null || output[index2] === void 0) {
|
|
17086
|
+
output[index2] = values2[index2];
|
|
17087
17087
|
}
|
|
17088
17088
|
}
|
|
17089
17089
|
values2 = output;
|
|
@@ -17162,8 +17162,8 @@ function stringifyPosition(value) {
|
|
|
17162
17162
|
}
|
|
17163
17163
|
return "";
|
|
17164
17164
|
}
|
|
17165
|
-
function point(
|
|
17166
|
-
return index(
|
|
17165
|
+
function point(point3) {
|
|
17166
|
+
return index(point3 && point3.line) + ":" + index(point3 && point3.column);
|
|
17167
17167
|
}
|
|
17168
17168
|
function position(pos) {
|
|
17169
17169
|
return point(pos && pos.start) + "-" + point(pos && pos.end);
|
|
@@ -17176,7 +17176,7 @@ function index(value) {
|
|
|
17176
17176
|
var VFileMessage = class extends Error {
|
|
17177
17177
|
constructor(reason, place, origin) {
|
|
17178
17178
|
const parts = [null, null];
|
|
17179
|
-
let
|
|
17179
|
+
let position2 = {
|
|
17180
17180
|
start: { line: null, column: null },
|
|
17181
17181
|
end: { line: null, column: null }
|
|
17182
17182
|
};
|
|
@@ -17186,23 +17186,23 @@ var VFileMessage = class extends Error {
|
|
|
17186
17186
|
place = void 0;
|
|
17187
17187
|
}
|
|
17188
17188
|
if (typeof origin === "string") {
|
|
17189
|
-
const
|
|
17190
|
-
if (
|
|
17189
|
+
const index2 = origin.indexOf(":");
|
|
17190
|
+
if (index2 === -1) {
|
|
17191
17191
|
parts[1] = origin;
|
|
17192
17192
|
} else {
|
|
17193
|
-
parts[0] = origin.slice(0,
|
|
17194
|
-
parts[1] = origin.slice(
|
|
17193
|
+
parts[0] = origin.slice(0, index2);
|
|
17194
|
+
parts[1] = origin.slice(index2 + 1);
|
|
17195
17195
|
}
|
|
17196
17196
|
}
|
|
17197
17197
|
if (place) {
|
|
17198
17198
|
if ("type" in place || "position" in place) {
|
|
17199
17199
|
if (place.position) {
|
|
17200
|
-
|
|
17200
|
+
position2 = place.position;
|
|
17201
17201
|
}
|
|
17202
17202
|
} else if ("start" in place || "end" in place) {
|
|
17203
|
-
|
|
17203
|
+
position2 = place;
|
|
17204
17204
|
} else if ("line" in place || "column" in place) {
|
|
17205
|
-
|
|
17205
|
+
position2.start = place;
|
|
17206
17206
|
}
|
|
17207
17207
|
}
|
|
17208
17208
|
this.name = stringifyPosition(place) || "1:1";
|
|
@@ -17213,9 +17213,9 @@ var VFileMessage = class extends Error {
|
|
|
17213
17213
|
}
|
|
17214
17214
|
this.reason = this.message;
|
|
17215
17215
|
this.fatal;
|
|
17216
|
-
this.line =
|
|
17217
|
-
this.column =
|
|
17218
|
-
this.position =
|
|
17216
|
+
this.line = position2.start.line;
|
|
17217
|
+
this.column = position2.start.column;
|
|
17218
|
+
this.position = position2;
|
|
17219
17219
|
this.source = parts[0];
|
|
17220
17220
|
this.ruleId = parts[1];
|
|
17221
17221
|
this.file;
|
|
@@ -17246,18 +17246,18 @@ function basename(path2, ext) {
|
|
|
17246
17246
|
assertPath(path2);
|
|
17247
17247
|
let start3 = 0;
|
|
17248
17248
|
let end = -1;
|
|
17249
|
-
let
|
|
17249
|
+
let index2 = path2.length;
|
|
17250
17250
|
let seenNonSlash;
|
|
17251
17251
|
if (ext === void 0 || ext.length === 0 || ext.length > path2.length) {
|
|
17252
|
-
while (
|
|
17253
|
-
if (path2.charCodeAt(
|
|
17252
|
+
while (index2--) {
|
|
17253
|
+
if (path2.charCodeAt(index2) === 47) {
|
|
17254
17254
|
if (seenNonSlash) {
|
|
17255
|
-
start3 =
|
|
17255
|
+
start3 = index2 + 1;
|
|
17256
17256
|
break;
|
|
17257
17257
|
}
|
|
17258
17258
|
} else if (end < 0) {
|
|
17259
17259
|
seenNonSlash = true;
|
|
17260
|
-
end =
|
|
17260
|
+
end = index2 + 1;
|
|
17261
17261
|
}
|
|
17262
17262
|
}
|
|
17263
17263
|
return end < 0 ? "" : path2.slice(start3, end);
|
|
@@ -17267,21 +17267,21 @@ function basename(path2, ext) {
|
|
|
17267
17267
|
}
|
|
17268
17268
|
let firstNonSlashEnd = -1;
|
|
17269
17269
|
let extIndex = ext.length - 1;
|
|
17270
|
-
while (
|
|
17271
|
-
if (path2.charCodeAt(
|
|
17270
|
+
while (index2--) {
|
|
17271
|
+
if (path2.charCodeAt(index2) === 47) {
|
|
17272
17272
|
if (seenNonSlash) {
|
|
17273
|
-
start3 =
|
|
17273
|
+
start3 = index2 + 1;
|
|
17274
17274
|
break;
|
|
17275
17275
|
}
|
|
17276
17276
|
} else {
|
|
17277
17277
|
if (firstNonSlashEnd < 0) {
|
|
17278
17278
|
seenNonSlash = true;
|
|
17279
|
-
firstNonSlashEnd =
|
|
17279
|
+
firstNonSlashEnd = index2 + 1;
|
|
17280
17280
|
}
|
|
17281
17281
|
if (extIndex > -1) {
|
|
17282
|
-
if (path2.charCodeAt(
|
|
17282
|
+
if (path2.charCodeAt(index2) === ext.charCodeAt(extIndex--)) {
|
|
17283
17283
|
if (extIndex < 0) {
|
|
17284
|
-
end =
|
|
17284
|
+
end = index2;
|
|
17285
17285
|
}
|
|
17286
17286
|
} else {
|
|
17287
17287
|
extIndex = -1;
|
|
@@ -17303,12 +17303,12 @@ function dirname(path2) {
|
|
|
17303
17303
|
return ".";
|
|
17304
17304
|
}
|
|
17305
17305
|
let end = -1;
|
|
17306
|
-
let
|
|
17306
|
+
let index2 = path2.length;
|
|
17307
17307
|
let unmatchedSlash;
|
|
17308
|
-
while (--
|
|
17309
|
-
if (path2.charCodeAt(
|
|
17308
|
+
while (--index2) {
|
|
17309
|
+
if (path2.charCodeAt(index2) === 47) {
|
|
17310
17310
|
if (unmatchedSlash) {
|
|
17311
|
-
end =
|
|
17311
|
+
end = index2;
|
|
17312
17312
|
break;
|
|
17313
17313
|
}
|
|
17314
17314
|
} else if (!unmatchedSlash) {
|
|
@@ -17319,28 +17319,28 @@ function dirname(path2) {
|
|
|
17319
17319
|
}
|
|
17320
17320
|
function extname(path2) {
|
|
17321
17321
|
assertPath(path2);
|
|
17322
|
-
let
|
|
17322
|
+
let index2 = path2.length;
|
|
17323
17323
|
let end = -1;
|
|
17324
17324
|
let startPart = 0;
|
|
17325
17325
|
let startDot = -1;
|
|
17326
17326
|
let preDotState = 0;
|
|
17327
17327
|
let unmatchedSlash;
|
|
17328
|
-
while (
|
|
17329
|
-
const code2 = path2.charCodeAt(
|
|
17328
|
+
while (index2--) {
|
|
17329
|
+
const code2 = path2.charCodeAt(index2);
|
|
17330
17330
|
if (code2 === 47) {
|
|
17331
17331
|
if (unmatchedSlash) {
|
|
17332
|
-
startPart =
|
|
17332
|
+
startPart = index2 + 1;
|
|
17333
17333
|
break;
|
|
17334
17334
|
}
|
|
17335
17335
|
continue;
|
|
17336
17336
|
}
|
|
17337
17337
|
if (end < 0) {
|
|
17338
17338
|
unmatchedSlash = true;
|
|
17339
|
-
end =
|
|
17339
|
+
end = index2 + 1;
|
|
17340
17340
|
}
|
|
17341
17341
|
if (code2 === 46) {
|
|
17342
17342
|
if (startDot < 0) {
|
|
17343
|
-
startDot =
|
|
17343
|
+
startDot = index2;
|
|
17344
17344
|
} else if (preDotState !== 1) {
|
|
17345
17345
|
preDotState = 1;
|
|
17346
17346
|
}
|
|
@@ -17354,12 +17354,12 @@ function extname(path2) {
|
|
|
17354
17354
|
return path2.slice(startDot, end);
|
|
17355
17355
|
}
|
|
17356
17356
|
function join(...segments) {
|
|
17357
|
-
let
|
|
17357
|
+
let index2 = -1;
|
|
17358
17358
|
let joined;
|
|
17359
|
-
while (++
|
|
17360
|
-
assertPath(segments[
|
|
17361
|
-
if (segments[
|
|
17362
|
-
joined = joined === void 0 ? segments[
|
|
17359
|
+
while (++index2 < segments.length) {
|
|
17360
|
+
assertPath(segments[index2]);
|
|
17361
|
+
if (segments[index2]) {
|
|
17362
|
+
joined = joined === void 0 ? segments[index2] : joined + "/" + segments[index2];
|
|
17363
17363
|
}
|
|
17364
17364
|
}
|
|
17365
17365
|
return joined === void 0 ? "." : normalize(joined);
|
|
@@ -17381,20 +17381,20 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
17381
17381
|
let lastSegmentLength = 0;
|
|
17382
17382
|
let lastSlash = -1;
|
|
17383
17383
|
let dots = 0;
|
|
17384
|
-
let
|
|
17384
|
+
let index2 = -1;
|
|
17385
17385
|
let code2;
|
|
17386
17386
|
let lastSlashIndex;
|
|
17387
|
-
while (++
|
|
17388
|
-
if (
|
|
17389
|
-
code2 = path2.charCodeAt(
|
|
17387
|
+
while (++index2 <= path2.length) {
|
|
17388
|
+
if (index2 < path2.length) {
|
|
17389
|
+
code2 = path2.charCodeAt(index2);
|
|
17390
17390
|
} else if (code2 === 47) {
|
|
17391
17391
|
break;
|
|
17392
17392
|
} else {
|
|
17393
17393
|
code2 = 47;
|
|
17394
17394
|
}
|
|
17395
17395
|
if (code2 === 47) {
|
|
17396
|
-
if (lastSlash ===
|
|
17397
|
-
} else if (lastSlash !==
|
|
17396
|
+
if (lastSlash === index2 - 1 || dots === 1) {
|
|
17397
|
+
} else if (lastSlash !== index2 - 1 && dots === 2) {
|
|
17398
17398
|
if (result.length < 2 || lastSegmentLength !== 2 || result.charCodeAt(result.length - 1) !== 46 || result.charCodeAt(result.length - 2) !== 46) {
|
|
17399
17399
|
if (result.length > 2) {
|
|
17400
17400
|
lastSlashIndex = result.lastIndexOf("/");
|
|
@@ -17406,14 +17406,14 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
17406
17406
|
result = result.slice(0, lastSlashIndex);
|
|
17407
17407
|
lastSegmentLength = result.length - 1 - result.lastIndexOf("/");
|
|
17408
17408
|
}
|
|
17409
|
-
lastSlash =
|
|
17409
|
+
lastSlash = index2;
|
|
17410
17410
|
dots = 0;
|
|
17411
17411
|
continue;
|
|
17412
17412
|
}
|
|
17413
17413
|
} else if (result.length > 0) {
|
|
17414
17414
|
result = "";
|
|
17415
17415
|
lastSegmentLength = 0;
|
|
17416
|
-
lastSlash =
|
|
17416
|
+
lastSlash = index2;
|
|
17417
17417
|
dots = 0;
|
|
17418
17418
|
continue;
|
|
17419
17419
|
}
|
|
@@ -17424,13 +17424,13 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
17424
17424
|
}
|
|
17425
17425
|
} else {
|
|
17426
17426
|
if (result.length > 0) {
|
|
17427
|
-
result += "/" + path2.slice(lastSlash + 1,
|
|
17427
|
+
result += "/" + path2.slice(lastSlash + 1, index2);
|
|
17428
17428
|
} else {
|
|
17429
|
-
result = path2.slice(lastSlash + 1,
|
|
17429
|
+
result = path2.slice(lastSlash + 1, index2);
|
|
17430
17430
|
}
|
|
17431
|
-
lastSegmentLength =
|
|
17431
|
+
lastSegmentLength = index2 - lastSlash - 1;
|
|
17432
17432
|
}
|
|
17433
|
-
lastSlash =
|
|
17433
|
+
lastSlash = index2;
|
|
17434
17434
|
dots = 0;
|
|
17435
17435
|
} else if (code2 === 46 && dots > -1) {
|
|
17436
17436
|
dots++;
|
|
@@ -17486,10 +17486,10 @@ function getPathFromURLPosix(url) {
|
|
|
17486
17486
|
throw error;
|
|
17487
17487
|
}
|
|
17488
17488
|
const pathname = url.pathname;
|
|
17489
|
-
let
|
|
17490
|
-
while (++
|
|
17491
|
-
if (pathname.charCodeAt(
|
|
17492
|
-
const third = pathname.charCodeAt(
|
|
17489
|
+
let index2 = -1;
|
|
17490
|
+
while (++index2 < pathname.length) {
|
|
17491
|
+
if (pathname.charCodeAt(index2) === 37 && pathname.charCodeAt(index2 + 1) === 50) {
|
|
17492
|
+
const third = pathname.charCodeAt(index2 + 2);
|
|
17493
17493
|
if (third === 70 || third === 102) {
|
|
17494
17494
|
const error = new TypeError(
|
|
17495
17495
|
"File URL path must not include encoded / characters"
|
|
@@ -17524,9 +17524,9 @@ var VFile = class {
|
|
|
17524
17524
|
this.stored;
|
|
17525
17525
|
this.result;
|
|
17526
17526
|
this.map;
|
|
17527
|
-
let
|
|
17528
|
-
while (++
|
|
17529
|
-
const prop2 = order[
|
|
17527
|
+
let index2 = -1;
|
|
17528
|
+
while (++index2 < order.length) {
|
|
17529
|
+
const prop2 = order[index2];
|
|
17530
17530
|
if (prop2 in options && options[prop2] !== void 0) {
|
|
17531
17531
|
this[prop2] = prop2 === "history" ? [...options[prop2]] : options[prop2];
|
|
17532
17532
|
}
|
|
@@ -17654,9 +17654,9 @@ function base() {
|
|
|
17654
17654
|
return processor;
|
|
17655
17655
|
function processor() {
|
|
17656
17656
|
const destination = base();
|
|
17657
|
-
let
|
|
17658
|
-
while (++
|
|
17659
|
-
destination.use(...attachers[
|
|
17657
|
+
let index2 = -1;
|
|
17658
|
+
while (++index2 < attachers.length) {
|
|
17659
|
+
destination.use(...attachers[index2]);
|
|
17660
17660
|
}
|
|
17661
17661
|
destination.data((0, import_extend.default)(true, {}, namespace));
|
|
17662
17662
|
return destination;
|
|
@@ -17738,11 +17738,11 @@ function base() {
|
|
|
17738
17738
|
}
|
|
17739
17739
|
}
|
|
17740
17740
|
function addList(plugins) {
|
|
17741
|
-
let
|
|
17741
|
+
let index2 = -1;
|
|
17742
17742
|
if (plugins === null || plugins === void 0) {
|
|
17743
17743
|
} else if (Array.isArray(plugins)) {
|
|
17744
|
-
while (++
|
|
17745
|
-
const thing = plugins[
|
|
17744
|
+
while (++index2 < plugins.length) {
|
|
17745
|
+
const thing = plugins[index2];
|
|
17746
17746
|
add(thing);
|
|
17747
17747
|
}
|
|
17748
17748
|
} else {
|
|
@@ -17750,11 +17750,11 @@ function base() {
|
|
|
17750
17750
|
}
|
|
17751
17751
|
}
|
|
17752
17752
|
function addPlugin(plugin, value2) {
|
|
17753
|
-
let
|
|
17753
|
+
let index2 = -1;
|
|
17754
17754
|
let entry;
|
|
17755
|
-
while (++
|
|
17756
|
-
if (attachers[
|
|
17757
|
-
entry = attachers[
|
|
17755
|
+
while (++index2 < attachers.length) {
|
|
17756
|
+
if (attachers[index2][0] === plugin) {
|
|
17757
|
+
entry = attachers[index2];
|
|
17758
17758
|
break;
|
|
17759
17759
|
}
|
|
17760
17760
|
}
|
|
@@ -17939,9 +17939,9 @@ function one(node, includeImageAlt) {
|
|
|
17939
17939
|
}
|
|
17940
17940
|
function all(values2, includeImageAlt) {
|
|
17941
17941
|
var result = [];
|
|
17942
|
-
var
|
|
17943
|
-
while (++
|
|
17944
|
-
result[
|
|
17942
|
+
var index2 = -1;
|
|
17943
|
+
while (++index2 < values2.length) {
|
|
17944
|
+
result[index2] = one(values2[index2], includeImageAlt);
|
|
17945
17945
|
}
|
|
17946
17946
|
return result.join("");
|
|
17947
17947
|
}
|
|
@@ -17985,9 +17985,9 @@ function push(list3, items) {
|
|
|
17985
17985
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
17986
17986
|
function combineExtensions(extensions) {
|
|
17987
17987
|
const all2 = {};
|
|
17988
|
-
let
|
|
17989
|
-
while (++
|
|
17990
|
-
syntaxExtension(all2, extensions[
|
|
17988
|
+
let index2 = -1;
|
|
17989
|
+
while (++index2 < extensions.length) {
|
|
17990
|
+
syntaxExtension(all2, extensions[index2]);
|
|
17991
17991
|
}
|
|
17992
17992
|
return all2;
|
|
17993
17993
|
}
|
|
@@ -18010,11 +18010,11 @@ function syntaxExtension(all2, extension3) {
|
|
|
18010
18010
|
}
|
|
18011
18011
|
}
|
|
18012
18012
|
function constructs(existing, list3) {
|
|
18013
|
-
let
|
|
18013
|
+
let index2 = -1;
|
|
18014
18014
|
const before = [];
|
|
18015
|
-
while (++
|
|
18015
|
+
while (++index2 < list3.length) {
|
|
18016
18016
|
;
|
|
18017
|
-
(list3[
|
|
18017
|
+
(list3[index2].add === "after" ? existing : before).push(list3[index2]);
|
|
18018
18018
|
}
|
|
18019
18019
|
splice(existing, 0, 0, before);
|
|
18020
18020
|
}
|
|
@@ -18162,18 +18162,18 @@ function initializeDocument(effects) {
|
|
|
18162
18162
|
}
|
|
18163
18163
|
const indexBeforeExits = self2.events.length;
|
|
18164
18164
|
let indexBeforeFlow = indexBeforeExits;
|
|
18165
|
-
let
|
|
18165
|
+
let point3;
|
|
18166
18166
|
while (indexBeforeFlow--) {
|
|
18167
18167
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
18168
|
-
|
|
18168
|
+
point3 = self2.events[indexBeforeFlow][1].end;
|
|
18169
18169
|
break;
|
|
18170
18170
|
}
|
|
18171
18171
|
}
|
|
18172
18172
|
exitContainers(continued);
|
|
18173
|
-
let
|
|
18174
|
-
while (
|
|
18175
|
-
self2.events[
|
|
18176
|
-
|
|
18173
|
+
let index2 = indexBeforeExits;
|
|
18174
|
+
while (index2 < self2.events.length) {
|
|
18175
|
+
self2.events[index2][1].end = Object.assign({}, point3);
|
|
18176
|
+
index2++;
|
|
18177
18177
|
}
|
|
18178
18178
|
splice(
|
|
18179
18179
|
self2.events,
|
|
@@ -18181,7 +18181,7 @@ function initializeDocument(effects) {
|
|
|
18181
18181
|
0,
|
|
18182
18182
|
self2.events.slice(indexBeforeExits)
|
|
18183
18183
|
);
|
|
18184
|
-
self2.events.length =
|
|
18184
|
+
self2.events.length = index2;
|
|
18185
18185
|
return checkNewContainers(code2);
|
|
18186
18186
|
}
|
|
18187
18187
|
return start3(code2);
|
|
@@ -18273,30 +18273,30 @@ function initializeDocument(effects) {
|
|
|
18273
18273
|
childFlow.defineSkip(token.start);
|
|
18274
18274
|
childFlow.write(stream);
|
|
18275
18275
|
if (self2.parser.lazy[token.start.line]) {
|
|
18276
|
-
let
|
|
18277
|
-
while (
|
|
18278
|
-
if (childFlow.events[
|
|
18276
|
+
let index2 = childFlow.events.length;
|
|
18277
|
+
while (index2--) {
|
|
18278
|
+
if (childFlow.events[index2][1].start.offset < lineStartOffset && (!childFlow.events[index2][1].end || childFlow.events[index2][1].end.offset > lineStartOffset)) {
|
|
18279
18279
|
return;
|
|
18280
18280
|
}
|
|
18281
18281
|
}
|
|
18282
18282
|
const indexBeforeExits = self2.events.length;
|
|
18283
18283
|
let indexBeforeFlow = indexBeforeExits;
|
|
18284
18284
|
let seen;
|
|
18285
|
-
let
|
|
18285
|
+
let point3;
|
|
18286
18286
|
while (indexBeforeFlow--) {
|
|
18287
18287
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
18288
18288
|
if (seen) {
|
|
18289
|
-
|
|
18289
|
+
point3 = self2.events[indexBeforeFlow][1].end;
|
|
18290
18290
|
break;
|
|
18291
18291
|
}
|
|
18292
18292
|
seen = true;
|
|
18293
18293
|
}
|
|
18294
18294
|
}
|
|
18295
18295
|
exitContainers(continued);
|
|
18296
|
-
|
|
18297
|
-
while (
|
|
18298
|
-
self2.events[
|
|
18299
|
-
|
|
18296
|
+
index2 = indexBeforeExits;
|
|
18297
|
+
while (index2 < self2.events.length) {
|
|
18298
|
+
self2.events[index2][1].end = Object.assign({}, point3);
|
|
18299
|
+
index2++;
|
|
18300
18300
|
}
|
|
18301
18301
|
splice(
|
|
18302
18302
|
self2.events,
|
|
@@ -18304,13 +18304,13 @@ function initializeDocument(effects) {
|
|
|
18304
18304
|
0,
|
|
18305
18305
|
self2.events.slice(indexBeforeExits)
|
|
18306
18306
|
);
|
|
18307
|
-
self2.events.length =
|
|
18307
|
+
self2.events.length = index2;
|
|
18308
18308
|
}
|
|
18309
18309
|
}
|
|
18310
18310
|
function exitContainers(size) {
|
|
18311
|
-
let
|
|
18312
|
-
while (
|
|
18313
|
-
const entry = stack[
|
|
18311
|
+
let index2 = stack.length;
|
|
18312
|
+
while (index2-- > size) {
|
|
18313
|
+
const entry = stack[index2];
|
|
18314
18314
|
self2.containerState = entry[1];
|
|
18315
18315
|
entry[0].exit.call(self2, effects);
|
|
18316
18316
|
}
|
|
@@ -18345,9 +18345,9 @@ function classifyCharacter(code2) {
|
|
|
18345
18345
|
// ../../../node_modules/.pnpm/micromark-util-resolve-all@1.0.0/node_modules/micromark-util-resolve-all/index.js
|
|
18346
18346
|
function resolveAll(constructs2, events, context) {
|
|
18347
18347
|
const called = [];
|
|
18348
|
-
let
|
|
18349
|
-
while (++
|
|
18350
|
-
const resolve = constructs2[
|
|
18348
|
+
let index2 = -1;
|
|
18349
|
+
while (++index2 < constructs2.length) {
|
|
18350
|
+
const resolve = constructs2[index2].resolveAll;
|
|
18351
18351
|
if (resolve && !called.includes(resolve)) {
|
|
18352
18352
|
events = resolve(events, context);
|
|
18353
18353
|
called.push(resolve);
|
|
@@ -18363,7 +18363,7 @@ var attention = {
|
|
|
18363
18363
|
resolveAll: resolveAllAttention
|
|
18364
18364
|
};
|
|
18365
18365
|
function resolveAllAttention(events, context) {
|
|
18366
|
-
let
|
|
18366
|
+
let index2 = -1;
|
|
18367
18367
|
let open;
|
|
18368
18368
|
let group;
|
|
18369
18369
|
let text8;
|
|
@@ -18372,17 +18372,17 @@ function resolveAllAttention(events, context) {
|
|
|
18372
18372
|
let use;
|
|
18373
18373
|
let nextEvents;
|
|
18374
18374
|
let offset3;
|
|
18375
|
-
while (++
|
|
18376
|
-
if (events[
|
|
18377
|
-
open =
|
|
18375
|
+
while (++index2 < events.length) {
|
|
18376
|
+
if (events[index2][0] === "enter" && events[index2][1].type === "attentionSequence" && events[index2][1]._close) {
|
|
18377
|
+
open = index2;
|
|
18378
18378
|
while (open--) {
|
|
18379
|
-
if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[
|
|
18380
|
-
if ((events[open][1]._close || events[
|
|
18379
|
+
if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index2][1]).charCodeAt(0)) {
|
|
18380
|
+
if ((events[open][1]._close || events[index2][1]._open) && (events[index2][1].end.offset - events[index2][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index2][1].end.offset - events[index2][1].start.offset) % 3)) {
|
|
18381
18381
|
continue;
|
|
18382
18382
|
}
|
|
18383
|
-
use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[
|
|
18383
|
+
use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index2][1].end.offset - events[index2][1].start.offset > 1 ? 2 : 1;
|
|
18384
18384
|
const start3 = Object.assign({}, events[open][1].end);
|
|
18385
|
-
const end = Object.assign({}, events[
|
|
18385
|
+
const end = Object.assign({}, events[index2][1].start);
|
|
18386
18386
|
movePoint(start3, -use);
|
|
18387
18387
|
movePoint(end, use);
|
|
18388
18388
|
openingSequence = {
|
|
@@ -18392,13 +18392,13 @@ function resolveAllAttention(events, context) {
|
|
|
18392
18392
|
};
|
|
18393
18393
|
closingSequence = {
|
|
18394
18394
|
type: use > 1 ? "strongSequence" : "emphasisSequence",
|
|
18395
|
-
start: Object.assign({}, events[
|
|
18395
|
+
start: Object.assign({}, events[index2][1].start),
|
|
18396
18396
|
end
|
|
18397
18397
|
};
|
|
18398
18398
|
text8 = {
|
|
18399
18399
|
type: use > 1 ? "strongText" : "emphasisText",
|
|
18400
18400
|
start: Object.assign({}, events[open][1].end),
|
|
18401
|
-
end: Object.assign({}, events[
|
|
18401
|
+
end: Object.assign({}, events[index2][1].start)
|
|
18402
18402
|
};
|
|
18403
18403
|
group = {
|
|
18404
18404
|
type: use > 1 ? "strong" : "emphasis",
|
|
@@ -18406,7 +18406,7 @@ function resolveAllAttention(events, context) {
|
|
|
18406
18406
|
end: Object.assign({}, closingSequence.end)
|
|
18407
18407
|
};
|
|
18408
18408
|
events[open][1].end = Object.assign({}, openingSequence.start);
|
|
18409
|
-
events[
|
|
18409
|
+
events[index2][1].start = Object.assign({}, closingSequence.end);
|
|
18410
18410
|
nextEvents = [];
|
|
18411
18411
|
if (events[open][1].end.offset - events[open][1].start.offset) {
|
|
18412
18412
|
nextEvents = push(nextEvents, [
|
|
@@ -18424,7 +18424,7 @@ function resolveAllAttention(events, context) {
|
|
|
18424
18424
|
nextEvents,
|
|
18425
18425
|
resolveAll(
|
|
18426
18426
|
context.parser.constructs.insideSpan.null,
|
|
18427
|
-
events.slice(open + 1,
|
|
18427
|
+
events.slice(open + 1, index2),
|
|
18428
18428
|
context
|
|
18429
18429
|
)
|
|
18430
18430
|
);
|
|
@@ -18434,26 +18434,26 @@ function resolveAllAttention(events, context) {
|
|
|
18434
18434
|
["exit", closingSequence, context],
|
|
18435
18435
|
["exit", group, context]
|
|
18436
18436
|
]);
|
|
18437
|
-
if (events[
|
|
18437
|
+
if (events[index2][1].end.offset - events[index2][1].start.offset) {
|
|
18438
18438
|
offset3 = 2;
|
|
18439
18439
|
nextEvents = push(nextEvents, [
|
|
18440
|
-
["enter", events[
|
|
18441
|
-
["exit", events[
|
|
18440
|
+
["enter", events[index2][1], context],
|
|
18441
|
+
["exit", events[index2][1], context]
|
|
18442
18442
|
]);
|
|
18443
18443
|
} else {
|
|
18444
18444
|
offset3 = 0;
|
|
18445
18445
|
}
|
|
18446
|
-
splice(events, open - 1,
|
|
18447
|
-
|
|
18446
|
+
splice(events, open - 1, index2 - open + 3, nextEvents);
|
|
18447
|
+
index2 = open + nextEvents.length - offset3 - 2;
|
|
18448
18448
|
break;
|
|
18449
18449
|
}
|
|
18450
18450
|
}
|
|
18451
18451
|
}
|
|
18452
18452
|
}
|
|
18453
|
-
|
|
18454
|
-
while (++
|
|
18455
|
-
if (events[
|
|
18456
|
-
events[
|
|
18453
|
+
index2 = -1;
|
|
18454
|
+
while (++index2 < events.length) {
|
|
18455
|
+
if (events[index2][1].type === "attentionSequence") {
|
|
18456
|
+
events[index2][1].type = "data";
|
|
18457
18457
|
}
|
|
18458
18458
|
}
|
|
18459
18459
|
return events;
|
|
@@ -18483,10 +18483,10 @@ function tokenizeAttention(effects, ok3) {
|
|
|
18483
18483
|
return ok3(code2);
|
|
18484
18484
|
}
|
|
18485
18485
|
}
|
|
18486
|
-
function movePoint(
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18486
|
+
function movePoint(point3, offset3) {
|
|
18487
|
+
point3.column += offset3;
|
|
18488
|
+
point3.offset += offset3;
|
|
18489
|
+
point3._bufferIndex += offset3;
|
|
18490
18490
|
}
|
|
18491
18491
|
|
|
18492
18492
|
// ../../../node_modules/.pnpm/micromark-core-commonmark@1.0.6/node_modules/micromark-core-commonmark/lib/autolink.js
|
|
@@ -18988,12 +18988,12 @@ var codeText = {
|
|
|
18988
18988
|
function resolveCodeText(events) {
|
|
18989
18989
|
let tailExitIndex = events.length - 4;
|
|
18990
18990
|
let headEnterIndex = 3;
|
|
18991
|
-
let
|
|
18991
|
+
let index2;
|
|
18992
18992
|
let enter;
|
|
18993
18993
|
if ((events[headEnterIndex][1].type === "lineEnding" || events[headEnterIndex][1].type === "space") && (events[tailExitIndex][1].type === "lineEnding" || events[tailExitIndex][1].type === "space")) {
|
|
18994
|
-
|
|
18995
|
-
while (++
|
|
18996
|
-
if (events[
|
|
18994
|
+
index2 = headEnterIndex;
|
|
18995
|
+
while (++index2 < tailExitIndex) {
|
|
18996
|
+
if (events[index2][1].type === "codeTextData") {
|
|
18997
18997
|
events[headEnterIndex][1].type = "codeTextPadding";
|
|
18998
18998
|
events[tailExitIndex][1].type = "codeTextPadding";
|
|
18999
18999
|
headEnterIndex += 2;
|
|
@@ -19002,20 +19002,20 @@ function resolveCodeText(events) {
|
|
|
19002
19002
|
}
|
|
19003
19003
|
}
|
|
19004
19004
|
}
|
|
19005
|
-
|
|
19005
|
+
index2 = headEnterIndex - 1;
|
|
19006
19006
|
tailExitIndex++;
|
|
19007
|
-
while (++
|
|
19007
|
+
while (++index2 <= tailExitIndex) {
|
|
19008
19008
|
if (enter === void 0) {
|
|
19009
|
-
if (
|
|
19010
|
-
enter =
|
|
19009
|
+
if (index2 !== tailExitIndex && events[index2][1].type !== "lineEnding") {
|
|
19010
|
+
enter = index2;
|
|
19011
19011
|
}
|
|
19012
|
-
} else if (
|
|
19012
|
+
} else if (index2 === tailExitIndex || events[index2][1].type === "lineEnding") {
|
|
19013
19013
|
events[enter][1].type = "codeTextData";
|
|
19014
|
-
if (
|
|
19015
|
-
events[enter][1].end = events[
|
|
19016
|
-
events.splice(enter + 2,
|
|
19017
|
-
tailExitIndex -=
|
|
19018
|
-
|
|
19014
|
+
if (index2 !== enter + 2) {
|
|
19015
|
+
events[enter][1].end = events[index2 - 1][1].end;
|
|
19016
|
+
events.splice(enter + 2, index2 - enter - 2);
|
|
19017
|
+
tailExitIndex -= index2 - enter - 2;
|
|
19018
|
+
index2 = enter + 2;
|
|
19019
19019
|
}
|
|
19020
19020
|
enter = void 0;
|
|
19021
19021
|
}
|
|
@@ -19096,7 +19096,7 @@ function tokenizeCodeText(effects, ok3, nok) {
|
|
|
19096
19096
|
// ../../../node_modules/.pnpm/micromark-util-subtokenize@1.0.2/node_modules/micromark-util-subtokenize/index.js
|
|
19097
19097
|
function subtokenize(events) {
|
|
19098
19098
|
const jumps = {};
|
|
19099
|
-
let
|
|
19099
|
+
let index2 = -1;
|
|
19100
19100
|
let event;
|
|
19101
19101
|
let lineIndex;
|
|
19102
19102
|
let otherIndex;
|
|
@@ -19104,12 +19104,12 @@ function subtokenize(events) {
|
|
|
19104
19104
|
let parameters;
|
|
19105
19105
|
let subevents;
|
|
19106
19106
|
let more;
|
|
19107
|
-
while (++
|
|
19108
|
-
while (
|
|
19109
|
-
|
|
19107
|
+
while (++index2 < events.length) {
|
|
19108
|
+
while (index2 in jumps) {
|
|
19109
|
+
index2 = jumps[index2];
|
|
19110
19110
|
}
|
|
19111
|
-
event = events[
|
|
19112
|
-
if (
|
|
19111
|
+
event = events[index2];
|
|
19112
|
+
if (index2 && event[1].type === "chunkFlow" && events[index2 - 1][1].type === "listItemPrefix") {
|
|
19113
19113
|
subevents = event[1]._tokenizer.events;
|
|
19114
19114
|
otherIndex = 0;
|
|
19115
19115
|
if (otherIndex < subevents.length && subevents[otherIndex][1].type === "lineEndingBlank") {
|
|
@@ -19129,12 +19129,12 @@ function subtokenize(events) {
|
|
|
19129
19129
|
}
|
|
19130
19130
|
if (event[0] === "enter") {
|
|
19131
19131
|
if (event[1].contentType) {
|
|
19132
|
-
Object.assign(jumps, subcontent(events,
|
|
19133
|
-
|
|
19132
|
+
Object.assign(jumps, subcontent(events, index2));
|
|
19133
|
+
index2 = jumps[index2];
|
|
19134
19134
|
more = true;
|
|
19135
19135
|
}
|
|
19136
19136
|
} else if (event[1]._container) {
|
|
19137
|
-
otherIndex =
|
|
19137
|
+
otherIndex = index2;
|
|
19138
19138
|
lineIndex = void 0;
|
|
19139
19139
|
while (otherIndex--) {
|
|
19140
19140
|
otherEvent = events[otherIndex];
|
|
@@ -19152,9 +19152,9 @@ function subtokenize(events) {
|
|
|
19152
19152
|
}
|
|
19153
19153
|
if (lineIndex) {
|
|
19154
19154
|
event[1].end = Object.assign({}, events[lineIndex][1].start);
|
|
19155
|
-
parameters = events.slice(lineIndex,
|
|
19155
|
+
parameters = events.slice(lineIndex, index2);
|
|
19156
19156
|
parameters.unshift(event);
|
|
19157
|
-
splice(events, lineIndex,
|
|
19157
|
+
splice(events, lineIndex, index2 - lineIndex + 1, parameters);
|
|
19158
19158
|
}
|
|
19159
19159
|
}
|
|
19160
19160
|
}
|
|
@@ -19171,7 +19171,7 @@ function subcontent(events, eventIndex) {
|
|
|
19171
19171
|
const gaps = {};
|
|
19172
19172
|
let stream;
|
|
19173
19173
|
let previous2;
|
|
19174
|
-
let
|
|
19174
|
+
let index2 = -1;
|
|
19175
19175
|
let current3 = token;
|
|
19176
19176
|
let adjust = 0;
|
|
19177
19177
|
let start3 = 0;
|
|
@@ -19200,9 +19200,9 @@ function subcontent(events, eventIndex) {
|
|
|
19200
19200
|
current3 = current3.next;
|
|
19201
19201
|
}
|
|
19202
19202
|
current3 = token;
|
|
19203
|
-
while (++
|
|
19204
|
-
if (childEvents[
|
|
19205
|
-
start3 =
|
|
19203
|
+
while (++index2 < childEvents.length) {
|
|
19204
|
+
if (childEvents[index2][0] === "exit" && childEvents[index2 - 1][0] === "enter" && childEvents[index2][1].type === childEvents[index2 - 1][1].type && childEvents[index2][1].start.line !== childEvents[index2][1].end.line) {
|
|
19205
|
+
start3 = index2 + 1;
|
|
19206
19206
|
breaks.push(start3);
|
|
19207
19207
|
current3._tokenizer = void 0;
|
|
19208
19208
|
current3.previous = void 0;
|
|
@@ -19216,17 +19216,17 @@ function subcontent(events, eventIndex) {
|
|
|
19216
19216
|
} else {
|
|
19217
19217
|
breaks.pop();
|
|
19218
19218
|
}
|
|
19219
|
-
|
|
19220
|
-
while (
|
|
19221
|
-
const slice = childEvents.slice(breaks[
|
|
19219
|
+
index2 = breaks.length;
|
|
19220
|
+
while (index2--) {
|
|
19221
|
+
const slice = childEvents.slice(breaks[index2], breaks[index2 + 1]);
|
|
19222
19222
|
const start4 = startPositions.pop();
|
|
19223
19223
|
jumps.unshift([start4, start4 + slice.length - 1]);
|
|
19224
19224
|
splice(events, start4, 2, slice);
|
|
19225
19225
|
}
|
|
19226
|
-
|
|
19227
|
-
while (++
|
|
19228
|
-
gaps[adjust + jumps[
|
|
19229
|
-
adjust += jumps[
|
|
19226
|
+
index2 = -1;
|
|
19227
|
+
while (++index2 < jumps.length) {
|
|
19228
|
+
gaps[adjust + jumps[index2][0]] = adjust + jumps[index2][1];
|
|
19229
|
+
adjust += jumps[index2][1] - jumps[index2][0] - 1;
|
|
19230
19230
|
}
|
|
19231
19231
|
return gaps;
|
|
19232
19232
|
}
|
|
@@ -19831,16 +19831,16 @@ var nextBlankConstruct = {
|
|
|
19831
19831
|
partial: true
|
|
19832
19832
|
};
|
|
19833
19833
|
function resolveToHtmlFlow(events) {
|
|
19834
|
-
let
|
|
19835
|
-
while (
|
|
19836
|
-
if (events[
|
|
19834
|
+
let index2 = events.length;
|
|
19835
|
+
while (index2--) {
|
|
19836
|
+
if (events[index2][0] === "enter" && events[index2][1].type === "htmlFlow") {
|
|
19837
19837
|
break;
|
|
19838
19838
|
}
|
|
19839
19839
|
}
|
|
19840
|
-
if (
|
|
19841
|
-
events[
|
|
19842
|
-
events[
|
|
19843
|
-
events.splice(
|
|
19840
|
+
if (index2 > 1 && events[index2 - 2][1].type === "linePrefix") {
|
|
19841
|
+
events[index2][1].start = events[index2 - 2][1].start;
|
|
19842
|
+
events[index2 + 1][1].start = events[index2 - 2][1].start;
|
|
19843
|
+
events.splice(index2 - 2, 2);
|
|
19844
19844
|
}
|
|
19845
19845
|
return events;
|
|
19846
19846
|
}
|
|
@@ -19849,7 +19849,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
19849
19849
|
let kind;
|
|
19850
19850
|
let startTag;
|
|
19851
19851
|
let buffer2;
|
|
19852
|
-
let
|
|
19852
|
+
let index2;
|
|
19853
19853
|
let marker;
|
|
19854
19854
|
return start3;
|
|
19855
19855
|
function start3(code2) {
|
|
@@ -19890,7 +19890,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
19890
19890
|
effects.consume(code2);
|
|
19891
19891
|
kind = 5;
|
|
19892
19892
|
buffer2 = "CDATA[";
|
|
19893
|
-
|
|
19893
|
+
index2 = 0;
|
|
19894
19894
|
return cdataOpenInside;
|
|
19895
19895
|
}
|
|
19896
19896
|
if (asciiAlpha(code2)) {
|
|
@@ -19908,9 +19908,9 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
|
|
|
19908
19908
|
return nok(code2);
|
|
19909
19909
|
}
|
|
19910
19910
|
function cdataOpenInside(code2) {
|
|
19911
|
-
if (code2 === buffer2.charCodeAt(
|
|
19911
|
+
if (code2 === buffer2.charCodeAt(index2++)) {
|
|
19912
19912
|
effects.consume(code2);
|
|
19913
|
-
return
|
|
19913
|
+
return index2 === buffer2.length ? self2.interrupt ? ok3 : continuation : cdataOpenInside;
|
|
19914
19914
|
}
|
|
19915
19915
|
return nok(code2);
|
|
19916
19916
|
}
|
|
@@ -20192,7 +20192,7 @@ function tokenizeHtmlText(effects, ok3, nok) {
|
|
|
20192
20192
|
const self2 = this;
|
|
20193
20193
|
let marker;
|
|
20194
20194
|
let buffer2;
|
|
20195
|
-
let
|
|
20195
|
+
let index2;
|
|
20196
20196
|
let returnState;
|
|
20197
20197
|
return start3;
|
|
20198
20198
|
function start3(code2) {
|
|
@@ -20228,7 +20228,7 @@ function tokenizeHtmlText(effects, ok3, nok) {
|
|
|
20228
20228
|
if (code2 === 91) {
|
|
20229
20229
|
effects.consume(code2);
|
|
20230
20230
|
buffer2 = "CDATA[";
|
|
20231
|
-
|
|
20231
|
+
index2 = 0;
|
|
20232
20232
|
return cdataOpen;
|
|
20233
20233
|
}
|
|
20234
20234
|
if (asciiAlpha(code2)) {
|
|
@@ -20283,9 +20283,9 @@ function tokenizeHtmlText(effects, ok3, nok) {
|
|
|
20283
20283
|
return comment(code2);
|
|
20284
20284
|
}
|
|
20285
20285
|
function cdataOpen(code2) {
|
|
20286
|
-
if (code2 === buffer2.charCodeAt(
|
|
20286
|
+
if (code2 === buffer2.charCodeAt(index2++)) {
|
|
20287
20287
|
effects.consume(code2);
|
|
20288
|
-
return
|
|
20288
|
+
return index2 === buffer2.length ? cdata : cdataOpen;
|
|
20289
20289
|
}
|
|
20290
20290
|
return nok(code2);
|
|
20291
20291
|
}
|
|
@@ -20522,44 +20522,44 @@ var collapsedReferenceConstruct = {
|
|
|
20522
20522
|
tokenize: tokenizeCollapsedReference
|
|
20523
20523
|
};
|
|
20524
20524
|
function resolveAllLabelEnd(events) {
|
|
20525
|
-
let
|
|
20525
|
+
let index2 = -1;
|
|
20526
20526
|
let token;
|
|
20527
|
-
while (++
|
|
20528
|
-
token = events[
|
|
20527
|
+
while (++index2 < events.length) {
|
|
20528
|
+
token = events[index2][1];
|
|
20529
20529
|
if (token.type === "labelImage" || token.type === "labelLink" || token.type === "labelEnd") {
|
|
20530
|
-
events.splice(
|
|
20530
|
+
events.splice(index2 + 1, token.type === "labelImage" ? 4 : 2);
|
|
20531
20531
|
token.type = "data";
|
|
20532
|
-
|
|
20532
|
+
index2++;
|
|
20533
20533
|
}
|
|
20534
20534
|
}
|
|
20535
20535
|
return events;
|
|
20536
20536
|
}
|
|
20537
20537
|
function resolveToLabelEnd(events, context) {
|
|
20538
|
-
let
|
|
20538
|
+
let index2 = events.length;
|
|
20539
20539
|
let offset3 = 0;
|
|
20540
20540
|
let token;
|
|
20541
20541
|
let open;
|
|
20542
20542
|
let close;
|
|
20543
20543
|
let media;
|
|
20544
|
-
while (
|
|
20545
|
-
token = events[
|
|
20544
|
+
while (index2--) {
|
|
20545
|
+
token = events[index2][1];
|
|
20546
20546
|
if (open) {
|
|
20547
20547
|
if (token.type === "link" || token.type === "labelLink" && token._inactive) {
|
|
20548
20548
|
break;
|
|
20549
20549
|
}
|
|
20550
|
-
if (events[
|
|
20550
|
+
if (events[index2][0] === "enter" && token.type === "labelLink") {
|
|
20551
20551
|
token._inactive = true;
|
|
20552
20552
|
}
|
|
20553
20553
|
} else if (close) {
|
|
20554
|
-
if (events[
|
|
20555
|
-
open =
|
|
20554
|
+
if (events[index2][0] === "enter" && (token.type === "labelImage" || token.type === "labelLink") && !token._balanced) {
|
|
20555
|
+
open = index2;
|
|
20556
20556
|
if (token.type !== "labelLink") {
|
|
20557
20557
|
offset3 = 2;
|
|
20558
20558
|
break;
|
|
20559
20559
|
}
|
|
20560
20560
|
}
|
|
20561
20561
|
} else if (token.type === "labelEnd") {
|
|
20562
|
-
close =
|
|
20562
|
+
close = index2;
|
|
20563
20563
|
}
|
|
20564
20564
|
}
|
|
20565
20565
|
const group = {
|
|
@@ -20604,12 +20604,12 @@ function resolveToLabelEnd(events, context) {
|
|
|
20604
20604
|
}
|
|
20605
20605
|
function tokenizeLabelEnd(effects, ok3, nok) {
|
|
20606
20606
|
const self2 = this;
|
|
20607
|
-
let
|
|
20607
|
+
let index2 = self2.events.length;
|
|
20608
20608
|
let labelStart;
|
|
20609
20609
|
let defined;
|
|
20610
|
-
while (
|
|
20611
|
-
if ((self2.events[
|
|
20612
|
-
labelStart = self2.events[
|
|
20610
|
+
while (index2--) {
|
|
20611
|
+
if ((self2.events[index2][1].type === "labelImage" || self2.events[index2][1].type === "labelLink") && !self2.events[index2][1]._balanced) {
|
|
20612
|
+
labelStart = self2.events[index2][1];
|
|
20613
20613
|
break;
|
|
20614
20614
|
}
|
|
20615
20615
|
}
|
|
@@ -21019,25 +21019,25 @@ var setextUnderline = {
|
|
|
21019
21019
|
resolveTo: resolveToSetextUnderline
|
|
21020
21020
|
};
|
|
21021
21021
|
function resolveToSetextUnderline(events, context) {
|
|
21022
|
-
let
|
|
21022
|
+
let index2 = events.length;
|
|
21023
21023
|
let content4;
|
|
21024
21024
|
let text8;
|
|
21025
21025
|
let definition3;
|
|
21026
|
-
while (
|
|
21027
|
-
if (events[
|
|
21028
|
-
if (events[
|
|
21029
|
-
content4 =
|
|
21026
|
+
while (index2--) {
|
|
21027
|
+
if (events[index2][0] === "enter") {
|
|
21028
|
+
if (events[index2][1].type === "content") {
|
|
21029
|
+
content4 = index2;
|
|
21030
21030
|
break;
|
|
21031
21031
|
}
|
|
21032
|
-
if (events[
|
|
21033
|
-
text8 =
|
|
21032
|
+
if (events[index2][1].type === "paragraph") {
|
|
21033
|
+
text8 = index2;
|
|
21034
21034
|
}
|
|
21035
21035
|
} else {
|
|
21036
|
-
if (events[
|
|
21037
|
-
events.splice(
|
|
21036
|
+
if (events[index2][1].type === "content") {
|
|
21037
|
+
events.splice(index2, 1);
|
|
21038
21038
|
}
|
|
21039
|
-
if (!definition3 && events[
|
|
21040
|
-
definition3 =
|
|
21039
|
+
if (!definition3 && events[index2][1].type === "definition") {
|
|
21040
|
+
definition3 = index2;
|
|
21041
21041
|
}
|
|
21042
21042
|
}
|
|
21043
21043
|
}
|
|
@@ -21059,12 +21059,12 @@ function resolveToSetextUnderline(events, context) {
|
|
|
21059
21059
|
}
|
|
21060
21060
|
function tokenizeSetextUnderline(effects, ok3, nok) {
|
|
21061
21061
|
const self2 = this;
|
|
21062
|
-
let
|
|
21062
|
+
let index2 = self2.events.length;
|
|
21063
21063
|
let marker;
|
|
21064
21064
|
let paragraph2;
|
|
21065
|
-
while (
|
|
21066
|
-
if (self2.events[
|
|
21067
|
-
paragraph2 = self2.events[
|
|
21065
|
+
while (index2--) {
|
|
21066
|
+
if (self2.events[index2][1].type !== "lineEnding" && self2.events[index2][1].type !== "linePrefix" && self2.events[index2][1].type !== "content") {
|
|
21067
|
+
paragraph2 = self2.events[index2][1].type === "paragraph";
|
|
21068
21068
|
break;
|
|
21069
21069
|
}
|
|
21070
21070
|
}
|
|
@@ -21186,10 +21186,10 @@ function initializeFactory(field) {
|
|
|
21186
21186
|
return true;
|
|
21187
21187
|
}
|
|
21188
21188
|
const list3 = constructs2[code2];
|
|
21189
|
-
let
|
|
21189
|
+
let index2 = -1;
|
|
21190
21190
|
if (list3) {
|
|
21191
|
-
while (++
|
|
21192
|
-
const item = list3[
|
|
21191
|
+
while (++index2 < list3.length) {
|
|
21192
|
+
const item = list3[index2];
|
|
21193
21193
|
if (!item.previous || item.previous.call(self2, self2.previous)) {
|
|
21194
21194
|
return true;
|
|
21195
21195
|
}
|
|
@@ -21202,19 +21202,19 @@ function initializeFactory(field) {
|
|
|
21202
21202
|
function createResolver(extraResolver) {
|
|
21203
21203
|
return resolveAllText;
|
|
21204
21204
|
function resolveAllText(events, context) {
|
|
21205
|
-
let
|
|
21205
|
+
let index2 = -1;
|
|
21206
21206
|
let enter;
|
|
21207
|
-
while (++
|
|
21207
|
+
while (++index2 <= events.length) {
|
|
21208
21208
|
if (enter === void 0) {
|
|
21209
|
-
if (events[
|
|
21210
|
-
enter =
|
|
21211
|
-
|
|
21209
|
+
if (events[index2] && events[index2][1].type === "data") {
|
|
21210
|
+
enter = index2;
|
|
21211
|
+
index2++;
|
|
21212
21212
|
}
|
|
21213
|
-
} else if (!events[
|
|
21214
|
-
if (
|
|
21215
|
-
events[enter][1].end = events[
|
|
21216
|
-
events.splice(enter + 2,
|
|
21217
|
-
|
|
21213
|
+
} else if (!events[index2] || events[index2][1].type !== "data") {
|
|
21214
|
+
if (index2 !== enter + 2) {
|
|
21215
|
+
events[enter][1].end = events[index2 - 1][1].end;
|
|
21216
|
+
events.splice(enter + 2, index2 - enter - 2);
|
|
21217
|
+
index2 = enter + 2;
|
|
21218
21218
|
}
|
|
21219
21219
|
enter = void 0;
|
|
21220
21220
|
}
|
|
@@ -21228,12 +21228,12 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
21228
21228
|
if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
|
|
21229
21229
|
const data3 = events[eventIndex - 1][1];
|
|
21230
21230
|
const chunks = context.sliceStream(data3);
|
|
21231
|
-
let
|
|
21231
|
+
let index2 = chunks.length;
|
|
21232
21232
|
let bufferIndex = -1;
|
|
21233
21233
|
let size = 0;
|
|
21234
21234
|
let tabs;
|
|
21235
|
-
while (
|
|
21236
|
-
const chunk = chunks[
|
|
21235
|
+
while (index2--) {
|
|
21236
|
+
const chunk = chunks[index2];
|
|
21237
21237
|
if (typeof chunk === "string") {
|
|
21238
21238
|
bufferIndex = chunk.length;
|
|
21239
21239
|
while (chunk.charCodeAt(bufferIndex - 1) === 32) {
|
|
@@ -21248,7 +21248,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
21248
21248
|
size++;
|
|
21249
21249
|
} else if (chunk === -1) {
|
|
21250
21250
|
} else {
|
|
21251
|
-
|
|
21251
|
+
index2++;
|
|
21252
21252
|
break;
|
|
21253
21253
|
}
|
|
21254
21254
|
}
|
|
@@ -21259,8 +21259,8 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
21259
21259
|
line: data3.end.line,
|
|
21260
21260
|
column: data3.end.column - size,
|
|
21261
21261
|
offset: data3.end.offset - size,
|
|
21262
|
-
_index: data3.start._index +
|
|
21263
|
-
_bufferIndex:
|
|
21262
|
+
_index: data3.start._index + index2,
|
|
21263
|
+
_bufferIndex: index2 ? bufferIndex : data3.start._bufferIndex + bufferIndex
|
|
21264
21264
|
},
|
|
21265
21265
|
end: Object.assign({}, data3.end)
|
|
21266
21266
|
};
|
|
@@ -21285,7 +21285,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
21285
21285
|
|
|
21286
21286
|
// ../../../node_modules/.pnpm/micromark@3.0.10/node_modules/micromark/lib/create-tokenizer.js
|
|
21287
21287
|
function createTokenizer(parser, initialize, from) {
|
|
21288
|
-
let
|
|
21288
|
+
let point3 = Object.assign(
|
|
21289
21289
|
from ? Object.assign({}, from) : {
|
|
21290
21290
|
line: 1,
|
|
21291
21291
|
column: 1,
|
|
@@ -21346,7 +21346,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
21346
21346
|
return sliceChunks(chunks, token);
|
|
21347
21347
|
}
|
|
21348
21348
|
function now() {
|
|
21349
|
-
return Object.assign({},
|
|
21349
|
+
return Object.assign({}, point3);
|
|
21350
21350
|
}
|
|
21351
21351
|
function defineSkip(value) {
|
|
21352
21352
|
columnStart[value.line] = value.column;
|
|
@@ -21354,15 +21354,15 @@ function createTokenizer(parser, initialize, from) {
|
|
|
21354
21354
|
}
|
|
21355
21355
|
function main() {
|
|
21356
21356
|
let chunkIndex;
|
|
21357
|
-
while (
|
|
21358
|
-
const chunk = chunks[
|
|
21357
|
+
while (point3._index < chunks.length) {
|
|
21358
|
+
const chunk = chunks[point3._index];
|
|
21359
21359
|
if (typeof chunk === "string") {
|
|
21360
|
-
chunkIndex =
|
|
21361
|
-
if (
|
|
21362
|
-
|
|
21360
|
+
chunkIndex = point3._index;
|
|
21361
|
+
if (point3._bufferIndex < 0) {
|
|
21362
|
+
point3._bufferIndex = 0;
|
|
21363
21363
|
}
|
|
21364
|
-
while (
|
|
21365
|
-
go(chunk.charCodeAt(
|
|
21364
|
+
while (point3._index === chunkIndex && point3._bufferIndex < chunk.length) {
|
|
21365
|
+
go(chunk.charCodeAt(point3._bufferIndex));
|
|
21366
21366
|
}
|
|
21367
21367
|
} else {
|
|
21368
21368
|
go(chunk);
|
|
@@ -21376,21 +21376,21 @@ function createTokenizer(parser, initialize, from) {
|
|
|
21376
21376
|
}
|
|
21377
21377
|
function consume(code2) {
|
|
21378
21378
|
if (markdownLineEnding(code2)) {
|
|
21379
|
-
|
|
21380
|
-
|
|
21381
|
-
|
|
21379
|
+
point3.line++;
|
|
21380
|
+
point3.column = 1;
|
|
21381
|
+
point3.offset += code2 === -3 ? 2 : 1;
|
|
21382
21382
|
accountForPotentialSkip();
|
|
21383
21383
|
} else if (code2 !== -1) {
|
|
21384
|
-
|
|
21385
|
-
|
|
21384
|
+
point3.column++;
|
|
21385
|
+
point3.offset++;
|
|
21386
21386
|
}
|
|
21387
|
-
if (
|
|
21388
|
-
|
|
21387
|
+
if (point3._bufferIndex < 0) {
|
|
21388
|
+
point3._index++;
|
|
21389
21389
|
} else {
|
|
21390
|
-
|
|
21391
|
-
if (
|
|
21392
|
-
|
|
21393
|
-
|
|
21390
|
+
point3._bufferIndex++;
|
|
21391
|
+
if (point3._bufferIndex === chunks[point3._index].length) {
|
|
21392
|
+
point3._bufferIndex = -1;
|
|
21393
|
+
point3._index++;
|
|
21394
21394
|
}
|
|
21395
21395
|
}
|
|
21396
21396
|
context.previous = code2;
|
|
@@ -21505,7 +21505,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
21505
21505
|
from: startEventsIndex
|
|
21506
21506
|
};
|
|
21507
21507
|
function restore() {
|
|
21508
|
-
|
|
21508
|
+
point3 = startPoint;
|
|
21509
21509
|
context.previous = startPrevious;
|
|
21510
21510
|
context.currentConstruct = startCurrentConstruct;
|
|
21511
21511
|
context.events.length = startEventsIndex;
|
|
@@ -21514,9 +21514,9 @@ function createTokenizer(parser, initialize, from) {
|
|
|
21514
21514
|
}
|
|
21515
21515
|
}
|
|
21516
21516
|
function accountForPotentialSkip() {
|
|
21517
|
-
if (
|
|
21518
|
-
|
|
21519
|
-
|
|
21517
|
+
if (point3.line in columnStart && point3.column < 2) {
|
|
21518
|
+
point3.column = columnStart[point3.line];
|
|
21519
|
+
point3.offset += columnStart[point3.line] - 1;
|
|
21520
21520
|
}
|
|
21521
21521
|
}
|
|
21522
21522
|
}
|
|
@@ -21540,11 +21540,11 @@ function sliceChunks(chunks, token) {
|
|
|
21540
21540
|
return view;
|
|
21541
21541
|
}
|
|
21542
21542
|
function serializeChunks(chunks, expandTabs) {
|
|
21543
|
-
let
|
|
21543
|
+
let index2 = -1;
|
|
21544
21544
|
const result = [];
|
|
21545
21545
|
let atTab;
|
|
21546
|
-
while (++
|
|
21547
|
-
const chunk = chunks[
|
|
21546
|
+
while (++index2 < chunks.length) {
|
|
21547
|
+
const chunk = chunks[index2];
|
|
21548
21548
|
let value;
|
|
21549
21549
|
if (typeof chunk === "string") {
|
|
21550
21550
|
value = chunk;
|
|
@@ -21797,32 +21797,6 @@ function decode($0, $1, $2) {
|
|
|
21797
21797
|
return decodeNamedCharacterReference($2) || $0;
|
|
21798
21798
|
}
|
|
21799
21799
|
|
|
21800
|
-
// ../../../node_modules/.pnpm/unist-util-stringify-position@3.0.2/node_modules/unist-util-stringify-position/index.js
|
|
21801
|
-
function stringifyPosition2(value) {
|
|
21802
|
-
if (!value || typeof value !== "object") {
|
|
21803
|
-
return "";
|
|
21804
|
-
}
|
|
21805
|
-
if ("position" in value || "type" in value) {
|
|
21806
|
-
return position2(value.position);
|
|
21807
|
-
}
|
|
21808
|
-
if ("start" in value || "end" in value) {
|
|
21809
|
-
return position2(value);
|
|
21810
|
-
}
|
|
21811
|
-
if ("line" in value || "column" in value) {
|
|
21812
|
-
return point2(value);
|
|
21813
|
-
}
|
|
21814
|
-
return "";
|
|
21815
|
-
}
|
|
21816
|
-
function point2(point4) {
|
|
21817
|
-
return index2(point4 && point4.line) + ":" + index2(point4 && point4.column);
|
|
21818
|
-
}
|
|
21819
|
-
function position2(pos) {
|
|
21820
|
-
return point2(pos && pos.start) + "-" + point2(pos && pos.end);
|
|
21821
|
-
}
|
|
21822
|
-
function index2(value) {
|
|
21823
|
-
return value && typeof value === "number" ? value : 1;
|
|
21824
|
-
}
|
|
21825
|
-
|
|
21826
21800
|
// ../../../node_modules/.pnpm/mdast-util-from-markdown@1.2.0/node_modules/mdast-util-from-markdown/lib/index.js
|
|
21827
21801
|
var own2 = {}.hasOwnProperty;
|
|
21828
21802
|
var fromMarkdown = function(value, encoding, options) {
|
|
@@ -21964,29 +21938,29 @@ function compiler(options = {}) {
|
|
|
21964
21938
|
setData,
|
|
21965
21939
|
getData
|
|
21966
21940
|
};
|
|
21967
|
-
let
|
|
21968
|
-
while (++
|
|
21969
|
-
if (events[
|
|
21970
|
-
if (events[
|
|
21971
|
-
listStack.push(
|
|
21941
|
+
let index2 = -1;
|
|
21942
|
+
while (++index2 < events.length) {
|
|
21943
|
+
if (events[index2][1].type === "listOrdered" || events[index2][1].type === "listUnordered") {
|
|
21944
|
+
if (events[index2][0] === "enter") {
|
|
21945
|
+
listStack.push(index2);
|
|
21972
21946
|
} else {
|
|
21973
21947
|
const tail = listStack.pop();
|
|
21974
|
-
|
|
21948
|
+
index2 = prepareList(events, tail, index2);
|
|
21975
21949
|
}
|
|
21976
21950
|
}
|
|
21977
21951
|
}
|
|
21978
|
-
|
|
21979
|
-
while (++
|
|
21980
|
-
const handler = config[events[
|
|
21981
|
-
if (own2.call(handler, events[
|
|
21982
|
-
handler[events[
|
|
21952
|
+
index2 = -1;
|
|
21953
|
+
while (++index2 < events.length) {
|
|
21954
|
+
const handler = config[events[index2][0]];
|
|
21955
|
+
if (own2.call(handler, events[index2][1].type)) {
|
|
21956
|
+
handler[events[index2][1].type].call(
|
|
21983
21957
|
Object.assign(
|
|
21984
21958
|
{
|
|
21985
|
-
sliceSerialize: events[
|
|
21959
|
+
sliceSerialize: events[index2][2].sliceSerialize
|
|
21986
21960
|
},
|
|
21987
21961
|
context
|
|
21988
21962
|
),
|
|
21989
|
-
events[
|
|
21963
|
+
events[index2][1]
|
|
21990
21964
|
);
|
|
21991
21965
|
}
|
|
21992
21966
|
}
|
|
@@ -21996,14 +21970,14 @@ function compiler(options = {}) {
|
|
|
21996
21970
|
handler.call(context, void 0, tail[0]);
|
|
21997
21971
|
}
|
|
21998
21972
|
tree.position = {
|
|
21999
|
-
start:
|
|
21973
|
+
start: point3(
|
|
22000
21974
|
events.length > 0 ? events[0][1].start : {
|
|
22001
21975
|
line: 1,
|
|
22002
21976
|
column: 1,
|
|
22003
21977
|
offset: 0
|
|
22004
21978
|
}
|
|
22005
21979
|
),
|
|
22006
|
-
end:
|
|
21980
|
+
end: point3(
|
|
22007
21981
|
events.length > 0 ? events[events.length - 2][1].end : {
|
|
22008
21982
|
line: 1,
|
|
22009
21983
|
column: 1,
|
|
@@ -22011,22 +21985,22 @@ function compiler(options = {}) {
|
|
|
22011
21985
|
}
|
|
22012
21986
|
)
|
|
22013
21987
|
};
|
|
22014
|
-
|
|
22015
|
-
while (++
|
|
22016
|
-
tree = config.transforms[
|
|
21988
|
+
index2 = -1;
|
|
21989
|
+
while (++index2 < config.transforms.length) {
|
|
21990
|
+
tree = config.transforms[index2](tree) || tree;
|
|
22017
21991
|
}
|
|
22018
21992
|
return tree;
|
|
22019
21993
|
}
|
|
22020
21994
|
function prepareList(events, start3, length) {
|
|
22021
|
-
let
|
|
21995
|
+
let index2 = start3 - 1;
|
|
22022
21996
|
let containerBalance = -1;
|
|
22023
21997
|
let listSpread = false;
|
|
22024
21998
|
let listItem3;
|
|
22025
21999
|
let lineIndex;
|
|
22026
22000
|
let firstBlankLineIndex;
|
|
22027
22001
|
let atMarker;
|
|
22028
|
-
while (++
|
|
22029
|
-
const event = events[
|
|
22002
|
+
while (++index2 <= length) {
|
|
22003
|
+
const event = events[index2];
|
|
22030
22004
|
if (event[1].type === "listUnordered" || event[1].type === "listOrdered" || event[1].type === "blockQuote") {
|
|
22031
22005
|
if (event[0] === "enter") {
|
|
22032
22006
|
containerBalance++;
|
|
@@ -22037,7 +22011,7 @@ function compiler(options = {}) {
|
|
|
22037
22011
|
} else if (event[1].type === "lineEndingBlank") {
|
|
22038
22012
|
if (event[0] === "enter") {
|
|
22039
22013
|
if (listItem3 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
22040
|
-
firstBlankLineIndex =
|
|
22014
|
+
firstBlankLineIndex = index2;
|
|
22041
22015
|
}
|
|
22042
22016
|
atMarker = void 0;
|
|
22043
22017
|
}
|
|
@@ -22047,7 +22021,7 @@ function compiler(options = {}) {
|
|
|
22047
22021
|
}
|
|
22048
22022
|
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
22049
22023
|
if (listItem3) {
|
|
22050
|
-
let tailIndex =
|
|
22024
|
+
let tailIndex = index2;
|
|
22051
22025
|
lineIndex = void 0;
|
|
22052
22026
|
while (tailIndex--) {
|
|
22053
22027
|
const tailEvent = events[tailIndex];
|
|
@@ -22072,8 +22046,8 @@ function compiler(options = {}) {
|
|
|
22072
22046
|
{},
|
|
22073
22047
|
lineIndex ? events[lineIndex][1].start : event[1].end
|
|
22074
22048
|
);
|
|
22075
|
-
events.splice(lineIndex ||
|
|
22076
|
-
|
|
22049
|
+
events.splice(lineIndex || index2, 0, ["exit", listItem3, event[2]]);
|
|
22050
|
+
index2++;
|
|
22077
22051
|
length++;
|
|
22078
22052
|
}
|
|
22079
22053
|
if (event[1].type === "listItemPrefix") {
|
|
@@ -22082,8 +22056,8 @@ function compiler(options = {}) {
|
|
|
22082
22056
|
_spread: false,
|
|
22083
22057
|
start: Object.assign({}, event[1].start)
|
|
22084
22058
|
};
|
|
22085
|
-
events.splice(
|
|
22086
|
-
|
|
22059
|
+
events.splice(index2, 0, ["enter", listItem3, event[2]]);
|
|
22060
|
+
index2++;
|
|
22087
22061
|
length++;
|
|
22088
22062
|
firstBlankLineIndex = void 0;
|
|
22089
22063
|
atMarker = true;
|
|
@@ -22099,7 +22073,7 @@ function compiler(options = {}) {
|
|
|
22099
22073
|
function getData(key) {
|
|
22100
22074
|
return data3[key];
|
|
22101
22075
|
}
|
|
22102
|
-
function
|
|
22076
|
+
function point3(d) {
|
|
22103
22077
|
return {
|
|
22104
22078
|
line: d.line,
|
|
22105
22079
|
column: d.column,
|
|
@@ -22126,7 +22100,7 @@ function compiler(options = {}) {
|
|
|
22126
22100
|
this.stack.push(node);
|
|
22127
22101
|
this.tokenStack.push([token, errorHandler]);
|
|
22128
22102
|
node.position = {
|
|
22129
|
-
start:
|
|
22103
|
+
start: point3(token.start)
|
|
22130
22104
|
};
|
|
22131
22105
|
return node;
|
|
22132
22106
|
}
|
|
@@ -22143,7 +22117,7 @@ function compiler(options = {}) {
|
|
|
22143
22117
|
const open = this.tokenStack.pop();
|
|
22144
22118
|
if (!open) {
|
|
22145
22119
|
throw new Error(
|
|
22146
|
-
"Cannot close `" + token.type + "` (" +
|
|
22120
|
+
"Cannot close `" + token.type + "` (" + stringifyPosition({
|
|
22147
22121
|
start: token.start,
|
|
22148
22122
|
end: token.end
|
|
22149
22123
|
}) + "): it\u2019s not open"
|
|
@@ -22156,7 +22130,7 @@ function compiler(options = {}) {
|
|
|
22156
22130
|
handler.call(this, token, open[0]);
|
|
22157
22131
|
}
|
|
22158
22132
|
}
|
|
22159
|
-
node.position.end =
|
|
22133
|
+
node.position.end = point3(token.end);
|
|
22160
22134
|
return node;
|
|
22161
22135
|
}
|
|
22162
22136
|
function resume() {
|
|
@@ -22240,7 +22214,7 @@ function compiler(options = {}) {
|
|
|
22240
22214
|
if (!tail || tail.type !== "text") {
|
|
22241
22215
|
tail = text8();
|
|
22242
22216
|
tail.position = {
|
|
22243
|
-
start:
|
|
22217
|
+
start: point3(token.start)
|
|
22244
22218
|
};
|
|
22245
22219
|
parent.children.push(tail);
|
|
22246
22220
|
}
|
|
@@ -22249,13 +22223,13 @@ function compiler(options = {}) {
|
|
|
22249
22223
|
function onexitdata(token) {
|
|
22250
22224
|
const tail = this.stack.pop();
|
|
22251
22225
|
tail.value += this.sliceSerialize(token);
|
|
22252
|
-
tail.position.end =
|
|
22226
|
+
tail.position.end = point3(token.end);
|
|
22253
22227
|
}
|
|
22254
22228
|
function onexitlineending(token) {
|
|
22255
22229
|
const context = this.stack[this.stack.length - 1];
|
|
22256
22230
|
if (getData("atHardBreak")) {
|
|
22257
22231
|
const tail = context.children[context.children.length - 1];
|
|
22258
|
-
tail.position.end =
|
|
22232
|
+
tail.position.end = point3(token.end);
|
|
22259
22233
|
setData("atHardBreak");
|
|
22260
22234
|
return;
|
|
22261
22235
|
}
|
|
@@ -22368,7 +22342,7 @@ function compiler(options = {}) {
|
|
|
22368
22342
|
}
|
|
22369
22343
|
const tail = this.stack.pop();
|
|
22370
22344
|
tail.value += value;
|
|
22371
|
-
tail.position.end =
|
|
22345
|
+
tail.position.end = point3(token.end);
|
|
22372
22346
|
}
|
|
22373
22347
|
function onexitautolinkprotocol(token) {
|
|
22374
22348
|
onexitdata.call(this, token);
|
|
@@ -22491,9 +22465,9 @@ function compiler(options = {}) {
|
|
|
22491
22465
|
}
|
|
22492
22466
|
}
|
|
22493
22467
|
function configure(combined, extensions) {
|
|
22494
|
-
let
|
|
22495
|
-
while (++
|
|
22496
|
-
const value = extensions[
|
|
22468
|
+
let index2 = -1;
|
|
22469
|
+
while (++index2 < extensions.length) {
|
|
22470
|
+
const value = extensions[index2];
|
|
22497
22471
|
if (Array.isArray(value)) {
|
|
22498
22472
|
configure(combined, value);
|
|
22499
22473
|
} else {
|
|
@@ -22523,17 +22497,17 @@ function extension(combined, extension3) {
|
|
|
22523
22497
|
function defaultOnError(left, right) {
|
|
22524
22498
|
if (left) {
|
|
22525
22499
|
throw new Error(
|
|
22526
|
-
"Cannot close `" + left.type + "` (" +
|
|
22500
|
+
"Cannot close `" + left.type + "` (" + stringifyPosition({
|
|
22527
22501
|
start: left.start,
|
|
22528
22502
|
end: left.end
|
|
22529
|
-
}) + "): a different token (`" + right.type + "`, " +
|
|
22503
|
+
}) + "): a different token (`" + right.type + "`, " + stringifyPosition({
|
|
22530
22504
|
start: right.start,
|
|
22531
22505
|
end: right.end
|
|
22532
22506
|
}) + ") is open"
|
|
22533
22507
|
);
|
|
22534
22508
|
} else {
|
|
22535
22509
|
throw new Error(
|
|
22536
|
-
"Cannot close document, a token (`" + right.type + "`, " +
|
|
22510
|
+
"Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
|
|
22537
22511
|
start: right.start,
|
|
22538
22512
|
end: right.end
|
|
22539
22513
|
}) + ") is still open"
|
|
@@ -22581,11 +22555,11 @@ function zwitch(key, options) {
|
|
|
22581
22555
|
|
|
22582
22556
|
// ../../../node_modules/.pnpm/mdast-util-to-markdown@1.5.0/node_modules/mdast-util-to-markdown/lib/configure.js
|
|
22583
22557
|
function configure2(base2, extension3) {
|
|
22584
|
-
let
|
|
22558
|
+
let index2 = -1;
|
|
22585
22559
|
let key;
|
|
22586
22560
|
if (extension3.extensions) {
|
|
22587
|
-
while (++
|
|
22588
|
-
configure2(base2, extension3.extensions[
|
|
22561
|
+
while (++index2 < extension3.extensions.length) {
|
|
22562
|
+
configure2(base2, extension3.extensions[index2]);
|
|
22589
22563
|
}
|
|
22590
22564
|
}
|
|
22591
22565
|
for (key in extension3) {
|
|
@@ -22629,9 +22603,9 @@ function listInScope(stack, list3, none) {
|
|
|
22629
22603
|
if (!list3 || list3.length === 0) {
|
|
22630
22604
|
return none;
|
|
22631
22605
|
}
|
|
22632
|
-
let
|
|
22633
|
-
while (++
|
|
22634
|
-
if (stack.includes(list3[
|
|
22606
|
+
let index2 = -1;
|
|
22607
|
+
while (++index2 < list3.length) {
|
|
22608
|
+
if (stack.includes(list3[index2])) {
|
|
22635
22609
|
return true;
|
|
22636
22610
|
}
|
|
22637
22611
|
}
|
|
@@ -22640,9 +22614,9 @@ function listInScope(stack, list3, none) {
|
|
|
22640
22614
|
|
|
22641
22615
|
// ../../../node_modules/.pnpm/mdast-util-to-markdown@1.5.0/node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
22642
22616
|
function hardBreak(_, _1, state, info) {
|
|
22643
|
-
let
|
|
22644
|
-
while (++
|
|
22645
|
-
if (state.unsafe[
|
|
22617
|
+
let index2 = -1;
|
|
22618
|
+
while (++index2 < state.unsafe.length) {
|
|
22619
|
+
if (state.unsafe[index2].character === "\n" && patternInScope(state.stack, state.unsafe[index2])) {
|
|
22646
22620
|
return /[ \t]/.test(info.before) ? "" : " ";
|
|
22647
22621
|
}
|
|
22648
22622
|
}
|
|
@@ -22652,23 +22626,23 @@ function hardBreak(_, _1, state, info) {
|
|
|
22652
22626
|
// ../../../node_modules/.pnpm/longest-streak@3.0.1/node_modules/longest-streak/index.js
|
|
22653
22627
|
function longestStreak(value, character) {
|
|
22654
22628
|
const source2 = String(value);
|
|
22655
|
-
let
|
|
22656
|
-
let expected =
|
|
22629
|
+
let index2 = source2.indexOf(character);
|
|
22630
|
+
let expected = index2;
|
|
22657
22631
|
let count = 0;
|
|
22658
22632
|
let max = 0;
|
|
22659
22633
|
if (typeof character !== "string" || character.length !== 1) {
|
|
22660
22634
|
throw new Error("Expected character");
|
|
22661
22635
|
}
|
|
22662
|
-
while (
|
|
22663
|
-
if (
|
|
22636
|
+
while (index2 !== -1) {
|
|
22637
|
+
if (index2 === expected) {
|
|
22664
22638
|
if (++count > max) {
|
|
22665
22639
|
max = count;
|
|
22666
22640
|
}
|
|
22667
22641
|
} else {
|
|
22668
22642
|
count = 1;
|
|
22669
22643
|
}
|
|
22670
|
-
expected =
|
|
22671
|
-
|
|
22644
|
+
expected = index2 + 1;
|
|
22645
|
+
index2 = source2.indexOf(character, expected);
|
|
22672
22646
|
}
|
|
22673
22647
|
return max;
|
|
22674
22648
|
}
|
|
@@ -22857,15 +22831,15 @@ var convert = function(test) {
|
|
|
22857
22831
|
};
|
|
22858
22832
|
function anyFactory(tests) {
|
|
22859
22833
|
const checks = [];
|
|
22860
|
-
let
|
|
22861
|
-
while (++
|
|
22862
|
-
checks[
|
|
22834
|
+
let index2 = -1;
|
|
22835
|
+
while (++index2 < tests.length) {
|
|
22836
|
+
checks[index2] = convert(tests[index2]);
|
|
22863
22837
|
}
|
|
22864
22838
|
return castFactory(any);
|
|
22865
22839
|
function any(...parameters) {
|
|
22866
|
-
let
|
|
22867
|
-
while (++
|
|
22868
|
-
if (checks[
|
|
22840
|
+
let index3 = -1;
|
|
22841
|
+
while (++index3 < checks.length) {
|
|
22842
|
+
if (checks[index3].call(this, ...parameters))
|
|
22869
22843
|
return true;
|
|
22870
22844
|
}
|
|
22871
22845
|
return false;
|
|
@@ -22916,7 +22890,7 @@ var visitParents = function(tree, test, visitor, reverse) {
|
|
|
22916
22890
|
const is2 = convert(test);
|
|
22917
22891
|
const step = reverse ? -1 : 1;
|
|
22918
22892
|
factory(tree, void 0, [])();
|
|
22919
|
-
function factory(node,
|
|
22893
|
+
function factory(node, index2, parents) {
|
|
22920
22894
|
const value = node && typeof node === "object" ? node : {};
|
|
22921
22895
|
if (typeof value.type === "string") {
|
|
22922
22896
|
const name2 = typeof value.tagName === "string" ? value.tagName : typeof value.name === "string" ? value.name : void 0;
|
|
@@ -22930,7 +22904,7 @@ var visitParents = function(tree, test, visitor, reverse) {
|
|
|
22930
22904
|
let subresult;
|
|
22931
22905
|
let offset3;
|
|
22932
22906
|
let grandparents;
|
|
22933
|
-
if (!test || is2(node,
|
|
22907
|
+
if (!test || is2(node, index2, parents[parents.length - 1] || null)) {
|
|
22934
22908
|
result = toResult(visitor(node, parents));
|
|
22935
22909
|
if (result[0] === EXIT) {
|
|
22936
22910
|
return result;
|
|
@@ -23150,25 +23124,25 @@ inlineCode.peek = inlineCodePeek;
|
|
|
23150
23124
|
function inlineCode(node, _, state) {
|
|
23151
23125
|
let value = node.value || "";
|
|
23152
23126
|
let sequence = "`";
|
|
23153
|
-
let
|
|
23127
|
+
let index2 = -1;
|
|
23154
23128
|
while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
|
|
23155
23129
|
sequence += "`";
|
|
23156
23130
|
}
|
|
23157
23131
|
if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) {
|
|
23158
23132
|
value = " " + value + " ";
|
|
23159
23133
|
}
|
|
23160
|
-
while (++
|
|
23161
|
-
const pattern = state.unsafe[
|
|
23134
|
+
while (++index2 < state.unsafe.length) {
|
|
23135
|
+
const pattern = state.unsafe[index2];
|
|
23162
23136
|
const expression = patternCompile(pattern);
|
|
23163
23137
|
let match;
|
|
23164
23138
|
if (!pattern.atBreak)
|
|
23165
23139
|
continue;
|
|
23166
23140
|
while (match = expression.exec(value)) {
|
|
23167
|
-
let
|
|
23168
|
-
if (value.charCodeAt(
|
|
23169
|
-
|
|
23141
|
+
let position2 = match.index;
|
|
23142
|
+
if (value.charCodeAt(position2) === 10 && value.charCodeAt(position2 - 1) === 13) {
|
|
23143
|
+
position2--;
|
|
23170
23144
|
}
|
|
23171
|
-
value = value.slice(0,
|
|
23145
|
+
value = value.slice(0, position2) + " " + value.slice(match.index + 1);
|
|
23172
23146
|
}
|
|
23173
23147
|
}
|
|
23174
23148
|
return sequence + value + sequence;
|
|
@@ -23390,9 +23364,9 @@ function list2(node, parent, state, info) {
|
|
|
23390
23364
|
useDifferentMarker = true;
|
|
23391
23365
|
}
|
|
23392
23366
|
if (checkRule(state) === bullet && firstListItem) {
|
|
23393
|
-
let
|
|
23394
|
-
while (++
|
|
23395
|
-
const item = node.children[
|
|
23367
|
+
let index2 = -1;
|
|
23368
|
+
while (++index2 < node.children.length) {
|
|
23369
|
+
const item = node.children[index2];
|
|
23396
23370
|
if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
|
|
23397
23371
|
useDifferentMarker = true;
|
|
23398
23372
|
break;
|
|
@@ -23446,8 +23420,8 @@ function listItem(node, parent, state, info) {
|
|
|
23446
23420
|
);
|
|
23447
23421
|
exit2();
|
|
23448
23422
|
return value;
|
|
23449
|
-
function map3(line2,
|
|
23450
|
-
if (
|
|
23423
|
+
function map3(line2, index2, blank) {
|
|
23424
|
+
if (index2) {
|
|
23451
23425
|
return (blank ? "" : " ".repeat(size)) + line2;
|
|
23452
23426
|
}
|
|
23453
23427
|
return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line2;
|
|
@@ -23692,19 +23666,19 @@ function containerPhrasing(parent, state, info) {
|
|
|
23692
23666
|
const indexStack = state.indexStack;
|
|
23693
23667
|
const children = parent.children || [];
|
|
23694
23668
|
const results = [];
|
|
23695
|
-
let
|
|
23669
|
+
let index2 = -1;
|
|
23696
23670
|
let before = info.before;
|
|
23697
23671
|
indexStack.push(-1);
|
|
23698
23672
|
let tracker = state.createTracker(info);
|
|
23699
|
-
while (++
|
|
23700
|
-
const child = children[
|
|
23673
|
+
while (++index2 < children.length) {
|
|
23674
|
+
const child = children[index2];
|
|
23701
23675
|
let after;
|
|
23702
|
-
indexStack[indexStack.length - 1] =
|
|
23703
|
-
if (
|
|
23704
|
-
let handle2 = state.handle.handlers[children[
|
|
23676
|
+
indexStack[indexStack.length - 1] = index2;
|
|
23677
|
+
if (index2 + 1 < children.length) {
|
|
23678
|
+
let handle2 = state.handle.handlers[children[index2 + 1].type];
|
|
23705
23679
|
if (handle2 && handle2.peek)
|
|
23706
23680
|
handle2 = handle2.peek;
|
|
23707
|
-
after = handle2 ? handle2(children[
|
|
23681
|
+
after = handle2 ? handle2(children[index2 + 1], parent, state, {
|
|
23708
23682
|
before: "",
|
|
23709
23683
|
after: "",
|
|
23710
23684
|
...tracker.current()
|
|
@@ -23742,11 +23716,11 @@ function containerFlow(parent, state, info) {
|
|
|
23742
23716
|
const children = parent.children || [];
|
|
23743
23717
|
const tracker = state.createTracker(info);
|
|
23744
23718
|
const results = [];
|
|
23745
|
-
let
|
|
23719
|
+
let index2 = -1;
|
|
23746
23720
|
indexStack.push(-1);
|
|
23747
|
-
while (++
|
|
23748
|
-
const child = children[
|
|
23749
|
-
indexStack[indexStack.length - 1] =
|
|
23721
|
+
while (++index2 < children.length) {
|
|
23722
|
+
const child = children[index2];
|
|
23723
|
+
indexStack[indexStack.length - 1] = index2;
|
|
23750
23724
|
results.push(
|
|
23751
23725
|
tracker.move(
|
|
23752
23726
|
state.handle(child, parent, state, {
|
|
@@ -23759,9 +23733,9 @@ function containerFlow(parent, state, info) {
|
|
|
23759
23733
|
if (child.type !== "list") {
|
|
23760
23734
|
state.bulletLastUsed = void 0;
|
|
23761
23735
|
}
|
|
23762
|
-
if (
|
|
23736
|
+
if (index2 < children.length - 1) {
|
|
23763
23737
|
results.push(
|
|
23764
|
-
tracker.move(between(child, children[
|
|
23738
|
+
tracker.move(between(child, children[index2 + 1], parent, state))
|
|
23765
23739
|
);
|
|
23766
23740
|
}
|
|
23767
23741
|
}
|
|
@@ -23769,9 +23743,9 @@ function containerFlow(parent, state, info) {
|
|
|
23769
23743
|
return results.join("");
|
|
23770
23744
|
}
|
|
23771
23745
|
function between(left, right, parent, state) {
|
|
23772
|
-
let
|
|
23773
|
-
while (
|
|
23774
|
-
const result = state.join[
|
|
23746
|
+
let index2 = state.join.length;
|
|
23747
|
+
while (index2--) {
|
|
23748
|
+
const result = state.join[index2](left, right, parent, state);
|
|
23775
23749
|
if (result === true || result === 1) {
|
|
23776
23750
|
break;
|
|
23777
23751
|
}
|
|
@@ -23811,9 +23785,9 @@ function safe(state, input, config) {
|
|
|
23811
23785
|
const positions = [];
|
|
23812
23786
|
const result = [];
|
|
23813
23787
|
const infos = {};
|
|
23814
|
-
let
|
|
23815
|
-
while (++
|
|
23816
|
-
const pattern = state.unsafe[
|
|
23788
|
+
let index2 = -1;
|
|
23789
|
+
while (++index2 < state.unsafe.length) {
|
|
23790
|
+
const pattern = state.unsafe[index2];
|
|
23817
23791
|
if (!patternInScope(state.stack, pattern)) {
|
|
23818
23792
|
continue;
|
|
23819
23793
|
}
|
|
@@ -23822,41 +23796,41 @@ function safe(state, input, config) {
|
|
|
23822
23796
|
while (match = expression.exec(value)) {
|
|
23823
23797
|
const before = "before" in pattern || Boolean(pattern.atBreak);
|
|
23824
23798
|
const after = "after" in pattern;
|
|
23825
|
-
const
|
|
23826
|
-
if (positions.includes(
|
|
23827
|
-
if (infos[
|
|
23828
|
-
infos[
|
|
23799
|
+
const position2 = match.index + (before ? match[1].length : 0);
|
|
23800
|
+
if (positions.includes(position2)) {
|
|
23801
|
+
if (infos[position2].before && !before) {
|
|
23802
|
+
infos[position2].before = false;
|
|
23829
23803
|
}
|
|
23830
|
-
if (infos[
|
|
23831
|
-
infos[
|
|
23804
|
+
if (infos[position2].after && !after) {
|
|
23805
|
+
infos[position2].after = false;
|
|
23832
23806
|
}
|
|
23833
23807
|
} else {
|
|
23834
|
-
positions.push(
|
|
23835
|
-
infos[
|
|
23808
|
+
positions.push(position2);
|
|
23809
|
+
infos[position2] = { before, after };
|
|
23836
23810
|
}
|
|
23837
23811
|
}
|
|
23838
23812
|
}
|
|
23839
23813
|
positions.sort(numerical);
|
|
23840
23814
|
let start3 = config.before ? config.before.length : 0;
|
|
23841
23815
|
const end = value.length - (config.after ? config.after.length : 0);
|
|
23842
|
-
|
|
23843
|
-
while (++
|
|
23844
|
-
const
|
|
23845
|
-
if (
|
|
23816
|
+
index2 = -1;
|
|
23817
|
+
while (++index2 < positions.length) {
|
|
23818
|
+
const position2 = positions[index2];
|
|
23819
|
+
if (position2 < start3 || position2 >= end) {
|
|
23846
23820
|
continue;
|
|
23847
23821
|
}
|
|
23848
|
-
if (
|
|
23822
|
+
if (position2 + 1 < end && positions[index2 + 1] === position2 + 1 && infos[position2].after && !infos[position2 + 1].before && !infos[position2 + 1].after || positions[index2 - 1] === position2 - 1 && infos[position2].before && !infos[position2 - 1].before && !infos[position2 - 1].after) {
|
|
23849
23823
|
continue;
|
|
23850
23824
|
}
|
|
23851
|
-
if (start3 !==
|
|
23852
|
-
result.push(escapeBackslashes(value.slice(start3,
|
|
23825
|
+
if (start3 !== position2) {
|
|
23826
|
+
result.push(escapeBackslashes(value.slice(start3, position2), "\\"));
|
|
23853
23827
|
}
|
|
23854
|
-
start3 =
|
|
23855
|
-
if (/[!-/:-@[-`{-~]/.test(value.charAt(
|
|
23828
|
+
start3 = position2;
|
|
23829
|
+
if (/[!-/:-@[-`{-~]/.test(value.charAt(position2)) && (!config.encode || !config.encode.includes(value.charAt(position2)))) {
|
|
23856
23830
|
result.push("\\");
|
|
23857
23831
|
} else {
|
|
23858
23832
|
result.push(
|
|
23859
|
-
"&#x" + value.charCodeAt(
|
|
23833
|
+
"&#x" + value.charCodeAt(position2).toString(16).toUpperCase() + ";"
|
|
23860
23834
|
);
|
|
23861
23835
|
start3++;
|
|
23862
23836
|
}
|
|
@@ -23872,18 +23846,18 @@ function escapeBackslashes(value, after) {
|
|
|
23872
23846
|
const positions = [];
|
|
23873
23847
|
const results = [];
|
|
23874
23848
|
const whole = value + after;
|
|
23875
|
-
let
|
|
23849
|
+
let index2 = -1;
|
|
23876
23850
|
let start3 = 0;
|
|
23877
23851
|
let match;
|
|
23878
23852
|
while (match = expression.exec(whole)) {
|
|
23879
23853
|
positions.push(match.index);
|
|
23880
23854
|
}
|
|
23881
|
-
while (++
|
|
23882
|
-
if (start3 !== positions[
|
|
23883
|
-
results.push(value.slice(start3, positions[
|
|
23855
|
+
while (++index2 < positions.length) {
|
|
23856
|
+
if (start3 !== positions[index2]) {
|
|
23857
|
+
results.push(value.slice(start3, positions[index2]));
|
|
23884
23858
|
}
|
|
23885
23859
|
results.push("\\");
|
|
23886
|
-
start3 = positions[
|
|
23860
|
+
start3 = positions[index2];
|
|
23887
23861
|
}
|
|
23888
23862
|
results.push(value.slice(start3));
|
|
23889
23863
|
return results.join("");
|
|
@@ -25923,11 +25897,11 @@ types$1.backQuote.updateContext = function() {
|
|
|
25923
25897
|
};
|
|
25924
25898
|
types$1.star.updateContext = function(prevType) {
|
|
25925
25899
|
if (prevType === types$1._function) {
|
|
25926
|
-
var
|
|
25927
|
-
if (this.context[
|
|
25928
|
-
this.context[
|
|
25900
|
+
var index2 = this.context.length - 1;
|
|
25901
|
+
if (this.context[index2] === types.f_expr) {
|
|
25902
|
+
this.context[index2] = types.f_expr_gen;
|
|
25929
25903
|
} else {
|
|
25930
|
-
this.context[
|
|
25904
|
+
this.context[index2] = types.f_gen;
|
|
25931
25905
|
}
|
|
25932
25906
|
}
|
|
25933
25907
|
this.exprAllowed = true;
|
|
@@ -28540,11 +28514,11 @@ pp.tryReadTemplateToken = function() {
|
|
|
28540
28514
|
}
|
|
28541
28515
|
this.inTemplateElement = false;
|
|
28542
28516
|
};
|
|
28543
|
-
pp.invalidStringToken = function(
|
|
28517
|
+
pp.invalidStringToken = function(position2, message) {
|
|
28544
28518
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9) {
|
|
28545
28519
|
throw INVALID_TEMPLATE_ESCAPE_ERROR;
|
|
28546
28520
|
} else {
|
|
28547
|
-
this.raise(
|
|
28521
|
+
this.raise(position2, message);
|
|
28548
28522
|
}
|
|
28549
28523
|
};
|
|
28550
28524
|
pp.readTmplToken = function() {
|
|
@@ -28794,13 +28768,13 @@ function visit2(tree, visitor) {
|
|
|
28794
28768
|
leave = visitor.leave;
|
|
28795
28769
|
}
|
|
28796
28770
|
build(tree, null, null, [])();
|
|
28797
|
-
function build(node, key,
|
|
28771
|
+
function build(node, key, index2, parents) {
|
|
28798
28772
|
if (nodelike(node)) {
|
|
28799
28773
|
visit3.displayName = "node (" + color2(node.type) + ")";
|
|
28800
28774
|
}
|
|
28801
28775
|
return visit3;
|
|
28802
28776
|
function visit3() {
|
|
28803
|
-
var result = enter ? toResult2(enter(node, key,
|
|
28777
|
+
var result = enter ? toResult2(enter(node, key, index2, parents)) : [];
|
|
28804
28778
|
var cKey;
|
|
28805
28779
|
var cIndex;
|
|
28806
28780
|
var grandparents;
|
|
@@ -28836,7 +28810,7 @@ function visit2(tree, visitor) {
|
|
|
28836
28810
|
}
|
|
28837
28811
|
}
|
|
28838
28812
|
}
|
|
28839
|
-
return leave ? toResult2(leave(node, key,
|
|
28813
|
+
return leave ? toResult2(leave(node, key, index2, parents)) : result;
|
|
28840
28814
|
}
|
|
28841
28815
|
}
|
|
28842
28816
|
}
|
|
@@ -28866,13 +28840,13 @@ function location(file) {
|
|
|
28866
28840
|
indices.push(value.length + 1);
|
|
28867
28841
|
return { toPoint, toOffset };
|
|
28868
28842
|
function toPoint(offset3) {
|
|
28869
|
-
var
|
|
28843
|
+
var index2 = -1;
|
|
28870
28844
|
if (offset3 > -1 && offset3 < indices[indices.length - 1]) {
|
|
28871
|
-
while (++
|
|
28872
|
-
if (indices[
|
|
28845
|
+
while (++index2 < indices.length) {
|
|
28846
|
+
if (indices[index2] > offset3) {
|
|
28873
28847
|
return {
|
|
28874
|
-
line:
|
|
28875
|
-
column: offset3 - (indices[
|
|
28848
|
+
line: index2 + 1,
|
|
28849
|
+
column: offset3 - (indices[index2 - 1] || 0) + 1,
|
|
28876
28850
|
offset: offset3
|
|
28877
28851
|
};
|
|
28878
28852
|
}
|
|
@@ -28880,9 +28854,9 @@ function location(file) {
|
|
|
28880
28854
|
}
|
|
28881
28855
|
return { line: void 0, column: void 0, offset: void 0 };
|
|
28882
28856
|
}
|
|
28883
|
-
function toOffset(
|
|
28884
|
-
var line2 =
|
|
28885
|
-
var column =
|
|
28857
|
+
function toOffset(point3) {
|
|
28858
|
+
var line2 = point3 && point3.line;
|
|
28859
|
+
var column = point3 && point3.column;
|
|
28886
28860
|
var offset3;
|
|
28887
28861
|
if (typeof line2 === "number" && typeof column === "number" && !Number.isNaN(line2) && !Number.isNaN(column) && line2 - 1 in indices) {
|
|
28888
28862
|
offset3 = (indices[line2 - 2] || 0) + column - 1 || 0;
|
|
@@ -28906,7 +28880,7 @@ function eventsToAcorn(events, options) {
|
|
|
28906
28880
|
});
|
|
28907
28881
|
const chunks = [];
|
|
28908
28882
|
const lines2 = {};
|
|
28909
|
-
let
|
|
28883
|
+
let index2 = -1;
|
|
28910
28884
|
let swallow = false;
|
|
28911
28885
|
let estree;
|
|
28912
28886
|
let exception;
|
|
@@ -28915,8 +28889,8 @@ function eventsToAcorn(events, options) {
|
|
|
28915
28889
|
startLine = options.start.line;
|
|
28916
28890
|
lines2[startLine] = options.start;
|
|
28917
28891
|
}
|
|
28918
|
-
while (++
|
|
28919
|
-
const [kind, token, context] = events[
|
|
28892
|
+
while (++index2 < events.length) {
|
|
28893
|
+
const [kind, token, context] = events[index2];
|
|
28920
28894
|
if (kind === "exit") {
|
|
28921
28895
|
chunks.push(context.sliceSerialize(token));
|
|
28922
28896
|
setPoint(token.start);
|
|
@@ -28938,12 +28912,12 @@ function eventsToAcorn(events, options) {
|
|
|
28938
28912
|
estree = options.expression && !isEmptyExpression ? options.acorn.parseExpressionAt(value, 0, acornConfig) : options.acorn.parse(value, acornConfig);
|
|
28939
28913
|
} catch (error_) {
|
|
28940
28914
|
const error = error_;
|
|
28941
|
-
const
|
|
28915
|
+
const point3 = parseOffsetToUnistPoint(error.pos);
|
|
28942
28916
|
error.message = String(error.message).replace(/ \(\d+:\d+\)$/, "");
|
|
28943
|
-
error.pos =
|
|
28917
|
+
error.pos = point3.offset;
|
|
28944
28918
|
error.loc = {
|
|
28945
|
-
line:
|
|
28946
|
-
column:
|
|
28919
|
+
line: point3.line,
|
|
28920
|
+
column: point3.column - 1
|
|
28947
28921
|
};
|
|
28948
28922
|
exception = error;
|
|
28949
28923
|
swallow = error.raisedAt >= prefix.length + source2.length || error.message === "Unterminated comment";
|
|
@@ -28966,25 +28940,25 @@ function eventsToAcorn(events, options) {
|
|
|
28966
28940
|
comments: []
|
|
28967
28941
|
};
|
|
28968
28942
|
} else {
|
|
28969
|
-
const
|
|
28943
|
+
const point3 = parseOffsetToUnistPoint(estree.end);
|
|
28970
28944
|
exception = new Error("Unexpected content after expression");
|
|
28971
|
-
exception.pos =
|
|
28945
|
+
exception.pos = point3.offset;
|
|
28972
28946
|
exception.loc = {
|
|
28973
|
-
line:
|
|
28974
|
-
column:
|
|
28947
|
+
line: point3.line,
|
|
28948
|
+
column: point3.column - 1
|
|
28975
28949
|
};
|
|
28976
28950
|
estree = void 0;
|
|
28977
28951
|
}
|
|
28978
28952
|
}
|
|
28979
28953
|
if (estree) {
|
|
28980
28954
|
estree.comments = comments;
|
|
28981
|
-
visit2(estree, (esnode, field,
|
|
28955
|
+
visit2(estree, (esnode, field, index3, parents) => {
|
|
28982
28956
|
let context = parents[parents.length - 1];
|
|
28983
28957
|
let prop = field;
|
|
28984
28958
|
if (esnode.type === "ParenthesizedExpression" && context && prop) {
|
|
28985
|
-
if (typeof
|
|
28959
|
+
if (typeof index3 === "number") {
|
|
28986
28960
|
context = context[prop];
|
|
28987
|
-
prop =
|
|
28961
|
+
prop = index3;
|
|
28988
28962
|
}
|
|
28989
28963
|
context[prop] = esnode.expression;
|
|
28990
28964
|
}
|
|
@@ -29054,12 +29028,12 @@ function eventsToAcorn(events, options) {
|
|
|
29054
29028
|
offset: offset3
|
|
29055
29029
|
};
|
|
29056
29030
|
}
|
|
29057
|
-
function setPoint(
|
|
29058
|
-
if (!startLine ||
|
|
29059
|
-
startLine =
|
|
29031
|
+
function setPoint(point3) {
|
|
29032
|
+
if (!startLine || point3.line < startLine) {
|
|
29033
|
+
startLine = point3.line;
|
|
29060
29034
|
}
|
|
29061
|
-
if (!(
|
|
29062
|
-
lines2[
|
|
29035
|
+
if (!(point3.line in lines2) || lines2[point3.line].offset > point3.offset) {
|
|
29036
|
+
lines2[point3.line] = point3;
|
|
29063
29037
|
}
|
|
29064
29038
|
}
|
|
29065
29039
|
}
|
|
@@ -29948,7 +29922,7 @@ function mdxjsEsm(options) {
|
|
|
29948
29922
|
const self2 = this;
|
|
29949
29923
|
const definedModuleSpecifiers = self2.parser.definedModuleSpecifiers || (self2.parser.definedModuleSpecifiers = []);
|
|
29950
29924
|
const eventStart = this.events.length + 1;
|
|
29951
|
-
let
|
|
29925
|
+
let index2 = 0;
|
|
29952
29926
|
let buffer2;
|
|
29953
29927
|
return self2.interrupt ? nok : start3;
|
|
29954
29928
|
function start3(code2) {
|
|
@@ -29960,9 +29934,9 @@ function mdxjsEsm(options) {
|
|
|
29960
29934
|
return keyword(code2);
|
|
29961
29935
|
}
|
|
29962
29936
|
function keyword(code2) {
|
|
29963
|
-
if (code2 === buffer2.charCodeAt(
|
|
29937
|
+
if (code2 === buffer2.charCodeAt(index2++)) {
|
|
29964
29938
|
effects.consume(code2);
|
|
29965
|
-
return
|
|
29939
|
+
return index2 === buffer2.length ? after : keyword;
|
|
29966
29940
|
}
|
|
29967
29941
|
return nok(code2);
|
|
29968
29942
|
}
|
|
@@ -30005,7 +29979,7 @@ function mdxjsEsm(options) {
|
|
|
30005
29979
|
return atEnd(code2);
|
|
30006
29980
|
}
|
|
30007
29981
|
function atEnd(code2) {
|
|
30008
|
-
let
|
|
29982
|
+
let index3 = -1;
|
|
30009
29983
|
const result = eventsToAcorn(self2.events.slice(eventStart), {
|
|
30010
29984
|
acorn,
|
|
30011
29985
|
acornOptions,
|
|
@@ -30028,8 +30002,8 @@ function mdxjsEsm(options) {
|
|
|
30028
30002
|
if (definedModuleSpecifiers.length > 0) {
|
|
30029
30003
|
result.estree.body.shift();
|
|
30030
30004
|
}
|
|
30031
|
-
while (++
|
|
30032
|
-
const node = result.estree.body[
|
|
30005
|
+
while (++index3 < result.estree.body.length) {
|
|
30006
|
+
const node = result.estree.body[index3];
|
|
30033
30007
|
if (!allowedAcornTypes.has(node.type)) {
|
|
30034
30008
|
throw new VFileMessage(
|
|
30035
30009
|
"Unexpected `" + node.type + "` in code: only import/exports are supported",
|
|
@@ -30038,9 +30012,9 @@ function mdxjsEsm(options) {
|
|
|
30038
30012
|
);
|
|
30039
30013
|
}
|
|
30040
30014
|
if (node.type === "ImportDeclaration" && !self2.interrupt) {
|
|
30041
|
-
let
|
|
30042
|
-
while (++
|
|
30043
|
-
definedModuleSpecifiers.push(node.specifiers[
|
|
30015
|
+
let index4 = -1;
|
|
30016
|
+
while (++index4 < node.specifiers.length) {
|
|
30017
|
+
definedModuleSpecifiers.push(node.specifiers[index4].local.name);
|
|
30044
30018
|
}
|
|
30045
30019
|
}
|
|
30046
30020
|
}
|
|
@@ -30139,10 +30113,10 @@ function ccount(value, character) {
|
|
|
30139
30113
|
throw new TypeError("Expected character");
|
|
30140
30114
|
}
|
|
30141
30115
|
let count = 0;
|
|
30142
|
-
let
|
|
30143
|
-
while (
|
|
30116
|
+
let index2 = source2.indexOf(character);
|
|
30117
|
+
while (index2 !== -1) {
|
|
30144
30118
|
count++;
|
|
30145
|
-
|
|
30119
|
+
index2 = source2.indexOf(character, index2 + character.length);
|
|
30146
30120
|
}
|
|
30147
30121
|
return count;
|
|
30148
30122
|
}
|
|
@@ -30327,37 +30301,37 @@ var messages = [
|
|
|
30327
30301
|
function parseEntities(value, options = {}) {
|
|
30328
30302
|
const additional = typeof options.additional === "string" ? options.additional.charCodeAt(0) : options.additional;
|
|
30329
30303
|
const result = [];
|
|
30330
|
-
let
|
|
30304
|
+
let index2 = 0;
|
|
30331
30305
|
let lines2 = -1;
|
|
30332
30306
|
let queue = "";
|
|
30333
|
-
let
|
|
30307
|
+
let point3;
|
|
30334
30308
|
let indent;
|
|
30335
30309
|
if (options.position) {
|
|
30336
30310
|
if ("start" in options.position || "indent" in options.position) {
|
|
30337
30311
|
indent = options.position.indent;
|
|
30338
|
-
|
|
30312
|
+
point3 = options.position.start;
|
|
30339
30313
|
} else {
|
|
30340
|
-
|
|
30314
|
+
point3 = options.position;
|
|
30341
30315
|
}
|
|
30342
30316
|
}
|
|
30343
|
-
let line2 = (
|
|
30344
|
-
let column = (
|
|
30317
|
+
let line2 = (point3 ? point3.line : 0) || 1;
|
|
30318
|
+
let column = (point3 ? point3.column : 0) || 1;
|
|
30345
30319
|
let previous2 = now();
|
|
30346
30320
|
let character;
|
|
30347
|
-
|
|
30348
|
-
while (++
|
|
30321
|
+
index2--;
|
|
30322
|
+
while (++index2 <= value.length) {
|
|
30349
30323
|
if (character === 10) {
|
|
30350
30324
|
column = (indent ? indent[lines2] : 0) || 1;
|
|
30351
30325
|
}
|
|
30352
|
-
character = value.charCodeAt(
|
|
30326
|
+
character = value.charCodeAt(index2);
|
|
30353
30327
|
if (character === 38) {
|
|
30354
|
-
const following = value.charCodeAt(
|
|
30328
|
+
const following = value.charCodeAt(index2 + 1);
|
|
30355
30329
|
if (following === 9 || following === 10 || following === 12 || following === 32 || following === 38 || following === 60 || Number.isNaN(following) || additional && following === additional) {
|
|
30356
30330
|
queue += fromCharCode(character);
|
|
30357
30331
|
column++;
|
|
30358
30332
|
continue;
|
|
30359
30333
|
}
|
|
30360
|
-
const start3 =
|
|
30334
|
+
const start3 = index2 + 1;
|
|
30361
30335
|
let begin = start3;
|
|
30362
30336
|
let end = start3;
|
|
30363
30337
|
let type;
|
|
@@ -30462,7 +30436,7 @@ function parseEntities(value, options = {}) {
|
|
|
30462
30436
|
if (reference) {
|
|
30463
30437
|
flush();
|
|
30464
30438
|
previous2 = now();
|
|
30465
|
-
|
|
30439
|
+
index2 = end - 1;
|
|
30466
30440
|
column += end - start3 + 1;
|
|
30467
30441
|
result.push(reference);
|
|
30468
30442
|
const next = now();
|
|
@@ -30480,7 +30454,7 @@ function parseEntities(value, options = {}) {
|
|
|
30480
30454
|
characters = value.slice(start3 - 1, end);
|
|
30481
30455
|
queue += characters;
|
|
30482
30456
|
column += characters.length;
|
|
30483
|
-
|
|
30457
|
+
index2 = end - 1;
|
|
30484
30458
|
}
|
|
30485
30459
|
} else {
|
|
30486
30460
|
if (character === 10) {
|
|
@@ -30501,19 +30475,19 @@ function parseEntities(value, options = {}) {
|
|
|
30501
30475
|
return {
|
|
30502
30476
|
line: line2,
|
|
30503
30477
|
column,
|
|
30504
|
-
offset:
|
|
30478
|
+
offset: index2 + ((point3 ? point3.offset : 0) || 0)
|
|
30505
30479
|
};
|
|
30506
30480
|
}
|
|
30507
30481
|
function warning(code2, offset3) {
|
|
30508
|
-
let
|
|
30482
|
+
let position2;
|
|
30509
30483
|
if (options.warning) {
|
|
30510
|
-
|
|
30511
|
-
|
|
30512
|
-
|
|
30484
|
+
position2 = now();
|
|
30485
|
+
position2.column += offset3;
|
|
30486
|
+
position2.offset += offset3;
|
|
30513
30487
|
options.warning.call(
|
|
30514
30488
|
options.warningContext,
|
|
30515
30489
|
messages[code2],
|
|
30516
|
-
|
|
30490
|
+
position2,
|
|
30517
30491
|
code2
|
|
30518
30492
|
);
|
|
30519
30493
|
}
|
|
@@ -30551,26 +30525,26 @@ function core(value, options) {
|
|
|
30551
30525
|
/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,
|
|
30552
30526
|
basic
|
|
30553
30527
|
);
|
|
30554
|
-
function surrogate(pair,
|
|
30528
|
+
function surrogate(pair, index2, all2) {
|
|
30555
30529
|
return options.format(
|
|
30556
30530
|
(pair.charCodeAt(0) - 55296) * 1024 + pair.charCodeAt(1) - 56320 + 65536,
|
|
30557
|
-
all2.charCodeAt(
|
|
30531
|
+
all2.charCodeAt(index2 + 2),
|
|
30558
30532
|
options
|
|
30559
30533
|
);
|
|
30560
30534
|
}
|
|
30561
|
-
function basic(character,
|
|
30535
|
+
function basic(character, index2, all2) {
|
|
30562
30536
|
return options.format(
|
|
30563
30537
|
character.charCodeAt(0),
|
|
30564
|
-
all2.charCodeAt(
|
|
30538
|
+
all2.charCodeAt(index2 + 1),
|
|
30565
30539
|
options
|
|
30566
30540
|
);
|
|
30567
30541
|
}
|
|
30568
30542
|
}
|
|
30569
30543
|
function charactersToExpression(subset) {
|
|
30570
30544
|
const groups = [];
|
|
30571
|
-
let
|
|
30572
|
-
while (++
|
|
30573
|
-
groups.push(subset[
|
|
30545
|
+
let index2 = -1;
|
|
30546
|
+
while (++index2 < subset.length) {
|
|
30547
|
+
groups.push(subset[index2].replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"));
|
|
30574
30548
|
}
|
|
30575
30549
|
return new RegExp("(?:" + groups.join("|") + ")", "g");
|
|
30576
30550
|
}
|
|
@@ -30789,10 +30763,10 @@ function mdxJsxFromMarkdown() {
|
|
|
30789
30763
|
function onErrorRightIsTag(closing, open) {
|
|
30790
30764
|
const tag = this.getData("mdxJsxTag");
|
|
30791
30765
|
const place = closing ? " before the end of `" + closing.type + "`" : "";
|
|
30792
|
-
const
|
|
30766
|
+
const position2 = closing ? { start: closing.start, end: closing.end } : void 0;
|
|
30793
30767
|
throw new VFileMessage(
|
|
30794
30768
|
"Expected a closing tag for `" + serializeAbbreviatedTag(tag) + "` (" + stringifyPosition({ start: open.start, end: open.end }) + ")" + place,
|
|
30795
|
-
|
|
30769
|
+
position2,
|
|
30796
30770
|
"mdast-util-mdx-jsx:end-tag-mismatch"
|
|
30797
30771
|
);
|
|
30798
30772
|
}
|
|
@@ -30837,15 +30811,15 @@ function mdxJsxToMarkdown(options) {
|
|
|
30837
30811
|
const tracker = track(safeOptions);
|
|
30838
30812
|
const selfClosing = node.name && (!node.children || node.children.length === 0);
|
|
30839
30813
|
const exit2 = context.enter(node.type);
|
|
30840
|
-
let
|
|
30814
|
+
let index2 = -1;
|
|
30841
30815
|
const serializedAttributes = [];
|
|
30842
30816
|
let value = tracker.move("<" + (node.name || ""));
|
|
30843
30817
|
if (node.attributes && node.attributes.length > 0) {
|
|
30844
30818
|
if (!node.name) {
|
|
30845
30819
|
throw new Error("Cannot serialize fragment w/ attributes");
|
|
30846
30820
|
}
|
|
30847
|
-
while (++
|
|
30848
|
-
const attribute = node.attributes[
|
|
30821
|
+
while (++index2 < node.attributes.length) {
|
|
30822
|
+
const attribute = node.attributes[index2];
|
|
30849
30823
|
let result;
|
|
30850
30824
|
if (attribute.type === "mdxJsxExpressionAttribute") {
|
|
30851
30825
|
result = "{" + (attribute.value || "") + "}";
|
|
@@ -31191,10 +31165,10 @@ function mdxJsxFromMarkdown2({ patterns }) {
|
|
|
31191
31165
|
if (!tag)
|
|
31192
31166
|
return;
|
|
31193
31167
|
const place = closing ? " before the end of `" + closing.type + "`" : "";
|
|
31194
|
-
const
|
|
31168
|
+
const position2 = closing ? { start: closing.start, end: closing.end } : void 0;
|
|
31195
31169
|
throw new VFileMessage(
|
|
31196
31170
|
"Expected a closing tag for `" + serializeAbbreviatedTag(tag) + "` (" + stringifyPosition({ start: open.start, end: open.end }) + ")" + place,
|
|
31197
|
-
|
|
31171
|
+
position2,
|
|
31198
31172
|
"mdast-util-mdx-jsx:end-tag-mismatch"
|
|
31199
31173
|
);
|
|
31200
31174
|
};
|
|
@@ -31276,15 +31250,15 @@ var mdxJsxToMarkdown2 = function(options) {
|
|
|
31276
31250
|
const tracker = track(safeOptions);
|
|
31277
31251
|
const selfClosing = pattern.leaf;
|
|
31278
31252
|
const exit2 = context.enter(node.type);
|
|
31279
|
-
let
|
|
31253
|
+
let index2 = -1;
|
|
31280
31254
|
const serializedAttributes = [];
|
|
31281
31255
|
let value = tracker.move(pattern.start + " " + (patternName || ""));
|
|
31282
31256
|
if (node.attributes && node.attributes.length > 0) {
|
|
31283
31257
|
if (!node.name) {
|
|
31284
31258
|
throw new Error("Cannot serialize fragment w/ attributes");
|
|
31285
31259
|
}
|
|
31286
|
-
while (++
|
|
31287
|
-
const attribute = node.attributes[
|
|
31260
|
+
while (++index2 < node.attributes.length) {
|
|
31261
|
+
const attribute = node.attributes[index2];
|
|
31288
31262
|
let result;
|
|
31289
31263
|
if (attribute?.type === "mdxJsxExpressionAttribute") {
|
|
31290
31264
|
result = "{" + (attribute.value || "") + "}";
|
|
@@ -31813,11 +31787,11 @@ var eat2 = (c, field, imageCallback) => {
|
|
|
31813
31787
|
}
|
|
31814
31788
|
}
|
|
31815
31789
|
let nonMatchingSiblingIndex = 0;
|
|
31816
|
-
if (content4.slice(1).every((content5,
|
|
31790
|
+
if (content4.slice(1).every((content5, index2) => {
|
|
31817
31791
|
if (matches(marks, getMarks(content5))) {
|
|
31818
31792
|
return true;
|
|
31819
31793
|
} else {
|
|
31820
|
-
nonMatchingSiblingIndex =
|
|
31794
|
+
nonMatchingSiblingIndex = index2;
|
|
31821
31795
|
return false;
|
|
31822
31796
|
}
|
|
31823
31797
|
})) {
|
|
@@ -31827,9 +31801,9 @@ var eat2 = (c, field, imageCallback) => {
|
|
|
31827
31801
|
const markCounts = {};
|
|
31828
31802
|
marks.forEach((mark) => {
|
|
31829
31803
|
let count2 = 1;
|
|
31830
|
-
matchingSiblings.every((sibling,
|
|
31804
|
+
matchingSiblings.every((sibling, index2) => {
|
|
31831
31805
|
if (getMarks(sibling).includes(mark)) {
|
|
31832
|
-
count2 =
|
|
31806
|
+
count2 = index2 + 1;
|
|
31833
31807
|
return true;
|
|
31834
31808
|
}
|
|
31835
31809
|
});
|
|
@@ -32651,11 +32625,11 @@ var eat3 = (c, field, imageCallback) => {
|
|
|
32651
32625
|
}
|
|
32652
32626
|
}
|
|
32653
32627
|
let nonMatchingSiblingIndex = 0;
|
|
32654
|
-
if (content4.slice(1).every((content5,
|
|
32628
|
+
if (content4.slice(1).every((content5, index2) => {
|
|
32655
32629
|
if (matches2(marks, getMarks(content5))) {
|
|
32656
32630
|
return true;
|
|
32657
32631
|
} else {
|
|
32658
|
-
nonMatchingSiblingIndex =
|
|
32632
|
+
nonMatchingSiblingIndex = index2;
|
|
32659
32633
|
return false;
|
|
32660
32634
|
}
|
|
32661
32635
|
})) {
|
|
@@ -32665,9 +32639,9 @@ var eat3 = (c, field, imageCallback) => {
|
|
|
32665
32639
|
const markCounts = {};
|
|
32666
32640
|
marks.forEach((mark) => {
|
|
32667
32641
|
let count2 = 1;
|
|
32668
|
-
matchingSiblings.every((sibling,
|
|
32642
|
+
matchingSiblings.every((sibling, index2) => {
|
|
32669
32643
|
if (getMarks(sibling).includes(mark)) {
|
|
32670
|
-
count2 =
|
|
32644
|
+
count2 = index2 + 1;
|
|
32671
32645
|
return true;
|
|
32672
32646
|
}
|
|
32673
32647
|
});
|
|
@@ -32982,18 +32956,18 @@ function initializeDocument2(effects) {
|
|
|
32982
32956
|
}
|
|
32983
32957
|
const indexBeforeExits = self2.events.length;
|
|
32984
32958
|
let indexBeforeFlow = indexBeforeExits;
|
|
32985
|
-
let
|
|
32959
|
+
let point3;
|
|
32986
32960
|
while (indexBeforeFlow--) {
|
|
32987
32961
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
32988
|
-
|
|
32962
|
+
point3 = self2.events[indexBeforeFlow][1].end;
|
|
32989
32963
|
break;
|
|
32990
32964
|
}
|
|
32991
32965
|
}
|
|
32992
32966
|
exitContainers(continued);
|
|
32993
|
-
let
|
|
32994
|
-
while (
|
|
32995
|
-
self2.events[
|
|
32996
|
-
|
|
32967
|
+
let index2 = indexBeforeExits;
|
|
32968
|
+
while (index2 < self2.events.length) {
|
|
32969
|
+
self2.events[index2][1].end = Object.assign({}, point3);
|
|
32970
|
+
index2++;
|
|
32997
32971
|
}
|
|
32998
32972
|
splice(
|
|
32999
32973
|
self2.events,
|
|
@@ -33001,7 +32975,7 @@ function initializeDocument2(effects) {
|
|
|
33001
32975
|
0,
|
|
33002
32976
|
self2.events.slice(indexBeforeExits)
|
|
33003
32977
|
);
|
|
33004
|
-
self2.events.length =
|
|
32978
|
+
self2.events.length = index2;
|
|
33005
32979
|
return checkNewContainers(code2);
|
|
33006
32980
|
}
|
|
33007
32981
|
return start3(code2);
|
|
@@ -33093,30 +33067,30 @@ function initializeDocument2(effects) {
|
|
|
33093
33067
|
childFlow.defineSkip(token.start);
|
|
33094
33068
|
childFlow.write(stream);
|
|
33095
33069
|
if (self2.parser.lazy[token.start.line]) {
|
|
33096
|
-
let
|
|
33097
|
-
while (
|
|
33098
|
-
if (childFlow.events[
|
|
33070
|
+
let index2 = childFlow.events.length;
|
|
33071
|
+
while (index2--) {
|
|
33072
|
+
if (childFlow.events[index2][1].start.offset < lineStartOffset && (!childFlow.events[index2][1].end || childFlow.events[index2][1].end.offset > lineStartOffset)) {
|
|
33099
33073
|
return;
|
|
33100
33074
|
}
|
|
33101
33075
|
}
|
|
33102
33076
|
const indexBeforeExits = self2.events.length;
|
|
33103
33077
|
let indexBeforeFlow = indexBeforeExits;
|
|
33104
33078
|
let seen;
|
|
33105
|
-
let
|
|
33079
|
+
let point3;
|
|
33106
33080
|
while (indexBeforeFlow--) {
|
|
33107
33081
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
33108
33082
|
if (seen) {
|
|
33109
|
-
|
|
33083
|
+
point3 = self2.events[indexBeforeFlow][1].end;
|
|
33110
33084
|
break;
|
|
33111
33085
|
}
|
|
33112
33086
|
seen = true;
|
|
33113
33087
|
}
|
|
33114
33088
|
}
|
|
33115
33089
|
exitContainers(continued);
|
|
33116
|
-
|
|
33117
|
-
while (
|
|
33118
|
-
self2.events[
|
|
33119
|
-
|
|
33090
|
+
index2 = indexBeforeExits;
|
|
33091
|
+
while (index2 < self2.events.length) {
|
|
33092
|
+
self2.events[index2][1].end = Object.assign({}, point3);
|
|
33093
|
+
index2++;
|
|
33120
33094
|
}
|
|
33121
33095
|
splice(
|
|
33122
33096
|
self2.events,
|
|
@@ -33124,13 +33098,13 @@ function initializeDocument2(effects) {
|
|
|
33124
33098
|
0,
|
|
33125
33099
|
self2.events.slice(indexBeforeExits)
|
|
33126
33100
|
);
|
|
33127
|
-
self2.events.length =
|
|
33101
|
+
self2.events.length = index2;
|
|
33128
33102
|
}
|
|
33129
33103
|
}
|
|
33130
33104
|
function exitContainers(size) {
|
|
33131
|
-
let
|
|
33132
|
-
while (
|
|
33133
|
-
const entry = stack[
|
|
33105
|
+
let index2 = stack.length;
|
|
33106
|
+
while (index2-- > size) {
|
|
33107
|
+
const entry = stack[index2];
|
|
33134
33108
|
self2.containerState = entry[1];
|
|
33135
33109
|
entry[0].exit.call(self2, effects);
|
|
33136
33110
|
}
|
|
@@ -33243,10 +33217,10 @@ function initializeFactory2(field) {
|
|
|
33243
33217
|
return true;
|
|
33244
33218
|
}
|
|
33245
33219
|
const list3 = constructs2[code2];
|
|
33246
|
-
let
|
|
33220
|
+
let index2 = -1;
|
|
33247
33221
|
if (list3) {
|
|
33248
|
-
while (++
|
|
33249
|
-
const item = list3[
|
|
33222
|
+
while (++index2 < list3.length) {
|
|
33223
|
+
const item = list3[index2];
|
|
33250
33224
|
if (!item.previous || item.previous.call(self2, self2.previous)) {
|
|
33251
33225
|
return true;
|
|
33252
33226
|
}
|
|
@@ -33259,19 +33233,19 @@ function initializeFactory2(field) {
|
|
|
33259
33233
|
function createResolver2(extraResolver) {
|
|
33260
33234
|
return resolveAllText;
|
|
33261
33235
|
function resolveAllText(events, context) {
|
|
33262
|
-
let
|
|
33236
|
+
let index2 = -1;
|
|
33263
33237
|
let enter;
|
|
33264
|
-
while (++
|
|
33238
|
+
while (++index2 <= events.length) {
|
|
33265
33239
|
if (enter === void 0) {
|
|
33266
|
-
if (events[
|
|
33267
|
-
enter =
|
|
33268
|
-
|
|
33240
|
+
if (events[index2] && events[index2][1].type === "data") {
|
|
33241
|
+
enter = index2;
|
|
33242
|
+
index2++;
|
|
33269
33243
|
}
|
|
33270
|
-
} else if (!events[
|
|
33271
|
-
if (
|
|
33272
|
-
events[enter][1].end = events[
|
|
33273
|
-
events.splice(enter + 2,
|
|
33274
|
-
|
|
33244
|
+
} else if (!events[index2] || events[index2][1].type !== "data") {
|
|
33245
|
+
if (index2 !== enter + 2) {
|
|
33246
|
+
events[enter][1].end = events[index2 - 1][1].end;
|
|
33247
|
+
events.splice(enter + 2, index2 - enter - 2);
|
|
33248
|
+
index2 = enter + 2;
|
|
33275
33249
|
}
|
|
33276
33250
|
enter = void 0;
|
|
33277
33251
|
}
|
|
@@ -33285,12 +33259,12 @@ function resolveAllLineSuffixes2(events, context) {
|
|
|
33285
33259
|
if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
|
|
33286
33260
|
const data3 = events[eventIndex - 1][1];
|
|
33287
33261
|
const chunks = context.sliceStream(data3);
|
|
33288
|
-
let
|
|
33262
|
+
let index2 = chunks.length;
|
|
33289
33263
|
let bufferIndex = -1;
|
|
33290
33264
|
let size = 0;
|
|
33291
33265
|
let tabs;
|
|
33292
|
-
while (
|
|
33293
|
-
const chunk = chunks[
|
|
33266
|
+
while (index2--) {
|
|
33267
|
+
const chunk = chunks[index2];
|
|
33294
33268
|
if (typeof chunk === "string") {
|
|
33295
33269
|
bufferIndex = chunk.length;
|
|
33296
33270
|
while (chunk.charCodeAt(bufferIndex - 1) === 32) {
|
|
@@ -33305,7 +33279,7 @@ function resolveAllLineSuffixes2(events, context) {
|
|
|
33305
33279
|
size++;
|
|
33306
33280
|
} else if (chunk === -1) {
|
|
33307
33281
|
} else {
|
|
33308
|
-
|
|
33282
|
+
index2++;
|
|
33309
33283
|
break;
|
|
33310
33284
|
}
|
|
33311
33285
|
}
|
|
@@ -33316,8 +33290,8 @@ function resolveAllLineSuffixes2(events, context) {
|
|
|
33316
33290
|
line: data3.end.line,
|
|
33317
33291
|
column: data3.end.column - size,
|
|
33318
33292
|
offset: data3.end.offset - size,
|
|
33319
|
-
_index: data3.start._index +
|
|
33320
|
-
_bufferIndex:
|
|
33293
|
+
_index: data3.start._index + index2,
|
|
33294
|
+
_bufferIndex: index2 ? bufferIndex : data3.start._bufferIndex + bufferIndex
|
|
33321
33295
|
},
|
|
33322
33296
|
end: Object.assign({}, data3.end)
|
|
33323
33297
|
};
|
|
@@ -33342,7 +33316,7 @@ function resolveAllLineSuffixes2(events, context) {
|
|
|
33342
33316
|
|
|
33343
33317
|
// ../../../node_modules/.pnpm/micromark@3.1.0/node_modules/micromark/lib/create-tokenizer.js
|
|
33344
33318
|
function createTokenizer2(parser, initialize, from) {
|
|
33345
|
-
let
|
|
33319
|
+
let point3 = Object.assign(
|
|
33346
33320
|
from ? Object.assign({}, from) : {
|
|
33347
33321
|
line: 1,
|
|
33348
33322
|
column: 1,
|
|
@@ -33403,7 +33377,7 @@ function createTokenizer2(parser, initialize, from) {
|
|
|
33403
33377
|
return sliceChunks2(chunks, token);
|
|
33404
33378
|
}
|
|
33405
33379
|
function now() {
|
|
33406
|
-
return Object.assign({},
|
|
33380
|
+
return Object.assign({}, point3);
|
|
33407
33381
|
}
|
|
33408
33382
|
function defineSkip(value) {
|
|
33409
33383
|
columnStart[value.line] = value.column;
|
|
@@ -33411,15 +33385,15 @@ function createTokenizer2(parser, initialize, from) {
|
|
|
33411
33385
|
}
|
|
33412
33386
|
function main() {
|
|
33413
33387
|
let chunkIndex;
|
|
33414
|
-
while (
|
|
33415
|
-
const chunk = chunks[
|
|
33388
|
+
while (point3._index < chunks.length) {
|
|
33389
|
+
const chunk = chunks[point3._index];
|
|
33416
33390
|
if (typeof chunk === "string") {
|
|
33417
|
-
chunkIndex =
|
|
33418
|
-
if (
|
|
33419
|
-
|
|
33391
|
+
chunkIndex = point3._index;
|
|
33392
|
+
if (point3._bufferIndex < 0) {
|
|
33393
|
+
point3._bufferIndex = 0;
|
|
33420
33394
|
}
|
|
33421
|
-
while (
|
|
33422
|
-
go(chunk.charCodeAt(
|
|
33395
|
+
while (point3._index === chunkIndex && point3._bufferIndex < chunk.length) {
|
|
33396
|
+
go(chunk.charCodeAt(point3._bufferIndex));
|
|
33423
33397
|
}
|
|
33424
33398
|
} else {
|
|
33425
33399
|
go(chunk);
|
|
@@ -33433,21 +33407,21 @@ function createTokenizer2(parser, initialize, from) {
|
|
|
33433
33407
|
}
|
|
33434
33408
|
function consume(code2) {
|
|
33435
33409
|
if (markdownLineEnding(code2)) {
|
|
33436
|
-
|
|
33437
|
-
|
|
33438
|
-
|
|
33410
|
+
point3.line++;
|
|
33411
|
+
point3.column = 1;
|
|
33412
|
+
point3.offset += code2 === -3 ? 2 : 1;
|
|
33439
33413
|
accountForPotentialSkip();
|
|
33440
33414
|
} else if (code2 !== -1) {
|
|
33441
|
-
|
|
33442
|
-
|
|
33415
|
+
point3.column++;
|
|
33416
|
+
point3.offset++;
|
|
33443
33417
|
}
|
|
33444
|
-
if (
|
|
33445
|
-
|
|
33418
|
+
if (point3._bufferIndex < 0) {
|
|
33419
|
+
point3._index++;
|
|
33446
33420
|
} else {
|
|
33447
|
-
|
|
33448
|
-
if (
|
|
33449
|
-
|
|
33450
|
-
|
|
33421
|
+
point3._bufferIndex++;
|
|
33422
|
+
if (point3._bufferIndex === chunks[point3._index].length) {
|
|
33423
|
+
point3._bufferIndex = -1;
|
|
33424
|
+
point3._index++;
|
|
33451
33425
|
}
|
|
33452
33426
|
}
|
|
33453
33427
|
context.previous = code2;
|
|
@@ -33562,7 +33536,7 @@ function createTokenizer2(parser, initialize, from) {
|
|
|
33562
33536
|
from: startEventsIndex
|
|
33563
33537
|
};
|
|
33564
33538
|
function restore() {
|
|
33565
|
-
|
|
33539
|
+
point3 = startPoint;
|
|
33566
33540
|
context.previous = startPrevious;
|
|
33567
33541
|
context.currentConstruct = startCurrentConstruct;
|
|
33568
33542
|
context.events.length = startEventsIndex;
|
|
@@ -33571,9 +33545,9 @@ function createTokenizer2(parser, initialize, from) {
|
|
|
33571
33545
|
}
|
|
33572
33546
|
}
|
|
33573
33547
|
function accountForPotentialSkip() {
|
|
33574
|
-
if (
|
|
33575
|
-
|
|
33576
|
-
|
|
33548
|
+
if (point3.line in columnStart && point3.column < 2) {
|
|
33549
|
+
point3.column = columnStart[point3.line];
|
|
33550
|
+
point3.offset += columnStart[point3.line] - 1;
|
|
33577
33551
|
}
|
|
33578
33552
|
}
|
|
33579
33553
|
}
|
|
@@ -33597,11 +33571,11 @@ function sliceChunks2(chunks, token) {
|
|
|
33597
33571
|
return view;
|
|
33598
33572
|
}
|
|
33599
33573
|
function serializeChunks2(chunks, expandTabs) {
|
|
33600
|
-
let
|
|
33574
|
+
let index2 = -1;
|
|
33601
33575
|
const result = [];
|
|
33602
33576
|
let atTab;
|
|
33603
|
-
while (++
|
|
33604
|
-
const chunk = chunks[
|
|
33577
|
+
while (++index2 < chunks.length) {
|
|
33578
|
+
const chunk = chunks[index2];
|
|
33605
33579
|
let value;
|
|
33606
33580
|
if (typeof chunk === "string") {
|
|
33607
33581
|
value = chunk;
|
|
@@ -33958,29 +33932,29 @@ function compiler2(options) {
|
|
|
33958
33932
|
getData
|
|
33959
33933
|
};
|
|
33960
33934
|
const listStack = [];
|
|
33961
|
-
let
|
|
33962
|
-
while (++
|
|
33963
|
-
if (events[
|
|
33964
|
-
if (events[
|
|
33965
|
-
listStack.push(
|
|
33935
|
+
let index2 = -1;
|
|
33936
|
+
while (++index2 < events.length) {
|
|
33937
|
+
if (events[index2][1].type === "listOrdered" || events[index2][1].type === "listUnordered") {
|
|
33938
|
+
if (events[index2][0] === "enter") {
|
|
33939
|
+
listStack.push(index2);
|
|
33966
33940
|
} else {
|
|
33967
33941
|
const tail = listStack.pop();
|
|
33968
|
-
|
|
33942
|
+
index2 = prepareList(events, tail, index2);
|
|
33969
33943
|
}
|
|
33970
33944
|
}
|
|
33971
33945
|
}
|
|
33972
|
-
|
|
33973
|
-
while (++
|
|
33974
|
-
const handler = config[events[
|
|
33975
|
-
if (own6.call(handler, events[
|
|
33976
|
-
handler[events[
|
|
33946
|
+
index2 = -1;
|
|
33947
|
+
while (++index2 < events.length) {
|
|
33948
|
+
const handler = config[events[index2][0]];
|
|
33949
|
+
if (own6.call(handler, events[index2][1].type)) {
|
|
33950
|
+
handler[events[index2][1].type].call(
|
|
33977
33951
|
Object.assign(
|
|
33978
33952
|
{
|
|
33979
|
-
sliceSerialize: events[
|
|
33953
|
+
sliceSerialize: events[index2][2].sliceSerialize
|
|
33980
33954
|
},
|
|
33981
33955
|
context
|
|
33982
33956
|
),
|
|
33983
|
-
events[
|
|
33957
|
+
events[index2][1]
|
|
33984
33958
|
);
|
|
33985
33959
|
}
|
|
33986
33960
|
}
|
|
@@ -33990,14 +33964,14 @@ function compiler2(options) {
|
|
|
33990
33964
|
handler.call(context, void 0, tail[0]);
|
|
33991
33965
|
}
|
|
33992
33966
|
tree.position = {
|
|
33993
|
-
start:
|
|
33967
|
+
start: point2(
|
|
33994
33968
|
events.length > 0 ? events[0][1].start : {
|
|
33995
33969
|
line: 1,
|
|
33996
33970
|
column: 1,
|
|
33997
33971
|
offset: 0
|
|
33998
33972
|
}
|
|
33999
33973
|
),
|
|
34000
|
-
end:
|
|
33974
|
+
end: point2(
|
|
34001
33975
|
events.length > 0 ? events[events.length - 2][1].end : {
|
|
34002
33976
|
line: 1,
|
|
34003
33977
|
column: 1,
|
|
@@ -34005,22 +33979,22 @@ function compiler2(options) {
|
|
|
34005
33979
|
}
|
|
34006
33980
|
)
|
|
34007
33981
|
};
|
|
34008
|
-
|
|
34009
|
-
while (++
|
|
34010
|
-
tree = config.transforms[
|
|
33982
|
+
index2 = -1;
|
|
33983
|
+
while (++index2 < config.transforms.length) {
|
|
33984
|
+
tree = config.transforms[index2](tree) || tree;
|
|
34011
33985
|
}
|
|
34012
33986
|
return tree;
|
|
34013
33987
|
}
|
|
34014
33988
|
function prepareList(events, start3, length) {
|
|
34015
|
-
let
|
|
33989
|
+
let index2 = start3 - 1;
|
|
34016
33990
|
let containerBalance = -1;
|
|
34017
33991
|
let listSpread = false;
|
|
34018
33992
|
let listItem3;
|
|
34019
33993
|
let lineIndex;
|
|
34020
33994
|
let firstBlankLineIndex;
|
|
34021
33995
|
let atMarker;
|
|
34022
|
-
while (++
|
|
34023
|
-
const event = events[
|
|
33996
|
+
while (++index2 <= length) {
|
|
33997
|
+
const event = events[index2];
|
|
34024
33998
|
if (event[1].type === "listUnordered" || event[1].type === "listOrdered" || event[1].type === "blockQuote") {
|
|
34025
33999
|
if (event[0] === "enter") {
|
|
34026
34000
|
containerBalance++;
|
|
@@ -34031,7 +34005,7 @@ function compiler2(options) {
|
|
|
34031
34005
|
} else if (event[1].type === "lineEndingBlank") {
|
|
34032
34006
|
if (event[0] === "enter") {
|
|
34033
34007
|
if (listItem3 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
34034
|
-
firstBlankLineIndex =
|
|
34008
|
+
firstBlankLineIndex = index2;
|
|
34035
34009
|
}
|
|
34036
34010
|
atMarker = void 0;
|
|
34037
34011
|
}
|
|
@@ -34041,7 +34015,7 @@ function compiler2(options) {
|
|
|
34041
34015
|
}
|
|
34042
34016
|
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
34043
34017
|
if (listItem3) {
|
|
34044
|
-
let tailIndex =
|
|
34018
|
+
let tailIndex = index2;
|
|
34045
34019
|
lineIndex = void 0;
|
|
34046
34020
|
while (tailIndex--) {
|
|
34047
34021
|
const tailEvent = events[tailIndex];
|
|
@@ -34066,8 +34040,8 @@ function compiler2(options) {
|
|
|
34066
34040
|
{},
|
|
34067
34041
|
lineIndex ? events[lineIndex][1].start : event[1].end
|
|
34068
34042
|
);
|
|
34069
|
-
events.splice(lineIndex ||
|
|
34070
|
-
|
|
34043
|
+
events.splice(lineIndex || index2, 0, ["exit", listItem3, event[2]]);
|
|
34044
|
+
index2++;
|
|
34071
34045
|
length++;
|
|
34072
34046
|
}
|
|
34073
34047
|
if (event[1].type === "listItemPrefix") {
|
|
@@ -34076,8 +34050,8 @@ function compiler2(options) {
|
|
|
34076
34050
|
_spread: false,
|
|
34077
34051
|
start: Object.assign({}, event[1].start)
|
|
34078
34052
|
};
|
|
34079
|
-
events.splice(
|
|
34080
|
-
|
|
34053
|
+
events.splice(index2, 0, ["enter", listItem3, event[2]]);
|
|
34054
|
+
index2++;
|
|
34081
34055
|
length++;
|
|
34082
34056
|
firstBlankLineIndex = void 0;
|
|
34083
34057
|
atMarker = true;
|
|
@@ -34113,7 +34087,7 @@ function compiler2(options) {
|
|
|
34113
34087
|
this.stack.push(node);
|
|
34114
34088
|
this.tokenStack.push([token, errorHandler]);
|
|
34115
34089
|
node.position = {
|
|
34116
|
-
start:
|
|
34090
|
+
start: point2(token.start)
|
|
34117
34091
|
};
|
|
34118
34092
|
return node;
|
|
34119
34093
|
}
|
|
@@ -34143,7 +34117,7 @@ function compiler2(options) {
|
|
|
34143
34117
|
handler.call(this, token, open[0]);
|
|
34144
34118
|
}
|
|
34145
34119
|
}
|
|
34146
|
-
node.position.end =
|
|
34120
|
+
node.position.end = point2(token.end);
|
|
34147
34121
|
return node;
|
|
34148
34122
|
}
|
|
34149
34123
|
function resume() {
|
|
@@ -34227,7 +34201,7 @@ function compiler2(options) {
|
|
|
34227
34201
|
if (!tail || tail.type !== "text") {
|
|
34228
34202
|
tail = text8();
|
|
34229
34203
|
tail.position = {
|
|
34230
|
-
start:
|
|
34204
|
+
start: point2(token.start)
|
|
34231
34205
|
};
|
|
34232
34206
|
node.children.push(tail);
|
|
34233
34207
|
}
|
|
@@ -34236,13 +34210,13 @@ function compiler2(options) {
|
|
|
34236
34210
|
function onexitdata(token) {
|
|
34237
34211
|
const tail = this.stack.pop();
|
|
34238
34212
|
tail.value += this.sliceSerialize(token);
|
|
34239
|
-
tail.position.end =
|
|
34213
|
+
tail.position.end = point2(token.end);
|
|
34240
34214
|
}
|
|
34241
34215
|
function onexitlineending(token) {
|
|
34242
34216
|
const context = this.stack[this.stack.length - 1];
|
|
34243
34217
|
if (getData("atHardBreak")) {
|
|
34244
34218
|
const tail = context.children[context.children.length - 1];
|
|
34245
|
-
tail.position.end =
|
|
34219
|
+
tail.position.end = point2(token.end);
|
|
34246
34220
|
setData("atHardBreak");
|
|
34247
34221
|
return;
|
|
34248
34222
|
}
|
|
@@ -34359,7 +34333,7 @@ function compiler2(options) {
|
|
|
34359
34333
|
}
|
|
34360
34334
|
const tail = this.stack.pop();
|
|
34361
34335
|
tail.value += value;
|
|
34362
|
-
tail.position.end =
|
|
34336
|
+
tail.position.end = point2(token.end);
|
|
34363
34337
|
}
|
|
34364
34338
|
function onexitautolinkprotocol(token) {
|
|
34365
34339
|
onexitdata.call(this, token);
|
|
@@ -34481,7 +34455,7 @@ function compiler2(options) {
|
|
|
34481
34455
|
};
|
|
34482
34456
|
}
|
|
34483
34457
|
}
|
|
34484
|
-
function
|
|
34458
|
+
function point2(d) {
|
|
34485
34459
|
return {
|
|
34486
34460
|
line: d.line,
|
|
34487
34461
|
column: d.column,
|
|
@@ -34489,9 +34463,9 @@ function point3(d) {
|
|
|
34489
34463
|
};
|
|
34490
34464
|
}
|
|
34491
34465
|
function configure3(combined, extensions) {
|
|
34492
|
-
let
|
|
34493
|
-
while (++
|
|
34494
|
-
const value = extensions[
|
|
34466
|
+
let index2 = -1;
|
|
34467
|
+
while (++index2 < extensions.length) {
|
|
34468
|
+
const value = extensions[index2];
|
|
34495
34469
|
if (Array.isArray(value)) {
|
|
34496
34470
|
configure3(combined, value);
|
|
34497
34471
|
} else {
|
|
@@ -38412,11 +38386,11 @@ types$12.backQuote.updateContext = function() {
|
|
|
38412
38386
|
};
|
|
38413
38387
|
types$12.star.updateContext = function(prevType) {
|
|
38414
38388
|
if (prevType === types$12._function) {
|
|
38415
|
-
var
|
|
38416
|
-
if (this.context[
|
|
38417
|
-
this.context[
|
|
38389
|
+
var index2 = this.context.length - 1;
|
|
38390
|
+
if (this.context[index2] === types3.f_expr) {
|
|
38391
|
+
this.context[index2] = types3.f_expr_gen;
|
|
38418
38392
|
} else {
|
|
38419
|
-
this.context[
|
|
38393
|
+
this.context[index2] = types3.f_gen;
|
|
38420
38394
|
}
|
|
38421
38395
|
}
|
|
38422
38396
|
this.exprAllowed = true;
|
|
@@ -41033,11 +41007,11 @@ pp2.tryReadTemplateToken = function() {
|
|
|
41033
41007
|
}
|
|
41034
41008
|
this.inTemplateElement = false;
|
|
41035
41009
|
};
|
|
41036
|
-
pp2.invalidStringToken = function(
|
|
41010
|
+
pp2.invalidStringToken = function(position2, message) {
|
|
41037
41011
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9) {
|
|
41038
41012
|
throw INVALID_TEMPLATE_ESCAPE_ERROR2;
|
|
41039
41013
|
} else {
|
|
41040
|
-
this.raise(
|
|
41014
|
+
this.raise(position2, message);
|
|
41041
41015
|
}
|
|
41042
41016
|
};
|
|
41043
41017
|
pp2.readTmplToken = function() {
|
|
@@ -41255,7 +41229,7 @@ function tokenizer3(input, options) {
|
|
|
41255
41229
|
var fromMarkdown3 = (value, field) => {
|
|
41256
41230
|
const patterns = getFieldPatterns(field);
|
|
41257
41231
|
const acornDefault = acorn_exports;
|
|
41258
|
-
|
|
41232
|
+
const skipHTML = false;
|
|
41259
41233
|
const tree = fromMarkdown2(value, {
|
|
41260
41234
|
extensions: [
|
|
41261
41235
|
mdxJsx2({ acorn: acornDefault, patterns, addResult: true, skipHTML })
|
|
@@ -41267,9 +41241,9 @@ var fromMarkdown3 = (value, field) => {
|
|
|
41267
41241
|
|
|
41268
41242
|
// ../../../node_modules/.pnpm/mdast-util-compact@4.1.1/node_modules/mdast-util-compact/lib/index.js
|
|
41269
41243
|
function compact(tree) {
|
|
41270
|
-
visit(tree, function(child,
|
|
41271
|
-
if (parent &&
|
|
41272
|
-
const previous2 = parent.children[
|
|
41244
|
+
visit(tree, function(child, index2, parent) {
|
|
41245
|
+
if (parent && index2 && (child.type === "text" || child.type === "blockquote")) {
|
|
41246
|
+
const previous2 = parent.children[index2 - 1];
|
|
41273
41247
|
if (previous2.type === child.type) {
|
|
41274
41248
|
if ("value" in child) {
|
|
41275
41249
|
previous2.value += child.value;
|
|
@@ -41277,11 +41251,11 @@ function compact(tree) {
|
|
|
41277
41251
|
if ("children" in child) {
|
|
41278
41252
|
previous2.children = previous2.children.concat(child.children);
|
|
41279
41253
|
}
|
|
41280
|
-
parent.children.splice(
|
|
41254
|
+
parent.children.splice(index2, 1);
|
|
41281
41255
|
if (previous2.position && child.position) {
|
|
41282
41256
|
previous2.position.end = child.position.end;
|
|
41283
41257
|
}
|
|
41284
|
-
return
|
|
41258
|
+
return index2;
|
|
41285
41259
|
}
|
|
41286
41260
|
}
|
|
41287
41261
|
});
|
|
@@ -41375,9 +41349,9 @@ var isArguments_default = isArguments;
|
|
|
41375
41349
|
|
|
41376
41350
|
// ../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
41377
41351
|
function arrayPush(array, values2) {
|
|
41378
|
-
var
|
|
41379
|
-
while (++
|
|
41380
|
-
array[offset3 +
|
|
41352
|
+
var index2 = -1, length = values2.length, offset3 = array.length;
|
|
41353
|
+
while (++index2 < length) {
|
|
41354
|
+
array[offset3 + index2] = values2[index2];
|
|
41381
41355
|
}
|
|
41382
41356
|
return array;
|
|
41383
41357
|
}
|
|
@@ -41392,11 +41366,11 @@ var isFlattenable_default = isFlattenable;
|
|
|
41392
41366
|
|
|
41393
41367
|
// ../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.js
|
|
41394
41368
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
41395
|
-
var
|
|
41369
|
+
var index2 = -1, length = array.length;
|
|
41396
41370
|
predicate || (predicate = isFlattenable_default);
|
|
41397
41371
|
result || (result = []);
|
|
41398
|
-
while (++
|
|
41399
|
-
var value = array[
|
|
41372
|
+
while (++index2 < length) {
|
|
41373
|
+
var value = array[index2];
|
|
41400
41374
|
if (depth > 0 && predicate(value)) {
|
|
41401
41375
|
if (depth > 1) {
|
|
41402
41376
|
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
@@ -41604,18 +41578,18 @@ var trimFragments = (string5) => {
|
|
|
41604
41578
|
const rawArr = string5.split("\n");
|
|
41605
41579
|
let openingFragmentIndex = null;
|
|
41606
41580
|
let closingFragmentIndex = null;
|
|
41607
|
-
rawArr.forEach((item,
|
|
41581
|
+
rawArr.forEach((item, index2) => {
|
|
41608
41582
|
if (item.trim() === "<>") {
|
|
41609
41583
|
if (!openingFragmentIndex) {
|
|
41610
|
-
openingFragmentIndex =
|
|
41584
|
+
openingFragmentIndex = index2 + 1;
|
|
41611
41585
|
}
|
|
41612
41586
|
}
|
|
41613
41587
|
});
|
|
41614
|
-
rawArr.reverse().forEach((item,
|
|
41588
|
+
rawArr.reverse().forEach((item, index2) => {
|
|
41615
41589
|
if (item.trim() === "</>") {
|
|
41616
41590
|
const length = rawArr.length - 1;
|
|
41617
41591
|
if (!closingFragmentIndex) {
|
|
41618
|
-
closingFragmentIndex = length -
|
|
41592
|
+
closingFragmentIndex = length - index2;
|
|
41619
41593
|
}
|
|
41620
41594
|
}
|
|
41621
41595
|
});
|
|
@@ -41628,12 +41602,12 @@ var search3 = /\r?\n|\r/g;
|
|
|
41628
41602
|
function source(value, file) {
|
|
41629
41603
|
const doc = String(file);
|
|
41630
41604
|
const loc = location(file);
|
|
41631
|
-
const
|
|
41632
|
-
if (!
|
|
41605
|
+
const position2 = value && typeof value === "object" ? "type" in value ? value.position : value : void 0;
|
|
41606
|
+
if (!position2 || !position2.start || !position2.end) {
|
|
41633
41607
|
return null;
|
|
41634
41608
|
}
|
|
41635
|
-
const endOffset = loc.toOffset(
|
|
41636
|
-
let startOffset = loc.toOffset(
|
|
41609
|
+
const endOffset = loc.toOffset(position2.end);
|
|
41610
|
+
let startOffset = loc.toOffset(position2.start);
|
|
41637
41611
|
if (endOffset === -1 || startOffset === -1) {
|
|
41638
41612
|
return null;
|
|
41639
41613
|
}
|
|
@@ -41876,13 +41850,13 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
41876
41850
|
child.position
|
|
41877
41851
|
);
|
|
41878
41852
|
default:
|
|
41879
|
-
let
|
|
41853
|
+
let position2;
|
|
41880
41854
|
if (child.type !== "containerDirective") {
|
|
41881
|
-
|
|
41855
|
+
position2 = child.position;
|
|
41882
41856
|
}
|
|
41883
41857
|
throw new RichTextParseError(
|
|
41884
41858
|
`Unknown list item of type ${child.type}`,
|
|
41885
|
-
|
|
41859
|
+
position2
|
|
41886
41860
|
);
|
|
41887
41861
|
}
|
|
41888
41862
|
})
|
|
@@ -42107,14 +42081,14 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
|
|
|
42107
42081
|
};
|
|
42108
42082
|
};
|
|
42109
42083
|
var RichTextParseError = class extends Error {
|
|
42110
|
-
constructor(message,
|
|
42084
|
+
constructor(message, position2) {
|
|
42111
42085
|
super(message);
|
|
42112
42086
|
__publicField(this, "position");
|
|
42113
42087
|
if (Error.captureStackTrace) {
|
|
42114
42088
|
Error.captureStackTrace(this, RichTextParseError);
|
|
42115
42089
|
}
|
|
42116
42090
|
this.name = "RichTextParseError";
|
|
42117
|
-
this.position =
|
|
42091
|
+
this.position = position2;
|
|
42118
42092
|
}
|
|
42119
42093
|
};
|
|
42120
42094
|
|