securemark 0.242.0 → 0.243.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/securemark.js +363 -314
- package/markdown.d.ts +20 -2
- package/package-lock.json +10 -10
- package/package.json +1 -1
- package/src/parser/block/blockquote.ts +1 -7
- package/src/parser/block/extension/example.ts +1 -1
- package/src/parser/block/extension/fig.ts +6 -5
- package/src/parser/block/extension/figure.test.ts +21 -21
- package/src/parser/block/extension/figure.ts +55 -30
- package/src/parser/block/extension/message.ts +2 -0
- package/src/parser/block/extension/placeholder.ts +2 -2
- package/src/parser/block/sidefence.test.ts +66 -0
- package/src/parser/block/sidefence.ts +31 -0
- package/src/parser/block/table.ts +2 -2
- package/src/parser/block.ts +3 -0
- package/src/parser/inline/extension/placeholder.ts +2 -2
- package/src/parser/inline/html.test.ts +7 -0
- package/src/parser/inline/html.ts +17 -19
- package/src/parser/inline/link.ts +1 -2
- package/src/parser/inline/media.ts +1 -2
package/dist/securemark.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! securemark v0.
|
|
1
|
+
/*! securemark v0.243.2 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED */
|
|
2
2
|
require = function () {
|
|
3
3
|
function r(e, n, t) {
|
|
4
4
|
function o(i, f) {
|
|
@@ -3013,10 +3013,10 @@ require = function () {
|
|
|
3013
3013
|
{
|
|
3014
3014
|
'../../combinator/data/parser': 45,
|
|
3015
3015
|
'../block': 61,
|
|
3016
|
-
'../header':
|
|
3017
|
-
'../processor/figure':
|
|
3018
|
-
'../processor/footnote':
|
|
3019
|
-
'../segment':
|
|
3016
|
+
'../header': 87,
|
|
3017
|
+
'../processor/figure': 125,
|
|
3018
|
+
'../processor/footnote': 126,
|
|
3019
|
+
'../segment': 127,
|
|
3020
3020
|
'./header': 57,
|
|
3021
3021
|
'./normalize': 58,
|
|
3022
3022
|
'spica/alias': 5,
|
|
@@ -3081,7 +3081,7 @@ require = function () {
|
|
|
3081
3081
|
},
|
|
3082
3082
|
{
|
|
3083
3083
|
'../../combinator/data/parser': 45,
|
|
3084
|
-
'../header':
|
|
3084
|
+
'../header': 87
|
|
3085
3085
|
}
|
|
3086
3086
|
],
|
|
3087
3087
|
58: [
|
|
@@ -3162,7 +3162,7 @@ require = function () {
|
|
|
3162
3162
|
},
|
|
3163
3163
|
{
|
|
3164
3164
|
'../../combinator/data/parser': 45,
|
|
3165
|
-
'../inline/htmlentity':
|
|
3165
|
+
'../inline/htmlentity': 112
|
|
3166
3166
|
}
|
|
3167
3167
|
],
|
|
3168
3168
|
59: [
|
|
@@ -3213,10 +3213,10 @@ require = function () {
|
|
|
3213
3213
|
{
|
|
3214
3214
|
'../../combinator/data/parser': 45,
|
|
3215
3215
|
'../block': 61,
|
|
3216
|
-
'../header':
|
|
3217
|
-
'../processor/figure':
|
|
3218
|
-
'../processor/footnote':
|
|
3219
|
-
'../segment':
|
|
3216
|
+
'../header': 87,
|
|
3217
|
+
'../processor/figure': 125,
|
|
3218
|
+
'../processor/footnote': 126,
|
|
3219
|
+
'../segment': 127,
|
|
3220
3220
|
'./header': 57,
|
|
3221
3221
|
'./normalize': 58,
|
|
3222
3222
|
'spica/global': 13,
|
|
@@ -3240,8 +3240,8 @@ require = function () {
|
|
|
3240
3240
|
},
|
|
3241
3241
|
{
|
|
3242
3242
|
'../combinator': 25,
|
|
3243
|
-
'./inline/autolink':
|
|
3244
|
-
'./source':
|
|
3243
|
+
'./inline/autolink': 90,
|
|
3244
|
+
'./source': 128
|
|
3245
3245
|
}
|
|
3246
3246
|
],
|
|
3247
3247
|
61: [
|
|
@@ -3263,6 +3263,7 @@ require = function () {
|
|
|
3263
3263
|
const codeblock_1 = _dereq_('./block/codeblock');
|
|
3264
3264
|
const mathblock_1 = _dereq_('./block/mathblock');
|
|
3265
3265
|
const extension_1 = _dereq_('./block/extension');
|
|
3266
|
+
const sidefence_1 = _dereq_('./block/sidefence');
|
|
3266
3267
|
const blockquote_1 = _dereq_('./block/blockquote');
|
|
3267
3268
|
const reply_1 = _dereq_('./block/reply');
|
|
3268
3269
|
const paragraph_1 = _dereq_('./block/paragraph');
|
|
@@ -3286,6 +3287,7 @@ require = function () {
|
|
|
3286
3287
|
codeblock_1.codeblock,
|
|
3287
3288
|
mathblock_1.mathblock,
|
|
3288
3289
|
extension_1.extension,
|
|
3290
|
+
sidefence_1.sidefence,
|
|
3289
3291
|
blockquote_1.blockquote,
|
|
3290
3292
|
reply_1.reply,
|
|
3291
3293
|
paragraph_1.paragraph
|
|
@@ -3322,9 +3324,10 @@ require = function () {
|
|
|
3322
3324
|
'./block/olist': 79,
|
|
3323
3325
|
'./block/paragraph': 80,
|
|
3324
3326
|
'./block/reply': 81,
|
|
3325
|
-
'./block/
|
|
3326
|
-
'./block/
|
|
3327
|
-
'./
|
|
3327
|
+
'./block/sidefence': 84,
|
|
3328
|
+
'./block/table': 85,
|
|
3329
|
+
'./block/ulist': 86,
|
|
3330
|
+
'./source': 128,
|
|
3328
3331
|
'spica/global': 13,
|
|
3329
3332
|
'spica/random': 18,
|
|
3330
3333
|
'typed-dom/dom': 23
|
|
@@ -3350,9 +3353,7 @@ require = function () {
|
|
|
3350
3353
|
]))));
|
|
3351
3354
|
const opener = /^(?=>>+(?:$|\s))/;
|
|
3352
3355
|
const indent = (0, combinator_1.block)((0, combinator_1.open)(opener, (0, combinator_1.some)(source_1.contentline, /^>(?:$|\s)/)), false);
|
|
3353
|
-
|
|
3354
|
-
return source.replace(/\n$/, '').replace(/^>(?:$|\s|(?=>+(?:$|\s)))/mg, '');
|
|
3355
|
-
}
|
|
3356
|
+
const unindent = source => source.replace(/(^|\n)>(?:[^\S\n]|(?=>*(?:$|\s)))|\n$/g, '$1');
|
|
3356
3357
|
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creator)((0, combinator_1.union)([
|
|
3357
3358
|
(0, combinator_1.rewrite)(indent, (0, combinator_1.convert)(unindent, source)),
|
|
3358
3359
|
(0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))
|
|
@@ -3384,7 +3385,7 @@ require = function () {
|
|
|
3384
3385
|
'../../combinator': 25,
|
|
3385
3386
|
'../api/parse': 59,
|
|
3386
3387
|
'../autolink': 60,
|
|
3387
|
-
'../source':
|
|
3388
|
+
'../source': 128,
|
|
3388
3389
|
'typed-dom/dom': 23
|
|
3389
3390
|
}
|
|
3390
3391
|
],
|
|
@@ -3489,10 +3490,10 @@ require = function () {
|
|
|
3489
3490
|
},
|
|
3490
3491
|
{
|
|
3491
3492
|
'../../combinator': 25,
|
|
3492
|
-
'../inline':
|
|
3493
|
-
'../locale':
|
|
3494
|
-
'../source':
|
|
3495
|
-
'../util':
|
|
3493
|
+
'../inline': 88,
|
|
3494
|
+
'../locale': 123,
|
|
3495
|
+
'../source': 128,
|
|
3496
|
+
'../util': 134,
|
|
3496
3497
|
'spica/array': 6,
|
|
3497
3498
|
'typed-dom/dom': 23
|
|
3498
3499
|
}
|
|
@@ -3594,7 +3595,7 @@ require = function () {
|
|
|
3594
3595
|
{
|
|
3595
3596
|
'../../../combinator': 25,
|
|
3596
3597
|
'../../api/parse': 59,
|
|
3597
|
-
'../../inline/extension/indexee':
|
|
3598
|
+
'../../inline/extension/indexee': 107,
|
|
3598
3599
|
'typed-dom/dom': 23
|
|
3599
3600
|
}
|
|
3600
3601
|
],
|
|
@@ -3608,7 +3609,7 @@ require = function () {
|
|
|
3608
3609
|
const parse_1 = _dereq_('../../api/parse');
|
|
3609
3610
|
const mathblock_1 = _dereq_('../mathblock');
|
|
3610
3611
|
const dom_1 = _dereq_('typed-dom/dom');
|
|
3611
|
-
const opener = /^(~{3,})(?:example\/(\S+)
|
|
3612
|
+
const opener = /^(~{3,})(?:example\/(\S+))?(?!\S)([^\n]*)(?:$|\n)/;
|
|
3612
3613
|
exports.example = (0, combinator_1.creator)(100, (0, combinator_1.block)((0, combinator_1.validate)('~~~', (0, combinator_1.fmap)((0, combinator_1.fence)(opener, 300), ([body, closer, opener, delim, type = 'markdown', param], _, context) => {
|
|
3613
3614
|
if (!closer || param.trimStart())
|
|
3614
3615
|
return [(0, dom_1.html)('pre', {
|
|
@@ -3680,8 +3681,8 @@ require = function () {
|
|
|
3680
3681
|
const label_1 = _dereq_('../../inline/extension/label');
|
|
3681
3682
|
const codeblock_1 = _dereq_('../codeblock');
|
|
3682
3683
|
const mathblock_1 = _dereq_('../mathblock');
|
|
3683
|
-
const blockquote_1 = _dereq_('../blockquote');
|
|
3684
3684
|
const table_1 = _dereq_('./table');
|
|
3685
|
+
const blockquote_1 = _dereq_('../blockquote');
|
|
3685
3686
|
const placeholder_1 = _dereq_('./placeholder');
|
|
3686
3687
|
exports.segment = (0, combinator_1.block)((0, combinator_1.validate)([
|
|
3687
3688
|
'[$',
|
|
@@ -3691,21 +3692,21 @@ require = function () {
|
|
|
3691
3692
|
(0, combinator_1.union)([
|
|
3692
3693
|
codeblock_1.segment,
|
|
3693
3694
|
mathblock_1.segment,
|
|
3694
|
-
blockquote_1.segment,
|
|
3695
3695
|
table_1.segment,
|
|
3696
|
+
blockquote_1.segment,
|
|
3696
3697
|
placeholder_1.segment,
|
|
3697
3698
|
(0, combinator_1.some)(source_1.contentline)
|
|
3698
3699
|
])
|
|
3699
3700
|
])));
|
|
3700
|
-
exports.fig = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.convert)(source => {
|
|
3701
|
+
exports.fig = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.verify)((0, combinator_1.convert)(source => {
|
|
3701
3702
|
const fence = (/^[^\n]*\n!?>+\s/.test(source) && source.match(/^~{3,}(?=[^\S\n]*$)/mg) || []).reduce((max, fence) => fence > max ? fence : max, '~~') + '~';
|
|
3702
3703
|
return `${ fence }figure ${ source }\n\n${ fence }`;
|
|
3703
|
-
}, (0, combinator_1.union)([figure_1.figure]))));
|
|
3704
|
+
}, (0, combinator_1.union)([figure_1.figure])), ([el]) => el.tagName === 'FIGURE')));
|
|
3704
3705
|
},
|
|
3705
3706
|
{
|
|
3706
3707
|
'../../../combinator': 25,
|
|
3707
|
-
'../../inline/extension/label':
|
|
3708
|
-
'../../source':
|
|
3708
|
+
'../../inline/extension/label': 109,
|
|
3709
|
+
'../../source': 128,
|
|
3709
3710
|
'../blockquote': 62,
|
|
3710
3711
|
'../codeblock': 63,
|
|
3711
3712
|
'../mathblock': 78,
|
|
@@ -3734,7 +3735,7 @@ require = function () {
|
|
|
3734
3735
|
},
|
|
3735
3736
|
{
|
|
3736
3737
|
'../../../combinator': 25,
|
|
3737
|
-
'../../inline/extension/label':
|
|
3738
|
+
'../../inline/extension/label': 109,
|
|
3738
3739
|
'typed-dom/dom': 23
|
|
3739
3740
|
}
|
|
3740
3741
|
],
|
|
@@ -3763,14 +3764,14 @@ require = function () {
|
|
|
3763
3764
|
const dom_1 = _dereq_('typed-dom/dom');
|
|
3764
3765
|
const memoize_1 = _dereq_('spica/memoize');
|
|
3765
3766
|
const array_1 = _dereq_('spica/array');
|
|
3766
|
-
exports.segment = (0, combinator_1.block)((0, combinator_1.match)(/^(~{3,})(?:figure[^\S\n]
|
|
3767
|
+
exports.segment = (0, combinator_1.block)((0, combinator_1.match)(/^(~{3,})(?:figure[^\S\n]|(?=\[?\$))/, (0, memoize_1.memoize)(([, fence], closer = new RegExp(String.raw`^${ fence }[^\S\n]*(?:$|\n)`)) => (0, combinator_1.close)((0, combinator_1.sequence)([
|
|
3767
3768
|
source_1.contentline,
|
|
3768
3769
|
(0, combinator_1.inits)([
|
|
3769
3770
|
(0, combinator_1.union)([
|
|
3770
3771
|
codeblock_1.segment_,
|
|
3771
3772
|
mathblock_1.segment_,
|
|
3772
|
-
blockquote_1.segment,
|
|
3773
3773
|
table_2.segment_,
|
|
3774
|
+
blockquote_1.segment,
|
|
3774
3775
|
placeholder_1.segment_,
|
|
3775
3776
|
(0, combinator_1.some)(source_1.contentline, closer)
|
|
3776
3777
|
]),
|
|
@@ -3781,10 +3782,10 @@ require = function () {
|
|
|
3781
3782
|
])
|
|
3782
3783
|
])
|
|
3783
3784
|
]), closer), ([, fence]) => fence.length, [])));
|
|
3784
|
-
exports.figure = (0, combinator_1.block)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.fmap)((0, combinator_1.convert)(source => source.slice(source.
|
|
3785
|
+
exports.figure = (0, combinator_1.block)((0, combinator_1.fallback)((0, combinator_1.rewrite)(exports.segment, (0, combinator_1.fmap)((0, combinator_1.convert)(source => source.slice(source.match(/^~+(?:figure[^\S\n]+)?/)[0].length, source.trimEnd().lastIndexOf('\n')), (0, combinator_1.sequence)([
|
|
3785
3786
|
(0, combinator_1.line)((0, combinator_1.sequence)([
|
|
3786
3787
|
label_1.label,
|
|
3787
|
-
(0, source_1.str)(
|
|
3788
|
+
(0, source_1.str)(/^(?=\s).*\n/)
|
|
3788
3789
|
])),
|
|
3789
3790
|
(0, combinator_1.inits)([
|
|
3790
3791
|
(0, combinator_1.block)((0, combinator_1.union)([
|
|
@@ -3807,7 +3808,27 @@ require = function () {
|
|
|
3807
3808
|
])), ([label, param, content, ...caption]) => [(0, dom_1.html)('figure', attributes(label.getAttribute('data-label'), param, content, caption), [
|
|
3808
3809
|
(0, dom_1.html)('figcaption', (0, array_1.unshift)([(0, dom_1.html)('span', { class: 'figindex' })], (0, dom_1.defrag)(caption))),
|
|
3809
3810
|
(0, dom_1.html)('div', [content])
|
|
3810
|
-
])])))
|
|
3811
|
+
])])), (0, combinator_1.fmap)((0, combinator_1.fence)(/^(~{3,})(?:figure|\[?\$\S*)(?!\S)[^\n]*(?:$|\n)/, 300), ([body, closer, opener, delim], _, context) => {
|
|
3812
|
+
var _a, _b;
|
|
3813
|
+
return [(0, dom_1.html)('pre', {
|
|
3814
|
+
class: 'invalid',
|
|
3815
|
+
translate: 'no',
|
|
3816
|
+
'data-invalid-syntax': 'figure',
|
|
3817
|
+
...!closer && {
|
|
3818
|
+
'data-invalid-type': 'fence',
|
|
3819
|
+
'data-invalid-message': `Missing the closing delimiter "${ delim }"`
|
|
3820
|
+
} || !(0, label_1.segment)((_b = (_a = opener.match(/^~+(?:figure[^\S\n]+)?(\[?\$\S+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : '', context) && {
|
|
3821
|
+
'data-invalid-type': 'label',
|
|
3822
|
+
'data-invalid-message': 'Invalid label'
|
|
3823
|
+
} || /^~+(?:figure[^\S\n]+)?(\[?\$\S+)[^\S\n]+\S/.test(opener) && {
|
|
3824
|
+
'data-invalid-type': 'argument',
|
|
3825
|
+
'data-invalid-message': 'Invalid argument'
|
|
3826
|
+
} || {
|
|
3827
|
+
'data-invalid-type': 'content',
|
|
3828
|
+
'data-invalid-message': 'Invalid content'
|
|
3829
|
+
}
|
|
3830
|
+
}, `${ opener }${ body }${ closer }`)];
|
|
3831
|
+
})));
|
|
3811
3832
|
function attributes(label, param, content, caption) {
|
|
3812
3833
|
const group = label.split('-', 1)[0];
|
|
3813
3834
|
let type = content.className.split(/\s/)[0];
|
|
@@ -3834,12 +3855,12 @@ require = function () {
|
|
|
3834
3855
|
break;
|
|
3835
3856
|
default:
|
|
3836
3857
|
}
|
|
3837
|
-
const invalid =
|
|
3838
|
-
'data-invalid-type': 'label',
|
|
3839
|
-
'data-invalid-message': 'The last part of the fixed label numbers must not be 0'
|
|
3840
|
-
} || param.trimStart() !== '' && {
|
|
3858
|
+
const invalid = param.trimStart() !== '' && {
|
|
3841
3859
|
'data-invalid-type': 'argument',
|
|
3842
3860
|
'data-invalid-message': 'Invalid argument'
|
|
3861
|
+
} || /^[^-]+-(?:[0-9]+\.)*0$/.test(label) && {
|
|
3862
|
+
'data-invalid-type': 'label',
|
|
3863
|
+
'data-invalid-message': 'The last part of the fixed label numbers must not be 0'
|
|
3843
3864
|
} || group === '$' && (type !== 'math' || caption.length > 0) && {
|
|
3844
3865
|
'data-invalid-type': 'label',
|
|
3845
3866
|
'data-invalid-message': '"$" label group must be used to math formulas with no caption'
|
|
@@ -3882,18 +3903,18 @@ require = function () {
|
|
|
3882
3903
|
},
|
|
3883
3904
|
{
|
|
3884
3905
|
'../../../combinator': 25,
|
|
3885
|
-
'../../inline':
|
|
3886
|
-
'../../inline/extension/label':
|
|
3887
|
-
'../../locale':
|
|
3888
|
-
'../../source':
|
|
3889
|
-
'../../util':
|
|
3906
|
+
'../../inline': 88,
|
|
3907
|
+
'../../inline/extension/label': 109,
|
|
3908
|
+
'../../locale': 123,
|
|
3909
|
+
'../../source': 128,
|
|
3910
|
+
'../../util': 134,
|
|
3890
3911
|
'../blockquote': 62,
|
|
3891
3912
|
'../codeblock': 63,
|
|
3892
3913
|
'../indentblock': 77,
|
|
3893
3914
|
'../mathblock': 78,
|
|
3894
3915
|
'../olist': 79,
|
|
3895
|
-
'../table':
|
|
3896
|
-
'../ulist':
|
|
3916
|
+
'../table': 85,
|
|
3917
|
+
'../ulist': 86,
|
|
3897
3918
|
'./example': 67,
|
|
3898
3919
|
'./placeholder': 72,
|
|
3899
3920
|
'./table': 73,
|
|
@@ -3919,6 +3940,7 @@ require = function () {
|
|
|
3919
3940
|
const indentblock_1 = _dereq_('../indentblock');
|
|
3920
3941
|
const codeblock_1 = _dereq_('../codeblock');
|
|
3921
3942
|
const mathblock_1 = _dereq_('../mathblock');
|
|
3943
|
+
const sidefence_1 = _dereq_('../sidefence');
|
|
3922
3944
|
const blockquote_1 = _dereq_('../blockquote');
|
|
3923
3945
|
const paragraph_1 = _dereq_('../paragraph');
|
|
3924
3946
|
const dom_1 = _dereq_('typed-dom/dom');
|
|
@@ -3969,6 +3991,7 @@ require = function () {
|
|
|
3969
3991
|
indentblock_1.indentblock,
|
|
3970
3992
|
codeblock_1.codeblock,
|
|
3971
3993
|
mathblock_1.mathblock,
|
|
3994
|
+
sidefence_1.sidefence,
|
|
3972
3995
|
blockquote_1.blockquote,
|
|
3973
3996
|
paragraph_1.paragraph
|
|
3974
3997
|
]);
|
|
@@ -3976,8 +3999,8 @@ require = function () {
|
|
|
3976
3999
|
{
|
|
3977
4000
|
'../../../combinator': 25,
|
|
3978
4001
|
'../../../combinator/data/parser': 45,
|
|
3979
|
-
'../../segment':
|
|
3980
|
-
'../../source':
|
|
4002
|
+
'../../segment': 127,
|
|
4003
|
+
'../../source': 128,
|
|
3981
4004
|
'../blockquote': 62,
|
|
3982
4005
|
'../codeblock': 63,
|
|
3983
4006
|
'../ilist': 76,
|
|
@@ -3985,8 +4008,9 @@ require = function () {
|
|
|
3985
4008
|
'../mathblock': 78,
|
|
3986
4009
|
'../olist': 79,
|
|
3987
4010
|
'../paragraph': 80,
|
|
3988
|
-
'../
|
|
3989
|
-
'../
|
|
4011
|
+
'../sidefence': 84,
|
|
4012
|
+
'../table': 85,
|
|
4013
|
+
'../ulist': 86,
|
|
3990
4014
|
'spica/array': 6,
|
|
3991
4015
|
'typed-dom/dom': 23
|
|
3992
4016
|
}
|
|
@@ -4006,7 +4030,7 @@ require = function () {
|
|
|
4006
4030
|
translate: 'no',
|
|
4007
4031
|
'data-invalid-syntax': 'extension',
|
|
4008
4032
|
'data-invalid-type': !closer ? 'fence' : 'syntax',
|
|
4009
|
-
'data-invalid-message': !closer ? `Missing the closing delimiter "${ delim }"` : 'Invalid
|
|
4033
|
+
'data-invalid-message': !closer ? `Missing the closing delimiter "${ delim }"` : 'Invalid extension name'
|
|
4010
4034
|
}, `${ opener }${ body }${ closer }`)])));
|
|
4011
4035
|
},
|
|
4012
4036
|
{
|
|
@@ -4272,10 +4296,10 @@ require = function () {
|
|
|
4272
4296
|
{
|
|
4273
4297
|
'../../../combinator': 25,
|
|
4274
4298
|
'../../../combinator/data/parser': 45,
|
|
4275
|
-
'../../inline':
|
|
4276
|
-
'../../locale':
|
|
4277
|
-
'../../source':
|
|
4278
|
-
'../../util':
|
|
4299
|
+
'../../inline': 88,
|
|
4300
|
+
'../../locale': 123,
|
|
4301
|
+
'../../source': 128,
|
|
4302
|
+
'../../util': 134,
|
|
4279
4303
|
'spica/alias': 5,
|
|
4280
4304
|
'spica/array': 6,
|
|
4281
4305
|
'spica/global': 13,
|
|
@@ -4325,9 +4349,9 @@ require = function () {
|
|
|
4325
4349
|
},
|
|
4326
4350
|
{
|
|
4327
4351
|
'../../combinator': 25,
|
|
4328
|
-
'../inline':
|
|
4329
|
-
'../source':
|
|
4330
|
-
'../util':
|
|
4352
|
+
'../inline': 88,
|
|
4353
|
+
'../source': 128,
|
|
4354
|
+
'../util': 134,
|
|
4331
4355
|
'typed-dom/dom': 23
|
|
4332
4356
|
}
|
|
4333
4357
|
],
|
|
@@ -4379,10 +4403,10 @@ require = function () {
|
|
|
4379
4403
|
},
|
|
4380
4404
|
{
|
|
4381
4405
|
'../../combinator': 25,
|
|
4382
|
-
'../inline':
|
|
4383
|
-
'../source':
|
|
4406
|
+
'../inline': 88,
|
|
4407
|
+
'../source': 128,
|
|
4384
4408
|
'./olist': 79,
|
|
4385
|
-
'./ulist':
|
|
4409
|
+
'./ulist': 86,
|
|
4386
4410
|
'typed-dom/dom': 23
|
|
4387
4411
|
}
|
|
4388
4412
|
],
|
|
@@ -4569,10 +4593,10 @@ require = function () {
|
|
|
4569
4593
|
},
|
|
4570
4594
|
{
|
|
4571
4595
|
'../../combinator': 25,
|
|
4572
|
-
'../inline':
|
|
4573
|
-
'../source':
|
|
4596
|
+
'../inline': 88,
|
|
4597
|
+
'../source': 128,
|
|
4574
4598
|
'./ilist': 76,
|
|
4575
|
-
'./ulist':
|
|
4599
|
+
'./ulist': 86,
|
|
4576
4600
|
'spica/array': 6,
|
|
4577
4601
|
'spica/global': 13,
|
|
4578
4602
|
'spica/memoize': 16,
|
|
@@ -4593,9 +4617,9 @@ require = function () {
|
|
|
4593
4617
|
},
|
|
4594
4618
|
{
|
|
4595
4619
|
'../../combinator': 25,
|
|
4596
|
-
'../inline':
|
|
4597
|
-
'../locale':
|
|
4598
|
-
'../util':
|
|
4620
|
+
'../inline': 88,
|
|
4621
|
+
'../locale': 123,
|
|
4622
|
+
'../util': 134,
|
|
4599
4623
|
'typed-dom/dom': 23
|
|
4600
4624
|
}
|
|
4601
4625
|
],
|
|
@@ -4626,10 +4650,10 @@ require = function () {
|
|
|
4626
4650
|
},
|
|
4627
4651
|
{
|
|
4628
4652
|
'../../combinator': 25,
|
|
4629
|
-
'../inline':
|
|
4630
|
-
'../locale':
|
|
4631
|
-
'../source':
|
|
4632
|
-
'../util':
|
|
4653
|
+
'../inline': 88,
|
|
4654
|
+
'../locale': 123,
|
|
4655
|
+
'../source': 128,
|
|
4656
|
+
'../util': 134,
|
|
4633
4657
|
'./reply/cite': 82,
|
|
4634
4658
|
'./reply/quote': 83,
|
|
4635
4659
|
'spica/array': 6,
|
|
@@ -4668,8 +4692,8 @@ require = function () {
|
|
|
4668
4692
|
},
|
|
4669
4693
|
{
|
|
4670
4694
|
'../../../combinator': 25,
|
|
4671
|
-
'../../inline/autolink/anchor':
|
|
4672
|
-
'../../source':
|
|
4695
|
+
'../../inline/autolink/anchor': 92,
|
|
4696
|
+
'../../source': 128,
|
|
4673
4697
|
'typed-dom/dom': 23
|
|
4674
4698
|
}
|
|
4675
4699
|
],
|
|
@@ -4739,12 +4763,41 @@ require = function () {
|
|
|
4739
4763
|
'../../../combinator': 25,
|
|
4740
4764
|
'../../../combinator/data/parser': 45,
|
|
4741
4765
|
'../../autolink': 60,
|
|
4742
|
-
'../../inline/math':
|
|
4743
|
-
'../../source':
|
|
4766
|
+
'../../inline/math': 116,
|
|
4767
|
+
'../../source': 128,
|
|
4744
4768
|
'typed-dom/dom': 23
|
|
4745
4769
|
}
|
|
4746
4770
|
],
|
|
4747
4771
|
84: [
|
|
4772
|
+
function (_dereq_, module, exports) {
|
|
4773
|
+
'use strict';
|
|
4774
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4775
|
+
exports.sidefence = void 0;
|
|
4776
|
+
const combinator_1 = _dereq_('../../combinator');
|
|
4777
|
+
const autolink_1 = _dereq_('../autolink');
|
|
4778
|
+
const source_1 = _dereq_('../source');
|
|
4779
|
+
const dom_1 = _dereq_('typed-dom/dom');
|
|
4780
|
+
exports.sidefence = (0, combinator_1.lazy)(() => (0, combinator_1.block)((0, combinator_1.fmap)((0, combinator_1.focus)(/^(?=\|+(?:[^\S\n]|\n\|))(?:\|+(?:[^\S\n][^\n]*)?(?:$|\n))+$/, (0, combinator_1.union)([source])), ([el]) => [(0, dom_1.define)(el, {
|
|
4781
|
+
class: 'invalid',
|
|
4782
|
+
'data-invalid-syntax': 'sidefence',
|
|
4783
|
+
'data-invalid-type': 'syntax',
|
|
4784
|
+
'data-invalid-message': 'Reserved syntax'
|
|
4785
|
+
})])));
|
|
4786
|
+
const opener = /^(?=\|\|+(?:$|\s))/;
|
|
4787
|
+
const unindent = source => source.replace(/(^|\n)\|(?:[^\S\n]|(?=\|*(?:$|\s)))|\n$/g, '$1');
|
|
4788
|
+
const source = (0, combinator_1.lazy)(() => (0, combinator_1.fmap)((0, combinator_1.some)((0, combinator_1.creator)((0, combinator_1.union)([
|
|
4789
|
+
(0, combinator_1.focus)(/^(?:\|\|+(?:[^\S\n][^\n]*)?(?:$|\n))+/, (0, combinator_1.convert)(unindent, source)),
|
|
4790
|
+
(0, combinator_1.rewrite)((0, combinator_1.some)(source_1.contentline, opener), (0, combinator_1.convert)(unindent, (0, combinator_1.fmap)((0, combinator_1.some)(autolink_1.autolink), ns => [(0, dom_1.html)('pre', (0, dom_1.defrag)(ns))])))
|
|
4791
|
+
]))), ns => [(0, dom_1.html)('blockquote', ns)]));
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
'../../combinator': 25,
|
|
4795
|
+
'../autolink': 60,
|
|
4796
|
+
'../source': 128,
|
|
4797
|
+
'typed-dom/dom': 23
|
|
4798
|
+
}
|
|
4799
|
+
],
|
|
4800
|
+
85: [
|
|
4748
4801
|
function (_dereq_, module, exports) {
|
|
4749
4802
|
'use strict';
|
|
4750
4803
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -4765,9 +4818,9 @@ require = function () {
|
|
|
4765
4818
|
const row = (parser, optional) => (0, combinator_1.creator)((0, combinator_1.fallback)((0, combinator_1.fmap)((0, combinator_1.line)((0, combinator_1.surround)(/^(?=\|)/, (0, combinator_1.some)((0, combinator_1.union)([parser])), /^\|?\s*$/, optional)), es => [(0, dom_1.html)('tr', es)]), (0, combinator_1.rewrite)(source_1.contentline, source => [
|
|
4766
4819
|
[(0, dom_1.html)('tr', {
|
|
4767
4820
|
class: 'invalid',
|
|
4768
|
-
'data-invalid-syntax': '
|
|
4821
|
+
'data-invalid-syntax': 'table-row',
|
|
4769
4822
|
'data-invalid-type': 'syntax',
|
|
4770
|
-
'data-invalid-message': '
|
|
4823
|
+
'data-invalid-message': 'Missing the start symbol of the table row'
|
|
4771
4824
|
}, [(0, dom_1.html)('td', source.replace('\n', ''))])],
|
|
4772
4825
|
''
|
|
4773
4826
|
])));
|
|
@@ -4810,13 +4863,13 @@ require = function () {
|
|
|
4810
4863
|
},
|
|
4811
4864
|
{
|
|
4812
4865
|
'../../combinator': 25,
|
|
4813
|
-
'../inline':
|
|
4814
|
-
'../source':
|
|
4866
|
+
'../inline': 88,
|
|
4867
|
+
'../source': 128,
|
|
4815
4868
|
'spica/array': 6,
|
|
4816
4869
|
'typed-dom/dom': 23
|
|
4817
4870
|
}
|
|
4818
4871
|
],
|
|
4819
|
-
|
|
4872
|
+
86: [
|
|
4820
4873
|
function (_dereq_, module, exports) {
|
|
4821
4874
|
'use strict';
|
|
4822
4875
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -4873,15 +4926,15 @@ require = function () {
|
|
|
4873
4926
|
},
|
|
4874
4927
|
{
|
|
4875
4928
|
'../../combinator': 25,
|
|
4876
|
-
'../inline':
|
|
4877
|
-
'../source':
|
|
4929
|
+
'../inline': 88,
|
|
4930
|
+
'../source': 128,
|
|
4878
4931
|
'./ilist': 76,
|
|
4879
4932
|
'./olist': 79,
|
|
4880
4933
|
'spica/array': 6,
|
|
4881
4934
|
'typed-dom/dom': 23
|
|
4882
4935
|
}
|
|
4883
4936
|
],
|
|
4884
|
-
|
|
4937
|
+
87: [
|
|
4885
4938
|
function (_dereq_, module, exports) {
|
|
4886
4939
|
'use strict';
|
|
4887
4940
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -4940,12 +4993,12 @@ require = function () {
|
|
|
4940
4993
|
{
|
|
4941
4994
|
'../combinator': 25,
|
|
4942
4995
|
'./api/normalize': 58,
|
|
4943
|
-
'./segment':
|
|
4944
|
-
'./source':
|
|
4996
|
+
'./segment': 127,
|
|
4997
|
+
'./source': 128,
|
|
4945
4998
|
'typed-dom/dom': 23
|
|
4946
4999
|
}
|
|
4947
5000
|
],
|
|
4948
|
-
|
|
5001
|
+
88: [
|
|
4949
5002
|
function (_dereq_, module, exports) {
|
|
4950
5003
|
'use strict';
|
|
4951
5004
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5030,34 +5083,34 @@ require = function () {
|
|
|
5030
5083
|
},
|
|
5031
5084
|
{
|
|
5032
5085
|
'../combinator': 25,
|
|
5033
|
-
'./inline/annotation':
|
|
5034
|
-
'./inline/autolink':
|
|
5035
|
-
'./inline/bracket':
|
|
5036
|
-
'./inline/code':
|
|
5037
|
-
'./inline/comment':
|
|
5038
|
-
'./inline/deletion':
|
|
5039
|
-
'./inline/emphasis':
|
|
5040
|
-
'./inline/emstrong':
|
|
5041
|
-
'./inline/escape':
|
|
5042
|
-
'./inline/extension':
|
|
5043
|
-
'./inline/extension/indexee':
|
|
5044
|
-
'./inline/extension/indexer':
|
|
5045
|
-
'./inline/html':
|
|
5046
|
-
'./inline/htmlentity':
|
|
5047
|
-
'./inline/insertion':
|
|
5048
|
-
'./inline/link':
|
|
5049
|
-
'./inline/mark':
|
|
5050
|
-
'./inline/math':
|
|
5051
|
-
'./inline/media':
|
|
5052
|
-
'./inline/reference':
|
|
5053
|
-
'./inline/ruby':
|
|
5054
|
-
'./inline/shortmedia':
|
|
5055
|
-
'./inline/strong':
|
|
5056
|
-
'./inline/template':
|
|
5057
|
-
'./source':
|
|
5086
|
+
'./inline/annotation': 89,
|
|
5087
|
+
'./inline/autolink': 90,
|
|
5088
|
+
'./inline/bracket': 98,
|
|
5089
|
+
'./inline/code': 99,
|
|
5090
|
+
'./inline/comment': 100,
|
|
5091
|
+
'./inline/deletion': 101,
|
|
5092
|
+
'./inline/emphasis': 102,
|
|
5093
|
+
'./inline/emstrong': 103,
|
|
5094
|
+
'./inline/escape': 104,
|
|
5095
|
+
'./inline/extension': 105,
|
|
5096
|
+
'./inline/extension/indexee': 107,
|
|
5097
|
+
'./inline/extension/indexer': 108,
|
|
5098
|
+
'./inline/html': 111,
|
|
5099
|
+
'./inline/htmlentity': 112,
|
|
5100
|
+
'./inline/insertion': 113,
|
|
5101
|
+
'./inline/link': 114,
|
|
5102
|
+
'./inline/mark': 115,
|
|
5103
|
+
'./inline/math': 116,
|
|
5104
|
+
'./inline/media': 117,
|
|
5105
|
+
'./inline/reference': 118,
|
|
5106
|
+
'./inline/ruby': 119,
|
|
5107
|
+
'./inline/shortmedia': 120,
|
|
5108
|
+
'./inline/strong': 121,
|
|
5109
|
+
'./inline/template': 122,
|
|
5110
|
+
'./source': 128
|
|
5058
5111
|
}
|
|
5059
5112
|
],
|
|
5060
|
-
|
|
5113
|
+
89: [
|
|
5061
5114
|
function (_dereq_, module, exports) {
|
|
5062
5115
|
'use strict';
|
|
5063
5116
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5083,13 +5136,13 @@ require = function () {
|
|
|
5083
5136
|
},
|
|
5084
5137
|
{
|
|
5085
5138
|
'../../combinator': 25,
|
|
5086
|
-
'../inline':
|
|
5087
|
-
'../util':
|
|
5139
|
+
'../inline': 88,
|
|
5140
|
+
'../util': 134,
|
|
5088
5141
|
'spica/global': 13,
|
|
5089
5142
|
'typed-dom/dom': 23
|
|
5090
5143
|
}
|
|
5091
5144
|
],
|
|
5092
|
-
|
|
5145
|
+
90: [
|
|
5093
5146
|
function (_dereq_, module, exports) {
|
|
5094
5147
|
'use strict';
|
|
5095
5148
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5123,18 +5176,18 @@ require = function () {
|
|
|
5123
5176
|
},
|
|
5124
5177
|
{
|
|
5125
5178
|
'../../combinator': 25,
|
|
5126
|
-
'../source':
|
|
5127
|
-
'../util':
|
|
5128
|
-
'./autolink/account':
|
|
5129
|
-
'./autolink/anchor':
|
|
5130
|
-
'./autolink/channel':
|
|
5131
|
-
'./autolink/email':
|
|
5132
|
-
'./autolink/hashnum':
|
|
5133
|
-
'./autolink/hashtag':
|
|
5134
|
-
'./autolink/url':
|
|
5179
|
+
'../source': 128,
|
|
5180
|
+
'../util': 134,
|
|
5181
|
+
'./autolink/account': 91,
|
|
5182
|
+
'./autolink/anchor': 92,
|
|
5183
|
+
'./autolink/channel': 93,
|
|
5184
|
+
'./autolink/email': 94,
|
|
5185
|
+
'./autolink/hashnum': 95,
|
|
5186
|
+
'./autolink/hashtag': 96,
|
|
5187
|
+
'./autolink/url': 97
|
|
5135
5188
|
}
|
|
5136
5189
|
],
|
|
5137
|
-
|
|
5190
|
+
91: [
|
|
5138
5191
|
function (_dereq_, module, exports) {
|
|
5139
5192
|
'use strict';
|
|
5140
5193
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5157,12 +5210,12 @@ require = function () {
|
|
|
5157
5210
|
},
|
|
5158
5211
|
{
|
|
5159
5212
|
'../../../combinator': 25,
|
|
5160
|
-
'../../source':
|
|
5161
|
-
'../link':
|
|
5213
|
+
'../../source': 128,
|
|
5214
|
+
'../link': 114,
|
|
5162
5215
|
'typed-dom/dom': 23
|
|
5163
5216
|
}
|
|
5164
5217
|
],
|
|
5165
|
-
|
|
5218
|
+
92: [
|
|
5166
5219
|
function (_dereq_, module, exports) {
|
|
5167
5220
|
'use strict';
|
|
5168
5221
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5181,11 +5234,11 @@ require = function () {
|
|
|
5181
5234
|
},
|
|
5182
5235
|
{
|
|
5183
5236
|
'../../../combinator': 25,
|
|
5184
|
-
'../link':
|
|
5237
|
+
'../link': 114,
|
|
5185
5238
|
'typed-dom/dom': 23
|
|
5186
5239
|
}
|
|
5187
5240
|
],
|
|
5188
|
-
|
|
5241
|
+
93: [
|
|
5189
5242
|
function (_dereq_, module, exports) {
|
|
5190
5243
|
'use strict';
|
|
5191
5244
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5215,13 +5268,13 @@ require = function () {
|
|
|
5215
5268
|
},
|
|
5216
5269
|
{
|
|
5217
5270
|
'../../../combinator': 25,
|
|
5218
|
-
'../../util':
|
|
5219
|
-
'./account':
|
|
5220
|
-
'./hashtag':
|
|
5271
|
+
'../../util': 134,
|
|
5272
|
+
'./account': 91,
|
|
5273
|
+
'./hashtag': 96,
|
|
5221
5274
|
'typed-dom/dom': 23
|
|
5222
5275
|
}
|
|
5223
5276
|
],
|
|
5224
|
-
|
|
5277
|
+
94: [
|
|
5225
5278
|
function (_dereq_, module, exports) {
|
|
5226
5279
|
'use strict';
|
|
5227
5280
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5239,11 +5292,11 @@ require = function () {
|
|
|
5239
5292
|
},
|
|
5240
5293
|
{
|
|
5241
5294
|
'../../../combinator': 25,
|
|
5242
|
-
'../../source':
|
|
5295
|
+
'../../source': 128,
|
|
5243
5296
|
'typed-dom/dom': 23
|
|
5244
5297
|
}
|
|
5245
5298
|
],
|
|
5246
|
-
|
|
5299
|
+
95: [
|
|
5247
5300
|
function (_dereq_, module, exports) {
|
|
5248
5301
|
'use strict';
|
|
5249
5302
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5267,13 +5320,13 @@ require = function () {
|
|
|
5267
5320
|
},
|
|
5268
5321
|
{
|
|
5269
5322
|
'../../../combinator': 25,
|
|
5270
|
-
'../../source':
|
|
5271
|
-
'../link':
|
|
5272
|
-
'./hashtag':
|
|
5323
|
+
'../../source': 128,
|
|
5324
|
+
'../link': 114,
|
|
5325
|
+
'./hashtag': 96,
|
|
5273
5326
|
'typed-dom/dom': 23
|
|
5274
5327
|
}
|
|
5275
5328
|
],
|
|
5276
|
-
|
|
5329
|
+
96: [
|
|
5277
5330
|
function (_dereq_, module, exports) {
|
|
5278
5331
|
'use strict';
|
|
5279
5332
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5302,12 +5355,12 @@ require = function () {
|
|
|
5302
5355
|
},
|
|
5303
5356
|
{
|
|
5304
5357
|
'../../../combinator': 25,
|
|
5305
|
-
'../../source':
|
|
5306
|
-
'../link':
|
|
5358
|
+
'../../source': 128,
|
|
5359
|
+
'../link': 114,
|
|
5307
5360
|
'typed-dom/dom': 23
|
|
5308
5361
|
}
|
|
5309
5362
|
],
|
|
5310
|
-
|
|
5363
|
+
97: [
|
|
5311
5364
|
function (_dereq_, module, exports) {
|
|
5312
5365
|
'use strict';
|
|
5313
5366
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5341,11 +5394,11 @@ require = function () {
|
|
|
5341
5394
|
},
|
|
5342
5395
|
{
|
|
5343
5396
|
'../../../combinator': 25,
|
|
5344
|
-
'../../source':
|
|
5345
|
-
'../link':
|
|
5397
|
+
'../../source': 128,
|
|
5398
|
+
'../link': 114
|
|
5346
5399
|
}
|
|
5347
5400
|
],
|
|
5348
|
-
|
|
5401
|
+
98: [
|
|
5349
5402
|
function (_dereq_, module, exports) {
|
|
5350
5403
|
'use strict';
|
|
5351
5404
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5390,14 +5443,14 @@ require = function () {
|
|
|
5390
5443
|
},
|
|
5391
5444
|
{
|
|
5392
5445
|
'../../combinator': 25,
|
|
5393
|
-
'../inline':
|
|
5394
|
-
'../source':
|
|
5446
|
+
'../inline': 88,
|
|
5447
|
+
'../source': 128,
|
|
5395
5448
|
'spica/array': 6,
|
|
5396
5449
|
'spica/global': 13,
|
|
5397
5450
|
'typed-dom/dom': 23
|
|
5398
5451
|
}
|
|
5399
5452
|
],
|
|
5400
|
-
|
|
5453
|
+
99: [
|
|
5401
5454
|
function (_dereq_, module, exports) {
|
|
5402
5455
|
'use strict';
|
|
5403
5456
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5417,7 +5470,7 @@ require = function () {
|
|
|
5417
5470
|
'typed-dom/dom': 23
|
|
5418
5471
|
}
|
|
5419
5472
|
],
|
|
5420
|
-
|
|
5473
|
+
100: [
|
|
5421
5474
|
function (_dereq_, module, exports) {
|
|
5422
5475
|
'use strict';
|
|
5423
5476
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5441,14 +5494,14 @@ require = function () {
|
|
|
5441
5494
|
},
|
|
5442
5495
|
{
|
|
5443
5496
|
'../../combinator': 25,
|
|
5444
|
-
'../inline':
|
|
5445
|
-
'../source':
|
|
5497
|
+
'../inline': 88,
|
|
5498
|
+
'../source': 128,
|
|
5446
5499
|
'spica/array': 6,
|
|
5447
5500
|
'spica/memoize': 16,
|
|
5448
5501
|
'typed-dom/dom': 23
|
|
5449
5502
|
}
|
|
5450
5503
|
],
|
|
5451
|
-
|
|
5504
|
+
101: [
|
|
5452
5505
|
function (_dereq_, module, exports) {
|
|
5453
5506
|
'use strict';
|
|
5454
5507
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5472,14 +5525,14 @@ require = function () {
|
|
|
5472
5525
|
},
|
|
5473
5526
|
{
|
|
5474
5527
|
'../../combinator': 25,
|
|
5475
|
-
'../inline':
|
|
5476
|
-
'../source':
|
|
5477
|
-
'../util':
|
|
5528
|
+
'../inline': 88,
|
|
5529
|
+
'../source': 128,
|
|
5530
|
+
'../util': 134,
|
|
5478
5531
|
'spica/array': 6,
|
|
5479
5532
|
'typed-dom/dom': 23
|
|
5480
5533
|
}
|
|
5481
5534
|
],
|
|
5482
|
-
|
|
5535
|
+
102: [
|
|
5483
5536
|
function (_dereq_, module, exports) {
|
|
5484
5537
|
'use strict';
|
|
5485
5538
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5505,15 +5558,15 @@ require = function () {
|
|
|
5505
5558
|
},
|
|
5506
5559
|
{
|
|
5507
5560
|
'../../combinator': 25,
|
|
5508
|
-
'../inline':
|
|
5509
|
-
'../source':
|
|
5510
|
-
'../util':
|
|
5511
|
-
'./strong':
|
|
5561
|
+
'../inline': 88,
|
|
5562
|
+
'../source': 128,
|
|
5563
|
+
'../util': 134,
|
|
5564
|
+
'./strong': 121,
|
|
5512
5565
|
'spica/array': 6,
|
|
5513
5566
|
'typed-dom/dom': 23
|
|
5514
5567
|
}
|
|
5515
5568
|
],
|
|
5516
|
-
|
|
5569
|
+
103: [
|
|
5517
5570
|
function (_dereq_, module, exports) {
|
|
5518
5571
|
'use strict';
|
|
5519
5572
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5587,15 +5640,15 @@ require = function () {
|
|
|
5587
5640
|
},
|
|
5588
5641
|
{
|
|
5589
5642
|
'../../combinator': 25,
|
|
5590
|
-
'../inline':
|
|
5591
|
-
'../source':
|
|
5592
|
-
'../util':
|
|
5593
|
-
'./strong':
|
|
5643
|
+
'../inline': 88,
|
|
5644
|
+
'../source': 128,
|
|
5645
|
+
'../util': 134,
|
|
5646
|
+
'./strong': 121,
|
|
5594
5647
|
'spica/array': 6,
|
|
5595
5648
|
'typed-dom/dom': 23
|
|
5596
5649
|
}
|
|
5597
5650
|
],
|
|
5598
|
-
|
|
5651
|
+
104: [
|
|
5599
5652
|
function (_dereq_, module, exports) {
|
|
5600
5653
|
'use strict';
|
|
5601
5654
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5623,11 +5676,11 @@ require = function () {
|
|
|
5623
5676
|
},
|
|
5624
5677
|
{
|
|
5625
5678
|
'../../combinator': 25,
|
|
5626
|
-
'../source':
|
|
5679
|
+
'../source': 128,
|
|
5627
5680
|
'spica/global': 13
|
|
5628
5681
|
}
|
|
5629
5682
|
],
|
|
5630
|
-
|
|
5683
|
+
105: [
|
|
5631
5684
|
function (_dereq_, module, exports) {
|
|
5632
5685
|
'use strict';
|
|
5633
5686
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5647,12 +5700,12 @@ require = function () {
|
|
|
5647
5700
|
},
|
|
5648
5701
|
{
|
|
5649
5702
|
'../../combinator': 25,
|
|
5650
|
-
'./extension/index':
|
|
5651
|
-
'./extension/label':
|
|
5652
|
-
'./extension/placeholder':
|
|
5703
|
+
'./extension/index': 106,
|
|
5704
|
+
'./extension/label': 109,
|
|
5705
|
+
'./extension/placeholder': 110
|
|
5653
5706
|
}
|
|
5654
5707
|
],
|
|
5655
|
-
|
|
5708
|
+
106: [
|
|
5656
5709
|
function (_dereq_, module, exports) {
|
|
5657
5710
|
'use strict';
|
|
5658
5711
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5713,16 +5766,16 @@ require = function () {
|
|
|
5713
5766
|
},
|
|
5714
5767
|
{
|
|
5715
5768
|
'../../../combinator': 25,
|
|
5716
|
-
'../../inline':
|
|
5717
|
-
'../../source':
|
|
5718
|
-
'../../util':
|
|
5719
|
-
'./indexee':
|
|
5769
|
+
'../../inline': 88,
|
|
5770
|
+
'../../source': 128,
|
|
5771
|
+
'../../util': 134,
|
|
5772
|
+
'./indexee': 107,
|
|
5720
5773
|
'spica/array': 6,
|
|
5721
5774
|
'spica/global': 13,
|
|
5722
5775
|
'typed-dom/dom': 23
|
|
5723
5776
|
}
|
|
5724
5777
|
],
|
|
5725
|
-
|
|
5778
|
+
107: [
|
|
5726
5779
|
function (_dereq_, module, exports) {
|
|
5727
5780
|
'use strict';
|
|
5728
5781
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5784,7 +5837,7 @@ require = function () {
|
|
|
5784
5837
|
'typed-dom/dom': 23
|
|
5785
5838
|
}
|
|
5786
5839
|
],
|
|
5787
|
-
|
|
5840
|
+
108: [
|
|
5788
5841
|
function (_dereq_, module, exports) {
|
|
5789
5842
|
'use strict';
|
|
5790
5843
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5805,11 +5858,11 @@ require = function () {
|
|
|
5805
5858
|
},
|
|
5806
5859
|
{
|
|
5807
5860
|
'../../../combinator': 25,
|
|
5808
|
-
'./index':
|
|
5861
|
+
'./index': 106,
|
|
5809
5862
|
'typed-dom/dom': 23
|
|
5810
5863
|
}
|
|
5811
5864
|
],
|
|
5812
|
-
|
|
5865
|
+
109: [
|
|
5813
5866
|
function (_dereq_, module, exports) {
|
|
5814
5867
|
'use strict';
|
|
5815
5868
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5861,13 +5914,13 @@ require = function () {
|
|
|
5861
5914
|
},
|
|
5862
5915
|
{
|
|
5863
5916
|
'../../../combinator': 25,
|
|
5864
|
-
'../../source':
|
|
5917
|
+
'../../source': 128,
|
|
5865
5918
|
'spica/array': 6,
|
|
5866
5919
|
'spica/global': 13,
|
|
5867
5920
|
'typed-dom/dom': 23
|
|
5868
5921
|
}
|
|
5869
5922
|
],
|
|
5870
|
-
|
|
5923
|
+
110: [
|
|
5871
5924
|
function (_dereq_, module, exports) {
|
|
5872
5925
|
'use strict';
|
|
5873
5926
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5881,12 +5934,12 @@ require = function () {
|
|
|
5881
5934
|
exports.placeholder = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)([
|
|
5882
5935
|
'[:',
|
|
5883
5936
|
'[^'
|
|
5884
|
-
], ']', '\n', (0, combinator_1.surround)((0, source_1.str)(/^\[[:^]/), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ']')), (0, source_1.str)(']'), false, ([, bs], rest) => [
|
|
5937
|
+
], ']', '\n', (0, combinator_1.surround)((0, source_1.str)(/^\[[:^]/), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ']')), (0, source_1.str)(']'), false, ([as, bs], rest) => [
|
|
5885
5938
|
[(0, dom_1.html)('span', {
|
|
5886
5939
|
class: 'invalid',
|
|
5887
5940
|
'data-invalid-syntax': 'extension',
|
|
5888
5941
|
'data-invalid-type': 'syntax',
|
|
5889
|
-
'data-invalid-message':
|
|
5942
|
+
'data-invalid-message': `Reserved start symbol "${ as[0][1] }" cannot be used in "[]"`
|
|
5890
5943
|
}, (0, dom_1.defrag)(bs))],
|
|
5891
5944
|
rest
|
|
5892
5945
|
], ([as, bs], rest) => [
|
|
@@ -5896,14 +5949,14 @@ require = function () {
|
|
|
5896
5949
|
},
|
|
5897
5950
|
{
|
|
5898
5951
|
'../../../combinator': 25,
|
|
5899
|
-
'../../inline':
|
|
5900
|
-
'../../source':
|
|
5901
|
-
'../../util':
|
|
5952
|
+
'../../inline': 88,
|
|
5953
|
+
'../../source': 128,
|
|
5954
|
+
'../../util': 134,
|
|
5902
5955
|
'spica/array': 6,
|
|
5903
5956
|
'typed-dom/dom': 23
|
|
5904
5957
|
}
|
|
5905
5958
|
],
|
|
5906
|
-
|
|
5959
|
+
111: [
|
|
5907
5960
|
function (_dereq_, module, exports) {
|
|
5908
5961
|
'use strict';
|
|
5909
5962
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -5918,7 +5971,8 @@ require = function () {
|
|
|
5918
5971
|
const memoize_1 = _dereq_('spica/memoize');
|
|
5919
5972
|
const cache_1 = _dereq_('spica/cache');
|
|
5920
5973
|
const array_1 = _dereq_('spica/array');
|
|
5921
|
-
const tags =
|
|
5974
|
+
const tags = Object.freeze([
|
|
5975
|
+
'wbr',
|
|
5922
5976
|
'sup',
|
|
5923
5977
|
'sub',
|
|
5924
5978
|
'small',
|
|
@@ -5927,19 +5981,19 @@ require = function () {
|
|
|
5927
5981
|
]);
|
|
5928
5982
|
const attrspec = {
|
|
5929
5983
|
bdo: {
|
|
5930
|
-
dir:
|
|
5984
|
+
dir: Object.freeze([
|
|
5931
5985
|
'ltr',
|
|
5932
5986
|
'rtl'
|
|
5933
5987
|
])
|
|
5934
5988
|
}
|
|
5935
5989
|
};
|
|
5936
|
-
|
|
5937
|
-
|
|
5990
|
+
Object.setPrototypeOf(attrspec, null);
|
|
5991
|
+
Object.values(attrspec).forEach(o => Object.setPrototypeOf(o, null));
|
|
5938
5992
|
exports.html = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('<', (0, combinator_1.validate)(/^<[a-z]+(?=[^\S\n]|>)/, (0, combinator_1.union)([
|
|
5939
5993
|
(0, combinator_1.match)(/^(?=<(wbr)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)(`<${ tag }`, (0, combinator_1.some)((0, combinator_1.union)([exports.attribute])), /^\s*>/, true, ([, bs = []], rest) => [
|
|
5940
5994
|
[(0, dom_1.html)(tag, attributes('html', [], attrspec[tag], bs))],
|
|
5941
5995
|
rest
|
|
5942
|
-
]), ([, tag]) => tag)),
|
|
5996
|
+
]), ([, tag]) => tags.indexOf(tag), [])),
|
|
5943
5997
|
(0, combinator_1.match)(/^(?=<(sup|sub|small)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.validate)(`<${ tag }`, `</${ tag }>`, (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${ tag }`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.context)((() => {
|
|
5944
5998
|
switch (tag) {
|
|
5945
5999
|
case 'sup':
|
|
@@ -5968,27 +6022,27 @@ require = function () {
|
|
|
5968
6022
|
]), `</${ tag }>`)), `</${ tag }>`), (0, source_1.str)(`</${ tag }>`), false, ([as, bs, cs], rest, context) => [
|
|
5969
6023
|
[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)],
|
|
5970
6024
|
rest
|
|
5971
|
-
])), ([, tag]) => tag)),
|
|
6025
|
+
])), ([, tag]) => tags.indexOf(tag), [])),
|
|
5972
6026
|
(0, combinator_1.match)(/^(?=<(bdo|bdi)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.validate)(`<${ tag }`, `</${ tag }>`, (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${ tag }`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([
|
|
5973
6027
|
(0, combinator_1.some)(inline_1.inline, (0, util_1.blank)(/\n?/, `</${ tag }>`)),
|
|
5974
6028
|
(0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, '</'), true)
|
|
5975
|
-
]), `</${ tag }>`), `</${ tag }>`), (0, source_1.str)(`</${ tag }>`), false, ([as, bs, cs], rest) => [
|
|
5976
|
-
[elem(tag, as, (0, dom_1.defrag)(bs), cs,
|
|
6029
|
+
]), `</${ tag }>`), `</${ tag }>`), (0, source_1.str)(`</${ tag }>`), false, ([as, bs, cs], rest, context) => [
|
|
6030
|
+
[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)],
|
|
5977
6031
|
rest
|
|
5978
6032
|
], ([as, bs], rest) => as.length === 1 ? [
|
|
5979
6033
|
(0, array_1.unshift)(as, bs),
|
|
5980
6034
|
rest
|
|
5981
|
-
] : global_1.undefined)), ([, tag]) => tag)),
|
|
6035
|
+
] : global_1.undefined)), ([, tag]) => tags.indexOf(tag), [])),
|
|
5982
6036
|
(0, combinator_1.match)(/^(?=<([a-z]+)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.validate)(`<${ tag }`, `</${ tag }>`, (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${ tag }`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([
|
|
5983
6037
|
(0, combinator_1.some)(inline_1.inline, (0, util_1.blank)(/\n?/, `</${ tag }>`)),
|
|
5984
6038
|
(0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, '</'), true)
|
|
5985
|
-
]), `</${ tag }>`), `</${ tag }>`), (0, source_1.str)(`</${ tag }>`), false, ([as, bs, cs], rest) => [
|
|
5986
|
-
[elem(tag, as, (0, dom_1.defrag)(bs), cs,
|
|
6039
|
+
]), `</${ tag }>`), `</${ tag }>`), (0, source_1.str)(`</${ tag }>`), false, ([as, bs, cs], rest, context) => [
|
|
6040
|
+
[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)],
|
|
5987
6041
|
rest
|
|
5988
6042
|
], ([as, bs], rest) => as.length === 1 ? [
|
|
5989
6043
|
(0, array_1.unshift)(as, bs),
|
|
5990
6044
|
rest
|
|
5991
|
-
] : global_1.undefined)), ([, tag]) => tag, new cache_1.Cache(
|
|
6045
|
+
] : global_1.undefined)), ([, tag]) => tag, new cache_1.Cache(10000)))
|
|
5992
6046
|
])))));
|
|
5993
6047
|
exports.attribute = (0, combinator_1.union)([(0, source_1.str)(/^[^\S\n]+[a-z]+(?:-[a-z]+)*(?:="(?:\\[^\n]|[^\\\n"])*")?(?=[^\S\n]|>)/)]);
|
|
5994
6048
|
function elem(tag, as, bs, cs, context) {
|
|
@@ -6011,9 +6065,9 @@ require = function () {
|
|
|
6011
6065
|
}
|
|
6012
6066
|
break;
|
|
6013
6067
|
}
|
|
6014
|
-
|
|
6068
|
+
const attrs = attributes('html', [], attrspec[tag], as.slice(1, -1));
|
|
6015
6069
|
switch (true) {
|
|
6016
|
-
case 'data-invalid-syntax' in
|
|
6070
|
+
case 'data-invalid-syntax' in attrs:
|
|
6017
6071
|
return invalid('attribute', 'Invalid HTML attribute', as, bs, cs);
|
|
6018
6072
|
default:
|
|
6019
6073
|
return (0, dom_1.html)(tag, attrs, bs);
|
|
@@ -6044,8 +6098,7 @@ require = function () {
|
|
|
6044
6098
|
}
|
|
6045
6099
|
invalid || (invalid = !!spec && !requiredAttributes(spec).every(name => name in attrs));
|
|
6046
6100
|
if (invalid) {
|
|
6047
|
-
|
|
6048
|
-
attrs['class'] = (0, array_1.join)(classes, ' ');
|
|
6101
|
+
attrs['class'] = (0, array_1.join)(classes.includes('invalid') ? classes : (0, array_1.unshift)(classes, ['invalid']), ' ');
|
|
6049
6102
|
attrs['data-invalid-syntax'] = syntax;
|
|
6050
6103
|
attrs['data-invalid-type'] = 'argument';
|
|
6051
6104
|
attrs['data-invalid-message'] = 'Invalid argument';
|
|
@@ -6056,9 +6109,9 @@ require = function () {
|
|
|
6056
6109
|
},
|
|
6057
6110
|
{
|
|
6058
6111
|
'../../combinator': 25,
|
|
6059
|
-
'../inline':
|
|
6060
|
-
'../source':
|
|
6061
|
-
'../util':
|
|
6112
|
+
'../inline': 88,
|
|
6113
|
+
'../source': 128,
|
|
6114
|
+
'../util': 134,
|
|
6062
6115
|
'spica/alias': 5,
|
|
6063
6116
|
'spica/array': 6,
|
|
6064
6117
|
'spica/cache': 8,
|
|
@@ -6067,7 +6120,7 @@ require = function () {
|
|
|
6067
6120
|
'typed-dom/dom': 23
|
|
6068
6121
|
}
|
|
6069
6122
|
],
|
|
6070
|
-
|
|
6123
|
+
112: [
|
|
6071
6124
|
function (_dereq_, module, exports) {
|
|
6072
6125
|
'use strict';
|
|
6073
6126
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6104,7 +6157,7 @@ require = function () {
|
|
|
6104
6157
|
'typed-dom/dom': 23
|
|
6105
6158
|
}
|
|
6106
6159
|
],
|
|
6107
|
-
|
|
6160
|
+
113: [
|
|
6108
6161
|
function (_dereq_, module, exports) {
|
|
6109
6162
|
'use strict';
|
|
6110
6163
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6128,20 +6181,19 @@ require = function () {
|
|
|
6128
6181
|
},
|
|
6129
6182
|
{
|
|
6130
6183
|
'../../combinator': 25,
|
|
6131
|
-
'../inline':
|
|
6132
|
-
'../source':
|
|
6133
|
-
'../util':
|
|
6184
|
+
'../inline': 88,
|
|
6185
|
+
'../source': 128,
|
|
6186
|
+
'../util': 134,
|
|
6134
6187
|
'spica/array': 6,
|
|
6135
6188
|
'typed-dom/dom': 23
|
|
6136
6189
|
}
|
|
6137
6190
|
],
|
|
6138
|
-
|
|
6191
|
+
114: [
|
|
6139
6192
|
function (_dereq_, module, exports) {
|
|
6140
6193
|
'use strict';
|
|
6141
6194
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6142
6195
|
exports.resolve = exports.option = exports.uri = exports.link = void 0;
|
|
6143
6196
|
const global_1 = _dereq_('spica/global');
|
|
6144
|
-
const alias_1 = _dereq_('spica/alias');
|
|
6145
6197
|
const parser_1 = _dereq_('../../combinator/data/parser');
|
|
6146
6198
|
const combinator_1 = _dereq_('../../combinator');
|
|
6147
6199
|
const inline_1 = _dereq_('../inline');
|
|
@@ -6152,7 +6204,7 @@ require = function () {
|
|
|
6152
6204
|
const dom_1 = _dereq_('typed-dom/dom');
|
|
6153
6205
|
const url_1 = _dereq_('spica/url');
|
|
6154
6206
|
const optspec = { rel: ['nofollow'] };
|
|
6155
|
-
|
|
6207
|
+
Object.setPrototypeOf(optspec, null);
|
|
6156
6208
|
exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, combinator_1.validate)([
|
|
6157
6209
|
'[',
|
|
6158
6210
|
'{'
|
|
@@ -6268,17 +6320,16 @@ require = function () {
|
|
|
6268
6320
|
'../../combinator': 25,
|
|
6269
6321
|
'../../combinator/data/parser': 45,
|
|
6270
6322
|
'../autolink': 60,
|
|
6271
|
-
'../inline':
|
|
6272
|
-
'../source':
|
|
6273
|
-
'../util':
|
|
6274
|
-
'./html':
|
|
6275
|
-
'spica/alias': 5,
|
|
6323
|
+
'../inline': 88,
|
|
6324
|
+
'../source': 128,
|
|
6325
|
+
'../util': 134,
|
|
6326
|
+
'./html': 111,
|
|
6276
6327
|
'spica/global': 13,
|
|
6277
6328
|
'spica/url': 21,
|
|
6278
6329
|
'typed-dom/dom': 23
|
|
6279
6330
|
}
|
|
6280
6331
|
],
|
|
6281
|
-
|
|
6332
|
+
115: [
|
|
6282
6333
|
function (_dereq_, module, exports) {
|
|
6283
6334
|
'use strict';
|
|
6284
6335
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6302,14 +6353,14 @@ require = function () {
|
|
|
6302
6353
|
},
|
|
6303
6354
|
{
|
|
6304
6355
|
'../../combinator': 25,
|
|
6305
|
-
'../inline':
|
|
6306
|
-
'../source':
|
|
6307
|
-
'../util':
|
|
6356
|
+
'../inline': 88,
|
|
6357
|
+
'../source': 128,
|
|
6358
|
+
'../util': 134,
|
|
6308
6359
|
'spica/array': 6,
|
|
6309
6360
|
'typed-dom/dom': 23
|
|
6310
6361
|
}
|
|
6311
6362
|
],
|
|
6312
|
-
|
|
6363
|
+
116: [
|
|
6313
6364
|
function (_dereq_, module, exports) {
|
|
6314
6365
|
'use strict';
|
|
6315
6366
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6347,17 +6398,16 @@ require = function () {
|
|
|
6347
6398
|
},
|
|
6348
6399
|
{
|
|
6349
6400
|
'../../combinator': 25,
|
|
6350
|
-
'../source':
|
|
6401
|
+
'../source': 128,
|
|
6351
6402
|
'typed-dom/dom': 23
|
|
6352
6403
|
}
|
|
6353
6404
|
],
|
|
6354
|
-
|
|
6405
|
+
117: [
|
|
6355
6406
|
function (_dereq_, module, exports) {
|
|
6356
6407
|
'use strict';
|
|
6357
6408
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6358
6409
|
exports.media = void 0;
|
|
6359
6410
|
const global_1 = _dereq_('spica/global');
|
|
6360
|
-
const alias_1 = _dereq_('spica/alias');
|
|
6361
6411
|
const combinator_1 = _dereq_('../../combinator');
|
|
6362
6412
|
const link_1 = _dereq_('./link');
|
|
6363
6413
|
const html_1 = _dereq_('./html');
|
|
@@ -6372,7 +6422,7 @@ require = function () {
|
|
|
6372
6422
|
'aspect-ratio': [],
|
|
6373
6423
|
rel: global_1.undefined
|
|
6374
6424
|
};
|
|
6375
|
-
|
|
6425
|
+
Object.setPrototypeOf(optspec, null);
|
|
6376
6426
|
exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, combinator_1.validate)([
|
|
6377
6427
|
'![',
|
|
6378
6428
|
'!{'
|
|
@@ -6496,18 +6546,17 @@ require = function () {
|
|
|
6496
6546
|
},
|
|
6497
6547
|
{
|
|
6498
6548
|
'../../combinator': 25,
|
|
6499
|
-
'../source':
|
|
6500
|
-
'./html':
|
|
6501
|
-
'./htmlentity':
|
|
6502
|
-
'./link':
|
|
6503
|
-
'spica/alias': 5,
|
|
6549
|
+
'../source': 128,
|
|
6550
|
+
'./html': 111,
|
|
6551
|
+
'./htmlentity': 112,
|
|
6552
|
+
'./link': 114,
|
|
6504
6553
|
'spica/array': 6,
|
|
6505
6554
|
'spica/global': 13,
|
|
6506
6555
|
'spica/url': 21,
|
|
6507
6556
|
'typed-dom/dom': 23
|
|
6508
6557
|
}
|
|
6509
6558
|
],
|
|
6510
|
-
|
|
6559
|
+
118: [
|
|
6511
6560
|
function (_dereq_, module, exports) {
|
|
6512
6561
|
'use strict';
|
|
6513
6562
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6557,14 +6606,14 @@ require = function () {
|
|
|
6557
6606
|
},
|
|
6558
6607
|
{
|
|
6559
6608
|
'../../combinator': 25,
|
|
6560
|
-
'../inline':
|
|
6561
|
-
'../source':
|
|
6562
|
-
'../util':
|
|
6609
|
+
'../inline': 88,
|
|
6610
|
+
'../source': 128,
|
|
6611
|
+
'../util': 134,
|
|
6563
6612
|
'spica/global': 13,
|
|
6564
6613
|
'typed-dom/dom': 23
|
|
6565
6614
|
}
|
|
6566
6615
|
],
|
|
6567
|
-
|
|
6616
|
+
119: [
|
|
6568
6617
|
function (_dereq_, module, exports) {
|
|
6569
6618
|
'use strict';
|
|
6570
6619
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6668,15 +6717,15 @@ require = function () {
|
|
|
6668
6717
|
{
|
|
6669
6718
|
'../../combinator': 25,
|
|
6670
6719
|
'../../combinator/data/parser': 45,
|
|
6671
|
-
'../source':
|
|
6672
|
-
'../util':
|
|
6673
|
-
'./htmlentity':
|
|
6720
|
+
'../source': 128,
|
|
6721
|
+
'../util': 134,
|
|
6722
|
+
'./htmlentity': 112,
|
|
6674
6723
|
'spica/array': 6,
|
|
6675
6724
|
'spica/global': 13,
|
|
6676
6725
|
'typed-dom/dom': 23
|
|
6677
6726
|
}
|
|
6678
6727
|
],
|
|
6679
|
-
|
|
6728
|
+
120: [
|
|
6680
6729
|
function (_dereq_, module, exports) {
|
|
6681
6730
|
'use strict';
|
|
6682
6731
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6691,11 +6740,11 @@ require = function () {
|
|
|
6691
6740
|
},
|
|
6692
6741
|
{
|
|
6693
6742
|
'../../combinator': 25,
|
|
6694
|
-
'./autolink/url':
|
|
6695
|
-
'./media':
|
|
6743
|
+
'./autolink/url': 97,
|
|
6744
|
+
'./media': 117
|
|
6696
6745
|
}
|
|
6697
6746
|
],
|
|
6698
|
-
|
|
6747
|
+
121: [
|
|
6699
6748
|
function (_dereq_, module, exports) {
|
|
6700
6749
|
'use strict';
|
|
6701
6750
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6719,14 +6768,14 @@ require = function () {
|
|
|
6719
6768
|
},
|
|
6720
6769
|
{
|
|
6721
6770
|
'../../combinator': 25,
|
|
6722
|
-
'../inline':
|
|
6723
|
-
'../source':
|
|
6724
|
-
'../util':
|
|
6771
|
+
'../inline': 88,
|
|
6772
|
+
'../source': 128,
|
|
6773
|
+
'../util': 134,
|
|
6725
6774
|
'spica/array': 6,
|
|
6726
6775
|
'typed-dom/dom': 23
|
|
6727
6776
|
}
|
|
6728
6777
|
],
|
|
6729
|
-
|
|
6778
|
+
122: [
|
|
6730
6779
|
function (_dereq_, module, exports) {
|
|
6731
6780
|
'use strict';
|
|
6732
6781
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6770,13 +6819,13 @@ require = function () {
|
|
|
6770
6819
|
},
|
|
6771
6820
|
{
|
|
6772
6821
|
'../../combinator': 25,
|
|
6773
|
-
'../source':
|
|
6822
|
+
'../source': 128,
|
|
6774
6823
|
'spica/array': 6,
|
|
6775
6824
|
'spica/global': 13,
|
|
6776
6825
|
'typed-dom/dom': 23
|
|
6777
6826
|
}
|
|
6778
6827
|
],
|
|
6779
|
-
|
|
6828
|
+
123: [
|
|
6780
6829
|
function (_dereq_, module, exports) {
|
|
6781
6830
|
'use strict';
|
|
6782
6831
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6842,11 +6891,11 @@ require = function () {
|
|
|
6842
6891
|
},
|
|
6843
6892
|
{
|
|
6844
6893
|
'../combinator': 25,
|
|
6845
|
-
'./locale/ja':
|
|
6894
|
+
'./locale/ja': 124,
|
|
6846
6895
|
'typed-dom/dom': 23
|
|
6847
6896
|
}
|
|
6848
6897
|
],
|
|
6849
|
-
|
|
6898
|
+
124: [
|
|
6850
6899
|
function (_dereq_, module, exports) {
|
|
6851
6900
|
'use strict';
|
|
6852
6901
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -6866,7 +6915,7 @@ require = function () {
|
|
|
6866
6915
|
},
|
|
6867
6916
|
{}
|
|
6868
6917
|
],
|
|
6869
|
-
|
|
6918
|
+
125: [
|
|
6870
6919
|
function (_dereq_, module, exports) {
|
|
6871
6920
|
'use strict';
|
|
6872
6921
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7029,14 +7078,14 @@ require = function () {
|
|
|
7029
7078
|
}
|
|
7030
7079
|
},
|
|
7031
7080
|
{
|
|
7032
|
-
'../inline/extension/label':
|
|
7081
|
+
'../inline/extension/label': 109,
|
|
7033
7082
|
'spica/array': 6,
|
|
7034
7083
|
'spica/global': 13,
|
|
7035
7084
|
'spica/multimap': 17,
|
|
7036
7085
|
'typed-dom/dom': 23
|
|
7037
7086
|
}
|
|
7038
7087
|
],
|
|
7039
|
-
|
|
7088
|
+
126: [
|
|
7040
7089
|
function (_dereq_, module, exports) {
|
|
7041
7090
|
'use strict';
|
|
7042
7091
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7161,14 +7210,14 @@ require = function () {
|
|
|
7161
7210
|
}
|
|
7162
7211
|
},
|
|
7163
7212
|
{
|
|
7164
|
-
'../inline/extension/indexee':
|
|
7213
|
+
'../inline/extension/indexee': 107,
|
|
7165
7214
|
'spica/global': 13,
|
|
7166
7215
|
'spica/memoize': 16,
|
|
7167
7216
|
'spica/multimap': 17,
|
|
7168
7217
|
'typed-dom/dom': 23
|
|
7169
7218
|
}
|
|
7170
7219
|
],
|
|
7171
|
-
|
|
7220
|
+
127: [
|
|
7172
7221
|
function (_dereq_, module, exports) {
|
|
7173
7222
|
'use strict';
|
|
7174
7223
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7218,11 +7267,11 @@ require = function () {
|
|
|
7218
7267
|
'./block/extension': 65,
|
|
7219
7268
|
'./block/heading': 74,
|
|
7220
7269
|
'./block/mathblock': 78,
|
|
7221
|
-
'./source':
|
|
7270
|
+
'./source': 128,
|
|
7222
7271
|
'spica/global': 13
|
|
7223
7272
|
}
|
|
7224
7273
|
],
|
|
7225
|
-
|
|
7274
|
+
128: [
|
|
7226
7275
|
function (_dereq_, module, exports) {
|
|
7227
7276
|
'use strict';
|
|
7228
7277
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7294,14 +7343,14 @@ require = function () {
|
|
|
7294
7343
|
});
|
|
7295
7344
|
},
|
|
7296
7345
|
{
|
|
7297
|
-
'./source/escapable':
|
|
7298
|
-
'./source/line':
|
|
7299
|
-
'./source/str':
|
|
7300
|
-
'./source/text':
|
|
7301
|
-
'./source/unescapable':
|
|
7346
|
+
'./source/escapable': 129,
|
|
7347
|
+
'./source/line': 130,
|
|
7348
|
+
'./source/str': 131,
|
|
7349
|
+
'./source/text': 132,
|
|
7350
|
+
'./source/unescapable': 133
|
|
7302
7351
|
}
|
|
7303
7352
|
],
|
|
7304
|
-
|
|
7353
|
+
129: [
|
|
7305
7354
|
function (_dereq_, module, exports) {
|
|
7306
7355
|
'use strict';
|
|
7307
7356
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7349,10 +7398,10 @@ require = function () {
|
|
|
7349
7398
|
},
|
|
7350
7399
|
{
|
|
7351
7400
|
'../../combinator': 25,
|
|
7352
|
-
'./text':
|
|
7401
|
+
'./text': 132
|
|
7353
7402
|
}
|
|
7354
7403
|
],
|
|
7355
|
-
|
|
7404
|
+
130: [
|
|
7356
7405
|
function (_dereq_, module, exports) {
|
|
7357
7406
|
'use strict';
|
|
7358
7407
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7377,7 +7426,7 @@ require = function () {
|
|
|
7377
7426
|
'spica/global': 13
|
|
7378
7427
|
}
|
|
7379
7428
|
],
|
|
7380
|
-
|
|
7429
|
+
131: [
|
|
7381
7430
|
function (_dereq_, module, exports) {
|
|
7382
7431
|
'use strict';
|
|
7383
7432
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7434,7 +7483,7 @@ require = function () {
|
|
|
7434
7483
|
'spica/global': 13
|
|
7435
7484
|
}
|
|
7436
7485
|
],
|
|
7437
|
-
|
|
7486
|
+
132: [
|
|
7438
7487
|
function (_dereq_, module, exports) {
|
|
7439
7488
|
'use strict';
|
|
7440
7489
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7546,12 +7595,12 @@ require = function () {
|
|
|
7546
7595
|
},
|
|
7547
7596
|
{
|
|
7548
7597
|
'../../combinator': 25,
|
|
7549
|
-
'./str':
|
|
7598
|
+
'./str': 131,
|
|
7550
7599
|
'spica/global': 13,
|
|
7551
7600
|
'typed-dom/dom': 23
|
|
7552
7601
|
}
|
|
7553
7602
|
],
|
|
7554
|
-
|
|
7603
|
+
133: [
|
|
7555
7604
|
function (_dereq_, module, exports) {
|
|
7556
7605
|
'use strict';
|
|
7557
7606
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7586,10 +7635,10 @@ require = function () {
|
|
|
7586
7635
|
},
|
|
7587
7636
|
{
|
|
7588
7637
|
'../../combinator': 25,
|
|
7589
|
-
'./text':
|
|
7638
|
+
'./text': 132
|
|
7590
7639
|
}
|
|
7591
7640
|
],
|
|
7592
|
-
|
|
7641
|
+
134: [
|
|
7593
7642
|
function (_dereq_, module, exports) {
|
|
7594
7643
|
'use strict';
|
|
7595
7644
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7747,14 +7796,14 @@ require = function () {
|
|
|
7747
7796
|
'../combinator': 25,
|
|
7748
7797
|
'../combinator/data/parser': 45,
|
|
7749
7798
|
'./api/normalize': 58,
|
|
7750
|
-
'./inline/htmlentity':
|
|
7751
|
-
'./source':
|
|
7799
|
+
'./inline/htmlentity': 112,
|
|
7800
|
+
'./source': 128,
|
|
7752
7801
|
'spica/array': 6,
|
|
7753
7802
|
'spica/global': 13,
|
|
7754
7803
|
'spica/memoize': 16
|
|
7755
7804
|
}
|
|
7756
7805
|
],
|
|
7757
|
-
|
|
7806
|
+
135: [
|
|
7758
7807
|
function (_dereq_, module, exports) {
|
|
7759
7808
|
'use strict';
|
|
7760
7809
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7767,9 +7816,9 @@ require = function () {
|
|
|
7767
7816
|
}
|
|
7768
7817
|
});
|
|
7769
7818
|
},
|
|
7770
|
-
{ './renderer/render':
|
|
7819
|
+
{ './renderer/render': 136 }
|
|
7771
7820
|
],
|
|
7772
|
-
|
|
7821
|
+
136: [
|
|
7773
7822
|
function (_dereq_, module, exports) {
|
|
7774
7823
|
'use strict';
|
|
7775
7824
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7824,15 +7873,15 @@ require = function () {
|
|
|
7824
7873
|
}
|
|
7825
7874
|
},
|
|
7826
7875
|
{
|
|
7827
|
-
'./render/code':
|
|
7828
|
-
'./render/math':
|
|
7829
|
-
'./render/media':
|
|
7876
|
+
'./render/code': 137,
|
|
7877
|
+
'./render/math': 138,
|
|
7878
|
+
'./render/media': 139,
|
|
7830
7879
|
'spica/global': 13,
|
|
7831
7880
|
'spica/memoize': 16,
|
|
7832
7881
|
'typed-dom/query': 24
|
|
7833
7882
|
}
|
|
7834
7883
|
],
|
|
7835
|
-
|
|
7884
|
+
137: [
|
|
7836
7885
|
function (_dereq_, module, exports) {
|
|
7837
7886
|
(function (global) {
|
|
7838
7887
|
(function () {
|
|
@@ -7890,7 +7939,7 @@ require = function () {
|
|
|
7890
7939
|
},
|
|
7891
7940
|
{}
|
|
7892
7941
|
],
|
|
7893
|
-
|
|
7942
|
+
138: [
|
|
7894
7943
|
function (_dereq_, module, exports) {
|
|
7895
7944
|
'use strict';
|
|
7896
7945
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7916,7 +7965,7 @@ require = function () {
|
|
|
7916
7965
|
'typed-dom/dom': 23
|
|
7917
7966
|
}
|
|
7918
7967
|
],
|
|
7919
|
-
|
|
7968
|
+
139: [
|
|
7920
7969
|
function (_dereq_, module, exports) {
|
|
7921
7970
|
'use strict';
|
|
7922
7971
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7947,17 +7996,17 @@ require = function () {
|
|
|
7947
7996
|
exports.media = media;
|
|
7948
7997
|
},
|
|
7949
7998
|
{
|
|
7950
|
-
'./media/audio':
|
|
7951
|
-
'./media/image':
|
|
7952
|
-
'./media/pdf':
|
|
7953
|
-
'./media/twitter':
|
|
7954
|
-
'./media/video':
|
|
7955
|
-
'./media/youtube':
|
|
7999
|
+
'./media/audio': 140,
|
|
8000
|
+
'./media/image': 141,
|
|
8001
|
+
'./media/pdf': 142,
|
|
8002
|
+
'./media/twitter': 143,
|
|
8003
|
+
'./media/video': 144,
|
|
8004
|
+
'./media/youtube': 145,
|
|
7956
8005
|
'spica/memoize': 16,
|
|
7957
8006
|
'spica/url': 21
|
|
7958
8007
|
}
|
|
7959
8008
|
],
|
|
7960
|
-
|
|
8009
|
+
140: [
|
|
7961
8010
|
function (_dereq_, module, exports) {
|
|
7962
8011
|
'use strict';
|
|
7963
8012
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -7982,7 +8031,7 @@ require = function () {
|
|
|
7982
8031
|
},
|
|
7983
8032
|
{ 'typed-dom/dom': 23 }
|
|
7984
8033
|
],
|
|
7985
|
-
|
|
8034
|
+
141: [
|
|
7986
8035
|
function (_dereq_, module, exports) {
|
|
7987
8036
|
'use strict';
|
|
7988
8037
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8019,7 +8068,7 @@ require = function () {
|
|
|
8019
8068
|
'typed-dom/dom': 23
|
|
8020
8069
|
}
|
|
8021
8070
|
],
|
|
8022
|
-
|
|
8071
|
+
142: [
|
|
8023
8072
|
function (_dereq_, module, exports) {
|
|
8024
8073
|
'use strict';
|
|
8025
8074
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8048,7 +8097,7 @@ require = function () {
|
|
|
8048
8097
|
'typed-dom/dom': 23
|
|
8049
8098
|
}
|
|
8050
8099
|
],
|
|
8051
|
-
|
|
8100
|
+
143: [
|
|
8052
8101
|
function (_dereq_, module, exports) {
|
|
8053
8102
|
(function (global) {
|
|
8054
8103
|
(function () {
|
|
@@ -8103,7 +8152,7 @@ require = function () {
|
|
|
8103
8152
|
'typed-dom/dom': 23
|
|
8104
8153
|
}
|
|
8105
8154
|
],
|
|
8106
|
-
|
|
8155
|
+
144: [
|
|
8107
8156
|
function (_dereq_, module, exports) {
|
|
8108
8157
|
'use strict';
|
|
8109
8158
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8135,7 +8184,7 @@ require = function () {
|
|
|
8135
8184
|
'typed-dom/dom': 23
|
|
8136
8185
|
}
|
|
8137
8186
|
],
|
|
8138
|
-
|
|
8187
|
+
145: [
|
|
8139
8188
|
function (_dereq_, module, exports) {
|
|
8140
8189
|
'use strict';
|
|
8141
8190
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8169,7 +8218,7 @@ require = function () {
|
|
|
8169
8218
|
},
|
|
8170
8219
|
{ 'typed-dom/dom': 23 }
|
|
8171
8220
|
],
|
|
8172
|
-
|
|
8221
|
+
146: [
|
|
8173
8222
|
function (_dereq_, module, exports) {
|
|
8174
8223
|
'use strict';
|
|
8175
8224
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8204,13 +8253,13 @@ require = function () {
|
|
|
8204
8253
|
});
|
|
8205
8254
|
},
|
|
8206
8255
|
{
|
|
8207
|
-
'./util/info':
|
|
8208
|
-
'./util/quote':
|
|
8209
|
-
'./util/scope':
|
|
8210
|
-
'./util/toc':
|
|
8256
|
+
'./util/info': 147,
|
|
8257
|
+
'./util/quote': 148,
|
|
8258
|
+
'./util/scope': 149,
|
|
8259
|
+
'./util/toc': 150
|
|
8211
8260
|
}
|
|
8212
8261
|
],
|
|
8213
|
-
|
|
8262
|
+
147: [
|
|
8214
8263
|
function (_dereq_, module, exports) {
|
|
8215
8264
|
'use strict';
|
|
8216
8265
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8241,11 +8290,11 @@ require = function () {
|
|
|
8241
8290
|
exports.info = info;
|
|
8242
8291
|
},
|
|
8243
8292
|
{
|
|
8244
|
-
'./scope':
|
|
8293
|
+
'./scope': 149,
|
|
8245
8294
|
'typed-dom/query': 24
|
|
8246
8295
|
}
|
|
8247
8296
|
],
|
|
8248
|
-
|
|
8297
|
+
148: [
|
|
8249
8298
|
function (_dereq_, module, exports) {
|
|
8250
8299
|
'use strict';
|
|
8251
8300
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8336,7 +8385,7 @@ require = function () {
|
|
|
8336
8385
|
'typed-dom/dom': 23
|
|
8337
8386
|
}
|
|
8338
8387
|
],
|
|
8339
|
-
|
|
8388
|
+
149: [
|
|
8340
8389
|
function (_dereq_, module, exports) {
|
|
8341
8390
|
'use strict';
|
|
8342
8391
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8362,7 +8411,7 @@ require = function () {
|
|
|
8362
8411
|
},
|
|
8363
8412
|
{ 'spica/global': 13 }
|
|
8364
8413
|
],
|
|
8365
|
-
|
|
8414
|
+
150: [
|
|
8366
8415
|
function (_dereq_, module, exports) {
|
|
8367
8416
|
'use strict';
|
|
8368
8417
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8467,8 +8516,8 @@ require = function () {
|
|
|
8467
8516
|
},
|
|
8468
8517
|
{
|
|
8469
8518
|
'./src/parser': 52,
|
|
8470
|
-
'./src/renderer':
|
|
8471
|
-
'./src/util':
|
|
8519
|
+
'./src/renderer': 135,
|
|
8520
|
+
'./src/util': 146,
|
|
8472
8521
|
'spica/global': 13
|
|
8473
8522
|
}
|
|
8474
8523
|
]
|