"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[927],{9927:function(e,t,n){function r(e){return(o=o||document.createElement("textarea")).innerHTML="&"+e+";",o.value}n.d(t,{_:function(){return eC}});var o,s=Object.prototype.hasOwnProperty;function i(e){var t=[].slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}var l=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function a(e){return 0>e.indexOf("\\")?e:e.replace(l,"$1")}function c(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)}function p(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}var h=/&([a-z#][a-z0-9]{1,31});/gi,u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function f(e,t){var n=0,o=r(t);return t!==o?o:35===t.charCodeAt(0)&&u.test(t)&&c(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?p(n):e}function d(e){return 0>e.indexOf("&")?e:e.replace(h,f)}var k=/[&<>"]/,v=/[&<>"]/g,g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _(e){return g[e]}function b(e){return k.test(e)?e.replace(v,_):e}var m={};m.blockquote_open=function(){return"<blockquote>\n"},m.blockquote_close=function(e,t){return"</blockquote>"+y(e,t)},m.code=function(e,t){return e[t].block?"<pre><code>"+b(e[t].content)+"</code></pre>"+y(e,t):"<code>"+b(e[t].content)+"</code>"},m.fence=function(e,t,n,r,o){var i,l,c,p,h=e[t],u="",f=n.langPrefix;if(h.params){if(p=(c=h.params.split(/\s+/g)).join(" "),i=o.rules.fence_custom,l=c[0],i&&s.call(i,l))return o.rules.fence_custom[c[0]](e,t,n,r,o);u=' class="'+f+b(d(a(p)))+'"'}return"<pre><code"+u+">"+(n.highlight&&n.highlight.apply(n.highlight,[h.content].concat(c))||b(h.content))+"</code></pre>"+y(e,t)},m.fence_custom={},m.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},m.heading_close=function(e,t){return"</h"+e[t].hLevel+">\n"},m.hr=function(e,t,n){return(n.xhtmlOut?"<hr />":"<hr>")+y(e,t)},m.bullet_list_open=function(){return"<ul>\n"},m.bullet_list_close=function(e,t){return"</ul>"+y(e,t)},m.list_item_open=function(){return"<li>"},m.list_item_close=function(){return"</li>\n"},m.ordered_list_open=function(e,t){var n=e[t];return"<ol"+(n.order>1?' start="'+n.order+'"':"")+">\n"},m.ordered_list_close=function(e,t){return"</ol>"+y(e,t)},m.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},m.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"</p>")+(n?y(e,t):"")},m.link_open=function(e,t,n){var r=e[t].title?' title="'+b(d(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'<a href="'+b(e[t].href)+'"'+r+o+">"},m.link_close=function(){return"</a>"},m.image=function(e,t,n){var r=' src="'+b(e[t].src)+'"',o=e[t].title?' title="'+b(d(e[t].title))+'"':"";return"<img"+r+' alt="'+(e[t].alt?b(d(a(e[t].alt))):"")+'"'+o+(n.xhtmlOut?" /":"")+">"},m.table_open=function(){return"<table>\n"},m.table_close=function(){return"</table>\n"},m.thead_open=function(){return"<thead>\n"},m.thead_close=function(){return"</thead>\n"},m.tbody_open=function(){return"<tbody>\n"},m.tbody_close=function(){return"</tbody>\n"},m.tr_open=function(){return"<tr>"},m.tr_close=function(){return"</tr>\n"},m.th_open=function(e,t){var n=e[t];return"<th"+(n.align?' style="text-align:'+n.align+'"':"")+">"},m.th_close=function(){return"</th>"},m.td_open=function(e,t){var n=e[t];return"<td"+(n.align?' style="text-align:'+n.align+'"':"")+">"},m.td_close=function(){return"</td>"},m.strong_open=function(){return"<strong>"},m.strong_close=function(){return"</strong>"},m.em_open=function(){return"<em>"},m.em_close=function(){return"</em>"},m.del_open=function(){return"<del>"},m.del_close=function(){return"</del>"},m.ins_open=function(){return"<ins>"},m.ins_close=function(){return"</ins>"},m.mark_open=function(){return"<mark>"},m.mark_close=function(){return"</mark>"},m.sub=function(e,t){return"<sub>"+b(e[t].content)+"</sub>"},m.sup=function(e,t){return"<sup>"+b(e[t].content)+"</sup>"},m.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},m.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},m.text=function(e,t){return b(e[t].content)},m.htmlblock=function(e,t){return e[t].content},m.htmltag=function(e,t){return e[t].content},m.abbr_open=function(e,t){return'<abbr title="'+b(d(e[t].title))+'">'},m.abbr_close=function(){return"</abbr>"},m.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+r+'">['+n+"]</a></sup>"},m.footnote_block_open=function(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},m.footnote_block_close=function(){return"</ol>\n</section>\n"},m.footnote_open=function(e,t){return'<li id="fn'+Number(e[t].id+1).toString()+'"  class="footnote-item">'},m.footnote_close=function(){return"</li>\n"},m.footnote_anchor=function(e,t){var n="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'},m.dl_open=function(){return"<dl>\n"},m.dt_open=function(){return"<dt>"},m.dd_open=function(){return"<dd>"},m.dl_close=function(){return"</dl>\n"},m.dt_close=function(){return"</dt>\n"},m.dd_close=function(){return"</dd>\n"};var y=m.getBreak=function(e,t){return(t=function e(t,n){return++n>=t.length-2?n:"paragraph_open"===t[n].type&&t[n].tight&&"inline"===t[n+1].type&&0===t[n+1].content.length&&"paragraph_close"===t[n+2].type&&t[n+2].tight?e(t,n+2):n}(e,t))<e.length&&"list_item_close"===e[t].type?"":"\n"};function C(){this.rules=i({},m),this.getBreak=m.getBreak}function x(){this.__rules__=[],this.__cache__=null}function A(e,t,n,r,o){this.src=e,this.env=r,this.options=n,this.parser=t,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function M(e,t){var n,r,o,s=-1,i=e.posMax,l=e.pos,a=e.isInLabel;if(e.isInLabel)return -1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<i;){if(91===(o=e.src.charCodeAt(e.pos)))n++;else if(93===o&&0==--n){r=!0;break}e.parser.skipToken(e)}return r?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=l,e.isInLabel=a,s}function S(e){var t=d(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}function I(e,t){var n,r,o,s=t,i=e.posMax;if(60===e.src.charCodeAt(t)){for(t++;t<i&&10!==(n=e.src.charCodeAt(t));){if(62===n){if(o=S(a(e.src.slice(s+1,t))),!e.parser.validateLink(o))return!1;return e.pos=t+1,e.linkContent=o,!0}if(92===n&&t+1<i){t+=2;continue}t++}return!1}for(r=0;t<i&&32!==(n=e.src.charCodeAt(t))&&!(n<32)&&127!==n;){if(92===n&&t+1<i){t+=2;continue}if(40===n&&++r>1||41===n&&--r<0)break;t++}return s!==t&&(o=a(e.src.slice(s,t)),!!e.parser.validateLink(o)&&(e.linkContent=o,e.pos=t,!0))}function w(e,t){var n,r=t,o=e.posMax,s=e.src.charCodeAt(t);if(34!==s&&39!==s&&40!==s)return!1;for(t++,40===s&&(s=41);t<o;){if((n=e.src.charCodeAt(t))===s)return e.pos=t+1,e.linkContent=a(e.src.slice(r+1,t)),!0;if(92===n&&t+1<o){t+=2;continue}t++}return!1}function E(e){return e.trim().replace(/\s+/g," ").toUpperCase()}C.prototype.renderInline=function(e,t,n){for(var r=this.rules,o=e.length,s=0,i="";o--;)i+=r[e[s].type](e,s++,t,n,this);return i},C.prototype.render=function(e,t,n){for(var r=this.rules,o=e.length,s=-1,i="";++s<o;)"inline"===e[s].type?i+=this.renderInline(e[s].children,t,n):i+=r[e[s].type](e,s,t,n,this);return i},x.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return -1},x.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},x.prototype.at=function(e,t,n){var r=this.__find__(e);if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},x.prototype.before=function(e,t,n,r){var o=this.__find__(e);if(-1===o)throw Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},x.prototype.after=function(e,t,n,r){var o=this.__find__(e);if(-1===o)throw Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},x.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},x.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var t=this.__find__(e);if(t<0)throw Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0},this),this.__cache__=null},x.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach(function(e){var t=this.__find__(e);if(t<0)throw Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1},this),this.__cache__=null},x.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},A.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},A.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},A.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},A.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};var z=" \n()[]'\".,!?-";function L(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var q=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,T=/\((c|tm|r|p)\)/ig,O={c:"\xa9",r:"\xae",p:"\xa7",tm:"™"},$=/['"]/,N=/['"]/g,R=/[-\s()\[\]]/;function j(e,t){return!(t<0)&&!(t>=e.length)&&!R.test(e[t])}function Z(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var P=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,n,r,o,s=e.tokens;if(!e.inlineMode){for(t=1,n=s.length-1;t<n;t++)if("paragraph_open"===s[t-1].type&&"inline"===s[t].type&&"paragraph_close"===s[t+1].type){for(r=s[t].content;r.length&&!((o=function(e,t,n,r){var o,s,i,l,a,c;if(42!==e.charCodeAt(0)||91!==e.charCodeAt(1)||-1===e.indexOf("]:")||(s=M(o=new A(e,t,n,r,[]),1))<0||58!==e.charCodeAt(s+1))return -1;for(l=o.posMax,i=s+2;i<l&&10!==o.src.charCodeAt(i);i++);return(a=e.slice(2,s),0===(c=e.slice(s+2,i).trim()).length)?-1:(r.abbreviations||(r.abbreviations={}),void 0===r.abbreviations[":"+a]&&(r.abbreviations[":"+a]=c),i)}(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();s[t].content=r,r.length||(s[t-1].tight=!0,s[t+1].tight=!0)}}}],["references",function(e){var t,n,r,o,s=e.tokens;if(e.env.references=e.env.references||{},!e.inlineMode){for(t=1,n=s.length-1;t<n;t++)if("inline"===s[t].type&&"paragraph_open"===s[t-1].type&&"paragraph_close"===s[t+1].type){for(r=s[t].content;r.length&&!((o=function(e,t,n,r){var o,s,i,l,a,c,p,h,u;if(91!==e.charCodeAt(0)||-1===e.indexOf("]:")||(s=M(o=new A(e,t,n,r,[]),0))<0||58!==e.charCodeAt(s+1))return -1;for(l=o.posMax,i=s+2;i<l&&(32===(a=o.src.charCodeAt(i))||10===a);i++);if(!I(o,i))return -1;for(p=o.linkContent,c=i=o.pos,i+=1;i<l&&(32===(a=o.src.charCodeAt(i))||10===a);i++);for(i<l&&c!==i&&w(o,i)?(h=o.linkContent,i=o.pos):(h="",i=c);i<l&&32===o.src.charCodeAt(i);)i++;return i<l&&10!==o.src.charCodeAt(i)?-1:(u=E(e.slice(1,s)),void 0===r.references[u]&&(r.references[u]={title:h,href:p}),i)}(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();s[t].content=r,r.length||(s[t-1].tight=!0,s[t+1].tight=!0)}}}],["inline",function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.inline.parse(t.content,e.options,e.env,t.children)}],["footnote_tail",function(e){var t,n,r,o,s,i,l,a,c,p=0,h=!1,u={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(e){return"footnote_reference_open"===e.type?(h=!0,a=[],c=e.label,!1):"footnote_reference_close"===e.type?(h=!1,u[":"+c]=a,!1):(h&&a.push(e),!h)}),e.env.footnotes.list)){for(i=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:p++}),t=0,n=i.length;t<n;t++){for(e.tokens.push({type:"footnote_open",id:t,level:p++}),i[t].tokens?((l=[]).push({type:"paragraph_open",tight:!1,level:p++}),l.push({type:"inline",content:"",level:p,children:i[t].tokens}),l.push({type:"paragraph_close",tight:!1,level:--p})):i[t].label&&(l=u[":"+i[t].label]),e.tokens=e.tokens.concat(l),s="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,o=i[t].count>0?i[t].count:1,r=0;r<o;r++)e.tokens.push({type:"footnote_anchor",id:t,subId:r,level:p});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--p})}e.tokens.push({type:"footnote_block_close",level:--p})}}],["abbr2",function(e){var t,n,r,o,s,i,l,a,c,p,h,u,f=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(u="(^|["+z.split("").map(L).join("")+"])("+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,t){return t.length-e.length}).map(L).join("|")+")($|["+z.split("").map(L).join("")+"])",e.env.abbrRegExp=RegExp(u,"g")),p=e.env.abbrRegExp,n=0,r=f.length;n<r;n++)if("inline"===f[n].type){for(t=(o=f[n].children).length-1;t>=0;t--)if("text"===(s=o[t]).type){for(a=0,i=s.content,p.lastIndex=0,c=s.level,l=[];h=p.exec(i);)p.lastIndex>a&&l.push({type:"text",content:i.slice(a,h.index+h[1].length),level:c}),l.push({type:"abbr_open",title:e.env.abbreviations[":"+h[2]],level:c++}),l.push({type:"text",content:h[2],level:c}),l.push({type:"abbr_close",level:--c}),a=p.lastIndex-h[3].length;l.length&&(a<i.length&&l.push({type:"text",content:i.slice(a),level:c}),f[n].children=o=[].concat(o.slice(0,t),l,o.slice(t+1)))}}}}],["replacements",function(e){var t,n,r,o,s,i;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if("inline"===e.tokens[s].type)for(t=(o=e.tokens[s].children).length-1;t>=0;t--)"text"===(n=o[t]).type&&(r=0>(i=r=n.content).indexOf("(")?i:i.replace(T,function(e,t){return O[t.toLowerCase()]}),q.test(r)&&(r=r.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),n.content=r)}}],["smartquotes",function(e){var t,n,r,o,s,i,l,a,c,p,h,u,f,d,k,v,g;if(e.options.typographer){for(g=[],k=e.tokens.length-1;k>=0;k--)if("inline"===e.tokens[k].type){for(t=0,v=e.tokens[k].children,g.length=0;t<v.length;t++)if(!("text"!==(n=v[t]).type||$.test(n.text))){for(l=v[t].level,f=g.length-1;f>=0&&!(g[f].level<=l);f--);g.length=f+1,r=n.content,s=0,i=r.length;e:for(;s<i&&(N.lastIndex=s,o=N.exec(r));){if(a=!j(r,o.index-1),s=o.index+1,d="'"===o[0],!(c=!j(r,s))&&!a){d&&(n.content=Z(n.content,o.index,"’"));continue}if(h=!c,u=!a){for(f=g.length-1;f>=0&&(p=g[f],!(g[f].level<l));f--)if(p.single===d&&g[f].level===l){p=g[f],d?(v[p.token].content=Z(v[p.token].content,p.pos,e.options.quotes[2]),n.content=Z(n.content,o.index,e.options.quotes[3])):(v[p.token].content=Z(v[p.token].content,p.pos,e.options.quotes[0]),n.content=Z(n.content,o.index,e.options.quotes[1])),g.length=f;continue e}}h?g.push({token:t,pos:o.index,single:d,level:l}):u&&d&&(n.content=Z(n.content,o.index,"’"))}}}}}]];function U(){this.options={},this.ruler=new x;for(var e=0;e<P.length;e++)this.ruler.push(P[e][0],P[e][1])}function B(e,t,n,r,o){var s,i,l,a,c,p,h;for(this.src=e,this.parser=t,this.options=n,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",i=this.src,p=0,h=!1,l=a=p=0,c=i.length;a<c;a++){if(s=i.charCodeAt(a),!h){if(32===s){p++;continue}h=!0}(10===s||a===c-1)&&(10!==s&&a++,this.bMarks.push(l),this.eMarks.push(a),this.tShift.push(p),h=!1,p=0,l=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function G(e,t){var n,r,o;return(r=e.bMarks[t]+e.tShift[t])>=(o=e.eMarks[t])||42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<o&&32!==e.src.charCodeAt(r)?-1:r}function D(e,t){var n,r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(r+1>=o||(n=e.src.charCodeAt(r++))<48||n>57)return -1;for(;;){if(r>=o)return -1;if(!((n=e.src.charCodeAt(r++))>=48)||!(n<=57)){if(41===n||46===n)break;return -1}}return r<o&&32!==e.src.charCodeAt(r)?-1:r}U.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},B.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},B.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},B.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&32===this.src.charCodeAt(e);e++);return e},B.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},B.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},B.prototype.getLines=function(e,t,n,r){var o,s,i,l,a,c=e;if(e>=t)return"";if(c+1===t)return s=this.bMarks[c]+Math.min(this.tShift[c],n),i=r?this.eMarks[c]+1:this.eMarks[c],this.src.slice(s,i);for(o=0,l=Array(t-e);c<t;c++,o++)(a=this.tShift[c])>n&&(a=n),a<0&&(a=0),s=this.bMarks[c]+a,i=c+1<t||r?this.eMarks[c]+1:this.eMarks[c],l[o]=this.src.slice(s,i);return l.join("")};var H={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){H[e]=!0});var W=/^<([a-zA-Z]{1,15})[\s\/>]/,F=/^<\/([a-zA-Z]{1,15})[\s>]/;function J(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function K(e,t){var n,r,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return o>=s||126!==(r=e.src.charCodeAt(o++))&&58!==r?-1:(n=e.skipSpaces(o),o===n||n>=s)?-1:n}var Q=[["code",function(e,t,n){var r,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.tShift[r]-e.blkIndent>=4){o=++r;continue}break}return e.line=r,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,n,r){var o,s,i,l,a,c=!1,p=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(p+3>h||126!==(o=e.src.charCodeAt(p))&&96!==o||(a=p,(s=(p=e.skipChars(p,o))-a)<3||(i=e.src.slice(p,h).trim()).indexOf("`")>=0))return!1;if(r)return!0;for(l=t;!(++l>=n)&&(!((p=a=e.bMarks[l]+e.tShift[l])<(h=e.eMarks[l]))||!(e.tShift[l]<e.blkIndent));)if(!(e.src.charCodeAt(p)!==o||e.tShift[l]-e.blkIndent>=4||(p=e.skipChars(p,o))-a<s||(p=e.skipSpaces(p))<h)){c=!0;break}return s=e.tShift[t],e.line=l+(c?1:0),e.tokens.push({type:"fence",params:i,content:e.getLines(t+1,l,s,!0),lines:[t,e.line],level:e.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(e,t,n,r){var o,s,i,l,a,c,p,h,u,f,d,k=e.bMarks[t]+e.tShift[t],v=e.eMarks[t];if(k>v||62!==e.src.charCodeAt(k++)||e.level>=e.options.maxNesting)return!1;if(r)return!0;for(32===e.src.charCodeAt(k)&&k++,a=e.blkIndent,e.blkIndent=0,l=[e.bMarks[t]],e.bMarks[t]=k,s=(k=k<v?e.skipSpaces(k):k)>=v,i=[e.tShift[t]],e.tShift[t]=k-e.bMarks[t],h=e.parser.ruler.getRules("blockquote"),o=t+1;o<n&&!((k=e.bMarks[o]+e.tShift[o])>=(v=e.eMarks[o]));o++){if(62===e.src.charCodeAt(k++)){32===e.src.charCodeAt(k)&&k++,l.push(e.bMarks[o]),e.bMarks[o]=k,s=(k=k<v?e.skipSpaces(k):k)>=v,i.push(e.tShift[o]),e.tShift[o]=k-e.bMarks[o];continue}if(s)break;for(u=0,d=!1,f=h.length;u<f;u++)if(h[u](e,o,n,!0)){d=!0;break}if(d)break;l.push(e.bMarks[o]),i.push(e.tShift[o]),e.tShift[o]=-1337}for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:p=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,p[1]=e.line,u=0;u<i.length;u++)e.bMarks[u+t]=l[u],e.tShift[u+t]=i[u];return e.blkIndent=a,!0},["paragraph","blockquote","list"]],["hr",function(e,t,n,r){var o,s,i,l=e.bMarks[t],a=e.eMarks[t];if((l+=e.tShift[t])>a||42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(s=1;l<a;){if((i=e.src.charCodeAt(l++))!==o&&32!==i)return!1;i===o&&s++}return!(s<3)&&(!!r||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level}),!0))},["paragraph","blockquote","list"]],["list",function(e,t,n,r){var o,s,i,l,a,c,p,h,u,f,d,k,v,g,_,b,m,y,C,x,A,M=!0;if((h=D(e,t))>=0)k=!0;else{if(!((h=G(e,t))>=0))return!1;k=!1}if(e.level>=e.options.maxNesting)return!1;if(d=e.src.charCodeAt(h-1),r)return!0;for(g=e.tokens.length,k?(p=e.bMarks[t]+e.tShift[t],f=Number(e.src.substr(p,h-p-1)),e.tokens.push({type:"ordered_list_open",order:f,lines:b=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:b=[t,0],level:e.level++}),o=t,_=!1,y=e.parser.ruler.getRules("list");o<n&&((u=(v=e.skipSpaces(h))>=e.eMarks[o]?1:v-h)>4&&(u=1),u<1&&(u=1),s=h-e.bMarks[o]+u,e.tokens.push({type:"list_item_open",lines:m=[t,0],level:e.level++}),l=e.blkIndent,a=e.tight,i=e.tShift[t],c=e.parentType,e.tShift[t]=v-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,n,!0),(!e.tight||_)&&(M=!1),_=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=l,e.tShift[t]=i,e.tight=a,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,m[1]=o,v=e.bMarks[t],!(o>=n||e.isEmpty(o))&&!(e.tShift[o]<e.blkIndent));){for(C=0,A=!1,x=y.length;C<x;C++)if(y[C](e,o,n,!0)){A=!0;break}if(A)break;if(k){if((h=D(e,o))<0)break}else if((h=G(e,o))<0)break;if(d!==e.src.charCodeAt(h-1))break}return e.tokens.push({type:k?"ordered_list_close":"bullet_list_close",level:--e.level}),b[1]=o,e.line=o,M&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,g),!0},["paragraph","blockquote"]],["footnote",function(e,t,n,r){var o,s,i,l,a,c=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(c+4>p||91!==e.src.charCodeAt(c)||94!==e.src.charCodeAt(c+1)||e.level>=e.options.maxNesting)return!1;for(l=c+2;l<p;l++){if(32===e.src.charCodeAt(l))return!1;if(93===e.src.charCodeAt(l))break}return l!==c+2&&!(l+1>=p)&&58===e.src.charCodeAt(++l)&&(!!r||(l++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),a=e.src.slice(c+2,l-2),e.env.footnotes.refs[":"+a]=-1,e.tokens.push({type:"footnote_reference_open",label:a,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],i=e.parentType,e.tShift[t]=e.skipSpaces(l)-l,e.bMarks[t]=l,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,n,!0),e.parentType=i,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=o,e.tokens.push({type:"footnote_reference_close",level:--e.level}),!0))},["paragraph"]],["heading",function(e,t,n,r){var o,s,i,l=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(l>=a||35!==(o=e.src.charCodeAt(l))||l>=a)return!1;for(s=1,o=e.src.charCodeAt(++l);35===o&&l<a&&s<=6;)s++,o=e.src.charCodeAt(++l);return!(s>6)&&(!(l<a)||32===o)&&(!!r||(a=e.skipCharsBack(a,32,l),(i=e.skipCharsBack(a,35,l))>l&&32===e.src.charCodeAt(i-1)&&(a=i),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),l<a&&e.tokens.push({type:"inline",content:e.src.slice(l,a).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level}),!0))},["paragraph","blockquote"]],["lheading",function(e,t,n){var r,o,s,i=t+1;return!(i>=n)&&!(e.tShift[i]<e.blkIndent)&&!(e.tShift[i]-e.blkIndent>3)&&!((o=e.bMarks[i]+e.tShift[i])>=(s=e.eMarks[i]))&&(45===(r=e.src.charCodeAt(o))||61===r)&&(o=e.skipChars(o,r),!((o=e.skipSpaces(o))<s)&&(o=e.bMarks[t]+e.tShift[t],e.line=i+1,e.tokens.push({type:"heading_open",hLevel:61===r?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(o,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===r?1:2,level:e.level}),!0))}],["htmlblock",function(e,t,n,r){var o,s,i,l,a=e.bMarks[t],c=e.eMarks[t],p=e.tShift[t];if(a+=p,!e.options.html||p>3||a+2>=c||60!==e.src.charCodeAt(a))return!1;if(33===(s=e.src.charCodeAt(a+1))||63===s){if(r)return!0}else{if(47!==s&&(!((o=32|s)>=97)||!(o<=122)))return!1;if(47===s){if(!(i=e.src.slice(a,c).match(F)))return!1}else if(!(i=e.src.slice(a,c).match(W)))return!1;if(!0!==H[i[1].toLowerCase()])return!1;if(r)return!0}for(l=t+1;l<e.lineMax&&!e.isEmpty(l);)l++;return e.line=l,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,l,0,!0)}),!0},["paragraph","blockquote"]],["table",function(e,t,n,r){var o,s,i,l,a,c,p,h,u,f,d;if(t+2>n||(a=t+1,e.tShift[a]<e.blkIndent||(i=e.bMarks[a]+e.tShift[a])>=e.eMarks[a]||124!==(o=e.src.charCodeAt(i))&&45!==o&&58!==o)||(s=J(e,t+1),!/^[-:| ]+$/.test(s)||(c=s.split("|"))<=2))return!1;for(l=0,h=[];l<c.length;l++){if(!(u=c[l].trim())){if(0===l||l===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(u))return!1;58===u.charCodeAt(u.length-1)?h.push(58===u.charCodeAt(0)?"center":"right"):58===u.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(s=J(e,t).trim()).indexOf("|")||(c=s.replace(/^\||\|$/g,"").split("|"),h.length!==c.length))return!1;if(r)return!0;for(e.tokens.push({type:"table_open",lines:f=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),l=0;l<c.length;l++)e.tokens.push({type:"th_open",align:h[l],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:c[l].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:d=[t+2,0],level:e.level++}),a=t+2;a<n&&!(e.tShift[a]<e.blkIndent)&&-1!==(s=J(e,a).trim()).indexOf("|");a++){for(c=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),l=0;l<c.length;l++)e.tokens.push({type:"td_open",align:h[l],level:e.level++}),p=c[l].substring(124===c[l].charCodeAt(0)?1:0,124===c[l].charCodeAt(c[l].length-1)?c[l].length-1:c[l].length).trim(),e.tokens.push({type:"inline",content:p,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),f[1]=d[1]=a,e.line=a,!0},["paragraph"]],["deflist",function(e,t,n,r){var o,s,i,l,a,c,p,h,u,f,d,k,v,g;if(r)return!(e.ddIndent<0)&&K(e,t)>=0;if(p=t+1,e.isEmpty(p)&&++p>n||e.tShift[p]<e.blkIndent||(o=K(e,p))<0||e.level>=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:a=[t,0],level:e.level++}),i=t,s=p;e:for(;;){for(g=!0,v=!1,e.tokens.push({type:"dt_open",lines:[i,i],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(i,i+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[i,i],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:l=[p,0],level:e.level++}),k=e.tight,u=e.ddIndent,h=e.blkIndent,d=e.tShift[s],f=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=o-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,n,!0),(!e.tight||v)&&(g=!1),v=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=d,e.tight=k,e.parentType=f,e.blkIndent=h,e.ddIndent=u,e.tokens.push({type:"dd_close",level:--e.level}),l[1]=p=e.line,p>=n||e.tShift[p]<e.blkIndent)break e;if((o=K(e,p))<0)break;s=p}if(p>=n||(i=p,e.isEmpty(i)||e.tShift[i]<e.blkIndent||(s=i+1)>=n)||(e.isEmpty(s)&&s++,s>=n||e.tShift[s]<e.blkIndent||(o=K(e,s))<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),a[1]=p,e.line=p,g&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,c),!0},["paragraph"]],["paragraph",function(e,t){var n,r,o,s,i,l,a=t+1;if(a<(n=e.lineMax)&&!e.isEmpty(a)){for(l=e.parser.ruler.getRules("paragraph");a<n&&!e.isEmpty(a);a++)if(!(e.tShift[a]-e.blkIndent>3)){for(s=0,o=!1,i=l.length;s<i;s++)if(l[s](e,a,n,!0)){o=!0;break}if(o)break}}return r=e.getLines(t,a,e.blkIndent,!1).trim(),e.line=a,r.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:r,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}]];function V(){this.ruler=new x;for(var e=0;e<Q.length;e++)this.ruler.push(Q[e][0],Q[e][1],{alt:(Q[e][2]||[]).slice()})}V.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),s=o.length,i=t,l=!1;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n)&&!(e.tShift[i]<e.blkIndent));){for(r=0;r<s&&!o[r](e,i,n,!1);r++);if(e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),(i=e.line)<n&&e.isEmpty(i)){if(l=!0,++i<n&&"list"===e.parentType&&e.isEmpty(i))break;e.line=i}}};var X=/[\n\t]/g,Y=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,ee=/\u00a0/g;V.prototype.parse=function(e,t,n,r){var o,s=0,i=0;if(!e)return[];(e=(e=e.replace(ee," ")).replace(Y,"\n")).indexOf("	")>=0&&(e=e.replace(X,function(t,n){var r;return 10===e.charCodeAt(n)?(s=n+1,i=0,t):(r="    ".slice((n-s-i)%4),i=n-s+1,r)})),o=new B(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};for(var et=[],en=0;en<256;en++)et.push(0);function er(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function eo(e,t){var n,r,o,s=t,i=!0,l=!0,a=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;s<a&&e.src.charCodeAt(s)===c;)s++;return s>=a&&(i=!1),(o=s-t)>=4?i=l=!1:((32===(r=s<a?e.src.charCodeAt(s):-1)||10===r)&&(i=!1),(32===n||10===n)&&(l=!1),95===c&&(er(n)&&(i=!1),er(r)&&(l=!1))),{can_open:i,can_close:l,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){et[e.charCodeAt(0)]=1});var es=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,ei=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,el=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],ea=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,ec=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function ep(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var eh=ep(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),eu=ep(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",eh)(),ef=ep(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",eu)(),ed=ep(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",ef)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)(),ek=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,ev=/^&([a-z][a-z0-9]{1,31});/i,eg=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!function(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["newline",function(e,t){var n,r,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t){if(n>=0&&32===e.pending.charCodeAt(n)){if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var s=n-2;s>=0;s--)if(32!==e.pending.charCodeAt(s)){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level})}else e.push({type:"softbreak",level:e.level})}for(o++;o<r&&32===e.src.charCodeAt(o);)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<o){if((n=e.src.charCodeAt(r))<256&&0!==et[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push({type:"hardbreak",level:e.level}),r++;r<o&&32===e.src.charCodeAt(r);)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var n,r,o,s,i,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l<r&&96===e.src.charCodeAt(l);)l++;for(o=e.src.slice(n,l),s=i=l;-1!==(s=e.src.indexOf("`",i));){for(i=s+1;i<r&&96===e.src.charCodeAt(i);)i++;if(i-s===o.length)return t||e.push({type:"code",content:e.src.slice(l,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=i,!0}return t||(e.pending+=o),e.pos+=o.length,!0}],["del",function(e,t){var n,r,o,s,i,l=e.posMax,a=e.pos;if(126!==e.src.charCodeAt(a)||t||a+4>=l||126!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(s=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),126===s||126===i||32===i||10===i))return!1;for(r=a+2;r<l&&126===e.src.charCodeAt(r);)r++;if(r>a+3)return e.pos+=r-a,t||(e.pending+=e.src.slice(a,r)),!0;for(e.pos=a+2,o=1;e.pos+1<l;){if(126===e.src.charCodeAt(e.pos)&&126===e.src.charCodeAt(e.pos+1)&&(s=e.src.charCodeAt(e.pos-1),126!==(i=e.pos+2<l?e.src.charCodeAt(e.pos+2):-1)&&126!==s&&(32!==s&&10!==s?o--:32!==i&&10!==i&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=l,!0):(e.pos=a,!1)}],["ins",function(e,t){var n,r,o,s,i,l=e.posMax,a=e.pos;if(43!==e.src.charCodeAt(a)||t||a+4>=l||43!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(s=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),43===s||43===i||32===i||10===i))return!1;for(r=a+2;r<l&&43===e.src.charCodeAt(r);)r++;if(r!==a+2)return e.pos+=r-a,t||(e.pending+=e.src.slice(a,r)),!0;for(e.pos=a+2,o=1;e.pos+1<l;){if(43===e.src.charCodeAt(e.pos)&&43===e.src.charCodeAt(e.pos+1)&&(s=e.src.charCodeAt(e.pos-1),43!==(i=e.pos+2<l?e.src.charCodeAt(e.pos+2):-1)&&43!==s&&(32!==s&&10!==s?o--:32!==i&&10!==i&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=l,!0):(e.pos=a,!1)}],["mark",function(e,t){var n,r,o,s,i,l=e.posMax,a=e.pos;if(61!==e.src.charCodeAt(a)||t||a+4>=l||61!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(s=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),61===s||61===i||32===i||10===i))return!1;for(r=a+2;r<l&&61===e.src.charCodeAt(r);)r++;if(r!==a+2)return e.pos+=r-a,t||(e.pending+=e.src.slice(a,r)),!0;for(e.pos=a+2,o=1;e.pos+1<l;){if(61===e.src.charCodeAt(e.pos)&&61===e.src.charCodeAt(e.pos+1)&&(s=e.src.charCodeAt(e.pos-1),61!==(i=e.pos+2<l?e.src.charCodeAt(e.pos+2):-1)&&61!==s&&(32!==s&&10!==s?o--:32!==i&&10!==i&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=l,!0):(e.pos=a,!1)}],["emphasis",function(e,t){var n,r,o,s,i,l,a,c=e.posMax,p=e.pos,h=e.src.charCodeAt(p);if(95!==h&&42!==h||t)return!1;if(n=(a=eo(e,p)).delims,!a.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(p,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=p+n,l=[n];e.pos<c;){if(e.src.charCodeAt(e.pos)===h){if(r=(a=eo(e,e.pos)).delims,a.can_close){for(s=l.pop(),i=r;s!==i;){if(i<s){l.push(s-i);break}if(i-=s,0===l.length)break;e.pos+=s,s=l.pop()}if(0===l.length){n=s,o=!0;break}e.pos+=r;continue}a.can_open&&l.push(r),e.pos+=r;continue}e.parser.skipToken(e)}return o?(e.posMax=e.pos,e.pos=p+n,t||((2===n||3===n)&&e.push({type:"strong_open",level:e.level++}),(1===n||3===n)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(1===n||3===n)&&e.push({type:"em_close",level:--e.level}),(2===n||3===n)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+n,e.posMax=c,!0):(e.pos=p,!1)}],["sub",function(e,t){var n,r,o=e.posMax,s=e.pos;if(126!==e.src.charCodeAt(s)||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(126===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return!n||s+1===e.pos||(r=e.src.slice(s+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:r.replace(es,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}],["sup",function(e,t){var n,r,o=e.posMax,s=e.pos;if(94!==e.src.charCodeAt(s)||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(94===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return!n||s+1===e.pos||(r=e.src.slice(s+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:r.replace(ei,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}],["links",function(e,t){var n,r,o,s,i,l,a,c,p=!1,h=e.pos,u=e.posMax,f=e.pos,d=e.src.charCodeAt(f);if(33===d&&(p=!0,d=e.src.charCodeAt(++f)),91!==d||e.level>=e.options.maxNesting||(n=f+1,(r=M(e,f))<0))return!1;if((l=r+1)<u&&40===e.src.charCodeAt(l)){for(l++;l<u&&(32===(c=e.src.charCodeAt(l))||10===c);l++);if(l>=u)return!1;for(f=l,I(e,l)?(s=e.linkContent,l=e.pos):s="",f=l;l<u&&(32===(c=e.src.charCodeAt(l))||10===c);l++);if(l<u&&f!==l&&w(e,l))for(i=e.linkContent,l=e.pos;l<u&&(32===(c=e.src.charCodeAt(l))||10===c);l++);else i="";if(l>=u||41!==e.src.charCodeAt(l))return e.pos=h,!1;l++}else{if(e.linkLevel>0)return!1;for(;l<u&&(32===(c=e.src.charCodeAt(l))||10===c);l++);if(l<u&&91===e.src.charCodeAt(l)&&(f=l+1,(l=M(e,l))>=0?o=e.src.slice(f,l++):l=f-1),o||(void 0===o&&(l=r+1),o=e.src.slice(n,r)),!(a=e.env.references[E(o)]))return e.pos=h,!1;s=a.href,i=a.title}return t||(e.pos=n,e.posMax=r,p?e.push({type:"image",src:s,title:i,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:"link_open",href:s,title:i,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=l,e.posMax=u,!0}],["footnote_inline",function(e,t){var n,r,o,s,i=e.posMax,l=e.pos;return!(l+2>=i)&&94===e.src.charCodeAt(l)&&91===e.src.charCodeAt(l+1)&&!(e.level>=e.options.maxNesting)&&(n=l+2,!((r=M(e,l+1))<0)&&(!t&&(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=r,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=r+1,e.posMax=i,!0))}],["footnote_ref",function(e,t){var n,r,o,s,i=e.posMax,l=e.pos;if(l+3>i||!e.env.footnotes||!e.env.footnotes.refs||91!==e.src.charCodeAt(l)||94!==e.src.charCodeAt(l+1)||e.level>=e.options.maxNesting)return!1;for(r=l+2;r<i;r++){if(32===e.src.charCodeAt(r)||10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return r!==l+2&&!(r>=i)&&(r++,n=e.src.slice(l+2,r-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=r,e.posMax=i,!0))}],["autolink",function(e,t){var n,r,o,s,i,l=e.pos;return!(60!==e.src.charCodeAt(l)||0>(n=e.src.slice(l)).indexOf(">"))&&((r=n.match(ec))?!(0>el.indexOf(r[1].toLowerCase()))&&(i=S(s=r[0].slice(1,-1)),!!e.parser.validateLink(s)&&(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=r[0].length,!0)):!!(o=n.match(ea))&&(i=S("mailto:"+(s=o[0].slice(1,-1))),!!e.parser.validateLink(i)&&(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0)))}],["htmltag",function(e,t){var n,r,o,s,i=e.pos;return!!e.options.html&&(s=e.posMax,60===e.src.charCodeAt(i)&&!(i+2>=s))&&!!((33===(r=e.src.charCodeAt(i+1))||63===r||47===r||(n=32|r)>=97&&n<=122)&&(o=e.src.slice(i).match(ed)))&&(t||e.push({type:"htmltag",content:e.src.slice(i,i+o[0].length),level:e.level}),e.pos+=o[0].length,!0)}],["entity",function(e,t){var n,o,s=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(s))return!1;if(s+1<i){if(35===e.src.charCodeAt(s+1)){if(o=e.src.slice(s).match(ek))return t||(n="x"===o[1][0].toLowerCase()?parseInt(o[1].slice(1),16):parseInt(o[1],10),e.pending+=c(n)?p(n):p(65533)),e.pos+=o[0].length,!0}else if(o=e.src.slice(s).match(ev)){var l=r(o[1]);if(o[1]!==l)return t||(e.pending+=l),e.pos+=o[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}]];function e_(){this.ruler=new x;for(var e=0;e<eg.length;e++)this.ruler.push(eg[e][0],eg[e][1]);this.validateLink=eb}function eb(e){var t=e.trim().toLowerCase();return -1===(t=d(t)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(t.split(":")[0])}e_.prototype.skipToken=function(e){var t,n,r=this.ruler.getRules(""),o=r.length,s=e.pos;if((n=e.cacheGet(s))>0){e.pos=n;return}for(t=0;t<o;t++)if(r[t](e,!0)){e.cacheSet(s,e.pos);return}e.pos++,e.cacheSet(s,e.pos)},e_.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,s=e.posMax;e.pos<s;){for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=s)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},e_.prototype.parse=function(e,t,n,r){var o=new A(e,this,t,n,r);this.tokenize(o)};var em={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function ey(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function eC(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new e_,this.block=new V,this.core=new U,this.renderer=new C,this.ruler=new x,this.options={},this.configure(em[e]),this.set(t||{})}eC.prototype.set=function(e){i(this.options,e)},eC.prototype.configure=function(e){var t=this;if(!e)throw Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})},eC.prototype.use=function(e,t){return e(this,t),this},eC.prototype.parse=function(e,t){var n=new ey(this,e,t);return this.core.process(n),n.tokens},eC.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},eC.prototype.parseInline=function(e,t){var n=new ey(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},eC.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}}}]);