@gmb/bitmark-parser-generator 5.28.0 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +658 -410
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +6 -0
- package/dist/browser/esm/index.d.ts +6 -0
- package/dist/browser/esm/index.js +658 -410
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +655 -409
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +658 -410
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +658 -410
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1304,6 +1304,7 @@ var propertyKeys = {
|
|
|
1304
1304
|
property_bubbleTag: "@bubbleTag",
|
|
1305
1305
|
property_extractorTag: "@extractorTag",
|
|
1306
1306
|
property_extractorInternal: "@extractorInternal",
|
|
1307
|
+
property_bitFingerprint: "@bitFingerprint",
|
|
1307
1308
|
property_buttonCaption: "@buttonCaption",
|
|
1308
1309
|
property_callToActionUrl: "@callToActionUrl",
|
|
1309
1310
|
property_caption: "@caption",
|
|
@@ -4596,6 +4597,12 @@ var GROUPS = {
|
|
|
4596
4597
|
format: TagFormat.coordinates,
|
|
4597
4598
|
maxCount: Count.infinity
|
|
4598
4599
|
},
|
|
4600
|
+
{
|
|
4601
|
+
key: ConfigKey.property_bitFingerprint,
|
|
4602
|
+
description: "Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.)",
|
|
4603
|
+
format: TagFormat.plainText,
|
|
4604
|
+
maxCount: Count.infinity
|
|
4605
|
+
},
|
|
4599
4606
|
{
|
|
4600
4607
|
key: ConfigKey.property_levelCEFRp,
|
|
4601
4608
|
description: "The CEFRp level for the bit",
|
|
@@ -10189,7 +10196,18 @@ var BITS = {
|
|
|
10189
10196
|
since: "5.12.0",
|
|
10190
10197
|
baseBitType: BitType2._standard,
|
|
10191
10198
|
description: "Extractor blueprint bit, used to provide blueprint information about extractors",
|
|
10192
|
-
textFormatDefault: TextFormat2.json
|
|
10199
|
+
textFormatDefault: TextFormat2.json,
|
|
10200
|
+
tags: [
|
|
10201
|
+
{
|
|
10202
|
+
key: ConfigKey.group_resourceBitTags,
|
|
10203
|
+
description: "Resource bit tags for the blueprint reference image"
|
|
10204
|
+
},
|
|
10205
|
+
{
|
|
10206
|
+
key: ConfigKey.group_resourceImage,
|
|
10207
|
+
description: "Optional uncropped reference page image, used so authoring tools can compute crops against the original page dimensions"
|
|
10208
|
+
}
|
|
10209
|
+
],
|
|
10210
|
+
resourceAttachmentAllowed: false
|
|
10193
10211
|
},
|
|
10194
10212
|
[BitType2.extractorInformation]: {
|
|
10195
10213
|
since: "3.8.0",
|
|
@@ -13887,7 +13905,7 @@ var instance2 = new Config();
|
|
|
13887
13905
|
// src/generated/package_info.ts
|
|
13888
13906
|
var PACKAGE_INFO = {
|
|
13889
13907
|
"name": "@gmb/bitmark-parser-generator",
|
|
13890
|
-
"version": "5.
|
|
13908
|
+
"version": "5.30.0",
|
|
13891
13909
|
"author": "Get More Brain Ltd",
|
|
13892
13910
|
"license": "ISC",
|
|
13893
13911
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -14300,6 +14318,8 @@ var NodeType = {
|
|
|
14300
14318
|
// bit
|
|
14301
14319
|
bitType: "bitType",
|
|
14302
14320
|
// bit type
|
|
14321
|
+
bitFingerprint: "bitFingerprint",
|
|
14322
|
+
bitFingerprintValue: "bitFingerprintValue",
|
|
14303
14323
|
blockId: "blockId",
|
|
14304
14324
|
blockIdValue: "blockIdValue",
|
|
14305
14325
|
body: "body",
|
|
@@ -16918,26 +16938,26 @@ function peg$parse(input, options) {
|
|
|
16918
16938
|
bitmarkMinusMinusString: peg$parsebitmarkMinusMinusString
|
|
16919
16939
|
};
|
|
16920
16940
|
let peg$startRuleFunction = peg$parseversion;
|
|
16921
|
-
const peg$c0 = "
|
|
16922
|
-
const peg$c1 = "
|
|
16923
|
-
const peg$c2 = "
|
|
16924
|
-
const peg$c3 = "
|
|
16925
|
-
const peg$c4 = "
|
|
16926
|
-
const peg$c5 = "
|
|
16927
|
-
const peg$c6 = "
|
|
16928
|
-
const peg$c7 = "bitmark
|
|
16929
|
-
const peg$c8 = "
|
|
16930
|
-
const peg$c9 = "
|
|
16931
|
-
const peg$c10 = "\
|
|
16932
|
-
const peg$c11 = "\
|
|
16933
|
-
const peg$c12 = "
|
|
16934
|
-
const peg$c13 = "
|
|
16935
|
-
const peg$c14 = "
|
|
16936
|
-
const peg$c15 = "
|
|
16937
|
-
const peg$c16 = "\
|
|
16938
|
-
const peg$c17 = "\
|
|
16939
|
-
const peg$c18 = "\u2022
|
|
16940
|
-
const peg$c19 = "
|
|
16941
|
+
const peg$c0 = " ";
|
|
16942
|
+
const peg$c1 = "|";
|
|
16943
|
+
const peg$c2 = "### ";
|
|
16944
|
+
const peg$c3 = "## ";
|
|
16945
|
+
const peg$c4 = "# ";
|
|
16946
|
+
const peg$c5 = "code";
|
|
16947
|
+
const peg$c6 = ":";
|
|
16948
|
+
const peg$c7 = "bitmark++";
|
|
16949
|
+
const peg$c8 = "bitmark--";
|
|
16950
|
+
const peg$c9 = "JavaScript";
|
|
16951
|
+
const peg$c10 = "\u2022 ";
|
|
16952
|
+
const peg$c11 = "\u2022_ ";
|
|
16953
|
+
const peg$c12 = "\u2022";
|
|
16954
|
+
const peg$c13 = " ";
|
|
16955
|
+
const peg$c14 = "I ";
|
|
16956
|
+
const peg$c15 = "i ";
|
|
16957
|
+
const peg$c16 = "\u2022A ";
|
|
16958
|
+
const peg$c17 = "\u2022a ";
|
|
16959
|
+
const peg$c18 = "\u2022+ ";
|
|
16960
|
+
const peg$c19 = "\u2022- ";
|
|
16941
16961
|
const peg$c20 = "image";
|
|
16942
16962
|
const peg$c21 = "#";
|
|
16943
16963
|
const peg$c22 = "@";
|
|
@@ -17069,28 +17089,28 @@ function peg$parse(input, options) {
|
|
|
17069
17089
|
const peg$r4 = /^[!#-;=?-[\]-_a-{}-~]/;
|
|
17070
17090
|
const peg$e0 = peg$anyExpectation();
|
|
17071
17091
|
const peg$e1 = peg$otherExpectation("StyledText");
|
|
17072
|
-
const peg$e2 = peg$literalExpectation("
|
|
17073
|
-
const peg$e3 = peg$literalExpectation("
|
|
17074
|
-
const peg$e4 = peg$literalExpectation("
|
|
17075
|
-
const peg$e5 = peg$literalExpectation("
|
|
17076
|
-
const peg$e6 = peg$literalExpectation("
|
|
17077
|
-
const peg$e7 = peg$
|
|
17078
|
-
const peg$e8 = peg$
|
|
17079
|
-
const peg$e9 = peg$literalExpectation("
|
|
17080
|
-
const peg$e10 = peg$literalExpectation("bitmark
|
|
17081
|
-
const peg$e11 = peg$literalExpectation("
|
|
17082
|
-
const peg$e12 = peg$literalExpectation("
|
|
17083
|
-
const peg$e13 = peg$literalExpectation("\
|
|
17084
|
-
const peg$e14 = peg$literalExpectation("\
|
|
17085
|
-
const peg$e15 = peg$
|
|
17086
|
-
const peg$e16 = peg$
|
|
17087
|
-
const peg$e17 = peg$literalExpectation("
|
|
17088
|
-
const peg$e18 = peg$literalExpectation("
|
|
17089
|
-
const peg$e19 = peg$literalExpectation("
|
|
17090
|
-
const peg$e20 = peg$literalExpectation("\
|
|
17091
|
-
const peg$e21 = peg$literalExpectation("\
|
|
17092
|
-
const peg$e22 = peg$literalExpectation("\u2022
|
|
17093
|
-
const peg$e23 = peg$literalExpectation("
|
|
17092
|
+
const peg$e2 = peg$literalExpectation(" ", false);
|
|
17093
|
+
const peg$e3 = peg$literalExpectation("|", false);
|
|
17094
|
+
const peg$e4 = peg$literalExpectation("### ", false);
|
|
17095
|
+
const peg$e5 = peg$literalExpectation("## ", false);
|
|
17096
|
+
const peg$e6 = peg$literalExpectation("# ", false);
|
|
17097
|
+
const peg$e7 = peg$literalExpectation("code", false);
|
|
17098
|
+
const peg$e8 = peg$classExpectation([" ", " "], false, false, false);
|
|
17099
|
+
const peg$e9 = peg$literalExpectation(":", false);
|
|
17100
|
+
const peg$e10 = peg$literalExpectation("bitmark++", false);
|
|
17101
|
+
const peg$e11 = peg$literalExpectation("bitmark--", false);
|
|
17102
|
+
const peg$e12 = peg$literalExpectation("JavaScript", false);
|
|
17103
|
+
const peg$e13 = peg$literalExpectation("\u2022 ", false);
|
|
17104
|
+
const peg$e14 = peg$literalExpectation("\u2022_ ", false);
|
|
17105
|
+
const peg$e15 = peg$literalExpectation("\u2022", false);
|
|
17106
|
+
const peg$e16 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
17107
|
+
const peg$e17 = peg$literalExpectation(" ", false);
|
|
17108
|
+
const peg$e18 = peg$literalExpectation("I ", false);
|
|
17109
|
+
const peg$e19 = peg$literalExpectation("i ", false);
|
|
17110
|
+
const peg$e20 = peg$literalExpectation("\u2022A ", false);
|
|
17111
|
+
const peg$e21 = peg$literalExpectation("\u2022a ", false);
|
|
17112
|
+
const peg$e22 = peg$literalExpectation("\u2022+ ", false);
|
|
17113
|
+
const peg$e23 = peg$literalExpectation("\u2022- ", false);
|
|
17094
17114
|
const peg$e24 = peg$literalExpectation("image", false);
|
|
17095
17115
|
const peg$e25 = peg$literalExpectation("#", false);
|
|
17096
17116
|
const peg$e26 = peg$literalExpectation("@", false);
|
|
@@ -17266,15 +17286,14 @@ function peg$parse(input, options) {
|
|
|
17266
17286
|
function peg$f13(t) {
|
|
17267
17287
|
return t;
|
|
17268
17288
|
}
|
|
17269
|
-
function peg$f14(
|
|
17270
|
-
return
|
|
17289
|
+
function peg$f14(b) {
|
|
17290
|
+
return b;
|
|
17271
17291
|
}
|
|
17272
17292
|
function peg$f15(c, bl) {
|
|
17273
17293
|
return { ...c, content: bl, attrs: {} };
|
|
17274
17294
|
}
|
|
17275
17295
|
function peg$f16(c, bl) {
|
|
17276
|
-
|
|
17277
|
-
return { ...c, attrs: { start }, content: bl };
|
|
17296
|
+
return { ...c, content: bl, attrs: {} };
|
|
17278
17297
|
}
|
|
17279
17298
|
function peg$f17(c, bl) {
|
|
17280
17299
|
let start = bl[0]._tempListStart;
|
|
@@ -17285,7 +17304,8 @@ function peg$parse(input, options) {
|
|
|
17285
17304
|
return { ...c, attrs: { start }, content: bl };
|
|
17286
17305
|
}
|
|
17287
17306
|
function peg$f19(c, bl) {
|
|
17288
|
-
|
|
17307
|
+
let start = bl[0]._tempListStart;
|
|
17308
|
+
return { ...c, attrs: { start }, content: bl };
|
|
17289
17309
|
}
|
|
17290
17310
|
function peg$f20(c, bl) {
|
|
17291
17311
|
return { ...c, content: bl, attrs: {} };
|
|
@@ -17293,34 +17313,41 @@ function peg$parse(input, options) {
|
|
|
17293
17313
|
function peg$f21(c, bl) {
|
|
17294
17314
|
return { ...c, content: bl, attrs: {} };
|
|
17295
17315
|
}
|
|
17296
|
-
function peg$f22() {
|
|
17316
|
+
function peg$f22(c, bl) {
|
|
17317
|
+
return { ...c, content: bl, attrs: {} };
|
|
17318
|
+
}
|
|
17319
|
+
function peg$f23(i) {
|
|
17320
|
+
indentStack = [];
|
|
17321
|
+
indent = i.join("");
|
|
17322
|
+
}
|
|
17323
|
+
function peg$f24() {
|
|
17297
17324
|
return { type: "bulletList" };
|
|
17298
17325
|
}
|
|
17299
|
-
function peg$
|
|
17326
|
+
function peg$f25() {
|
|
17300
17327
|
return { type: "noBulletList" };
|
|
17301
17328
|
}
|
|
17302
|
-
function peg$
|
|
17329
|
+
function peg$f26() {
|
|
17303
17330
|
return { type: "orderedList" };
|
|
17304
17331
|
}
|
|
17305
|
-
function peg$
|
|
17332
|
+
function peg$f27() {
|
|
17306
17333
|
return { type: "orderedListRoman" };
|
|
17307
17334
|
}
|
|
17308
|
-
function peg$
|
|
17335
|
+
function peg$f28() {
|
|
17309
17336
|
return { type: "orderedListRomanLower" };
|
|
17310
17337
|
}
|
|
17311
|
-
function peg$
|
|
17338
|
+
function peg$f29() {
|
|
17312
17339
|
return { type: "letteredList" };
|
|
17313
17340
|
}
|
|
17314
|
-
function peg$
|
|
17341
|
+
function peg$f30() {
|
|
17315
17342
|
return { type: "letteredListLower" };
|
|
17316
17343
|
}
|
|
17317
|
-
function peg$
|
|
17344
|
+
function peg$f31() {
|
|
17318
17345
|
return { type: "taskList" };
|
|
17319
17346
|
}
|
|
17320
|
-
function peg$
|
|
17347
|
+
function peg$f32(lt, listItem, lines, c) {
|
|
17321
17348
|
return c;
|
|
17322
17349
|
}
|
|
17323
|
-
function peg$
|
|
17350
|
+
function peg$f33(lt, listItem, lines, children) {
|
|
17324
17351
|
let _tempParsingParent = "bulletList";
|
|
17325
17352
|
const matchOrdered = lt.match(/•([0-9]+)([Ii]?) /);
|
|
17326
17353
|
let start = 1;
|
|
@@ -17389,36 +17416,36 @@ function peg$parse(input, options) {
|
|
|
17389
17416
|
return { type: t, content, _tempParsingParent, _tempListStart };
|
|
17390
17417
|
}
|
|
17391
17418
|
}
|
|
17392
|
-
function peg$
|
|
17419
|
+
function peg$f34(ll) {
|
|
17393
17420
|
return ll;
|
|
17394
17421
|
}
|
|
17395
|
-
function peg$
|
|
17422
|
+
function peg$f35(i) {
|
|
17396
17423
|
return i.join("") === indent;
|
|
17397
17424
|
}
|
|
17398
|
-
function peg$
|
|
17425
|
+
function peg$f36(i) {
|
|
17399
17426
|
return i.length > indent.length;
|
|
17400
17427
|
}
|
|
17401
|
-
function peg$
|
|
17428
|
+
function peg$f37(i) {
|
|
17402
17429
|
indentStack.push(indent);
|
|
17403
17430
|
indent = i.join("");
|
|
17404
17431
|
}
|
|
17405
|
-
function peg$
|
|
17432
|
+
function peg$f38() {
|
|
17406
17433
|
indent = indentStack.pop();
|
|
17407
17434
|
return true;
|
|
17408
17435
|
}
|
|
17409
|
-
function peg$
|
|
17436
|
+
function peg$f39(body) {
|
|
17410
17437
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17411
17438
|
}
|
|
17412
|
-
function peg$
|
|
17439
|
+
function peg$f40(body) {
|
|
17413
17440
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17414
17441
|
}
|
|
17415
|
-
function peg$
|
|
17442
|
+
function peg$f41(body) {
|
|
17416
17443
|
return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} };
|
|
17417
17444
|
}
|
|
17418
|
-
function peg$
|
|
17445
|
+
function peg$f42(t) {
|
|
17419
17446
|
return t;
|
|
17420
17447
|
}
|
|
17421
|
-
function peg$
|
|
17448
|
+
function peg$f43(t, u, ch) {
|
|
17422
17449
|
const chain = Object.assign({}, ...ch);
|
|
17423
17450
|
let imageAlignment_ = chain.alignment || "center";
|
|
17424
17451
|
delete chain.alignment;
|
|
@@ -17447,185 +17474,185 @@ function peg$parse(input, options) {
|
|
|
17447
17474
|
};
|
|
17448
17475
|
return image;
|
|
17449
17476
|
}
|
|
17450
|
-
function peg$
|
|
17477
|
+
function peg$f44(ch) {
|
|
17451
17478
|
return ch;
|
|
17452
17479
|
}
|
|
17453
|
-
function peg$
|
|
17480
|
+
function peg$f45(str) {
|
|
17454
17481
|
return { comment: str.trim() };
|
|
17455
17482
|
}
|
|
17456
|
-
function peg$
|
|
17483
|
+
function peg$f46(p, v) {
|
|
17457
17484
|
return { [p]: parseInt(v) };
|
|
17458
17485
|
}
|
|
17459
|
-
function peg$
|
|
17486
|
+
function peg$f47(p, v) {
|
|
17460
17487
|
return { [p]: v.trim() };
|
|
17461
17488
|
}
|
|
17462
|
-
function peg$
|
|
17489
|
+
function peg$f48(p, v) {
|
|
17463
17490
|
return { [p]: v };
|
|
17464
17491
|
}
|
|
17465
|
-
function peg$
|
|
17492
|
+
function peg$f49(p, v) {
|
|
17466
17493
|
return { [p]: v };
|
|
17467
17494
|
}
|
|
17468
|
-
function peg$
|
|
17495
|
+
function peg$f50(p) {
|
|
17469
17496
|
return { [p]: true };
|
|
17470
17497
|
}
|
|
17471
|
-
function peg$
|
|
17498
|
+
function peg$f51() {
|
|
17472
17499
|
return;
|
|
17473
17500
|
}
|
|
17474
|
-
function peg$
|
|
17501
|
+
function peg$f52(p) {
|
|
17475
17502
|
return { error: "Found unknown property or invalid value: " + p };
|
|
17476
17503
|
}
|
|
17477
|
-
function peg$
|
|
17504
|
+
function peg$f53(bs) {
|
|
17478
17505
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17479
17506
|
}
|
|
17480
|
-
function peg$
|
|
17507
|
+
function peg$f54(first, more) {
|
|
17481
17508
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17482
17509
|
return cleaned_;
|
|
17483
17510
|
}
|
|
17484
|
-
function peg$
|
|
17511
|
+
function peg$f55() {
|
|
17485
17512
|
return { "type": "hardBreak" };
|
|
17486
17513
|
}
|
|
17487
|
-
function peg$
|
|
17514
|
+
function peg$f56(t) {
|
|
17488
17515
|
return { text: unbreakscape(t), type: "text" };
|
|
17489
17516
|
}
|
|
17490
|
-
function peg$
|
|
17517
|
+
function peg$f57(t) {
|
|
17491
17518
|
return { index: +t, type: "bit" };
|
|
17492
17519
|
}
|
|
17493
|
-
function peg$
|
|
17520
|
+
function peg$f58(t) {
|
|
17494
17521
|
return { attrs: { formula: unbreakscape(t) }, type: "latex" };
|
|
17495
17522
|
}
|
|
17496
|
-
function peg$
|
|
17523
|
+
function peg$f59(alt, u, ch) {
|
|
17497
17524
|
return { attrs: { alt, src: (u.pr + u.t).trim(), ...Object.assign({}, ...ch), zoomDisabled: true }, type: "imageInline" };
|
|
17498
17525
|
}
|
|
17499
|
-
function peg$
|
|
17526
|
+
function peg$f60(t, marks) {
|
|
17500
17527
|
if (!marks) marks = [];
|
|
17501
17528
|
return { marks, text: unbreakscape(t), type: "text" };
|
|
17502
17529
|
}
|
|
17503
|
-
function peg$
|
|
17530
|
+
function peg$f61(t) {
|
|
17504
17531
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17505
17532
|
}
|
|
17506
|
-
function peg$
|
|
17533
|
+
function peg$f62(t) {
|
|
17507
17534
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17508
17535
|
}
|
|
17509
|
-
function peg$
|
|
17536
|
+
function peg$f63(t) {
|
|
17510
17537
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17511
17538
|
}
|
|
17512
|
-
function peg$
|
|
17539
|
+
function peg$f64(t) {
|
|
17513
17540
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17514
17541
|
}
|
|
17515
|
-
function peg$
|
|
17542
|
+
function peg$f65(u) {
|
|
17516
17543
|
return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: "_blank" } }], text: u.t, type: "text" };
|
|
17517
17544
|
}
|
|
17518
|
-
function peg$
|
|
17545
|
+
function peg$f66(ch) {
|
|
17519
17546
|
return ch;
|
|
17520
17547
|
}
|
|
17521
|
-
function peg$
|
|
17548
|
+
function peg$f67(ch) {
|
|
17522
17549
|
return ch;
|
|
17523
17550
|
}
|
|
17524
|
-
function peg$
|
|
17551
|
+
function peg$f68(str) {
|
|
17525
17552
|
return { comment: str };
|
|
17526
17553
|
}
|
|
17527
|
-
function peg$
|
|
17554
|
+
function peg$f69(p, v) {
|
|
17528
17555
|
return { [p]: v };
|
|
17529
17556
|
}
|
|
17530
|
-
function peg$
|
|
17557
|
+
function peg$f70(p, v) {
|
|
17531
17558
|
return { [p]: parseInt(v) };
|
|
17532
17559
|
}
|
|
17533
|
-
function peg$
|
|
17560
|
+
function peg$f71(p, v) {
|
|
17534
17561
|
return { type: "error", msg: p + " must be a positive integer.", found: v };
|
|
17535
17562
|
}
|
|
17536
|
-
function peg$
|
|
17563
|
+
function peg$f72(p, v) {
|
|
17537
17564
|
return { [p]: v };
|
|
17538
17565
|
}
|
|
17539
|
-
function peg$
|
|
17566
|
+
function peg$f73(p, v) {
|
|
17540
17567
|
return { [p]: v };
|
|
17541
17568
|
}
|
|
17542
|
-
function peg$
|
|
17569
|
+
function peg$f74(str) {
|
|
17543
17570
|
return { type: "link", attrs: { href: str.trim(), target: "_blank" } };
|
|
17544
17571
|
}
|
|
17545
|
-
function peg$
|
|
17572
|
+
function peg$f75(str, rc, p) {
|
|
17546
17573
|
return { type: "extref", attrs: { extref: str.trim(), references: rc, provider: p.trim() } };
|
|
17547
17574
|
}
|
|
17548
|
-
function peg$
|
|
17575
|
+
function peg$f76(str, str2) {
|
|
17549
17576
|
return { type: "xref", attrs: { xref: str.trim(), reference: str2.trim() } };
|
|
17550
17577
|
}
|
|
17551
|
-
function peg$
|
|
17578
|
+
function peg$f77(str) {
|
|
17552
17579
|
return { type: "xref", attrs: { xref: str.trim(), reference: "" } };
|
|
17553
17580
|
}
|
|
17554
|
-
function peg$
|
|
17581
|
+
function peg$f78(str) {
|
|
17555
17582
|
return { type: "ref", attrs: { reference: str.trim() } };
|
|
17556
17583
|
}
|
|
17557
|
-
function peg$
|
|
17584
|
+
function peg$f79(str, ch) {
|
|
17558
17585
|
const chain = Object.assign({}, ...ch);
|
|
17559
17586
|
return { type: "symbol", attrs: { src: str.trim(), ...chain } };
|
|
17560
17587
|
}
|
|
17561
|
-
function peg$
|
|
17588
|
+
function peg$f80(str) {
|
|
17562
17589
|
return { type: "footnote", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17563
17590
|
}
|
|
17564
|
-
function peg$
|
|
17591
|
+
function peg$f81(str) {
|
|
17565
17592
|
return { type: "footnote*", attrs: { content: bitmarkPlusString(str.trim()) } };
|
|
17566
17593
|
}
|
|
17567
|
-
function peg$
|
|
17594
|
+
function peg$f82(str) {
|
|
17568
17595
|
return { type: "var", attrs: { name: str.trim() } };
|
|
17569
17596
|
}
|
|
17570
|
-
function peg$
|
|
17597
|
+
function peg$f83() {
|
|
17571
17598
|
return { type: "code", attrs: { language: "plain text" } };
|
|
17572
17599
|
}
|
|
17573
|
-
function peg$
|
|
17600
|
+
function peg$f84(lang) {
|
|
17574
17601
|
return { type: "code", attrs: { language: lang.trim().toLowerCase() } };
|
|
17575
17602
|
}
|
|
17576
|
-
function peg$
|
|
17603
|
+
function peg$f85() {
|
|
17577
17604
|
return { type: "timer", attrs: { name: "" } };
|
|
17578
17605
|
}
|
|
17579
|
-
function peg$
|
|
17606
|
+
function peg$f86(str) {
|
|
17580
17607
|
return { type: "timer", attrs: { name: str.trim() } };
|
|
17581
17608
|
}
|
|
17582
|
-
function peg$
|
|
17609
|
+
function peg$f87(str) {
|
|
17583
17610
|
return { type: "duration", attrs: { duration: str } };
|
|
17584
17611
|
}
|
|
17585
|
-
function peg$
|
|
17612
|
+
function peg$f88(color) {
|
|
17586
17613
|
return { type: "color", attrs: { color } };
|
|
17587
17614
|
}
|
|
17588
|
-
function peg$
|
|
17615
|
+
function peg$f89(str) {
|
|
17589
17616
|
return { type: "colorPicker", attrs: { propertyRef: str.trim() } };
|
|
17590
17617
|
}
|
|
17591
|
-
function peg$
|
|
17618
|
+
function peg$f90(style) {
|
|
17592
17619
|
return { type: style };
|
|
17593
17620
|
}
|
|
17594
|
-
function peg$
|
|
17621
|
+
function peg$f91(str) {
|
|
17595
17622
|
return { type: "comment", comment: str };
|
|
17596
17623
|
}
|
|
17597
|
-
function peg$
|
|
17624
|
+
function peg$f92(r) {
|
|
17598
17625
|
return r.trim();
|
|
17599
17626
|
}
|
|
17600
|
-
function peg$
|
|
17627
|
+
function peg$f93(bs) {
|
|
17601
17628
|
return [{ type: "paragraph", content: bs, attrs: {} }];
|
|
17602
17629
|
}
|
|
17603
|
-
function peg$
|
|
17630
|
+
function peg$f94(first, more) {
|
|
17604
17631
|
const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat());
|
|
17605
17632
|
return cleaned_;
|
|
17606
17633
|
}
|
|
17607
|
-
function peg$
|
|
17634
|
+
function peg$f95() {
|
|
17608
17635
|
return { "type": "hardBreak" };
|
|
17609
17636
|
}
|
|
17610
|
-
function peg$
|
|
17637
|
+
function peg$f96(t) {
|
|
17611
17638
|
return { text: unbreakscape(t), type: "text" };
|
|
17612
17639
|
}
|
|
17613
|
-
function peg$
|
|
17640
|
+
function peg$f97(t) {
|
|
17614
17641
|
return { index: +t, type: "bit" };
|
|
17615
17642
|
}
|
|
17616
|
-
function peg$
|
|
17643
|
+
function peg$f98(t) {
|
|
17617
17644
|
return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" };
|
|
17618
17645
|
}
|
|
17619
|
-
function peg$
|
|
17646
|
+
function peg$f99(t) {
|
|
17620
17647
|
return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" };
|
|
17621
17648
|
}
|
|
17622
|
-
function peg$
|
|
17649
|
+
function peg$f100(t) {
|
|
17623
17650
|
return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" };
|
|
17624
17651
|
}
|
|
17625
|
-
function peg$
|
|
17652
|
+
function peg$f101(t) {
|
|
17626
17653
|
return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" };
|
|
17627
17654
|
}
|
|
17628
|
-
function peg$
|
|
17655
|
+
function peg$f102(pr, t) {
|
|
17629
17656
|
return { pr, t };
|
|
17630
17657
|
}
|
|
17631
17658
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -17868,10 +17895,40 @@ function peg$parse(input, options) {
|
|
|
17868
17895
|
return s0;
|
|
17869
17896
|
}
|
|
17870
17897
|
function peg$parseBlockStart() {
|
|
17871
|
-
let s0;
|
|
17898
|
+
let s0, s1, s2;
|
|
17872
17899
|
s0 = peg$parseTitleTags();
|
|
17873
17900
|
if (s0 === peg$FAILED) {
|
|
17874
|
-
s0 = peg$
|
|
17901
|
+
s0 = peg$currPos;
|
|
17902
|
+
s1 = [];
|
|
17903
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17904
|
+
s2 = peg$c0;
|
|
17905
|
+
peg$currPos++;
|
|
17906
|
+
} else {
|
|
17907
|
+
s2 = peg$FAILED;
|
|
17908
|
+
if (peg$silentFails === 0) {
|
|
17909
|
+
peg$fail(peg$e2);
|
|
17910
|
+
}
|
|
17911
|
+
}
|
|
17912
|
+
while (s2 !== peg$FAILED) {
|
|
17913
|
+
s1.push(s2);
|
|
17914
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
17915
|
+
s2 = peg$c0;
|
|
17916
|
+
peg$currPos++;
|
|
17917
|
+
} else {
|
|
17918
|
+
s2 = peg$FAILED;
|
|
17919
|
+
if (peg$silentFails === 0) {
|
|
17920
|
+
peg$fail(peg$e2);
|
|
17921
|
+
}
|
|
17922
|
+
}
|
|
17923
|
+
}
|
|
17924
|
+
s2 = peg$parseListTags();
|
|
17925
|
+
if (s2 !== peg$FAILED) {
|
|
17926
|
+
s1 = [s1, s2];
|
|
17927
|
+
s0 = s1;
|
|
17928
|
+
} else {
|
|
17929
|
+
peg$currPos = s0;
|
|
17930
|
+
s0 = peg$FAILED;
|
|
17931
|
+
}
|
|
17875
17932
|
if (s0 === peg$FAILED) {
|
|
17876
17933
|
s0 = peg$parseImageBlock();
|
|
17877
17934
|
if (s0 === peg$FAILED) {
|
|
@@ -17887,12 +17944,12 @@ function peg$parse(input, options) {
|
|
|
17887
17944
|
function peg$parseBlockTag() {
|
|
17888
17945
|
let s0;
|
|
17889
17946
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
17890
|
-
s0 = peg$
|
|
17947
|
+
s0 = peg$c1;
|
|
17891
17948
|
peg$currPos++;
|
|
17892
17949
|
} else {
|
|
17893
17950
|
s0 = peg$FAILED;
|
|
17894
17951
|
if (peg$silentFails === 0) {
|
|
17895
|
-
peg$fail(peg$
|
|
17952
|
+
peg$fail(peg$e3);
|
|
17896
17953
|
}
|
|
17897
17954
|
}
|
|
17898
17955
|
return s0;
|
|
@@ -17908,33 +17965,33 @@ function peg$parse(input, options) {
|
|
|
17908
17965
|
}
|
|
17909
17966
|
function peg$parseTitleTags() {
|
|
17910
17967
|
let s0;
|
|
17911
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17912
|
-
s0 = peg$
|
|
17968
|
+
if (input.substr(peg$currPos, 4) === peg$c2) {
|
|
17969
|
+
s0 = peg$c2;
|
|
17913
17970
|
peg$currPos += 4;
|
|
17914
17971
|
} else {
|
|
17915
17972
|
s0 = peg$FAILED;
|
|
17916
17973
|
if (peg$silentFails === 0) {
|
|
17917
|
-
peg$fail(peg$
|
|
17974
|
+
peg$fail(peg$e4);
|
|
17918
17975
|
}
|
|
17919
17976
|
}
|
|
17920
17977
|
if (s0 === peg$FAILED) {
|
|
17921
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
17922
|
-
s0 = peg$
|
|
17978
|
+
if (input.substr(peg$currPos, 3) === peg$c3) {
|
|
17979
|
+
s0 = peg$c3;
|
|
17923
17980
|
peg$currPos += 3;
|
|
17924
17981
|
} else {
|
|
17925
17982
|
s0 = peg$FAILED;
|
|
17926
17983
|
if (peg$silentFails === 0) {
|
|
17927
|
-
peg$fail(peg$
|
|
17984
|
+
peg$fail(peg$e5);
|
|
17928
17985
|
}
|
|
17929
17986
|
}
|
|
17930
17987
|
if (s0 === peg$FAILED) {
|
|
17931
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
17932
|
-
s0 = peg$
|
|
17988
|
+
if (input.substr(peg$currPos, 2) === peg$c4) {
|
|
17989
|
+
s0 = peg$c4;
|
|
17933
17990
|
peg$currPos += 2;
|
|
17934
17991
|
} else {
|
|
17935
17992
|
s0 = peg$FAILED;
|
|
17936
17993
|
if (peg$silentFails === 0) {
|
|
17937
|
-
peg$fail(peg$
|
|
17994
|
+
peg$fail(peg$e6);
|
|
17938
17995
|
}
|
|
17939
17996
|
}
|
|
17940
17997
|
}
|
|
@@ -17974,13 +18031,13 @@ function peg$parse(input, options) {
|
|
|
17974
18031
|
}
|
|
17975
18032
|
function peg$parseCodeType() {
|
|
17976
18033
|
let s0;
|
|
17977
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
17978
|
-
s0 = peg$
|
|
18034
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
18035
|
+
s0 = peg$c5;
|
|
17979
18036
|
peg$currPos += 4;
|
|
17980
18037
|
} else {
|
|
17981
18038
|
s0 = peg$FAILED;
|
|
17982
18039
|
if (peg$silentFails === 0) {
|
|
17983
|
-
peg$fail(peg$
|
|
18040
|
+
peg$fail(peg$e7);
|
|
17984
18041
|
}
|
|
17985
18042
|
}
|
|
17986
18043
|
return s0;
|
|
@@ -18032,7 +18089,7 @@ function peg$parse(input, options) {
|
|
|
18032
18089
|
} else {
|
|
18033
18090
|
s5 = peg$FAILED;
|
|
18034
18091
|
if (peg$silentFails === 0) {
|
|
18035
|
-
peg$fail(peg$
|
|
18092
|
+
peg$fail(peg$e8);
|
|
18036
18093
|
}
|
|
18037
18094
|
}
|
|
18038
18095
|
while (s5 !== peg$FAILED) {
|
|
@@ -18043,7 +18100,7 @@ function peg$parse(input, options) {
|
|
|
18043
18100
|
} else {
|
|
18044
18101
|
s5 = peg$FAILED;
|
|
18045
18102
|
if (peg$silentFails === 0) {
|
|
18046
|
-
peg$fail(peg$
|
|
18103
|
+
peg$fail(peg$e8);
|
|
18047
18104
|
}
|
|
18048
18105
|
}
|
|
18049
18106
|
}
|
|
@@ -18076,12 +18133,12 @@ function peg$parse(input, options) {
|
|
|
18076
18133
|
s1 = peg$parseCodeTag();
|
|
18077
18134
|
if (s1 !== peg$FAILED) {
|
|
18078
18135
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
18079
|
-
s2 = peg$
|
|
18136
|
+
s2 = peg$c6;
|
|
18080
18137
|
peg$currPos++;
|
|
18081
18138
|
} else {
|
|
18082
18139
|
s2 = peg$FAILED;
|
|
18083
18140
|
if (peg$silentFails === 0) {
|
|
18084
|
-
peg$fail(peg$
|
|
18141
|
+
peg$fail(peg$e9);
|
|
18085
18142
|
}
|
|
18086
18143
|
}
|
|
18087
18144
|
if (s2 !== peg$FAILED) {
|
|
@@ -18096,7 +18153,7 @@ function peg$parse(input, options) {
|
|
|
18096
18153
|
} else {
|
|
18097
18154
|
s7 = peg$FAILED;
|
|
18098
18155
|
if (peg$silentFails === 0) {
|
|
18099
|
-
peg$fail(peg$
|
|
18156
|
+
peg$fail(peg$e8);
|
|
18100
18157
|
}
|
|
18101
18158
|
}
|
|
18102
18159
|
while (s7 !== peg$FAILED) {
|
|
@@ -18107,7 +18164,7 @@ function peg$parse(input, options) {
|
|
|
18107
18164
|
} else {
|
|
18108
18165
|
s7 = peg$FAILED;
|
|
18109
18166
|
if (peg$silentFails === 0) {
|
|
18110
|
-
peg$fail(peg$
|
|
18167
|
+
peg$fail(peg$e8);
|
|
18111
18168
|
}
|
|
18112
18169
|
}
|
|
18113
18170
|
}
|
|
@@ -18148,33 +18205,33 @@ function peg$parse(input, options) {
|
|
|
18148
18205
|
}
|
|
18149
18206
|
function peg$parseCodeLanguage() {
|
|
18150
18207
|
let s0, s1, s2;
|
|
18151
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18152
|
-
s0 = peg$
|
|
18208
|
+
if (input.substr(peg$currPos, 9) === peg$c7) {
|
|
18209
|
+
s0 = peg$c7;
|
|
18153
18210
|
peg$currPos += 9;
|
|
18154
18211
|
} else {
|
|
18155
18212
|
s0 = peg$FAILED;
|
|
18156
18213
|
if (peg$silentFails === 0) {
|
|
18157
|
-
peg$fail(peg$
|
|
18214
|
+
peg$fail(peg$e10);
|
|
18158
18215
|
}
|
|
18159
18216
|
}
|
|
18160
18217
|
if (s0 === peg$FAILED) {
|
|
18161
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
18162
|
-
s0 = peg$
|
|
18218
|
+
if (input.substr(peg$currPos, 9) === peg$c8) {
|
|
18219
|
+
s0 = peg$c8;
|
|
18163
18220
|
peg$currPos += 9;
|
|
18164
18221
|
} else {
|
|
18165
18222
|
s0 = peg$FAILED;
|
|
18166
18223
|
if (peg$silentFails === 0) {
|
|
18167
|
-
peg$fail(peg$
|
|
18224
|
+
peg$fail(peg$e11);
|
|
18168
18225
|
}
|
|
18169
18226
|
}
|
|
18170
18227
|
if (s0 === peg$FAILED) {
|
|
18171
|
-
if (input.substr(peg$currPos, 10) === peg$
|
|
18172
|
-
s0 = peg$
|
|
18228
|
+
if (input.substr(peg$currPos, 10) === peg$c9) {
|
|
18229
|
+
s0 = peg$c9;
|
|
18173
18230
|
peg$currPos += 10;
|
|
18174
18231
|
} else {
|
|
18175
18232
|
s0 = peg$FAILED;
|
|
18176
18233
|
if (peg$silentFails === 0) {
|
|
18177
|
-
peg$fail(peg$
|
|
18234
|
+
peg$fail(peg$e12);
|
|
18178
18235
|
}
|
|
18179
18236
|
}
|
|
18180
18237
|
if (s0 === peg$FAILED) {
|
|
@@ -18280,26 +18337,26 @@ function peg$parse(input, options) {
|
|
|
18280
18337
|
}
|
|
18281
18338
|
function peg$parseBulletListTag() {
|
|
18282
18339
|
let s0;
|
|
18283
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18284
|
-
s0 = peg$
|
|
18340
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
18341
|
+
s0 = peg$c10;
|
|
18285
18342
|
peg$currPos += 2;
|
|
18286
18343
|
} else {
|
|
18287
18344
|
s0 = peg$FAILED;
|
|
18288
18345
|
if (peg$silentFails === 0) {
|
|
18289
|
-
peg$fail(peg$
|
|
18346
|
+
peg$fail(peg$e13);
|
|
18290
18347
|
}
|
|
18291
18348
|
}
|
|
18292
18349
|
return s0;
|
|
18293
18350
|
}
|
|
18294
18351
|
function peg$parseNoBulletListTag() {
|
|
18295
18352
|
let s0;
|
|
18296
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18297
|
-
s0 = peg$
|
|
18353
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
18354
|
+
s0 = peg$c11;
|
|
18298
18355
|
peg$currPos += 3;
|
|
18299
18356
|
} else {
|
|
18300
18357
|
s0 = peg$FAILED;
|
|
18301
18358
|
if (peg$silentFails === 0) {
|
|
18302
|
-
peg$fail(peg$
|
|
18359
|
+
peg$fail(peg$e14);
|
|
18303
18360
|
}
|
|
18304
18361
|
}
|
|
18305
18362
|
return s0;
|
|
@@ -18309,12 +18366,12 @@ function peg$parse(input, options) {
|
|
|
18309
18366
|
s0 = peg$currPos;
|
|
18310
18367
|
s1 = peg$currPos;
|
|
18311
18368
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18312
|
-
s2 = peg$
|
|
18369
|
+
s2 = peg$c12;
|
|
18313
18370
|
peg$currPos++;
|
|
18314
18371
|
} else {
|
|
18315
18372
|
s2 = peg$FAILED;
|
|
18316
18373
|
if (peg$silentFails === 0) {
|
|
18317
|
-
peg$fail(peg$
|
|
18374
|
+
peg$fail(peg$e15);
|
|
18318
18375
|
}
|
|
18319
18376
|
}
|
|
18320
18377
|
if (s2 !== peg$FAILED) {
|
|
@@ -18325,7 +18382,7 @@ function peg$parse(input, options) {
|
|
|
18325
18382
|
} else {
|
|
18326
18383
|
s4 = peg$FAILED;
|
|
18327
18384
|
if (peg$silentFails === 0) {
|
|
18328
|
-
peg$fail(peg$
|
|
18385
|
+
peg$fail(peg$e16);
|
|
18329
18386
|
}
|
|
18330
18387
|
}
|
|
18331
18388
|
if (s4 !== peg$FAILED) {
|
|
@@ -18337,7 +18394,7 @@ function peg$parse(input, options) {
|
|
|
18337
18394
|
} else {
|
|
18338
18395
|
s4 = peg$FAILED;
|
|
18339
18396
|
if (peg$silentFails === 0) {
|
|
18340
|
-
peg$fail(peg$
|
|
18397
|
+
peg$fail(peg$e16);
|
|
18341
18398
|
}
|
|
18342
18399
|
}
|
|
18343
18400
|
}
|
|
@@ -18346,12 +18403,12 @@ function peg$parse(input, options) {
|
|
|
18346
18403
|
}
|
|
18347
18404
|
if (s3 !== peg$FAILED) {
|
|
18348
18405
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
18349
|
-
s4 = peg$
|
|
18406
|
+
s4 = peg$c13;
|
|
18350
18407
|
peg$currPos++;
|
|
18351
18408
|
} else {
|
|
18352
18409
|
s4 = peg$FAILED;
|
|
18353
18410
|
if (peg$silentFails === 0) {
|
|
18354
|
-
peg$fail(peg$
|
|
18411
|
+
peg$fail(peg$e17);
|
|
18355
18412
|
}
|
|
18356
18413
|
}
|
|
18357
18414
|
if (s4 !== peg$FAILED) {
|
|
@@ -18381,12 +18438,12 @@ function peg$parse(input, options) {
|
|
|
18381
18438
|
s0 = peg$currPos;
|
|
18382
18439
|
s1 = peg$currPos;
|
|
18383
18440
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18384
|
-
s2 = peg$
|
|
18441
|
+
s2 = peg$c12;
|
|
18385
18442
|
peg$currPos++;
|
|
18386
18443
|
} else {
|
|
18387
18444
|
s2 = peg$FAILED;
|
|
18388
18445
|
if (peg$silentFails === 0) {
|
|
18389
|
-
peg$fail(peg$
|
|
18446
|
+
peg$fail(peg$e15);
|
|
18390
18447
|
}
|
|
18391
18448
|
}
|
|
18392
18449
|
if (s2 !== peg$FAILED) {
|
|
@@ -18397,7 +18454,7 @@ function peg$parse(input, options) {
|
|
|
18397
18454
|
} else {
|
|
18398
18455
|
s4 = peg$FAILED;
|
|
18399
18456
|
if (peg$silentFails === 0) {
|
|
18400
|
-
peg$fail(peg$
|
|
18457
|
+
peg$fail(peg$e16);
|
|
18401
18458
|
}
|
|
18402
18459
|
}
|
|
18403
18460
|
if (s4 !== peg$FAILED) {
|
|
@@ -18409,7 +18466,7 @@ function peg$parse(input, options) {
|
|
|
18409
18466
|
} else {
|
|
18410
18467
|
s4 = peg$FAILED;
|
|
18411
18468
|
if (peg$silentFails === 0) {
|
|
18412
|
-
peg$fail(peg$
|
|
18469
|
+
peg$fail(peg$e16);
|
|
18413
18470
|
}
|
|
18414
18471
|
}
|
|
18415
18472
|
}
|
|
@@ -18417,13 +18474,13 @@ function peg$parse(input, options) {
|
|
|
18417
18474
|
s3 = peg$FAILED;
|
|
18418
18475
|
}
|
|
18419
18476
|
if (s3 !== peg$FAILED) {
|
|
18420
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18421
|
-
s4 = peg$
|
|
18477
|
+
if (input.substr(peg$currPos, 2) === peg$c14) {
|
|
18478
|
+
s4 = peg$c14;
|
|
18422
18479
|
peg$currPos += 2;
|
|
18423
18480
|
} else {
|
|
18424
18481
|
s4 = peg$FAILED;
|
|
18425
18482
|
if (peg$silentFails === 0) {
|
|
18426
|
-
peg$fail(peg$
|
|
18483
|
+
peg$fail(peg$e18);
|
|
18427
18484
|
}
|
|
18428
18485
|
}
|
|
18429
18486
|
if (s4 !== peg$FAILED) {
|
|
@@ -18453,12 +18510,12 @@ function peg$parse(input, options) {
|
|
|
18453
18510
|
s0 = peg$currPos;
|
|
18454
18511
|
s1 = peg$currPos;
|
|
18455
18512
|
if (input.charCodeAt(peg$currPos) === 8226) {
|
|
18456
|
-
s2 = peg$
|
|
18513
|
+
s2 = peg$c12;
|
|
18457
18514
|
peg$currPos++;
|
|
18458
18515
|
} else {
|
|
18459
18516
|
s2 = peg$FAILED;
|
|
18460
18517
|
if (peg$silentFails === 0) {
|
|
18461
|
-
peg$fail(peg$
|
|
18518
|
+
peg$fail(peg$e15);
|
|
18462
18519
|
}
|
|
18463
18520
|
}
|
|
18464
18521
|
if (s2 !== peg$FAILED) {
|
|
@@ -18469,7 +18526,7 @@ function peg$parse(input, options) {
|
|
|
18469
18526
|
} else {
|
|
18470
18527
|
s4 = peg$FAILED;
|
|
18471
18528
|
if (peg$silentFails === 0) {
|
|
18472
|
-
peg$fail(peg$
|
|
18529
|
+
peg$fail(peg$e16);
|
|
18473
18530
|
}
|
|
18474
18531
|
}
|
|
18475
18532
|
if (s4 !== peg$FAILED) {
|
|
@@ -18481,7 +18538,7 @@ function peg$parse(input, options) {
|
|
|
18481
18538
|
} else {
|
|
18482
18539
|
s4 = peg$FAILED;
|
|
18483
18540
|
if (peg$silentFails === 0) {
|
|
18484
|
-
peg$fail(peg$
|
|
18541
|
+
peg$fail(peg$e16);
|
|
18485
18542
|
}
|
|
18486
18543
|
}
|
|
18487
18544
|
}
|
|
@@ -18489,13 +18546,13 @@ function peg$parse(input, options) {
|
|
|
18489
18546
|
s3 = peg$FAILED;
|
|
18490
18547
|
}
|
|
18491
18548
|
if (s3 !== peg$FAILED) {
|
|
18492
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
18493
|
-
s4 = peg$
|
|
18549
|
+
if (input.substr(peg$currPos, 2) === peg$c15) {
|
|
18550
|
+
s4 = peg$c15;
|
|
18494
18551
|
peg$currPos += 2;
|
|
18495
18552
|
} else {
|
|
18496
18553
|
s4 = peg$FAILED;
|
|
18497
18554
|
if (peg$silentFails === 0) {
|
|
18498
|
-
peg$fail(peg$
|
|
18555
|
+
peg$fail(peg$e19);
|
|
18499
18556
|
}
|
|
18500
18557
|
}
|
|
18501
18558
|
if (s4 !== peg$FAILED) {
|
|
@@ -18522,49 +18579,49 @@ function peg$parse(input, options) {
|
|
|
18522
18579
|
}
|
|
18523
18580
|
function peg$parseLetteredListTag() {
|
|
18524
18581
|
let s0;
|
|
18525
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18526
|
-
s0 = peg$
|
|
18582
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
18583
|
+
s0 = peg$c16;
|
|
18527
18584
|
peg$currPos += 3;
|
|
18528
18585
|
} else {
|
|
18529
18586
|
s0 = peg$FAILED;
|
|
18530
18587
|
if (peg$silentFails === 0) {
|
|
18531
|
-
peg$fail(peg$
|
|
18588
|
+
peg$fail(peg$e20);
|
|
18532
18589
|
}
|
|
18533
18590
|
}
|
|
18534
18591
|
return s0;
|
|
18535
18592
|
}
|
|
18536
18593
|
function peg$parseLetteredListLowerTag() {
|
|
18537
18594
|
let s0;
|
|
18538
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18539
|
-
s0 = peg$
|
|
18595
|
+
if (input.substr(peg$currPos, 3) === peg$c17) {
|
|
18596
|
+
s0 = peg$c17;
|
|
18540
18597
|
peg$currPos += 3;
|
|
18541
18598
|
} else {
|
|
18542
18599
|
s0 = peg$FAILED;
|
|
18543
18600
|
if (peg$silentFails === 0) {
|
|
18544
|
-
peg$fail(peg$
|
|
18601
|
+
peg$fail(peg$e21);
|
|
18545
18602
|
}
|
|
18546
18603
|
}
|
|
18547
18604
|
return s0;
|
|
18548
18605
|
}
|
|
18549
18606
|
function peg$parseTaskListTag() {
|
|
18550
18607
|
let s0;
|
|
18551
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18552
|
-
s0 = peg$
|
|
18608
|
+
if (input.substr(peg$currPos, 3) === peg$c18) {
|
|
18609
|
+
s0 = peg$c18;
|
|
18553
18610
|
peg$currPos += 3;
|
|
18554
18611
|
} else {
|
|
18555
18612
|
s0 = peg$FAILED;
|
|
18556
18613
|
if (peg$silentFails === 0) {
|
|
18557
|
-
peg$fail(peg$
|
|
18614
|
+
peg$fail(peg$e22);
|
|
18558
18615
|
}
|
|
18559
18616
|
}
|
|
18560
18617
|
if (s0 === peg$FAILED) {
|
|
18561
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
18562
|
-
s0 = peg$
|
|
18618
|
+
if (input.substr(peg$currPos, 3) === peg$c19) {
|
|
18619
|
+
s0 = peg$c19;
|
|
18563
18620
|
peg$currPos += 3;
|
|
18564
18621
|
} else {
|
|
18565
18622
|
s0 = peg$FAILED;
|
|
18566
18623
|
if (peg$silentFails === 0) {
|
|
18567
|
-
peg$fail(peg$
|
|
18624
|
+
peg$fail(peg$e23);
|
|
18568
18625
|
}
|
|
18569
18626
|
}
|
|
18570
18627
|
}
|
|
@@ -18597,6 +18654,25 @@ function peg$parse(input, options) {
|
|
|
18597
18654
|
return s0;
|
|
18598
18655
|
}
|
|
18599
18656
|
function peg$parseListBlock() {
|
|
18657
|
+
let s0, s1, s2;
|
|
18658
|
+
s0 = peg$currPos;
|
|
18659
|
+
s1 = peg$parseListBaseIndent();
|
|
18660
|
+
if (s1 !== peg$FAILED) {
|
|
18661
|
+
s2 = peg$parseListBlockInner();
|
|
18662
|
+
if (s2 !== peg$FAILED) {
|
|
18663
|
+
peg$savedPos = s0;
|
|
18664
|
+
s0 = peg$f14(s2);
|
|
18665
|
+
} else {
|
|
18666
|
+
peg$currPos = s0;
|
|
18667
|
+
s0 = peg$FAILED;
|
|
18668
|
+
}
|
|
18669
|
+
} else {
|
|
18670
|
+
peg$currPos = s0;
|
|
18671
|
+
s0 = peg$FAILED;
|
|
18672
|
+
}
|
|
18673
|
+
return s0;
|
|
18674
|
+
}
|
|
18675
|
+
function peg$parseListBlockInner() {
|
|
18600
18676
|
let s0, s1, s2, s3;
|
|
18601
18677
|
s0 = peg$currPos;
|
|
18602
18678
|
s1 = peg$parseBulletListContainer();
|
|
@@ -18617,7 +18693,7 @@ function peg$parse(input, options) {
|
|
|
18617
18693
|
s3 = null;
|
|
18618
18694
|
}
|
|
18619
18695
|
peg$savedPos = s0;
|
|
18620
|
-
s0 = peg$
|
|
18696
|
+
s0 = peg$f15(s1, s2);
|
|
18621
18697
|
} else {
|
|
18622
18698
|
peg$currPos = s0;
|
|
18623
18699
|
s0 = peg$FAILED;
|
|
@@ -18646,7 +18722,7 @@ function peg$parse(input, options) {
|
|
|
18646
18722
|
s3 = null;
|
|
18647
18723
|
}
|
|
18648
18724
|
peg$savedPos = s0;
|
|
18649
|
-
s0 = peg$
|
|
18725
|
+
s0 = peg$f16(s1, s2);
|
|
18650
18726
|
} else {
|
|
18651
18727
|
peg$currPos = s0;
|
|
18652
18728
|
s0 = peg$FAILED;
|
|
@@ -18675,7 +18751,7 @@ function peg$parse(input, options) {
|
|
|
18675
18751
|
s3 = null;
|
|
18676
18752
|
}
|
|
18677
18753
|
peg$savedPos = s0;
|
|
18678
|
-
s0 = peg$
|
|
18754
|
+
s0 = peg$f17(s1, s2);
|
|
18679
18755
|
} else {
|
|
18680
18756
|
peg$currPos = s0;
|
|
18681
18757
|
s0 = peg$FAILED;
|
|
@@ -18704,7 +18780,7 @@ function peg$parse(input, options) {
|
|
|
18704
18780
|
s3 = null;
|
|
18705
18781
|
}
|
|
18706
18782
|
peg$savedPos = s0;
|
|
18707
|
-
s0 = peg$
|
|
18783
|
+
s0 = peg$f18(s1, s2);
|
|
18708
18784
|
} else {
|
|
18709
18785
|
peg$currPos = s0;
|
|
18710
18786
|
s0 = peg$FAILED;
|
|
@@ -18733,7 +18809,7 @@ function peg$parse(input, options) {
|
|
|
18733
18809
|
s3 = null;
|
|
18734
18810
|
}
|
|
18735
18811
|
peg$savedPos = s0;
|
|
18736
|
-
s0 = peg$
|
|
18812
|
+
s0 = peg$f19(s1, s2);
|
|
18737
18813
|
} else {
|
|
18738
18814
|
peg$currPos = s0;
|
|
18739
18815
|
s0 = peg$FAILED;
|
|
@@ -18762,7 +18838,7 @@ function peg$parse(input, options) {
|
|
|
18762
18838
|
s3 = null;
|
|
18763
18839
|
}
|
|
18764
18840
|
peg$savedPos = s0;
|
|
18765
|
-
s0 = peg$
|
|
18841
|
+
s0 = peg$f20(s1, s2);
|
|
18766
18842
|
} else {
|
|
18767
18843
|
peg$currPos = s0;
|
|
18768
18844
|
s0 = peg$FAILED;
|
|
@@ -18791,7 +18867,7 @@ function peg$parse(input, options) {
|
|
|
18791
18867
|
s3 = null;
|
|
18792
18868
|
}
|
|
18793
18869
|
peg$savedPos = s0;
|
|
18794
|
-
s0 = peg$
|
|
18870
|
+
s0 = peg$f21(s1, s2);
|
|
18795
18871
|
} else {
|
|
18796
18872
|
peg$currPos = s0;
|
|
18797
18873
|
s0 = peg$FAILED;
|
|
@@ -18820,7 +18896,7 @@ function peg$parse(input, options) {
|
|
|
18820
18896
|
s3 = null;
|
|
18821
18897
|
}
|
|
18822
18898
|
peg$savedPos = s0;
|
|
18823
|
-
s0 = peg$
|
|
18899
|
+
s0 = peg$f22(s1, s2);
|
|
18824
18900
|
} else {
|
|
18825
18901
|
peg$currPos = s0;
|
|
18826
18902
|
s0 = peg$FAILED;
|
|
@@ -18838,12 +18914,70 @@ function peg$parse(input, options) {
|
|
|
18838
18914
|
}
|
|
18839
18915
|
return s0;
|
|
18840
18916
|
}
|
|
18917
|
+
function peg$parseListBaseIndent() {
|
|
18918
|
+
let s0, s1, s2, s3;
|
|
18919
|
+
s0 = peg$currPos;
|
|
18920
|
+
peg$silentFails++;
|
|
18921
|
+
s1 = peg$currPos;
|
|
18922
|
+
s2 = [];
|
|
18923
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18924
|
+
s3 = peg$c0;
|
|
18925
|
+
peg$currPos++;
|
|
18926
|
+
} else {
|
|
18927
|
+
s3 = peg$FAILED;
|
|
18928
|
+
if (peg$silentFails === 0) {
|
|
18929
|
+
peg$fail(peg$e2);
|
|
18930
|
+
}
|
|
18931
|
+
}
|
|
18932
|
+
while (s3 !== peg$FAILED) {
|
|
18933
|
+
s2.push(s3);
|
|
18934
|
+
if (input.charCodeAt(peg$currPos) === 9) {
|
|
18935
|
+
s3 = peg$c0;
|
|
18936
|
+
peg$currPos++;
|
|
18937
|
+
} else {
|
|
18938
|
+
s3 = peg$FAILED;
|
|
18939
|
+
if (peg$silentFails === 0) {
|
|
18940
|
+
peg$fail(peg$e2);
|
|
18941
|
+
}
|
|
18942
|
+
}
|
|
18943
|
+
}
|
|
18944
|
+
s3 = peg$parseListTags();
|
|
18945
|
+
if (s3 !== peg$FAILED) {
|
|
18946
|
+
peg$savedPos = s1;
|
|
18947
|
+
s1 = peg$f23(s2);
|
|
18948
|
+
} else {
|
|
18949
|
+
peg$currPos = s1;
|
|
18950
|
+
s1 = peg$FAILED;
|
|
18951
|
+
}
|
|
18952
|
+
peg$silentFails--;
|
|
18953
|
+
if (s1 !== peg$FAILED) {
|
|
18954
|
+
peg$currPos = s0;
|
|
18955
|
+
s0 = void 0;
|
|
18956
|
+
} else {
|
|
18957
|
+
s0 = peg$FAILED;
|
|
18958
|
+
}
|
|
18959
|
+
return s0;
|
|
18960
|
+
}
|
|
18841
18961
|
function peg$parseBulletListContainer() {
|
|
18842
|
-
let s0, s1, s2;
|
|
18962
|
+
let s0, s1, s2, s3, s4;
|
|
18843
18963
|
s0 = peg$currPos;
|
|
18844
18964
|
s1 = peg$currPos;
|
|
18845
18965
|
peg$silentFails++;
|
|
18846
|
-
s2 = peg$
|
|
18966
|
+
s2 = peg$currPos;
|
|
18967
|
+
s3 = peg$parseSAMEDENT();
|
|
18968
|
+
if (s3 !== peg$FAILED) {
|
|
18969
|
+
s4 = peg$parseBulletListTag();
|
|
18970
|
+
if (s4 !== peg$FAILED) {
|
|
18971
|
+
s3 = [s3, s4];
|
|
18972
|
+
s2 = s3;
|
|
18973
|
+
} else {
|
|
18974
|
+
peg$currPos = s2;
|
|
18975
|
+
s2 = peg$FAILED;
|
|
18976
|
+
}
|
|
18977
|
+
} else {
|
|
18978
|
+
peg$currPos = s2;
|
|
18979
|
+
s2 = peg$FAILED;
|
|
18980
|
+
}
|
|
18847
18981
|
peg$silentFails--;
|
|
18848
18982
|
if (s2 !== peg$FAILED) {
|
|
18849
18983
|
peg$currPos = s1;
|
|
@@ -18853,17 +18987,31 @@ function peg$parse(input, options) {
|
|
|
18853
18987
|
}
|
|
18854
18988
|
if (s1 !== peg$FAILED) {
|
|
18855
18989
|
peg$savedPos = s0;
|
|
18856
|
-
s1 = peg$
|
|
18990
|
+
s1 = peg$f24();
|
|
18857
18991
|
}
|
|
18858
18992
|
s0 = s1;
|
|
18859
18993
|
return s0;
|
|
18860
18994
|
}
|
|
18861
18995
|
function peg$parseNoBulletListContainer() {
|
|
18862
|
-
let s0, s1, s2;
|
|
18996
|
+
let s0, s1, s2, s3, s4;
|
|
18863
18997
|
s0 = peg$currPos;
|
|
18864
18998
|
s1 = peg$currPos;
|
|
18865
18999
|
peg$silentFails++;
|
|
18866
|
-
s2 = peg$
|
|
19000
|
+
s2 = peg$currPos;
|
|
19001
|
+
s3 = peg$parseSAMEDENT();
|
|
19002
|
+
if (s3 !== peg$FAILED) {
|
|
19003
|
+
s4 = peg$parseNoBulletListTag();
|
|
19004
|
+
if (s4 !== peg$FAILED) {
|
|
19005
|
+
s3 = [s3, s4];
|
|
19006
|
+
s2 = s3;
|
|
19007
|
+
} else {
|
|
19008
|
+
peg$currPos = s2;
|
|
19009
|
+
s2 = peg$FAILED;
|
|
19010
|
+
}
|
|
19011
|
+
} else {
|
|
19012
|
+
peg$currPos = s2;
|
|
19013
|
+
s2 = peg$FAILED;
|
|
19014
|
+
}
|
|
18867
19015
|
peg$silentFails--;
|
|
18868
19016
|
if (s2 !== peg$FAILED) {
|
|
18869
19017
|
peg$currPos = s1;
|
|
@@ -18873,17 +19021,31 @@ function peg$parse(input, options) {
|
|
|
18873
19021
|
}
|
|
18874
19022
|
if (s1 !== peg$FAILED) {
|
|
18875
19023
|
peg$savedPos = s0;
|
|
18876
|
-
s1 = peg$
|
|
19024
|
+
s1 = peg$f25();
|
|
18877
19025
|
}
|
|
18878
19026
|
s0 = s1;
|
|
18879
19027
|
return s0;
|
|
18880
19028
|
}
|
|
18881
19029
|
function peg$parseOrderedListContainer() {
|
|
18882
|
-
let s0, s1, s2;
|
|
19030
|
+
let s0, s1, s2, s3, s4;
|
|
18883
19031
|
s0 = peg$currPos;
|
|
18884
19032
|
s1 = peg$currPos;
|
|
18885
19033
|
peg$silentFails++;
|
|
18886
|
-
s2 = peg$
|
|
19034
|
+
s2 = peg$currPos;
|
|
19035
|
+
s3 = peg$parseSAMEDENT();
|
|
19036
|
+
if (s3 !== peg$FAILED) {
|
|
19037
|
+
s4 = peg$parseOrderedListTag();
|
|
19038
|
+
if (s4 !== peg$FAILED) {
|
|
19039
|
+
s3 = [s3, s4];
|
|
19040
|
+
s2 = s3;
|
|
19041
|
+
} else {
|
|
19042
|
+
peg$currPos = s2;
|
|
19043
|
+
s2 = peg$FAILED;
|
|
19044
|
+
}
|
|
19045
|
+
} else {
|
|
19046
|
+
peg$currPos = s2;
|
|
19047
|
+
s2 = peg$FAILED;
|
|
19048
|
+
}
|
|
18887
19049
|
peg$silentFails--;
|
|
18888
19050
|
if (s2 !== peg$FAILED) {
|
|
18889
19051
|
peg$currPos = s1;
|
|
@@ -18893,17 +19055,31 @@ function peg$parse(input, options) {
|
|
|
18893
19055
|
}
|
|
18894
19056
|
if (s1 !== peg$FAILED) {
|
|
18895
19057
|
peg$savedPos = s0;
|
|
18896
|
-
s1 = peg$
|
|
19058
|
+
s1 = peg$f26();
|
|
18897
19059
|
}
|
|
18898
19060
|
s0 = s1;
|
|
18899
19061
|
return s0;
|
|
18900
19062
|
}
|
|
18901
19063
|
function peg$parseOrderedListRomanContainer() {
|
|
18902
|
-
let s0, s1, s2;
|
|
19064
|
+
let s0, s1, s2, s3, s4;
|
|
18903
19065
|
s0 = peg$currPos;
|
|
18904
19066
|
s1 = peg$currPos;
|
|
18905
19067
|
peg$silentFails++;
|
|
18906
|
-
s2 = peg$
|
|
19068
|
+
s2 = peg$currPos;
|
|
19069
|
+
s3 = peg$parseSAMEDENT();
|
|
19070
|
+
if (s3 !== peg$FAILED) {
|
|
19071
|
+
s4 = peg$parseOrderedListRomanTag();
|
|
19072
|
+
if (s4 !== peg$FAILED) {
|
|
19073
|
+
s3 = [s3, s4];
|
|
19074
|
+
s2 = s3;
|
|
19075
|
+
} else {
|
|
19076
|
+
peg$currPos = s2;
|
|
19077
|
+
s2 = peg$FAILED;
|
|
19078
|
+
}
|
|
19079
|
+
} else {
|
|
19080
|
+
peg$currPos = s2;
|
|
19081
|
+
s2 = peg$FAILED;
|
|
19082
|
+
}
|
|
18907
19083
|
peg$silentFails--;
|
|
18908
19084
|
if (s2 !== peg$FAILED) {
|
|
18909
19085
|
peg$currPos = s1;
|
|
@@ -18913,17 +19089,31 @@ function peg$parse(input, options) {
|
|
|
18913
19089
|
}
|
|
18914
19090
|
if (s1 !== peg$FAILED) {
|
|
18915
19091
|
peg$savedPos = s0;
|
|
18916
|
-
s1 = peg$
|
|
19092
|
+
s1 = peg$f27();
|
|
18917
19093
|
}
|
|
18918
19094
|
s0 = s1;
|
|
18919
19095
|
return s0;
|
|
18920
19096
|
}
|
|
18921
19097
|
function peg$parseOrderedListRomanLowerContainer() {
|
|
18922
|
-
let s0, s1, s2;
|
|
19098
|
+
let s0, s1, s2, s3, s4;
|
|
18923
19099
|
s0 = peg$currPos;
|
|
18924
19100
|
s1 = peg$currPos;
|
|
18925
19101
|
peg$silentFails++;
|
|
18926
|
-
s2 = peg$
|
|
19102
|
+
s2 = peg$currPos;
|
|
19103
|
+
s3 = peg$parseSAMEDENT();
|
|
19104
|
+
if (s3 !== peg$FAILED) {
|
|
19105
|
+
s4 = peg$parseOrderedListRomanLowerTag();
|
|
19106
|
+
if (s4 !== peg$FAILED) {
|
|
19107
|
+
s3 = [s3, s4];
|
|
19108
|
+
s2 = s3;
|
|
19109
|
+
} else {
|
|
19110
|
+
peg$currPos = s2;
|
|
19111
|
+
s2 = peg$FAILED;
|
|
19112
|
+
}
|
|
19113
|
+
} else {
|
|
19114
|
+
peg$currPos = s2;
|
|
19115
|
+
s2 = peg$FAILED;
|
|
19116
|
+
}
|
|
18927
19117
|
peg$silentFails--;
|
|
18928
19118
|
if (s2 !== peg$FAILED) {
|
|
18929
19119
|
peg$currPos = s1;
|
|
@@ -18933,17 +19123,31 @@ function peg$parse(input, options) {
|
|
|
18933
19123
|
}
|
|
18934
19124
|
if (s1 !== peg$FAILED) {
|
|
18935
19125
|
peg$savedPos = s0;
|
|
18936
|
-
s1 = peg$
|
|
19126
|
+
s1 = peg$f28();
|
|
18937
19127
|
}
|
|
18938
19128
|
s0 = s1;
|
|
18939
19129
|
return s0;
|
|
18940
19130
|
}
|
|
18941
19131
|
function peg$parseLetteredListContainer() {
|
|
18942
|
-
let s0, s1, s2;
|
|
19132
|
+
let s0, s1, s2, s3, s4;
|
|
18943
19133
|
s0 = peg$currPos;
|
|
18944
19134
|
s1 = peg$currPos;
|
|
18945
19135
|
peg$silentFails++;
|
|
18946
|
-
s2 = peg$
|
|
19136
|
+
s2 = peg$currPos;
|
|
19137
|
+
s3 = peg$parseSAMEDENT();
|
|
19138
|
+
if (s3 !== peg$FAILED) {
|
|
19139
|
+
s4 = peg$parseLetteredListTag();
|
|
19140
|
+
if (s4 !== peg$FAILED) {
|
|
19141
|
+
s3 = [s3, s4];
|
|
19142
|
+
s2 = s3;
|
|
19143
|
+
} else {
|
|
19144
|
+
peg$currPos = s2;
|
|
19145
|
+
s2 = peg$FAILED;
|
|
19146
|
+
}
|
|
19147
|
+
} else {
|
|
19148
|
+
peg$currPos = s2;
|
|
19149
|
+
s2 = peg$FAILED;
|
|
19150
|
+
}
|
|
18947
19151
|
peg$silentFails--;
|
|
18948
19152
|
if (s2 !== peg$FAILED) {
|
|
18949
19153
|
peg$currPos = s1;
|
|
@@ -18953,17 +19157,31 @@ function peg$parse(input, options) {
|
|
|
18953
19157
|
}
|
|
18954
19158
|
if (s1 !== peg$FAILED) {
|
|
18955
19159
|
peg$savedPos = s0;
|
|
18956
|
-
s1 = peg$
|
|
19160
|
+
s1 = peg$f29();
|
|
18957
19161
|
}
|
|
18958
19162
|
s0 = s1;
|
|
18959
19163
|
return s0;
|
|
18960
19164
|
}
|
|
18961
19165
|
function peg$parseLetteredListLowerContainer() {
|
|
18962
|
-
let s0, s1, s2;
|
|
19166
|
+
let s0, s1, s2, s3, s4;
|
|
18963
19167
|
s0 = peg$currPos;
|
|
18964
19168
|
s1 = peg$currPos;
|
|
18965
19169
|
peg$silentFails++;
|
|
18966
|
-
s2 = peg$
|
|
19170
|
+
s2 = peg$currPos;
|
|
19171
|
+
s3 = peg$parseSAMEDENT();
|
|
19172
|
+
if (s3 !== peg$FAILED) {
|
|
19173
|
+
s4 = peg$parseLetteredListLowerTag();
|
|
19174
|
+
if (s4 !== peg$FAILED) {
|
|
19175
|
+
s3 = [s3, s4];
|
|
19176
|
+
s2 = s3;
|
|
19177
|
+
} else {
|
|
19178
|
+
peg$currPos = s2;
|
|
19179
|
+
s2 = peg$FAILED;
|
|
19180
|
+
}
|
|
19181
|
+
} else {
|
|
19182
|
+
peg$currPos = s2;
|
|
19183
|
+
s2 = peg$FAILED;
|
|
19184
|
+
}
|
|
18967
19185
|
peg$silentFails--;
|
|
18968
19186
|
if (s2 !== peg$FAILED) {
|
|
18969
19187
|
peg$currPos = s1;
|
|
@@ -18973,17 +19191,31 @@ function peg$parse(input, options) {
|
|
|
18973
19191
|
}
|
|
18974
19192
|
if (s1 !== peg$FAILED) {
|
|
18975
19193
|
peg$savedPos = s0;
|
|
18976
|
-
s1 = peg$
|
|
19194
|
+
s1 = peg$f30();
|
|
18977
19195
|
}
|
|
18978
19196
|
s0 = s1;
|
|
18979
19197
|
return s0;
|
|
18980
19198
|
}
|
|
18981
19199
|
function peg$parseTaskListContainer() {
|
|
18982
|
-
let s0, s1, s2;
|
|
19200
|
+
let s0, s1, s2, s3, s4;
|
|
18983
19201
|
s0 = peg$currPos;
|
|
18984
19202
|
s1 = peg$currPos;
|
|
18985
19203
|
peg$silentFails++;
|
|
18986
|
-
s2 = peg$
|
|
19204
|
+
s2 = peg$currPos;
|
|
19205
|
+
s3 = peg$parseSAMEDENT();
|
|
19206
|
+
if (s3 !== peg$FAILED) {
|
|
19207
|
+
s4 = peg$parseTaskListTag();
|
|
19208
|
+
if (s4 !== peg$FAILED) {
|
|
19209
|
+
s3 = [s3, s4];
|
|
19210
|
+
s2 = s3;
|
|
19211
|
+
} else {
|
|
19212
|
+
peg$currPos = s2;
|
|
19213
|
+
s2 = peg$FAILED;
|
|
19214
|
+
}
|
|
19215
|
+
} else {
|
|
19216
|
+
peg$currPos = s2;
|
|
19217
|
+
s2 = peg$FAILED;
|
|
19218
|
+
}
|
|
18987
19219
|
peg$silentFails--;
|
|
18988
19220
|
if (s2 !== peg$FAILED) {
|
|
18989
19221
|
peg$currPos = s1;
|
|
@@ -18993,7 +19225,7 @@ function peg$parse(input, options) {
|
|
|
18993
19225
|
}
|
|
18994
19226
|
if (s1 !== peg$FAILED) {
|
|
18995
19227
|
peg$savedPos = s0;
|
|
18996
|
-
s1 = peg$
|
|
19228
|
+
s1 = peg$f31();
|
|
18997
19229
|
}
|
|
18998
19230
|
s0 = s1;
|
|
18999
19231
|
return s0;
|
|
@@ -19100,7 +19332,7 @@ function peg$parse(input, options) {
|
|
|
19100
19332
|
s8 = peg$parseDEDENT();
|
|
19101
19333
|
if (s8 !== peg$FAILED) {
|
|
19102
19334
|
peg$savedPos = s5;
|
|
19103
|
-
s5 = peg$
|
|
19335
|
+
s5 = peg$f32(s2, s3, s4, s7);
|
|
19104
19336
|
} else {
|
|
19105
19337
|
peg$currPos = s5;
|
|
19106
19338
|
s5 = peg$FAILED;
|
|
@@ -19113,7 +19345,7 @@ function peg$parse(input, options) {
|
|
|
19113
19345
|
s5 = null;
|
|
19114
19346
|
}
|
|
19115
19347
|
peg$savedPos = s0;
|
|
19116
|
-
s0 = peg$
|
|
19348
|
+
s0 = peg$f33(s2, s3, s4, s5);
|
|
19117
19349
|
} else {
|
|
19118
19350
|
peg$currPos = s0;
|
|
19119
19351
|
s0 = peg$FAILED;
|
|
@@ -19245,7 +19477,7 @@ function peg$parse(input, options) {
|
|
|
19245
19477
|
}
|
|
19246
19478
|
if (s4 !== peg$FAILED) {
|
|
19247
19479
|
peg$savedPos = s0;
|
|
19248
|
-
s0 = peg$
|
|
19480
|
+
s0 = peg$f34(s4);
|
|
19249
19481
|
} else {
|
|
19250
19482
|
peg$currPos = s0;
|
|
19251
19483
|
s0 = peg$FAILED;
|
|
@@ -19274,7 +19506,7 @@ function peg$parse(input, options) {
|
|
|
19274
19506
|
} else {
|
|
19275
19507
|
s2 = peg$FAILED;
|
|
19276
19508
|
if (peg$silentFails === 0) {
|
|
19277
|
-
peg$fail(peg$
|
|
19509
|
+
peg$fail(peg$e8);
|
|
19278
19510
|
}
|
|
19279
19511
|
}
|
|
19280
19512
|
while (s2 !== peg$FAILED) {
|
|
@@ -19285,7 +19517,7 @@ function peg$parse(input, options) {
|
|
|
19285
19517
|
} else {
|
|
19286
19518
|
s2 = peg$FAILED;
|
|
19287
19519
|
if (peg$silentFails === 0) {
|
|
19288
|
-
peg$fail(peg$
|
|
19520
|
+
peg$fail(peg$e8);
|
|
19289
19521
|
}
|
|
19290
19522
|
}
|
|
19291
19523
|
}
|
|
@@ -19304,28 +19536,28 @@ function peg$parse(input, options) {
|
|
|
19304
19536
|
s0 = peg$currPos;
|
|
19305
19537
|
s1 = [];
|
|
19306
19538
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19307
|
-
s2 = peg$
|
|
19539
|
+
s2 = peg$c0;
|
|
19308
19540
|
peg$currPos++;
|
|
19309
19541
|
} else {
|
|
19310
19542
|
s2 = peg$FAILED;
|
|
19311
19543
|
if (peg$silentFails === 0) {
|
|
19312
|
-
peg$fail(peg$
|
|
19544
|
+
peg$fail(peg$e2);
|
|
19313
19545
|
}
|
|
19314
19546
|
}
|
|
19315
19547
|
while (s2 !== peg$FAILED) {
|
|
19316
19548
|
s1.push(s2);
|
|
19317
19549
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19318
|
-
s2 = peg$
|
|
19550
|
+
s2 = peg$c0;
|
|
19319
19551
|
peg$currPos++;
|
|
19320
19552
|
} else {
|
|
19321
19553
|
s2 = peg$FAILED;
|
|
19322
19554
|
if (peg$silentFails === 0) {
|
|
19323
|
-
peg$fail(peg$
|
|
19555
|
+
peg$fail(peg$e2);
|
|
19324
19556
|
}
|
|
19325
19557
|
}
|
|
19326
19558
|
}
|
|
19327
19559
|
peg$savedPos = peg$currPos;
|
|
19328
|
-
s2 = peg$
|
|
19560
|
+
s2 = peg$f35(s1);
|
|
19329
19561
|
if (s2) {
|
|
19330
19562
|
s2 = void 0;
|
|
19331
19563
|
} else {
|
|
@@ -19347,24 +19579,24 @@ function peg$parse(input, options) {
|
|
|
19347
19579
|
s1 = peg$currPos;
|
|
19348
19580
|
s2 = [];
|
|
19349
19581
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19350
|
-
s3 = peg$
|
|
19582
|
+
s3 = peg$c0;
|
|
19351
19583
|
peg$currPos++;
|
|
19352
19584
|
} else {
|
|
19353
19585
|
s3 = peg$FAILED;
|
|
19354
19586
|
if (peg$silentFails === 0) {
|
|
19355
|
-
peg$fail(peg$
|
|
19587
|
+
peg$fail(peg$e2);
|
|
19356
19588
|
}
|
|
19357
19589
|
}
|
|
19358
19590
|
if (s3 !== peg$FAILED) {
|
|
19359
19591
|
while (s3 !== peg$FAILED) {
|
|
19360
19592
|
s2.push(s3);
|
|
19361
19593
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
19362
|
-
s3 = peg$
|
|
19594
|
+
s3 = peg$c0;
|
|
19363
19595
|
peg$currPos++;
|
|
19364
19596
|
} else {
|
|
19365
19597
|
s3 = peg$FAILED;
|
|
19366
19598
|
if (peg$silentFails === 0) {
|
|
19367
|
-
peg$fail(peg$
|
|
19599
|
+
peg$fail(peg$e2);
|
|
19368
19600
|
}
|
|
19369
19601
|
}
|
|
19370
19602
|
}
|
|
@@ -19373,7 +19605,7 @@ function peg$parse(input, options) {
|
|
|
19373
19605
|
}
|
|
19374
19606
|
if (s2 !== peg$FAILED) {
|
|
19375
19607
|
peg$savedPos = peg$currPos;
|
|
19376
|
-
s3 = peg$
|
|
19608
|
+
s3 = peg$f36(s2);
|
|
19377
19609
|
if (s3) {
|
|
19378
19610
|
s3 = void 0;
|
|
19379
19611
|
} else {
|
|
@@ -19381,7 +19613,7 @@ function peg$parse(input, options) {
|
|
|
19381
19613
|
}
|
|
19382
19614
|
if (s3 !== peg$FAILED) {
|
|
19383
19615
|
peg$savedPos = s1;
|
|
19384
|
-
s1 = peg$
|
|
19616
|
+
s1 = peg$f37(s2);
|
|
19385
19617
|
} else {
|
|
19386
19618
|
peg$currPos = s1;
|
|
19387
19619
|
s1 = peg$FAILED;
|
|
@@ -19402,7 +19634,7 @@ function peg$parse(input, options) {
|
|
|
19402
19634
|
function peg$parseDEDENT() {
|
|
19403
19635
|
let s0;
|
|
19404
19636
|
peg$savedPos = peg$currPos;
|
|
19405
|
-
s0 = peg$
|
|
19637
|
+
s0 = peg$f38();
|
|
19406
19638
|
if (s0) {
|
|
19407
19639
|
s0 = void 0;
|
|
19408
19640
|
} else {
|
|
@@ -19427,7 +19659,7 @@ function peg$parse(input, options) {
|
|
|
19427
19659
|
s2 = peg$parseParagraphBody();
|
|
19428
19660
|
if (s2 !== peg$FAILED) {
|
|
19429
19661
|
peg$savedPos = s0;
|
|
19430
|
-
s0 = peg$
|
|
19662
|
+
s0 = peg$f39(s2);
|
|
19431
19663
|
} else {
|
|
19432
19664
|
peg$currPos = s0;
|
|
19433
19665
|
s0 = peg$FAILED;
|
|
@@ -19443,7 +19675,7 @@ function peg$parse(input, options) {
|
|
|
19443
19675
|
s2 = peg$parseParagraphBody();
|
|
19444
19676
|
if (s2 !== peg$FAILED) {
|
|
19445
19677
|
peg$savedPos = s0;
|
|
19446
|
-
s0 = peg$
|
|
19678
|
+
s0 = peg$f40(s2);
|
|
19447
19679
|
} else {
|
|
19448
19680
|
peg$currPos = s0;
|
|
19449
19681
|
s0 = peg$FAILED;
|
|
@@ -19458,7 +19690,7 @@ function peg$parse(input, options) {
|
|
|
19458
19690
|
if (s1 !== peg$FAILED) {
|
|
19459
19691
|
s2 = "";
|
|
19460
19692
|
peg$savedPos = s0;
|
|
19461
|
-
s0 = peg$
|
|
19693
|
+
s0 = peg$f41(s2);
|
|
19462
19694
|
} else {
|
|
19463
19695
|
peg$currPos = s0;
|
|
19464
19696
|
s0 = peg$FAILED;
|
|
@@ -19561,7 +19793,7 @@ function peg$parse(input, options) {
|
|
|
19561
19793
|
} else {
|
|
19562
19794
|
s5 = peg$FAILED;
|
|
19563
19795
|
if (peg$silentFails === 0) {
|
|
19564
|
-
peg$fail(peg$
|
|
19796
|
+
peg$fail(peg$e8);
|
|
19565
19797
|
}
|
|
19566
19798
|
}
|
|
19567
19799
|
while (s5 !== peg$FAILED) {
|
|
@@ -19572,7 +19804,7 @@ function peg$parse(input, options) {
|
|
|
19572
19804
|
} else {
|
|
19573
19805
|
s5 = peg$FAILED;
|
|
19574
19806
|
if (peg$silentFails === 0) {
|
|
19575
|
-
peg$fail(peg$
|
|
19807
|
+
peg$fail(peg$e8);
|
|
19576
19808
|
}
|
|
19577
19809
|
}
|
|
19578
19810
|
}
|
|
@@ -19627,7 +19859,7 @@ function peg$parse(input, options) {
|
|
|
19627
19859
|
s2 = peg$parseImageType();
|
|
19628
19860
|
if (s2 !== peg$FAILED) {
|
|
19629
19861
|
peg$savedPos = s0;
|
|
19630
|
-
s0 = peg$
|
|
19862
|
+
s0 = peg$f42(s2);
|
|
19631
19863
|
} else {
|
|
19632
19864
|
peg$currPos = s0;
|
|
19633
19865
|
s0 = peg$FAILED;
|
|
@@ -19644,22 +19876,22 @@ function peg$parse(input, options) {
|
|
|
19644
19876
|
s1 = peg$parseImageTag();
|
|
19645
19877
|
if (s1 !== peg$FAILED) {
|
|
19646
19878
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19647
|
-
s2 = peg$
|
|
19879
|
+
s2 = peg$c6;
|
|
19648
19880
|
peg$currPos++;
|
|
19649
19881
|
} else {
|
|
19650
19882
|
s2 = peg$FAILED;
|
|
19651
19883
|
if (peg$silentFails === 0) {
|
|
19652
|
-
peg$fail(peg$
|
|
19884
|
+
peg$fail(peg$e9);
|
|
19653
19885
|
}
|
|
19654
19886
|
}
|
|
19655
19887
|
if (s2 !== peg$FAILED) {
|
|
19656
19888
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19657
|
-
s3 = peg$
|
|
19889
|
+
s3 = peg$c13;
|
|
19658
19890
|
peg$currPos++;
|
|
19659
19891
|
} else {
|
|
19660
19892
|
s3 = peg$FAILED;
|
|
19661
19893
|
if (peg$silentFails === 0) {
|
|
19662
|
-
peg$fail(peg$
|
|
19894
|
+
peg$fail(peg$e17);
|
|
19663
19895
|
}
|
|
19664
19896
|
}
|
|
19665
19897
|
if (s3 === peg$FAILED) {
|
|
@@ -19669,23 +19901,23 @@ function peg$parse(input, options) {
|
|
|
19669
19901
|
if (s4 !== peg$FAILED) {
|
|
19670
19902
|
s5 = [];
|
|
19671
19903
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19672
|
-
s6 = peg$
|
|
19904
|
+
s6 = peg$c13;
|
|
19673
19905
|
peg$currPos++;
|
|
19674
19906
|
} else {
|
|
19675
19907
|
s6 = peg$FAILED;
|
|
19676
19908
|
if (peg$silentFails === 0) {
|
|
19677
|
-
peg$fail(peg$
|
|
19909
|
+
peg$fail(peg$e17);
|
|
19678
19910
|
}
|
|
19679
19911
|
}
|
|
19680
19912
|
while (s6 !== peg$FAILED) {
|
|
19681
19913
|
s5.push(s6);
|
|
19682
19914
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19683
|
-
s6 = peg$
|
|
19915
|
+
s6 = peg$c13;
|
|
19684
19916
|
peg$currPos++;
|
|
19685
19917
|
} else {
|
|
19686
19918
|
s6 = peg$FAILED;
|
|
19687
19919
|
if (peg$silentFails === 0) {
|
|
19688
|
-
peg$fail(peg$
|
|
19920
|
+
peg$fail(peg$e17);
|
|
19689
19921
|
}
|
|
19690
19922
|
}
|
|
19691
19923
|
}
|
|
@@ -19701,7 +19933,7 @@ function peg$parse(input, options) {
|
|
|
19701
19933
|
} else {
|
|
19702
19934
|
s11 = peg$FAILED;
|
|
19703
19935
|
if (peg$silentFails === 0) {
|
|
19704
|
-
peg$fail(peg$
|
|
19936
|
+
peg$fail(peg$e8);
|
|
19705
19937
|
}
|
|
19706
19938
|
}
|
|
19707
19939
|
while (s11 !== peg$FAILED) {
|
|
@@ -19712,7 +19944,7 @@ function peg$parse(input, options) {
|
|
|
19712
19944
|
} else {
|
|
19713
19945
|
s11 = peg$FAILED;
|
|
19714
19946
|
if (peg$silentFails === 0) {
|
|
19715
|
-
peg$fail(peg$
|
|
19947
|
+
peg$fail(peg$e8);
|
|
19716
19948
|
}
|
|
19717
19949
|
}
|
|
19718
19950
|
}
|
|
@@ -19735,7 +19967,7 @@ function peg$parse(input, options) {
|
|
|
19735
19967
|
s9 = null;
|
|
19736
19968
|
}
|
|
19737
19969
|
peg$savedPos = s0;
|
|
19738
|
-
s0 = peg$
|
|
19970
|
+
s0 = peg$f43(s1, s4, s7);
|
|
19739
19971
|
} else {
|
|
19740
19972
|
peg$currPos = s0;
|
|
19741
19973
|
s0 = peg$FAILED;
|
|
@@ -19768,7 +20000,7 @@ function peg$parse(input, options) {
|
|
|
19768
20000
|
s2 = peg$parseMediaChainItem();
|
|
19769
20001
|
}
|
|
19770
20002
|
peg$savedPos = s0;
|
|
19771
|
-
s1 = peg$
|
|
20003
|
+
s1 = peg$f44(s1);
|
|
19772
20004
|
s0 = s1;
|
|
19773
20005
|
return s0;
|
|
19774
20006
|
}
|
|
@@ -19842,7 +20074,7 @@ function peg$parse(input, options) {
|
|
|
19842
20074
|
s3 = peg$parseBlockTag();
|
|
19843
20075
|
if (s3 !== peg$FAILED) {
|
|
19844
20076
|
peg$savedPos = s0;
|
|
19845
|
-
s0 = peg$
|
|
20077
|
+
s0 = peg$f45(s2);
|
|
19846
20078
|
} else {
|
|
19847
20079
|
peg$currPos = s0;
|
|
19848
20080
|
s0 = peg$FAILED;
|
|
@@ -19868,34 +20100,34 @@ function peg$parse(input, options) {
|
|
|
19868
20100
|
s2 = peg$parseMediaSizeTags();
|
|
19869
20101
|
if (s2 !== peg$FAILED) {
|
|
19870
20102
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
19871
|
-
s3 = peg$
|
|
20103
|
+
s3 = peg$c6;
|
|
19872
20104
|
peg$currPos++;
|
|
19873
20105
|
} else {
|
|
19874
20106
|
s3 = peg$FAILED;
|
|
19875
20107
|
if (peg$silentFails === 0) {
|
|
19876
|
-
peg$fail(peg$
|
|
20108
|
+
peg$fail(peg$e9);
|
|
19877
20109
|
}
|
|
19878
20110
|
}
|
|
19879
20111
|
if (s3 !== peg$FAILED) {
|
|
19880
20112
|
s4 = [];
|
|
19881
20113
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19882
|
-
s5 = peg$
|
|
20114
|
+
s5 = peg$c13;
|
|
19883
20115
|
peg$currPos++;
|
|
19884
20116
|
} else {
|
|
19885
20117
|
s5 = peg$FAILED;
|
|
19886
20118
|
if (peg$silentFails === 0) {
|
|
19887
|
-
peg$fail(peg$
|
|
20119
|
+
peg$fail(peg$e17);
|
|
19888
20120
|
}
|
|
19889
20121
|
}
|
|
19890
20122
|
while (s5 !== peg$FAILED) {
|
|
19891
20123
|
s4.push(s5);
|
|
19892
20124
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19893
|
-
s5 = peg$
|
|
20125
|
+
s5 = peg$c13;
|
|
19894
20126
|
peg$currPos++;
|
|
19895
20127
|
} else {
|
|
19896
20128
|
s5 = peg$FAILED;
|
|
19897
20129
|
if (peg$silentFails === 0) {
|
|
19898
|
-
peg$fail(peg$
|
|
20130
|
+
peg$fail(peg$e17);
|
|
19899
20131
|
}
|
|
19900
20132
|
}
|
|
19901
20133
|
}
|
|
@@ -19919,7 +20151,7 @@ function peg$parse(input, options) {
|
|
|
19919
20151
|
} else {
|
|
19920
20152
|
s9 = peg$FAILED;
|
|
19921
20153
|
if (peg$silentFails === 0) {
|
|
19922
|
-
peg$fail(peg$
|
|
20154
|
+
peg$fail(peg$e16);
|
|
19923
20155
|
}
|
|
19924
20156
|
}
|
|
19925
20157
|
if (s9 !== peg$FAILED) {
|
|
@@ -19954,7 +20186,7 @@ function peg$parse(input, options) {
|
|
|
19954
20186
|
} else {
|
|
19955
20187
|
s9 = peg$FAILED;
|
|
19956
20188
|
if (peg$silentFails === 0) {
|
|
19957
|
-
peg$fail(peg$
|
|
20189
|
+
peg$fail(peg$e16);
|
|
19958
20190
|
}
|
|
19959
20191
|
}
|
|
19960
20192
|
if (s9 !== peg$FAILED) {
|
|
@@ -19980,30 +20212,30 @@ function peg$parse(input, options) {
|
|
|
19980
20212
|
if (s5 !== peg$FAILED) {
|
|
19981
20213
|
s6 = [];
|
|
19982
20214
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19983
|
-
s7 = peg$
|
|
20215
|
+
s7 = peg$c13;
|
|
19984
20216
|
peg$currPos++;
|
|
19985
20217
|
} else {
|
|
19986
20218
|
s7 = peg$FAILED;
|
|
19987
20219
|
if (peg$silentFails === 0) {
|
|
19988
|
-
peg$fail(peg$
|
|
20220
|
+
peg$fail(peg$e17);
|
|
19989
20221
|
}
|
|
19990
20222
|
}
|
|
19991
20223
|
while (s7 !== peg$FAILED) {
|
|
19992
20224
|
s6.push(s7);
|
|
19993
20225
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
19994
|
-
s7 = peg$
|
|
20226
|
+
s7 = peg$c13;
|
|
19995
20227
|
peg$currPos++;
|
|
19996
20228
|
} else {
|
|
19997
20229
|
s7 = peg$FAILED;
|
|
19998
20230
|
if (peg$silentFails === 0) {
|
|
19999
|
-
peg$fail(peg$
|
|
20231
|
+
peg$fail(peg$e17);
|
|
20000
20232
|
}
|
|
20001
20233
|
}
|
|
20002
20234
|
}
|
|
20003
20235
|
s7 = peg$parseBlockTag();
|
|
20004
20236
|
if (s7 !== peg$FAILED) {
|
|
20005
20237
|
peg$savedPos = s0;
|
|
20006
|
-
s0 = peg$
|
|
20238
|
+
s0 = peg$f46(s2, s5);
|
|
20007
20239
|
} else {
|
|
20008
20240
|
peg$currPos = s0;
|
|
20009
20241
|
s0 = peg$FAILED;
|
|
@@ -20037,34 +20269,34 @@ function peg$parse(input, options) {
|
|
|
20037
20269
|
s2 = peg$parseMediaTextTags();
|
|
20038
20270
|
if (s2 !== peg$FAILED) {
|
|
20039
20271
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20040
|
-
s3 = peg$
|
|
20272
|
+
s3 = peg$c6;
|
|
20041
20273
|
peg$currPos++;
|
|
20042
20274
|
} else {
|
|
20043
20275
|
s3 = peg$FAILED;
|
|
20044
20276
|
if (peg$silentFails === 0) {
|
|
20045
|
-
peg$fail(peg$
|
|
20277
|
+
peg$fail(peg$e9);
|
|
20046
20278
|
}
|
|
20047
20279
|
}
|
|
20048
20280
|
if (s3 !== peg$FAILED) {
|
|
20049
20281
|
s4 = [];
|
|
20050
20282
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20051
|
-
s5 = peg$
|
|
20283
|
+
s5 = peg$c13;
|
|
20052
20284
|
peg$currPos++;
|
|
20053
20285
|
} else {
|
|
20054
20286
|
s5 = peg$FAILED;
|
|
20055
20287
|
if (peg$silentFails === 0) {
|
|
20056
|
-
peg$fail(peg$
|
|
20288
|
+
peg$fail(peg$e17);
|
|
20057
20289
|
}
|
|
20058
20290
|
}
|
|
20059
20291
|
while (s5 !== peg$FAILED) {
|
|
20060
20292
|
s4.push(s5);
|
|
20061
20293
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20062
|
-
s5 = peg$
|
|
20294
|
+
s5 = peg$c13;
|
|
20063
20295
|
peg$currPos++;
|
|
20064
20296
|
} else {
|
|
20065
20297
|
s5 = peg$FAILED;
|
|
20066
20298
|
if (peg$silentFails === 0) {
|
|
20067
|
-
peg$fail(peg$
|
|
20299
|
+
peg$fail(peg$e17);
|
|
20068
20300
|
}
|
|
20069
20301
|
}
|
|
20070
20302
|
}
|
|
@@ -20125,7 +20357,7 @@ function peg$parse(input, options) {
|
|
|
20125
20357
|
s6 = peg$parseBlockTag();
|
|
20126
20358
|
if (s6 !== peg$FAILED) {
|
|
20127
20359
|
peg$savedPos = s0;
|
|
20128
|
-
s0 = peg$
|
|
20360
|
+
s0 = peg$f47(s2, s5);
|
|
20129
20361
|
} else {
|
|
20130
20362
|
peg$currPos = s0;
|
|
20131
20363
|
s0 = peg$FAILED;
|
|
@@ -20155,34 +20387,34 @@ function peg$parse(input, options) {
|
|
|
20155
20387
|
s2 = peg$parseMediaAlignmentTags();
|
|
20156
20388
|
if (s2 !== peg$FAILED) {
|
|
20157
20389
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20158
|
-
s3 = peg$
|
|
20390
|
+
s3 = peg$c6;
|
|
20159
20391
|
peg$currPos++;
|
|
20160
20392
|
} else {
|
|
20161
20393
|
s3 = peg$FAILED;
|
|
20162
20394
|
if (peg$silentFails === 0) {
|
|
20163
|
-
peg$fail(peg$
|
|
20395
|
+
peg$fail(peg$e9);
|
|
20164
20396
|
}
|
|
20165
20397
|
}
|
|
20166
20398
|
if (s3 !== peg$FAILED) {
|
|
20167
20399
|
s4 = [];
|
|
20168
20400
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20169
|
-
s5 = peg$
|
|
20401
|
+
s5 = peg$c13;
|
|
20170
20402
|
peg$currPos++;
|
|
20171
20403
|
} else {
|
|
20172
20404
|
s5 = peg$FAILED;
|
|
20173
20405
|
if (peg$silentFails === 0) {
|
|
20174
|
-
peg$fail(peg$
|
|
20406
|
+
peg$fail(peg$e17);
|
|
20175
20407
|
}
|
|
20176
20408
|
}
|
|
20177
20409
|
while (s5 !== peg$FAILED) {
|
|
20178
20410
|
s4.push(s5);
|
|
20179
20411
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20180
|
-
s5 = peg$
|
|
20412
|
+
s5 = peg$c13;
|
|
20181
20413
|
peg$currPos++;
|
|
20182
20414
|
} else {
|
|
20183
20415
|
s5 = peg$FAILED;
|
|
20184
20416
|
if (peg$silentFails === 0) {
|
|
20185
|
-
peg$fail(peg$
|
|
20417
|
+
peg$fail(peg$e17);
|
|
20186
20418
|
}
|
|
20187
20419
|
}
|
|
20188
20420
|
}
|
|
@@ -20190,30 +20422,30 @@ function peg$parse(input, options) {
|
|
|
20190
20422
|
if (s5 !== peg$FAILED) {
|
|
20191
20423
|
s6 = [];
|
|
20192
20424
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20193
|
-
s7 = peg$
|
|
20425
|
+
s7 = peg$c13;
|
|
20194
20426
|
peg$currPos++;
|
|
20195
20427
|
} else {
|
|
20196
20428
|
s7 = peg$FAILED;
|
|
20197
20429
|
if (peg$silentFails === 0) {
|
|
20198
|
-
peg$fail(peg$
|
|
20430
|
+
peg$fail(peg$e17);
|
|
20199
20431
|
}
|
|
20200
20432
|
}
|
|
20201
20433
|
while (s7 !== peg$FAILED) {
|
|
20202
20434
|
s6.push(s7);
|
|
20203
20435
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20204
|
-
s7 = peg$
|
|
20436
|
+
s7 = peg$c13;
|
|
20205
20437
|
peg$currPos++;
|
|
20206
20438
|
} else {
|
|
20207
20439
|
s7 = peg$FAILED;
|
|
20208
20440
|
if (peg$silentFails === 0) {
|
|
20209
|
-
peg$fail(peg$
|
|
20441
|
+
peg$fail(peg$e17);
|
|
20210
20442
|
}
|
|
20211
20443
|
}
|
|
20212
20444
|
}
|
|
20213
20445
|
s7 = peg$parseBlockTag();
|
|
20214
20446
|
if (s7 !== peg$FAILED) {
|
|
20215
20447
|
peg$savedPos = s0;
|
|
20216
|
-
s0 = peg$
|
|
20448
|
+
s0 = peg$f48(s2, s5);
|
|
20217
20449
|
} else {
|
|
20218
20450
|
peg$currPos = s0;
|
|
20219
20451
|
s0 = peg$FAILED;
|
|
@@ -20247,34 +20479,34 @@ function peg$parse(input, options) {
|
|
|
20247
20479
|
s2 = peg$parseMediaBooleanTags();
|
|
20248
20480
|
if (s2 !== peg$FAILED) {
|
|
20249
20481
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
20250
|
-
s3 = peg$
|
|
20482
|
+
s3 = peg$c6;
|
|
20251
20483
|
peg$currPos++;
|
|
20252
20484
|
} else {
|
|
20253
20485
|
s3 = peg$FAILED;
|
|
20254
20486
|
if (peg$silentFails === 0) {
|
|
20255
|
-
peg$fail(peg$
|
|
20487
|
+
peg$fail(peg$e9);
|
|
20256
20488
|
}
|
|
20257
20489
|
}
|
|
20258
20490
|
if (s3 !== peg$FAILED) {
|
|
20259
20491
|
s4 = [];
|
|
20260
20492
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20261
|
-
s5 = peg$
|
|
20493
|
+
s5 = peg$c13;
|
|
20262
20494
|
peg$currPos++;
|
|
20263
20495
|
} else {
|
|
20264
20496
|
s5 = peg$FAILED;
|
|
20265
20497
|
if (peg$silentFails === 0) {
|
|
20266
|
-
peg$fail(peg$
|
|
20498
|
+
peg$fail(peg$e17);
|
|
20267
20499
|
}
|
|
20268
20500
|
}
|
|
20269
20501
|
while (s5 !== peg$FAILED) {
|
|
20270
20502
|
s4.push(s5);
|
|
20271
20503
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20272
|
-
s5 = peg$
|
|
20504
|
+
s5 = peg$c13;
|
|
20273
20505
|
peg$currPos++;
|
|
20274
20506
|
} else {
|
|
20275
20507
|
s5 = peg$FAILED;
|
|
20276
20508
|
if (peg$silentFails === 0) {
|
|
20277
|
-
peg$fail(peg$
|
|
20509
|
+
peg$fail(peg$e17);
|
|
20278
20510
|
}
|
|
20279
20511
|
}
|
|
20280
20512
|
}
|
|
@@ -20282,30 +20514,30 @@ function peg$parse(input, options) {
|
|
|
20282
20514
|
if (s5 !== peg$FAILED) {
|
|
20283
20515
|
s6 = [];
|
|
20284
20516
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20285
|
-
s7 = peg$
|
|
20517
|
+
s7 = peg$c13;
|
|
20286
20518
|
peg$currPos++;
|
|
20287
20519
|
} else {
|
|
20288
20520
|
s7 = peg$FAILED;
|
|
20289
20521
|
if (peg$silentFails === 0) {
|
|
20290
|
-
peg$fail(peg$
|
|
20522
|
+
peg$fail(peg$e17);
|
|
20291
20523
|
}
|
|
20292
20524
|
}
|
|
20293
20525
|
while (s7 !== peg$FAILED) {
|
|
20294
20526
|
s6.push(s7);
|
|
20295
20527
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20296
|
-
s7 = peg$
|
|
20528
|
+
s7 = peg$c13;
|
|
20297
20529
|
peg$currPos++;
|
|
20298
20530
|
} else {
|
|
20299
20531
|
s7 = peg$FAILED;
|
|
20300
20532
|
if (peg$silentFails === 0) {
|
|
20301
|
-
peg$fail(peg$
|
|
20533
|
+
peg$fail(peg$e17);
|
|
20302
20534
|
}
|
|
20303
20535
|
}
|
|
20304
20536
|
}
|
|
20305
20537
|
s7 = peg$parseBlockTag();
|
|
20306
20538
|
if (s7 !== peg$FAILED) {
|
|
20307
20539
|
peg$savedPos = s0;
|
|
20308
|
-
s0 = peg$
|
|
20540
|
+
s0 = peg$f49(s2, s5);
|
|
20309
20541
|
} else {
|
|
20310
20542
|
peg$currPos = s0;
|
|
20311
20543
|
s0 = peg$FAILED;
|
|
@@ -20340,30 +20572,30 @@ function peg$parse(input, options) {
|
|
|
20340
20572
|
if (s2 !== peg$FAILED) {
|
|
20341
20573
|
s3 = [];
|
|
20342
20574
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20343
|
-
s4 = peg$
|
|
20575
|
+
s4 = peg$c13;
|
|
20344
20576
|
peg$currPos++;
|
|
20345
20577
|
} else {
|
|
20346
20578
|
s4 = peg$FAILED;
|
|
20347
20579
|
if (peg$silentFails === 0) {
|
|
20348
|
-
peg$fail(peg$
|
|
20580
|
+
peg$fail(peg$e17);
|
|
20349
20581
|
}
|
|
20350
20582
|
}
|
|
20351
20583
|
while (s4 !== peg$FAILED) {
|
|
20352
20584
|
s3.push(s4);
|
|
20353
20585
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
20354
|
-
s4 = peg$
|
|
20586
|
+
s4 = peg$c13;
|
|
20355
20587
|
peg$currPos++;
|
|
20356
20588
|
} else {
|
|
20357
20589
|
s4 = peg$FAILED;
|
|
20358
20590
|
if (peg$silentFails === 0) {
|
|
20359
|
-
peg$fail(peg$
|
|
20591
|
+
peg$fail(peg$e17);
|
|
20360
20592
|
}
|
|
20361
20593
|
}
|
|
20362
20594
|
}
|
|
20363
20595
|
s4 = peg$parseBlockTag();
|
|
20364
20596
|
if (s4 !== peg$FAILED) {
|
|
20365
20597
|
peg$savedPos = s0;
|
|
20366
|
-
s0 = peg$
|
|
20598
|
+
s0 = peg$f50(s2);
|
|
20367
20599
|
} else {
|
|
20368
20600
|
peg$currPos = s0;
|
|
20369
20601
|
s0 = peg$FAILED;
|
|
@@ -20389,7 +20621,7 @@ function peg$parse(input, options) {
|
|
|
20389
20621
|
s2 = peg$parseBlockTag();
|
|
20390
20622
|
if (s2 !== peg$FAILED) {
|
|
20391
20623
|
peg$savedPos = s0;
|
|
20392
|
-
s0 = peg$
|
|
20624
|
+
s0 = peg$f51();
|
|
20393
20625
|
} else {
|
|
20394
20626
|
peg$currPos = s0;
|
|
20395
20627
|
s0 = peg$FAILED;
|
|
@@ -20465,7 +20697,7 @@ function peg$parse(input, options) {
|
|
|
20465
20697
|
s3 = peg$parseBlockTag();
|
|
20466
20698
|
if (s3 !== peg$FAILED) {
|
|
20467
20699
|
peg$savedPos = s0;
|
|
20468
|
-
s0 = peg$
|
|
20700
|
+
s0 = peg$f52(s2);
|
|
20469
20701
|
} else {
|
|
20470
20702
|
peg$currPos = s0;
|
|
20471
20703
|
s0 = peg$FAILED;
|
|
@@ -20629,7 +20861,7 @@ function peg$parse(input, options) {
|
|
|
20629
20861
|
s0 = peg$currPos;
|
|
20630
20862
|
s1 = peg$parseInlineTags();
|
|
20631
20863
|
peg$savedPos = s0;
|
|
20632
|
-
s1 = peg$
|
|
20864
|
+
s1 = peg$f53(s1);
|
|
20633
20865
|
s0 = s1;
|
|
20634
20866
|
peg$silentFails--;
|
|
20635
20867
|
return s0;
|
|
@@ -20661,7 +20893,7 @@ function peg$parse(input, options) {
|
|
|
20661
20893
|
}
|
|
20662
20894
|
}
|
|
20663
20895
|
peg$savedPos = s0;
|
|
20664
|
-
s0 = peg$
|
|
20896
|
+
s0 = peg$f54(s1, s2);
|
|
20665
20897
|
return s0;
|
|
20666
20898
|
}
|
|
20667
20899
|
function peg$parseInlinePlainText() {
|
|
@@ -20670,7 +20902,7 @@ function peg$parse(input, options) {
|
|
|
20670
20902
|
s1 = peg$parseNL();
|
|
20671
20903
|
if (s1 !== peg$FAILED) {
|
|
20672
20904
|
peg$savedPos = s0;
|
|
20673
|
-
s1 = peg$
|
|
20905
|
+
s1 = peg$f55();
|
|
20674
20906
|
}
|
|
20675
20907
|
s0 = s1;
|
|
20676
20908
|
if (s0 === peg$FAILED) {
|
|
@@ -20799,7 +21031,7 @@ function peg$parse(input, options) {
|
|
|
20799
21031
|
}
|
|
20800
21032
|
if (s1 !== peg$FAILED) {
|
|
20801
21033
|
peg$savedPos = s0;
|
|
20802
|
-
s1 = peg$
|
|
21034
|
+
s1 = peg$f56(s1);
|
|
20803
21035
|
}
|
|
20804
21036
|
s0 = s1;
|
|
20805
21037
|
}
|
|
@@ -20850,7 +21082,7 @@ function peg$parse(input, options) {
|
|
|
20850
21082
|
} else {
|
|
20851
21083
|
s4 = peg$FAILED;
|
|
20852
21084
|
if (peg$silentFails === 0) {
|
|
20853
|
-
peg$fail(peg$
|
|
21085
|
+
peg$fail(peg$e16);
|
|
20854
21086
|
}
|
|
20855
21087
|
}
|
|
20856
21088
|
if (s4 !== peg$FAILED) {
|
|
@@ -20862,7 +21094,7 @@ function peg$parse(input, options) {
|
|
|
20862
21094
|
} else {
|
|
20863
21095
|
s4 = peg$FAILED;
|
|
20864
21096
|
if (peg$silentFails === 0) {
|
|
20865
|
-
peg$fail(peg$
|
|
21097
|
+
peg$fail(peg$e16);
|
|
20866
21098
|
}
|
|
20867
21099
|
}
|
|
20868
21100
|
}
|
|
@@ -20878,7 +21110,7 @@ function peg$parse(input, options) {
|
|
|
20878
21110
|
s3 = peg$parseBodyBitCloseTag();
|
|
20879
21111
|
if (s3 !== peg$FAILED) {
|
|
20880
21112
|
peg$savedPos = s0;
|
|
20881
|
-
s0 = peg$
|
|
21113
|
+
s0 = peg$f57(s2);
|
|
20882
21114
|
} else {
|
|
20883
21115
|
peg$currPos = s0;
|
|
20884
21116
|
s0 = peg$FAILED;
|
|
@@ -20978,7 +21210,7 @@ function peg$parse(input, options) {
|
|
|
20978
21210
|
}
|
|
20979
21211
|
if (s4 !== peg$FAILED) {
|
|
20980
21212
|
peg$savedPos = s0;
|
|
20981
|
-
s0 = peg$
|
|
21213
|
+
s0 = peg$f58(s2);
|
|
20982
21214
|
} else {
|
|
20983
21215
|
peg$currPos = s0;
|
|
20984
21216
|
s0 = peg$FAILED;
|
|
@@ -21080,18 +21312,18 @@ function peg$parse(input, options) {
|
|
|
21080
21312
|
s5 = peg$parseUrl();
|
|
21081
21313
|
if (s5 !== peg$FAILED) {
|
|
21082
21314
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21083
|
-
s6 = peg$
|
|
21315
|
+
s6 = peg$c1;
|
|
21084
21316
|
peg$currPos++;
|
|
21085
21317
|
} else {
|
|
21086
21318
|
s6 = peg$FAILED;
|
|
21087
21319
|
if (peg$silentFails === 0) {
|
|
21088
|
-
peg$fail(peg$
|
|
21320
|
+
peg$fail(peg$e3);
|
|
21089
21321
|
}
|
|
21090
21322
|
}
|
|
21091
21323
|
if (s6 !== peg$FAILED) {
|
|
21092
21324
|
s7 = peg$parseInlineMediaChain();
|
|
21093
21325
|
peg$savedPos = s0;
|
|
21094
|
-
s0 = peg$
|
|
21326
|
+
s0 = peg$f59(s2, s5, s7);
|
|
21095
21327
|
} else {
|
|
21096
21328
|
peg$currPos = s0;
|
|
21097
21329
|
s0 = peg$FAILED;
|
|
@@ -21191,7 +21423,7 @@ function peg$parse(input, options) {
|
|
|
21191
21423
|
s4 = peg$parseAttrChain();
|
|
21192
21424
|
if (s4 !== peg$FAILED) {
|
|
21193
21425
|
peg$savedPos = s0;
|
|
21194
|
-
s0 = peg$
|
|
21426
|
+
s0 = peg$f60(s2, s4);
|
|
21195
21427
|
} else {
|
|
21196
21428
|
peg$currPos = s0;
|
|
21197
21429
|
s0 = peg$FAILED;
|
|
@@ -21281,7 +21513,7 @@ function peg$parse(input, options) {
|
|
|
21281
21513
|
s3 = peg$parseBoldTag();
|
|
21282
21514
|
if (s3 !== peg$FAILED) {
|
|
21283
21515
|
peg$savedPos = s0;
|
|
21284
|
-
s0 = peg$
|
|
21516
|
+
s0 = peg$f61(s2);
|
|
21285
21517
|
} else {
|
|
21286
21518
|
peg$currPos = s0;
|
|
21287
21519
|
s0 = peg$FAILED;
|
|
@@ -21367,7 +21599,7 @@ function peg$parse(input, options) {
|
|
|
21367
21599
|
s3 = peg$parseItalicTag();
|
|
21368
21600
|
if (s3 !== peg$FAILED) {
|
|
21369
21601
|
peg$savedPos = s0;
|
|
21370
|
-
s0 = peg$
|
|
21602
|
+
s0 = peg$f62(s2);
|
|
21371
21603
|
} else {
|
|
21372
21604
|
peg$currPos = s0;
|
|
21373
21605
|
s0 = peg$FAILED;
|
|
@@ -21453,7 +21685,7 @@ function peg$parse(input, options) {
|
|
|
21453
21685
|
s3 = peg$parseLightTag();
|
|
21454
21686
|
if (s3 !== peg$FAILED) {
|
|
21455
21687
|
peg$savedPos = s0;
|
|
21456
|
-
s0 = peg$
|
|
21688
|
+
s0 = peg$f63(s2);
|
|
21457
21689
|
} else {
|
|
21458
21690
|
peg$currPos = s0;
|
|
21459
21691
|
s0 = peg$FAILED;
|
|
@@ -21539,7 +21771,7 @@ function peg$parse(input, options) {
|
|
|
21539
21771
|
s3 = peg$parseHighlightTag();
|
|
21540
21772
|
if (s3 !== peg$FAILED) {
|
|
21541
21773
|
peg$savedPos = s0;
|
|
21542
|
-
s0 = peg$
|
|
21774
|
+
s0 = peg$f64(s2);
|
|
21543
21775
|
} else {
|
|
21544
21776
|
peg$currPos = s0;
|
|
21545
21777
|
s0 = peg$FAILED;
|
|
@@ -21553,7 +21785,7 @@ function peg$parse(input, options) {
|
|
|
21553
21785
|
s1 = peg$parseUrl();
|
|
21554
21786
|
if (s1 !== peg$FAILED) {
|
|
21555
21787
|
peg$savedPos = s0;
|
|
21556
|
-
s1 = peg$
|
|
21788
|
+
s1 = peg$f65(s1);
|
|
21557
21789
|
}
|
|
21558
21790
|
s0 = s1;
|
|
21559
21791
|
}
|
|
@@ -21668,12 +21900,12 @@ function peg$parse(input, options) {
|
|
|
21668
21900
|
let s0, s1, s2, s3;
|
|
21669
21901
|
s0 = peg$currPos;
|
|
21670
21902
|
if (input.charCodeAt(peg$currPos) === 124) {
|
|
21671
|
-
s1 = peg$
|
|
21903
|
+
s1 = peg$c1;
|
|
21672
21904
|
peg$currPos++;
|
|
21673
21905
|
} else {
|
|
21674
21906
|
s1 = peg$FAILED;
|
|
21675
21907
|
if (peg$silentFails === 0) {
|
|
21676
|
-
peg$fail(peg$
|
|
21908
|
+
peg$fail(peg$e3);
|
|
21677
21909
|
}
|
|
21678
21910
|
}
|
|
21679
21911
|
if (s1 !== peg$FAILED) {
|
|
@@ -21689,7 +21921,7 @@ function peg$parse(input, options) {
|
|
|
21689
21921
|
}
|
|
21690
21922
|
if (s2 !== peg$FAILED) {
|
|
21691
21923
|
peg$savedPos = s0;
|
|
21692
|
-
s0 = peg$
|
|
21924
|
+
s0 = peg$f66(s2);
|
|
21693
21925
|
} else {
|
|
21694
21926
|
peg$currPos = s0;
|
|
21695
21927
|
s0 = peg$FAILED;
|
|
@@ -21710,7 +21942,7 @@ function peg$parse(input, options) {
|
|
|
21710
21942
|
s2 = peg$parseInlineMediaChainItem();
|
|
21711
21943
|
}
|
|
21712
21944
|
peg$savedPos = s0;
|
|
21713
|
-
s1 = peg$
|
|
21945
|
+
s1 = peg$f67(s1);
|
|
21714
21946
|
s0 = s1;
|
|
21715
21947
|
return s0;
|
|
21716
21948
|
}
|
|
@@ -21784,7 +22016,7 @@ function peg$parse(input, options) {
|
|
|
21784
22016
|
s3 = peg$parseBlockTag();
|
|
21785
22017
|
if (s3 !== peg$FAILED) {
|
|
21786
22018
|
peg$savedPos = s0;
|
|
21787
|
-
s0 = peg$
|
|
22019
|
+
s0 = peg$f68(s2);
|
|
21788
22020
|
} else {
|
|
21789
22021
|
peg$currPos = s0;
|
|
21790
22022
|
s0 = peg$FAILED;
|
|
@@ -21818,34 +22050,34 @@ function peg$parse(input, options) {
|
|
|
21818
22050
|
}
|
|
21819
22051
|
if (s2 !== peg$FAILED) {
|
|
21820
22052
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21821
|
-
s3 = peg$
|
|
22053
|
+
s3 = peg$c6;
|
|
21822
22054
|
peg$currPos++;
|
|
21823
22055
|
} else {
|
|
21824
22056
|
s3 = peg$FAILED;
|
|
21825
22057
|
if (peg$silentFails === 0) {
|
|
21826
|
-
peg$fail(peg$
|
|
22058
|
+
peg$fail(peg$e9);
|
|
21827
22059
|
}
|
|
21828
22060
|
}
|
|
21829
22061
|
if (s3 !== peg$FAILED) {
|
|
21830
22062
|
s4 = [];
|
|
21831
22063
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21832
|
-
s5 = peg$
|
|
22064
|
+
s5 = peg$c13;
|
|
21833
22065
|
peg$currPos++;
|
|
21834
22066
|
} else {
|
|
21835
22067
|
s5 = peg$FAILED;
|
|
21836
22068
|
if (peg$silentFails === 0) {
|
|
21837
|
-
peg$fail(peg$
|
|
22069
|
+
peg$fail(peg$e17);
|
|
21838
22070
|
}
|
|
21839
22071
|
}
|
|
21840
22072
|
while (s5 !== peg$FAILED) {
|
|
21841
22073
|
s4.push(s5);
|
|
21842
22074
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21843
|
-
s5 = peg$
|
|
22075
|
+
s5 = peg$c13;
|
|
21844
22076
|
peg$currPos++;
|
|
21845
22077
|
} else {
|
|
21846
22078
|
s5 = peg$FAILED;
|
|
21847
22079
|
if (peg$silentFails === 0) {
|
|
21848
|
-
peg$fail(peg$
|
|
22080
|
+
peg$fail(peg$e17);
|
|
21849
22081
|
}
|
|
21850
22082
|
}
|
|
21851
22083
|
}
|
|
@@ -21906,7 +22138,7 @@ function peg$parse(input, options) {
|
|
|
21906
22138
|
s6 = peg$parseBlockTag();
|
|
21907
22139
|
if (s6 !== peg$FAILED) {
|
|
21908
22140
|
peg$savedPos = s0;
|
|
21909
|
-
s0 = peg$
|
|
22141
|
+
s0 = peg$f69(s2, s5);
|
|
21910
22142
|
} else {
|
|
21911
22143
|
peg$currPos = s0;
|
|
21912
22144
|
s0 = peg$FAILED;
|
|
@@ -21936,34 +22168,34 @@ function peg$parse(input, options) {
|
|
|
21936
22168
|
s2 = peg$parseMediaSizeTags();
|
|
21937
22169
|
if (s2 !== peg$FAILED) {
|
|
21938
22170
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
21939
|
-
s3 = peg$
|
|
22171
|
+
s3 = peg$c6;
|
|
21940
22172
|
peg$currPos++;
|
|
21941
22173
|
} else {
|
|
21942
22174
|
s3 = peg$FAILED;
|
|
21943
22175
|
if (peg$silentFails === 0) {
|
|
21944
|
-
peg$fail(peg$
|
|
22176
|
+
peg$fail(peg$e9);
|
|
21945
22177
|
}
|
|
21946
22178
|
}
|
|
21947
22179
|
if (s3 !== peg$FAILED) {
|
|
21948
22180
|
s4 = [];
|
|
21949
22181
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21950
|
-
s5 = peg$
|
|
22182
|
+
s5 = peg$c13;
|
|
21951
22183
|
peg$currPos++;
|
|
21952
22184
|
} else {
|
|
21953
22185
|
s5 = peg$FAILED;
|
|
21954
22186
|
if (peg$silentFails === 0) {
|
|
21955
|
-
peg$fail(peg$
|
|
22187
|
+
peg$fail(peg$e17);
|
|
21956
22188
|
}
|
|
21957
22189
|
}
|
|
21958
22190
|
while (s5 !== peg$FAILED) {
|
|
21959
22191
|
s4.push(s5);
|
|
21960
22192
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
21961
|
-
s5 = peg$
|
|
22193
|
+
s5 = peg$c13;
|
|
21962
22194
|
peg$currPos++;
|
|
21963
22195
|
} else {
|
|
21964
22196
|
s5 = peg$FAILED;
|
|
21965
22197
|
if (peg$silentFails === 0) {
|
|
21966
|
-
peg$fail(peg$
|
|
22198
|
+
peg$fail(peg$e17);
|
|
21967
22199
|
}
|
|
21968
22200
|
}
|
|
21969
22201
|
}
|
|
@@ -21987,7 +22219,7 @@ function peg$parse(input, options) {
|
|
|
21987
22219
|
} else {
|
|
21988
22220
|
s9 = peg$FAILED;
|
|
21989
22221
|
if (peg$silentFails === 0) {
|
|
21990
|
-
peg$fail(peg$
|
|
22222
|
+
peg$fail(peg$e16);
|
|
21991
22223
|
}
|
|
21992
22224
|
}
|
|
21993
22225
|
if (s9 !== peg$FAILED) {
|
|
@@ -22022,7 +22254,7 @@ function peg$parse(input, options) {
|
|
|
22022
22254
|
} else {
|
|
22023
22255
|
s9 = peg$FAILED;
|
|
22024
22256
|
if (peg$silentFails === 0) {
|
|
22025
|
-
peg$fail(peg$
|
|
22257
|
+
peg$fail(peg$e16);
|
|
22026
22258
|
}
|
|
22027
22259
|
}
|
|
22028
22260
|
if (s9 !== peg$FAILED) {
|
|
@@ -22049,7 +22281,7 @@ function peg$parse(input, options) {
|
|
|
22049
22281
|
s6 = peg$parseBlockTag();
|
|
22050
22282
|
if (s6 !== peg$FAILED) {
|
|
22051
22283
|
peg$savedPos = s0;
|
|
22052
|
-
s0 = peg$
|
|
22284
|
+
s0 = peg$f70(s2, s5);
|
|
22053
22285
|
} else {
|
|
22054
22286
|
peg$currPos = s0;
|
|
22055
22287
|
s0 = peg$FAILED;
|
|
@@ -22083,34 +22315,34 @@ function peg$parse(input, options) {
|
|
|
22083
22315
|
s2 = peg$parseMediaSizeTags();
|
|
22084
22316
|
if (s2 !== peg$FAILED) {
|
|
22085
22317
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22086
|
-
s3 = peg$
|
|
22318
|
+
s3 = peg$c6;
|
|
22087
22319
|
peg$currPos++;
|
|
22088
22320
|
} else {
|
|
22089
22321
|
s3 = peg$FAILED;
|
|
22090
22322
|
if (peg$silentFails === 0) {
|
|
22091
|
-
peg$fail(peg$
|
|
22323
|
+
peg$fail(peg$e9);
|
|
22092
22324
|
}
|
|
22093
22325
|
}
|
|
22094
22326
|
if (s3 !== peg$FAILED) {
|
|
22095
22327
|
s4 = [];
|
|
22096
22328
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22097
|
-
s5 = peg$
|
|
22329
|
+
s5 = peg$c13;
|
|
22098
22330
|
peg$currPos++;
|
|
22099
22331
|
} else {
|
|
22100
22332
|
s5 = peg$FAILED;
|
|
22101
22333
|
if (peg$silentFails === 0) {
|
|
22102
|
-
peg$fail(peg$
|
|
22334
|
+
peg$fail(peg$e17);
|
|
22103
22335
|
}
|
|
22104
22336
|
}
|
|
22105
22337
|
while (s5 !== peg$FAILED) {
|
|
22106
22338
|
s4.push(s5);
|
|
22107
22339
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22108
|
-
s5 = peg$
|
|
22340
|
+
s5 = peg$c13;
|
|
22109
22341
|
peg$currPos++;
|
|
22110
22342
|
} else {
|
|
22111
22343
|
s5 = peg$FAILED;
|
|
22112
22344
|
if (peg$silentFails === 0) {
|
|
22113
|
-
peg$fail(peg$
|
|
22345
|
+
peg$fail(peg$e17);
|
|
22114
22346
|
}
|
|
22115
22347
|
}
|
|
22116
22348
|
}
|
|
@@ -22171,7 +22403,7 @@ function peg$parse(input, options) {
|
|
|
22171
22403
|
s6 = peg$parseBlockTag();
|
|
22172
22404
|
if (s6 !== peg$FAILED) {
|
|
22173
22405
|
peg$savedPos = s0;
|
|
22174
|
-
s0 = peg$
|
|
22406
|
+
s0 = peg$f71(s2, s5);
|
|
22175
22407
|
} else {
|
|
22176
22408
|
peg$currPos = s0;
|
|
22177
22409
|
s0 = peg$FAILED;
|
|
@@ -22209,34 +22441,34 @@ function peg$parse(input, options) {
|
|
|
22209
22441
|
}
|
|
22210
22442
|
if (s2 !== peg$FAILED) {
|
|
22211
22443
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22212
|
-
s3 = peg$
|
|
22444
|
+
s3 = peg$c6;
|
|
22213
22445
|
peg$currPos++;
|
|
22214
22446
|
} else {
|
|
22215
22447
|
s3 = peg$FAILED;
|
|
22216
22448
|
if (peg$silentFails === 0) {
|
|
22217
|
-
peg$fail(peg$
|
|
22449
|
+
peg$fail(peg$e9);
|
|
22218
22450
|
}
|
|
22219
22451
|
}
|
|
22220
22452
|
if (s3 !== peg$FAILED) {
|
|
22221
22453
|
s4 = [];
|
|
22222
22454
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22223
|
-
s5 = peg$
|
|
22455
|
+
s5 = peg$c13;
|
|
22224
22456
|
peg$currPos++;
|
|
22225
22457
|
} else {
|
|
22226
22458
|
s5 = peg$FAILED;
|
|
22227
22459
|
if (peg$silentFails === 0) {
|
|
22228
|
-
peg$fail(peg$
|
|
22460
|
+
peg$fail(peg$e17);
|
|
22229
22461
|
}
|
|
22230
22462
|
}
|
|
22231
22463
|
while (s5 !== peg$FAILED) {
|
|
22232
22464
|
s4.push(s5);
|
|
22233
22465
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22234
|
-
s5 = peg$
|
|
22466
|
+
s5 = peg$c13;
|
|
22235
22467
|
peg$currPos++;
|
|
22236
22468
|
} else {
|
|
22237
22469
|
s5 = peg$FAILED;
|
|
22238
22470
|
if (peg$silentFails === 0) {
|
|
22239
|
-
peg$fail(peg$
|
|
22471
|
+
peg$fail(peg$e17);
|
|
22240
22472
|
}
|
|
22241
22473
|
}
|
|
22242
22474
|
}
|
|
@@ -22245,7 +22477,7 @@ function peg$parse(input, options) {
|
|
|
22245
22477
|
s6 = peg$parseBlockTag();
|
|
22246
22478
|
if (s6 !== peg$FAILED) {
|
|
22247
22479
|
peg$savedPos = s0;
|
|
22248
|
-
s0 = peg$
|
|
22480
|
+
s0 = peg$f72(s2, s5);
|
|
22249
22481
|
} else {
|
|
22250
22482
|
peg$currPos = s0;
|
|
22251
22483
|
s0 = peg$FAILED;
|
|
@@ -22287,34 +22519,34 @@ function peg$parse(input, options) {
|
|
|
22287
22519
|
}
|
|
22288
22520
|
if (s2 !== peg$FAILED) {
|
|
22289
22521
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
22290
|
-
s3 = peg$
|
|
22522
|
+
s3 = peg$c6;
|
|
22291
22523
|
peg$currPos++;
|
|
22292
22524
|
} else {
|
|
22293
22525
|
s3 = peg$FAILED;
|
|
22294
22526
|
if (peg$silentFails === 0) {
|
|
22295
|
-
peg$fail(peg$
|
|
22527
|
+
peg$fail(peg$e9);
|
|
22296
22528
|
}
|
|
22297
22529
|
}
|
|
22298
22530
|
if (s3 !== peg$FAILED) {
|
|
22299
22531
|
s4 = [];
|
|
22300
22532
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22301
|
-
s5 = peg$
|
|
22533
|
+
s5 = peg$c13;
|
|
22302
22534
|
peg$currPos++;
|
|
22303
22535
|
} else {
|
|
22304
22536
|
s5 = peg$FAILED;
|
|
22305
22537
|
if (peg$silentFails === 0) {
|
|
22306
|
-
peg$fail(peg$
|
|
22538
|
+
peg$fail(peg$e17);
|
|
22307
22539
|
}
|
|
22308
22540
|
}
|
|
22309
22541
|
while (s5 !== peg$FAILED) {
|
|
22310
22542
|
s4.push(s5);
|
|
22311
22543
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
22312
|
-
s5 = peg$
|
|
22544
|
+
s5 = peg$c13;
|
|
22313
22545
|
peg$currPos++;
|
|
22314
22546
|
} else {
|
|
22315
22547
|
s5 = peg$FAILED;
|
|
22316
22548
|
if (peg$silentFails === 0) {
|
|
22317
|
-
peg$fail(peg$
|
|
22549
|
+
peg$fail(peg$e17);
|
|
22318
22550
|
}
|
|
22319
22551
|
}
|
|
22320
22552
|
}
|
|
@@ -22323,7 +22555,7 @@ function peg$parse(input, options) {
|
|
|
22323
22555
|
s6 = peg$parseBlockTag();
|
|
22324
22556
|
if (s6 !== peg$FAILED) {
|
|
22325
22557
|
peg$savedPos = s0;
|
|
22326
|
-
s0 = peg$
|
|
22558
|
+
s0 = peg$f73(s2, s5);
|
|
22327
22559
|
} else {
|
|
22328
22560
|
peg$currPos = s0;
|
|
22329
22561
|
s0 = peg$FAILED;
|
|
@@ -22564,7 +22796,7 @@ function peg$parse(input, options) {
|
|
|
22564
22796
|
s3 = peg$parseBlockTag();
|
|
22565
22797
|
if (s3 !== peg$FAILED) {
|
|
22566
22798
|
peg$savedPos = s0;
|
|
22567
|
-
s0 = peg$
|
|
22799
|
+
s0 = peg$f74(s2);
|
|
22568
22800
|
} else {
|
|
22569
22801
|
peg$currPos = s0;
|
|
22570
22802
|
s0 = peg$FAILED;
|
|
@@ -22709,7 +22941,7 @@ function peg$parse(input, options) {
|
|
|
22709
22941
|
s7 = peg$parseBlockTag();
|
|
22710
22942
|
if (s7 !== peg$FAILED) {
|
|
22711
22943
|
peg$savedPos = s0;
|
|
22712
|
-
s0 = peg$
|
|
22944
|
+
s0 = peg$f75(s2, s3, s6);
|
|
22713
22945
|
} else {
|
|
22714
22946
|
peg$currPos = s0;
|
|
22715
22947
|
s0 = peg$FAILED;
|
|
@@ -22861,7 +23093,7 @@ function peg$parse(input, options) {
|
|
|
22861
23093
|
s6 = peg$parseBlockTag();
|
|
22862
23094
|
if (s6 !== peg$FAILED) {
|
|
22863
23095
|
peg$savedPos = s0;
|
|
22864
|
-
s0 = peg$
|
|
23096
|
+
s0 = peg$f76(s2, s5);
|
|
22865
23097
|
} else {
|
|
22866
23098
|
peg$currPos = s0;
|
|
22867
23099
|
s0 = peg$FAILED;
|
|
@@ -22947,7 +23179,7 @@ function peg$parse(input, options) {
|
|
|
22947
23179
|
s3 = peg$parseBlockTag();
|
|
22948
23180
|
if (s3 !== peg$FAILED) {
|
|
22949
23181
|
peg$savedPos = s0;
|
|
22950
|
-
s0 = peg$
|
|
23182
|
+
s0 = peg$f77(s2);
|
|
22951
23183
|
} else {
|
|
22952
23184
|
peg$currPos = s0;
|
|
22953
23185
|
s0 = peg$FAILED;
|
|
@@ -23025,7 +23257,7 @@ function peg$parse(input, options) {
|
|
|
23025
23257
|
s3 = peg$parseBlockTag();
|
|
23026
23258
|
if (s3 !== peg$FAILED) {
|
|
23027
23259
|
peg$savedPos = s0;
|
|
23028
|
-
s0 = peg$
|
|
23260
|
+
s0 = peg$f78(s2);
|
|
23029
23261
|
} else {
|
|
23030
23262
|
peg$currPos = s0;
|
|
23031
23263
|
s0 = peg$FAILED;
|
|
@@ -23104,7 +23336,7 @@ function peg$parse(input, options) {
|
|
|
23104
23336
|
if (s3 !== peg$FAILED) {
|
|
23105
23337
|
s4 = peg$parseMediaChain();
|
|
23106
23338
|
peg$savedPos = s0;
|
|
23107
|
-
s0 = peg$
|
|
23339
|
+
s0 = peg$f79(s2, s4);
|
|
23108
23340
|
} else {
|
|
23109
23341
|
peg$currPos = s0;
|
|
23110
23342
|
s0 = peg$FAILED;
|
|
@@ -23182,7 +23414,7 @@ function peg$parse(input, options) {
|
|
|
23182
23414
|
s3 = peg$parseBlockTag();
|
|
23183
23415
|
if (s3 !== peg$FAILED) {
|
|
23184
23416
|
peg$savedPos = s0;
|
|
23185
|
-
s0 = peg$
|
|
23417
|
+
s0 = peg$f80(s2);
|
|
23186
23418
|
} else {
|
|
23187
23419
|
peg$currPos = s0;
|
|
23188
23420
|
s0 = peg$FAILED;
|
|
@@ -23260,7 +23492,7 @@ function peg$parse(input, options) {
|
|
|
23260
23492
|
s3 = peg$parseBlockTag();
|
|
23261
23493
|
if (s3 !== peg$FAILED) {
|
|
23262
23494
|
peg$savedPos = s0;
|
|
23263
|
-
s0 = peg$
|
|
23495
|
+
s0 = peg$f81(s2);
|
|
23264
23496
|
} else {
|
|
23265
23497
|
peg$currPos = s0;
|
|
23266
23498
|
s0 = peg$FAILED;
|
|
@@ -23338,7 +23570,7 @@ function peg$parse(input, options) {
|
|
|
23338
23570
|
s3 = peg$parseBlockTag();
|
|
23339
23571
|
if (s3 !== peg$FAILED) {
|
|
23340
23572
|
peg$savedPos = s0;
|
|
23341
|
-
s0 = peg$
|
|
23573
|
+
s0 = peg$f82(s2);
|
|
23342
23574
|
} else {
|
|
23343
23575
|
peg$currPos = s0;
|
|
23344
23576
|
s0 = peg$FAILED;
|
|
@@ -23349,20 +23581,20 @@ function peg$parse(input, options) {
|
|
|
23349
23581
|
}
|
|
23350
23582
|
if (s0 === peg$FAILED) {
|
|
23351
23583
|
s0 = peg$currPos;
|
|
23352
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
23353
|
-
s1 = peg$
|
|
23584
|
+
if (input.substr(peg$currPos, 4) === peg$c5) {
|
|
23585
|
+
s1 = peg$c5;
|
|
23354
23586
|
peg$currPos += 4;
|
|
23355
23587
|
} else {
|
|
23356
23588
|
s1 = peg$FAILED;
|
|
23357
23589
|
if (peg$silentFails === 0) {
|
|
23358
|
-
peg$fail(peg$
|
|
23590
|
+
peg$fail(peg$e7);
|
|
23359
23591
|
}
|
|
23360
23592
|
}
|
|
23361
23593
|
if (s1 !== peg$FAILED) {
|
|
23362
23594
|
s2 = peg$parseBlockTag();
|
|
23363
23595
|
if (s2 !== peg$FAILED) {
|
|
23364
23596
|
peg$savedPos = s0;
|
|
23365
|
-
s0 = peg$
|
|
23597
|
+
s0 = peg$f83();
|
|
23366
23598
|
} else {
|
|
23367
23599
|
peg$currPos = s0;
|
|
23368
23600
|
s0 = peg$FAILED;
|
|
@@ -23440,7 +23672,7 @@ function peg$parse(input, options) {
|
|
|
23440
23672
|
s3 = peg$parseBlockTag();
|
|
23441
23673
|
if (s3 !== peg$FAILED) {
|
|
23442
23674
|
peg$savedPos = s0;
|
|
23443
|
-
s0 = peg$
|
|
23675
|
+
s0 = peg$f84(s2);
|
|
23444
23676
|
} else {
|
|
23445
23677
|
peg$currPos = s0;
|
|
23446
23678
|
s0 = peg$FAILED;
|
|
@@ -23464,7 +23696,7 @@ function peg$parse(input, options) {
|
|
|
23464
23696
|
s2 = peg$parseBlockTag();
|
|
23465
23697
|
if (s2 !== peg$FAILED) {
|
|
23466
23698
|
peg$savedPos = s0;
|
|
23467
|
-
s0 = peg$
|
|
23699
|
+
s0 = peg$f85();
|
|
23468
23700
|
} else {
|
|
23469
23701
|
peg$currPos = s0;
|
|
23470
23702
|
s0 = peg$FAILED;
|
|
@@ -23542,7 +23774,7 @@ function peg$parse(input, options) {
|
|
|
23542
23774
|
s3 = peg$parseBlockTag();
|
|
23543
23775
|
if (s3 !== peg$FAILED) {
|
|
23544
23776
|
peg$savedPos = s0;
|
|
23545
|
-
s0 = peg$
|
|
23777
|
+
s0 = peg$f86(s2);
|
|
23546
23778
|
} else {
|
|
23547
23779
|
peg$currPos = s0;
|
|
23548
23780
|
s0 = peg$FAILED;
|
|
@@ -23644,7 +23876,7 @@ function peg$parse(input, options) {
|
|
|
23644
23876
|
s3 = peg$parseBlockTag();
|
|
23645
23877
|
if (s3 !== peg$FAILED) {
|
|
23646
23878
|
peg$savedPos = s0;
|
|
23647
|
-
s0 = peg$
|
|
23879
|
+
s0 = peg$f87(s2);
|
|
23648
23880
|
} else {
|
|
23649
23881
|
peg$currPos = s0;
|
|
23650
23882
|
s0 = peg$FAILED;
|
|
@@ -23674,7 +23906,7 @@ function peg$parse(input, options) {
|
|
|
23674
23906
|
s3 = peg$parseBlockTag();
|
|
23675
23907
|
if (s3 !== peg$FAILED) {
|
|
23676
23908
|
peg$savedPos = s0;
|
|
23677
|
-
s0 = peg$
|
|
23909
|
+
s0 = peg$f88(s2);
|
|
23678
23910
|
} else {
|
|
23679
23911
|
peg$currPos = s0;
|
|
23680
23912
|
s0 = peg$FAILED;
|
|
@@ -23756,7 +23988,7 @@ function peg$parse(input, options) {
|
|
|
23756
23988
|
s3 = peg$parseBlockTag();
|
|
23757
23989
|
if (s3 !== peg$FAILED) {
|
|
23758
23990
|
peg$savedPos = s0;
|
|
23759
|
-
s0 = peg$
|
|
23991
|
+
s0 = peg$f89(s2);
|
|
23760
23992
|
} else {
|
|
23761
23993
|
peg$currPos = s0;
|
|
23762
23994
|
s0 = peg$FAILED;
|
|
@@ -23772,7 +24004,7 @@ function peg$parse(input, options) {
|
|
|
23772
24004
|
s2 = peg$parseBlockTag();
|
|
23773
24005
|
if (s2 !== peg$FAILED) {
|
|
23774
24006
|
peg$savedPos = s0;
|
|
23775
|
-
s0 = peg$
|
|
24007
|
+
s0 = peg$f90(s1);
|
|
23776
24008
|
} else {
|
|
23777
24009
|
peg$currPos = s0;
|
|
23778
24010
|
s0 = peg$FAILED;
|
|
@@ -23850,7 +24082,7 @@ function peg$parse(input, options) {
|
|
|
23850
24082
|
s3 = peg$parseBlockTag();
|
|
23851
24083
|
if (s3 !== peg$FAILED) {
|
|
23852
24084
|
peg$savedPos = s0;
|
|
23853
|
-
s0 = peg$
|
|
24085
|
+
s0 = peg$f91(s2);
|
|
23854
24086
|
} else {
|
|
23855
24087
|
peg$currPos = s0;
|
|
23856
24088
|
s0 = peg$FAILED;
|
|
@@ -23956,7 +24188,7 @@ function peg$parse(input, options) {
|
|
|
23956
24188
|
}
|
|
23957
24189
|
s2 = input.substring(s2, peg$currPos);
|
|
23958
24190
|
peg$savedPos = s0;
|
|
23959
|
-
s0 = peg$
|
|
24191
|
+
s0 = peg$f92(s2);
|
|
23960
24192
|
} else {
|
|
23961
24193
|
peg$currPos = s0;
|
|
23962
24194
|
s0 = peg$FAILED;
|
|
@@ -24666,7 +24898,7 @@ function peg$parse(input, options) {
|
|
|
24666
24898
|
s0 = peg$currPos;
|
|
24667
24899
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
24668
24900
|
peg$savedPos = s0;
|
|
24669
|
-
s1 = peg$
|
|
24901
|
+
s1 = peg$f93(s1);
|
|
24670
24902
|
s0 = s1;
|
|
24671
24903
|
peg$silentFails--;
|
|
24672
24904
|
return s0;
|
|
@@ -24692,7 +24924,7 @@ function peg$parse(input, options) {
|
|
|
24692
24924
|
}
|
|
24693
24925
|
}
|
|
24694
24926
|
peg$savedPos = s0;
|
|
24695
|
-
s0 = peg$
|
|
24927
|
+
s0 = peg$f94(s1, s2);
|
|
24696
24928
|
peg$silentFails--;
|
|
24697
24929
|
return s0;
|
|
24698
24930
|
}
|
|
@@ -24702,7 +24934,7 @@ function peg$parse(input, options) {
|
|
|
24702
24934
|
s1 = peg$parseNL();
|
|
24703
24935
|
if (s1 !== peg$FAILED) {
|
|
24704
24936
|
peg$savedPos = s0;
|
|
24705
|
-
s1 = peg$
|
|
24937
|
+
s1 = peg$f95();
|
|
24706
24938
|
}
|
|
24707
24939
|
s0 = s1;
|
|
24708
24940
|
if (s0 === peg$FAILED) {
|
|
@@ -24831,7 +25063,7 @@ function peg$parse(input, options) {
|
|
|
24831
25063
|
}
|
|
24832
25064
|
if (s1 !== peg$FAILED) {
|
|
24833
25065
|
peg$savedPos = s0;
|
|
24834
|
-
s1 = peg$
|
|
25066
|
+
s1 = peg$f96(s1);
|
|
24835
25067
|
}
|
|
24836
25068
|
s0 = s1;
|
|
24837
25069
|
}
|
|
@@ -25004,7 +25236,7 @@ function peg$parse(input, options) {
|
|
|
25004
25236
|
} else {
|
|
25005
25237
|
s4 = peg$FAILED;
|
|
25006
25238
|
if (peg$silentFails === 0) {
|
|
25007
|
-
peg$fail(peg$
|
|
25239
|
+
peg$fail(peg$e16);
|
|
25008
25240
|
}
|
|
25009
25241
|
}
|
|
25010
25242
|
if (s4 !== peg$FAILED) {
|
|
@@ -25016,7 +25248,7 @@ function peg$parse(input, options) {
|
|
|
25016
25248
|
} else {
|
|
25017
25249
|
s4 = peg$FAILED;
|
|
25018
25250
|
if (peg$silentFails === 0) {
|
|
25019
|
-
peg$fail(peg$
|
|
25251
|
+
peg$fail(peg$e16);
|
|
25020
25252
|
}
|
|
25021
25253
|
}
|
|
25022
25254
|
}
|
|
@@ -25032,7 +25264,7 @@ function peg$parse(input, options) {
|
|
|
25032
25264
|
s3 = peg$parseBodyBitCloseTag();
|
|
25033
25265
|
if (s3 !== peg$FAILED) {
|
|
25034
25266
|
peg$savedPos = s0;
|
|
25035
|
-
s0 = peg$
|
|
25267
|
+
s0 = peg$f97(s2);
|
|
25036
25268
|
} else {
|
|
25037
25269
|
peg$currPos = s0;
|
|
25038
25270
|
s0 = peg$FAILED;
|
|
@@ -25122,7 +25354,7 @@ function peg$parse(input, options) {
|
|
|
25122
25354
|
s3 = peg$parseBoldTag();
|
|
25123
25355
|
if (s3 !== peg$FAILED) {
|
|
25124
25356
|
peg$savedPos = s0;
|
|
25125
|
-
s0 = peg$
|
|
25357
|
+
s0 = peg$f98(s2);
|
|
25126
25358
|
} else {
|
|
25127
25359
|
peg$currPos = s0;
|
|
25128
25360
|
s0 = peg$FAILED;
|
|
@@ -25208,7 +25440,7 @@ function peg$parse(input, options) {
|
|
|
25208
25440
|
s3 = peg$parseItalicTag();
|
|
25209
25441
|
if (s3 !== peg$FAILED) {
|
|
25210
25442
|
peg$savedPos = s0;
|
|
25211
|
-
s0 = peg$
|
|
25443
|
+
s0 = peg$f99(s2);
|
|
25212
25444
|
} else {
|
|
25213
25445
|
peg$currPos = s0;
|
|
25214
25446
|
s0 = peg$FAILED;
|
|
@@ -25294,7 +25526,7 @@ function peg$parse(input, options) {
|
|
|
25294
25526
|
s3 = peg$parseLightTag();
|
|
25295
25527
|
if (s3 !== peg$FAILED) {
|
|
25296
25528
|
peg$savedPos = s0;
|
|
25297
|
-
s0 = peg$
|
|
25529
|
+
s0 = peg$f100(s2);
|
|
25298
25530
|
} else {
|
|
25299
25531
|
peg$currPos = s0;
|
|
25300
25532
|
s0 = peg$FAILED;
|
|
@@ -25380,7 +25612,7 @@ function peg$parse(input, options) {
|
|
|
25380
25612
|
s3 = peg$parseHighlightTag();
|
|
25381
25613
|
if (s3 !== peg$FAILED) {
|
|
25382
25614
|
peg$savedPos = s0;
|
|
25383
|
-
s0 = peg$
|
|
25615
|
+
s0 = peg$f101(s2);
|
|
25384
25616
|
} else {
|
|
25385
25617
|
peg$currPos = s0;
|
|
25386
25618
|
s0 = peg$FAILED;
|
|
@@ -25766,7 +25998,7 @@ function peg$parse(input, options) {
|
|
|
25766
25998
|
}
|
|
25767
25999
|
s2 = input.substring(s2, peg$currPos);
|
|
25768
26000
|
peg$savedPos = s0;
|
|
25769
|
-
s0 = peg$
|
|
26001
|
+
s0 = peg$f102(s1, s2);
|
|
25770
26002
|
} else {
|
|
25771
26003
|
peg$currPos = s0;
|
|
25772
26004
|
s0 = peg$FAILED;
|
|
@@ -25787,7 +26019,17 @@ function peg$parse(input, options) {
|
|
|
25787
26019
|
return s0;
|
|
25788
26020
|
}
|
|
25789
26021
|
var indentStack = [], indent = "";
|
|
25790
|
-
input = input.
|
|
26022
|
+
input = input.replace(/\s+$/, "");
|
|
26023
|
+
var _firstNonWs = input.search(/\S/);
|
|
26024
|
+
if (_firstNonWs < 0) {
|
|
26025
|
+
input = "";
|
|
26026
|
+
} else {
|
|
26027
|
+
var _lineStart = input.lastIndexOf("\n", _firstNonWs) + 1;
|
|
26028
|
+
var _lead = input.slice(_lineStart, _firstNonWs);
|
|
26029
|
+
var _rest = input.slice(_firstNonWs);
|
|
26030
|
+
var _isIndentedListItem = /^\t+$/.test(_lead) && /^•([0-9]+[Ii]?|_|[Aa]|\+|-)? /.test(_rest);
|
|
26031
|
+
input = _isIndentedListItem ? _lead + _rest : _rest;
|
|
26032
|
+
}
|
|
25791
26033
|
peg$result = peg$startRuleFunction();
|
|
25792
26034
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
25793
26035
|
function peg$throw() {
|
|
@@ -25881,14 +26123,13 @@ var TextParser = class {
|
|
|
25881
26123
|
*/
|
|
25882
26124
|
toAst(text, options) {
|
|
25883
26125
|
if (Array.isArray(text)) return text;
|
|
25884
|
-
|
|
26126
|
+
const str = text ?? "";
|
|
25885
26127
|
if (!str) return [];
|
|
25886
26128
|
const opts = Object.assign({}, options);
|
|
25887
26129
|
let startRule = "bitmarkPlusPlus";
|
|
25888
26130
|
if (opts.location === TextLocation2.tag) {
|
|
25889
26131
|
startRule = "bitmarkPlus";
|
|
25890
26132
|
}
|
|
25891
|
-
str = str.trim();
|
|
25892
26133
|
return parse(str, {
|
|
25893
26134
|
startRule
|
|
25894
26135
|
});
|
|
@@ -27928,6 +28169,12 @@ var Builder = class extends BaseBuilder {
|
|
|
27928
28169
|
options
|
|
27929
28170
|
),
|
|
27930
28171
|
sourceBB: this.normaliseSourceBB(data.sourceBB),
|
|
28172
|
+
bitFingerprint: this.toAstProperty(
|
|
28173
|
+
bitType,
|
|
28174
|
+
ConfigKey.property_bitFingerprint,
|
|
28175
|
+
data.bitFingerprint,
|
|
28176
|
+
options
|
|
28177
|
+
),
|
|
27931
28178
|
levelCEFRp: this.toAstProperty(
|
|
27932
28179
|
bitType,
|
|
27933
28180
|
ConfigKey.property_levelCEFRp,
|
|
@@ -29360,6 +29607,7 @@ var Builder = class extends BaseBuilder {
|
|
|
29360
29607
|
if (!data) return void 0;
|
|
29361
29608
|
let isExample = false;
|
|
29362
29609
|
for (const c of data.cells || []) {
|
|
29610
|
+
if (!c) continue;
|
|
29363
29611
|
if (data.__isDefaultExample && !c.isExample) {
|
|
29364
29612
|
c.isExample = true;
|
|
29365
29613
|
}
|