(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{94184:function(e,t){var n;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t?@[\]^_`{|}~-])/g;function unescapeMd(e){return 0>e.indexOf("\\")?e:e.replace(o,"$1")}function isValidEntityCode(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 fromCodePoint(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}var i=/&([a-z#][a-z0-9]{1,31});/gi,l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function replaceEntityPattern(e,t){var n=0,r=decodeEntity(t);return t!==r?r:35===t.charCodeAt(0)&&l.test(t)&&isValidEntityCode(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?fromCodePoint(n):e}function replaceEntities(e){return 0>e.indexOf("&")?e:e.replace(i,replaceEntityPattern)}var a=/[&<>"]/,c=/[&<>"]/g,p={"&":"&","<":"<",">":">",'"':"""};function replaceUnsafeChar(e){return p[e]}function escapeHtml(e){return a.test(e)?e.replace(c,replaceUnsafeChar):e}var h={};h.blockquote_open=function(){return"
\n"},h.blockquote_close=function(e,t){return"
"+u(e,t)},h.code=function(e,t){return e[t].block?"
"+escapeHtml(e[t].content)+"
"+u(e,t):""+escapeHtml(e[t].content)+""},h.fence=function(e,t,n,r,o){var i,l,a,c,p=e[t],h="",f=n.langPrefix;if(p.params){if(c=(a=p.params.split(/\s+/g)).join(" "),i=o.rules.fence_custom,l=a[0],i&&s.call(i,l))return o.rules.fence_custom[a[0]](e,t,n,r,o);h=' class="'+f+escapeHtml(replaceEntities(unescapeMd(c)))+'"'}return"
"+(n.highlight&&n.highlight.apply(n.highlight,[p.content].concat(a))||escapeHtml(p.content))+"
"+u(e,t)},h.fence_custom={},h.heading_open=function(e,t){return""},h.heading_close=function(e,t){return"\n"},h.hr=function(e,t,n){return(n.xhtmlOut?"
":"
")+u(e,t)},h.bullet_list_open=function(){return""+u(e,t)},h.list_item_open=function(){return"
  • "},h.list_item_close=function(){return"
  • \n"},h.ordered_list_open=function(e,t){var n=e[t];return"1?' start="'+n.order+'"':"")+">\n"},h.ordered_list_close=function(e,t){return""+u(e,t)},h.paragraph_open=function(e,t){return e[t].tight?"":"

    "},h.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"

    ")+(n?u(e,t):"")},h.link_open=function(e,t,n){var r=e[t].title?' title="'+escapeHtml(replaceEntities(e[t].title))+'"':"",s=n.linkTarget?' target="'+n.linkTarget+'"':"";return'"},h.link_close=function(){return""},h.image=function(e,t,n){var r=' src="'+escapeHtml(e[t].src)+'"',s=e[t].title?' title="'+escapeHtml(replaceEntities(e[t].title))+'"':"";return""},h.table_open=function(){return"\n"},h.table_close=function(){return"
    \n"},h.thead_open=function(){return"\n"},h.thead_close=function(){return"\n"},h.tbody_open=function(){return"\n"},h.tbody_close=function(){return"\n"},h.tr_open=function(){return""},h.tr_close=function(){return"\n"},h.th_open=function(e,t){var n=e[t];return""},h.th_close=function(){return""},h.td_open=function(e,t){var n=e[t];return""},h.td_close=function(){return""},h.strong_open=function(){return""},h.strong_close=function(){return""},h.em_open=function(){return""},h.em_close=function(){return""},h.del_open=function(){return""},h.del_close=function(){return""},h.ins_open=function(){return""},h.ins_close=function(){return""},h.mark_open=function(){return""},h.mark_close=function(){return""},h.sub=function(e,t){return""+escapeHtml(e[t].content)+""},h.sup=function(e,t){return""+escapeHtml(e[t].content)+""},h.hardbreak=function(e,t,n){return n.xhtmlOut?"
    \n":"
    \n"},h.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
    \n":"
    \n":"\n"},h.text=function(e,t){return escapeHtml(e[t].content)},h.htmlblock=function(e,t){return e[t].content},h.htmltag=function(e,t){return e[t].content},h.abbr_open=function(e,t){return''},h.abbr_close=function(){return""},h.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),'['+n+"]"},h.footnote_block_open=function(e,t,n){return(n.xhtmlOut?'
    \n':'
    \n')+'
    \n
      \n'},h.footnote_block_close=function(){return"
    \n
    \n"},h.footnote_open=function(e,t){return'
  • '},h.footnote_close=function(){return"
  • \n"},h.footnote_anchor=function(e,t){var n="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=":"+e[t].subId),' '},h.dl_open=function(){return"
    \n"},h.dt_open=function(){return"
    "},h.dd_open=function(){return"
    "},h.dl_close=function(){return"
    \n"},h.dt_close=function(){return"\n"},h.dd_close=function(){return"\n"};var u=h.getBreak=function(e,t){return(t=function nextToken(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?nextToken(e,t+2):t}(e,t))1||41===n&&--r<0)break;t++}return o!==t&&(s=unescapeMd(e.src.slice(o,t)),!!e.parser.validateLink(s)&&(e.linkContent=s,e.pos=t,!0))}function parseLinkTitle(e,t){var n,r=t,s=e.posMax,o=e.src.charCodeAt(t);if(34!==o&&39!==o&&40!==o)return!1;for(t++,40===o&&(o=41);tt.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)})})},Ruler.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},Ruler.prototype.before=function(e,t,n,r){var s=this.__find__(e);if(-1===s)throw Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},Ruler.prototype.after=function(e,t,n,r){var s=this.__find__(e);if(-1===s)throw Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},Ruler.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},Ruler.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},Ruler.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},Ruler.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},StateInline.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},StateInline.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},StateInline.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},StateInline.prototype.cacheGet=function(e){return e=e.length)&&!_.test(e[t])}function replaceAt(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var m=[["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,s,o=e.tokens;if(!e.inlineMode){for(t=1,n=o.length-1;t0?i[t].count:1,r=0;r=0;t--)if("text"===(o=s[t]).type){for(a=0,i=o.content,p.lastIndex=0,c=o.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=0;o--)if("inline"===e.tokens[o].type)for(t=(s=e.tokens[o].children).length-1;t>=0;t--)"text"===(n=s[t]).type&&(r=0>(i=r=n.content).indexOf("(")?i:i.replace(k,function(e,t){return v[t.toLowerCase()]}),d.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,s,o,i,l,a,c,p,h,u,f,d,k,v,_;if(e.options.typographer){for(_=[],k=e.tokens.length-1;k>=0;k--)if("inline"===e.tokens[k].type){for(t=0,v=e.tokens[k].children,_.length=0;t=0&&!(_[f].level<=l);f--);_.length=f+1,r=n.content,o=0,i=r.length;e:for(;o=0&&(p=_[f],!(_[f].level=(s=e.eMarks[t])||42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r=s||(n=e.src.charCodeAt(r++))<48||n>57)return-1;for(;;){if(r>=s)return-1;if(!((n=e.src.charCodeAt(r++))>=48)||!(n<=57)){if(41===n||46===n)break;return-1}}return r=this.eMarks[e]},StateBlock.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},StateBlock.prototype.getLines=function(e,t,n,r){var s,o,i,l,a,c=e;if(e>=t)return"";if(c+1===t)return o=this.bMarks[c]+Math.min(this.tShift[c],n),i=r?this.eMarks[c]+1:this.eMarks[c],this.src.slice(o,i);for(s=0,l=Array(t-e);cn&&(a=n),a<0&&(a=0),o=this.bMarks[c]+a,i=c+1]/,x=/^<\/([a-zA-Z]{1,15})[\s>]/;function getLine(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function skipMarker(e,t){var n,r,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return s>=o||126!==(r=e.src.charCodeAt(s++))&&58!==r?-1:(n=e.skipSpaces(s),s===n||n>=o)?-1:n}var A=[["code",function(e,t,n){var r,s;if(e.tShift[t]-e.blkIndent<4)return!1;for(s=r=t+1;r=4){s=++r;continue}break}return e.line=r,e.tokens.push({type:"code",content:e.getLines(t,s,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,n,r){var s,o,i,l,a,c=!1,p=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(p+3>h||126!==(s=e.src.charCodeAt(p))&&96!==s||(a=p,(o=(p=e.skipChars(p,s))-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]=4||(p=e.skipChars(p,s))-av||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,o=(k=k=v,i=[e.tShift[t]],e.tShift[t]=k-e.bMarks[t],h=e.parser.ruler.getRules("blockquote"),s=t+1;s=(v=e.eMarks[s]));s++){if(62===e.src.charCodeAt(k++)){32===e.src.charCodeAt(k)&&k++,l.push(e.bMarks[s]),e.bMarks[s]=k,o=(k=k=v,i.push(e.tShift[s]),e.tShift[s]=k-e.bMarks[s];continue}if(o)break;for(u=0,d=!1,f=h.length;ua||42!==(s=e.src.charCodeAt(l++))&&45!==s&&95!==s)return!1;for(o=1;l=0)k=!0;else{if(!((h=skipBulletListMarker(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:_=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:_=[t,0],level:e.level++}),s=t,b=!1,y=e.parser.ruler.getRules("list");s=e.eMarks[s]?1:v-h)>4&&(u=1),u<1&&(u=1),o=h-e.bMarks[s]+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=o,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,n,!0),(!e.tight||b)&&(M=!1),b=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}),s=t=e.line,m[1]=s,v=e.bMarks[t],!(s>=n||e.isEmpty(s))&&!(e.tShift[s]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)&&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++}),s=e.bMarks[t],o=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]=a||35!==(s=e.src.charCodeAt(l))||l>=a)return!1;for(o=1,s=e.src.charCodeAt(++l);35===s&&l6)&&(!(ll&&32===e.src.charCodeAt(i-1)&&(a=i),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:o,lines:[t,e.line],level:e.level}),l=n)&&!(e.tShift[i]3)&&!((s=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))&&(45===(r=e.src.charCodeAt(s))||61===r)&&(s=e.skipChars(s,r),!((s=e.skipSpaces(s))3||a+2>=c||60!==e.src.charCodeAt(a))return!1;if(33===(o=e.src.charCodeAt(a+1))||63===o){if(r)return!0}else{if(47!==o&&(!((s=32|o)>=97)||!(s<=122)))return!1;if(47===o){if(!(i=e.src.slice(a,c).match(x)))return!1}else if(!(i=e.src.slice(a,c).match(C)))return!1;if(!0!==y[i[1].toLowerCase()])return!1;if(r)return!0}for(l=t+1;ln||(a=t+1,e.tShift[a]=e.eMarks[a]||124!==(s=e.src.charCodeAt(i))&&45!==s&&58!==s)||(o=getLine(e,t+1),!/^[-:| ]+$/.test(o)||(c=o.split("|"))<=2))return!1;for(l=0,h=[];l=0;if(p=t+1,e.isEmpty(p)&&++p>n||e.tShift[p]=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:a=[t,0],level:e.level++}),i=t,o=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[o],f=e.parentType,e.blkIndent=e.ddIndent=e.tShift[o]+2,e.tShift[o]=s-e.bMarks[o],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,o,n,!0),(!e.tight||v)&&(g=!1),v=e.line-o>1&&e.isEmpty(e.line-1),e.tShift[o]=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]=n||(i=p,e.isEmpty(i)||e.tShift[i]=n)||(e.isEmpty(o)&&o++,o>=n||e.tShift[o]3)){for(o=0,s=!1,i=l.length;o=n)&&!(e.tShift[i]=0&&(e=e.replace(M,function(t,n){var r;return 10===e.charCodeAt(n)?(o=n+1,i=0,t):(r=" ".slice((n-o-i)%4),i=n-o+1,r)})),s=new StateBlock(e,this,t,n,r),this.tokenize(s,s.line,s.lineMax)};for(var L=[],E=0;E<256;E++)L.push(0);function isAlphaNum(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function scanDelims(e,t){var n,r,s,o=t,i=!0,l=!0,a=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;o=a&&(i=!1),(s=o-t)>=4?i=l=!1:((32===(r=o?@[]^_`{|}~-".split("").forEach(function(e){L[e.charCodeAt(0)]=1});var R=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,w=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,z=["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"],q=/^<([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])?)*)>/,T=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function replace$1(e,t){return e=e.source,t=t||"",function self(n,r){return n?(r=r.source||r,e=e.replace(n,r),self):new RegExp(e,t)}}var O=replace$1(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),$=replace$1(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",O)(),N=replace$1(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",$)(),P=replace$1(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",N)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)(),B=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,j=/^&([a-z][a-z0-9]{1,31});/i,Z=[["text",function(e,t){for(var n=e.pos;n=0&&32===e.pending.charCodeAt(n)){if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var o=n-2;o>=0;o--)if(32!==e.pending.charCodeAt(o)){e.pending=e.pending.substring(0,o+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(s++;s=l||126!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),126===o||126===i||32===i||10===i))return!1;for(r=a+2;ra+3)return e.pos+=r-a,t||(e.pending+=e.src.slice(a,r)),!0;for(e.pos=a+2,s=1;e.pos+1=l||43!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),43===o||43===i||32===i||10===i))return!1;for(r=a+2;r=l||61!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,i=e.src.charCodeAt(a+2),61===o||61===i||32===i||10===i))return!1;for(r=a+2;r=e.options.maxNesting)return!1;for(e.pos=p+n,l=[n];e.pos=s||e.level>=e.options.maxNesting)return!1;for(e.pos=o+1;e.pos=s||e.level>=e.options.maxNesting)return!1;for(e.pos=o+1;e.pos=e.options.maxNesting||(n=f+1,(r=parseLinkLabel(e,f))<0))return!1;if((l=r+1)=u)return!1;for(f=l,parseLinkDestination(e,l)?(o=e.linkContent,l=e.pos):o="",f=l;l=u||41!==e.src.charCodeAt(l))return e.pos=h,!1;l++}else{if(e.linkLevel>0)return!1;for(;l=0?s=e.src.slice(f,l++):l=f-1),s||(void 0===s&&(l=r+1),s=e.src.slice(n,r)),!(a=e.env.references[normalizeReference(s)]))return e.pos=h,!1;o=a.href,i=a.title}return t||(e.pos=n,e.posMax=r,p?e.push({type:"image",src:o,title:i,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:"link_open",href:o,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,s,o,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=parseLinkLabel(e,l+1))<0)&&(!t&&(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),s=e.env.footnotes.list.length,e.pos=n,e.posMax=r,e.push({type:"footnote_ref",id:s,level:e.level}),e.linkLevel++,o=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[s]={tokens:e.tokens.splice(o)},e.linkLevel--),e.pos=r+1,e.posMax=i,!0))}],["footnote_ref",function(e,t){var n,r,s,o,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++,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?(s=e.env.footnotes.list.length,e.env.footnotes.list[s]={label:n,count:0},e.env.footnotes.refs[":"+n]=s):s=e.env.footnotes.refs[":"+n],o=e.env.footnotes.list[s].count,e.env.footnotes.list[s].count++,e.push({type:"footnote_ref",id:s,subId:o,level:e.level})),e.pos=r,e.posMax=i,!0))}],["autolink",function(e,t){var n,r,s,o,i,l=e.pos;return!(60!==e.src.charCodeAt(l)||0>(n=e.src.slice(l)).indexOf(">"))&&((r=n.match(T))?!(0>z.indexOf(r[1].toLowerCase()))&&(i=normalizeLink(o=r[0].slice(1,-1)),!!e.parser.validateLink(o)&&(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:o,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=r[0].length,!0)):!!(s=n.match(q))&&(i=normalizeLink("mailto:"+(o=s[0].slice(1,-1))),!!e.parser.validateLink(i)&&(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:o,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=s[0].length,!0)))}],["htmltag",function(e,t){var n,r,s,o,i=e.pos;return!!e.options.html&&(o=e.posMax,60===e.src.charCodeAt(i)&&!(i+2>=o))&&!!((33===(r=e.src.charCodeAt(i+1))||63===r||47===r||(n=32|r)>=97&&n<=122)&&(s=e.src.slice(i).match(P)))&&(t||e.push({type:"htmltag",content:e.src.slice(i,i+s[0].length),level:e.level}),e.pos+=s[0].length,!0)}],["entity",function(e,t){var n,r,s=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(s))return!1;if(s+10){e.pos=n;return}for(t=0;t=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},ParserInline.prototype.parse=function(e,t,n,r){var s=new StateInline(e,this,t,n,r);this.tokenize(s)};var H={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 StateCore(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 Remarkable(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 ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.ruler=new Ruler,this.options={},this.configure(H[e]),this.set(t||{})}Remarkable.prototype.set=function(e){assign(this.options,e)},Remarkable.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)})},Remarkable.prototype.use=function(e,t){return e(this,t),this},Remarkable.prototype.parse=function(e,t){var n=new StateCore(this,e,t);return this.core.process(n),n.tokens},Remarkable.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Remarkable.prototype.parseInline=function(e,t){var n=new StateCore(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Remarkable.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}}}]);