import{r as Ue}from"./entities.0d2c0164.js";import{u as We,c as Qe}from"./uc.micro.981ceb7b.js";import{m as De}from"./mdurl.ef76b4dc.js";import{l as Ve}from"./linkify-it.92c30060.js";import{n as Je}from"./@babel.6cd0804c.js";var E={},Fe=Ue;(function(n){function e(d){return Object.prototype.toString.call(d)}function r(d){return e(d)==="[object String]"}var i=Object.prototype.hasOwnProperty;function l(d,w){return i.call(d,w)}function o(d){var w=Array.prototype.slice.call(arguments,1);return w.forEach(function(y){if(!!y){if(typeof y!="object")throw new TypeError(y+"must be object");Object.keys(y).forEach(function(O){d[O]=y[O]})}}),d}function t(d,w,y){return[].concat(d.slice(0,w),y,d.slice(w+1))}function c(d){return!(d>=55296&&d<=57343||d>=64976&&d<=65007||(d&65535)===65535||(d&65535)===65534||d>=0&&d<=8||d===11||d>=14&&d<=31||d>=127&&d<=159||d>1114111)}function f(d){if(d>65535){d-=65536;var w=55296+(d>>10),y=56320+(d&1023);return String.fromCharCode(w,y)}return String.fromCharCode(d)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(u.source+"|"+s.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,a=Fe;function x(d,w){var y=0;return l(a,w)?a[w]:w.charCodeAt(0)===35&&h.test(w)&&(y=w[1].toLowerCase()==="x"?parseInt(w.slice(2),16):parseInt(w.slice(1),10),c(y))?f(y):d}function g(d){return d.indexOf("\\")<0?d:d.replace(u,"$1")}function b(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(p,function(w,y,O){return y||x(w,O)})}var _=/[&<>"]/,k=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function C(d){return v[d]}function S(d){return _.test(d)?d.replace(k,C):d}var m=/[.?*+^$[\]\\(){}|-]/g;function M(d){return d.replace(m,"\\$&")}function I(d){switch(d){case 9:case 32:return!0}return!1}function B(d){if(d>=8192&&d<=8202)return!0;switch(d){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var A=Qe;function T(d){return A.test(d)}function H(d){switch(d){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function q(d){return d=d.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(d=d.replace(/ẞ/g,"\xDF")),d.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=De,n.lib.ucmicro=We,n.assign=o,n.isString=r,n.has=l,n.unescapeMd=g,n.unescapeAll=b,n.isValidEntityCode=c,n.fromCodePoint=f,n.escapeHtml=S,n.arrayReplaceAt=t,n.isSpace=I,n.isWhiteSpace=B,n.isMdAsciiPunct=H,n.isPunctChar=T,n.escapeRE=M,n.normalizeReference=q})(E);var J={},Ye=function(e,r,i){var l,o,t,c,f=-1,u=e.posMax,s=e.pos;for(e.pos=r+1,l=1;e.pos<u;){if(t=e.src.charCodeAt(e.pos),t===93&&(l--,l===0)){o=!0;break}if(c=e.pos,e.md.inline.skipToken(e),t===91){if(c===e.pos-1)l++;else if(i)return e.pos=s,-1}}return o&&(f=e.pos),e.pos=s,f},ke=E.unescapeAll,Ke=function(e,r,i){var l,o,t=0,c=r,f={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<i;){if(l=e.charCodeAt(r),l===10||l===60)return f;if(l===62)return f.pos=r+1,f.str=ke(e.slice(c+1,r)),f.ok=!0,f;if(l===92&&r+1<i){r+=2;continue}r++}return f}for(o=0;r<i&&(l=e.charCodeAt(r),!(l===32||l<32||l===127));){if(l===92&&r+1<i){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(l===40&&(o++,o>32))return f;if(l===41){if(o===0)break;o--}r++}return c===r||o!==0||(f.str=ke(e.slice(c,r)),f.lines=t,f.pos=r,f.ok=!0),f},Xe=E.unescapeAll,er=function(e,r,i){var l,o,t=0,c=r,f={ok:!1,pos:0,lines:0,str:""};if(r>=i||(o=e.charCodeAt(r),o!==34&&o!==39&&o!==40))return f;for(r++,o===40&&(o=41);r<i;){if(l=e.charCodeAt(r),l===o)return f.pos=r+1,f.lines=t,f.str=Xe(e.slice(c+1,r)),f.ok=!0,f;if(l===40&&o===41)return f;l===10?t++:l===92&&r+1<i&&(r++,e.charCodeAt(r)===10&&t++),r++}return f};J.parseLinkLabel=Ye;J.parseLinkDestination=Ke;J.parseLinkTitle=er;var rr=E.assign,nr=E.unescapeAll,F=E.escapeHtml,$={};$.code_inline=function(n,e,r,i,l){var o=n[e];return"<code"+l.renderAttrs(o)+">"+F(n[e].content)+"</code>"};$.code_block=function(n,e,r,i,l){var o=n[e];return"<pre"+l.renderAttrs(o)+"><code>"+F(n[e].content)+`</code></pre>
`};$.fence=function(n,e,r,i,l){var o=n[e],t=o.info?nr(o.info).trim():"",c="",f="",u,s,p,h,a;return t&&(p=t.split(/(\s+)/g),c=p[0],f=p.slice(2).join("")),r.highlight?u=r.highlight(o.content,c,f)||F(o.content):u=F(o.content),u.indexOf("<pre")===0?u+`
`:t?(s=o.attrIndex("class"),h=o.attrs?o.attrs.slice():[],s<0?h.push(["class",r.langPrefix+c]):(h[s]=h[s].slice(),h[s][1]+=" "+r.langPrefix+c),a={attrs:h},"<pre><code"+l.renderAttrs(a)+">"+u+`</code></pre>
`):"<pre><code"+l.renderAttrs(o)+">"+u+`</code></pre>
`};$.image=function(n,e,r,i,l){var o=n[e];return o.attrs[o.attrIndex("alt")][1]=l.renderInlineAsText(o.children,r,i),l.renderToken(n,e,r)};$.hardbreak=function(n,e,r){return r.xhtmlOut?`<br />
`:`<br>
`};$.softbreak=function(n,e,r){return r.breaks?r.xhtmlOut?`<br />
`:`<br>
`:`
`};$.text=function(n,e){return F(n[e].content)};$.html_block=function(n,e){return n[e].content};$.html_inline=function(n,e){return n[e].content};function N(){this.rules=rr({},$)}N.prototype.renderAttrs=function(e){var r,i,l;if(!e.attrs)return"";for(l="",r=0,i=e.attrs.length;r<i;r++)l+=" "+F(e.attrs[r][0])+'="'+F(e.attrs[r][1])+'"';return l};N.prototype.renderToken=function(e,r,i){var l,o="",t=!1,c=e[r];return c.hidden?"":(c.block&&c.nesting!==-1&&r&&e[r-1].hidden&&(o+=`
`),o+=(c.nesting===-1?"</":"<")+c.tag,o+=this.renderAttrs(c),c.nesting===0&&i.xhtmlOut&&(o+=" /"),c.block&&(t=!0,c.nesting===1&&r+1<e.length&&(l=e[r+1],(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===c.tag)&&(t=!1))),o+=t?`>
`:">",o)};N.prototype.renderInline=function(n,e,r){for(var i,l="",o=this.rules,t=0,c=n.length;t<c;t++)i=n[t].type,typeof o[i]!="undefined"?l+=o[i](n,t,e,r,this):l+=this.renderToken(n,t,e);return l};N.prototype.renderInlineAsText=function(n,e,r){for(var i="",l=0,o=n.length;l<o;l++)n[l].type==="text"?i+=n[l].content:n[l].type==="image"?i+=this.renderInlineAsText(n[l].children,e,r):n[l].type==="softbreak"&&(i+=`
`);return i};N.prototype.render=function(n,e,r){var i,l,o,t="",c=this.rules;for(i=0,l=n.length;i<l;i++)o=n[i].type,o==="inline"?t+=this.renderInline(n[i].children,e,r):typeof c[o]!="undefined"?t+=c[n[i].type](n,i,e,r,this):t+=this.renderToken(n,i,e,r);return t};var ir=N;function P(){this.__rules__=[],this.__cache__=null}P.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};P.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(r){!r.enabled||r.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),n.__cache__={},e.forEach(function(r){n.__cache__[r]=[],n.__rules__.forEach(function(i){!i.enabled||r&&i.alt.indexOf(r)<0||n.__cache__[r].push(i.fn)})})};P.prototype.at=function(n,e,r){var i=this.__find__(n),l=r||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__[i].fn=e,this.__rules__[i].alt=l.alt||[],this.__cache__=null};P.prototype.before=function(n,e,r,i){var l=this.__find__(n),o=i||{};if(l===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(l,0,{name:e,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};P.prototype.after=function(n,e,r,i){var l=this.__find__(n),o=i||{};if(l===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(l+1,0,{name:e,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};P.prototype.push=function(n,e,r){var i=r||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};P.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(i){var l=this.__find__(i);if(l<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[l].enabled=!0,r.push(i)},this),this.__cache__=null,r};P.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(n,e)};P.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(i){var l=this.__find__(i);if(l<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[l].enabled=!1,r.push(i)},this),this.__cache__=null,r};P.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var ue=P,or=/\r\n?|\n/g,lr=/\0/g,tr=function(e){var r;r=e.src.replace(or,`
`),r=r.replace(lr,"\uFFFD"),e.src=r},fr=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},cr=function(e){var r=e.tokens,i,l,o;for(l=0,o=r.length;l<o;l++)i=r[l],i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)},ur=E.arrayReplaceAt;function sr(n){return/^<a[>\s]/i.test(n)}function ar(n){return/^<\/a\s*>/i.test(n)}var hr=function(e){var r,i,l,o,t,c,f,u,s,p,h,a,x,g,b,_,k=e.tokens,v;if(!!e.md.options.linkify){for(i=0,l=k.length;i<l;i++)if(!(k[i].type!=="inline"||!e.md.linkify.pretest(k[i].content)))for(o=k[i].children,x=0,r=o.length-1;r>=0;r--){if(c=o[r],c.type==="link_close"){for(r--;o[r].level!==c.level&&o[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(sr(c.content)&&x>0&&x--,ar(c.content)&&x++),!(x>0)&&c.type==="text"&&e.md.linkify.test(c.content)){for(s=c.content,v=e.md.linkify.match(s),f=[],a=c.level,h=0,v.length>0&&v[0].index===0&&r>0&&o[r-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)g=v[u].url,b=e.md.normalizeLink(g),!!e.md.validateLink(b)&&(_=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),p=v[u].index,p>h&&(t=new e.Token("text","",0),t.content=s.slice(h,p),t.level=a,f.push(t)),t=new e.Token("link_open","a",1),t.attrs=[["href",b]],t.level=a++,t.markup="linkify",t.info="auto",f.push(t),t=new e.Token("text","",0),t.content=_,t.level=a,f.push(t),t=new e.Token("link_close","a",-1),t.level=--a,t.markup="linkify",t.info="auto",f.push(t),h=v[u].lastIndex);h<s.length&&(t=new e.Token("text","",0),t.content=s.slice(h),t.level=a,f.push(t)),k[i].children=o=ur(o,r,f)}}}},Be=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,pr=/\((c|tm|r)\)/i,dr=/\((c|tm|r)\)/ig,kr={c:"\xA9",r:"\xAE",tm:"\u2122"};function mr(n,e){return kr[e.toLowerCase()]}function xr(n){var e,r,i=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!i&&(r.content=r.content.replace(dr,mr)),r.type==="link_open"&&r.info==="auto"&&i--,r.type==="link_close"&&r.info==="auto"&&i++}function gr(n){var e,r,i=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!i&&Be.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&i--,r.type==="link_close"&&r.info==="auto"&&i++}var _r=function(e){var r;if(!!e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(pr.test(e.tokens[r].content)&&xr(e.tokens[r].children),Be.test(e.tokens[r].content)&&gr(e.tokens[r].children))},me=E.isWhiteSpace,xe=E.isPunctChar,ge=E.isMdAsciiPunct,vr=/['"]/,_e=/['"]/g,ve="\u2019";function W(n,e,r){return n.slice(0,e)+r+n.slice(e+1)}function br(n,e){var r,i,l,o,t,c,f,u,s,p,h,a,x,g,b,_,k,v,C,S,m;for(C=[],r=0;r<n.length;r++){for(i=n[r],f=n[r].level,k=C.length-1;k>=0&&!(C[k].level<=f);k--);if(C.length=k+1,i.type!=="text")continue;l=i.content,t=0,c=l.length;e:for(;t<c&&(_e.lastIndex=t,o=_e.exec(l),!!o);){if(b=_=!0,t=o.index+1,v=o[0]==="'",s=32,o.index-1>=0)s=l.charCodeAt(o.index-1);else for(k=r-1;k>=0&&!(n[k].type==="softbreak"||n[k].type==="hardbreak");k--)if(!!n[k].content){s=n[k].content.charCodeAt(n[k].content.length-1);break}if(p=32,t<c)p=l.charCodeAt(t);else for(k=r+1;k<n.length&&!(n[k].type==="softbreak"||n[k].type==="hardbreak");k++)if(!!n[k].content){p=n[k].content.charCodeAt(0);break}if(h=ge(s)||xe(String.fromCharCode(s)),a=ge(p)||xe(String.fromCharCode(p)),x=me(s),g=me(p),g?b=!1:a&&(x||h||(b=!1)),x?_=!1:h&&(g||a||(_=!1)),p===34&&o[0]==='"'&&s>=48&&s<=57&&(_=b=!1),b&&_&&(b=h,_=a),!b&&!_){v&&(i.content=W(i.content,o.index,ve));continue}if(_){for(k=C.length-1;k>=0&&(u=C[k],!(C[k].level<f));k--)if(u.single===v&&C[k].level===f){u=C[k],v?(S=e.md.options.quotes[2],m=e.md.options.quotes[3]):(S=e.md.options.quotes[0],m=e.md.options.quotes[1]),i.content=W(i.content,o.index,m),n[u.token].content=W(n[u.token].content,u.pos,S),t+=m.length-1,u.token===r&&(t+=S.length-1),l=i.content,c=l.length,C.length=k;continue e}}b?C.push({token:r,pos:o.index,single:v,level:f}):_&&v&&(i.content=W(i.content,o.index,ve))}}}var Cr=function(e){var r;if(!!e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!vr.test(e.tokens[r].content)||br(e.tokens[r].children,e)},Ar=function(e){var r,i,l,o,t,c,f=e.tokens;for(r=0,i=f.length;r<i;r++)if(f[r].type==="inline"){for(l=f[r].children,t=l.length,o=0;o<t;o++)l[o].type==="text_special"&&(l[o].type="text");for(o=c=0;o<t;o++)l[o].type==="text"&&o+1<t&&l[o+1].type==="text"?l[o+1].content=l[o].content+l[o+1].content:(o!==c&&(l[c]=l[o]),c++);o!==c&&(l.length=c)}};function L(n,e,r){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}L.prototype.attrIndex=function(e){var r,i,l;if(!this.attrs)return-1;for(r=this.attrs,i=0,l=r.length;i<l;i++)if(r[i][0]===e)return i;return-1};L.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};L.prototype.attrSet=function(e,r){var i=this.attrIndex(e),l=[e,r];i<0?this.attrPush(l):this.attrs[i]=l};L.prototype.attrGet=function(e){var r=this.attrIndex(e),i=null;return r>=0&&(i=this.attrs[r][1]),i};L.prototype.attrJoin=function(e,r){var i=this.attrIndex(e);i<0?this.attrPush([e,r]):this.attrs[i][1]=this.attrs[i][1]+" "+r};var se=L,yr=se;function qe(n,e,r){this.src=n,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}qe.prototype.Token=yr;var Er=qe,Sr=ue,ne=[["normalize",tr],["block",fr],["inline",cr],["linkify",hr],["replacements",_r],["smartquotes",Cr],["text_join",Ar]];function ae(){this.ruler=new Sr;for(var n=0;n<ne.length;n++)this.ruler.push(ne[n][0],ne[n][1])}ae.prototype.process=function(n){var e,r,i;for(i=this.ruler.getRules(""),e=0,r=i.length;e<r;e++)i[e](n)};ae.prototype.State=Er;var Mr=ae,ie=E.isSpace;function oe(n,e){var r=n.bMarks[e]+n.tShift[e],i=n.eMarks[e];return n.src.slice(r,i)}function be(n){var e=[],r=0,i=n.length,l,o=!1,t=0,c="";for(l=n.charCodeAt(r);r<i;)l===124&&(o?(c+=n.substring(t,r-1),t=r):(e.push(c+n.substring(t,r)),c="",t=r+1)),o=l===92,r++,l=n.charCodeAt(r);return e.push(c+n.substring(t)),e}var Tr=function(e,r,i,l){var o,t,c,f,u,s,p,h,a,x,g,b,_,k,v,C,S,m;if(r+2>i||(s=r+1,e.sCount[s]<e.blkIndent)||e.sCount[s]-e.blkIndent>=4||(c=e.bMarks[s]+e.tShift[s],c>=e.eMarks[s])||(S=e.src.charCodeAt(c++),S!==124&&S!==45&&S!==58)||c>=e.eMarks[s]||(m=e.src.charCodeAt(c++),m!==124&&m!==45&&m!==58&&!ie(m))||S===45&&ie(m))return!1;for(;c<e.eMarks[s];){if(o=e.src.charCodeAt(c),o!==124&&o!==45&&o!==58&&!ie(o))return!1;c++}for(t=oe(e,r+1),p=t.split("|"),x=[],f=0;f<p.length;f++){if(g=p[f].trim(),!g){if(f===0||f===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?x.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?x.push("left"):x.push("")}if(t=oe(e,r).trim(),t.indexOf("|")===-1||e.sCount[r]-e.blkIndent>=4||(p=be(t),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h=p.length,h===0||h!==x.length))return!1;if(l)return!0;for(k=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),a=e.push("table_open","table",1),a.map=b=[r,0],a=e.push("thead_open","thead",1),a.map=[r,r+1],a=e.push("tr_open","tr",1),a.map=[r,r+1],f=0;f<p.length;f++)a=e.push("th_open","th",1),x[f]&&(a.attrs=[["style","text-align:"+x[f]]]),a=e.push("inline","",0),a.content=p[f].trim(),a.children=[],a=e.push("th_close","th",-1);for(a=e.push("tr_close","tr",-1),a=e.push("thead_close","thead",-1),s=r+2;s<i&&!(e.sCount[s]<e.blkIndent);s++){for(v=!1,f=0,u=C.length;f<u;f++)if(C[f](e,s,i,!0)){v=!0;break}if(v||(t=oe(e,s).trim(),!t)||e.sCount[s]-e.blkIndent>=4)break;for(p=be(t),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),s===r+2&&(a=e.push("tbody_open","tbody",1),a.map=_=[r+2,0]),a=e.push("tr_open","tr",1),a.map=[s,s+1],f=0;f<h;f++)a=e.push("td_open","td",1),x[f]&&(a.attrs=[["style","text-align:"+x[f]]]),a=e.push("inline","",0),a.content=p[f]?p[f].trim():"",a.children=[],a=e.push("td_close","td",-1);a=e.push("tr_close","tr",-1)}return _&&(a=e.push("tbody_close","tbody",-1),_[1]=s),a=e.push("table_close","table",-1),b[1]=s,e.parentType=k,e.line=s,!0},wr=function(e,r,i){var l,o,t;if(e.sCount[r]-e.blkIndent<4)return!1;for(o=l=r+1;l<i;){if(e.isEmpty(l)){l++;continue}if(e.sCount[l]-e.blkIndent>=4){l++,o=l;continue}break}return e.line=o,t=e.push("code_block","code",0),t.content=e.getLines(r,o,4+e.blkIndent,!1)+`
`,t.map=[r,e.line],!0},Ir=function(e,r,i,l){var o,t,c,f,u,s,p,h=!1,a=e.bMarks[r]+e.tShift[r],x=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||a+3>x||(o=e.src.charCodeAt(a),o!==126&&o!==96)||(u=a,a=e.skipChars(a,o),t=a-u,t<3)||(p=e.src.slice(u,a),c=e.src.slice(a,x),o===96&&c.indexOf(String.fromCharCode(o))>=0))return!1;if(l)return!0;for(f=r;f++,!(f>=i||(a=u=e.bMarks[f]+e.tShift[f],x=e.eMarks[f],a<x&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(a)===o&&!(e.sCount[f]-e.blkIndent>=4)&&(a=e.skipChars(a,o),!(a-u<t)&&(a=e.skipSpaces(a),!(a<x)))){h=!0;break}return t=e.sCount[r],e.line=f+(h?1:0),s=e.push("fence","code",0),s.info=c,s.content=e.getLines(r+1,f,t,!0),s.markup=p,s.map=[r,e.line],!0},Ce=E.isSpace,Rr=function(e,r,i,l){var o,t,c,f,u,s,p,h,a,x,g,b,_,k,v,C,S,m,M,I,B=e.lineMax,A=e.bMarks[r]+e.tShift[r],T=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(A++)!==62)return!1;if(l)return!0;for(f=a=e.sCount[r]+1,e.src.charCodeAt(A)===32?(A++,f++,a++,o=!1,C=!0):e.src.charCodeAt(A)===9?(C=!0,(e.bsCount[r]+a)%4===3?(A++,f++,a++,o=!1):o=!0):C=!1,x=[e.bMarks[r]],e.bMarks[r]=A;A<T&&(t=e.src.charCodeAt(A),Ce(t));){t===9?a+=4-(a+e.bsCount[r]+(o?1:0))%4:a++;A++}for(g=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(C?1:0),s=A>=T,k=[e.sCount[r]],e.sCount[r]=a-f,v=[e.tShift[r]],e.tShift[r]=A-e.bMarks[r],m=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",h=r+1;h<i&&(I=e.sCount[h]<e.blkIndent,A=e.bMarks[h]+e.tShift[h],T=e.eMarks[h],!(A>=T));h++){if(e.src.charCodeAt(A++)===62&&!I){for(f=a=e.sCount[h]+1,e.src.charCodeAt(A)===32?(A++,f++,a++,o=!1,C=!0):e.src.charCodeAt(A)===9?(C=!0,(e.bsCount[h]+a)%4===3?(A++,f++,a++,o=!1):o=!0):C=!1,x.push(e.bMarks[h]),e.bMarks[h]=A;A<T&&(t=e.src.charCodeAt(A),Ce(t));){t===9?a+=4-(a+e.bsCount[h]+(o?1:0))%4:a++;A++}s=A>=T,g.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(C?1:0),k.push(e.sCount[h]),e.sCount[h]=a-f,v.push(e.tShift[h]),e.tShift[h]=A-e.bMarks[h];continue}if(s)break;for(S=!1,c=0,u=m.length;c<u;c++)if(m[c](e,h,i,!0)){S=!0;break}if(S){e.lineMax=h,e.blkIndent!==0&&(x.push(e.bMarks[h]),g.push(e.bsCount[h]),v.push(e.tShift[h]),k.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}x.push(e.bMarks[h]),g.push(e.bsCount[h]),v.push(e.tShift[h]),k.push(e.sCount[h]),e.sCount[h]=-1}for(b=e.blkIndent,e.blkIndent=0,M=e.push("blockquote_open","blockquote",1),M.markup=">",M.map=p=[r,0],e.md.block.tokenize(e,r,h),M=e.push("blockquote_close","blockquote",-1),M.markup=">",e.lineMax=B,e.parentType=_,p[1]=e.line,c=0;c<v.length;c++)e.bMarks[c+r]=x[c],e.tShift[c+r]=v[c],e.sCount[c+r]=k[c],e.bsCount[c+r]=g[c];return e.blkIndent=b,!0},Pr=E.isSpace,$r=function(e,r,i,l){var o,t,c,f,u=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(u++),o!==42&&o!==45&&o!==95))return!1;for(t=1;u<s;){if(c=e.src.charCodeAt(u++),c!==o&&!Pr(c))return!1;c===o&&t++}return t<3?!1:(l||(e.line=r+1,f=e.push("hr","hr",0),f.map=[r,e.line],f.markup=Array(t+1).join(String.fromCharCode(o))),!0)},je=E.isSpace;function Ae(n,e){var r,i,l,o;return i=n.bMarks[e]+n.tShift[e],l=n.eMarks[e],r=n.src.charCodeAt(i++),r!==42&&r!==45&&r!==43||i<l&&(o=n.src.charCodeAt(i),!je(o))?-1:i}function ye(n,e){var r,i=n.bMarks[e]+n.tShift[e],l=i,o=n.eMarks[e];if(l+1>=o||(r=n.src.charCodeAt(l++),r<48||r>57))return-1;for(;;){if(l>=o)return-1;if(r=n.src.charCodeAt(l++),r>=48&&r<=57){if(l-i>=10)return-1;continue}if(r===41||r===46)break;return-1}return l<o&&(r=n.src.charCodeAt(l),!je(r))?-1:l}function zr(n,e){var r,i,l=n.level+2;for(r=e+2,i=n.tokens.length-2;r<i;r++)n.tokens[r].level===l&&n.tokens[r].type==="paragraph_open"&&(n.tokens[r+2].hidden=!0,n.tokens[r].hidden=!0,r+=2)}var Or=function(e,r,i,l){var o,t,c,f,u,s,p,h,a,x,g,b,_,k,v,C,S,m,M,I,B,A,T,H,q,d,w,y,O=!1,de=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(l&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkIndent&&(O=!0),(T=ye(e,r))>=0){if(p=!0,q=e.bMarks[r]+e.tShift[r],_=Number(e.src.slice(q,T-1)),O&&_!==1)return!1}else if((T=Ae(e,r))>=0)p=!1;else return!1;if(O&&e.skipSpaces(T)>=e.eMarks[r])return!1;if(b=e.src.charCodeAt(T-1),l)return!0;for(g=e.tokens.length,p?(y=e.push("ordered_list_open","ol",1),_!==1&&(y.attrs=[["start",_]])):y=e.push("bullet_list_open","ul",1),y.map=x=[r,0],y.markup=String.fromCharCode(b),v=r,H=!1,w=e.md.block.ruler.getRules("list"),m=e.parentType,e.parentType="list";v<i;){for(A=T,k=e.eMarks[v],s=C=e.sCount[v]+T-(e.bMarks[r]+e.tShift[r]);A<k;){if(o=e.src.charCodeAt(A),o===9)C+=4-(C+e.bsCount[v])%4;else if(o===32)C++;else break;A++}if(t=A,t>=k?u=1:u=C-s,u>4&&(u=1),f=s+u,y=e.push("list_item_open","li",1),y.markup=String.fromCharCode(b),y.map=h=[r,0],p&&(y.info=e.src.slice(q,T-1)),B=e.tight,I=e.tShift[r],M=e.sCount[r],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[r]=t-e.bMarks[r],e.sCount[r]=C,t>=k&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,r,i,!0),(!e.tight||H)&&(de=!1),H=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[r]=I,e.sCount[r]=M,e.tight=B,y=e.push("list_item_close","li",-1),y.markup=String.fromCharCode(b),v=r=e.line,h[1]=v,t=e.bMarks[r],v>=i||e.sCount[v]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)break;for(d=!1,c=0,a=w.length;c<a;c++)if(w[c](e,v,i,!0)){d=!0;break}if(d)break;if(p){if(T=ye(e,v),T<0)break;q=e.bMarks[v]+e.tShift[v]}else if(T=Ae(e,v),T<0)break;if(b!==e.src.charCodeAt(T-1))break}return p?y=e.push("ordered_list_close","ol",-1):y=e.push("bullet_list_close","ul",-1),y.markup=String.fromCharCode(b),x[1]=v,e.line=v,e.parentType=m,de&&zr(e,g),!0},Dr=E.normalizeReference,Q=E.isSpace,Fr=function(e,r,i,l){var o,t,c,f,u,s,p,h,a,x,g,b,_,k,v,C,S=0,m=e.bMarks[r]+e.tShift[r],M=e.eMarks[r],I=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(m)!==91)return!1;for(;++m<M;)if(e.src.charCodeAt(m)===93&&e.src.charCodeAt(m-1)!==92){if(m+1===M||e.src.charCodeAt(m+1)!==58)return!1;break}for(f=e.lineMax,v=e.md.block.ruler.getRules("reference"),x=e.parentType,e.parentType="reference";I<f&&!e.isEmpty(I);I++)if(!(e.sCount[I]-e.blkIndent>3)&&!(e.sCount[I]<0)){for(k=!1,s=0,p=v.length;s<p;s++)if(v[s](e,I,f,!0)){k=!0;break}if(k)break}for(_=e.getLines(r,I,e.blkIndent,!1).trim(),M=_.length,m=1;m<M;m++){if(o=_.charCodeAt(m),o===91)return!1;if(o===93){a=m;break}else o===10?S++:o===92&&(m++,m<M&&_.charCodeAt(m)===10&&S++)}if(a<0||_.charCodeAt(a+1)!==58)return!1;for(m=a+2;m<M;m++)if(o=_.charCodeAt(m),o===10)S++;else if(!Q(o))break;if(g=e.md.helpers.parseLinkDestination(_,m,M),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(m=g.pos,S+=g.lines,t=m,c=S,b=m;m<M;m++)if(o=_.charCodeAt(m),o===10)S++;else if(!Q(o))break;for(g=e.md.helpers.parseLinkTitle(_,m,M),m<M&&b!==m&&g.ok?(C=g.str,m=g.pos,S+=g.lines):(C="",m=t,S=c);m<M&&(o=_.charCodeAt(m),!!Q(o));)m++;if(m<M&&_.charCodeAt(m)!==10&&C)for(C="",m=t,S=c;m<M&&(o=_.charCodeAt(m),!!Q(o));)m++;return m<M&&_.charCodeAt(m)!==10||(h=Dr(_.slice(1,a)),!h)?!1:(l||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[h]=="undefined"&&(e.env.references[h]={title:C,href:u}),e.parentType=x,e.line=r+S+1),!0)},Br=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Y={},qr="[a-zA-Z_:][a-zA-Z0-9:._-]*",jr="[^\"'=<>`\\x00-\\x20]+",Nr="'[^']*'",Lr='"[^"]*"',Hr="(?:"+jr+"|"+Nr+"|"+Lr+")",Zr="(?:\\s+"+qr+"(?:\\s*=\\s*"+Hr+")?)",Ne="<[A-Za-z][A-Za-z0-9\\-]*"+Zr+"*\\s*\\/?>",Le="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Gr="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Ur="<[?][\\s\\S]*?[?]>",Wr="<![A-Z]+\\s+[^>]*>",Qr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Vr=new RegExp("^(?:"+Ne+"|"+Le+"|"+Gr+"|"+Ur+"|"+Wr+"|"+Qr+")"),Jr=new RegExp("^(?:"+Ne+"|"+Le+")");Y.HTML_TAG_RE=Vr;var fi=Y.HTML_OPEN_CLOSE_TAG_RE=Jr,Yr=Br,Kr=Y.HTML_OPEN_CLOSE_TAG_RE,j=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Yr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Kr.source+"\\s*$"),/^$/,!1]],Xr=function(e,r,i,l){var o,t,c,f,u=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(f=e.src.slice(u,s),o=0;o<j.length&&!j[o][0].test(f);o++);if(o===j.length)return!1;if(l)return j[o][2];if(t=r+1,!j[o][1].test(f)){for(;t<i&&!(e.sCount[t]<e.blkIndent);t++)if(u=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],f=e.src.slice(u,s),j[o][1].test(f)){f.length!==0&&t++;break}}return e.line=t,c=e.push("html_block","",0),c.map=[r,t],c.content=e.getLines(r,t,e.blkIndent,!0),!0},Ee=E.isSpace,en=function(e,r,i,l){var o,t,c,f,u=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(u),o!==35||u>=s))return!1;for(t=1,o=e.src.charCodeAt(++u);o===35&&u<s&&t<=6;)t++,o=e.src.charCodeAt(++u);return t>6||u<s&&!Ee(o)?!1:(l||(s=e.skipSpacesBack(s,u),c=e.skipCharsBack(s,35,u),c>u&&Ee(e.src.charCodeAt(c-1))&&(s=c),e.line=r+1,f=e.push("heading_open","h"+String(t),1),f.markup="########".slice(0,t),f.map=[r,e.line],f=e.push("inline","",0),f.content=e.src.slice(u,s).trim(),f.map=[r,e.line],f.children=[],f=e.push("heading_close","h"+String(t),-1),f.markup="########".slice(0,t)),!0)},rn=function(e,r,i){var l,o,t,c,f,u,s,p,h,a=r+1,x,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(x=e.parentType,e.parentType="paragraph";a<i&&!e.isEmpty(a);a++)if(!(e.sCount[a]-e.blkIndent>3)){if(e.sCount[a]>=e.blkIndent&&(u=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],u<s&&(h=e.src.charCodeAt(u),(h===45||h===61)&&(u=e.skipChars(u,h),u=e.skipSpaces(u),u>=s)))){p=h===61?1:2;break}if(!(e.sCount[a]<0)){for(o=!1,t=0,c=g.length;t<c;t++)if(g[t](e,a,i,!0)){o=!0;break}if(o)break}}return p?(l=e.getLines(r,a,e.blkIndent,!1).trim(),e.line=a+1,f=e.push("heading_open","h"+String(p),1),f.markup=String.fromCharCode(h),f.map=[r,e.line],f=e.push("inline","",0),f.content=l,f.map=[r,e.line-1],f.children=[],f=e.push("heading_close","h"+String(p),-1),f.markup=String.fromCharCode(h),e.parentType=x,!0):!1},nn=function(e,r){var i,l,o,t,c,f,u=r+1,s=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(f=e.parentType,e.parentType="paragraph";u<p&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(l=!1,o=0,t=s.length;o<t;o++)if(s[o](e,u,p,!0)){l=!0;break}if(l)break}return i=e.getLines(r,u,e.blkIndent,!1).trim(),e.line=u,c=e.push("paragraph_open","p",1),c.map=[r,e.line],c=e.push("inline","",0),c.content=i,c.map=[r,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=f,!0},He=se,K=E.isSpace;function z(n,e,r,i){var l,o,t,c,f,u,s,p;for(this.src=n,this.md=e,this.env=r,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,p=!1,t=c=u=s=0,f=o.length;c<f;c++){if(l=o.charCodeAt(c),!p)if(K(l)){u++,l===9?s+=4-s%4:s++;continue}else p=!0;(l===10||c===f-1)&&(l!==10&&c++,this.bMarks.push(t),this.eMarks.push(c),this.tShift.push(u),this.sCount.push(s),this.bsCount.push(0),p=!1,u=0,s=0,t=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}z.prototype.push=function(n,e,r){var i=new He(n,e,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i};z.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};z.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};z.prototype.skipSpaces=function(e){for(var r,i=this.src.length;e<i&&(r=this.src.charCodeAt(e),!!K(r));e++);return e};z.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!K(this.src.charCodeAt(--e)))return e+1;return e};z.prototype.skipChars=function(e,r){for(var i=this.src.length;e<i&&this.src.charCodeAt(e)===r;e++);return e};z.prototype.skipCharsBack=function(e,r,i){if(e<=i)return e;for(;e>i;)if(r!==this.src.charCodeAt(--e))return e+1;return e};z.prototype.getLines=function(e,r,i,l){var o,t,c,f,u,s,p,h=e;if(e>=r)return"";for(s=new Array(r-e),o=0;h<r;h++,o++){for(t=0,p=f=this.bMarks[h],h+1<r||l?u=this.eMarks[h]+1:u=this.eMarks[h];f<u&&t<i;){if(c=this.src.charCodeAt(f),K(c))c===9?t+=4-(t+this.bsCount[h])%4:t++;else if(f-p<this.tShift[h])t++;else break;f++}t>i?s[o]=new Array(t-i+1).join(" ")+this.src.slice(f,u):s[o]=this.src.slice(f,u)}return s.join("")};z.prototype.Token=He;var on=z,ln=ue,V=[["table",Tr,["paragraph","reference"]],["code",wr],["fence",Ir,["paragraph","reference","blockquote","list"]],["blockquote",Rr,["paragraph","reference","blockquote","list"]],["hr",$r,["paragraph","reference","blockquote","list"]],["list",Or,["paragraph","reference","blockquote"]],["reference",Fr],["html_block",Xr,["paragraph","reference","blockquote"]],["heading",en,["paragraph","reference","blockquote"]],["lheading",rn],["paragraph",nn]];function X(){this.ruler=new ln;for(var n=0;n<V.length;n++)this.ruler.push(V[n][0],V[n][1],{alt:(V[n][2]||[]).slice()})}X.prototype.tokenize=function(n,e,r){for(var i,l,o=this.ruler.getRules(""),t=o.length,c=e,f=!1,u=n.md.options.maxNesting;c<r&&(n.line=c=n.skipEmptyLines(c),!(c>=r||n.sCount[c]<n.blkIndent));){if(n.level>=u){n.line=r;break}for(l=0;l<t&&(i=o[l](n,c,r,!1),!i);l++);n.tight=!f,n.isEmpty(n.line-1)&&(f=!0),c=n.line,c<r&&n.isEmpty(c)&&(f=!0,c++,n.line=c)}};X.prototype.parse=function(n,e,r,i){var l;!n||(l=new this.State(n,e,r,i),this.tokenize(l,l.line,l.lineMax))};X.prototype.State=on;var tn=X;function fn(n){switch(n){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var cn=function(e,r){for(var i=e.pos;i<e.posMax&&!fn(e.src.charCodeAt(i));)i++;return i===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,i)),e.pos=i,!0)},un=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,sn=function(e,r){var i,l,o,t,c,f,u,s;return!e.md.options.linkify||e.linkLevel>0||(i=e.pos,l=e.posMax,i+3>l)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(o=e.pending.match(un),!o)||(t=o[1],c=e.md.linkify.matchAtStart(e.src.slice(i-t.length)),!c)||(f=c.url,f=f.replace(/\*+$/,""),u=e.md.normalizeLink(f),!e.md.validateLink(u))?!1:(r||(e.pending=e.pending.slice(0,-t.length),s=e.push("link_open","a",1),s.attrs=[["href",u]],s.markup="linkify",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(f),s=e.push("link_close","a",-1),s.markup="linkify",s.info="auto"),e.pos+=f.length-t.length,!0)},an=E.isSpace,hn=function(e,r){var i,l,o,t=e.pos;if(e.src.charCodeAt(t)!==10)return!1;if(i=e.pending.length-1,l=e.posMax,!r)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(o=i-1;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(t++;t<l&&an(e.src.charCodeAt(t));)t++;return e.pos=t,!0},pn=E.isSpace,he=[];for(var Se=0;Se<256;Se++)he.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){he[n.charCodeAt(0)]=1});var dn=function(e,r){var i,l,o,t,c,f=e.pos,u=e.posMax;if(e.src.charCodeAt(f)!==92||(f++,f>=u))return!1;if(i=e.src.charCodeAt(f),i===10){for(r||e.push("hardbreak","br",0),f++;f<u&&(i=e.src.charCodeAt(f),!!pn(i));)f++;return e.pos=f,!0}return t=e.src[f],i>=55296&&i<=56319&&f+1<u&&(l=e.src.charCodeAt(f+1),l>=56320&&l<=57343&&(t+=e.src[f+1],f++)),o="\\"+t,r||(c=e.push("text_special","",0),i<256&&he[i]!==0?c.content=t:c.content=o,c.markup=o,c.info="escape"),e.pos=f+1,!0},kn=function(e,r){var i,l,o,t,c,f,u,s,p=e.pos,h=e.src.charCodeAt(p);if(h!==96)return!1;for(i=p,p++,l=e.posMax;p<l&&e.src.charCodeAt(p)===96;)p++;if(o=e.src.slice(i,p),u=o.length,e.backticksScanned&&(e.backticks[u]||0)<=i)return r||(e.pending+=o),e.pos+=u,!0;for(c=f=p;(c=e.src.indexOf("`",f))!==-1;){for(f=c+1;f<l&&e.src.charCodeAt(f)===96;)f++;if(s=f-c,s===u)return r||(t=e.push("code_inline","code",0),t.markup=o,t.content=e.src.slice(p,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=f,!0;e.backticks[s]=c}return e.backticksScanned=!0,r||(e.pending+=o),e.pos+=u,!0},ee={};ee.tokenize=function(e,r){var i,l,o,t,c,f=e.pos,u=e.src.charCodeAt(f);if(r||u!==126||(l=e.scanDelims(e.pos,!0),t=l.length,c=String.fromCharCode(u),t<2))return!1;for(t%2&&(o=e.push("text","",0),o.content=c,t--),i=0;i<t;i+=2)o=e.push("text","",0),o.content=c+c,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:l.can_open,close:l.can_close});return e.pos+=l.length,!0};function Me(n,e){var r,i,l,o,t,c=[],f=e.length;for(r=0;r<f;r++)l=e[r],l.marker===126&&l.end!==-1&&(o=e[l.end],t=n.tokens[l.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=n.tokens[o.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",n.tokens[o.token-1].type==="text"&&n.tokens[o.token-1].content==="~"&&c.push(o.token-1));for(;c.length;){for(r=c.pop(),i=r+1;i<n.tokens.length&&n.tokens[i].type==="s_close";)i++;i--,r!==i&&(t=n.tokens[i],n.tokens[i]=n.tokens[r],n.tokens[r]=t)}}ee.postProcess=function(e){var r,i=e.tokens_meta,l=e.tokens_meta.length;for(Me(e,e.delimiters),r=0;r<l;r++)i[r]&&i[r].delimiters&&Me(e,i[r].delimiters)};var re={};re.tokenize=function(e,r){var i,l,o,t=e.pos,c=e.src.charCodeAt(t);if(r||c!==95&&c!==42)return!1;for(l=e.scanDelims(e.pos,c===42),i=0;i<l.length;i++)o=e.push("text","",0),o.content=String.fromCharCode(c),e.delimiters.push({marker:c,length:l.length,token:e.tokens.length-1,end:-1,open:l.can_open,close:l.can_close});return e.pos+=l.length,!0};function Te(n,e){var r,i,l,o,t,c,f=e.length;for(r=f-1;r>=0;r--)i=e[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(l=e[i.end],c=r>0&&e[r-1].end===i.end+1&&e[r-1].marker===i.marker&&e[r-1].token===i.token-1&&e[i.end+1].token===l.token+1,t=String.fromCharCode(i.marker),o=n.tokens[i.token],o.type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?t+t:t,o.content="",o=n.tokens[l.token],o.type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?t+t:t,o.content="",c&&(n.tokens[e[r-1].token].content="",n.tokens[e[i.end+1].token].content="",r--))}re.postProcess=function(e){var r,i=e.tokens_meta,l=e.tokens_meta.length;for(Te(e,e.delimiters),r=0;r<l;r++)i[r]&&i[r].delimiters&&Te(e,i[r].delimiters)};var mn=E.normalizeReference,le=E.isSpace,xn=function(e,r){var i,l,o,t,c,f,u,s,p,h="",a="",x=e.pos,g=e.posMax,b=e.pos,_=!0;if(e.src.charCodeAt(e.pos)!==91||(c=e.pos+1,t=e.md.helpers.parseLinkLabel(e,e.pos,!0),t<0))return!1;if(f=t+1,f<g&&e.src.charCodeAt(f)===40){for(_=!1,f++;f<g&&(l=e.src.charCodeAt(f),!(!le(l)&&l!==10));f++);if(f>=g)return!1;if(b=f,u=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),u.ok){for(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?f=u.pos:h="",b=f;f<g&&(l=e.src.charCodeAt(f),!(!le(l)&&l!==10));f++);if(u=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<g&&b!==f&&u.ok)for(a=u.str,f=u.pos;f<g&&(l=e.src.charCodeAt(f),!(!le(l)&&l!==10));f++);}(f>=g||e.src.charCodeAt(f)!==41)&&(_=!0),f++}if(_){if(typeof e.env.references=="undefined")return!1;if(f<g&&e.src.charCodeAt(f)===91?(b=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?o=e.src.slice(b,f++):f=t+1):f=t+1,o||(o=e.src.slice(c,t)),s=e.env.references[mn(o)],!s)return e.pos=x,!1;h=s.href,a=s.title}return r||(e.pos=c,e.posMax=t,p=e.push("link_open","a",1),p.attrs=i=[["href",h]],a&&i.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=f,e.posMax=g,!0},gn=E.normalizeReference,te=E.isSpace,_n=function(e,r){var i,l,o,t,c,f,u,s,p,h,a,x,g,b="",_=e.pos,k=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(f=e.pos+2,c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),c<0))return!1;if(u=c+1,u<k&&e.src.charCodeAt(u)===40){for(u++;u<k&&(l=e.src.charCodeAt(u),!(!te(l)&&l!==10));u++);if(u>=k)return!1;for(g=u,p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),p.ok&&(b=e.md.normalizeLink(p.str),e.md.validateLink(b)?u=p.pos:b=""),g=u;u<k&&(l=e.src.charCodeAt(u),!(!te(l)&&l!==10));u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<k&&g!==u&&p.ok)for(h=p.str,u=p.pos;u<k&&(l=e.src.charCodeAt(u),!(!te(l)&&l!==10));u++);else h="";if(u>=k||e.src.charCodeAt(u)!==41)return e.pos=_,!1;u++}else{if(typeof e.env.references=="undefined")return!1;if(u<k&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?t=e.src.slice(g,u++):u=c+1):u=c+1,t||(t=e.src.slice(f,c)),s=e.env.references[gn(t)],!s)return e.pos=_,!1;b=s.href,h=s.title}return r||(o=e.src.slice(f,c),e.md.inline.parse(o,e.md,e.env,x=[]),a=e.push("image","img",0),a.attrs=i=[["src",b],["alt",""]],a.children=x,a.content=o,h&&i.push(["title",h])),e.pos=u,e.posMax=k,!0},vn=/^([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])?)*)$/,bn=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Cn=function(e,r){var i,l,o,t,c,f,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(c=e.pos,f=e.posMax;;){if(++u>=f||(t=e.src.charCodeAt(u),t===60))return!1;if(t===62)break}return i=e.src.slice(c+1,u),bn.test(i)?(l=e.md.normalizeLink(i),e.md.validateLink(l)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",l]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(i),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=i.length+2,!0):!1):vn.test(i)?(l=e.md.normalizeLink("mailto:"+i),e.md.validateLink(l)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",l]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(i),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=i.length+2,!0):!1):!1},An=Y.HTML_TAG_RE;function yn(n){return/^<a[>\s]/i.test(n)}function En(n){return/^<\/a\s*>/i.test(n)}function Sn(n){var e=n|32;return e>=97&&e<=122}var Mn=function(e,r){var i,l,o,t,c=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(c)!==60||c+2>=o)||(i=e.src.charCodeAt(c+1),i!==33&&i!==63&&i!==47&&!Sn(i))||(l=e.src.slice(c).match(An),!l)?!1:(r||(t=e.push("html_inline","",0),t.content=e.src.slice(c,c+l[0].length),yn(t.content)&&e.linkLevel++,En(t.content)&&e.linkLevel--),e.pos+=l[0].length,!0)},we=Fe,Tn=E.has,wn=E.isValidEntityCode,Ie=E.fromCodePoint,In=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Rn=/^&([a-z][a-z0-9]{1,31});/i,Pn=function(e,r){var i,l,o,t,c=e.pos,f=e.posMax;if(e.src.charCodeAt(c)!==38||c+1>=f)return!1;if(i=e.src.charCodeAt(c+1),i===35){if(o=e.src.slice(c).match(In),o)return r||(l=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),t=e.push("text_special","",0),t.content=wn(l)?Ie(l):Ie(65533),t.markup=o[0],t.info="entity"),e.pos+=o[0].length,!0}else if(o=e.src.slice(c).match(Rn),o&&Tn(we,o[1]))return r||(t=e.push("text_special","",0),t.content=we[o[1]],t.markup=o[0],t.info="entity"),e.pos+=o[0].length,!0;return!1};function Re(n,e){var r,i,l,o,t,c,f,u,s={},p=e.length;if(!!p){var h=0,a=-2,x=[];for(r=0;r<p;r++)if(l=e[r],x.push(0),(e[h].marker!==l.marker||a!==l.token-1)&&(h=r),a=l.token,l.length=l.length||0,!!l.close){for(s.hasOwnProperty(l.marker)||(s[l.marker]=[-1,-1,-1,-1,-1,-1]),t=s[l.marker][(l.open?3:0)+l.length%3],i=h-x[h]-1,c=i;i>t;i-=x[i]+1)if(o=e[i],o.marker===l.marker&&o.open&&o.end<0&&(f=!1,(o.close||l.open)&&(o.length+l.length)%3===0&&(o.length%3!==0||l.length%3!==0)&&(f=!0),!f)){u=i>0&&!e[i-1].open?x[i-1]+1:0,x[r]=r-i+u,x[i]=u,l.open=!1,o.end=r,o.close=!1,c=-1,a=-2;break}c!==-1&&(s[l.marker][(l.open?3:0)+(l.length||0)%3]=c)}}}var $n=function(e){var r,i=e.tokens_meta,l=e.tokens_meta.length;for(Re(e,e.delimiters),r=0;r<l;r++)i[r]&&i[r].delimiters&&Re(e,i[r].delimiters)},zn=function(e){var r,i,l=0,o=e.tokens,t=e.tokens.length;for(r=i=0;r<t;r++)o[r].nesting<0&&l--,o[r].level=l,o[r].nesting>0&&l++,o[r].type==="text"&&r+1<t&&o[r+1].type==="text"?o[r+1].content=o[r].content+o[r+1].content:(r!==i&&(o[i]=o[r]),i++);r!==i&&(o.length=i)},pe=se,Pe=E.isWhiteSpace,$e=E.isPunctChar,ze=E.isMdAsciiPunct;function G(n,e,r,i){this.src=n,this.env=r,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}G.prototype.pushPending=function(){var n=new pe("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};G.prototype.push=function(n,e,r){this.pending&&this.pushPending();var i=new pe(n,e,r),l=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],l={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(l),i};G.prototype.scanDelims=function(n,e){var r=n,i,l,o,t,c,f,u,s,p,h=!0,a=!0,x=this.posMax,g=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;r<x&&this.src.charCodeAt(r)===g;)r++;return o=r-n,l=r<x?this.src.charCodeAt(r):32,u=ze(i)||$e(String.fromCharCode(i)),p=ze(l)||$e(String.fromCharCode(l)),f=Pe(i),s=Pe(l),s?h=!1:p&&(f||u||(h=!1)),f?a=!1:u&&(s||p||(a=!1)),e?(t=h,c=a):(t=h&&(!a||u),c=a&&(!h||p)),{can_open:t,can_close:c,length:o}};G.prototype.Token=pe;var On=G,Oe=ue,fe=[["text",cn],["linkify",sn],["newline",hn],["escape",dn],["backticks",kn],["strikethrough",ee.tokenize],["emphasis",re.tokenize],["link",xn],["image",_n],["autolink",Cn],["html_inline",Mn],["entity",Pn]],ce=[["balance_pairs",$n],["strikethrough",ee.postProcess],["emphasis",re.postProcess],["fragments_join",zn]];function U(){var n;for(this.ruler=new Oe,n=0;n<fe.length;n++)this.ruler.push(fe[n][0],fe[n][1]);for(this.ruler2=new Oe,n=0;n<ce.length;n++)this.ruler2.push(ce[n][0],ce[n][1])}U.prototype.skipToken=function(n){var e,r,i=n.pos,l=this.ruler.getRules(""),o=l.length,t=n.md.options.maxNesting,c=n.cache;if(typeof c[i]!="undefined"){n.pos=c[i];return}if(n.level<t)for(r=0;r<o&&(n.level++,e=l[r](n,!0),n.level--,!e);r++);else n.pos=n.posMax;e||n.pos++,c[i]=n.pos};U.prototype.tokenize=function(n){for(var e,r,i=this.ruler.getRules(""),l=i.length,o=n.posMax,t=n.md.options.maxNesting;n.pos<o;){if(n.level<t)for(r=0;r<l&&(e=i[r](n,!1),!e);r++);if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};U.prototype.parse=function(n,e,r,i){var l,o,t,c=new this.State(n,e,r,i);for(this.tokenize(c),o=this.ruler2.getRules(""),t=o.length,l=0;l<t;l++)o[l](c)};U.prototype.State=On;var Dn=U,Fn={},Bn=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fn}),qn=Je(Bn),jn={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Nn={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Ln={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Z=E,Hn=J,Zn=ir,Gn=Mr,Un=tn,Wn=Dn,Qn=Ve,D=De,Ze=qn,Vn={default:jn,zero:Nn,commonmark:Ln},Jn=/^(vbscript|javascript|file|data):/,Yn=/^data:image\/(gif|png|jpeg|webp);/;function Kn(n){var e=n.trim().toLowerCase();return Jn.test(e)?!!Yn.test(e):!0}var Ge=["http:","https:","mailto:"];function Xn(n){var e=D.parse(n,!0);if(e.hostname&&(!e.protocol||Ge.indexOf(e.protocol)>=0))try{e.hostname=Ze.toASCII(e.hostname)}catch{}return D.encode(D.format(e))}function ei(n){var e=D.parse(n,!0);if(e.hostname&&(!e.protocol||Ge.indexOf(e.protocol)>=0))try{e.hostname=Ze.toUnicode(e.hostname)}catch{}return D.decode(D.format(e),D.decode.defaultChars+"%")}function R(n,e){if(!(this instanceof R))return new R(n,e);e||Z.isString(n)||(e=n||{},n="default"),this.inline=new Wn,this.block=new Un,this.core=new Gn,this.renderer=new Zn,this.linkify=new Qn,this.validateLink=Kn,this.normalizeLink=Xn,this.normalizeLinkText=ei,this.utils=Z,this.helpers=Z.assign({},Hn),this.options={},this.configure(n),e&&this.set(e)}R.prototype.set=function(n){return Z.assign(this.options,n),this};R.prototype.configure=function(n){var e=this,r;if(Z.isString(n)&&(r=n,n=Vn[r],!n))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};R.prototype.enable=function(n,e){var r=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(l){r=r.concat(this[l].ruler.enable(n,!0))},this),r=r.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(l){return r.indexOf(l)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};R.prototype.disable=function(n,e){var r=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(l){r=r.concat(this[l].ruler.disable(n,!0))},this),r=r.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(l){return r.indexOf(l)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};R.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};R.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var r=new this.core.State(n,this,e);return this.core.process(r),r.tokens};R.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};R.prototype.parseInline=function(n,e){var r=new this.core.State(n,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};R.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var ri=R,ci=ri;export{fi as H,Fn as f,Br as h,ci as m};
