@gmb/bitmark-parser-generator 3.32.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  2. package/dist/browser/bundle-report.html +2 -2
  3. package/dist/cjs/ast/Builder.js +39 -46
  4. package/dist/cjs/ast/Builder.js.map +1 -1
  5. package/dist/cjs/ast/ResourceBuilder.js +1 -2
  6. package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
  7. package/dist/cjs/generated/build-info.js +1 -1
  8. package/dist/cjs/generated/parser/text/text-peggy-parser.js +1139 -941
  9. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
  10. package/dist/cjs/generator/text/TextGenerator.js +16 -1
  11. package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
  12. package/dist/cjs/model/enum/TextMarkType.js +11 -0
  13. package/dist/cjs/model/enum/TextMarkType.js.map +1 -1
  14. package/dist/esm/ast/Builder.js +39 -46
  15. package/dist/esm/ast/Builder.js.map +1 -1
  16. package/dist/esm/ast/ResourceBuilder.js +1 -2
  17. package/dist/esm/ast/ResourceBuilder.js.map +1 -1
  18. package/dist/esm/generated/build-info.js +1 -1
  19. package/dist/esm/generated/parser/text/text-peggy-parser.js +1139 -941
  20. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  21. package/dist/esm/generator/text/TextGenerator.js +16 -1
  22. package/dist/esm/generator/text/TextGenerator.js.map +1 -1
  23. package/dist/esm/model/enum/TextMarkType.js +11 -0
  24. package/dist/esm/model/enum/TextMarkType.js.map +1 -1
  25. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  26. package/dist/types/generator/text/TextGenerator.d.ts +2 -2
  27. package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
  28. package/dist/types/model/ast/TextNodes.d.ts +4 -0
  29. package/dist/types/model/ast/TextNodes.d.ts.map +1 -1
  30. package/dist/types/model/enum/TextMarkType.d.ts +22 -0
  31. package/dist/types/model/enum/TextMarkType.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // https://peggyjs.org/
4
4
  import { Breakscape } from "../../../breakscaping/Breakscape";
5
- const VERSION = "8.32.2";
5
+ const VERSION = "8.34.3";
6
6
  //Parser peggy.js
7
7
  // parser options (parameter when running parser):
8
8
  // allowedStartRules: ["bitmarkPlusPlus", "bitmarkPlus", "bitmarkMinusMinus", "bitmarkPlusString", "bitmarkMinusMinusString"]
@@ -376,100 +376,116 @@ function peg$parse(input, options) {
376
376
  var peg$c27 = "left";
377
377
  var peg$c28 = "center";
378
378
  var peg$c29 = "right";
379
- var peg$c30 = "=";
380
- var peg$c31 = "|latex|";
381
- var peg$c32 = "|imageInline:";
382
- var peg$c33 = "alignmentVertical";
383
- var peg$c34 = "size";
384
- var peg$c35 = "top";
385
- var peg$c36 = "middle";
386
- var peg$c37 = "bottom";
387
- var peg$c38 = "baseline";
388
- var peg$c39 = "sub";
389
- var peg$c40 = "super";
390
- var peg$c41 = "text-bottom";
391
- var peg$c42 = "text-top";
392
- var peg$c43 = "line-height";
393
- var peg$c44 = "font-height";
394
- var peg$c45 = "explicit";
395
- var peg$c46 = "link:";
396
- var peg$c47 = "extref:";
397
- var peg$c48 = "provider:";
398
- var peg$c49 = "xref:";
399
- var peg$c50 = "\u25BA";
400
- var peg$c51 = "symbol:";
401
- var peg$c52 = "footnote:";
402
- var peg$c53 = "footnote*:";
403
- var peg$c54 = "var:";
404
- var peg$c55 = "code:";
405
- var peg$c56 = "timer";
406
- var peg$c57 = "timer:";
407
- var peg$c58 = "duration:";
408
- var peg$c59 = "P";
409
- var peg$c60 = "color:";
410
- var peg$c61 = "|\u25BA";
411
- var peg$c62 = "bold";
412
- var peg$c63 = "italic";
413
- var peg$c64 = "light";
414
- var peg$c65 = "highlight";
415
- var peg$c66 = "strike";
416
- var peg$c67 = "subscript";
417
- var peg$c68 = "superscript";
418
- var peg$c69 = "ins";
419
- var peg$c70 = "del";
420
- var peg$c71 = "underline";
421
- var peg$c72 = "doubleUnderline";
422
- var peg$c73 = "circle";
423
- var peg$c74 = "languageEm";
424
- var peg$c75 = "userUnderline";
425
- var peg$c76 = "userDoubleUnderline";
426
- var peg$c77 = "userStrike";
427
- var peg$c78 = "userCircle";
428
- var peg$c79 = "userHighlight";
429
- var peg$c80 = "notranslate";
430
- var peg$c81 = "aqua";
431
- var peg$c82 = "black";
432
- var peg$c83 = "blue";
433
- var peg$c84 = "pink";
434
- var peg$c85 = "fuchsia";
435
- var peg$c86 = "lightgrey";
436
- var peg$c87 = "gray";
437
- var peg$c88 = "darkgray";
438
- var peg$c89 = "green";
439
- var peg$c90 = "lime";
440
- var peg$c91 = "magenta";
441
- var peg$c92 = "maroon";
442
- var peg$c93 = "navy";
443
- var peg$c94 = "olive";
444
- var peg$c95 = "orange";
445
- var peg$c96 = "purple";
446
- var peg$c97 = "red";
447
- var peg$c98 = "silver";
448
- var peg$c99 = "teal";
449
- var peg$c100 = "violet";
450
- var peg$c101 = "white";
451
- var peg$c102 = "yellow";
452
- var peg$c103 = "*";
453
- var peg$c104 = "_";
454
- var peg$c105 = "`";
455
- var peg$c106 = "!";
456
- var peg$c107 = "[!";
457
- var peg$c108 = "]";
458
- var peg$c109 = "\n";
459
- var peg$c110 = "\r\n";
460
- var peg$c111 = "http";
461
- var peg$c112 = "s";
462
- var peg$c113 = "://";
463
- var peg$c114 = "mailto:";
379
+ var peg$c30 = "alt";
380
+ var peg$c31 = "caption";
381
+ var peg$c32 = "zoomDisabled";
382
+ var peg$c33 = "true";
383
+ var peg$c34 = "false";
384
+ var peg$c35 = "=";
385
+ var peg$c36 = "|latex|";
386
+ var peg$c37 = "|imageInline:";
387
+ var peg$c38 = "alignmentVertical";
388
+ var peg$c39 = "size";
389
+ var peg$c40 = "top";
390
+ var peg$c41 = "middle";
391
+ var peg$c42 = "bottom";
392
+ var peg$c43 = "baseline";
393
+ var peg$c44 = "sub";
394
+ var peg$c45 = "super";
395
+ var peg$c46 = "text-bottom";
396
+ var peg$c47 = "text-top";
397
+ var peg$c48 = "line-height";
398
+ var peg$c49 = "font-height";
399
+ var peg$c50 = "explicit";
400
+ var peg$c51 = "link:";
401
+ var peg$c52 = "extref:";
402
+ var peg$c53 = "provider:";
403
+ var peg$c54 = "xref:";
404
+ var peg$c55 = "\u25BA";
405
+ var peg$c56 = "symbol:";
406
+ var peg$c57 = "footnote:";
407
+ var peg$c58 = "footnote*:";
408
+ var peg$c59 = "var:";
409
+ var peg$c60 = "code:";
410
+ var peg$c61 = "timer";
411
+ var peg$c62 = "timer:";
412
+ var peg$c63 = "duration:";
413
+ var peg$c64 = "P";
414
+ var peg$c65 = "color:";
415
+ var peg$c66 = "|\u25BA";
416
+ var peg$c67 = "bold";
417
+ var peg$c68 = "italic";
418
+ var peg$c69 = "light";
419
+ var peg$c70 = "highlight";
420
+ var peg$c71 = "strike";
421
+ var peg$c72 = "subscript";
422
+ var peg$c73 = "superscript";
423
+ var peg$c74 = "ins";
424
+ var peg$c75 = "del";
425
+ var peg$c76 = "underline";
426
+ var peg$c77 = "doubleUnderline";
427
+ var peg$c78 = "circle";
428
+ var peg$c79 = "languageEmRed";
429
+ var peg$c80 = "languageEmOrange";
430
+ var peg$c81 = "languageEmYellow";
431
+ var peg$c82 = "languageEmGreen";
432
+ var peg$c83 = "languageEmBlue";
433
+ var peg$c84 = "languageEmPurple";
434
+ var peg$c85 = "languageEmPink";
435
+ var peg$c86 = "languageEmBrown";
436
+ var peg$c87 = "languageEmBlack";
437
+ var peg$c88 = "languageEmWhite";
438
+ var peg$c89 = "languageEmGray";
439
+ var peg$c90 = "languageEm";
440
+ var peg$c91 = "userUnderline";
441
+ var peg$c92 = "userDoubleUnderline";
442
+ var peg$c93 = "userStrike";
443
+ var peg$c94 = "userCircle";
444
+ var peg$c95 = "userHighlight";
445
+ var peg$c96 = "notranslate";
446
+ var peg$c97 = "aqua";
447
+ var peg$c98 = "black";
448
+ var peg$c99 = "blue";
449
+ var peg$c100 = "brown";
450
+ var peg$c101 = "fuchsia";
451
+ var peg$c102 = "lightgrey";
452
+ var peg$c103 = "gray";
453
+ var peg$c104 = "darkgray";
454
+ var peg$c105 = "green";
455
+ var peg$c106 = "lime";
456
+ var peg$c107 = "magenta";
457
+ var peg$c108 = "maroon";
458
+ var peg$c109 = "navy";
459
+ var peg$c110 = "olive";
460
+ var peg$c111 = "orange";
461
+ var peg$c112 = "pink";
462
+ var peg$c113 = "purple";
463
+ var peg$c114 = "red";
464
+ var peg$c115 = "silver";
465
+ var peg$c116 = "teal";
466
+ var peg$c117 = "violet";
467
+ var peg$c118 = "white";
468
+ var peg$c119 = "yellow";
469
+ var peg$c120 = "*";
470
+ var peg$c121 = "_";
471
+ var peg$c122 = "`";
472
+ var peg$c123 = "!";
473
+ var peg$c124 = "[!";
474
+ var peg$c125 = "]";
475
+ var peg$c126 = "\n";
476
+ var peg$c127 = "\r\n";
477
+ var peg$c128 = "http";
478
+ var peg$c129 = "s";
479
+ var peg$c130 = "://";
480
+ var peg$c131 = "mailto:";
464
481
  var peg$r0 = /^[ \t]/;
465
482
  var peg$r1 = /^[0-9]/;
466
- var peg$r2 = /^[:|]/;
467
- var peg$r3 = /^[\r\u2028-\u2029]/;
468
- var peg$r4 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
469
- var peg$r5 = /^[\n\r\u2028\u2029]/;
470
- var peg$r6 = /^[^\n\r\u2028\u2029]/;
471
- var peg$r7 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
472
- var peg$r8 = /^[!#-;=?-[\]-_a-{}-~]/;
483
+ var peg$r2 = /^[\r\u2028-\u2029]/;
484
+ var peg$r3 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
485
+ var peg$r4 = /^[\n\r\u2028\u2029]/;
486
+ var peg$r5 = /^[^\n\r\u2028\u2029]/;
487
+ var peg$r6 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
488
+ var peg$r7 = /^[!#-;=?-[\]-_a-{}-~]/;
473
489
  var peg$e0 = peg$anyExpectation();
474
490
  var peg$e1 = peg$otherExpectation("StyledText");
475
491
  var peg$e2 = peg$literalExpectation("|", false);
@@ -497,113 +513,129 @@ function peg$parse(input, options) {
497
513
  var peg$e24 = peg$literalExpectation("image", false);
498
514
  var peg$e25 = peg$literalExpectation("#", false);
499
515
  var peg$e26 = peg$literalExpectation("@", false);
500
- var peg$e27 = peg$classExpectation([":", "|"], false, false);
501
- var peg$e28 = peg$literalExpectation("width", false);
502
- var peg$e29 = peg$literalExpectation("height", false);
503
- var peg$e30 = peg$literalExpectation("alignment", false);
504
- var peg$e31 = peg$literalExpectation("captionAlign", false);
505
- var peg$e32 = peg$literalExpectation("left", false);
506
- var peg$e33 = peg$literalExpectation("center", false);
507
- var peg$e34 = peg$literalExpectation("right", false);
508
- var peg$e35 = peg$otherExpectation("StyledString");
509
- var peg$e36 = peg$literalExpectation("=", false);
510
- var peg$e37 = peg$literalExpectation("|latex|", false);
511
- var peg$e38 = peg$literalExpectation("|imageInline:", false);
512
- var peg$e39 = peg$literalExpectation("alignmentVertical", false);
513
- var peg$e40 = peg$literalExpectation("size", false);
514
- var peg$e41 = peg$literalExpectation("top", false);
515
- var peg$e42 = peg$literalExpectation("middle", false);
516
- var peg$e43 = peg$literalExpectation("bottom", false);
517
- var peg$e44 = peg$literalExpectation("baseline", false);
518
- var peg$e45 = peg$literalExpectation("sub", false);
519
- var peg$e46 = peg$literalExpectation("super", false);
520
- var peg$e47 = peg$literalExpectation("text-bottom", false);
521
- var peg$e48 = peg$literalExpectation("text-top", false);
522
- var peg$e49 = peg$literalExpectation("line-height", false);
523
- var peg$e50 = peg$literalExpectation("font-height", false);
524
- var peg$e51 = peg$literalExpectation("explicit", false);
525
- var peg$e52 = peg$literalExpectation("link:", false);
526
- var peg$e53 = peg$literalExpectation("extref:", false);
527
- var peg$e54 = peg$literalExpectation("provider:", false);
528
- var peg$e55 = peg$literalExpectation("xref:", false);
529
- var peg$e56 = peg$literalExpectation("\u25BA", false);
530
- var peg$e57 = peg$literalExpectation("symbol:", false);
531
- var peg$e58 = peg$literalExpectation("footnote:", false);
532
- var peg$e59 = peg$literalExpectation("footnote*:", false);
533
- var peg$e60 = peg$literalExpectation("var:", false);
534
- var peg$e61 = peg$literalExpectation("code:", false);
535
- var peg$e62 = peg$literalExpectation("timer", false);
536
- var peg$e63 = peg$literalExpectation("timer:", false);
537
- var peg$e64 = peg$literalExpectation("duration:", false);
538
- var peg$e65 = peg$literalExpectation("P", false);
539
- var peg$e66 = peg$literalExpectation("color:", false);
540
- var peg$e67 = peg$literalExpectation("|\u25BA", false);
541
- var peg$e68 = peg$literalExpectation("bold", false);
542
- var peg$e69 = peg$literalExpectation("italic", false);
543
- var peg$e70 = peg$literalExpectation("light", false);
544
- var peg$e71 = peg$literalExpectation("highlight", false);
545
- var peg$e72 = peg$literalExpectation("strike", false);
546
- var peg$e73 = peg$literalExpectation("subscript", false);
547
- var peg$e74 = peg$literalExpectation("superscript", false);
548
- var peg$e75 = peg$literalExpectation("ins", false);
549
- var peg$e76 = peg$literalExpectation("del", false);
550
- var peg$e77 = peg$literalExpectation("underline", false);
551
- var peg$e78 = peg$literalExpectation("doubleUnderline", false);
552
- var peg$e79 = peg$literalExpectation("circle", false);
553
- var peg$e80 = peg$literalExpectation("languageEm", false);
554
- var peg$e81 = peg$literalExpectation("userUnderline", false);
555
- var peg$e82 = peg$literalExpectation("userDoubleUnderline", false);
556
- var peg$e83 = peg$literalExpectation("userStrike", false);
557
- var peg$e84 = peg$literalExpectation("userCircle", false);
558
- var peg$e85 = peg$literalExpectation("userHighlight", false);
559
- var peg$e86 = peg$literalExpectation("notranslate", false);
560
- var peg$e87 = peg$literalExpectation("aqua", false);
561
- var peg$e88 = peg$literalExpectation("black", false);
562
- var peg$e89 = peg$literalExpectation("blue", false);
563
- var peg$e90 = peg$literalExpectation("pink", false);
564
- var peg$e91 = peg$literalExpectation("fuchsia", false);
565
- var peg$e92 = peg$literalExpectation("lightgrey", false);
566
- var peg$e93 = peg$literalExpectation("gray", false);
567
- var peg$e94 = peg$literalExpectation("darkgray", false);
568
- var peg$e95 = peg$literalExpectation("green", false);
569
- var peg$e96 = peg$literalExpectation("lime", false);
570
- var peg$e97 = peg$literalExpectation("magenta", false);
571
- var peg$e98 = peg$literalExpectation("maroon", false);
572
- var peg$e99 = peg$literalExpectation("navy", false);
573
- var peg$e100 = peg$literalExpectation("olive", false);
574
- var peg$e101 = peg$literalExpectation("orange", false);
575
- var peg$e102 = peg$literalExpectation("purple", false);
576
- var peg$e103 = peg$literalExpectation("red", false);
577
- var peg$e104 = peg$literalExpectation("silver", false);
578
- var peg$e105 = peg$literalExpectation("teal", false);
579
- var peg$e106 = peg$literalExpectation("violet", false);
580
- var peg$e107 = peg$literalExpectation("white", false);
581
- var peg$e108 = peg$literalExpectation("yellow", false);
582
- var peg$e109 = peg$otherExpectation("MinimalStyledText");
583
- var peg$e110 = peg$otherExpectation("MinimalStyledString");
584
- var peg$e111 = peg$literalExpectation("*", false);
585
- var peg$e112 = peg$literalExpectation("_", false);
586
- var peg$e113 = peg$literalExpectation("`", false);
587
- var peg$e114 = peg$literalExpectation("!", false);
588
- var peg$e115 = peg$literalExpectation("[!", false);
589
- var peg$e116 = peg$literalExpectation("]", false);
590
- var peg$e117 = peg$otherExpectation("Line Terminator");
591
- var peg$e118 = peg$literalExpectation("\n", false);
592
- var peg$e119 = peg$literalExpectation("\r\n", false);
593
- var peg$e120 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
594
- var peg$e121 = peg$otherExpectation("whitespace in line");
595
- var peg$e122 = peg$otherExpectation("space");
596
- var peg$e123 = peg$otherExpectation("language tag separator");
597
- var peg$e124 = peg$otherExpectation("white space, separator");
598
- var peg$e125 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
599
- var peg$e126 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
600
- var peg$e127 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
601
- var peg$e128 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
602
- var peg$e129 = peg$literalExpectation("http", false);
603
- var peg$e130 = peg$literalExpectation("s", false);
604
- var peg$e131 = peg$literalExpectation("://", false);
605
- var peg$e132 = peg$literalExpectation("mailto:", false);
606
- var peg$e133 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
516
+ var peg$e27 = peg$literalExpectation("width", false);
517
+ var peg$e28 = peg$literalExpectation("height", false);
518
+ var peg$e29 = peg$literalExpectation("alignment", false);
519
+ var peg$e30 = peg$literalExpectation("captionAlign", false);
520
+ var peg$e31 = peg$literalExpectation("left", false);
521
+ var peg$e32 = peg$literalExpectation("center", false);
522
+ var peg$e33 = peg$literalExpectation("right", false);
523
+ var peg$e34 = peg$literalExpectation("alt", false);
524
+ var peg$e35 = peg$literalExpectation("caption", false);
525
+ var peg$e36 = peg$literalExpectation("zoomDisabled", false);
526
+ var peg$e37 = peg$literalExpectation("true", false);
527
+ var peg$e38 = peg$literalExpectation("false", false);
528
+ var peg$e39 = peg$otherExpectation("StyledString");
529
+ var peg$e40 = peg$literalExpectation("=", false);
530
+ var peg$e41 = peg$literalExpectation("|latex|", false);
531
+ var peg$e42 = peg$literalExpectation("|imageInline:", false);
532
+ var peg$e43 = peg$literalExpectation("alignmentVertical", false);
533
+ var peg$e44 = peg$literalExpectation("size", false);
534
+ var peg$e45 = peg$literalExpectation("top", false);
535
+ var peg$e46 = peg$literalExpectation("middle", false);
536
+ var peg$e47 = peg$literalExpectation("bottom", false);
537
+ var peg$e48 = peg$literalExpectation("baseline", false);
538
+ var peg$e49 = peg$literalExpectation("sub", false);
539
+ var peg$e50 = peg$literalExpectation("super", false);
540
+ var peg$e51 = peg$literalExpectation("text-bottom", false);
541
+ var peg$e52 = peg$literalExpectation("text-top", false);
542
+ var peg$e53 = peg$literalExpectation("line-height", false);
543
+ var peg$e54 = peg$literalExpectation("font-height", false);
544
+ var peg$e55 = peg$literalExpectation("explicit", false);
545
+ var peg$e56 = peg$literalExpectation("link:", false);
546
+ var peg$e57 = peg$literalExpectation("extref:", false);
547
+ var peg$e58 = peg$literalExpectation("provider:", false);
548
+ var peg$e59 = peg$literalExpectation("xref:", false);
549
+ var peg$e60 = peg$literalExpectation("\u25BA", false);
550
+ var peg$e61 = peg$literalExpectation("symbol:", false);
551
+ var peg$e62 = peg$literalExpectation("footnote:", false);
552
+ var peg$e63 = peg$literalExpectation("footnote*:", false);
553
+ var peg$e64 = peg$literalExpectation("var:", false);
554
+ var peg$e65 = peg$literalExpectation("code:", false);
555
+ var peg$e66 = peg$literalExpectation("timer", false);
556
+ var peg$e67 = peg$literalExpectation("timer:", false);
557
+ var peg$e68 = peg$literalExpectation("duration:", false);
558
+ var peg$e69 = peg$literalExpectation("P", false);
559
+ var peg$e70 = peg$literalExpectation("color:", false);
560
+ var peg$e71 = peg$literalExpectation("|\u25BA", false);
561
+ var peg$e72 = peg$literalExpectation("bold", false);
562
+ var peg$e73 = peg$literalExpectation("italic", false);
563
+ var peg$e74 = peg$literalExpectation("light", false);
564
+ var peg$e75 = peg$literalExpectation("highlight", false);
565
+ var peg$e76 = peg$literalExpectation("strike", false);
566
+ var peg$e77 = peg$literalExpectation("subscript", false);
567
+ var peg$e78 = peg$literalExpectation("superscript", false);
568
+ var peg$e79 = peg$literalExpectation("ins", false);
569
+ var peg$e80 = peg$literalExpectation("del", false);
570
+ var peg$e81 = peg$literalExpectation("underline", false);
571
+ var peg$e82 = peg$literalExpectation("doubleUnderline", false);
572
+ var peg$e83 = peg$literalExpectation("circle", false);
573
+ var peg$e84 = peg$literalExpectation("languageEmRed", false);
574
+ var peg$e85 = peg$literalExpectation("languageEmOrange", false);
575
+ var peg$e86 = peg$literalExpectation("languageEmYellow", false);
576
+ var peg$e87 = peg$literalExpectation("languageEmGreen", false);
577
+ var peg$e88 = peg$literalExpectation("languageEmBlue", false);
578
+ var peg$e89 = peg$literalExpectation("languageEmPurple", false);
579
+ var peg$e90 = peg$literalExpectation("languageEmPink", false);
580
+ var peg$e91 = peg$literalExpectation("languageEmBrown", false);
581
+ var peg$e92 = peg$literalExpectation("languageEmBlack", false);
582
+ var peg$e93 = peg$literalExpectation("languageEmWhite", false);
583
+ var peg$e94 = peg$literalExpectation("languageEmGray", false);
584
+ var peg$e95 = peg$literalExpectation("languageEm", false);
585
+ var peg$e96 = peg$literalExpectation("userUnderline", false);
586
+ var peg$e97 = peg$literalExpectation("userDoubleUnderline", false);
587
+ var peg$e98 = peg$literalExpectation("userStrike", false);
588
+ var peg$e99 = peg$literalExpectation("userCircle", false);
589
+ var peg$e100 = peg$literalExpectation("userHighlight", false);
590
+ var peg$e101 = peg$literalExpectation("notranslate", false);
591
+ var peg$e102 = peg$literalExpectation("aqua", false);
592
+ var peg$e103 = peg$literalExpectation("black", false);
593
+ var peg$e104 = peg$literalExpectation("blue", false);
594
+ var peg$e105 = peg$literalExpectation("brown", false);
595
+ var peg$e106 = peg$literalExpectation("fuchsia", false);
596
+ var peg$e107 = peg$literalExpectation("lightgrey", false);
597
+ var peg$e108 = peg$literalExpectation("gray", false);
598
+ var peg$e109 = peg$literalExpectation("darkgray", false);
599
+ var peg$e110 = peg$literalExpectation("green", false);
600
+ var peg$e111 = peg$literalExpectation("lime", false);
601
+ var peg$e112 = peg$literalExpectation("magenta", false);
602
+ var peg$e113 = peg$literalExpectation("maroon", false);
603
+ var peg$e114 = peg$literalExpectation("navy", false);
604
+ var peg$e115 = peg$literalExpectation("olive", false);
605
+ var peg$e116 = peg$literalExpectation("orange", false);
606
+ var peg$e117 = peg$literalExpectation("pink", false);
607
+ var peg$e118 = peg$literalExpectation("purple", false);
608
+ var peg$e119 = peg$literalExpectation("red", false);
609
+ var peg$e120 = peg$literalExpectation("silver", false);
610
+ var peg$e121 = peg$literalExpectation("teal", false);
611
+ var peg$e122 = peg$literalExpectation("violet", false);
612
+ var peg$e123 = peg$literalExpectation("white", false);
613
+ var peg$e124 = peg$literalExpectation("yellow", false);
614
+ var peg$e125 = peg$otherExpectation("MinimalStyledText");
615
+ var peg$e126 = peg$otherExpectation("MinimalStyledString");
616
+ var peg$e127 = peg$literalExpectation("*", false);
617
+ var peg$e128 = peg$literalExpectation("_", false);
618
+ var peg$e129 = peg$literalExpectation("`", false);
619
+ var peg$e130 = peg$literalExpectation("!", false);
620
+ var peg$e131 = peg$literalExpectation("[!", false);
621
+ var peg$e132 = peg$literalExpectation("]", false);
622
+ var peg$e133 = peg$otherExpectation("Line Terminator");
623
+ var peg$e134 = peg$literalExpectation("\n", false);
624
+ var peg$e135 = peg$literalExpectation("\r\n", false);
625
+ var peg$e136 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
626
+ var peg$e137 = peg$otherExpectation("whitespace in line");
627
+ var peg$e138 = peg$otherExpectation("space");
628
+ var peg$e139 = peg$otherExpectation("language tag separator");
629
+ var peg$e140 = peg$otherExpectation("white space, separator");
630
+ var peg$e141 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
631
+ var peg$e142 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
632
+ var peg$e143 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
633
+ var peg$e144 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
634
+ var peg$e145 = peg$literalExpectation("http", false);
635
+ var peg$e146 = peg$literalExpectation("s", false);
636
+ var peg$e147 = peg$literalExpectation("://", false);
637
+ var peg$e148 = peg$literalExpectation("mailto:", false);
638
+ var peg$e149 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
607
639
  var peg$f0 = function () { return VERSION; };
608
640
  var peg$f1 = function (b) { const cleaned_ = cleanEmptyTextNodes(Object.assign({}, b)); return cleaned_; };
609
641
  var peg$f2 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); const cleaned_ = cleanEmptyTextNodes(lb_); return cleaned_; };
@@ -727,7 +759,9 @@ function peg$parse(input, options) {
727
759
  delete chain.caption;
728
760
  let class_ = chain.align || "center";
729
761
  delete chain.align;
730
- let zoomDisabled_ = chain.zoomDisabled || Boolean(chain.zoomDisabled);
762
+ let zoomDisabled_ = chain.zoomDisabled === undefined ? true
763
+ : typeof chain.zoomDisabled === 'boolean' ? chain.zoomDisabled
764
+ : String(chain.zoomDisabled).toLowerCase() === 'true';
731
765
  delete chain.zoomDisabled;
732
766
  let image = {
733
767
  type: t,
@@ -736,61 +770,63 @@ function peg$parse(input, options) {
736
770
  return image;
737
771
  };
738
772
  var peg$f42 = function (ch) { return ch; };
739
- var peg$f43 = function (str) { return { comment: str }; };
773
+ var peg$f43 = function (str) { return { comment: str.trim() }; };
740
774
  var peg$f44 = function (p, v) { return { [p]: parseInt(v) }; };
741
- var peg$f45 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
775
+ var peg$f45 = function (p, v) { return { [p]: v.trim() }; };
742
776
  var peg$f46 = function (p, v) { return { [p]: v }; };
743
777
  var peg$f47 = function (p, v) { return { [p]: v }; };
744
778
  var peg$f48 = function (p) { return { [p]: true }; };
745
- var peg$f49 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
746
- var peg$f50 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
747
- var peg$f51 = function () { return { "type": "hardBreak" }; };
748
- var peg$f52 = function (t) { return { text: unbreakscape(t), type: "text" }; };
749
- var peg$f53 = function (t) { return { index: +t, type: "bit" }; };
750
- var peg$f54 = function (t) { return { attrs: { formula: unbreakscape(t) }, type: "latex" }; };
751
- var peg$f55 = function (alt, u, ch) { return { attrs: Object.assign(Object.assign({ alt, src: (u.pr + u.t).trim() }, Object.assign({}, ...ch)), { zoomDisabled: true }), type: "imageInline" }; };
752
- var peg$f56 = function (t, marks) { if (!marks)
779
+ var peg$f49 = function () { return; };
780
+ var peg$f50 = function (p) { return { error: 'Found unknown property or invalid value: ' + p }; };
781
+ var peg$f51 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
782
+ var peg$f52 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
783
+ var peg$f53 = function () { return { "type": "hardBreak" }; };
784
+ var peg$f54 = function (t) { return { text: unbreakscape(t), type: "text" }; };
785
+ var peg$f55 = function (t) { return { index: +t, type: "bit" }; };
786
+ var peg$f56 = function (t) { return { attrs: { formula: unbreakscape(t) }, type: "latex" }; };
787
+ var peg$f57 = function (alt, u, ch) { return { attrs: Object.assign(Object.assign({ alt, src: (u.pr + u.t).trim() }, Object.assign({}, ...ch)), { zoomDisabled: true }), type: "imageInline" }; };
788
+ var peg$f58 = function (t, marks) { if (!marks)
753
789
  marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
754
- var peg$f57 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
755
- var peg$f58 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
756
- var peg$f59 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
757
- var peg$f60 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
758
- var peg$f61 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
759
- var peg$f62 = function (ch) { return ch; };
760
- var peg$f63 = function (ch) { return ch; };
761
- var peg$f64 = function (str) { return { comment: str }; };
762
- var peg$f65 = function (p, v) { return { [p]: parseInt(v) }; };
763
- var peg$f66 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
764
- var peg$f67 = function (p, v) { return { [p]: v }; };
765
- var peg$f68 = function (p, v) { return { [p]: v }; };
766
- var peg$f69 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
767
- var peg$f70 = function (str, rc, p) { return { type: 'extref', attrs: { extref: str.trim(), references: rc, provider: p.trim() } }; };
768
- var peg$f71 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
769
- var peg$f72 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
770
- var peg$f73 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
771
- var peg$f74 = function (str, ch) { const chain = Object.assign({}, ...ch); return { type: 'symbol', attrs: Object.assign({ src: str.trim() }, chain) }; };
772
- var peg$f75 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
773
- var peg$f76 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
774
- var peg$f77 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
775
- var peg$f78 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
776
- var peg$f79 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
777
- var peg$f80 = function () { return { type: 'timer', attrs: { name: "" } }; };
778
- var peg$f81 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
779
- var peg$f82 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
780
- var peg$f83 = function (color) { return { type: 'color', attrs: { color } }; };
781
- var peg$f84 = function (style) { return { type: style }; };
782
- var peg$f85 = function (str) { return { type: "comment", comment: str }; };
783
- var peg$f86 = function (r) { return r.trim(); };
784
- var peg$f87 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
785
- var peg$f88 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
786
- var peg$f89 = function () { return { "type": "hardBreak" }; };
787
- var peg$f90 = function (t) { return { text: unbreakscape(t), type: "text" }; };
788
- var peg$f91 = function (t) { return { index: +t, type: "bit" }; };
789
- var peg$f92 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
790
- var peg$f93 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
791
- var peg$f94 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
792
- var peg$f95 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
793
- var peg$f96 = function (pr, t) { return { pr, t }; };
790
+ var peg$f59 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
791
+ var peg$f60 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
792
+ var peg$f61 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
793
+ var peg$f62 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
794
+ var peg$f63 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
795
+ var peg$f64 = function (ch) { return ch; };
796
+ var peg$f65 = function (ch) { return ch; };
797
+ var peg$f66 = function (str) { return { comment: str }; };
798
+ var peg$f67 = function (p, v) { return { [p]: parseInt(v) }; };
799
+ var peg$f68 = function (p, v) { return { type: "error", msg: p + ' must be a positive integer.', found: v }; };
800
+ var peg$f69 = function (p, v) { return { [p]: v }; };
801
+ var peg$f70 = function (p, v) { return { [p]: v }; };
802
+ var peg$f71 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
803
+ var peg$f72 = function (str, rc, p) { return { type: 'extref', attrs: { extref: str.trim(), references: rc, provider: p.trim() } }; };
804
+ var peg$f73 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
805
+ var peg$f74 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
806
+ var peg$f75 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
807
+ var peg$f76 = function (str, ch) { const chain = Object.assign({}, ...ch); return { type: 'symbol', attrs: Object.assign({ src: str.trim() }, chain) }; };
808
+ var peg$f77 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
809
+ var peg$f78 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
810
+ var peg$f79 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
811
+ var peg$f80 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
812
+ var peg$f81 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
813
+ var peg$f82 = function () { return { type: 'timer', attrs: { name: "" } }; };
814
+ var peg$f83 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
815
+ var peg$f84 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
816
+ var peg$f85 = function (color) { return { type: 'color', attrs: { color } }; };
817
+ var peg$f86 = function (style) { return { type: style }; };
818
+ var peg$f87 = function (str) { return { type: "comment", comment: str }; };
819
+ var peg$f88 = function (r) { return r.trim(); };
820
+ var peg$f89 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
821
+ var peg$f90 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
822
+ var peg$f91 = function () { return { "type": "hardBreak" }; };
823
+ var peg$f92 = function (t) { return { text: unbreakscape(t), type: "text" }; };
824
+ var peg$f93 = function (t) { return { index: +t, type: "bit" }; };
825
+ var peg$f94 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
826
+ var peg$f95 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
827
+ var peg$f96 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
828
+ var peg$f97 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
829
+ var peg$f98 = function (pr, t) { return { pr, t }; };
794
830
  var peg$currPos = options.peg$currPos | 0;
795
831
  var peg$savedPos = peg$currPos;
796
832
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
@@ -2983,7 +3019,7 @@ function peg$parse(input, options) {
2983
3019
  return s0;
2984
3020
  }
2985
3021
  function peg$parseImageBlock() {
2986
- var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
3022
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11;
2987
3023
  s0 = peg$currPos;
2988
3024
  s1 = peg$parseImageTag();
2989
3025
  if (s1 !== peg$FAILED) {
@@ -3013,57 +3049,81 @@ function peg$parse(input, options) {
3013
3049
  }
3014
3050
  s4 = peg$parseUrlHttp();
3015
3051
  if (s4 !== peg$FAILED) {
3016
- s5 = peg$parseBlockTag();
3017
- if (s5 !== peg$FAILED) {
3018
- s6 = peg$parseMediaChain();
3019
- s7 = peg$currPos;
3052
+ s5 = [];
3053
+ if (input.charCodeAt(peg$currPos) === 32) {
3054
+ s6 = peg$c12;
3055
+ peg$currPos++;
3056
+ }
3057
+ else {
3058
+ s6 = peg$FAILED;
3059
+ if (peg$silentFails === 0) {
3060
+ peg$fail(peg$e16);
3061
+ }
3062
+ }
3063
+ while (s6 !== peg$FAILED) {
3064
+ s5.push(s6);
3065
+ if (input.charCodeAt(peg$currPos) === 32) {
3066
+ s6 = peg$c12;
3067
+ peg$currPos++;
3068
+ }
3069
+ else {
3070
+ s6 = peg$FAILED;
3071
+ if (peg$silentFails === 0) {
3072
+ peg$fail(peg$e16);
3073
+ }
3074
+ }
3075
+ }
3076
+ s6 = peg$parseBlockTag();
3077
+ if (s6 !== peg$FAILED) {
3078
+ s7 = peg$parseMediaChain();
3020
3079
  s8 = peg$currPos;
3021
- s9 = [];
3022
- s10 = input.charAt(peg$currPos);
3023
- if (peg$r0.test(s10)) {
3080
+ s9 = peg$currPos;
3081
+ s10 = [];
3082
+ s11 = input.charAt(peg$currPos);
3083
+ if (peg$r0.test(s11)) {
3024
3084
  peg$currPos++;
3025
3085
  }
3026
3086
  else {
3027
- s10 = peg$FAILED;
3087
+ s11 = peg$FAILED;
3028
3088
  if (peg$silentFails === 0) {
3029
3089
  peg$fail(peg$e7);
3030
3090
  }
3031
3091
  }
3032
- while (s10 !== peg$FAILED) {
3033
- s9.push(s10);
3034
- s10 = input.charAt(peg$currPos);
3035
- if (peg$r0.test(s10)) {
3092
+ while (s11 !== peg$FAILED) {
3093
+ s10.push(s11);
3094
+ s11 = input.charAt(peg$currPos);
3095
+ if (peg$r0.test(s11)) {
3036
3096
  peg$currPos++;
3037
3097
  }
3038
3098
  else {
3039
- s10 = peg$FAILED;
3099
+ s11 = peg$FAILED;
3040
3100
  if (peg$silentFails === 0) {
3041
3101
  peg$fail(peg$e7);
3042
3102
  }
3043
3103
  }
3044
3104
  }
3045
- s10 = peg$parseEOL();
3046
- if (s10 !== peg$FAILED) {
3047
- s9 = [s9, s10];
3048
- s8 = s9;
3105
+ s11 = peg$parseEOL();
3106
+ if (s11 !== peg$FAILED) {
3107
+ s10 = [s10, s11];
3108
+ s9 = s10;
3049
3109
  }
3050
3110
  else {
3051
- peg$currPos = s8;
3052
- s8 = peg$FAILED;
3111
+ peg$currPos = s9;
3112
+ s9 = peg$FAILED;
3053
3113
  }
3054
- if (s8 !== peg$FAILED) {
3055
- s7 = input.substring(s7, peg$currPos);
3114
+ if (s9 !== peg$FAILED) {
3115
+ s8 = input.substring(s8, peg$currPos);
3056
3116
  }
3057
3117
  else {
3058
- s7 = s8;
3118
+ s8 = s9;
3059
3119
  }
3060
- if (s7 !== peg$FAILED) {
3061
- s8 = peg$parseNL();
3062
- if (s8 === peg$FAILED) {
3063
- s8 = null;
3120
+ if (s8 !== peg$FAILED) {
3121
+ s9 = peg$parseNL();
3122
+ if (s9 === peg$FAILED) {
3123
+ s9 = null;
3064
3124
  }
3065
3125
  peg$savedPos = s0;
3066
- s0 = peg$f41(s1, s4, s6);
3126
+ s0 = peg$f41(s1, s4, s7);
3067
3127
  }
3068
3128
  else {
3069
3129
  peg$currPos = s0;
@@ -3334,8 +3394,32 @@ function peg$parse(input, options) {
3334
3394
  s5 = s6;
3335
3395
  }
3336
3396
  if (s5 !== peg$FAILED) {
3337
- s6 = peg$parseBlockTag();
3338
- if (s6 !== peg$FAILED) {
3397
+ s6 = [];
3398
+ if (input.charCodeAt(peg$currPos) === 32) {
3399
+ s7 = peg$c12;
3400
+ peg$currPos++;
3401
+ }
3402
+ else {
3403
+ s7 = peg$FAILED;
3404
+ if (peg$silentFails === 0) {
3405
+ peg$fail(peg$e16);
3406
+ }
3407
+ }
3408
+ while (s7 !== peg$FAILED) {
3409
+ s6.push(s7);
3410
+ if (input.charCodeAt(peg$currPos) === 32) {
3411
+ s7 = peg$c12;
3412
+ peg$currPos++;
3413
+ }
3414
+ else {
3415
+ s7 = peg$FAILED;
3416
+ if (peg$silentFails === 0) {
3417
+ peg$fail(peg$e16);
3418
+ }
3419
+ }
3420
+ }
3421
+ s7 = peg$parseBlockTag();
3422
+ if (s7 !== peg$FAILED) {
3339
3423
  peg$savedPos = s0;
3340
3424
  s0 = peg$f44(s2, s5);
3341
3425
  }
@@ -3373,7 +3457,7 @@ function peg$parse(input, options) {
3373
3457
  if (s1 === peg$FAILED) {
3374
3458
  s1 = null;
3375
3459
  }
3376
- s2 = peg$parseMediaSizeTags();
3460
+ s2 = peg$parseMediaTextTags();
3377
3461
  if (s2 !== peg$FAILED) {
3378
3462
  if (input.charCodeAt(peg$currPos) === 58) {
3379
3463
  s3 = peg$c5;
@@ -3504,7 +3588,7 @@ function peg$parse(input, options) {
3504
3588
  if (s1 === peg$FAILED) {
3505
3589
  s1 = null;
3506
3590
  }
3507
- s2 = peg$parseAlignmentTags();
3591
+ s2 = peg$parseMediaAlignmentTags();
3508
3592
  if (s2 !== peg$FAILED) {
3509
3593
  if (input.charCodeAt(peg$currPos) === 58) {
3510
3594
  s3 = peg$c5;
@@ -3541,10 +3625,34 @@ function peg$parse(input, options) {
3541
3625
  }
3542
3626
  }
3543
3627
  }
3544
- s5 = peg$parseAlignment();
3628
+ s5 = peg$parseMediaAlignment();
3545
3629
  if (s5 !== peg$FAILED) {
3546
- s6 = peg$parseBlockTag();
3547
- if (s6 !== peg$FAILED) {
3630
+ s6 = [];
3631
+ if (input.charCodeAt(peg$currPos) === 32) {
3632
+ s7 = peg$c12;
3633
+ peg$currPos++;
3634
+ }
3635
+ else {
3636
+ s7 = peg$FAILED;
3637
+ if (peg$silentFails === 0) {
3638
+ peg$fail(peg$e16);
3639
+ }
3640
+ }
3641
+ while (s7 !== peg$FAILED) {
3642
+ s6.push(s7);
3643
+ if (input.charCodeAt(peg$currPos) === 32) {
3644
+ s7 = peg$c12;
3645
+ peg$currPos++;
3646
+ }
3647
+ else {
3648
+ s7 = peg$FAILED;
3649
+ if (peg$silentFails === 0) {
3650
+ peg$fail(peg$e16);
3651
+ }
3652
+ }
3653
+ }
3654
+ s7 = peg$parseBlockTag();
3655
+ if (s7 !== peg$FAILED) {
3548
3656
  peg$savedPos = s0;
3549
3657
  s0 = peg$f46(s2, s5);
3550
3658
  }
@@ -3582,229 +3690,84 @@ function peg$parse(input, options) {
3582
3690
  if (s1 === peg$FAILED) {
3583
3691
  s1 = null;
3584
3692
  }
3585
- s2 = peg$currPos;
3586
- s3 = [];
3587
- s4 = peg$currPos;
3588
- s5 = peg$currPos;
3589
- peg$silentFails++;
3590
- s6 = input.charAt(peg$currPos);
3591
- if (peg$r2.test(s6)) {
3592
- peg$currPos++;
3593
- }
3594
- else {
3595
- s6 = peg$FAILED;
3596
- if (peg$silentFails === 0) {
3597
- peg$fail(peg$e27);
3693
+ s2 = peg$parseMediaBooleanTags();
3694
+ if (s2 !== peg$FAILED) {
3695
+ if (input.charCodeAt(peg$currPos) === 58) {
3696
+ s3 = peg$c5;
3697
+ peg$currPos++;
3598
3698
  }
3599
- }
3600
- if (s6 === peg$FAILED) {
3601
- s6 = peg$currPos;
3602
- s7 = peg$parseAlignmentTags();
3603
- if (s7 !== peg$FAILED) {
3604
- if (input.charCodeAt(peg$currPos) === 58) {
3605
- s8 = peg$c5;
3699
+ else {
3700
+ s3 = peg$FAILED;
3701
+ if (peg$silentFails === 0) {
3702
+ peg$fail(peg$e8);
3703
+ }
3704
+ }
3705
+ if (s3 !== peg$FAILED) {
3706
+ s4 = [];
3707
+ if (input.charCodeAt(peg$currPos) === 32) {
3708
+ s5 = peg$c12;
3606
3709
  peg$currPos++;
3607
3710
  }
3608
3711
  else {
3609
- s8 = peg$FAILED;
3712
+ s5 = peg$FAILED;
3610
3713
  if (peg$silentFails === 0) {
3611
- peg$fail(peg$e8);
3714
+ peg$fail(peg$e16);
3612
3715
  }
3613
3716
  }
3614
- if (s8 !== peg$FAILED) {
3615
- s7 = [s7, s8];
3616
- s6 = s7;
3617
- }
3618
- else {
3619
- peg$currPos = s6;
3620
- s6 = peg$FAILED;
3621
- }
3622
- }
3623
- else {
3624
- peg$currPos = s6;
3625
- s6 = peg$FAILED;
3626
- }
3627
- }
3628
- peg$silentFails--;
3629
- if (s6 === peg$FAILED) {
3630
- s5 = undefined;
3631
- }
3632
- else {
3633
- peg$currPos = s5;
3634
- s5 = peg$FAILED;
3635
- }
3636
- if (s5 !== peg$FAILED) {
3637
- s6 = peg$parsechar();
3638
- if (s6 !== peg$FAILED) {
3639
- s5 = [s5, s6];
3640
- s4 = s5;
3641
- }
3642
- else {
3643
- peg$currPos = s4;
3644
- s4 = peg$FAILED;
3645
- }
3646
- }
3647
- else {
3648
- peg$currPos = s4;
3649
- s4 = peg$FAILED;
3650
- }
3651
- while (s4 !== peg$FAILED) {
3652
- s3.push(s4);
3653
- s4 = peg$currPos;
3654
- s5 = peg$currPos;
3655
- peg$silentFails++;
3656
- s6 = input.charAt(peg$currPos);
3657
- if (peg$r2.test(s6)) {
3658
- peg$currPos++;
3659
- }
3660
- else {
3661
- s6 = peg$FAILED;
3662
- if (peg$silentFails === 0) {
3663
- peg$fail(peg$e27);
3664
- }
3665
- }
3666
- if (s6 === peg$FAILED) {
3667
- s6 = peg$currPos;
3668
- s7 = peg$parseAlignmentTags();
3669
- if (s7 !== peg$FAILED) {
3670
- if (input.charCodeAt(peg$currPos) === 58) {
3671
- s8 = peg$c5;
3717
+ while (s5 !== peg$FAILED) {
3718
+ s4.push(s5);
3719
+ if (input.charCodeAt(peg$currPos) === 32) {
3720
+ s5 = peg$c12;
3672
3721
  peg$currPos++;
3673
3722
  }
3674
3723
  else {
3675
- s8 = peg$FAILED;
3724
+ s5 = peg$FAILED;
3676
3725
  if (peg$silentFails === 0) {
3677
- peg$fail(peg$e8);
3726
+ peg$fail(peg$e16);
3678
3727
  }
3679
3728
  }
3680
- if (s8 !== peg$FAILED) {
3681
- s7 = [s7, s8];
3682
- s6 = s7;
3729
+ }
3730
+ s5 = peg$parseBoolean();
3731
+ if (s5 !== peg$FAILED) {
3732
+ s6 = [];
3733
+ if (input.charCodeAt(peg$currPos) === 32) {
3734
+ s7 = peg$c12;
3735
+ peg$currPos++;
3683
3736
  }
3684
3737
  else {
3685
- peg$currPos = s6;
3686
- s6 = peg$FAILED;
3738
+ s7 = peg$FAILED;
3739
+ if (peg$silentFails === 0) {
3740
+ peg$fail(peg$e16);
3741
+ }
3687
3742
  }
3688
- }
3689
- else {
3690
- peg$currPos = s6;
3691
- s6 = peg$FAILED;
3692
- }
3693
- }
3694
- peg$silentFails--;
3695
- if (s6 === peg$FAILED) {
3696
- s5 = undefined;
3697
- }
3698
- else {
3699
- peg$currPos = s5;
3700
- s5 = peg$FAILED;
3701
- }
3702
- if (s5 !== peg$FAILED) {
3703
- s6 = peg$parsechar();
3704
- if (s6 !== peg$FAILED) {
3705
- s5 = [s5, s6];
3706
- s4 = s5;
3707
- }
3708
- else {
3709
- peg$currPos = s4;
3710
- s4 = peg$FAILED;
3711
- }
3712
- }
3713
- else {
3714
- peg$currPos = s4;
3715
- s4 = peg$FAILED;
3716
- }
3717
- }
3718
- s2 = input.substring(s2, peg$currPos);
3719
- if (input.charCodeAt(peg$currPos) === 58) {
3720
- s3 = peg$c5;
3721
- peg$currPos++;
3722
- }
3723
- else {
3724
- s3 = peg$FAILED;
3725
- if (peg$silentFails === 0) {
3726
- peg$fail(peg$e8);
3727
- }
3728
- }
3729
- if (s3 !== peg$FAILED) {
3730
- if (input.charCodeAt(peg$currPos) === 32) {
3731
- s4 = peg$c12;
3732
- peg$currPos++;
3733
- }
3734
- else {
3735
- s4 = peg$FAILED;
3736
- if (peg$silentFails === 0) {
3737
- peg$fail(peg$e16);
3738
- }
3739
- }
3740
- if (s4 === peg$FAILED) {
3741
- s4 = null;
3742
- }
3743
- s5 = peg$currPos;
3744
- s6 = [];
3745
- s7 = peg$currPos;
3746
- s8 = peg$currPos;
3747
- peg$silentFails++;
3748
- s9 = peg$parseBlockTag();
3749
- peg$silentFails--;
3750
- if (s9 === peg$FAILED) {
3751
- s8 = undefined;
3752
- }
3753
- else {
3754
- peg$currPos = s8;
3755
- s8 = peg$FAILED;
3756
- }
3757
- if (s8 !== peg$FAILED) {
3758
- s9 = peg$parsechar();
3759
- if (s9 !== peg$FAILED) {
3760
- s8 = [s8, s9];
3761
- s7 = s8;
3762
- }
3763
- else {
3764
- peg$currPos = s7;
3765
- s7 = peg$FAILED;
3766
- }
3767
- }
3768
- else {
3769
- peg$currPos = s7;
3770
- s7 = peg$FAILED;
3771
- }
3772
- while (s7 !== peg$FAILED) {
3773
- s6.push(s7);
3774
- s7 = peg$currPos;
3775
- s8 = peg$currPos;
3776
- peg$silentFails++;
3777
- s9 = peg$parseBlockTag();
3778
- peg$silentFails--;
3779
- if (s9 === peg$FAILED) {
3780
- s8 = undefined;
3781
- }
3782
- else {
3783
- peg$currPos = s8;
3784
- s8 = peg$FAILED;
3785
- }
3786
- if (s8 !== peg$FAILED) {
3787
- s9 = peg$parsechar();
3788
- if (s9 !== peg$FAILED) {
3789
- s8 = [s8, s9];
3790
- s7 = s8;
3743
+ while (s7 !== peg$FAILED) {
3744
+ s6.push(s7);
3745
+ if (input.charCodeAt(peg$currPos) === 32) {
3746
+ s7 = peg$c12;
3747
+ peg$currPos++;
3748
+ }
3749
+ else {
3750
+ s7 = peg$FAILED;
3751
+ if (peg$silentFails === 0) {
3752
+ peg$fail(peg$e16);
3753
+ }
3754
+ }
3755
+ }
3756
+ s7 = peg$parseBlockTag();
3757
+ if (s7 !== peg$FAILED) {
3758
+ peg$savedPos = s0;
3759
+ s0 = peg$f47(s2, s5);
3791
3760
  }
3792
3761
  else {
3793
- peg$currPos = s7;
3794
- s7 = peg$FAILED;
3762
+ peg$currPos = s0;
3763
+ s0 = peg$FAILED;
3795
3764
  }
3796
3765
  }
3797
3766
  else {
3798
- peg$currPos = s7;
3799
- s7 = peg$FAILED;
3767
+ peg$currPos = s0;
3768
+ s0 = peg$FAILED;
3800
3769
  }
3801
3770
  }
3802
- s5 = input.substring(s5, peg$currPos);
3803
- s6 = peg$parseBlockTag();
3804
- if (s6 !== peg$FAILED) {
3805
- peg$savedPos = s0;
3806
- s0 = peg$f47(s2, s5);
3807
- }
3808
3771
  else {
3809
3772
  peg$currPos = s0;
3810
3773
  s0 = peg$FAILED;
@@ -3829,130 +3792,155 @@ function peg$parse(input, options) {
3829
3792
  if (s1 === peg$FAILED) {
3830
3793
  s1 = null;
3831
3794
  }
3832
- s2 = peg$currPos;
3833
- s3 = [];
3834
- s4 = peg$currPos;
3835
- s5 = peg$currPos;
3836
- peg$silentFails++;
3837
- s6 = peg$parseBlockTag();
3838
- if (s6 === peg$FAILED) {
3839
- s6 = peg$currPos;
3840
- s7 = peg$parseAlignmentTags();
3841
- if (s7 !== peg$FAILED) {
3842
- if (input.charCodeAt(peg$currPos) === 58) {
3843
- s8 = peg$c5;
3795
+ s2 = peg$parseMediaBooleanTags();
3796
+ if (s2 !== peg$FAILED) {
3797
+ s3 = [];
3798
+ if (input.charCodeAt(peg$currPos) === 32) {
3799
+ s4 = peg$c12;
3800
+ peg$currPos++;
3801
+ }
3802
+ else {
3803
+ s4 = peg$FAILED;
3804
+ if (peg$silentFails === 0) {
3805
+ peg$fail(peg$e16);
3806
+ }
3807
+ }
3808
+ while (s4 !== peg$FAILED) {
3809
+ s3.push(s4);
3810
+ if (input.charCodeAt(peg$currPos) === 32) {
3811
+ s4 = peg$c12;
3844
3812
  peg$currPos++;
3845
3813
  }
3846
3814
  else {
3847
- s8 = peg$FAILED;
3815
+ s4 = peg$FAILED;
3848
3816
  if (peg$silentFails === 0) {
3849
- peg$fail(peg$e8);
3850
- }
3851
- }
3852
- if (s8 !== peg$FAILED) {
3853
- s7 = [s7, s8];
3854
- s6 = s7;
3855
- }
3856
- else {
3857
- peg$currPos = s6;
3858
- s6 = peg$FAILED;
3817
+ peg$fail(peg$e16);
3818
+ }
3859
3819
  }
3860
3820
  }
3821
+ s4 = peg$parseBlockTag();
3822
+ if (s4 !== peg$FAILED) {
3823
+ peg$savedPos = s0;
3824
+ s0 = peg$f48(s2);
3825
+ }
3861
3826
  else {
3862
- peg$currPos = s6;
3863
- s6 = peg$FAILED;
3827
+ peg$currPos = s0;
3828
+ s0 = peg$FAILED;
3864
3829
  }
3865
3830
  }
3866
- peg$silentFails--;
3867
- if (s6 === peg$FAILED) {
3868
- s5 = undefined;
3869
- }
3870
3831
  else {
3871
- peg$currPos = s5;
3872
- s5 = peg$FAILED;
3832
+ peg$currPos = s0;
3833
+ s0 = peg$FAILED;
3873
3834
  }
3874
- if (s5 !== peg$FAILED) {
3875
- s6 = peg$parsechar();
3876
- if (s6 !== peg$FAILED) {
3877
- s5 = [s5, s6];
3878
- s4 = s5;
3835
+ if (s0 === peg$FAILED) {
3836
+ s0 = peg$currPos;
3837
+ if (input.charCodeAt(peg$currPos) === 64) {
3838
+ s1 = peg$c22;
3839
+ peg$currPos++;
3879
3840
  }
3880
3841
  else {
3881
- peg$currPos = s4;
3882
- s4 = peg$FAILED;
3842
+ s1 = peg$FAILED;
3843
+ if (peg$silentFails === 0) {
3844
+ peg$fail(peg$e26);
3845
+ }
3883
3846
  }
3884
- }
3885
- else {
3886
- peg$currPos = s4;
3887
- s4 = peg$FAILED;
3888
- }
3889
- while (s4 !== peg$FAILED) {
3890
- s3.push(s4);
3891
- s4 = peg$currPos;
3892
- s5 = peg$currPos;
3893
- peg$silentFails++;
3894
- s6 = peg$parseBlockTag();
3895
- if (s6 === peg$FAILED) {
3896
- s6 = peg$currPos;
3897
- s7 = peg$parseAlignmentTags();
3898
- if (s7 !== peg$FAILED) {
3899
- if (input.charCodeAt(peg$currPos) === 58) {
3900
- s8 = peg$c5;
3901
- peg$currPos++;
3902
- }
3903
- else {
3904
- s8 = peg$FAILED;
3905
- if (peg$silentFails === 0) {
3906
- peg$fail(peg$e8);
3907
- }
3847
+ if (s1 === peg$FAILED) {
3848
+ s1 = null;
3849
+ }
3850
+ s2 = peg$parseBlockTag();
3851
+ if (s2 !== peg$FAILED) {
3852
+ peg$savedPos = s0;
3853
+ s0 = peg$f49();
3854
+ }
3855
+ else {
3856
+ peg$currPos = s0;
3857
+ s0 = peg$FAILED;
3858
+ }
3859
+ if (s0 === peg$FAILED) {
3860
+ s0 = peg$currPos;
3861
+ if (input.charCodeAt(peg$currPos) === 64) {
3862
+ s1 = peg$c22;
3863
+ peg$currPos++;
3864
+ }
3865
+ else {
3866
+ s1 = peg$FAILED;
3867
+ if (peg$silentFails === 0) {
3868
+ peg$fail(peg$e26);
3908
3869
  }
3909
- if (s8 !== peg$FAILED) {
3910
- s7 = [s7, s8];
3911
- s6 = s7;
3870
+ }
3871
+ if (s1 === peg$FAILED) {
3872
+ s1 = null;
3873
+ }
3874
+ s2 = peg$currPos;
3875
+ s3 = [];
3876
+ s4 = peg$currPos;
3877
+ s5 = peg$currPos;
3878
+ peg$silentFails++;
3879
+ s6 = peg$parseBlockTag();
3880
+ peg$silentFails--;
3881
+ if (s6 === peg$FAILED) {
3882
+ s5 = undefined;
3883
+ }
3884
+ else {
3885
+ peg$currPos = s5;
3886
+ s5 = peg$FAILED;
3887
+ }
3888
+ if (s5 !== peg$FAILED) {
3889
+ s6 = peg$parsechar();
3890
+ if (s6 !== peg$FAILED) {
3891
+ s5 = [s5, s6];
3892
+ s4 = s5;
3912
3893
  }
3913
3894
  else {
3914
- peg$currPos = s6;
3915
- s6 = peg$FAILED;
3895
+ peg$currPos = s4;
3896
+ s4 = peg$FAILED;
3916
3897
  }
3917
3898
  }
3918
3899
  else {
3919
- peg$currPos = s6;
3920
- s6 = peg$FAILED;
3900
+ peg$currPos = s4;
3901
+ s4 = peg$FAILED;
3921
3902
  }
3922
- }
3923
- peg$silentFails--;
3924
- if (s6 === peg$FAILED) {
3925
- s5 = undefined;
3926
- }
3927
- else {
3928
- peg$currPos = s5;
3929
- s5 = peg$FAILED;
3930
- }
3931
- if (s5 !== peg$FAILED) {
3932
- s6 = peg$parsechar();
3933
- if (s6 !== peg$FAILED) {
3934
- s5 = [s5, s6];
3935
- s4 = s5;
3903
+ while (s4 !== peg$FAILED) {
3904
+ s3.push(s4);
3905
+ s4 = peg$currPos;
3906
+ s5 = peg$currPos;
3907
+ peg$silentFails++;
3908
+ s6 = peg$parseBlockTag();
3909
+ peg$silentFails--;
3910
+ if (s6 === peg$FAILED) {
3911
+ s5 = undefined;
3912
+ }
3913
+ else {
3914
+ peg$currPos = s5;
3915
+ s5 = peg$FAILED;
3916
+ }
3917
+ if (s5 !== peg$FAILED) {
3918
+ s6 = peg$parsechar();
3919
+ if (s6 !== peg$FAILED) {
3920
+ s5 = [s5, s6];
3921
+ s4 = s5;
3922
+ }
3923
+ else {
3924
+ peg$currPos = s4;
3925
+ s4 = peg$FAILED;
3926
+ }
3927
+ }
3928
+ else {
3929
+ peg$currPos = s4;
3930
+ s4 = peg$FAILED;
3931
+ }
3932
+ }
3933
+ s2 = input.substring(s2, peg$currPos);
3934
+ s3 = peg$parseBlockTag();
3935
+ if (s3 !== peg$FAILED) {
3936
+ peg$savedPos = s0;
3937
+ s0 = peg$f50(s2);
3936
3938
  }
3937
3939
  else {
3938
- peg$currPos = s4;
3939
- s4 = peg$FAILED;
3940
+ peg$currPos = s0;
3941
+ s0 = peg$FAILED;
3940
3942
  }
3941
3943
  }
3942
- else {
3943
- peg$currPos = s4;
3944
- s4 = peg$FAILED;
3945
- }
3946
- }
3947
- s2 = input.substring(s2, peg$currPos);
3948
- s3 = peg$parseBlockTag();
3949
- if (s3 !== peg$FAILED) {
3950
- peg$savedPos = s0;
3951
- s0 = peg$f48(s2);
3952
- }
3953
- else {
3954
- peg$currPos = s0;
3955
- s0 = peg$FAILED;
3956
3944
  }
3957
3945
  }
3958
3946
  }
@@ -3970,7 +3958,7 @@ function peg$parse(input, options) {
3970
3958
  else {
3971
3959
  s0 = peg$FAILED;
3972
3960
  if (peg$silentFails === 0) {
3973
- peg$fail(peg$e28);
3961
+ peg$fail(peg$e27);
3974
3962
  }
3975
3963
  }
3976
3964
  if (s0 === peg$FAILED) {
@@ -3981,13 +3969,13 @@ function peg$parse(input, options) {
3981
3969
  else {
3982
3970
  s0 = peg$FAILED;
3983
3971
  if (peg$silentFails === 0) {
3984
- peg$fail(peg$e29);
3972
+ peg$fail(peg$e28);
3985
3973
  }
3986
3974
  }
3987
3975
  }
3988
3976
  return s0;
3989
3977
  }
3990
- function peg$parseAlignmentTags() {
3978
+ function peg$parseMediaAlignmentTags() {
3991
3979
  var s0;
3992
3980
  if (input.substr(peg$currPos, 9) === peg$c25) {
3993
3981
  s0 = peg$c25;
@@ -3996,7 +3984,7 @@ function peg$parse(input, options) {
3996
3984
  else {
3997
3985
  s0 = peg$FAILED;
3998
3986
  if (peg$silentFails === 0) {
3999
- peg$fail(peg$e30);
3987
+ peg$fail(peg$e29);
4000
3988
  }
4001
3989
  }
4002
3990
  if (s0 === peg$FAILED) {
@@ -4007,13 +3995,13 @@ function peg$parse(input, options) {
4007
3995
  else {
4008
3996
  s0 = peg$FAILED;
4009
3997
  if (peg$silentFails === 0) {
4010
- peg$fail(peg$e31);
3998
+ peg$fail(peg$e30);
4011
3999
  }
4012
4000
  }
4013
4001
  }
4014
4002
  return s0;
4015
4003
  }
4016
- function peg$parseAlignment() {
4004
+ function peg$parseMediaAlignment() {
4017
4005
  var s0;
4018
4006
  if (input.substr(peg$currPos, 4) === peg$c27) {
4019
4007
  s0 = peg$c27;
@@ -4022,7 +4010,7 @@ function peg$parse(input, options) {
4022
4010
  else {
4023
4011
  s0 = peg$FAILED;
4024
4012
  if (peg$silentFails === 0) {
4025
- peg$fail(peg$e32);
4013
+ peg$fail(peg$e31);
4026
4014
  }
4027
4015
  }
4028
4016
  if (s0 === peg$FAILED) {
@@ -4033,7 +4021,7 @@ function peg$parse(input, options) {
4033
4021
  else {
4034
4022
  s0 = peg$FAILED;
4035
4023
  if (peg$silentFails === 0) {
4036
- peg$fail(peg$e33);
4024
+ peg$fail(peg$e32);
4037
4025
  }
4038
4026
  }
4039
4027
  if (s0 === peg$FAILED) {
@@ -4044,20 +4032,86 @@ function peg$parse(input, options) {
4044
4032
  else {
4045
4033
  s0 = peg$FAILED;
4046
4034
  if (peg$silentFails === 0) {
4047
- peg$fail(peg$e34);
4035
+ peg$fail(peg$e33);
4048
4036
  }
4049
4037
  }
4050
4038
  }
4051
4039
  }
4052
4040
  return s0;
4053
4041
  }
4042
+ function peg$parseMediaTextTags() {
4043
+ var s0;
4044
+ if (input.substr(peg$currPos, 3) === peg$c30) {
4045
+ s0 = peg$c30;
4046
+ peg$currPos += 3;
4047
+ }
4048
+ else {
4049
+ s0 = peg$FAILED;
4050
+ if (peg$silentFails === 0) {
4051
+ peg$fail(peg$e34);
4052
+ }
4053
+ }
4054
+ if (s0 === peg$FAILED) {
4055
+ if (input.substr(peg$currPos, 7) === peg$c31) {
4056
+ s0 = peg$c31;
4057
+ peg$currPos += 7;
4058
+ }
4059
+ else {
4060
+ s0 = peg$FAILED;
4061
+ if (peg$silentFails === 0) {
4062
+ peg$fail(peg$e35);
4063
+ }
4064
+ }
4065
+ }
4066
+ return s0;
4067
+ }
4068
+ function peg$parseMediaBooleanTags() {
4069
+ var s0;
4070
+ if (input.substr(peg$currPos, 12) === peg$c32) {
4071
+ s0 = peg$c32;
4072
+ peg$currPos += 12;
4073
+ }
4074
+ else {
4075
+ s0 = peg$FAILED;
4076
+ if (peg$silentFails === 0) {
4077
+ peg$fail(peg$e36);
4078
+ }
4079
+ }
4080
+ return s0;
4081
+ }
4082
+ function peg$parseBoolean() {
4083
+ var s0;
4084
+ if (input.substr(peg$currPos, 4) === peg$c33) {
4085
+ s0 = peg$c33;
4086
+ peg$currPos += 4;
4087
+ }
4088
+ else {
4089
+ s0 = peg$FAILED;
4090
+ if (peg$silentFails === 0) {
4091
+ peg$fail(peg$e37);
4092
+ }
4093
+ }
4094
+ if (s0 === peg$FAILED) {
4095
+ if (input.substr(peg$currPos, 5) === peg$c34) {
4096
+ s0 = peg$c34;
4097
+ peg$currPos += 5;
4098
+ }
4099
+ else {
4100
+ s0 = peg$FAILED;
4101
+ if (peg$silentFails === 0) {
4102
+ peg$fail(peg$e38);
4103
+ }
4104
+ }
4105
+ }
4106
+ return s0;
4107
+ }
4054
4108
  function peg$parsebitmarkPlus() {
4055
4109
  var s0, s1;
4056
4110
  peg$silentFails++;
4057
4111
  s0 = peg$currPos;
4058
4112
  s1 = peg$parseInlineTags();
4059
4113
  peg$savedPos = s0;
4060
- s1 = peg$f49(s1);
4114
+ s1 = peg$f51(s1);
4061
4115
  s0 = s1;
4062
4116
  peg$silentFails--;
4063
4117
  s1 = peg$FAILED;
@@ -4073,7 +4127,7 @@ function peg$parse(input, options) {
4073
4127
  peg$silentFails--;
4074
4128
  s1 = peg$FAILED;
4075
4129
  if (peg$silentFails === 0) {
4076
- peg$fail(peg$e35);
4130
+ peg$fail(peg$e39);
4077
4131
  }
4078
4132
  return s0;
4079
4133
  }
@@ -4097,7 +4151,7 @@ function peg$parse(input, options) {
4097
4151
  }
4098
4152
  }
4099
4153
  peg$savedPos = s0;
4100
- s0 = peg$f50(s1, s2);
4154
+ s0 = peg$f52(s1, s2);
4101
4155
  return s0;
4102
4156
  }
4103
4157
  function peg$parseInlinePlainText() {
@@ -4106,7 +4160,7 @@ function peg$parse(input, options) {
4106
4160
  s1 = peg$parseNL();
4107
4161
  if (s1 !== peg$FAILED) {
4108
4162
  peg$savedPos = s0;
4109
- s1 = peg$f51();
4163
+ s1 = peg$f53();
4110
4164
  }
4111
4165
  s0 = s1;
4112
4166
  if (s0 === peg$FAILED) {
@@ -4249,7 +4303,7 @@ function peg$parse(input, options) {
4249
4303
  }
4250
4304
  if (s1 !== peg$FAILED) {
4251
4305
  peg$savedPos = s0;
4252
- s1 = peg$f52(s1);
4306
+ s1 = peg$f54(s1);
4253
4307
  }
4254
4308
  s0 = s1;
4255
4309
  }
@@ -4258,13 +4312,13 @@ function peg$parse(input, options) {
4258
4312
  function peg$parseInlineHalfTag() {
4259
4313
  var s0;
4260
4314
  if (input.charCodeAt(peg$currPos) === 61) {
4261
- s0 = peg$c30;
4315
+ s0 = peg$c35;
4262
4316
  peg$currPos++;
4263
4317
  }
4264
4318
  else {
4265
4319
  s0 = peg$FAILED;
4266
4320
  if (peg$silentFails === 0) {
4267
- peg$fail(peg$e36);
4321
+ peg$fail(peg$e40);
4268
4322
  }
4269
4323
  }
4270
4324
  return s0;
@@ -4335,7 +4389,7 @@ function peg$parse(input, options) {
4335
4389
  s3 = peg$parseBodyBitCloseTag();
4336
4390
  if (s3 !== peg$FAILED) {
4337
4391
  peg$savedPos = s0;
4338
- s0 = peg$f53(s2);
4392
+ s0 = peg$f55(s2);
4339
4393
  }
4340
4394
  else {
4341
4395
  peg$currPos = s0;
@@ -4435,19 +4489,19 @@ function peg$parse(input, options) {
4435
4489
  s2 = input.substring(s2, peg$currPos);
4436
4490
  s3 = peg$parseInlineTag();
4437
4491
  if (s3 !== peg$FAILED) {
4438
- if (input.substr(peg$currPos, 7) === peg$c31) {
4439
- s4 = peg$c31;
4492
+ if (input.substr(peg$currPos, 7) === peg$c36) {
4493
+ s4 = peg$c36;
4440
4494
  peg$currPos += 7;
4441
4495
  }
4442
4496
  else {
4443
4497
  s4 = peg$FAILED;
4444
4498
  if (peg$silentFails === 0) {
4445
- peg$fail(peg$e37);
4499
+ peg$fail(peg$e41);
4446
4500
  }
4447
4501
  }
4448
4502
  if (s4 !== peg$FAILED) {
4449
4503
  peg$savedPos = s0;
4450
- s0 = peg$f54(s2);
4504
+ s0 = peg$f56(s2);
4451
4505
  }
4452
4506
  else {
4453
4507
  peg$currPos = s0;
@@ -4547,14 +4601,14 @@ function peg$parse(input, options) {
4547
4601
  s2 = input.substring(s2, peg$currPos);
4548
4602
  s3 = peg$parseInlineTag();
4549
4603
  if (s3 !== peg$FAILED) {
4550
- if (input.substr(peg$currPos, 13) === peg$c32) {
4551
- s4 = peg$c32;
4604
+ if (input.substr(peg$currPos, 13) === peg$c37) {
4605
+ s4 = peg$c37;
4552
4606
  peg$currPos += 13;
4553
4607
  }
4554
4608
  else {
4555
4609
  s4 = peg$FAILED;
4556
4610
  if (peg$silentFails === 0) {
4557
- peg$fail(peg$e38);
4611
+ peg$fail(peg$e42);
4558
4612
  }
4559
4613
  }
4560
4614
  if (s4 !== peg$FAILED) {
@@ -4573,7 +4627,7 @@ function peg$parse(input, options) {
4573
4627
  if (s6 !== peg$FAILED) {
4574
4628
  s7 = peg$parseInlineMediaChain();
4575
4629
  peg$savedPos = s0;
4576
- s0 = peg$f55(s2, s5, s7);
4630
+ s0 = peg$f57(s2, s5, s7);
4577
4631
  }
4578
4632
  else {
4579
4633
  peg$currPos = s0;
@@ -4686,7 +4740,7 @@ function peg$parse(input, options) {
4686
4740
  s4 = peg$parseAttrChain();
4687
4741
  if (s4 !== peg$FAILED) {
4688
4742
  peg$savedPos = s0;
4689
- s0 = peg$f56(s2, s4);
4743
+ s0 = peg$f58(s2, s4);
4690
4744
  }
4691
4745
  else {
4692
4746
  peg$currPos = s0;
@@ -4787,7 +4841,7 @@ function peg$parse(input, options) {
4787
4841
  s3 = peg$parseBoldTag();
4788
4842
  if (s3 !== peg$FAILED) {
4789
4843
  peg$savedPos = s0;
4790
- s0 = peg$f57(s2);
4844
+ s0 = peg$f59(s2);
4791
4845
  }
4792
4846
  else {
4793
4847
  peg$currPos = s0;
@@ -4883,7 +4937,7 @@ function peg$parse(input, options) {
4883
4937
  s3 = peg$parseItalicTag();
4884
4938
  if (s3 !== peg$FAILED) {
4885
4939
  peg$savedPos = s0;
4886
- s0 = peg$f58(s2);
4940
+ s0 = peg$f60(s2);
4887
4941
  }
4888
4942
  else {
4889
4943
  peg$currPos = s0;
@@ -4979,7 +5033,7 @@ function peg$parse(input, options) {
4979
5033
  s3 = peg$parseLightTag();
4980
5034
  if (s3 !== peg$FAILED) {
4981
5035
  peg$savedPos = s0;
4982
- s0 = peg$f59(s2);
5036
+ s0 = peg$f61(s2);
4983
5037
  }
4984
5038
  else {
4985
5039
  peg$currPos = s0;
@@ -5075,7 +5129,7 @@ function peg$parse(input, options) {
5075
5129
  s3 = peg$parseHighlightTag();
5076
5130
  if (s3 !== peg$FAILED) {
5077
5131
  peg$savedPos = s0;
5078
- s0 = peg$f60(s2);
5132
+ s0 = peg$f62(s2);
5079
5133
  }
5080
5134
  else {
5081
5135
  peg$currPos = s0;
@@ -5091,7 +5145,7 @@ function peg$parse(input, options) {
5091
5145
  s1 = peg$parseUrl();
5092
5146
  if (s1 !== peg$FAILED) {
5093
5147
  peg$savedPos = s0;
5094
- s1 = peg$f61(s1);
5148
+ s1 = peg$f63(s1);
5095
5149
  }
5096
5150
  s0 = s1;
5097
5151
  }
@@ -5241,7 +5295,7 @@ function peg$parse(input, options) {
5241
5295
  }
5242
5296
  if (s2 !== peg$FAILED) {
5243
5297
  peg$savedPos = s0;
5244
- s0 = peg$f62(s2);
5298
+ s0 = peg$f64(s2);
5245
5299
  }
5246
5300
  else {
5247
5301
  peg$currPos = s0;
@@ -5264,7 +5318,7 @@ function peg$parse(input, options) {
5264
5318
  s2 = peg$parseInlineMediaChainItem();
5265
5319
  }
5266
5320
  peg$savedPos = s0;
5267
- s1 = peg$f63(s1);
5321
+ s1 = peg$f65(s1);
5268
5322
  s0 = s1;
5269
5323
  return s0;
5270
5324
  }
@@ -5345,7 +5399,7 @@ function peg$parse(input, options) {
5345
5399
  s3 = peg$parseBlockTag();
5346
5400
  if (s3 !== peg$FAILED) {
5347
5401
  peg$savedPos = s0;
5348
- s0 = peg$f64(s2);
5402
+ s0 = peg$f66(s2);
5349
5403
  }
5350
5404
  else {
5351
5405
  peg$currPos = s0;
@@ -5500,7 +5554,7 @@ function peg$parse(input, options) {
5500
5554
  s6 = peg$parseBlockTag();
5501
5555
  if (s6 !== peg$FAILED) {
5502
5556
  peg$savedPos = s0;
5503
- s0 = peg$f65(s2, s5);
5557
+ s0 = peg$f67(s2, s5);
5504
5558
  }
5505
5559
  else {
5506
5560
  peg$currPos = s0;
@@ -5636,7 +5690,7 @@ function peg$parse(input, options) {
5636
5690
  s6 = peg$parseBlockTag();
5637
5691
  if (s6 !== peg$FAILED) {
5638
5692
  peg$savedPos = s0;
5639
- s0 = peg$f66(s2, s5);
5693
+ s0 = peg$f68(s2, s5);
5640
5694
  }
5641
5695
  else {
5642
5696
  peg$currPos = s0;
@@ -5667,14 +5721,14 @@ function peg$parse(input, options) {
5667
5721
  if (s1 === peg$FAILED) {
5668
5722
  s1 = null;
5669
5723
  }
5670
- if (input.substr(peg$currPos, 17) === peg$c33) {
5671
- s2 = peg$c33;
5724
+ if (input.substr(peg$currPos, 17) === peg$c38) {
5725
+ s2 = peg$c38;
5672
5726
  peg$currPos += 17;
5673
5727
  }
5674
5728
  else {
5675
5729
  s2 = peg$FAILED;
5676
5730
  if (peg$silentFails === 0) {
5677
- peg$fail(peg$e39);
5731
+ peg$fail(peg$e43);
5678
5732
  }
5679
5733
  }
5680
5734
  if (s2 !== peg$FAILED) {
@@ -5718,7 +5772,7 @@ function peg$parse(input, options) {
5718
5772
  s6 = peg$parseBlockTag();
5719
5773
  if (s6 !== peg$FAILED) {
5720
5774
  peg$savedPos = s0;
5721
- s0 = peg$f67(s2, s5);
5775
+ s0 = peg$f69(s2, s5);
5722
5776
  }
5723
5777
  else {
5724
5778
  peg$currPos = s0;
@@ -5754,14 +5808,14 @@ function peg$parse(input, options) {
5754
5808
  if (s1 === peg$FAILED) {
5755
5809
  s1 = null;
5756
5810
  }
5757
- if (input.substr(peg$currPos, 4) === peg$c34) {
5758
- s2 = peg$c34;
5811
+ if (input.substr(peg$currPos, 4) === peg$c39) {
5812
+ s2 = peg$c39;
5759
5813
  peg$currPos += 4;
5760
5814
  }
5761
5815
  else {
5762
5816
  s2 = peg$FAILED;
5763
5817
  if (peg$silentFails === 0) {
5764
- peg$fail(peg$e40);
5818
+ peg$fail(peg$e44);
5765
5819
  }
5766
5820
  }
5767
5821
  if (s2 !== peg$FAILED) {
@@ -5805,7 +5859,7 @@ function peg$parse(input, options) {
5805
5859
  s6 = peg$parseBlockTag();
5806
5860
  if (s6 !== peg$FAILED) {
5807
5861
  peg$savedPos = s0;
5808
- s0 = peg$f68(s2, s5);
5862
+ s0 = peg$f70(s2, s5);
5809
5863
  }
5810
5864
  else {
5811
5865
  peg$currPos = s0;
@@ -5834,91 +5888,91 @@ function peg$parse(input, options) {
5834
5888
  }
5835
5889
  function peg$parseInlineMediaAlignment() {
5836
5890
  var s0;
5837
- if (input.substr(peg$currPos, 3) === peg$c35) {
5838
- s0 = peg$c35;
5891
+ if (input.substr(peg$currPos, 3) === peg$c40) {
5892
+ s0 = peg$c40;
5839
5893
  peg$currPos += 3;
5840
5894
  }
5841
5895
  else {
5842
5896
  s0 = peg$FAILED;
5843
5897
  if (peg$silentFails === 0) {
5844
- peg$fail(peg$e41);
5898
+ peg$fail(peg$e45);
5845
5899
  }
5846
5900
  }
5847
5901
  if (s0 === peg$FAILED) {
5848
- if (input.substr(peg$currPos, 6) === peg$c36) {
5849
- s0 = peg$c36;
5902
+ if (input.substr(peg$currPos, 6) === peg$c41) {
5903
+ s0 = peg$c41;
5850
5904
  peg$currPos += 6;
5851
5905
  }
5852
5906
  else {
5853
5907
  s0 = peg$FAILED;
5854
5908
  if (peg$silentFails === 0) {
5855
- peg$fail(peg$e42);
5909
+ peg$fail(peg$e46);
5856
5910
  }
5857
5911
  }
5858
5912
  if (s0 === peg$FAILED) {
5859
- if (input.substr(peg$currPos, 6) === peg$c37) {
5860
- s0 = peg$c37;
5913
+ if (input.substr(peg$currPos, 6) === peg$c42) {
5914
+ s0 = peg$c42;
5861
5915
  peg$currPos += 6;
5862
5916
  }
5863
5917
  else {
5864
5918
  s0 = peg$FAILED;
5865
5919
  if (peg$silentFails === 0) {
5866
- peg$fail(peg$e43);
5920
+ peg$fail(peg$e47);
5867
5921
  }
5868
5922
  }
5869
5923
  if (s0 === peg$FAILED) {
5870
- if (input.substr(peg$currPos, 8) === peg$c38) {
5871
- s0 = peg$c38;
5924
+ if (input.substr(peg$currPos, 8) === peg$c43) {
5925
+ s0 = peg$c43;
5872
5926
  peg$currPos += 8;
5873
5927
  }
5874
5928
  else {
5875
5929
  s0 = peg$FAILED;
5876
5930
  if (peg$silentFails === 0) {
5877
- peg$fail(peg$e44);
5931
+ peg$fail(peg$e48);
5878
5932
  }
5879
5933
  }
5880
5934
  if (s0 === peg$FAILED) {
5881
- if (input.substr(peg$currPos, 3) === peg$c39) {
5882
- s0 = peg$c39;
5935
+ if (input.substr(peg$currPos, 3) === peg$c44) {
5936
+ s0 = peg$c44;
5883
5937
  peg$currPos += 3;
5884
5938
  }
5885
5939
  else {
5886
5940
  s0 = peg$FAILED;
5887
5941
  if (peg$silentFails === 0) {
5888
- peg$fail(peg$e45);
5942
+ peg$fail(peg$e49);
5889
5943
  }
5890
5944
  }
5891
5945
  if (s0 === peg$FAILED) {
5892
- if (input.substr(peg$currPos, 5) === peg$c40) {
5893
- s0 = peg$c40;
5946
+ if (input.substr(peg$currPos, 5) === peg$c45) {
5947
+ s0 = peg$c45;
5894
5948
  peg$currPos += 5;
5895
5949
  }
5896
5950
  else {
5897
5951
  s0 = peg$FAILED;
5898
5952
  if (peg$silentFails === 0) {
5899
- peg$fail(peg$e46);
5953
+ peg$fail(peg$e50);
5900
5954
  }
5901
5955
  }
5902
5956
  if (s0 === peg$FAILED) {
5903
- if (input.substr(peg$currPos, 11) === peg$c41) {
5904
- s0 = peg$c41;
5957
+ if (input.substr(peg$currPos, 11) === peg$c46) {
5958
+ s0 = peg$c46;
5905
5959
  peg$currPos += 11;
5906
5960
  }
5907
5961
  else {
5908
5962
  s0 = peg$FAILED;
5909
5963
  if (peg$silentFails === 0) {
5910
- peg$fail(peg$e47);
5964
+ peg$fail(peg$e51);
5911
5965
  }
5912
5966
  }
5913
5967
  if (s0 === peg$FAILED) {
5914
- if (input.substr(peg$currPos, 8) === peg$c42) {
5915
- s0 = peg$c42;
5968
+ if (input.substr(peg$currPos, 8) === peg$c47) {
5969
+ s0 = peg$c47;
5916
5970
  peg$currPos += 8;
5917
5971
  }
5918
5972
  else {
5919
5973
  s0 = peg$FAILED;
5920
5974
  if (peg$silentFails === 0) {
5921
- peg$fail(peg$e48);
5975
+ peg$fail(peg$e52);
5922
5976
  }
5923
5977
  }
5924
5978
  }
@@ -5932,58 +5986,58 @@ function peg$parse(input, options) {
5932
5986
  }
5933
5987
  function peg$parseInlineMediaSize() {
5934
5988
  var s0;
5935
- if (input.substr(peg$currPos, 11) === peg$c43) {
5936
- s0 = peg$c43;
5989
+ if (input.substr(peg$currPos, 11) === peg$c48) {
5990
+ s0 = peg$c48;
5937
5991
  peg$currPos += 11;
5938
5992
  }
5939
5993
  else {
5940
5994
  s0 = peg$FAILED;
5941
5995
  if (peg$silentFails === 0) {
5942
- peg$fail(peg$e49);
5996
+ peg$fail(peg$e53);
5943
5997
  }
5944
5998
  }
5945
5999
  if (s0 === peg$FAILED) {
5946
- if (input.substr(peg$currPos, 11) === peg$c44) {
5947
- s0 = peg$c44;
6000
+ if (input.substr(peg$currPos, 11) === peg$c49) {
6001
+ s0 = peg$c49;
5948
6002
  peg$currPos += 11;
5949
6003
  }
5950
6004
  else {
5951
6005
  s0 = peg$FAILED;
5952
6006
  if (peg$silentFails === 0) {
5953
- peg$fail(peg$e50);
6007
+ peg$fail(peg$e54);
5954
6008
  }
5955
6009
  }
5956
6010
  if (s0 === peg$FAILED) {
5957
- if (input.substr(peg$currPos, 5) === peg$c40) {
5958
- s0 = peg$c40;
6011
+ if (input.substr(peg$currPos, 5) === peg$c45) {
6012
+ s0 = peg$c45;
5959
6013
  peg$currPos += 5;
5960
6014
  }
5961
6015
  else {
5962
6016
  s0 = peg$FAILED;
5963
6017
  if (peg$silentFails === 0) {
5964
- peg$fail(peg$e46);
6018
+ peg$fail(peg$e50);
5965
6019
  }
5966
6020
  }
5967
6021
  if (s0 === peg$FAILED) {
5968
- if (input.substr(peg$currPos, 3) === peg$c39) {
5969
- s0 = peg$c39;
6022
+ if (input.substr(peg$currPos, 3) === peg$c44) {
6023
+ s0 = peg$c44;
5970
6024
  peg$currPos += 3;
5971
6025
  }
5972
6026
  else {
5973
6027
  s0 = peg$FAILED;
5974
6028
  if (peg$silentFails === 0) {
5975
- peg$fail(peg$e45);
6029
+ peg$fail(peg$e49);
5976
6030
  }
5977
6031
  }
5978
6032
  if (s0 === peg$FAILED) {
5979
- if (input.substr(peg$currPos, 8) === peg$c45) {
5980
- s0 = peg$c45;
6033
+ if (input.substr(peg$currPos, 8) === peg$c50) {
6034
+ s0 = peg$c50;
5981
6035
  peg$currPos += 8;
5982
6036
  }
5983
6037
  else {
5984
6038
  s0 = peg$FAILED;
5985
6039
  if (peg$silentFails === 0) {
5986
- peg$fail(peg$e51);
6040
+ peg$fail(peg$e55);
5987
6041
  }
5988
6042
  }
5989
6043
  }
@@ -5995,14 +6049,14 @@ function peg$parse(input, options) {
5995
6049
  function peg$parseAttrChainItem() {
5996
6050
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
5997
6051
  s0 = peg$currPos;
5998
- if (input.substr(peg$currPos, 5) === peg$c46) {
5999
- s1 = peg$c46;
6052
+ if (input.substr(peg$currPos, 5) === peg$c51) {
6053
+ s1 = peg$c51;
6000
6054
  peg$currPos += 5;
6001
6055
  }
6002
6056
  else {
6003
6057
  s1 = peg$FAILED;
6004
6058
  if (peg$silentFails === 0) {
6005
- peg$fail(peg$e52);
6059
+ peg$fail(peg$e56);
6006
6060
  }
6007
6061
  }
6008
6062
  if (s1 !== peg$FAILED) {
@@ -6069,7 +6123,7 @@ function peg$parse(input, options) {
6069
6123
  s3 = peg$parseBlockTag();
6070
6124
  if (s3 !== peg$FAILED) {
6071
6125
  peg$savedPos = s0;
6072
- s0 = peg$f69(s2);
6126
+ s0 = peg$f71(s2);
6073
6127
  }
6074
6128
  else {
6075
6129
  peg$currPos = s0;
@@ -6082,14 +6136,14 @@ function peg$parse(input, options) {
6082
6136
  }
6083
6137
  if (s0 === peg$FAILED) {
6084
6138
  s0 = peg$currPos;
6085
- if (input.substr(peg$currPos, 7) === peg$c47) {
6086
- s1 = peg$c47;
6139
+ if (input.substr(peg$currPos, 7) === peg$c52) {
6140
+ s1 = peg$c52;
6087
6141
  peg$currPos += 7;
6088
6142
  }
6089
6143
  else {
6090
6144
  s1 = peg$FAILED;
6091
6145
  if (peg$silentFails === 0) {
6092
- peg$fail(peg$e53);
6146
+ peg$fail(peg$e57);
6093
6147
  }
6094
6148
  }
6095
6149
  if (s1 !== peg$FAILED) {
@@ -6156,14 +6210,14 @@ function peg$parse(input, options) {
6156
6210
  s3 = peg$parseRefsChain();
6157
6211
  s4 = peg$parseBlockTag();
6158
6212
  if (s4 !== peg$FAILED) {
6159
- if (input.substr(peg$currPos, 9) === peg$c48) {
6160
- s5 = peg$c48;
6213
+ if (input.substr(peg$currPos, 9) === peg$c53) {
6214
+ s5 = peg$c53;
6161
6215
  peg$currPos += 9;
6162
6216
  }
6163
6217
  else {
6164
6218
  s5 = peg$FAILED;
6165
6219
  if (peg$silentFails === 0) {
6166
- peg$fail(peg$e54);
6220
+ peg$fail(peg$e58);
6167
6221
  }
6168
6222
  }
6169
6223
  if (s5 !== peg$FAILED) {
@@ -6230,7 +6284,7 @@ function peg$parse(input, options) {
6230
6284
  s7 = peg$parseBlockTag();
6231
6285
  if (s7 !== peg$FAILED) {
6232
6286
  peg$savedPos = s0;
6233
- s0 = peg$f70(s2, s3, s6);
6287
+ s0 = peg$f72(s2, s3, s6);
6234
6288
  }
6235
6289
  else {
6236
6290
  peg$currPos = s0;
@@ -6253,14 +6307,14 @@ function peg$parse(input, options) {
6253
6307
  }
6254
6308
  if (s0 === peg$FAILED) {
6255
6309
  s0 = peg$currPos;
6256
- if (input.substr(peg$currPos, 5) === peg$c49) {
6257
- s1 = peg$c49;
6310
+ if (input.substr(peg$currPos, 5) === peg$c54) {
6311
+ s1 = peg$c54;
6258
6312
  peg$currPos += 5;
6259
6313
  }
6260
6314
  else {
6261
6315
  s1 = peg$FAILED;
6262
6316
  if (peg$silentFails === 0) {
6263
- peg$fail(peg$e55);
6317
+ peg$fail(peg$e59);
6264
6318
  }
6265
6319
  }
6266
6320
  if (s1 !== peg$FAILED) {
@@ -6327,13 +6381,13 @@ function peg$parse(input, options) {
6327
6381
  s3 = peg$parseBlockTag();
6328
6382
  if (s3 !== peg$FAILED) {
6329
6383
  if (input.charCodeAt(peg$currPos) === 9658) {
6330
- s4 = peg$c50;
6384
+ s4 = peg$c55;
6331
6385
  peg$currPos++;
6332
6386
  }
6333
6387
  else {
6334
6388
  s4 = peg$FAILED;
6335
6389
  if (peg$silentFails === 0) {
6336
- peg$fail(peg$e56);
6390
+ peg$fail(peg$e60);
6337
6391
  }
6338
6392
  }
6339
6393
  if (s4 !== peg$FAILED) {
@@ -6400,7 +6454,7 @@ function peg$parse(input, options) {
6400
6454
  s6 = peg$parseBlockTag();
6401
6455
  if (s6 !== peg$FAILED) {
6402
6456
  peg$savedPos = s0;
6403
- s0 = peg$f71(s2, s5);
6457
+ s0 = peg$f73(s2, s5);
6404
6458
  }
6405
6459
  else {
6406
6460
  peg$currPos = s0;
@@ -6423,14 +6477,14 @@ function peg$parse(input, options) {
6423
6477
  }
6424
6478
  if (s0 === peg$FAILED) {
6425
6479
  s0 = peg$currPos;
6426
- if (input.substr(peg$currPos, 5) === peg$c49) {
6427
- s1 = peg$c49;
6480
+ if (input.substr(peg$currPos, 5) === peg$c54) {
6481
+ s1 = peg$c54;
6428
6482
  peg$currPos += 5;
6429
6483
  }
6430
6484
  else {
6431
6485
  s1 = peg$FAILED;
6432
6486
  if (peg$silentFails === 0) {
6433
- peg$fail(peg$e55);
6487
+ peg$fail(peg$e59);
6434
6488
  }
6435
6489
  }
6436
6490
  if (s1 !== peg$FAILED) {
@@ -6497,7 +6551,7 @@ function peg$parse(input, options) {
6497
6551
  s3 = peg$parseBlockTag();
6498
6552
  if (s3 !== peg$FAILED) {
6499
6553
  peg$savedPos = s0;
6500
- s0 = peg$f72(s2);
6554
+ s0 = peg$f74(s2);
6501
6555
  }
6502
6556
  else {
6503
6557
  peg$currPos = s0;
@@ -6511,13 +6565,13 @@ function peg$parse(input, options) {
6511
6565
  if (s0 === peg$FAILED) {
6512
6566
  s0 = peg$currPos;
6513
6567
  if (input.charCodeAt(peg$currPos) === 9658) {
6514
- s1 = peg$c50;
6568
+ s1 = peg$c55;
6515
6569
  peg$currPos++;
6516
6570
  }
6517
6571
  else {
6518
6572
  s1 = peg$FAILED;
6519
6573
  if (peg$silentFails === 0) {
6520
- peg$fail(peg$e56);
6574
+ peg$fail(peg$e60);
6521
6575
  }
6522
6576
  }
6523
6577
  if (s1 !== peg$FAILED) {
@@ -6584,7 +6638,7 @@ function peg$parse(input, options) {
6584
6638
  s3 = peg$parseBlockTag();
6585
6639
  if (s3 !== peg$FAILED) {
6586
6640
  peg$savedPos = s0;
6587
- s0 = peg$f73(s2);
6641
+ s0 = peg$f75(s2);
6588
6642
  }
6589
6643
  else {
6590
6644
  peg$currPos = s0;
@@ -6597,14 +6651,14 @@ function peg$parse(input, options) {
6597
6651
  }
6598
6652
  if (s0 === peg$FAILED) {
6599
6653
  s0 = peg$currPos;
6600
- if (input.substr(peg$currPos, 7) === peg$c51) {
6601
- s1 = peg$c51;
6654
+ if (input.substr(peg$currPos, 7) === peg$c56) {
6655
+ s1 = peg$c56;
6602
6656
  peg$currPos += 7;
6603
6657
  }
6604
6658
  else {
6605
6659
  s1 = peg$FAILED;
6606
6660
  if (peg$silentFails === 0) {
6607
- peg$fail(peg$e57);
6661
+ peg$fail(peg$e61);
6608
6662
  }
6609
6663
  }
6610
6664
  if (s1 !== peg$FAILED) {
@@ -6672,7 +6726,7 @@ function peg$parse(input, options) {
6672
6726
  if (s3 !== peg$FAILED) {
6673
6727
  s4 = peg$parseMediaChain();
6674
6728
  peg$savedPos = s0;
6675
- s0 = peg$f74(s2, s4);
6729
+ s0 = peg$f76(s2, s4);
6676
6730
  }
6677
6731
  else {
6678
6732
  peg$currPos = s0;
@@ -6685,14 +6739,14 @@ function peg$parse(input, options) {
6685
6739
  }
6686
6740
  if (s0 === peg$FAILED) {
6687
6741
  s0 = peg$currPos;
6688
- if (input.substr(peg$currPos, 9) === peg$c52) {
6689
- s1 = peg$c52;
6742
+ if (input.substr(peg$currPos, 9) === peg$c57) {
6743
+ s1 = peg$c57;
6690
6744
  peg$currPos += 9;
6691
6745
  }
6692
6746
  else {
6693
6747
  s1 = peg$FAILED;
6694
6748
  if (peg$silentFails === 0) {
6695
- peg$fail(peg$e58);
6749
+ peg$fail(peg$e62);
6696
6750
  }
6697
6751
  }
6698
6752
  if (s1 !== peg$FAILED) {
@@ -6759,7 +6813,7 @@ function peg$parse(input, options) {
6759
6813
  s3 = peg$parseBlockTag();
6760
6814
  if (s3 !== peg$FAILED) {
6761
6815
  peg$savedPos = s0;
6762
- s0 = peg$f75(s2);
6816
+ s0 = peg$f77(s2);
6763
6817
  }
6764
6818
  else {
6765
6819
  peg$currPos = s0;
@@ -6772,14 +6826,14 @@ function peg$parse(input, options) {
6772
6826
  }
6773
6827
  if (s0 === peg$FAILED) {
6774
6828
  s0 = peg$currPos;
6775
- if (input.substr(peg$currPos, 10) === peg$c53) {
6776
- s1 = peg$c53;
6829
+ if (input.substr(peg$currPos, 10) === peg$c58) {
6830
+ s1 = peg$c58;
6777
6831
  peg$currPos += 10;
6778
6832
  }
6779
6833
  else {
6780
6834
  s1 = peg$FAILED;
6781
6835
  if (peg$silentFails === 0) {
6782
- peg$fail(peg$e59);
6836
+ peg$fail(peg$e63);
6783
6837
  }
6784
6838
  }
6785
6839
  if (s1 !== peg$FAILED) {
@@ -6846,7 +6900,7 @@ function peg$parse(input, options) {
6846
6900
  s3 = peg$parseBlockTag();
6847
6901
  if (s3 !== peg$FAILED) {
6848
6902
  peg$savedPos = s0;
6849
- s0 = peg$f76(s2);
6903
+ s0 = peg$f78(s2);
6850
6904
  }
6851
6905
  else {
6852
6906
  peg$currPos = s0;
@@ -6859,14 +6913,14 @@ function peg$parse(input, options) {
6859
6913
  }
6860
6914
  if (s0 === peg$FAILED) {
6861
6915
  s0 = peg$currPos;
6862
- if (input.substr(peg$currPos, 4) === peg$c54) {
6863
- s1 = peg$c54;
6916
+ if (input.substr(peg$currPos, 4) === peg$c59) {
6917
+ s1 = peg$c59;
6864
6918
  peg$currPos += 4;
6865
6919
  }
6866
6920
  else {
6867
6921
  s1 = peg$FAILED;
6868
6922
  if (peg$silentFails === 0) {
6869
- peg$fail(peg$e60);
6923
+ peg$fail(peg$e64);
6870
6924
  }
6871
6925
  }
6872
6926
  if (s1 !== peg$FAILED) {
@@ -6933,7 +6987,7 @@ function peg$parse(input, options) {
6933
6987
  s3 = peg$parseBlockTag();
6934
6988
  if (s3 !== peg$FAILED) {
6935
6989
  peg$savedPos = s0;
6936
- s0 = peg$f77(s2);
6990
+ s0 = peg$f79(s2);
6937
6991
  }
6938
6992
  else {
6939
6993
  peg$currPos = s0;
@@ -6960,7 +7014,7 @@ function peg$parse(input, options) {
6960
7014
  s2 = peg$parseBlockTag();
6961
7015
  if (s2 !== peg$FAILED) {
6962
7016
  peg$savedPos = s0;
6963
- s0 = peg$f78();
7017
+ s0 = peg$f80();
6964
7018
  }
6965
7019
  else {
6966
7020
  peg$currPos = s0;
@@ -6973,14 +7027,14 @@ function peg$parse(input, options) {
6973
7027
  }
6974
7028
  if (s0 === peg$FAILED) {
6975
7029
  s0 = peg$currPos;
6976
- if (input.substr(peg$currPos, 5) === peg$c55) {
6977
- s1 = peg$c55;
7030
+ if (input.substr(peg$currPos, 5) === peg$c60) {
7031
+ s1 = peg$c60;
6978
7032
  peg$currPos += 5;
6979
7033
  }
6980
7034
  else {
6981
7035
  s1 = peg$FAILED;
6982
7036
  if (peg$silentFails === 0) {
6983
- peg$fail(peg$e61);
7037
+ peg$fail(peg$e65);
6984
7038
  }
6985
7039
  }
6986
7040
  if (s1 !== peg$FAILED) {
@@ -7047,7 +7101,7 @@ function peg$parse(input, options) {
7047
7101
  s3 = peg$parseBlockTag();
7048
7102
  if (s3 !== peg$FAILED) {
7049
7103
  peg$savedPos = s0;
7050
- s0 = peg$f79(s2);
7104
+ s0 = peg$f81(s2);
7051
7105
  }
7052
7106
  else {
7053
7107
  peg$currPos = s0;
@@ -7060,21 +7114,21 @@ function peg$parse(input, options) {
7060
7114
  }
7061
7115
  if (s0 === peg$FAILED) {
7062
7116
  s0 = peg$currPos;
7063
- if (input.substr(peg$currPos, 5) === peg$c56) {
7064
- s1 = peg$c56;
7117
+ if (input.substr(peg$currPos, 5) === peg$c61) {
7118
+ s1 = peg$c61;
7065
7119
  peg$currPos += 5;
7066
7120
  }
7067
7121
  else {
7068
7122
  s1 = peg$FAILED;
7069
7123
  if (peg$silentFails === 0) {
7070
- peg$fail(peg$e62);
7124
+ peg$fail(peg$e66);
7071
7125
  }
7072
7126
  }
7073
7127
  if (s1 !== peg$FAILED) {
7074
7128
  s2 = peg$parseBlockTag();
7075
7129
  if (s2 !== peg$FAILED) {
7076
7130
  peg$savedPos = s0;
7077
- s0 = peg$f80();
7131
+ s0 = peg$f82();
7078
7132
  }
7079
7133
  else {
7080
7134
  peg$currPos = s0;
@@ -7087,14 +7141,14 @@ function peg$parse(input, options) {
7087
7141
  }
7088
7142
  if (s0 === peg$FAILED) {
7089
7143
  s0 = peg$currPos;
7090
- if (input.substr(peg$currPos, 6) === peg$c57) {
7091
- s1 = peg$c57;
7144
+ if (input.substr(peg$currPos, 6) === peg$c62) {
7145
+ s1 = peg$c62;
7092
7146
  peg$currPos += 6;
7093
7147
  }
7094
7148
  else {
7095
7149
  s1 = peg$FAILED;
7096
7150
  if (peg$silentFails === 0) {
7097
- peg$fail(peg$e63);
7151
+ peg$fail(peg$e67);
7098
7152
  }
7099
7153
  }
7100
7154
  if (s1 !== peg$FAILED) {
@@ -7161,7 +7215,7 @@ function peg$parse(input, options) {
7161
7215
  s3 = peg$parseBlockTag();
7162
7216
  if (s3 !== peg$FAILED) {
7163
7217
  peg$savedPos = s0;
7164
- s0 = peg$f81(s2);
7218
+ s0 = peg$f83(s2);
7165
7219
  }
7166
7220
  else {
7167
7221
  peg$currPos = s0;
@@ -7174,27 +7228,27 @@ function peg$parse(input, options) {
7174
7228
  }
7175
7229
  if (s0 === peg$FAILED) {
7176
7230
  s0 = peg$currPos;
7177
- if (input.substr(peg$currPos, 9) === peg$c58) {
7178
- s1 = peg$c58;
7231
+ if (input.substr(peg$currPos, 9) === peg$c63) {
7232
+ s1 = peg$c63;
7179
7233
  peg$currPos += 9;
7180
7234
  }
7181
7235
  else {
7182
7236
  s1 = peg$FAILED;
7183
7237
  if (peg$silentFails === 0) {
7184
- peg$fail(peg$e64);
7238
+ peg$fail(peg$e68);
7185
7239
  }
7186
7240
  }
7187
7241
  if (s1 !== peg$FAILED) {
7188
7242
  s2 = peg$currPos;
7189
7243
  s3 = peg$currPos;
7190
7244
  if (input.charCodeAt(peg$currPos) === 80) {
7191
- s4 = peg$c59;
7245
+ s4 = peg$c64;
7192
7246
  peg$currPos++;
7193
7247
  }
7194
7248
  else {
7195
7249
  s4 = peg$FAILED;
7196
7250
  if (peg$silentFails === 0) {
7197
- peg$fail(peg$e65);
7251
+ peg$fail(peg$e69);
7198
7252
  }
7199
7253
  }
7200
7254
  if (s4 !== peg$FAILED) {
@@ -7275,7 +7329,7 @@ function peg$parse(input, options) {
7275
7329
  s3 = peg$parseBlockTag();
7276
7330
  if (s3 !== peg$FAILED) {
7277
7331
  peg$savedPos = s0;
7278
- s0 = peg$f82(s2);
7332
+ s0 = peg$f84(s2);
7279
7333
  }
7280
7334
  else {
7281
7335
  peg$currPos = s0;
@@ -7293,14 +7347,14 @@ function peg$parse(input, options) {
7293
7347
  }
7294
7348
  if (s0 === peg$FAILED) {
7295
7349
  s0 = peg$currPos;
7296
- if (input.substr(peg$currPos, 6) === peg$c60) {
7297
- s1 = peg$c60;
7350
+ if (input.substr(peg$currPos, 6) === peg$c65) {
7351
+ s1 = peg$c65;
7298
7352
  peg$currPos += 6;
7299
7353
  }
7300
7354
  else {
7301
7355
  s1 = peg$FAILED;
7302
7356
  if (peg$silentFails === 0) {
7303
- peg$fail(peg$e66);
7357
+ peg$fail(peg$e70);
7304
7358
  }
7305
7359
  }
7306
7360
  if (s1 !== peg$FAILED) {
@@ -7309,7 +7363,7 @@ function peg$parse(input, options) {
7309
7363
  s3 = peg$parseBlockTag();
7310
7364
  if (s3 !== peg$FAILED) {
7311
7365
  peg$savedPos = s0;
7312
- s0 = peg$f83(s2);
7366
+ s0 = peg$f85(s2);
7313
7367
  }
7314
7368
  else {
7315
7369
  peg$currPos = s0;
@@ -7332,7 +7386,7 @@ function peg$parse(input, options) {
7332
7386
  s2 = peg$parseBlockTag();
7333
7387
  if (s2 !== peg$FAILED) {
7334
7388
  peg$savedPos = s0;
7335
- s0 = peg$f84(s1);
7389
+ s0 = peg$f86(s1);
7336
7390
  }
7337
7391
  else {
7338
7392
  peg$currPos = s0;
@@ -7419,7 +7473,7 @@ function peg$parse(input, options) {
7419
7473
  s3 = peg$parseBlockTag();
7420
7474
  if (s3 !== peg$FAILED) {
7421
7475
  peg$savedPos = s0;
7422
- s0 = peg$f85(s2);
7476
+ s0 = peg$f87(s2);
7423
7477
  }
7424
7478
  else {
7425
7479
  peg$currPos = s0;
@@ -7461,14 +7515,14 @@ function peg$parse(input, options) {
7461
7515
  function peg$parseRef() {
7462
7516
  var s0, s1, s2, s3, s4, s5, s6;
7463
7517
  s0 = peg$currPos;
7464
- if (input.substr(peg$currPos, 2) === peg$c61) {
7465
- s1 = peg$c61;
7518
+ if (input.substr(peg$currPos, 2) === peg$c66) {
7519
+ s1 = peg$c66;
7466
7520
  peg$currPos += 2;
7467
7521
  }
7468
7522
  else {
7469
7523
  s1 = peg$FAILED;
7470
7524
  if (peg$silentFails === 0) {
7471
- peg$fail(peg$e67);
7525
+ peg$fail(peg$e71);
7472
7526
  }
7473
7527
  }
7474
7528
  if (s1 !== peg$FAILED) {
@@ -7533,7 +7587,7 @@ function peg$parse(input, options) {
7533
7587
  }
7534
7588
  s2 = input.substring(s2, peg$currPos);
7535
7589
  peg$savedPos = s0;
7536
- s0 = peg$f86(s2);
7590
+ s0 = peg$f88(s2);
7537
7591
  }
7538
7592
  else {
7539
7593
  peg$currPos = s0;
@@ -7543,212 +7597,344 @@ function peg$parse(input, options) {
7543
7597
  }
7544
7598
  function peg$parseAlternativeStyleTags() {
7545
7599
  var s0;
7546
- if (input.substr(peg$currPos, 4) === peg$c62) {
7547
- s0 = peg$c62;
7600
+ if (input.substr(peg$currPos, 4) === peg$c67) {
7601
+ s0 = peg$c67;
7548
7602
  peg$currPos += 4;
7549
7603
  }
7550
7604
  else {
7551
7605
  s0 = peg$FAILED;
7552
7606
  if (peg$silentFails === 0) {
7553
- peg$fail(peg$e68);
7607
+ peg$fail(peg$e72);
7554
7608
  }
7555
7609
  }
7556
7610
  if (s0 === peg$FAILED) {
7557
- if (input.substr(peg$currPos, 6) === peg$c63) {
7558
- s0 = peg$c63;
7611
+ if (input.substr(peg$currPos, 6) === peg$c68) {
7612
+ s0 = peg$c68;
7559
7613
  peg$currPos += 6;
7560
7614
  }
7561
7615
  else {
7562
7616
  s0 = peg$FAILED;
7563
7617
  if (peg$silentFails === 0) {
7564
- peg$fail(peg$e69);
7618
+ peg$fail(peg$e73);
7565
7619
  }
7566
7620
  }
7567
7621
  if (s0 === peg$FAILED) {
7568
- if (input.substr(peg$currPos, 5) === peg$c64) {
7569
- s0 = peg$c64;
7622
+ if (input.substr(peg$currPos, 5) === peg$c69) {
7623
+ s0 = peg$c69;
7570
7624
  peg$currPos += 5;
7571
7625
  }
7572
7626
  else {
7573
7627
  s0 = peg$FAILED;
7574
7628
  if (peg$silentFails === 0) {
7575
- peg$fail(peg$e70);
7629
+ peg$fail(peg$e74);
7576
7630
  }
7577
7631
  }
7578
7632
  if (s0 === peg$FAILED) {
7579
- if (input.substr(peg$currPos, 9) === peg$c65) {
7580
- s0 = peg$c65;
7633
+ if (input.substr(peg$currPos, 9) === peg$c70) {
7634
+ s0 = peg$c70;
7581
7635
  peg$currPos += 9;
7582
7636
  }
7583
7637
  else {
7584
7638
  s0 = peg$FAILED;
7585
7639
  if (peg$silentFails === 0) {
7586
- peg$fail(peg$e71);
7640
+ peg$fail(peg$e75);
7587
7641
  }
7588
7642
  }
7589
7643
  if (s0 === peg$FAILED) {
7590
- if (input.substr(peg$currPos, 6) === peg$c66) {
7591
- s0 = peg$c66;
7644
+ if (input.substr(peg$currPos, 6) === peg$c71) {
7645
+ s0 = peg$c71;
7592
7646
  peg$currPos += 6;
7593
7647
  }
7594
7648
  else {
7595
7649
  s0 = peg$FAILED;
7596
7650
  if (peg$silentFails === 0) {
7597
- peg$fail(peg$e72);
7651
+ peg$fail(peg$e76);
7598
7652
  }
7599
7653
  }
7600
7654
  if (s0 === peg$FAILED) {
7601
- if (input.substr(peg$currPos, 9) === peg$c67) {
7602
- s0 = peg$c67;
7655
+ if (input.substr(peg$currPos, 9) === peg$c72) {
7656
+ s0 = peg$c72;
7603
7657
  peg$currPos += 9;
7604
7658
  }
7605
7659
  else {
7606
7660
  s0 = peg$FAILED;
7607
7661
  if (peg$silentFails === 0) {
7608
- peg$fail(peg$e73);
7662
+ peg$fail(peg$e77);
7609
7663
  }
7610
7664
  }
7611
7665
  if (s0 === peg$FAILED) {
7612
- if (input.substr(peg$currPos, 11) === peg$c68) {
7613
- s0 = peg$c68;
7666
+ if (input.substr(peg$currPos, 11) === peg$c73) {
7667
+ s0 = peg$c73;
7614
7668
  peg$currPos += 11;
7615
7669
  }
7616
7670
  else {
7617
7671
  s0 = peg$FAILED;
7618
7672
  if (peg$silentFails === 0) {
7619
- peg$fail(peg$e74);
7673
+ peg$fail(peg$e78);
7620
7674
  }
7621
7675
  }
7622
7676
  if (s0 === peg$FAILED) {
7623
- if (input.substr(peg$currPos, 3) === peg$c69) {
7624
- s0 = peg$c69;
7677
+ if (input.substr(peg$currPos, 3) === peg$c74) {
7678
+ s0 = peg$c74;
7625
7679
  peg$currPos += 3;
7626
7680
  }
7627
7681
  else {
7628
7682
  s0 = peg$FAILED;
7629
7683
  if (peg$silentFails === 0) {
7630
- peg$fail(peg$e75);
7684
+ peg$fail(peg$e79);
7631
7685
  }
7632
7686
  }
7633
7687
  if (s0 === peg$FAILED) {
7634
- if (input.substr(peg$currPos, 3) === peg$c70) {
7635
- s0 = peg$c70;
7688
+ if (input.substr(peg$currPos, 3) === peg$c75) {
7689
+ s0 = peg$c75;
7636
7690
  peg$currPos += 3;
7637
7691
  }
7638
7692
  else {
7639
7693
  s0 = peg$FAILED;
7640
7694
  if (peg$silentFails === 0) {
7641
- peg$fail(peg$e76);
7695
+ peg$fail(peg$e80);
7642
7696
  }
7643
7697
  }
7644
7698
  if (s0 === peg$FAILED) {
7645
- if (input.substr(peg$currPos, 9) === peg$c71) {
7646
- s0 = peg$c71;
7699
+ if (input.substr(peg$currPos, 9) === peg$c76) {
7700
+ s0 = peg$c76;
7647
7701
  peg$currPos += 9;
7648
7702
  }
7649
7703
  else {
7650
7704
  s0 = peg$FAILED;
7651
7705
  if (peg$silentFails === 0) {
7652
- peg$fail(peg$e77);
7706
+ peg$fail(peg$e81);
7653
7707
  }
7654
7708
  }
7655
7709
  if (s0 === peg$FAILED) {
7656
- if (input.substr(peg$currPos, 15) === peg$c72) {
7657
- s0 = peg$c72;
7710
+ if (input.substr(peg$currPos, 15) === peg$c77) {
7711
+ s0 = peg$c77;
7658
7712
  peg$currPos += 15;
7659
7713
  }
7660
7714
  else {
7661
7715
  s0 = peg$FAILED;
7662
7716
  if (peg$silentFails === 0) {
7663
- peg$fail(peg$e78);
7717
+ peg$fail(peg$e82);
7664
7718
  }
7665
7719
  }
7666
7720
  if (s0 === peg$FAILED) {
7667
- if (input.substr(peg$currPos, 6) === peg$c73) {
7668
- s0 = peg$c73;
7721
+ if (input.substr(peg$currPos, 6) === peg$c78) {
7722
+ s0 = peg$c78;
7669
7723
  peg$currPos += 6;
7670
7724
  }
7671
7725
  else {
7672
7726
  s0 = peg$FAILED;
7673
7727
  if (peg$silentFails === 0) {
7674
- peg$fail(peg$e79);
7728
+ peg$fail(peg$e83);
7675
7729
  }
7676
7730
  }
7677
7731
  if (s0 === peg$FAILED) {
7678
- if (input.substr(peg$currPos, 10) === peg$c74) {
7679
- s0 = peg$c74;
7680
- peg$currPos += 10;
7732
+ if (input.substr(peg$currPos, 13) === peg$c79) {
7733
+ s0 = peg$c79;
7734
+ peg$currPos += 13;
7681
7735
  }
7682
7736
  else {
7683
7737
  s0 = peg$FAILED;
7684
7738
  if (peg$silentFails === 0) {
7685
- peg$fail(peg$e80);
7739
+ peg$fail(peg$e84);
7686
7740
  }
7687
7741
  }
7688
7742
  if (s0 === peg$FAILED) {
7689
- if (input.substr(peg$currPos, 13) === peg$c75) {
7690
- s0 = peg$c75;
7691
- peg$currPos += 13;
7743
+ if (input.substr(peg$currPos, 16) === peg$c80) {
7744
+ s0 = peg$c80;
7745
+ peg$currPos += 16;
7692
7746
  }
7693
7747
  else {
7694
7748
  s0 = peg$FAILED;
7695
7749
  if (peg$silentFails === 0) {
7696
- peg$fail(peg$e81);
7750
+ peg$fail(peg$e85);
7697
7751
  }
7698
7752
  }
7699
7753
  if (s0 === peg$FAILED) {
7700
- if (input.substr(peg$currPos, 19) === peg$c76) {
7701
- s0 = peg$c76;
7702
- peg$currPos += 19;
7754
+ if (input.substr(peg$currPos, 16) === peg$c81) {
7755
+ s0 = peg$c81;
7756
+ peg$currPos += 16;
7703
7757
  }
7704
7758
  else {
7705
7759
  s0 = peg$FAILED;
7706
7760
  if (peg$silentFails === 0) {
7707
- peg$fail(peg$e82);
7761
+ peg$fail(peg$e86);
7708
7762
  }
7709
7763
  }
7710
7764
  if (s0 === peg$FAILED) {
7711
- if (input.substr(peg$currPos, 10) === peg$c77) {
7712
- s0 = peg$c77;
7713
- peg$currPos += 10;
7765
+ if (input.substr(peg$currPos, 15) === peg$c82) {
7766
+ s0 = peg$c82;
7767
+ peg$currPos += 15;
7714
7768
  }
7715
7769
  else {
7716
7770
  s0 = peg$FAILED;
7717
7771
  if (peg$silentFails === 0) {
7718
- peg$fail(peg$e83);
7772
+ peg$fail(peg$e87);
7719
7773
  }
7720
7774
  }
7721
7775
  if (s0 === peg$FAILED) {
7722
- if (input.substr(peg$currPos, 10) === peg$c78) {
7723
- s0 = peg$c78;
7724
- peg$currPos += 10;
7776
+ if (input.substr(peg$currPos, 14) === peg$c83) {
7777
+ s0 = peg$c83;
7778
+ peg$currPos += 14;
7725
7779
  }
7726
7780
  else {
7727
7781
  s0 = peg$FAILED;
7728
7782
  if (peg$silentFails === 0) {
7729
- peg$fail(peg$e84);
7783
+ peg$fail(peg$e88);
7730
7784
  }
7731
7785
  }
7732
7786
  if (s0 === peg$FAILED) {
7733
- if (input.substr(peg$currPos, 13) === peg$c79) {
7734
- s0 = peg$c79;
7735
- peg$currPos += 13;
7787
+ if (input.substr(peg$currPos, 16) === peg$c84) {
7788
+ s0 = peg$c84;
7789
+ peg$currPos += 16;
7736
7790
  }
7737
7791
  else {
7738
7792
  s0 = peg$FAILED;
7739
7793
  if (peg$silentFails === 0) {
7740
- peg$fail(peg$e85);
7794
+ peg$fail(peg$e89);
7741
7795
  }
7742
7796
  }
7743
7797
  if (s0 === peg$FAILED) {
7744
- if (input.substr(peg$currPos, 11) === peg$c80) {
7745
- s0 = peg$c80;
7746
- peg$currPos += 11;
7798
+ if (input.substr(peg$currPos, 14) === peg$c85) {
7799
+ s0 = peg$c85;
7800
+ peg$currPos += 14;
7747
7801
  }
7748
7802
  else {
7749
7803
  s0 = peg$FAILED;
7750
7804
  if (peg$silentFails === 0) {
7751
- peg$fail(peg$e86);
7805
+ peg$fail(peg$e90);
7806
+ }
7807
+ }
7808
+ if (s0 === peg$FAILED) {
7809
+ if (input.substr(peg$currPos, 15) === peg$c86) {
7810
+ s0 = peg$c86;
7811
+ peg$currPos += 15;
7812
+ }
7813
+ else {
7814
+ s0 = peg$FAILED;
7815
+ if (peg$silentFails === 0) {
7816
+ peg$fail(peg$e91);
7817
+ }
7818
+ }
7819
+ if (s0 === peg$FAILED) {
7820
+ if (input.substr(peg$currPos, 15) === peg$c87) {
7821
+ s0 = peg$c87;
7822
+ peg$currPos += 15;
7823
+ }
7824
+ else {
7825
+ s0 = peg$FAILED;
7826
+ if (peg$silentFails === 0) {
7827
+ peg$fail(peg$e92);
7828
+ }
7829
+ }
7830
+ if (s0 === peg$FAILED) {
7831
+ if (input.substr(peg$currPos, 15) === peg$c88) {
7832
+ s0 = peg$c88;
7833
+ peg$currPos += 15;
7834
+ }
7835
+ else {
7836
+ s0 = peg$FAILED;
7837
+ if (peg$silentFails === 0) {
7838
+ peg$fail(peg$e93);
7839
+ }
7840
+ }
7841
+ if (s0 === peg$FAILED) {
7842
+ if (input.substr(peg$currPos, 14) === peg$c89) {
7843
+ s0 = peg$c89;
7844
+ peg$currPos += 14;
7845
+ }
7846
+ else {
7847
+ s0 = peg$FAILED;
7848
+ if (peg$silentFails === 0) {
7849
+ peg$fail(peg$e94);
7850
+ }
7851
+ }
7852
+ if (s0 === peg$FAILED) {
7853
+ if (input.substr(peg$currPos, 10) === peg$c90) {
7854
+ s0 = peg$c90;
7855
+ peg$currPos += 10;
7856
+ }
7857
+ else {
7858
+ s0 = peg$FAILED;
7859
+ if (peg$silentFails === 0) {
7860
+ peg$fail(peg$e95);
7861
+ }
7862
+ }
7863
+ if (s0 === peg$FAILED) {
7864
+ if (input.substr(peg$currPos, 13) === peg$c91) {
7865
+ s0 = peg$c91;
7866
+ peg$currPos += 13;
7867
+ }
7868
+ else {
7869
+ s0 = peg$FAILED;
7870
+ if (peg$silentFails === 0) {
7871
+ peg$fail(peg$e96);
7872
+ }
7873
+ }
7874
+ if (s0 === peg$FAILED) {
7875
+ if (input.substr(peg$currPos, 19) === peg$c92) {
7876
+ s0 = peg$c92;
7877
+ peg$currPos += 19;
7878
+ }
7879
+ else {
7880
+ s0 = peg$FAILED;
7881
+ if (peg$silentFails === 0) {
7882
+ peg$fail(peg$e97);
7883
+ }
7884
+ }
7885
+ if (s0 === peg$FAILED) {
7886
+ if (input.substr(peg$currPos, 10) === peg$c93) {
7887
+ s0 = peg$c93;
7888
+ peg$currPos += 10;
7889
+ }
7890
+ else {
7891
+ s0 = peg$FAILED;
7892
+ if (peg$silentFails === 0) {
7893
+ peg$fail(peg$e98);
7894
+ }
7895
+ }
7896
+ if (s0 === peg$FAILED) {
7897
+ if (input.substr(peg$currPos, 10) === peg$c94) {
7898
+ s0 = peg$c94;
7899
+ peg$currPos += 10;
7900
+ }
7901
+ else {
7902
+ s0 = peg$FAILED;
7903
+ if (peg$silentFails === 0) {
7904
+ peg$fail(peg$e99);
7905
+ }
7906
+ }
7907
+ if (s0 === peg$FAILED) {
7908
+ if (input.substr(peg$currPos, 13) === peg$c95) {
7909
+ s0 = peg$c95;
7910
+ peg$currPos += 13;
7911
+ }
7912
+ else {
7913
+ s0 = peg$FAILED;
7914
+ if (peg$silentFails === 0) {
7915
+ peg$fail(peg$e100);
7916
+ }
7917
+ }
7918
+ if (s0 === peg$FAILED) {
7919
+ if (input.substr(peg$currPos, 11) === peg$c96) {
7920
+ s0 = peg$c96;
7921
+ peg$currPos += 11;
7922
+ }
7923
+ else {
7924
+ s0 = peg$FAILED;
7925
+ if (peg$silentFails === 0) {
7926
+ peg$fail(peg$e101);
7927
+ }
7928
+ }
7929
+ }
7930
+ }
7931
+ }
7932
+ }
7933
+ }
7934
+ }
7935
+ }
7936
+ }
7937
+ }
7752
7938
  }
7753
7939
  }
7754
7940
  }
@@ -7773,245 +7959,257 @@ function peg$parse(input, options) {
7773
7959
  }
7774
7960
  function peg$parseColor() {
7775
7961
  var s0;
7776
- if (input.substr(peg$currPos, 4) === peg$c81) {
7777
- s0 = peg$c81;
7962
+ if (input.substr(peg$currPos, 4) === peg$c97) {
7963
+ s0 = peg$c97;
7778
7964
  peg$currPos += 4;
7779
7965
  }
7780
7966
  else {
7781
7967
  s0 = peg$FAILED;
7782
7968
  if (peg$silentFails === 0) {
7783
- peg$fail(peg$e87);
7969
+ peg$fail(peg$e102);
7784
7970
  }
7785
7971
  }
7786
7972
  if (s0 === peg$FAILED) {
7787
- if (input.substr(peg$currPos, 5) === peg$c82) {
7788
- s0 = peg$c82;
7973
+ if (input.substr(peg$currPos, 5) === peg$c98) {
7974
+ s0 = peg$c98;
7789
7975
  peg$currPos += 5;
7790
7976
  }
7791
7977
  else {
7792
7978
  s0 = peg$FAILED;
7793
7979
  if (peg$silentFails === 0) {
7794
- peg$fail(peg$e88);
7980
+ peg$fail(peg$e103);
7795
7981
  }
7796
7982
  }
7797
7983
  if (s0 === peg$FAILED) {
7798
- if (input.substr(peg$currPos, 4) === peg$c83) {
7799
- s0 = peg$c83;
7984
+ if (input.substr(peg$currPos, 4) === peg$c99) {
7985
+ s0 = peg$c99;
7800
7986
  peg$currPos += 4;
7801
7987
  }
7802
7988
  else {
7803
7989
  s0 = peg$FAILED;
7804
7990
  if (peg$silentFails === 0) {
7805
- peg$fail(peg$e89);
7991
+ peg$fail(peg$e104);
7806
7992
  }
7807
7993
  }
7808
7994
  if (s0 === peg$FAILED) {
7809
- if (input.substr(peg$currPos, 4) === peg$c84) {
7810
- s0 = peg$c84;
7811
- peg$currPos += 4;
7995
+ if (input.substr(peg$currPos, 5) === peg$c100) {
7996
+ s0 = peg$c100;
7997
+ peg$currPos += 5;
7812
7998
  }
7813
7999
  else {
7814
8000
  s0 = peg$FAILED;
7815
8001
  if (peg$silentFails === 0) {
7816
- peg$fail(peg$e90);
8002
+ peg$fail(peg$e105);
7817
8003
  }
7818
8004
  }
7819
8005
  if (s0 === peg$FAILED) {
7820
- if (input.substr(peg$currPos, 7) === peg$c85) {
7821
- s0 = peg$c85;
8006
+ if (input.substr(peg$currPos, 7) === peg$c101) {
8007
+ s0 = peg$c101;
7822
8008
  peg$currPos += 7;
7823
8009
  }
7824
8010
  else {
7825
8011
  s0 = peg$FAILED;
7826
8012
  if (peg$silentFails === 0) {
7827
- peg$fail(peg$e91);
8013
+ peg$fail(peg$e106);
7828
8014
  }
7829
8015
  }
7830
8016
  if (s0 === peg$FAILED) {
7831
- if (input.substr(peg$currPos, 9) === peg$c86) {
7832
- s0 = peg$c86;
8017
+ if (input.substr(peg$currPos, 9) === peg$c102) {
8018
+ s0 = peg$c102;
7833
8019
  peg$currPos += 9;
7834
8020
  }
7835
8021
  else {
7836
8022
  s0 = peg$FAILED;
7837
8023
  if (peg$silentFails === 0) {
7838
- peg$fail(peg$e92);
8024
+ peg$fail(peg$e107);
7839
8025
  }
7840
8026
  }
7841
8027
  if (s0 === peg$FAILED) {
7842
- if (input.substr(peg$currPos, 4) === peg$c87) {
7843
- s0 = peg$c87;
8028
+ if (input.substr(peg$currPos, 4) === peg$c103) {
8029
+ s0 = peg$c103;
7844
8030
  peg$currPos += 4;
7845
8031
  }
7846
8032
  else {
7847
8033
  s0 = peg$FAILED;
7848
8034
  if (peg$silentFails === 0) {
7849
- peg$fail(peg$e93);
8035
+ peg$fail(peg$e108);
7850
8036
  }
7851
8037
  }
7852
8038
  if (s0 === peg$FAILED) {
7853
- if (input.substr(peg$currPos, 8) === peg$c88) {
7854
- s0 = peg$c88;
8039
+ if (input.substr(peg$currPos, 8) === peg$c104) {
8040
+ s0 = peg$c104;
7855
8041
  peg$currPos += 8;
7856
8042
  }
7857
8043
  else {
7858
8044
  s0 = peg$FAILED;
7859
8045
  if (peg$silentFails === 0) {
7860
- peg$fail(peg$e94);
8046
+ peg$fail(peg$e109);
7861
8047
  }
7862
8048
  }
7863
8049
  if (s0 === peg$FAILED) {
7864
- if (input.substr(peg$currPos, 5) === peg$c89) {
7865
- s0 = peg$c89;
8050
+ if (input.substr(peg$currPos, 5) === peg$c105) {
8051
+ s0 = peg$c105;
7866
8052
  peg$currPos += 5;
7867
8053
  }
7868
8054
  else {
7869
8055
  s0 = peg$FAILED;
7870
8056
  if (peg$silentFails === 0) {
7871
- peg$fail(peg$e95);
8057
+ peg$fail(peg$e110);
7872
8058
  }
7873
8059
  }
7874
8060
  if (s0 === peg$FAILED) {
7875
- if (input.substr(peg$currPos, 4) === peg$c90) {
7876
- s0 = peg$c90;
8061
+ if (input.substr(peg$currPos, 4) === peg$c106) {
8062
+ s0 = peg$c106;
7877
8063
  peg$currPos += 4;
7878
8064
  }
7879
8065
  else {
7880
8066
  s0 = peg$FAILED;
7881
8067
  if (peg$silentFails === 0) {
7882
- peg$fail(peg$e96);
8068
+ peg$fail(peg$e111);
7883
8069
  }
7884
8070
  }
7885
8071
  if (s0 === peg$FAILED) {
7886
- if (input.substr(peg$currPos, 7) === peg$c91) {
7887
- s0 = peg$c91;
8072
+ if (input.substr(peg$currPos, 7) === peg$c107) {
8073
+ s0 = peg$c107;
7888
8074
  peg$currPos += 7;
7889
8075
  }
7890
8076
  else {
7891
8077
  s0 = peg$FAILED;
7892
8078
  if (peg$silentFails === 0) {
7893
- peg$fail(peg$e97);
8079
+ peg$fail(peg$e112);
7894
8080
  }
7895
8081
  }
7896
8082
  if (s0 === peg$FAILED) {
7897
- if (input.substr(peg$currPos, 6) === peg$c92) {
7898
- s0 = peg$c92;
8083
+ if (input.substr(peg$currPos, 6) === peg$c108) {
8084
+ s0 = peg$c108;
7899
8085
  peg$currPos += 6;
7900
8086
  }
7901
8087
  else {
7902
8088
  s0 = peg$FAILED;
7903
8089
  if (peg$silentFails === 0) {
7904
- peg$fail(peg$e98);
8090
+ peg$fail(peg$e113);
7905
8091
  }
7906
8092
  }
7907
8093
  if (s0 === peg$FAILED) {
7908
- if (input.substr(peg$currPos, 4) === peg$c93) {
7909
- s0 = peg$c93;
8094
+ if (input.substr(peg$currPos, 4) === peg$c109) {
8095
+ s0 = peg$c109;
7910
8096
  peg$currPos += 4;
7911
8097
  }
7912
8098
  else {
7913
8099
  s0 = peg$FAILED;
7914
8100
  if (peg$silentFails === 0) {
7915
- peg$fail(peg$e99);
8101
+ peg$fail(peg$e114);
7916
8102
  }
7917
8103
  }
7918
8104
  if (s0 === peg$FAILED) {
7919
- if (input.substr(peg$currPos, 5) === peg$c94) {
7920
- s0 = peg$c94;
8105
+ if (input.substr(peg$currPos, 5) === peg$c110) {
8106
+ s0 = peg$c110;
7921
8107
  peg$currPos += 5;
7922
8108
  }
7923
8109
  else {
7924
8110
  s0 = peg$FAILED;
7925
8111
  if (peg$silentFails === 0) {
7926
- peg$fail(peg$e100);
8112
+ peg$fail(peg$e115);
7927
8113
  }
7928
8114
  }
7929
8115
  if (s0 === peg$FAILED) {
7930
- if (input.substr(peg$currPos, 6) === peg$c95) {
7931
- s0 = peg$c95;
8116
+ if (input.substr(peg$currPos, 6) === peg$c111) {
8117
+ s0 = peg$c111;
7932
8118
  peg$currPos += 6;
7933
8119
  }
7934
8120
  else {
7935
8121
  s0 = peg$FAILED;
7936
8122
  if (peg$silentFails === 0) {
7937
- peg$fail(peg$e101);
8123
+ peg$fail(peg$e116);
7938
8124
  }
7939
8125
  }
7940
8126
  if (s0 === peg$FAILED) {
7941
- if (input.substr(peg$currPos, 6) === peg$c96) {
7942
- s0 = peg$c96;
7943
- peg$currPos += 6;
8127
+ if (input.substr(peg$currPos, 4) === peg$c112) {
8128
+ s0 = peg$c112;
8129
+ peg$currPos += 4;
7944
8130
  }
7945
8131
  else {
7946
8132
  s0 = peg$FAILED;
7947
8133
  if (peg$silentFails === 0) {
7948
- peg$fail(peg$e102);
8134
+ peg$fail(peg$e117);
7949
8135
  }
7950
8136
  }
7951
8137
  if (s0 === peg$FAILED) {
7952
- if (input.substr(peg$currPos, 3) === peg$c97) {
7953
- s0 = peg$c97;
7954
- peg$currPos += 3;
8138
+ if (input.substr(peg$currPos, 6) === peg$c113) {
8139
+ s0 = peg$c113;
8140
+ peg$currPos += 6;
7955
8141
  }
7956
8142
  else {
7957
8143
  s0 = peg$FAILED;
7958
8144
  if (peg$silentFails === 0) {
7959
- peg$fail(peg$e103);
8145
+ peg$fail(peg$e118);
7960
8146
  }
7961
8147
  }
7962
8148
  if (s0 === peg$FAILED) {
7963
- if (input.substr(peg$currPos, 6) === peg$c98) {
7964
- s0 = peg$c98;
7965
- peg$currPos += 6;
8149
+ if (input.substr(peg$currPos, 3) === peg$c114) {
8150
+ s0 = peg$c114;
8151
+ peg$currPos += 3;
7966
8152
  }
7967
8153
  else {
7968
8154
  s0 = peg$FAILED;
7969
8155
  if (peg$silentFails === 0) {
7970
- peg$fail(peg$e104);
8156
+ peg$fail(peg$e119);
7971
8157
  }
7972
8158
  }
7973
8159
  if (s0 === peg$FAILED) {
7974
- if (input.substr(peg$currPos, 4) === peg$c99) {
7975
- s0 = peg$c99;
7976
- peg$currPos += 4;
8160
+ if (input.substr(peg$currPos, 6) === peg$c115) {
8161
+ s0 = peg$c115;
8162
+ peg$currPos += 6;
7977
8163
  }
7978
8164
  else {
7979
8165
  s0 = peg$FAILED;
7980
8166
  if (peg$silentFails === 0) {
7981
- peg$fail(peg$e105);
8167
+ peg$fail(peg$e120);
7982
8168
  }
7983
8169
  }
7984
8170
  if (s0 === peg$FAILED) {
7985
- if (input.substr(peg$currPos, 6) === peg$c100) {
7986
- s0 = peg$c100;
7987
- peg$currPos += 6;
8171
+ if (input.substr(peg$currPos, 4) === peg$c116) {
8172
+ s0 = peg$c116;
8173
+ peg$currPos += 4;
7988
8174
  }
7989
8175
  else {
7990
8176
  s0 = peg$FAILED;
7991
8177
  if (peg$silentFails === 0) {
7992
- peg$fail(peg$e106);
8178
+ peg$fail(peg$e121);
7993
8179
  }
7994
8180
  }
7995
8181
  if (s0 === peg$FAILED) {
7996
- if (input.substr(peg$currPos, 5) === peg$c101) {
7997
- s0 = peg$c101;
7998
- peg$currPos += 5;
8182
+ if (input.substr(peg$currPos, 6) === peg$c117) {
8183
+ s0 = peg$c117;
8184
+ peg$currPos += 6;
7999
8185
  }
8000
8186
  else {
8001
8187
  s0 = peg$FAILED;
8002
8188
  if (peg$silentFails === 0) {
8003
- peg$fail(peg$e107);
8189
+ peg$fail(peg$e122);
8004
8190
  }
8005
8191
  }
8006
8192
  if (s0 === peg$FAILED) {
8007
- if (input.substr(peg$currPos, 6) === peg$c102) {
8008
- s0 = peg$c102;
8009
- peg$currPos += 6;
8193
+ if (input.substr(peg$currPos, 5) === peg$c118) {
8194
+ s0 = peg$c118;
8195
+ peg$currPos += 5;
8010
8196
  }
8011
8197
  else {
8012
8198
  s0 = peg$FAILED;
8013
8199
  if (peg$silentFails === 0) {
8014
- peg$fail(peg$e108);
8200
+ peg$fail(peg$e123);
8201
+ }
8202
+ }
8203
+ if (s0 === peg$FAILED) {
8204
+ if (input.substr(peg$currPos, 6) === peg$c119) {
8205
+ s0 = peg$c119;
8206
+ peg$currPos += 6;
8207
+ }
8208
+ else {
8209
+ s0 = peg$FAILED;
8210
+ if (peg$silentFails === 0) {
8211
+ peg$fail(peg$e124);
8212
+ }
8015
8213
  }
8016
8214
  }
8017
8215
  }
@@ -8043,12 +8241,12 @@ function peg$parse(input, options) {
8043
8241
  s0 = peg$currPos;
8044
8242
  s1 = peg$parsebitmarkMinusMinusString();
8045
8243
  peg$savedPos = s0;
8046
- s1 = peg$f87(s1);
8244
+ s1 = peg$f89(s1);
8047
8245
  s0 = s1;
8048
8246
  peg$silentFails--;
8049
8247
  s1 = peg$FAILED;
8050
8248
  if (peg$silentFails === 0) {
8051
- peg$fail(peg$e109);
8249
+ peg$fail(peg$e125);
8052
8250
  }
8053
8251
  return s0;
8054
8252
  }
@@ -8073,11 +8271,11 @@ function peg$parse(input, options) {
8073
8271
  }
8074
8272
  }
8075
8273
  peg$savedPos = s0;
8076
- s0 = peg$f88(s1, s2);
8274
+ s0 = peg$f90(s1, s2);
8077
8275
  peg$silentFails--;
8078
8276
  s1 = peg$FAILED;
8079
8277
  if (peg$silentFails === 0) {
8080
- peg$fail(peg$e110);
8278
+ peg$fail(peg$e126);
8081
8279
  }
8082
8280
  return s0;
8083
8281
  }
@@ -8087,7 +8285,7 @@ function peg$parse(input, options) {
8087
8285
  s1 = peg$parseNL();
8088
8286
  if (s1 !== peg$FAILED) {
8089
8287
  peg$savedPos = s0;
8090
- s1 = peg$f89();
8288
+ s1 = peg$f91();
8091
8289
  }
8092
8290
  s0 = s1;
8093
8291
  if (s0 === peg$FAILED) {
@@ -8230,7 +8428,7 @@ function peg$parse(input, options) {
8230
8428
  }
8231
8429
  if (s1 !== peg$FAILED) {
8232
8430
  peg$savedPos = s0;
8233
- s1 = peg$f90(s1);
8431
+ s1 = peg$f92(s1);
8234
8432
  }
8235
8433
  s0 = s1;
8236
8434
  }
@@ -8239,13 +8437,13 @@ function peg$parse(input, options) {
8239
8437
  function peg$parseBoldHalfTag() {
8240
8438
  var s0;
8241
8439
  if (input.charCodeAt(peg$currPos) === 42) {
8242
- s0 = peg$c103;
8440
+ s0 = peg$c120;
8243
8441
  peg$currPos++;
8244
8442
  }
8245
8443
  else {
8246
8444
  s0 = peg$FAILED;
8247
8445
  if (peg$silentFails === 0) {
8248
- peg$fail(peg$e111);
8446
+ peg$fail(peg$e127);
8249
8447
  }
8250
8448
  }
8251
8449
  return s0;
@@ -8253,13 +8451,13 @@ function peg$parse(input, options) {
8253
8451
  function peg$parseItalicHalfTag() {
8254
8452
  var s0;
8255
8453
  if (input.charCodeAt(peg$currPos) === 95) {
8256
- s0 = peg$c104;
8454
+ s0 = peg$c121;
8257
8455
  peg$currPos++;
8258
8456
  }
8259
8457
  else {
8260
8458
  s0 = peg$FAILED;
8261
8459
  if (peg$silentFails === 0) {
8262
- peg$fail(peg$e112);
8460
+ peg$fail(peg$e128);
8263
8461
  }
8264
8462
  }
8265
8463
  return s0;
@@ -8267,13 +8465,13 @@ function peg$parse(input, options) {
8267
8465
  function peg$parseLightHalfTag() {
8268
8466
  var s0;
8269
8467
  if (input.charCodeAt(peg$currPos) === 96) {
8270
- s0 = peg$c105;
8468
+ s0 = peg$c122;
8271
8469
  peg$currPos++;
8272
8470
  }
8273
8471
  else {
8274
8472
  s0 = peg$FAILED;
8275
8473
  if (peg$silentFails === 0) {
8276
- peg$fail(peg$e113);
8474
+ peg$fail(peg$e129);
8277
8475
  }
8278
8476
  }
8279
8477
  return s0;
@@ -8281,13 +8479,13 @@ function peg$parse(input, options) {
8281
8479
  function peg$parseHighlightHalfTag() {
8282
8480
  var s0;
8283
8481
  if (input.charCodeAt(peg$currPos) === 33) {
8284
- s0 = peg$c106;
8482
+ s0 = peg$c123;
8285
8483
  peg$currPos++;
8286
8484
  }
8287
8485
  else {
8288
8486
  s0 = peg$FAILED;
8289
8487
  if (peg$silentFails === 0) {
8290
- peg$fail(peg$e114);
8488
+ peg$fail(peg$e130);
8291
8489
  }
8292
8490
  }
8293
8491
  return s0;
@@ -8378,14 +8576,14 @@ function peg$parse(input, options) {
8378
8576
  }
8379
8577
  function peg$parseBodyBitOpenTag() {
8380
8578
  var s0;
8381
- if (input.substr(peg$currPos, 2) === peg$c107) {
8382
- s0 = peg$c107;
8579
+ if (input.substr(peg$currPos, 2) === peg$c124) {
8580
+ s0 = peg$c124;
8383
8581
  peg$currPos += 2;
8384
8582
  }
8385
8583
  else {
8386
8584
  s0 = peg$FAILED;
8387
8585
  if (peg$silentFails === 0) {
8388
- peg$fail(peg$e115);
8586
+ peg$fail(peg$e131);
8389
8587
  }
8390
8588
  }
8391
8589
  return s0;
@@ -8393,13 +8591,13 @@ function peg$parse(input, options) {
8393
8591
  function peg$parseBodyBitCloseTag() {
8394
8592
  var s0;
8395
8593
  if (input.charCodeAt(peg$currPos) === 93) {
8396
- s0 = peg$c108;
8594
+ s0 = peg$c125;
8397
8595
  peg$currPos++;
8398
8596
  }
8399
8597
  else {
8400
8598
  s0 = peg$FAILED;
8401
8599
  if (peg$silentFails === 0) {
8402
- peg$fail(peg$e116);
8600
+ peg$fail(peg$e132);
8403
8601
  }
8404
8602
  }
8405
8603
  return s0;
@@ -8449,7 +8647,7 @@ function peg$parse(input, options) {
8449
8647
  s3 = peg$parseBodyBitCloseTag();
8450
8648
  if (s3 !== peg$FAILED) {
8451
8649
  peg$savedPos = s0;
8452
- s0 = peg$f91(s2);
8650
+ s0 = peg$f93(s2);
8453
8651
  }
8454
8652
  else {
8455
8653
  peg$currPos = s0;
@@ -8550,7 +8748,7 @@ function peg$parse(input, options) {
8550
8748
  s3 = peg$parseBoldTag();
8551
8749
  if (s3 !== peg$FAILED) {
8552
8750
  peg$savedPos = s0;
8553
- s0 = peg$f92(s2);
8751
+ s0 = peg$f94(s2);
8554
8752
  }
8555
8753
  else {
8556
8754
  peg$currPos = s0;
@@ -8646,7 +8844,7 @@ function peg$parse(input, options) {
8646
8844
  s3 = peg$parseItalicTag();
8647
8845
  if (s3 !== peg$FAILED) {
8648
8846
  peg$savedPos = s0;
8649
- s0 = peg$f93(s2);
8847
+ s0 = peg$f95(s2);
8650
8848
  }
8651
8849
  else {
8652
8850
  peg$currPos = s0;
@@ -8742,7 +8940,7 @@ function peg$parse(input, options) {
8742
8940
  s3 = peg$parseLightTag();
8743
8941
  if (s3 !== peg$FAILED) {
8744
8942
  peg$savedPos = s0;
8745
- s0 = peg$f94(s2);
8943
+ s0 = peg$f96(s2);
8746
8944
  }
8747
8945
  else {
8748
8946
  peg$currPos = s0;
@@ -8838,7 +9036,7 @@ function peg$parse(input, options) {
8838
9036
  s3 = peg$parseHighlightTag();
8839
9037
  if (s3 !== peg$FAILED) {
8840
9038
  peg$savedPos = s0;
8841
- s0 = peg$f95(s2);
9039
+ s0 = peg$f97(s2);
8842
9040
  }
8843
9041
  else {
8844
9042
  peg$currPos = s0;
@@ -8933,35 +9131,35 @@ function peg$parse(input, options) {
8933
9131
  var s0, s1;
8934
9132
  peg$silentFails++;
8935
9133
  if (input.charCodeAt(peg$currPos) === 10) {
8936
- s0 = peg$c109;
9134
+ s0 = peg$c126;
8937
9135
  peg$currPos++;
8938
9136
  }
8939
9137
  else {
8940
9138
  s0 = peg$FAILED;
8941
9139
  if (peg$silentFails === 0) {
8942
- peg$fail(peg$e118);
9140
+ peg$fail(peg$e134);
8943
9141
  }
8944
9142
  }
8945
9143
  if (s0 === peg$FAILED) {
8946
- if (input.substr(peg$currPos, 2) === peg$c110) {
8947
- s0 = peg$c110;
9144
+ if (input.substr(peg$currPos, 2) === peg$c127) {
9145
+ s0 = peg$c127;
8948
9146
  peg$currPos += 2;
8949
9147
  }
8950
9148
  else {
8951
9149
  s0 = peg$FAILED;
8952
9150
  if (peg$silentFails === 0) {
8953
- peg$fail(peg$e119);
9151
+ peg$fail(peg$e135);
8954
9152
  }
8955
9153
  }
8956
9154
  if (s0 === peg$FAILED) {
8957
9155
  s0 = input.charAt(peg$currPos);
8958
- if (peg$r3.test(s0)) {
9156
+ if (peg$r2.test(s0)) {
8959
9157
  peg$currPos++;
8960
9158
  }
8961
9159
  else {
8962
9160
  s0 = peg$FAILED;
8963
9161
  if (peg$silentFails === 0) {
8964
- peg$fail(peg$e120);
9162
+ peg$fail(peg$e136);
8965
9163
  }
8966
9164
  }
8967
9165
  }
@@ -8970,7 +9168,7 @@ function peg$parse(input, options) {
8970
9168
  if (s0 === peg$FAILED) {
8971
9169
  s1 = peg$FAILED;
8972
9170
  if (peg$silentFails === 0) {
8973
- peg$fail(peg$e117);
9171
+ peg$fail(peg$e133);
8974
9172
  }
8975
9173
  }
8976
9174
  return s0;
@@ -9005,7 +9203,7 @@ function peg$parse(input, options) {
9005
9203
  peg$silentFails--;
9006
9204
  s1 = peg$FAILED;
9007
9205
  if (peg$silentFails === 0) {
9008
- peg$fail(peg$e121);
9206
+ peg$fail(peg$e137);
9009
9207
  }
9010
9208
  return s0;
9011
9209
  }
@@ -9029,7 +9227,7 @@ function peg$parse(input, options) {
9029
9227
  peg$silentFails--;
9030
9228
  s1 = peg$FAILED;
9031
9229
  if (peg$silentFails === 0) {
9032
- peg$fail(peg$e122);
9230
+ peg$fail(peg$e138);
9033
9231
  }
9034
9232
  return s0;
9035
9233
  }
@@ -9053,7 +9251,7 @@ function peg$parse(input, options) {
9053
9251
  if (s0 === peg$FAILED) {
9054
9252
  s1 = peg$FAILED;
9055
9253
  if (peg$silentFails === 0) {
9056
- peg$fail(peg$e123);
9254
+ peg$fail(peg$e139);
9057
9255
  }
9058
9256
  }
9059
9257
  return s0;
@@ -9062,20 +9260,20 @@ function peg$parse(input, options) {
9062
9260
  var s0, s1;
9063
9261
  peg$silentFails++;
9064
9262
  s0 = input.charAt(peg$currPos);
9065
- if (peg$r4.test(s0)) {
9263
+ if (peg$r3.test(s0)) {
9066
9264
  peg$currPos++;
9067
9265
  }
9068
9266
  else {
9069
9267
  s0 = peg$FAILED;
9070
9268
  if (peg$silentFails === 0) {
9071
- peg$fail(peg$e125);
9269
+ peg$fail(peg$e141);
9072
9270
  }
9073
9271
  }
9074
9272
  peg$silentFails--;
9075
9273
  if (s0 === peg$FAILED) {
9076
9274
  s1 = peg$FAILED;
9077
9275
  if (peg$silentFails === 0) {
9078
- peg$fail(peg$e124);
9276
+ peg$fail(peg$e140);
9079
9277
  }
9080
9278
  }
9081
9279
  return s0;
@@ -9083,13 +9281,13 @@ function peg$parse(input, options) {
9083
9281
  function peg$parseLineTerminator() {
9084
9282
  var s0;
9085
9283
  s0 = input.charAt(peg$currPos);
9086
- if (peg$r5.test(s0)) {
9284
+ if (peg$r4.test(s0)) {
9087
9285
  peg$currPos++;
9088
9286
  }
9089
9287
  else {
9090
9288
  s0 = peg$FAILED;
9091
9289
  if (peg$silentFails === 0) {
9092
- peg$fail(peg$e126);
9290
+ peg$fail(peg$e142);
9093
9291
  }
9094
9292
  }
9095
9293
  return s0;
@@ -9097,13 +9295,13 @@ function peg$parse(input, options) {
9097
9295
  function peg$parsechar() {
9098
9296
  var s0;
9099
9297
  s0 = input.charAt(peg$currPos);
9100
- if (peg$r6.test(s0)) {
9298
+ if (peg$r5.test(s0)) {
9101
9299
  peg$currPos++;
9102
9300
  }
9103
9301
  else {
9104
9302
  s0 = peg$FAILED;
9105
9303
  if (peg$silentFails === 0) {
9106
- peg$fail(peg$e127);
9304
+ peg$fail(peg$e143);
9107
9305
  }
9108
9306
  }
9109
9307
  return s0;
@@ -9111,13 +9309,13 @@ function peg$parse(input, options) {
9111
9309
  function peg$parseword() {
9112
9310
  var s0;
9113
9311
  s0 = input.charAt(peg$currPos);
9114
- if (peg$r7.test(s0)) {
9312
+ if (peg$r6.test(s0)) {
9115
9313
  peg$currPos++;
9116
9314
  }
9117
9315
  else {
9118
9316
  s0 = peg$FAILED;
9119
9317
  if (peg$silentFails === 0) {
9120
- peg$fail(peg$e128);
9318
+ peg$fail(peg$e144);
9121
9319
  }
9122
9320
  }
9123
9321
  return s0;
@@ -9153,38 +9351,38 @@ function peg$parse(input, options) {
9153
9351
  var s0, s1, s2, s3, s4, s5, s6, s7, s8;
9154
9352
  s0 = peg$currPos;
9155
9353
  s1 = peg$currPos;
9156
- if (input.substr(peg$currPos, 4) === peg$c111) {
9157
- s2 = peg$c111;
9354
+ if (input.substr(peg$currPos, 4) === peg$c128) {
9355
+ s2 = peg$c128;
9158
9356
  peg$currPos += 4;
9159
9357
  }
9160
9358
  else {
9161
9359
  s2 = peg$FAILED;
9162
9360
  if (peg$silentFails === 0) {
9163
- peg$fail(peg$e129);
9361
+ peg$fail(peg$e145);
9164
9362
  }
9165
9363
  }
9166
9364
  if (s2 !== peg$FAILED) {
9167
9365
  if (input.charCodeAt(peg$currPos) === 115) {
9168
- s3 = peg$c112;
9366
+ s3 = peg$c129;
9169
9367
  peg$currPos++;
9170
9368
  }
9171
9369
  else {
9172
9370
  s3 = peg$FAILED;
9173
9371
  if (peg$silentFails === 0) {
9174
- peg$fail(peg$e130);
9372
+ peg$fail(peg$e146);
9175
9373
  }
9176
9374
  }
9177
9375
  if (s3 === peg$FAILED) {
9178
9376
  s3 = null;
9179
9377
  }
9180
- if (input.substr(peg$currPos, 3) === peg$c113) {
9181
- s4 = peg$c113;
9378
+ if (input.substr(peg$currPos, 3) === peg$c130) {
9379
+ s4 = peg$c130;
9182
9380
  peg$currPos += 3;
9183
9381
  }
9184
9382
  else {
9185
9383
  s4 = peg$FAILED;
9186
9384
  if (peg$silentFails === 0) {
9187
- peg$fail(peg$e131);
9385
+ peg$fail(peg$e147);
9188
9386
  }
9189
9387
  }
9190
9388
  if (s4 !== peg$FAILED) {
@@ -9271,38 +9469,38 @@ function peg$parse(input, options) {
9271
9469
  s0 = peg$currPos;
9272
9470
  s1 = peg$currPos;
9273
9471
  s2 = peg$currPos;
9274
- if (input.substr(peg$currPos, 4) === peg$c111) {
9275
- s3 = peg$c111;
9472
+ if (input.substr(peg$currPos, 4) === peg$c128) {
9473
+ s3 = peg$c128;
9276
9474
  peg$currPos += 4;
9277
9475
  }
9278
9476
  else {
9279
9477
  s3 = peg$FAILED;
9280
9478
  if (peg$silentFails === 0) {
9281
- peg$fail(peg$e129);
9479
+ peg$fail(peg$e145);
9282
9480
  }
9283
9481
  }
9284
9482
  if (s3 !== peg$FAILED) {
9285
9483
  if (input.charCodeAt(peg$currPos) === 115) {
9286
- s4 = peg$c112;
9484
+ s4 = peg$c129;
9287
9485
  peg$currPos++;
9288
9486
  }
9289
9487
  else {
9290
9488
  s4 = peg$FAILED;
9291
9489
  if (peg$silentFails === 0) {
9292
- peg$fail(peg$e130);
9490
+ peg$fail(peg$e146);
9293
9491
  }
9294
9492
  }
9295
9493
  if (s4 === peg$FAILED) {
9296
9494
  s4 = null;
9297
9495
  }
9298
- if (input.substr(peg$currPos, 3) === peg$c113) {
9299
- s5 = peg$c113;
9496
+ if (input.substr(peg$currPos, 3) === peg$c130) {
9497
+ s5 = peg$c130;
9300
9498
  peg$currPos += 3;
9301
9499
  }
9302
9500
  else {
9303
9501
  s5 = peg$FAILED;
9304
9502
  if (peg$silentFails === 0) {
9305
- peg$fail(peg$e131);
9503
+ peg$fail(peg$e147);
9306
9504
  }
9307
9505
  }
9308
9506
  if (s5 !== peg$FAILED) {
@@ -9319,14 +9517,14 @@ function peg$parse(input, options) {
9319
9517
  s2 = peg$FAILED;
9320
9518
  }
9321
9519
  if (s2 === peg$FAILED) {
9322
- if (input.substr(peg$currPos, 7) === peg$c114) {
9323
- s2 = peg$c114;
9520
+ if (input.substr(peg$currPos, 7) === peg$c131) {
9521
+ s2 = peg$c131;
9324
9522
  peg$currPos += 7;
9325
9523
  }
9326
9524
  else {
9327
9525
  s2 = peg$FAILED;
9328
9526
  if (peg$silentFails === 0) {
9329
- peg$fail(peg$e132);
9527
+ peg$fail(peg$e148);
9330
9528
  }
9331
9529
  }
9332
9530
  }
@@ -9398,7 +9596,7 @@ function peg$parse(input, options) {
9398
9596
  }
9399
9597
  s2 = input.substring(s2, peg$currPos);
9400
9598
  peg$savedPos = s0;
9401
- s0 = peg$f96(s1, s2);
9599
+ s0 = peg$f98(s1, s2);
9402
9600
  }
9403
9601
  else {
9404
9602
  peg$currPos = s0;
@@ -9409,13 +9607,13 @@ function peg$parse(input, options) {
9409
9607
  function peg$parseUrlChars() {
9410
9608
  var s0;
9411
9609
  s0 = input.charAt(peg$currPos);
9412
- if (peg$r8.test(s0)) {
9610
+ if (peg$r7.test(s0)) {
9413
9611
  peg$currPos++;
9414
9612
  }
9415
9613
  else {
9416
9614
  s0 = peg$FAILED;
9417
9615
  if (peg$silentFails === 0) {
9418
- peg$fail(peg$e133);
9616
+ peg$fail(peg$e149);
9419
9617
  }
9420
9618
  }
9421
9619
  return s0;