@mathcrowd/mmarked 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import t from"crypto";import e from"buffer";import n from"highlight.js";import r from"highlight.js/lib/languages/javascript";import s from"highlight.js/lib/languages/json";import i from"highlight.js/lib/languages/latex";import o from"highlight.js/lib/languages/python";import{liteAdaptor as a}from"mathjax-full/js/adaptors/liteAdaptor.js";import{RegisterHTMLHandler as l}from"mathjax-full/js/handlers/html.js";import{AllPackages as c}from"mathjax-full/js/input/tex/AllPackages.js";import{TeX as u}from"mathjax-full/js/input/tex.js";import{mathjax as p}from"mathjax-full/js/mathjax.js";import{SVG as h}from"mathjax-full/js/output/svg.js";var f={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function d(t){f=t}var g={exec:()=>null};function m(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let s="string"==typeof e?e:e.source;return s=s.replace(b.caret,"$1"),n=n.replace(t,s),r},getRegex:()=>RegExp(n,e)};return r}var k=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},x=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,w=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,I=m(y).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$=m(y).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=m(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),j=m(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),_="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,R=m("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",z).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),T=m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),E={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",T).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x,html:R,lheading:I,list:j,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:g,text:/^[^\n]+/},D=m("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),q={...E,lheading:$,table:D,paragraph:m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",D).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},C={...E,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(v).replace("hr",x).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},M=/^( {2,}|\\)\n(?!\s*$)/,O=/[\p{P}\p{S}]/u,P=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,N=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,P).getRegex(),Z=/(?!~)[\p{P}\p{S}]/u,U=m(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),B=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,H=m(B,"u").replace(/punct/g,O).getRegex(),G=m(B,"u").replace(/punct/g,Z).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",V=m(F,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,P).replace(/punct/g,O).getRegex(),X=m(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Z).getRegex(),W=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,P).replace(/punct/g,O).getRegex(),K=m(/\\(punct)/,"gu").replace(/punct/g,O).getRegex(),Q=m(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),J=m(z).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=m("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",J).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,et=m(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=m(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",S).getRegex(),rt=m(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),st=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,it={t:g,anyPunctuation:K,autolink:Q,blockSkip:U,br:M,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:H,emStrongRDelimAst:V,emStrongRDelimUnd:W,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:N,reflink:nt,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},ot={...it,link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()},at={...it,emStrongRDelimAst:X,emStrongLDelim:G,url:m(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",st).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),t:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",st).getRegex()},lt={...at,br:m(M).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:E,gfm:q,pedantic:C},ut={normal:it,gfm:at,breaks:lt,pedantic:ot},pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ht=t=>pt[t];function ft(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,ht)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,ht);return t}function dt(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function gt(t,e){let n=t.replace(b.findPipe,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(b.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;e>n.length;)n.push("");for(;n.length>r;r++)n[r]=n[r].trim().replace(b.slashPipe,"|");return n}function mt(t,e,n){let r=t.length;if(0===r)return"";let s=0;for(;r>s&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function kt(t,e,n,r,s){let i=e.href,o=e.title||null,a=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var bt=class{options;rules;lexer;constructor(t){this.options=t||f}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:mt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let s=r[1];return e.split("\n").map(t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return s.length>r.length?t:t.slice(s.length)}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=mt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:mt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=mt(e[0],"\n").split("\n"),n="",r="",s=[];for(;t.length>0;){let e,i=!1,o=[];for(e=0;t.length>e;e++)if(this.rules.other.blockquoteStart.test(t[e]))o.push(t[e]),i=!0;else{if(i)break;o.push(t[e])}t=t.slice(e);let a=o.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===t.length)break;let u=s.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.blockquote(i);s[s.length-1]=o,n=n.substring(0,n.length-e.raw.length)+o.raw,r=r.substring(0,r.length-e.text.length)+o.text;break}if("list"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.list(i);s[s.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-e.raw.length)+o.raw,t=i.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\"+n.slice(-1):"\\"+n,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;t;){let n=!1,r="",a="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],u=!l.trim(),p=0;if(this.options.pedantic?(p=2,a=l.trimStart()):u?p=e[1].length+1:(p=e[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=l.slice(p),p+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p);for(;t;){let h,f=t.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||i.test(c)||o.test(c)||e.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)<p&&c.trim()){if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||i.test(l)||n.test(l))break;a+="\n"+c}else a+="\n"+h.slice(p);!u&&!c.trim()&&(u=!0),r+=f+"\n",t=t.substring(f.length+1),l=h.slice(p)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let h,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(h="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:r,task:!!f,checked:h,loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd();for(let t=0;s.items.length>t;t++)if(this.lexer.state.top=!1,s.items[t].tokens=this.lexer.blockTokens(s.items[t].text,[]),!s.loose){let e=s.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));s.loose=n}if(s.loose)for(let t=0;s.items.length>t;t++)s.items[t].loose=!0;return s}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=gt(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;n.length>t;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(let t of s)i.rows.push(gt(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=mt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return-1;let e=0;for(let n=0;t.length>n;n++)if("\\"===t[n])n++;else if("("===t[n])e++;else if(")"===t[n]&&(e--,0>e))return n;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),kt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return kt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,s,i=[...r[0]].length-1,o=i,a=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+i);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);let e=[...r[0]][0].length,l=t.slice(0,i+r.index+e+s);if(Math.min(i,s)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline.t.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],escaped:this.lexer.state.inRawBlock}}},xt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:b,block:ct.normal,inline:ut.normal};this.options.pedantic?(e.block=ct.pedantic,e.inline=ut.pedantic):this.options.gfm&&(e.block=ct.gfm,e.inline=this.options.breaks?ut.breaks:ut.gfm),this.tokenizer.rules=e}static get rules(){return{block:ct,inline:ut}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(b.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;this.inlineQueue.length>t;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},e.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let s=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r=t,s=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)t.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,o="";for(;t;){let n;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length);let r=e.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,o)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}let s=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),i=!0;let r=e.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},wt=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(b.notSpaceStart)?.[0],s=t.replace(b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ft(r)+'">'+(n?s:ft(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:ft(s,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;t.items.length>e;e++)r+=this.listitem(t.items[e]);let s=e?"ol":"ul";return"<"+s+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+ft(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;t.header.length>e;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;t.rows.length>e;e++){let s=t.rows[e];n="";for(let t=0;s.length>t;t++)n+=this.tablecell(s[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ft(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=dt(t);if(null===s)return r;let i='<a href="'+(t=s)+'"';return e&&(i+=' title="'+ft(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=dt(t);if(null===s)return ft(n);let i=`<img src="${t=s}" alt="${n}"`;return e&&(i+=` title="${ft(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ft(t.text)}},yt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},It=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yt}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=s,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){n+=e||"";continue}}let i=s;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,o=this.renderer.text(s);for(;t.length>r+1&&"text"===t[r+1].type;)s=t[++r],o+="\n"+this.renderer.text(s);n+=e?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=t||"";continue}}let i=s;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},$t=class{options;block;constructor(t){this.options=t||f}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?xt.lex:xt.lexInline}provideParser(){return this.block?It.parse:It.parseInline}},vt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=It;Renderer=wt;TextRenderer=yt;Lexer=xt;Tokenizer=bt;Hooks=$t;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let s=t[r].flat(1/0);n=n.concat(this.walkTokens(s,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new wt(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new bt(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new $t;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],s=e[n];e[n]=$t.passThroughHooks.has(n)?t=>{if(this.defaults.async&&$t.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return s.call(e,n)})();let i=r.call(e,t);return s.call(e,i)}:(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await s.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return xt.lex(t,e??this.defaults)}parser(t,e){return It.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(e):e,r=await(s.hooks?await s.hooks.provideLexer():t?xt.lex:xt.lexInline)(n,s),i=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(i,s.walkTokens));let o=await(s.hooks?await s.hooks.provideParser():t?It.parse:It.parseInline)(i,s);return s.hooks?await s.hooks.postprocess(o):o})().catch(i);try{s.hooks&&(e=s.hooks.preprocess(e));let n=(s.hooks?s.hooks.provideLexer():t?xt.lex:xt.lexInline)(e,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():t?It.parse:It.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+ft(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},St=new vt;function At(t,e){return St.parse(t,e)}function jt(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})}At.options=At.setOptions=function(t){return St.setOptions(t),d(At.defaults=St.defaults),At},At.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},At.defaults=f,At.use=function(...t){return St.use(...t),d(At.defaults=St.defaults),At},At.walkTokens=function(t,e){return St.walkTokens(t,e)},At.parseInline=St.parseInline,At.Parser=It,At.parser=It.parse,At.Renderer=wt,At.TextRenderer=yt,At.Lexer=xt,At.lexer=xt.lex,At.Tokenizer=bt,At.Hooks=$t,At.parse=At,"function"==typeof SuppressedError&&SuppressedError;const _t=Rt;function zt(){const t=Rt;if(!Ut())return t(139);try{if(typeof require!==t(181)){const e=require("crypto");if(e.randomUUID)return e[t(168)]()}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t(138)](/[xy]/g,function(e){const n=t,r=16*Math[n(137)]()|0;return("x"===e?r:3&r|8)[n(146)](16)})}catch(e){return"session-"+Date[t(189)]()+"-"+Math[t(137)]()[t(146)](36)[t(186)](2,11)}}function Rt(t,e){return t-=132,Zt()[t]}!function(){const t=Rt,e=Zt();for(;;)try{if(475668==-parseInt(t(178))/1+-parseInt(t(155))/2+-parseInt(t(166))/3*(parseInt(t(190))/4)+parseInt(t(195))/5*(parseInt(t(144))/6)+parseInt(t(164))/7+parseInt(t(143))/8*(parseInt(t(174))/9)+-parseInt(t(160))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let Tt=1e3;function Et(t){Tt=t}let Dt=null;const qt=new Map;let Ct=!1;const Mt=36e5,Ot=_t(140),Pt=_t(133),Lt={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date.now(),lastUsedAt:Date[_t(189)](),sessionId:zt()};let Nt=null;function Zt(){const t=["warn","env","785rAYEZW","then","POST","[mmarked] ⚠️ Remote license validation not supported on Node.js ","[mmarked] Remote validation failed:","[mmarked] License configured successfully","https://api.mathcrowd.cn/report-usage","result","clear","valid","random","replace","browser-session","https://api.mathcrowd.cn/validate-license","[mmarked] Validation cache cleared","[mmarked] Usage statistics reported successfully","808TmewTy","30630PeNfsQ","nodeVersion","toString",'">\n <defs>\n <style type="text/css">\n .mjx-warning-text { font-family: Arial, sans-serif; font-size: 14px; fill: #856404; }\n .mjx-warning-link { font-family: Arial, sans-serif; font-size: 14px; fill: #0066cc; text-decoration: underline; cursor: pointer; }\n </style>\n </defs>\n <rect width="800" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="1" rx="4"/>\n <text x="20" y="25" class="mjx-warning-text" font-weight="bold">⚠️ Non-Commercial Use Only</text>\n <text x="20" y="45" class="mjx-warning-text">This content uses @mathcrowd/mmarked without valid commercial license.</text>\n <text x="20" y="65" class="mjx-warning-text">For commercial use, contact: </text>\n <a href="mailto:charles@mathcrowd.cn">\n <text x="220" y="65" class="mjx-warning-link">charles@mathcrowd.cn</text>\n </a>\n</svg>',"No license configured. Please call configureLicense() with your API key.","lastUsedAt","log","versions","renderMarkdownCompact","apiKey","2.0.3","92246aEyxAZ","[mmarked] License validation error:","Network error during validation","[mmarked] License validation failed:","renderMarkdownCompactCalls","8931270LSoUkG","debug","current version","catch","4845358vvVQJK","lastReportedAt","6TFVmHn","statusText","randomUUID","renderMarkdownCalls","assign","node","sessionId","message","29313koAtUc","totalCalls","set","[mmarked] Usage stats reset","213826fGBAQU","stringify","error","undefined","Requires Node.js 18+ for fetch API support. ","timestamp","application/json","substring","slice","[mmarked] Usage reporting error:","get","now","387784tnXirU","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.",'<svg xmlns="http://www.w3.org/2000/svg" class="MJX-svg-equation" role="img" focusable="false" viewBox="0 0 800 80" style="vertical-align: -0.5ex; margin: 1em 0; max-width: 100%; display: block;" aria-label="Non-commercial use warning" data-formula-id="'];return(Zt=function(){return t})()}function Ut(){const t=_t;return"undefined"!=typeof process&&null!=process[t(151)]&&null!=process[t(151)].node}function Bt(){return jt(this,void 0,void 0,function*(){const t=Rt;var e;if(!Ut())return;const n=Dt;if(!n||!n[t(153)])return;const r=Date[t(189)]();if(Lt[t(165)]&&18e5>r-Lt[t(165)])return;const s=Pt;try{const i=Object[t(170)](Object[t(170)]({},Lt),{apiKey:n.apiKey,timestamp:r,nodeVersion:null===(e=process[t(151)])||void 0===e?void 0:e[t(171)]});typeof fetch!==t(181)&&(yield fetch(s,{method:t(197),headers:{"Content-Type":t(184)},body:JSON[t(179)](i)}),Lt.lastReportedAt=r,console.debug(t(142)))}catch(e){console[t(161)]("[mmarked] Failed to report usage statistics:",e)}})}function Ht(t){const e=_t;var n;Ut()&&(Lt[e(175)]++,Lt[e(149)]=Date.now(),"renderMarkdown"===t?Lt[e(169)]++:t===e(152)&&Lt[e(159)]++,(null==Dt?void 0:Dt.apiKey)&&(Lt[e(153)]=Dt[e(153)],Lt[e(145)]=null===(n=process[e(151)])||void 0===n?void 0:n[e(171)]))}function Gt(){return!Ut()||Wt()?"":Lt.totalCalls>0&&Lt.totalCalls%Tt===0?function(){const t=_t,e=Date[t(189)](),n=Math.random()[t(146)](36)[t(185)](2,9);return t(192)+n+'" data-timestamp="'+e+t(147)}():""}function Ft(t){const e=_t;Dt=t,function(){const t=_t;Ut()&&Dt&&Dt.apiKey&&(Nt&&clearInterval(Nt),Nt=setInterval(()=>{const t=Rt;Bt()[t(163)](e=>{const n=t;console[n(161)](n(187),e)})},36e5),Bt()[t(163)](e=>{console[t(161)]("[mmarked] Initial usage reporting error:",e)}))}(),console.log(e(132))}function Vt(){return Dt}function Xt(){return jt(this,void 0,void 0,function*(){const t=Rt,e=Dt;if(!e||!e[t(153)])return{valid:!1,message:t(148)};const{apiKey:n}=e,r=qt[t(188)](n);if(r&&Date[t(189)]()-r[t(183)]<Mt)return{valid:r[t(134)]};const s=yield function(t,e){return jt(this,void 0,void 0,function*(){const n=Rt;var r;try{if(typeof fetch===n(181)){const t=null===(r=process[n(151)])||void 0===r?void 0:r[n(171)];return console[n(193)](n(198)+(t||n(162))+". "+n(182)+n(191)),{valid:!1,message:"Fetch API not available. Requires Node.js 18+ or use custom validator."}}const s=yield fetch(e,{method:n(197),headers:{"Content-Type":"application/json"},body:JSON[n(179)]({apiKey:t,product:"mmarked",version:n(154)})});return s.ok?yield s.json():{valid:!1,message:"Validation failed: "+s[n(167)]}}catch(t){return console.warn(n(199),t),{valid:!1,message:n(157)}}})}(n,Ot);return qt[t(176)](n,{result:s[t(136)],timestamp:Date.now()}),s})}function Wt(){const t=_t;if(!Ut())return!1;!function(){const t=_t;if(!Ut())return;if(null==Dt?void 0:Dt[t(153)])return;const e=process[t(194)].MMARKED_API_KEY;e&&Ft({apiKey:e})}();const e=Dt;if(!e||!e[t(153)])return!1;const{apiKey:n}=e,r=qt[t(188)](n);return r?(Date.now()-r[t(183)]>=Mt&&Xt()[t(196)](e=>{const n=t;return!e[n(136)]&&console[n(193)](n(158),e[n(173)]),e})[t(163)](e=>{const n=t;throw console[n(180)](n(156),e),e}),r.result):(!Ct&&(Ct=!0,Xt().then(e=>{const n=t;return!e[n(136)]&&console.warn(n(158),e[n(173)]),e}).catch(e=>{const n=t;throw console[n(180)](n(156),e),e})),!0)}function Kt(){const t=_t;qt.clear(),Ct=!1,console[t(150)](t(141))}function Qt(){const t=_t;Lt[t(175)]=0,Lt[t(169)]=0,Lt[t(159)]=0,Lt.firstUsedAt=Date.now(),Lt[t(149)]=Date.now(),Lt[t(165)]=void 0,Lt[t(172)]=zt(),Dt=null,qt[t(135)](),Ct=!1,console.log(t(177)),console.log(t(141))}var Jt,Yt,te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ee={exports:{}},ne=(Jt||(Jt=1,Yt=ee,function(){var n="input is invalid type",r="object"==typeof window,s=r?window:{};s.JS_MD5_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,o=!s.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;o?s=te:i&&(s=self);var a,l=!s.JS_MD5_NO_COMMON_JS&&Yt.exports,c=!s.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],h=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(c){var m=new ArrayBuffer(68);a=new Uint8Array(m),g=new Uint32Array(m)}var k=Array.isArray;!s.JS_MD5_NO_NODE_JS&&k||(k=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var b=ArrayBuffer.isView;!c||!s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&b||(b=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw Error(n);if(c&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!k(t)&&!b(t))throw Error(n);return[t,!1]},w=function(t){return function(e){return new I(!0).update(e)[t]()}},y=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function I(t){if(t)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=a;else if(c){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function $(t,e){var n,r=x(t);if(t=r[0],r[1]){var s,i=[],o=t.length,a=0;for(n=0;o>n;++n)128>(s=t.charCodeAt(n))?i[a++]=s:2048>s?(i[a++]=192|s>>>6,i[a++]=128|63&s):55296>s||s>=57344?(i[a++]=224|s>>>12,i[a++]=128|s>>>6&63,i[a++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++n)),i[a++]=240|s>>>18,i[a++]=128|s>>>12&63,i[a++]=128|s>>>6&63,i[a++]=128|63&s);t=i}t.length>64&&(t=new I(!0).update(t).array());var l=[],c=[];for(n=0;64>n;++n){var u=t[n]||0;l[n]=92^u,c[n]=54^u}I.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}I.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");for(var e,n,r=x(t),s=r[1],i=0,o=(t=r[0]).length,a=this.blocks,l=this.buffer8;o>i;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),s)if(c)for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?l[n++]=e:2048>e?(l[n++]=192|e>>>6,l[n++]=128|63&e):55296>e||e>=57344?(l[n++]=224|e>>>12,l[n++]=128|e>>>6&63,l[n++]=128|63&e):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),l[n++]=240|e>>>18,l[n++]=128|e>>>12&63,l[n++]=128|e>>>6&63,l[n++]=128|63&e);else for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?a[n>>>2]|=e<<h[3&n++]:2048>e?(a[n>>>2]|=(192|e>>>6)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]):55296>e||e>=57344?(a[n>>>2]|=(224|e>>>12)<<h[3&n++],a[n>>>2]|=(128|e>>>6&63)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),a[n>>>2]|=(240|e>>>18)<<h[3&n++],a[n>>>2]|=(128|e>>>12&63)<<h[3&n++],a[n>>>2]|=(128|e>>>6&63)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]);else if(c)for(n=this.start;o>i&&64>n;++i)l[n++]=t[i];else for(n=this.start;o>i&&64>n;++i)a[n>>>2]|=t[i]<<h[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,64>n?this.start=n:(this.start=n-64,this.hash(),this.hashed=!0)}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=p[3&e],56>e||(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},I.prototype.hash=function(){var t,e,n,r,s,i,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+o[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,e=((e+=((t=((t+=((r=this.h3)^e&((n=this.h2)^r))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+r|0)&(r^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[14]-1416354905)<<15|n>>>17)+r|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[10]-1051523)<<15|n>>>17)+r|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[6]-1560198380)<<15|n>>>17)+r|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[2]+718787259)<<15|n>>>17)+r|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},I.prototype.toString=I.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return u[t>>>4&15]+u[15&t]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>28&15]+u[t>>>24&15]+u[e>>>4&15]+u[15&e]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>28&15]+u[e>>>24&15]+u[n>>>4&15]+u[15&n]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>28&15]+u[n>>>24&15]+u[r>>>4&15]+u[15&r]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>28&15]+u[r>>>24&15]},I.prototype.array=I.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},I.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},I.prototype.buffer=I.prototype.arrayBuffer,I.prototype.base64=function(){for(var t,e,n,r="",s=this.array(),i=0;15>i;)t=s[i++],e=s[i++],n=s[i++],r+=d[t>>>2]+d[63&(t<<4|e>>>4)]+d[63&(e<<2|n>>>6)]+d[63&n];return r+(d[(t=s[i])>>>2]+d[t<<4&63]+"==")},($.prototype=new I).finalize=function(){if(I.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();I.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),I.prototype.finalize.call(this)}};var v=function(){var r=w("hex");o&&(r=function(r){var i,o=t,a=e.Buffer;return i=a.from&&!s.JS_MD5_NO_BUFFER_FROM?a.from:function(t){return new a(t)},function(t){if("string"==typeof t)return o.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw Error(n);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),k(t)||b(t)||t.constructor===a?o.createHash("md5").update(i(t)).digest("hex"):r(t)}}(r)),r.create=function(){return new I},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=w(a)}return r}();v.md5=v,v.md5.hmac=function(){var t=y("hex");t.create=function(t){return new $(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;f.length>e;++e){var n=f[e];t[n]=y(n)}return t}(),l?Yt.exports=v:s.md5=v}()),ee.exports);function re(t,e){return t-=232,se()[t]}function se(){const t=["33ijDSgx","replace","pop","686736kyWynO","versions","source","18356QYqejw","length","charAt","shift","slice","node","118472eqaqoi","class-","string","match","trim","70528oEHvyo","split","215099mXRDgr","270250OdMiCc","4749003DNRPhC","push","undefined","test","indexOf","14sgzMpz"];return(se=function(){return t})()}function ie(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch(t){return null}return t}!function(){const t=re,e=se();for(;;)try{if(200230==-parseInt(t(243))/1+-parseInt(t(257))/2*(-parseInt(t(251))/3)+-parseInt(t(236))/4+parseInt(t(244))/5+-parseInt(t(254))/6*(parseInt(t(250))/7)+-parseInt(t(241))/8+parseInt(t(245))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const oe={exec:()=>null};function ae(t,e){const n=re;let r=typeof t===n(238)?t:t[n(256)];e=e||"";const s={replace:(t,e)=>{const i=n;let o=typeof e===i(238)?e:e.source;return o=o[i(252)](/(^|[^[])\^/g,"$1"),r=r[i(252)](t,o),s},getRegex:()=>RegExp(r,e)};return s}const le=t=>{const e=re;return/^[a-z][\w-]*$/i[e(248)](t)?t:e(237)+ne.md5(t)};function ce(t){const e=t[re(239)](/^(.*?)(?:\s*=(\d*)(?:x(\d+))?)?$/);if(e){const t=e[1].trim();return{text:0===t.length?null:t,width:e[2]?parseInt(e[2],10):null,height:e[3]?parseInt(e[3],10):null}}return{text:null,width:null,height:null}}function ue(t,e){const n=re,r=t[n(252)](/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})[n(242)](/ \|/);let s=0;if(!r[0][n(240)]()&&r[n(233)](),r[n(258)]>0&&!r[r[n(258)]-1][n(240)]()&&r[n(253)](),e)if(r[n(258)]>e)r.splice(e);else for(;e>r.length;)r[n(246)]("");for(;s<r[n(258)];s++)r[s]=r[s][n(240)]()[n(252)](/\\\|/g,"|");return r}!function(){const t=fe,e=he();for(;;)try{if(523565==-parseInt(t(408))/1+parseInt(t(428))/2+parseInt(t(424))/3+parseInt(t(432))/4+-parseInt(t(438))/5+-parseInt(t(440))/6*(parseInt(t(444))/7)+parseInt(t(433))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const pe={paragraph({tokens:t}){const e=fe;if(1===t.length&&t[0].type===e(442)){const n=t[0];if(null===ie(n[e(427)]))return n[e(421)];let r="<figure>\n";if(r+=e(423),r+=this[e(442)](n)+"\n",r+="</section>\n",n[e(431)]){const{text:t}=ce(n[e(431)]);t&&(r+=e(415)+t+e(439))}return r+=e(434),r}return'<p class="paragraph">'+this[e(443)][e(404)](t)+"</p>\n"},list(t){const e=fe,n=t[e(399)],r=t[e(403)];let s="";for(let n=0;n<t[e(448)][e(445)];n++){const r=t[e(448)][n];s+=this[e(418)](r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(437)+r+'"':"")+e(446)+">\n"+s+"</"+i+">\n"},listitem(t){const e=fe;let n="";if(t[e(422)]){const r=this.checkbox({checked:!!t[e(406)]});t[e(426)]?t[e(409)][e(445)]>0&&t.tokens[0][e(416)]===e(410)?(t[e(409)][0][e(421)]=r+" "+t.tokens[0][e(421)],t[e(409)][0][e(409)]&&t.tokens[0][e(409)].length>0&&t[e(409)][0][e(409)][0].type===e(421)&&(t.tokens[0].tokens[0].text=r+" "+t[e(409)][0][e(409)][0].text)):t.tokens[e(430)]({type:e(421),raw:r+" ",text:r+" "}):n+=r+" "}return n+=this[e(443)][e(413)](t[e(409)],!!t[e(426)]),e(407)+n+e(417)},table(t){const e=fe;let n="",r="";for(let n=0;n<t[e(400)][e(445)];n++)r+=this[e(402)](t[e(400)][n]);n+=this.tablerow({text:r});let s="";for(let n=0;n<t.rows[e(445)];n++){const i=t[e(414)][n];r="";for(let t=0;i.length>t;t++)r+=this[e(402)](i[t]);s+=this[e(419)]({text:r})}s&&(s="<tbody>"+s+"</tbody>\n");let i="";return t.caption.text&&(i=e(415)+this[e(443)][e(404)]([t[e(405)]])+"</figcaption>\n"),e(429)+e(412)+e(441)+n+e(420)+s+"</table>\n"+i+e(434)},image(t){const e=fe,n=ie(t[e(427)]);if(null===n)return t.text;let r=e(425)+n+e(447)+t[e(421)]+'"';if(t[e(431)]){const{text:n,width:s,height:i}=ce(t[e(431)]);n&&(r+=' title="'+n+'"'),(s||i)&&(r+=e(411),s&&(r+=e(401)+s+e(436)),i&&(r+=e(435)+i+e(436)),r+='"')}return r+=">",r}};function he(){const t=['" alt="',"items","ordered","header","width:","tablecell","start","parseInline","caption","checked",'<li class="md-list-item">',"866864lfdQex","tokens","paragraph",' style="',"<table>\n","parse","rows","<figcaption>","type","</li>\n","listitem","tablerow","</thead>\n","text","task",'<section class="img-container">\n',"454743ENOKFj",'<img src="',"loose","href","336260mGzDpw","<figure>\n","unshift","title","1338664nOOuNk","13920216NxXiUH","</figure>\n","height:","px;",' start="',"2390605zJPFpK","</figcaption>\n","225366HzGXmw","<thead>\n","image","parser","98GgybqR","length",' class="md-list"'];return(he=function(){return t})()}function fe(t,e){return t-=399,he()[t]}const de={},ge=Xe;function me(){const t=["|(?!_)[punct](_+)(?!_)(?=[punct])"," {0,3}(?<!>)>(?!>)","^ *([^\\n ].*)\\n","reflink","|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)","blockquote","|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|[\\s](\\*+)(?!\\*)(?=[punct])"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","|[^punct\\s](\\*+)(?=[^punct\\s])","|table","heading","2577180xsfzzQ","10OLDtuk","(?: {4}| {0,3}\t)[^\\n]","|[^_]+(?=[^_])"," {0,3}(?:[*+-]|1[.)]) ","208272iEVLpD","code","getRegex","((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)","|(?!_)[punct](_+)(?=[\\s]|$)","(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)","2120042smnMOS","tag","(?:--\x3e|$)","attribute","58051YSfoRb","1NQFlZU","assign","|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>","|lheading","^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)","^comment","html","(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)","|comment[^\\n]*(\\n+|$)","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","email","|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])","nolink","635550SFhktb","address|article|aside|base|basefont|blockquote|body|caption","reflink|nolink(?!\\()","|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)","comment","8YTvVys","title","|^<![a-zA-Z]+\\s[\\s\\S]*?>","|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>","|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)","\\p{P}\\p{S}","scheme","553695VLHbfa","|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n","label","fences","|tr|track|ul"," {0,3}>","|<![A-Z][\\s\\S]*?(?:>\\n*|$)","<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)"," {0,3}#{1,6}(?:\\s|$)","|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])","18945873zkDvwu","paragraph","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","--\x3e","ref","list","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)","replace","table"];return(me=function(){return t})()}!function(){const t=Xe,e=me();for(;;)try{if(668641==parseInt(t(122))/1*(-parseInt(t(117))/2)+parseInt(t(147))/3+parseInt(t(187))/4+-parseInt(t(182))/5+-parseInt(t(135))/6+-parseInt(t(121))/7*(-parseInt(t(140))/8)+-parseInt(t(160))/9*(-parseInt(t(183))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ke=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,be=/(?:[*+-]|\d{1,9}[.)])/,xe=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/)[ge(168)](/bull/g,be)[ge(168)](/blockCode/g,/(?: {4}| {0,3}\t)/)[ge(168)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[ge(168)](/blockquote/g,/ {0,3}>/)[ge(168)](/heading/g,/ {0,3}#{1,6}/)[ge(168)](/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),we=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ye=/(?!\s*\])(?:\\.|[^[\]\\])+/,Ie=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[ge(168)](ge(150),ye)[ge(168)](ge(141),/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[ge(189)](),$e=ae(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/)[ge(168)](/bull/g,be).getRegex(),ve=ge(136)+"|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+ge(148)+ge(157)+ge(152),Se=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=ae("^ {0,3}(?:"+ge(155)+ge(130)+ge(162)+ge(154)+ge(144)+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+ge(176)+ge(158)+")","i").replace("comment",Se).replace(ge(118),ve)[ge(168)](ge(120),/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i)[ge(189)](),je=ae(we)[ge(168)]("hr",ke).replace(ge(181),ge(156))[ge(168)](ge(125),"")[ge(168)](ge(180),"")[ge(168)](ge(175)," {0,3}>")[ge(168)](ge(151)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[ge(168)](ge(165),ge(186))[ge(168)](ge(128),ge(131))[ge(168)](ge(118),ve)[ge(189)](),_e={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[ge(168)](ge(161),je)[ge(189)](),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Ie,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ke,html:Ae,lheading:xe,list:$e,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:je,table:oe,text:/^[^\n]+/},ze=ae(ge(172)+" {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)"+ge(116))[ge(168)]("hr",ke)[ge(168)]("heading",ge(156)).replace(ge(175),ge(153))[ge(168)](ge(188),"(?: {4}| {0,3}\t)[^\\n]")[ge(168)](ge(151)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[ge(168)]("list",ge(186))[ge(168)](ge(128),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)")[ge(168)](ge(118),ve)[ge(189)](),Re=Object.assign(Object[ge(123)]({},_e),{table:ze,paragraph:ae(we)[ge(168)]("hr",ke)[ge(168)](ge(181),ge(156))[ge(168)]("|lheading","")[ge(168)](ge(169),ze)[ge(168)]("blockquote",ge(153))[ge(168)](ge(151)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[ge(168)](ge(165),ge(186))[ge(168)]("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace(ge(118),ve).getRegex()}),Te=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,Ee=ge(145),De=ae(/^((?![*_])[\spunctaio])/,"u")[ge(168)](/punctuation/g,Ee)[ge(189)](),qe=ae(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ee)[ge(189)](),Ce=ae(ge(167)+"|[^*]+(?=[^*])"+ge(166)+ge(138)+ge(159)+ge(177)+ge(133)+ge(179),"gu")[ge(168)](/punct/g,Ee).getRegex(),Me=ae(ge(126)+ge(185)+ge(115)+ge(174)+"|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])"+ge(170),"gu").replace(/punct/g,Ee).getRegex(),Oe=ae(/\\([punct])/,"gu")[ge(168)](/punct/g,Ee)[ge(189)](),Pe=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)[ge(168)](ge(146),/[a-z][a-z\d+.-]{1,31}/i)[ge(168)](ge(132),/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i)[ge(189)](),Le=ae(Se)[ge(168)](ge(119),ge(163)).getRegex(),Ne=ae(ge(127)+"|^</[a-zA-Z][\\w:-]*\\s*>"+ge(143)+"|^<\\?[\\s\\S]*?\\?>"+ge(142)+ge(124))[ge(168)](ge(139),Le)[ge(168)](ge(120),/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i)[ge(189)](),Ze=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Ue=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace(ge(150),Ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/)[ge(168)](ge(141),/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=ae(/^!?\[(label)\]\[(ref)\]/)[ge(168)]("label",Ze).replace("ref",ye)[ge(189)](),He=ae(/^!?\[(ref)\](?:\[\])?/).replace(ge(164),ye)[ge(189)](),Ge={t:oe,anyPunctuation:Oe,autolink:Pe,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:oe,emStrongLDelim:qe,emStrongRDelimAst:Ce,emStrongRDelimUnd:Me,escape:Te,link:Ue,nolink:He,punctuation:De,reflink:Be,reflinkSearch:ae(ge(137),"g")[ge(168)](ge(173),Be)[ge(168)](ge(134),He)[ge(189)](),tag:Ne,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:oe},Fe=Object[ge(123)](Object[ge(123)]({},Ge),{escape:ae(Te)[ge(168)]("])","~|])")[ge(189)](),url:ae(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i")[ge(168)](ge(132),/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i)[ge(189)](),t:/(?:[^?!.,:;*_'"~()&]|\([^)]*\)|&(?![a-z\d]+;$)|[?!.,:;*_'"~)]+(?!$))+/i,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[\w.!#$%&'*+/=?`{|}~-]+@)|[\s\S]*?(?:(?=[\\<![`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^\w.!#$%&'*+/=?`{|}~-](?=[\w.!#$%&'*+/=?`{|}~-]+@)))/}),Ve=Object[ge(123)](Object.assign({},Fe),{br:oe,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/});function Xe(t,e){return t-=115,me()[t]}const We={block:Object[ge(123)](Object.assign({},Re),{lheading:oe,code:oe,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:ae(we)[ge(168)]("hr",ke)[ge(168)](ge(181)," {0,3}#{1,6}(?:\\s|$)")[ge(168)](ge(125),"")[ge(168)](ge(169),ze)[ge(168)](ge(175),ge(171)).replace(ge(151),ge(149))[ge(168)](ge(165),ge(186))[ge(168)](ge(128),ge(131))[ge(168)](ge(118),ve)[ge(189)](),table:ae(ge(172)+ge(178)+ge(190)+ge(129)).replace("hr",ke)[ge(168)](ge(181),ge(156))[ge(168)]("blockquote",ge(153))[ge(168)](ge(188),ge(184))[ge(168)](ge(151),ge(149)).replace(ge(165),ge(186))[ge(168)](ge(128),ge(131))[ge(168)](ge(118),ve)[ge(189)](),blockquote:ae(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/)[ge(168)]("paragraph",je).getRegex()}),inline:Ve};function Ke(t,e){return t-=263,Qe()[t]}function Qe(){const t=["push","table","state","min","1431852HoYLvM","19661424REzWoO","1599kLoNEg","inlineTokens","lexer","7GyAVWn","map","emStrongRDelimAst","top","length","list","exec","punctuation","fences","1194FevOsn","\n $1","join","substring","2440jkqrZe","18JcOwbG","align","lastIndex","match","slice","strong","290WIEbPw","center","right","1200080IZvERT","split","type","blockquote","block","inline","text","emStrongLDelim","138479CbbsTp","emStrongRDelimUnd","414FojaNH","rows","code","test","trim","replace","13AtvDxI","3166736lbcURN","raw","left","anyPunctuation"];return(Qe=function(){return t})()}!function(){const t=Ke,e=Qe();for(;;)try{if(402341==parseInt(t(294))/1*(parseInt(t(270))/2)+-parseInt(t(311))/3*(parseInt(t(274))/4)+-parseInt(t(284))/5+parseInt(t(309))/6*(parseInt(t(314))/7)+-parseInt(t(301))/8*(parseInt(t(275))/9)+-parseInt(t(281))/10*(parseInt(t(292))/11)+parseInt(t(310))/12*(parseInt(t(300))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Je={table(t){const e=Ke,n=We[e(288)].table[e(267)](t);if(!n)return;if(!/[:|]/[e(297)](n[2]))return;const r=ue(n[1]),s=n[2][e(299)](/^\||\| *$/g,"").split("|"),i=n[3]&&n[3][e(298)]()?n[3][e(299)](/\n[ \t]*$/,"")[e(285)]("\n"):[],o=n[5],a={type:e(306),raw:n[0],header:[],align:[],rows:[],caption:{type:e(290),text:o,raw:o,tokens:this[e(313)].inline(o)}};if(r[e(265)]===s.length){for(const t of s)/^ *-+: *$/.test(t)?a[e(276)][e(305)](e(283)):/^ *:-+: *$/[e(297)](t)?a[e(276)].push(e(282)):/^ *:-+ *$/[e(297)](t)?a[e(276)][e(305)](e(303)):a[e(276)].push(null);for(let t=0;t<r[e(265)];t++)a.header.push({text:r[t],tokens:this[e(313)][e(289)](r[t]),header:!0,align:a[e(276)][t]});for(const t of i)a[e(295)][e(305)](ue(t,a.header[e(265)]).map((t,n)=>{const r=e;return{text:t,tokens:this[r(313)].inline(t),header:!1,align:a[r(276)][n]}}));return a}},lheading(){},code(){},fences(t){const e=Ke,n=We[e(288)][e(269)][e(267)](t);if(n){const t=n[0],r=function(t,e){const n=Ke,r=t.match(/^(\s+)```/);if(null===r)return e;const s=r[1];return e[n(285)]("\n")[n(315)](t=>{const e=n,r=t[e(278)](/^\s+/);if(null===r)return t;const[i]=r;return i[e(265)]<s[e(265)]?t:t[e(279)](s[e(265)])})[n(272)]("\n")}(t,n[3]||"");return{type:e(296),raw:t,lang:n[2]?n[2].trim()[e(299)](We[e(289)][e(304)],"$1"):n[2],text:r}}},br(){},emStrong(t,e,n=""){const r=Ke;let s=We[r(289)][r(291)][r(267)](t);if(s&&(!s[3]||!n[r(278)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||We[r(289)][r(268)][r(267)](n))){const n=[...s[0]][r(265)]-1;let i,o,a=n,l=0;const c="*"===s[0][0]?We[r(289)][r(263)]:We[r(289)][r(293)];for(c[r(277)]=0,e=e[r(279)](-1*t[r(265)]+n);null!=(s=c[r(267)](e));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i][r(265)],s[3]||s[4]){a+=o;continue}if((s[5]||s[6])&&n%3&&!((n+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math[r(308)](o,o+a+l);const e=[...s[0]][0][r(265)],c=t.slice(0,n+s.index+e+o);if(Math[r(308)](n,o)%2){const t=c[r(279)](1,-1);return{type:"em",raw:c,text:t,tokens:this[r(313)][r(312)](t)}}const u=c.slice(2,-2);return{type:r(280),raw:c,text:u,tokens:this[r(313)][r(312)](u)}}}},blockquote(t){const e=Ke,n=We[e(288)][e(287)][e(267)](t);if(n){let t=function(t){const e=re,n=t[e(258)];if(0===n)return"";let r=0;for(;n>r&&"\n"===t[e(232)](n-r-1);)r++;return t[e(234)](0,n-r)}(n[0])[e(285)]("\n"),r="",s="";const i=[];for(;t[e(265)]>0;){let n=!1;const o=[];let a;for(a=0;a<t[e(265)];a++)if(/^ {0,3}>/.test(t[a]))o[e(305)](t[a]),n=!0;else{if(n)break;o[e(305)](t[a])}t=t[e(279)](a);const l=o.join("\n"),c=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,e(271))[e(299)](/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this[e(313)][e(307)][e(264)];if(this[e(313)][e(307)].top=!0,this.lexer.blockTokens(c,i,!0),this[e(313)][e(307)][e(264)]=u,0===t[e(265)])break;const p=i[i[e(265)]-1];if((null==p?void 0:p.type)===e(296))break;if((null==p?void 0:p.type)===e(287)){const n=p,o=n.raw+"\n"+t[e(272)]("\n"),a=this[e(287)](o);i[i[e(265)]-1]=a,r=r[e(273)](0,r[e(265)]-n[e(302)][e(265)])+a.raw,s=s[e(273)](0,s[e(265)]-n[e(290)][e(265)])+a[e(290)];break}if("list"===(null==p?void 0:p[e(286)])){const n=p,o=n.raw+"\n"+t[e(272)]("\n"),a=this[e(266)](o);i[i[e(265)]-1]=a,r=r.substring(0,r[e(265)]-p.raw[e(265)])+a.raw,s=s[e(273)](0,s[e(265)]-n[e(302)].length)+a[e(302)],t=o[e(273)](i[i[e(265)]-1][e(302)][e(265)]).split("\n");continue}}return{type:e(287),raw:r,tokens:i,text:s}}}};function Ye(t,e){return t-=175,tn()[t]}function tn(){var t=["58248gRMpGI","24BZXIXQ","10HZOqnm","3728226NjBIun","7266919DmHUVJ","1242246iyHkly","441UvIKAU","7603089EsKQTl","1030GhFfZa","1425078paEuCj","2VUppUF","36qKSJZI","8648vPGJEM"];return(tn=function(){return t})()}!function(){for(var t=Ye,e=tn();;)try{if(711058==-parseInt(t(187))/1*(-parseInt(t(179))/2)+parseInt(t(185))/3+parseInt(t(181))/4*(-parseInt(t(177))/5)+parseInt(t(182))/6*(parseInt(t(175))/7)+parseInt(t(183))/8*(parseInt(t(178))/9)+parseInt(t(184))/10*(-parseInt(t(186))/11)+parseInt(t(180))/12*(-parseInt(t(176))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const en=sn;function nn(){const t=["Error","ttype","9LeiyYi","info","Info","^ {0,3}!!![","indexOf","warn","8163hjPzhq","alert","parser","106437HSVyey","icon","Warn",'<p class="heading">',"</span> ","exec","6220gZLGao","574804nVLior","true","597684fkzrND","parseInline","724564NcVWVm","21959608SFcFpy","<span class='title'>","tokens","title","trim","5TGchvs",'<section class="alert ',"49RmQGIw","inlineTokens","lexer","1417648wHvvSv",'<p class="content paragraph">'];return(nn=function(){return t})()}var rn;function sn(t,e){return t-=476,nn()[t]}!function(){const t=sn,e=nn();for(;;)try{if(749068==parseInt(t(507))/1+-parseInt(t(479))/2*(parseInt(t(498))/3)+parseInt(t(483))/4*(-parseInt(t(489))/5)+parseInt(t(481))/6*(-parseInt(t(491))/7)+-parseInt(t(494))/8+parseInt(t(504))/9*(parseInt(t(478))/10)+parseInt(t(484))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=sn;t[e(509)]=e(503),t.Success="success",t[e(496)]="error",t.Info=e(499)}(rn||(rn={}));const on={name:en(505),level:"block",start(t){const e=en;return t[e(502)](e(501))},tokenizer(t){const e=en;var n,r,s,i;const o=/^ {0,3}(!{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)(?:,([^\],]*))?(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(477)](t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(488)](),a=null===(r=o[3])||void 0===r?void 0:r.trim(),l=null===(s=o[4])||void 0===s?void 0:s[e(488)](),c=null===(i=o[5])||void 0===i?void 0:i[e(488)]();return{type:e(505),raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(493)][e(492)](c)}}},renderer(t){const e=en;var n;let r="";if(t[e(508)]===e(480))switch(t.ttype){case rn.Warn:t[e(508)]="⚠️";break;case rn.Success:t.icon="🎉";break;case rn[e(496)]:t.icon="⛔";break;case rn[e(500)]:t[e(508)]="ℹ️"}const s=void 0!==t.icon?'<span class="icon">'+t[e(508)]+e(476):"";return r+=e(490)+t[e(497)]+'">',t[e(487)]&&(r+=e(510)+s+e(485)+t[e(487)]+"</span></p>"),r+=e(495)+(t.title?"":s)+this[e(506)][e(482)](null!==(n=t[e(486)])&&void 0!==n?n:[])+"</p>",r+="</section>",r}};function an(t){return(t||"").match(/\S*/)[0]}function ln(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const cn=/[&<>"']/,un=RegExp(cn.source,"g"),pn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hn=RegExp(pn.source,"g"),fn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dn=t=>fn[t];function gn(t,e){if(e){if(cn.test(t))return t.replace(un,dn)}else if(pn.test(t))return t.replace(hn,dn);return t}const mn=bn;function kn(){const t=["261WckUfB","registerLanguage","1138358RDrUCK","json","318008wrrQOf","plaintext","python","latex","166092WNZoCR","javascript","847578xkGFGo","453011ijBLpz","2272500aWCjBm","value","1994424MBYlUo","217xGKVQS"];return(kn=function(){return t})()}function bn(t,e){return t-=365,kn()[t]}!function(){const t=bn,e=kn();for(;;)try{if(505101==parseInt(t(368))/1+-parseInt(t(375))/2+parseInt(t(367))/3+parseInt(t(371))/4+-parseInt(t(369))/5+-parseInt(t(365))/6*(parseInt(t(372))/7)+-parseInt(t(377))/8*(-parseInt(t(373))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n[mn(374)](mn(366),r),n.registerLanguage(mn(379),o),n.registerLanguage(mn(380),i),n[mn(374)](mn(376),s);const xn=new vt(function(t){if("function"==typeof t&&(t={highlight:t}),!t||"function"!=typeof t.highlight)throw Error("Must provide highlight function");return"string"!=typeof t.langPrefix&&(t.langPrefix="language-"),"string"!=typeof t.emptyLangClass&&(t.emptyLangClass=""),{async:!!t.async,walkTokens(e){if("code"!==e.type)return;const n=an(e.lang);if(t.async)return Promise.resolve(t.highlight(e.text,n,e.lang||"")).then(ln(e));const r=t.highlight(e.text,n,e.lang||"");if(r instanceof Promise)throw Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");ln(e)(r)},useNewRenderer:!0,renderer:{code(e,n,r){"object"==typeof e&&(r=e.escaped,n=e.lang,e=e.text);const s=an(n),i=s?t.langPrefix+gn(s):t.emptyLangClass,o=i?` class="${i}"`:"";return e=e.replace(/\n$/,""),`<pre><code${o}>${r?e:gn(e,!0)}\n</code></pre>`}}}}({highlight(t,e){const r=mn,s=n.getLanguage(e)?e:r(378);return n.highlight(t,{language:s})[r(370)]}}));function wn(){const t=["131662hlwsEZ","type","88Ovjmrv","forEach","lexer","3744776Mimvfy","13706935MLxHxm","indexOf","10509qrXIDT","50MEWIPZ","9929152vCnlbm","raw","30xeITNC","145143NvLNyG","</section>\n",'<section class="gallery-wrapper">\n',"exec","219108ZQzxxr","tokens","28cOfTSl","block","gallery","blockTokens"];return(wn=function(){return t})()}const yn=In;function In(t,e){return t-=404,wn()[t]}!function(){const t=In,e=wn();for(;;)try{if(976746==parseInt(t(424))/1*(parseInt(t(405))/2)+parseInt(t(413))/3*(parseInt(t(407))/4)+parseInt(t(414))/5*(-parseInt(t(422))/6)+-parseInt(t(410))/7+-parseInt(t(415))/8+parseInt(t(418))/9*(-parseInt(t(417))/10)+parseInt(t(411))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const $n={name:yn(426),level:yn(425),start:t=>t[yn(412)]("!!!"),tokenizer(t){const e=yn,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(421)](t);if(n){const t=n[2];return{type:e(426),raw:n[0],text:t,tokens:this[e(409)][e(404)](t)}}},renderer(t){const e=yn;var n;let r='<section class="gallery-container">\n';return r+=e(420),null===(n=t[e(423)])||void 0===n||n[e(408)](t=>{const n=e;var s;"paragraph"===t[n(406)]&&(null===(s=t[n(423)])||void 0===s||s[n(408)](t=>{const e=n;"image"===t[e(406)]&&(r+=xn.parse(t[e(416)]))}))}),r+=e(419),r+="</section>\n",r}},vn=jn;function Sn(){const t=['<li class="footnote-def" key="',"exec","length","number",' <a href="#footnote-ref-',"block","header","replaceAll","6377485fywugn","table","1569218RdjaXY","key","6159420LUftsg","type","map","]</a></sup></span>","parseInline","isolated","lexer","</ol>","6MOtYsR","indexOf","caption","trim","tokens",'"> ⬅ </a>','">[',"footnoteRef",'"><sup><a href="#footnote-','<span class="footnote-ref" id="footnote-ref-',"872twdtKd","4129479nxAMIV","374076jglcPZ","2107917XHPoVU","push",'" id="footnote-',"join","2EPUpCO","footnoteDef","inline","forEach","sort","inlineTokens","54817GKVuGH"];return(Sn=function(){return t})()}!function(){const t=jn,e=Sn();for(;;)try{if(868685==-parseInt(t(243))/1*(-parseInt(t(260))/2)+parseInt(t(239))/3+parseInt(t(238))/4+-parseInt(t(258))/5*(parseInt(t(226))/6)+-parseInt(t(249))/7*(-parseInt(t(236))/8)+-parseInt(t(237))/9+-parseInt(t(218))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const An={name:"footnoteRef",level:vn(245),start:t=>t[vn(227)]("[^"),tokenizer:t=>{const e=vn,n=/^\[\^([^\]]+)\]/[e(251)](t);if(n){const t=n[1][e(229)]();return{type:e(233),raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=vn;return e(235)+t.id+e(234)+t.id+e(232)+t[e(253)]+e(221)}};function jn(t,e){return t-=217,Sn()[t]}const _n={name:"footnoteDef",level:vn(255),start:t=>t[vn(227)]("[^"),tokenizer(t){const e=vn,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/[e(251)](t);if(n){const t=n[1][e(229)](),r=n[2][e(229)]();return{type:e(244),raw:n[0],id:t,text:r,tokens:this[e(224)][e(248)](r)}}},renderer(t){const e=vn;var n;const r=e(254)+t.id+e(231);return e(250)+t[e(253)]+e(241)+t.id+'">'+this.parser[e(222)](null!==(n=null==t?void 0:t[e(230)])&&void 0!==n?n:[])+(t[e(223)]?"":r)+"</li>"}},zn=t=>{const e={};let n=1;return function t(r){const s=jn;r[s(246)](r=>{const i=s;r.type===i(233)&&(!(r.id in e)&&(e[r.id]=n,n++),r[i(253)]=e[r.id]),"list"===r[i(219)]&&r.items[i(246)](e=>{const n=i;e.tokens&&e[n(230)][n(252)]>0&&t(e[n(230)])}),r[i(219)]===i(259)&&(r[i(256)][i(246)](e=>{const n=i;e.tokens&&e[n(230)][n(252)]>0&&t(e[n(230)])}),r.rows[i(246)](e=>{e.forEach(e=>{const n=jn;e.tokens&&e[n(230)][n(252)]>0&&t(e.tokens)})}),r[i(228)].tokens&&r.caption[i(230)].length>0&&t(r.caption.tokens)),r[i(230)]&&r[i(230)].length>0&&t(r.tokens)})}(t),function t(r){const s=jn;r[s(246)](r=>{const i=s;r[i(219)]===i(244)&&(r[i(223)]=!1,!(r.id in e)&&(e[r.id]=n,n++,r[i(223)]=!0),r[i(253)]=e[r.id]),r.tokens&&r[i(230)][i(252)]>0&&t(r[i(230)])})}(t),t};function Rn(){const t=["537804IAsHDW","5205003dBhofZ","8TxRHmu","3305WMbmqB","parser","114241dFcfzX","11262PDWgGp","proof","stype","3596967YCproh","exec","9907376CitHyT",'<details class="solution ',"solution","SOLUTION","indexOf",'"><summary>',"lexer",'</summary>\n <section class="content">\n ',"PROOF","2814VkNbyH","trim","10LvYIxv","~~~[","blockTokens","912AcTGYL","block"];return(Rn=function(){return t})()}const Tn=En;function En(t,e){return t-=144,Rn()[t]}var Dn;!function(){const t=En,e=Rn();for(;;)try{if(910702==parseInt(t(154))/1*(-parseInt(t(151))/2)+parseInt(t(150))/3+-parseInt(t(147))/4*(parseInt(t(152))/5)+parseInt(t(155))/6*(parseInt(t(169))/7)+-parseInt(t(160))/8+-parseInt(t(149))/9+-parseInt(t(144))/10*(-parseInt(t(158))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=En;t[e(168)]=e(156),t[e(163)]=e(162)}(Dn||(Dn={}));const qn={[Dn[Tn(168)]]:"证明",[Dn[Tn(163)]]:"解答"},Cn={name:Tn(162),level:Tn(148),start:t=>{const e=Tn;return t[e(164)](e(145))},tokenizer(t){const e=Tn;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/[e(159)](t);if(r){const t=r[2][e(170)](),s=r[3].trim();return{type:e(162),raw:r[0],stype:t,typeName:null!==(n=qn[t])&&void 0!==n?n:t,text:s,tokens:this[e(166)][e(146)](s)}}},renderer(t){const e=Tn;var n;return e(161)+le(t[e(157)])+e(165)+t.typeName+e(167)+this[e(153)].parse(null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:[])+"\n </section></details>"}},Mn=Pn;var On;function Pn(t,e){return t-=330,Nn()[t]}!function(){const t=Pn,e=Nn();for(;;)try{if(327427==-parseInt(t(379))/1*(parseInt(t(330))/2)+-parseInt(t(332))/3*(parseInt(t(339))/4)+parseInt(t(368))/5+-parseInt(t(380))/6+-parseInt(t(372))/7+-parseInt(t(353))/8+parseInt(t(365))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Pn;t.Theorem=e(344),t[e(377)]=e(354),t[e(341)]="corollary",t[e(331)]="axiom",t[e(349)]=e(362),t[e(367)]=e(355)}(On||(On={}));const Ln={[On.Theorem]:"定理",[On[Mn(377)]]:"引理",[On[Mn(341)]]:"推论",[On.Axiom]:"公理",[On[Mn(349)]]:"定义",[On[Mn(367)]]:"例"};function Nn(){const t=["891750TjRUNS","ttype","typeName","tokens","508984wScPFG","\n </section> \n</section>",'<a id="theorem-like-ref-',"</em> )","forEach","Lemma","list","845hjutaL","1975182EaGOXS",'" href="#theorem-like-',"</a>","```[","unnumbered","1378PfAsxh","Axiom","1467LTFgrp","indexOf","name","endsWith","theoremLikeDef","length","parse","2372EyWADP","block","Corollary",'<section class="theorem-like ',"lexer","theorem","replace","trim","parser","inline","Definition","number","exec","theoremLikeRef","2268032hrSDmi","lemma","example","items","</b>","trimEnd",'">\n <p class="title"><b>','" id="theorem-like-',"Theorem","definition","blockTokens","type","15360048KMMYTq",'\n </p>\n <section class="content">\n ',"Example"];return(Nn=function(){return t})()}const Zn={name:Mn(352),level:Mn(348),start:t=>t[Mn(333)]("[~"),tokenizer:t=>{const e=Mn,n=/^\[~([^\]]+)\]/.exec(t);if(n){const t=n[1][e(346)]();return{type:e(352),raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=Mn;return e(374)+t.id+e(381)+t.id+'">'+(t[e(370)]+" "+t[e(350)])[e(358)]()+e(382)}},Un={name:Mn(336),level:Mn(340),start(t){const e=Mn;return t[e(333)](e(383))},tokenizer(t){const e=Mn;var n,r,s,i,o,a;const l=/^ {0,3}(`{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*),([^\],]*)(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(351)](t);if(l){const t=null===(n=l[2])||void 0===n?void 0:n[e(346)]()[e(345)](/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r[e(346)]()[e(335)]("*"),u=null===(s=l[3])||void 0===s?void 0:s[e(346)](),p=null===(i=l[4])||void 0===i?void 0:i[e(346)](),h=null===(o=l[5])||void 0===o?void 0:o[e(346)]();return{type:e(336),raw:l[0],id:u,name:p,text:h,ttype:t,typeName:null!==(a=Ln[t])&&void 0!==a?a:t,tokens:this[e(343)][e(363)](h),unnumbered:c}}},renderer(t){const e=Mn;var n;return e(342)+le(t[e(369)])+e(360)+t.id+e(359)+t[e(370)]+e(357)+(t[e(384)]?"":" "+t[e(350)])+(t[e(334)]?" ( <em>"+t[e(334)]+e(375):"")+e(366)+this[e(347)][e(338)](null!==(n=null==t?void 0:t[e(371)])&&void 0!==n?n:[])+e(373)}},Bn=Gn;!function(){const t=Gn,e=Vn();for(;;)try{if(915584==parseInt(t(514))/1+parseInt(t(492))/2+parseInt(t(496))/3+parseInt(t(519))/4*(parseInt(t(501))/5)+parseInt(t(503))/6+parseInt(t(521))/7*(parseInt(t(494))/8)+parseInt(t(513))/9*(-parseInt(t(525))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Hn=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</;function Gn(t,e){return t-=491,Vn()[t]}const Fn={name:Bn(510),level:Bn(517),start(t){const e=Bn;return t[e(497)](e(504))},tokenizer(t){const e=Bn,n=Hn[e(508)](t);if(n){const[t,r,s,i,o]=n;return{type:"tooltip",id:e(516)+ne.md5(t),raw:t,title:s,text:r,imageUrl:o,description:{type:e(506),text:i,raw:i,tokens:this[e(518)][e(517)](i)},tokens:this.lexer[e(528)](r[e(520)]())}}},renderer(t){const e=Bn;var n;let r=e(499);return r+='<input type="checkbox" id='+t.id+e(512),r+=e(526)+t.id+e(507)+this.parser[e(502)](null!==(n=t[e(505)])&&void 0!==n?n:[])+e(493),r+=e(491),t[e(495)][e(520)]()&&(r+=e(498)+t[e(495)][e(520)]()+e(500)+t[e(527)].trim()+e(515)),t[e(527)].trim()&&(r+='<span class="tooltip-title">'+t.title[e(520)]()+e(511)),t[e(509)].raw[e(520)]()&&(r+=e(524)+this[e(522)][e(502)]([t.description])+e(511)),r+=e(523),r}};function Vn(){const t=["10592tPwATe","trim","158557jmuZva","parser","</span>\n</span>\n",'<span class="tooltip-description">',"35330BoJJqd","<label for=","title","inlineTokens",'<span class="tooltip">\n',"174734jwxEYV","</label>\n","376WcHvDg","imageUrl","2823507segFoG","indexOf",'<span class="tooltip-image"><img src="','<span class="tooltip-container">\n','" alt="',"3415IwxMCI","parseInline","5929896ApDUtl",">>>","tokens","text",' class="tooltip-trigger">',"exec","description","tooltip","</span>\n",' class="tooltip-toggle">',"13014uOrPCR","1134269wfvpxg",'"></span>\n',"id-","inline","lexer"];return(Vn=function(){return t})()}const Xn=Yn;function Wn(t){const e=Yn;return t[e(274)](/\s*<\s*/g,e(283)).replace(/\s*>\s*/g,e(289))}!function(){const t=Yn,e=Qn();for(;;)try{if(650210==parseInt(t(290))/1*(-parseInt(t(270))/2)+-parseInt(t(272))/3+parseInt(t(281))/4+-parseInt(t(278))/5*(-parseInt(t(268))/6)+parseInt(t(280))/7+-parseInt(t(276))/8*(-parseInt(t(275))/9)+-parseInt(t(277))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Kn={name:Xn(285),level:Xn(288),start:t=>t[Xn(286)]("$"),tokenizer(t){const e=Xn,n=/^\$(?:[^$]|\\\$)+\$(?!\$)/.exec(t);if(n)return{type:e(285),raw:n[0],text:n[0]}},renderer:t=>Wn(t[Xn(271)])};function Qn(){const t=[" \\gt ","26681CRCLvc","inlineMath2","block","30RsaEuE","trim","56pHiQeH","text","2594607qfzuHg","</p>\n","replace","2637joSsgp","25768mPeyjx","11414820NwREUs","1085790GSUcFC",'<p class="paragraph">',"795347jBtLtC","5041860ULpWiW","match"," \\lt ","blockMath2","inlineMath","indexOf","blockMath","inline"];return(Qn=function(){return t})()}const Jn={name:Xn(291),level:"inline",start:t=>t[Xn(286)]("\\("),tokenizer(t){const e=t.match(/^\\\(.*?\\\)/);if(e)return{type:"inlineMath2",raw:e[0],text:e[0]}},renderer:t=>Wn(t[Xn(271)])};function Yn(t,e){return t-=268,Qn()[t]}const tr={name:Xn(287),level:Xn(292),start:t=>t.indexOf("$$"),tokenizer(t){const e=Xn,n=t[e(282)](/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(n)return{type:"blockMath",raw:n[0],text:n[0][e(269)]()}},renderer(t){const e=Xn;return e(279)+Wn(t[e(271)])+e(273)}},er={name:Xn(284),level:Xn(292),start:t=>t.indexOf("\\["),tokenizer(t){const e=Xn,n=t.match(/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:e(284),raw:n[0],text:n[0][e(269)]()}},renderer(t){const e=Xn;return'<p class="paragraph">'+Wn(t[e(271)])+e(273)}};function nr(){var t=["2531263UsftKl","142584ZMHwIi","6703590GxJgMh","1944zGgbUv","15oywhVM","32740hDBolX","1034015VslIvL","536004avIQyI","13448pZcnXm","1ZBmWWV"];return(nr=function(){return t})()}function rr(t,e){return t-=366,nr()[t]}function sr(t,e){return t-=412,ir()[t]}function ir(){const t=["4277804ondhZD","31yHrAtk","px;","594vDvUfc","22286ndJlUr",' title="',"1416QBuGOu","7BtucVa","tokens","10PwURfF","push","type","text","659330znOMTO",'<img src="',"9021896VZcYmB","207120GGbmbV","3sHBQiy","href","isArray","title","169OGETHf","26985rpMlEl","replaceAll","height:","width:",'" alt="',"9884313bXSEGN"];return(ir=function(){return t})()}function or(t,e){return t-=225,lr()[t]}!function(){for(var t=rr,e=nr();;)try{if(261730==-parseInt(t(367))/1*(parseInt(t(375))/2)+-parseInt(t(372))/3*(-parseInt(t(373))/4)+-parseInt(t(374))/5+parseInt(t(369))/6+-parseInt(t(368))/7+parseInt(t(366))/8*(parseInt(t(371))/9)+parseInt(t(370))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=sr,e=ir();for(;;)try{if(839999==-parseInt(t(429))/1*(-parseInt(t(432))/2)+parseInt(t(417))/3*(-parseInt(t(428))/4)+parseInt(t(422))/5*(parseInt(t(434))/6)+-parseInt(t(435))/7*(parseInt(t(415))/8)+-parseInt(t(427))/9*(-parseInt(t(437))/10)+parseInt(t(431))/11*(parseInt(t(416))/12)+-parseInt(t(421))/13*(parseInt(t(413))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ar=or;function lr(){const t=["Contact charles@mathcrowd.cn for commercial licensing. ","assign","1374864jwXuCM","1315390mJTQkd","Contact charles@mathcrowd.cn for commercial licensing.","2422oChRAe","lexInline","4210857EBONpF","Browser usage does not require a license.","renderMarkdownCompact","node","1753364UFjExx","getTime","use","warn","[mmarked] ℹ️ Running in browser environment, no license required. ","undefined","versions","4PYSaFR","712hQeerH","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","16193fBbLru","parseInline","For commercial use in Node.js, please configure a license using configureLicense(). ","defaults","671742qQAADp"];return(lr=function(){return t})()}!function(){const t=or,e=lr();for(;;)try{if(299432==-parseInt(t(241))/1*(-parseInt(t(238))/2)+-parseInt(t(245))/3+-parseInt(t(231))/4+parseInt(t(249))/5+parseInt(t(248))/6+-parseInt(t(225))/7*(parseInt(t(239))/8)+parseInt(t(227))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const cr=new vt;cr[ar(233)]({extensions:[Kn,Jn],tokenizer:Object[ar(247)]({},Je),renderer:Object[ar(247)]({},de)});const ur=t=>{const e=ar;Ht(e(229)),Wt()||(typeof process!==e(236)&&null!=process[e(237)]&&null!=process.versions[e(230)]?console[e(234)](e(240)+"For commercial use, please configure a license using configureLicense(). "+e(246)+e(228)):console.warn(e(235)+e(243)+e(250)));const n=new Date,r=cr.Lexer[e(226)](t,cr[e(244)]),s=cr[e(242)](t),i=new Date;let o=function(t,e){const n=sr;let r=t;for(const t of e){const e=ie(t[n(418)]);if(null===e)continue;let s=n(414)+e+n(426)+t[n(412)]+'"';if(t[n(420)]){const{text:e,width:r,height:i}=ce(t.title);e&&(s+=n(433)+e+'"'),(r||i)&&(s+=' style="',r&&(s+=n(425)+r+n(430)),i&&(s+=n(424)+i+n(430)),s+='"')}s+=">";const i=n(414)+e+n(426)+t[n(412)]+'"'+(t[n(420)]?' title="'+t[n(420)]+'"':"")+">";r=r[n(423)](i,s)}return r}(s,function t(e){const n=sr,r=[];for(const s of e)"image"===s[n(439)]&&r[n(438)](s),"tokens"in s&&Array[n(419)](s.tokens)&&r[n(438)](...t(s[n(436)]));return r}(r));const a=Gt();return a&&(o=a+o),{parsed:o,lexed:r,time:i.getTime()-n[e(232)]()}};function pr(t,e){return t-=239,fr()[t]}const hr=pr;function fr(){const t=["1515290nmkuMK","assign","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","warn","3288680mBfviz","undefined","Contact charles@mathcrowd.cn for commercial licensing. ","173388ZsMunu","versions","10724562oQathz","3wjTKCT","1988378WPEFwf","use","For commercial use in Node.js, please configure a license using configureLicense(). ","renderMarkdown","125yrXCsY","Browser usage does not require a license.","[mmarked] ℹ️ Running in browser environment, no license required. ","lexer","12292091cKlxZC","getTime","2651372JNZRmI"];return(fr=function(){return t})()}!function(){const t=pr,e=fr();for(;;)try{if(930914==parseInt(t(251))/1+-parseInt(t(240))/2+parseInt(t(239))/3*(parseInt(t(250))/4)+parseInt(t(244))/5*(parseInt(t(258))/6)+-parseInt(t(248))/7+-parseInt(t(255))/8+parseInt(t(260))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const dr={renderer:Object[hr(252)](Object[hr(252)]({},pe),de),tokenizer:Object[hr(252)]({},Je),useNewRenderer:!0,gfm:!0,extensions:[Kn,Jn,tr,er,An,_n,Un,Zn,Cn,on,$n,Fn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=Mn,n={[On[e(361)]]:0,[On[e(377)]]:0,[On[e(341)]]:0,[On.Axiom]:0,[On[e(349)]]:0,[On.Example]:0},r={};return function t(s){const i=e;s[i(376)](e=>{const s=i;"theoremLikeDef"===e[s(364)]&&(e[s(369)]in n?n[e.ttype]=n[e[s(369)]]+1:n[e[s(369)]]=1,e.number=e.unnumbered?"":n[e[s(369)]],r[e.id]={typeName:e[s(370)],number:e[s(350)]}),e[s(371)]&&e[s(371)][s(337)]>0&&t(e[s(371)])})}(t),function t(e){e.forEach(e=>{const n=Pn;e.type===n(352)&&e.id in r&&(e[n(350)]=r[e.id][n(350)],e[n(370)]=r[e.id][n(370)]),e[n(364)]===n(378)&&e[n(356)].forEach(e=>{const r=n;e.tokens&&e[r(371)][r(337)]>0&&t(e[r(371)])}),e[n(371)]&&e.tokens[n(337)]>0&&t(e.tokens)})}(t),t})(zn(t)),postprocess:t=>(t=>{const e=vn,n=[];return t=t[e(257)](/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,r)=>(n[e(240)]({key:parseInt(r),content:t}),"")),n[e(247)]((t,n)=>t[e(217)]-n[e(217)]),t=t[e(257)](/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(252)]>0&&(t=t+'<ol class="footnote-list">'+n[e(220)](t=>t.content)[e(242)]("")+e(225)),t})(t)}};xn[hr(241)](dr);const gr=t=>{const e=hr;Ht(e(243)),Wt()||(typeof process!==e(256)&&null!=process[e(259)]&&null!=process.versions.node?console.warn(e(253)+"For commercial use, please configure a license using configureLicense(). "+e(257)+e(245)):console[e(254)](e(246)+e(242)+"Contact charles@mathcrowd.cn for commercial licensing."));const n=new Date,r=zn(xn[e(247)](t));let s=xn.parse(t);const i=new Date,o=Gt();return o&&(s=o+s),{parsed:s,lexed:r,time:i[e(249)]()-n[e(249)]()}};function mr(t,e){return t-=119,kr()[t]}function kr(){var t=["5332740csLCoq","8326899mrjCWm","5470iNwkhk","8259TuPSyH","44472OpwuhN","6631854pVtxRW","5GdGyua","936oacflY","945970LplCNR","349HDbxaJ","187vkdolS"];return(kr=function(){return t})()}!function(){for(var t=mr,e=kr();;)try{if(596713==parseInt(t(125))/1*(-parseInt(t(129))/2)+parseInt(t(119))/3*(-parseInt(t(123))/4)+parseInt(t(122))/5*(-parseInt(t(121))/6)+parseInt(t(127))/7+parseInt(t(120))/8+parseInt(t(128))/9+parseInt(t(124))/10*(parseInt(t(126))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const br=yr;function xr(){const t=["249386zcRDNI","innerHTML","11cDinCR","8676474kErUHE","\\unicode{x25B1}","12043800viXiMR","12whTVHX","error","7TiagvA","1012740AIkMMu","none","body","48590450GhHfZK","176wRoVxx","document","17823haDwDM","12649428eTLTLa"];return(xr=function(){return t})()}!function(){const t=yr,e=xr();for(;;)try{if(935461==parseInt(t(303))/1*(parseInt(t(297))/2)+-parseInt(t(295))/3*(parseInt(t(293))/4)+parseInt(t(306))/5+parseInt(t(300))/6+parseInt(t(305))/7*(parseInt(t(302))/8)+parseInt(t(296))/9+-parseInt(t(292))/10*(parseInt(t(299))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const wr=a({fontSize:13});function yr(t,e){return t-=292,xr()[t]}l(wr);const Ir=new u({packages:c,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:br(301)}}),$r=new h({fontCache:br(307)}),vr=t=>{const e=br;try{const n=p[e(294)](t,{InputJax:Ir,OutputJax:$r});return n.render(),wr[e(298)](wr[e(308)](n[e(294)]))}catch(n){return console[e(304)](n),t}};function Sr(){var t=["440kmrqmW","1973059CyNXkF","3042VxvdTp","57owByox","4424TfktlT","57897hqbwrD","8372eLHWck","360CBrkXO","2965550ZrUyEK","56fKzJgu","628423JOTtOs"];return(Sr=function(){return t})()}function Ar(t,e){return t-=243,Sr()[t]}function jr(t,e){return t-=496,_r()[t]}function _r(){var t=["1364138zpzzxm","1186429ytGSbi","5611968qeFwqt","6873120xwBZhL","44xnHQOp","294789DDfhGA","9312310whXYDw","330016abPBAr","324kiBNpE"];return(_r=function(){return t})()}!function(){for(var t=Ar,e=Sr();;)try{if(400560==-parseInt(t(251))/1+parseInt(t(248))/2*(parseInt(t(244))/3)+parseInt(t(247))/4*(parseInt(t(252))/5)+parseInt(t(243))/6*(parseInt(t(245))/7)+parseInt(t(250))/8*(parseInt(t(246))/9)+parseInt(t(249))/10+parseInt(t(253))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=jr,e=_r();;)try{if(794181==parseInt(t(502))/1+parseInt(t(501))/2+-parseInt(t(497))/3*(-parseInt(t(496))/4)+-parseInt(t(504))/5+-parseInt(t(503))/6+-parseInt(t(498))/7+-parseInt(t(499))/8*(-parseInt(t(500))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{Tt as UNLICENSED_WARNING_INTERVAL,Kt as clearValidationCache,Ft as configureLicense,Vt as getLicenseConfig,Gt as getWarningIfNeeded,Wt as isLicensed,gr as renderMarkdown,ur as renderMarkdownCompact,Qt as resetUsageStats,Et as setUnlicensedWarningInterval,vr as tex2svg,Ht as trackFunctionCall,Xt as validateLicense};
1
+ import t from"crypto";import e from"buffer";import n from"highlight.js";import r from"highlight.js/lib/languages/javascript";import s from"highlight.js/lib/languages/json";import i from"highlight.js/lib/languages/latex";import o from"highlight.js/lib/languages/python";import{liteAdaptor as a}from"mathjax-full/js/adaptors/liteAdaptor.js";import{RegisterHTMLHandler as l}from"mathjax-full/js/handlers/html.js";import{AllPackages as c}from"mathjax-full/js/input/tex/AllPackages.js";import{TeX as u}from"mathjax-full/js/input/tex.js";import{mathjax as p}from"mathjax-full/js/mathjax.js";import{SVG as h}from"mathjax-full/js/output/svg.js";var f={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function d(t){f=t}var g={exec:()=>null};function m(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let s="string"==typeof e?e:e.source;return s=s.replace(b.caret,"$1"),n=n.replace(t,s),r},getRegex:()=>RegExp(n,e)};return r}var k=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},x=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,w=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,I=m(y).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$=m(y).replace(/bull/g,w).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=m(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),j=m(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,w).getRegex(),_="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=m("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",z).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R=m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),P={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",R).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x,html:T,lheading:I,list:j,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:R,table:g,text:/^[^\n]+/},q=m("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),D={...P,lheading:$,table:q,paragraph:m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},L={...P,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(v).replace("hr",x).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},C=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,M=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,B=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,M).getRegex(),N=/(?!~)[\p{P}\p{S}]/u,Z=m(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,F=m(U,"u").replace(/punct/g,E).getRegex(),K=m(U,"u").replace(/punct/g,N).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=m(J,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,M).replace(/punct/g,E).getRegex(),G=m(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),X=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,M).replace(/punct/g,E).getRegex(),W=m(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),Q=m(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),V=m(z).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=m("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,et=m(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=m(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",S).getRegex(),rt=m(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),st=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,it={t:g,anyPunctuation:W,autolink:Q,blockSkip:Z,br:C,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:H,emStrongRDelimUnd:X,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:B,reflink:nt,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},ot={...it,link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()},at={...it,emStrongRDelimAst:G,emStrongLDelim:K,url:m(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",st).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),t:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",st).getRegex()},lt={...at,br:m(C).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:P,gfm:D,pedantic:L},ut={normal:it,gfm:at,breaks:lt,pedantic:ot},pt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ht=t=>pt[t];function ft(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,ht)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,ht);return t}function dt(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function gt(t,e){let n=t.replace(b.findPipe,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(b.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;e>n.length;)n.push("");for(;n.length>r;r++)n[r]=n[r].trim().replace(b.slashPipe,"|");return n}function mt(t,e,n){let r=t.length;if(0===r)return"";let s=0;for(;r>s&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function kt(t,e,n,r,s){let i=e.href,o=e.title||null,a=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var bt=class{options;rules;lexer;constructor(t){this.options=t||f}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:mt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let s=r[1];return e.split("\n").map(t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return s.length>r.length?t:t.slice(s.length)}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=mt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:mt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=mt(e[0],"\n").split("\n"),n="",r="",s=[];for(;t.length>0;){let e,i=!1,o=[];for(e=0;t.length>e;e++)if(this.rules.other.blockquoteStart.test(t[e]))o.push(t[e]),i=!0;else{if(i)break;o.push(t[e])}t=t.slice(e);let a=o.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===t.length)break;let u=s.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.blockquote(i);s[s.length-1]=o,n=n.substring(0,n.length-e.raw.length)+o.raw,r=r.substring(0,r.length-e.text.length)+o.text;break}if("list"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.list(i);s[s.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-e.raw.length)+o.raw,t=i.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\"+n.slice(-1):"\\"+n,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;t;){let n=!1,r="",a="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],u=!l.trim(),p=0;if(this.options.pedantic?(p=2,a=l.trimStart()):u?p=e[1].length+1:(p=e[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=l.slice(p),p+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),i=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p);for(;t;){let h,f=t.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||i.test(c)||o.test(c)||e.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)<p&&c.trim()){if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||i.test(l)||n.test(l))break;a+="\n"+c}else a+="\n"+h.slice(p);!u&&!c.trim()&&(u=!0),r+=f+"\n",t=t.substring(f.length+1),l=h.slice(p)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let h,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(h="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:r,task:!!f,checked:h,loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd();for(let t=0;s.items.length>t;t++)if(this.lexer.state.top=!1,s.items[t].tokens=this.lexer.blockTokens(s.items[t].text,[]),!s.loose){let e=s.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));s.loose=n}if(s.loose)for(let t=0;s.items.length>t;t++)s.items[t].loose=!0;return s}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=gt(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;n.length>t;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(let t of s)i.rows.push(gt(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=mt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return-1;let e=0;for(let n=0;t.length>n;n++)if("\\"===t[n])n++;else if("("===t[n])e++;else if(")"===t[n]&&(e--,0>e))return n;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),kt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return kt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,s,i=[...r[0]].length-1,o=i,a=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+i);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);let e=[...r[0]][0].length,l=t.slice(0,i+r.index+e+s);if(Math.min(i,s)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline.t.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],escaped:this.lexer.state.inRawBlock}}},xt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:b,block:ct.normal,inline:ut.normal};this.options.pedantic?(e.block=ct.pedantic,e.inline=ut.pedantic):this.options.gfm&&(e.block=ct.gfm,e.inline=this.options.breaks?ut.breaks:ut.gfm),this.tokenizer.rules=e}static get rules(){return{block:ct,inline:ut}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(b.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;this.inlineQueue.length>t;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},e.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let s=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r=t,s=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)t.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,o="";for(;t;){let n;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length);let r=e.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,o)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}let s=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),i=!0;let r=e.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},wt=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(b.notSpaceStart)?.[0],s=t.replace(b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ft(r)+'">'+(n?s:ft(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:ft(s,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;t.items.length>e;e++)r+=this.listitem(t.items[e]);let s=e?"ol":"ul";return"<"+s+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+ft(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;t.header.length>e;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;t.rows.length>e;e++){let s=t.rows[e];n="";for(let t=0;s.length>t;t++)n+=this.tablecell(s[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ft(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=dt(t);if(null===s)return r;let i='<a href="'+(t=s)+'"';return e&&(i+=' title="'+ft(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=dt(t);if(null===s)return ft(n);let i=`<img src="${t=s}" alt="${n}"`;return e&&(i+=` title="${ft(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ft(t.text)}},yt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},It=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yt}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=s,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){n+=e||"";continue}}let i=s;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,o=this.renderer.text(s);for(;t.length>r+1&&"text"===t[r+1].type;)s=t[++r],o+="\n"+this.renderer.text(s);n+=e?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=t||"";continue}}let i=s;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},$t=class{options;block;constructor(t){this.options=t||f}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?xt.lex:xt.lexInline}provideParser(){return this.block?It.parse:It.parseInline}},vt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=It;Renderer=wt;TextRenderer=yt;Lexer=xt;Tokenizer=bt;Hooks=$t;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let s=t[r].flat(1/0);n=n.concat(this.walkTokens(s,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new wt(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new bt(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new $t;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],s=e[n];e[n]=$t.passThroughHooks.has(n)?t=>{if(this.defaults.async&&$t.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return s.call(e,n)})();let i=r.call(e,t);return s.call(e,i)}:(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await s.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return xt.lex(t,e??this.defaults)}parser(t,e){return It.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(e):e,r=await(s.hooks?await s.hooks.provideLexer():t?xt.lex:xt.lexInline)(n,s),i=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(i,s.walkTokens));let o=await(s.hooks?await s.hooks.provideParser():t?It.parse:It.parseInline)(i,s);return s.hooks?await s.hooks.postprocess(o):o})().catch(i);try{s.hooks&&(e=s.hooks.preprocess(e));let n=(s.hooks?s.hooks.provideLexer():t?xt.lex:xt.lexInline)(e,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():t?It.parse:It.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+ft(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},St=new vt;function At(t,e){return St.parse(t,e)}function jt(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})}At.options=At.setOptions=function(t){return St.setOptions(t),d(At.defaults=St.defaults),At},At.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},At.defaults=f,At.use=function(...t){return St.use(...t),d(At.defaults=St.defaults),At},At.walkTokens=function(t,e){return St.walkTokens(t,e)},At.parseInline=St.parseInline,At.Parser=It,At.parser=It.parse,At.Renderer=wt,At.TextRenderer=yt,At.Lexer=xt,At.lexer=xt.lex,At.Tokenizer=bt,At.Hooks=$t,At.parse=At,"function"==typeof SuppressedError&&SuppressedError;const _t=Rt;function zt(){const t=Rt;if(!Nt())return"browser-session";try{if(typeof require!==t(254)){const e=require(t(234));if(e[t(275)])return e[t(275)]()}return t(237)[t(230)](/[xy]/g,function(e){const n=t,r=16*Math[n(242)]()|0;return("x"===e?r:3&r|8)[n(250)](16)})}catch(e){return t(276)+Date[t(225)]()+"-"+Math[t(242)]()[t(250)](36)[t(263)](2,11)}}!function(){const t=Rt,e=Ht();for(;;)try{if(396176==parseInt(t(238))/1+-parseInt(t(260))/2*(parseInt(t(236))/3)+-parseInt(t(272))/4+-parseInt(t(283))/5+-parseInt(t(252))/6*(-parseInt(t(287))/7)+parseInt(t(265))/8*(parseInt(t(229))/9)+parseInt(t(281))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let Tt=1e3;function Rt(t,e){return t-=219,Ht()[t]}function Pt(t){Tt=t}let qt=null;const Dt=new Map;let Lt=!1;const Ct=36e5,Et=_t(255),Mt=_t(257),Ot={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date[_t(225)](),lastUsedAt:Date[_t(225)](),sessionId:zt()};let Bt=null;function Nt(){const t=_t;return typeof process!==t(254)&&null!=process[t(274)]&&null!=process.versions[t(258)]}function Zt(){return jt(this,void 0,void 0,function*(){const t=Rt;var e;if(!Nt())return;const n=qt;if(!n||!n[t(222)])return;const r=Date[t(225)]();if(Ot[t(288)]&&18e5>r-Ot[t(288)])return;const s=Mt;try{const i=Object[t(261)](Object[t(261)]({},Ot),{apiKey:n[t(222)],timestamp:r,nodeVersion:null===(e=process[t(274)])||void 0===e?void 0:e[t(258)]});"undefined"!=typeof fetch&&(yield fetch(s,{method:t(271),headers:{"Content-Type":t(249)},body:JSON[t(233)](i)}),Ot[t(288)]=r,console.debug(t(220)))}catch(e){console.debug(t(241),e)}})}function Ut(){Bt&&(clearInterval(Bt),Bt=null)}function Ft(t){const e=_t;var n;Nt()&&(Ot[e(270)]++,Ot.lastUsedAt=Date[e(225)](),t===e(282)?Ot.renderMarkdownCalls++:"renderMarkdownCompact"===t&&Ot[e(232)]++,(null==qt?void 0:qt[e(222)])&&(Ot[e(222)]=qt[e(222)],Ot.nodeVersion=null===(n=process[e(274)])||void 0===n?void 0:n[e(258)]))}function Kt(){const t=_t;return!Nt()||Wt()?"":Ot[t(270)]>0&&Ot[t(270)]%Tt===0?function(){const t=_t,e=Date[t(225)]();return'<svg xmlns="http://www.w3.org/2000/svg" class="MJX-svg-equation" role="img" focusable="false" viewBox="0 0 800 80" style="vertical-align: -0.5ex; margin: 1em 0; max-width: 100%; display: block;" aria-label="Non-commercial use warning" data-formula-id="'+Math[t(242)]().toString(36)[t(269)](2,9)+t(267)+e+t(284)}():""}function Jt(t){qt=t,function(){const t=_t;Nt()&&qt&&qt[t(222)]&&(Bt&&clearInterval(Bt),Bt=setInterval(()=>{const e=t;Zt()[e(231)](t=>{const n=e;console[n(285)](n(277),t)})},36e5),Zt().catch(e=>{const n=t;console[n(285)](n(219),e)}))}(),console.log("[mmarked] License configured successfully")}function Ht(){const t=["https://api.mathcrowd.cn/report-usage","node","json","8886kkZfEM","assign","error","slice","lastUsedAt","429512TkDQaJ","env",'" data-timestamp="',"[mmarked] Validation cache cleared","substring","totalCalls","POST","319504fuCwOA","Requires Node.js 18+ for fetch API support. ","versions","randomUUID","session-","[mmarked] Usage reporting error:","renderMarkdownCalls","Fetch API not available. Requires Node.js 18+ or use custom validator.","valid","3222830GRhBxL","renderMarkdown","1855135UsDHes",'">\n <defs>\n <style type="text/css">\n .mjx-warning-text { font-family: Arial, sans-serif; font-size: 14px; fill: #856404; }\n .mjx-warning-link { font-family: Arial, sans-serif; font-size: 14px; fill: #0066cc; text-decoration: underline; cursor: pointer; }\n </style>\n </defs>\n <rect width="800" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="1" rx="4"/>\n <text x="20" y="25" class="mjx-warning-text" font-weight="bold">⚠️ Non-Commercial Use Only</text>\n <text x="20" y="45" class="mjx-warning-text">This content uses @mathcrowd/mmarked without valid commercial license.</text>\n <text x="20" y="65" class="mjx-warning-text">For commercial use, contact: </text>\n <a href="mailto:charles@mathcrowd.cn">\n <text x="220" y="65" class="mjx-warning-link">charles@mathcrowd.cn</text>\n </a>\n</svg>',"debug","firstUsedAt","7hSamuN","lastReportedAt","get","[mmarked] Initial usage reporting error:","[mmarked] Usage statistics reported successfully","2.0.3","apiKey","[mmarked] License validation failed:","current version","now","[mmarked] Remote validation failed:","sessionId","message","9bMZScl","replace","catch","renderMarkdownCompactCalls","stringify","crypto","result","171nLwLTF","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","675367jAArXN","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.","statusText","[mmarked] Failed to report usage statistics:","random","then","clear","Network error during validation","warn","No license configured. Please call configureLicense() with your API key.","log","application/json","toString","timestamp","293946GcDSWv","[mmarked] Usage stats reset","undefined","https://api.mathcrowd.cn/validate-license","[mmarked] ⚠️ Remote license validation not supported on Node.js "];return(Ht=function(){return t})()}function Gt(){return qt}function Xt(){return jt(this,void 0,void 0,function*(){const t=Rt,e=qt;if(!e||!e.apiKey)return{valid:!1,message:t(247)};const{apiKey:n}=e,r=Dt[t(289)](n);if(r&&Date.now()-r[t(251)]<Ct)return{valid:r[t(235)]};const s=yield function(t,e){return jt(this,void 0,void 0,function*(){const n=Rt;var r;try{if(typeof fetch===n(254)){const t=null===(r=process.versions)||void 0===r?void 0:r[n(258)];return console[n(246)](n(256)+(t||n(224))+". "+n(273)+n(239)),{valid:!1,message:n(279)}}const s=yield fetch(e,{method:"POST",headers:{"Content-Type":n(249)},body:JSON[n(233)]({apiKey:t,product:"mmarked",version:n(221)})});return s.ok?yield s[n(259)]():{valid:!1,message:"Validation failed: "+s[n(240)]}}catch(t){return console[n(246)](n(226),t),{valid:!1,message:n(245)}}})}(n,Et);return Dt.set(n,{result:s[t(280)],timestamp:Date[t(225)]()}),s})}function Wt(){const t=_t;if(!Nt())return!1;!function(){const t=_t;if(!Nt())return;if(null==qt?void 0:qt[t(222)])return;const e=process[t(266)].MMARKED_API_KEY;e&&Jt({apiKey:e})}();const e=qt;if(!e||!e.apiKey)return!1;const{apiKey:n}=e,r=Dt.get(n);return r?(Date.now()-r[t(251)]>=Ct&&Xt()[t(243)](e=>{const n=t;return!e[n(280)]&&console.warn(n(223),e[n(228)]),e}).catch(t=>{throw console.error("[mmarked] License validation error:",t),t}),r.result):(!Lt&&(Lt=!0,Xt()[t(243)](e=>{const n=t;return!e[n(280)]&&console[n(246)](n(223),e[n(228)]),e})[t(231)](e=>{throw console[t(262)]("[mmarked] License validation error:",e),e})),!0)}function Qt(){const t=_t;Dt[t(244)](),Lt=!1,console[t(248)](t(268))}function Vt(){const t=_t;Ot.totalCalls=0,Ot[t(278)]=0,Ot[t(232)]=0,Ot[t(286)]=Date[t(225)](),Ot[t(264)]=Date[t(225)](),Ot[t(288)]=void 0,Ot[t(227)]=zt(),qt=null,Dt.clear(),Lt=!1,console.log(t(253)),console[t(248)](t(268))}var Yt,te,ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ne={exports:{}},re=(Yt||(Yt=1,te=ne,function(){var n="input is invalid type",r="object"==typeof window,s=r?window:{};s.JS_MD5_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,o=!s.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;o?s=ee:i&&(s=self);var a,l=!s.JS_MD5_NO_COMMON_JS&&te.exports,c=!s.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],h=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(c){var m=new ArrayBuffer(68);a=new Uint8Array(m),g=new Uint32Array(m)}var k=Array.isArray;!s.JS_MD5_NO_NODE_JS&&k||(k=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var b=ArrayBuffer.isView;!c||!s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&b||(b=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw Error(n);if(c&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!k(t)&&!b(t))throw Error(n);return[t,!1]},w=function(t){return function(e){return new I(!0).update(e)[t]()}},y=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function I(t){if(t)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=a;else if(c){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function $(t,e){var n,r=x(t);if(t=r[0],r[1]){var s,i=[],o=t.length,a=0;for(n=0;o>n;++n)128>(s=t.charCodeAt(n))?i[a++]=s:2048>s?(i[a++]=192|s>>>6,i[a++]=128|63&s):55296>s||s>=57344?(i[a++]=224|s>>>12,i[a++]=128|s>>>6&63,i[a++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++n)),i[a++]=240|s>>>18,i[a++]=128|s>>>12&63,i[a++]=128|s>>>6&63,i[a++]=128|63&s);t=i}t.length>64&&(t=new I(!0).update(t).array());var l=[],c=[];for(n=0;64>n;++n){var u=t[n]||0;l[n]=92^u,c[n]=54^u}I.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}I.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");for(var e,n,r=x(t),s=r[1],i=0,o=(t=r[0]).length,a=this.blocks,l=this.buffer8;o>i;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),s)if(c)for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?l[n++]=e:2048>e?(l[n++]=192|e>>>6,l[n++]=128|63&e):55296>e||e>=57344?(l[n++]=224|e>>>12,l[n++]=128|e>>>6&63,l[n++]=128|63&e):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),l[n++]=240|e>>>18,l[n++]=128|e>>>12&63,l[n++]=128|e>>>6&63,l[n++]=128|63&e);else for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?a[n>>>2]|=e<<h[3&n++]:2048>e?(a[n>>>2]|=(192|e>>>6)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]):55296>e||e>=57344?(a[n>>>2]|=(224|e>>>12)<<h[3&n++],a[n>>>2]|=(128|e>>>6&63)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),a[n>>>2]|=(240|e>>>18)<<h[3&n++],a[n>>>2]|=(128|e>>>12&63)<<h[3&n++],a[n>>>2]|=(128|e>>>6&63)<<h[3&n++],a[n>>>2]|=(128|63&e)<<h[3&n++]);else if(c)for(n=this.start;o>i&&64>n;++i)l[n++]=t[i];else for(n=this.start;o>i&&64>n;++i)a[n>>>2]|=t[i]<<h[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,64>n?this.start=n:(this.start=n-64,this.hash(),this.hashed=!0)}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=p[3&e],56>e||(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},I.prototype.hash=function(){var t,e,n,r,s,i,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+o[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,e=((e+=((t=((t+=((r=this.h3)^e&((n=this.h2)^r))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+r|0)&(r^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[14]-1416354905)<<15|n>>>17)+r|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[10]-1051523)<<15|n>>>17)+r|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[6]-1560198380)<<15|n>>>17)+r|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[2]+718787259)<<15|n>>>17)+r|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},I.prototype.toString=I.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return u[t>>>4&15]+u[15&t]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>28&15]+u[t>>>24&15]+u[e>>>4&15]+u[15&e]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>28&15]+u[e>>>24&15]+u[n>>>4&15]+u[15&n]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>28&15]+u[n>>>24&15]+u[r>>>4&15]+u[15&r]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>28&15]+u[r>>>24&15]},I.prototype.array=I.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},I.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},I.prototype.buffer=I.prototype.arrayBuffer,I.prototype.base64=function(){for(var t,e,n,r="",s=this.array(),i=0;15>i;)t=s[i++],e=s[i++],n=s[i++],r+=d[t>>>2]+d[63&(t<<4|e>>>4)]+d[63&(e<<2|n>>>6)]+d[63&n];return r+(d[(t=s[i])>>>2]+d[t<<4&63]+"==")},($.prototype=new I).finalize=function(){if(I.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();I.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),I.prototype.finalize.call(this)}};var v=function(){var r=w("hex");o&&(r=function(r){var i,o=t,a=e.Buffer;return i=a.from&&!s.JS_MD5_NO_BUFFER_FROM?a.from:function(t){return new a(t)},function(t){if("string"==typeof t)return o.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw Error(n);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),k(t)||b(t)||t.constructor===a?o.createHash("md5").update(i(t)).digest("hex"):r(t)}}(r)),r.create=function(){return new I},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=w(a)}return r}();v.md5=v,v.md5.hmac=function(){var t=y("hex");t.create=function(t){return new $(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;f.length>e;++e){var n=f[e];t[n]=y(n)}return t}(),l?te.exports=v:s.md5=v}()),ne.exports);function se(t,e){return t-=424,le()[t]}function ie(t){const e=se;try{t=encodeURI(t)[e(428)](/%25/g,"%")}catch(t){return null}return t}!function(){const t=se,e=le();for(;;)try{if(367758==-parseInt(t(445))/1*(-parseInt(t(438))/2)+-parseInt(t(444))/3*(-parseInt(t(433))/4)+-parseInt(t(441))/5*(parseInt(t(435))/6)+parseInt(t(426))/7*(-parseInt(t(443))/8)+-parseInt(t(429))/9+-parseInt(t(434))/10+parseInt(t(425))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const oe={exec:()=>null};function ae(t,e){const n=se;let r=typeof t===n(436)?t:t.source;e=e||"";const s={replace:(t,e)=>{const i=n;let o=typeof e===i(436)?e:e.source;return o=o[i(428)](/(^|[^[])\^/g,"$1"),r=r[i(428)](t,o),s},getRegex:()=>RegExp(r,e)};return s}function le(){const t=["class-","40142yDqwxO","shift","length","2955AMeQVS","test","134584HDIgNH","4443fsCrqw","6bPgepT","splice","trim","13665190JdBEMi","98MuFIpw","push","replace","3192030MjQhax","match","indexOf","node","1568nxPsFh","6224440EoFJkg","3684Zfebux","string"];return(le=function(){return t})()}const ce=t=>{const e=se;return/^[a-z][\w-]*$/i[e(442)](t)?t:e(437)+re.md5(t)};function ue(t){const e=se,n=t[e(430)](/^(.*?)(?:\s*=(\d*)(?:x(\d+))?)?$/);if(n){const t=n[1][e(424)](),r=n[2]?parseInt(n[2],10):null,s=n[3]?parseInt(n[3],10):null;return{text:0===t[e(440)]?null:t,width:r,height:s}}return{text:null,width:null,height:null}}function pe(t,e){const n=se,r=t[n(428)](/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(/ \|/);let s=0;if(!r[0][n(424)]()&&r[n(439)](),r[n(440)]>0&&!r[r[n(440)]-1].trim()&&r.pop(),e)if(r[n(440)]>e)r[n(446)](e);else for(;e>r.length;)r[n(427)]("");for(;s<r[n(440)];s++)r[s]=r[s][n(424)]()[n(428)](/\\\|/g,"|");return r}function he(t,e){return t-=482,fe()[t]}function fe(){const t=["href","<figure>\n","9434425fKTlml","50VwJczP","start","tablerow","type","601056pHGAcG","text","12687IeorbH","title","tablecell","14teFlPD","width:","40QLcSjq","header","parseInline","549802EjKbaD",'<li class="md-list-item">',"2377206JrLoKv","items","px;","tokens","</figcaption>\n","parser","3704484UOvFIP","caption","listitem","</figure>\n",'<section class="img-container">\n',"loose","paragraph","ordered","710VudSoE","</table>\n",' title="',"length","7945512YUzsxc",' start="',"height:","parse","image",' class="md-list"',"<tbody>","<table>\n","task",' style="','<img src="',"<figcaption>"];return(fe=function(){return t})()}!function(){const t=he,e=fe();for(;;)try{if(799313==parseInt(t(501))/1+parseInt(t(517))/2*(parseInt(t(493))/3)+-parseInt(t(491))/4*(parseInt(t(498))/5)+-parseInt(t(509))/6*(parseInt(t(496))/7)+-parseInt(t(521))/8+-parseInt(t(503))/9*(-parseInt(t(487))/10)+parseInt(t(486))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const de={paragraph({tokens:t}){const e=he;if(1===t[e(520)]&&t[0].type===e(525)){const n=t[0];if(null===ie(n[e(484)]))return n[e(492)];let r=e(485);if(r+=e(513),r+=this[e(525)](n)+"\n",r+="</section>\n",n[e(494)]){const{text:t}=ue(n.title);t&&(r+=e(483)+t+e(507))}return r+=e(512),r}return'<p class="paragraph">'+this[e(508)][e(500)](t)+"</p>\n"},list(t){const e=he,n=t[e(516)],r=t[e(488)];let s="";for(let n=0;n<t[e(504)][e(520)];n++){const r=t[e(504)][n];s+=this[e(511)](r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(522)+r+'"':"")+e(526)+">\n"+s+"</"+i+">\n"},listitem(t){const e=he;let n="";if(t[e(529)]){const r=this.checkbox({checked:!!t.checked});t[e(514)]?t.tokens[e(520)]>0&&t[e(506)][0][e(490)]===e(515)?(t[e(506)][0][e(492)]=r+" "+t[e(506)][0][e(492)],t[e(506)][0][e(506)]&&t[e(506)][0][e(506)][e(520)]>0&&t[e(506)][0][e(506)][0][e(490)]===e(492)&&(t[e(506)][0][e(506)][0][e(492)]=r+" "+t[e(506)][0][e(506)][0][e(492)])):t[e(506)].unshift({type:e(492),raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser[e(524)](t[e(506)],!!t.loose),e(502)+n+"</li>\n"},table(t){const e=he;let n="",r="";for(let n=0;n<t[e(499)][e(520)];n++)r+=this.tablecell(t[e(499)][n]);n+=this[e(489)]({text:r});let s="";for(let n=0;t.rows.length>n;n++){const i=t.rows[n];r="";for(let t=0;t<i[e(520)];t++)r+=this[e(495)](i[t]);s+=this[e(489)]({text:r})}s&&(s=e(527)+s+"</tbody>\n");let i="";return t[e(510)].text&&(i=e(483)+this[e(508)].parseInline([t[e(510)]])+"</figcaption>\n"),e(485)+e(528)+"<thead>\n"+n+"</thead>\n"+s+e(518)+i+e(512)},image(t){const e=he,n=ie(t[e(484)]);if(null===n)return t.text;let r=e(482)+n+'" alt="'+t[e(492)]+'"';if(t[e(494)]){const{text:n,width:s,height:i}=ue(t[e(494)]);n&&(r+=e(519)+n+'"'),(s||i)&&(r+=e(530),s&&(r+=e(497)+s+e(505)),i&&(r+=e(523)+i+e(505)),r+='"')}return r+=">",r}},ge={};function me(){const t=["(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"," {0,3}#{1,6}(?:\\s|$)","54CMedDK","blockquote","15dFsyTz","address|article|aside|base|basefont|blockquote|body|caption","(?: {4}| {0,3}\t)[^\\n]","138882KxUoTv","table","|[^*]+(?=[^*])","|^<![a-zA-Z]+\\s[\\s\\S]*?>","replace","|comment[^\\n]*(\\n+|$)","comment","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","1491891bFZBBw","fences","|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","email","|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])","html","|(?!_)[punct](_+)(?!_)(?=[punct])","|[^punct\\s](\\*+)(?=[^punct\\s])","|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>","<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)","1061010Vykeco","|[^_]+(?=[^_])","|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n","4MMoVWI","|^<\\?[\\s\\S]*?\\?>","label"," {0,3}(?<!>)>(?!>)","nolink","((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)","\\p{P}\\p{S}","|tr|track|ul"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","|[\\s](_+)(?!_)(?=[punct])","getRegex","|lheading","627mcnkKA","|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option","^comment","|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption","1925208zdaQnw"," {0,3}(?:[*+-]|1[.)]) ","111612IfwLCr"," {0,3}>","28ZLrwrE","(?:--\x3e|$)","paragraph","85048EdEWFR","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","ref","^ {0,3}(?:","heading","|(?!_)[punct\\s](_+)(?=[^punct\\s])","reflink|nolink(?!\\()","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","--\x3e","|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)","assign","|^</[a-zA-Z][\\w:-]*\\s*>","scheme","~|])","|[\\s](\\*+)(?!\\*)(?=[punct])","1730iZSrlO","reflink","tag","href"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)","list"];return(me=function(){return t})()}const ke=be;function be(t,e){return t-=491,me()[t]}!function(){const t=be,e=me();for(;;)try{if(326493==-parseInt(t(495))/1*(parseInt(t(544))/2)+parseInt(t(506))/3*(parseInt(t(521))/4)+-parseInt(t(517))/5+-parseInt(t(498))/6*(parseInt(t(541))/7)+parseInt(t(537))/8+parseInt(t(493))/9*(parseInt(t(559))/10)+-parseInt(t(533))/11*(-parseInt(t(539))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,we=/(?:[*+-]|\d{1,9}[.)])/,ye=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/)[ke(502)](/bull/g,we)[ke(502)](/blockCode/g,/(?: {4}| {0,3}\t)/)[ke(502)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[ke(502)](/blockquote/g,/ {0,3}>/)[ke(502)](/heading/g,/ {0,3}#{1,6}/)[ke(502)](/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ie=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$e=/(?!\s*\])(?:\\.|[^[\]\\])+/,ve=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[ke(502)](ke(523),$e)[ke(502)]("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Se=ae(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/)[ke(502)](/bull/g,we)[ke(531)](),Ae=ke(496)+ke(536)+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+ke(534)+"|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title"+ke(528),je=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_e=ae(ke(547)+ke(516)+ke(503)+ke(545)+"|<![A-Z][\\s\\S]*?(?:>\\n*|$)"+ke(508)+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+ke(509)+")","i").replace(ke(504),je)[ke(502)](ke(561),Ae)[ke(502)]("attribute",/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i).getRegex(),ze=ae(Ie).replace("hr",xe)[ke(502)](ke(548),ke(492))[ke(502)]("|lheading","")[ke(502)]("|table","").replace(ke(494),ke(540))[ke(502)](ke(507),ke(520))[ke(502)](ke(564),ke(538))[ke(502)](ke(512),ke(551))[ke(502)](ke(561),Ae)[ke(531)](),Te={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[ke(502)](ke(543),ze).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ve,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:xe,html:_e,lheading:ye,list:Se,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ze,table:oe,text:/^[^\n]+/},Re=ae("^ *([^\\n ].*)\\n"+ke(563)+ke(491)).replace("hr",xe)[ke(502)](ke(548)," {0,3}#{1,6}(?:\\s|$)")[ke(502)]("blockquote",ke(540)).replace("code",ke(497))[ke(502)]("fences",ke(520))[ke(502)](ke(564),ke(538))[ke(502)](ke(512),ke(551)).replace(ke(561),Ae)[ke(531)](),Pe=Object[ke(554)](Object[ke(554)]({},Te),{table:Re,paragraph:ae(Ie)[ke(502)]("hr",xe).replace(ke(548),ke(492)).replace(ke(532),"")[ke(502)]("table",Re)[ke(502)](ke(494)," {0,3}>")[ke(502)](ke(507),ke(520))[ke(502)]("list",ke(538)).replace(ke(512),ke(551))[ke(502)](ke(561),Ae)[ke(531)]()}),qe=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,De=ke(527),Le=ae(/^((?![*_])[\spunctaio])/,"u")[ke(502)](/punctuation/g,De)[ke(531)](),Ce=ae(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u")[ke(502)](/punct/g,De)[ke(531)](),Ee=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)"+ke(500)+ke(505)+"|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)"+ke(511)+ke(558)+ke(519)+ke(514),"gu")[ke(502)](/punct/g,De)[ke(531)](),Me=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)"+ke(518)+"|(?!_)[punct](_+)(?=[\\s]|$)"+ke(553)+ke(549)+ke(530)+ke(513),"gu")[ke(502)](/punct/g,De)[ke(531)](),Oe=ae(/\\([punct])/,"gu")[ke(502)](/punct/g,De).getRegex(),Be=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)[ke(502)](ke(556),/[a-z][a-z\d+.-]{1,31}/i)[ke(502)](ke(510),/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i)[ke(531)](),Ne=ae(je)[ke(502)](ke(542),ke(552))[ke(531)](),Ze=ae(ke(535)+ke(555)+ke(515)+ke(522)+ke(501)+"|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>")[ke(502)](ke(504),Ne).replace("attribute",/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i).getRegex(),Ue=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Fe=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/)[ke(502)](ke(523),Ue).replace(ke(562),/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/)[ke(502)]("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)[ke(531)](),Ke=ae(/^!?\[(label)\]\[(ref)\]/)[ke(502)]("label",Ue)[ke(502)](ke(546),$e)[ke(531)](),Je=ae(/^!?\[(ref)\](?:\[\])?/)[ke(502)]("ref",$e)[ke(531)](),He={t:oe,anyPunctuation:Oe,autolink:Be,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:oe,emStrongLDelim:Ce,emStrongRDelimAst:Ee,emStrongRDelimUnd:Me,escape:qe,link:Fe,nolink:Je,punctuation:Le,reflink:Ke,reflinkSearch:ae(ke(550),"g")[ke(502)](ke(560),Ke).replace(ke(525),Je)[ke(531)](),tag:Ze,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:oe},Ge=Object[ke(554)](Object[ke(554)]({},He),{escape:ae(qe)[ke(502)]("])",ke(557))[ke(531)](),url:ae(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i")[ke(502)](ke(510),/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i)[ke(531)](),t:/(?:[^?!.,:;*_'"~()&]|\([^)]*\)|&(?![a-z\d]+;$)|[?!.,:;*_'"~)]+(?!$))+/i,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[\w.!#$%&'*+/=?`{|}~-]+@)|[\s\S]*?(?:(?=[\\<![`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^\w.!#$%&'*+/=?`{|}~-](?=[\w.!#$%&'*+/=?`{|}~-]+@)))/}),Xe=Object[ke(554)](Object[ke(554)]({},Ge),{br:oe,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/}),We={block:Object[ke(554)](Object[ke(554)]({},Pe),{lheading:oe,code:oe,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:ae(Ie)[ke(502)]("hr",xe)[ke(502)](ke(548),ke(492))[ke(502)](ke(532),"")[ke(502)](ke(499),Re).replace(ke(494),ke(524)).replace(ke(507)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[ke(502)](ke(564),ke(538)).replace(ke(512),ke(551))[ke(502)](ke(561),Ae)[ke(531)](),table:ae("^ *([^\\n ].*)\\n"+ke(529)+ke(526)+"(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)").replace("hr",xe)[ke(502)]("heading",ke(492))[ke(502)](ke(494),ke(540))[ke(502)]("code",ke(497))[ke(502)](ke(507),ke(520))[ke(502)](ke(564)," {0,3}(?:[*+-]|1[.)]) ")[ke(502)](ke(512),ke(551))[ke(502)](ke(561),Ae)[ke(531)](),blockquote:ae(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ze)[ke(531)]()}),inline:Xe};function Qe(t,e){return t-=319,Ve()[t]}function Ve(){const t=["rows","emStrongLDelim","type","strong","split","match","test","20878770DMsdut","4uDJMDI","lastIndex","table","679629ZzVaJS","blockquote","543882rAcJVt","block","right","align","replace","map","blockTokens","header","inlineTokens","lexer","length","push","\n $1","code","top","673605Pcpdlt","index","punctuation","min","exec","6tiYiai","raw","inline","slice","emStrongRDelimUnd","join","2684540EeqHnW","state","list","text","3462848kclZOT","fences","substring","9ozTsUH","3772867FQUmGv"];return(Ve=function(){return t})()}!function(){const t=Qe,e=Ve();for(;;)try{if(395979==-parseInt(t(362))/1+parseInt(t(364))/2+parseInt(t(331))/3+-parseInt(t(359))/4*(parseInt(t(342))/5)+-parseInt(t(336))/6*(parseInt(t(350))/7)+-parseInt(t(346))/8+parseInt(t(349))/9*(parseInt(t(358))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ye={table(t){const e=Qe,n=We[e(365)].table[e(335)](t);if(!n)return;if(!/[:|]/[e(357)](n[2]))return;const r=pe(n[1]),s=n[2][e(320)](/^\||\| *$/g,"")[e(355)]("|"),i=n[3]&&n[3].trim()?n[3][e(320)](/\n[ \t]*$/,"").split("\n"):[],o=n[5],a={type:e(361),raw:n[0],header:[],align:[],rows:[],caption:{type:e(345),text:o,raw:o,tokens:this[e(325)][e(338)](o)}};if(r.length===s[e(326)]){for(const t of s)/^ *-+: *$/[e(357)](t)?a[e(319)][e(327)](e(366)):/^ *:-+: *$/[e(357)](t)?a[e(319)].push("center"):/^ *:-+ *$/[e(357)](t)?a[e(319)][e(327)]("left"):a[e(319)][e(327)](null);for(let t=0;t<r[e(326)];t++)a[e(323)][e(327)]({text:r[t],tokens:this.lexer[e(338)](r[t]),header:!0,align:a[e(319)][t]});for(const t of i)a[e(351)][e(327)](pe(t,a[e(323)][e(326)])[e(321)]((t,n)=>{const r=e;return{text:t,tokens:this.lexer.inline(t),header:!1,align:a[r(319)][n]}}));return a}},lheading(){},code(){},fences(t){const e=We.block[Qe(347)].exec(t);if(e){const t=e[0],n=function(t,e){const n=Qe,r=t[n(356)](/^(\s+)```/);if(null===r)return e;const s=r[1];return e.split("\n")[n(321)](t=>{const e=n,r=t[e(356)](/^\s+/);if(null===r)return t;const[i]=r;return i[e(326)]<s.length?t:t[e(339)](s[e(326)])})[n(341)]("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(We.inline.anyPunctuation,"$1"):e[2],text:n}}},br(){},emStrong(t,e,n=""){const r=Qe;let s=We[r(338)][r(352)].exec(t);if(s&&(!s[3]||!n[r(356)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||We.inline[r(333)][r(335)](n))){const n=[...s[0]].length-1;let i,o,a=n,l=0;const c="*"===s[0][0]?We[r(338)].emStrongRDelimAst:We[r(338)][r(340)];for(c[r(360)]=0,e=e[r(339)](-1*t[r(326)]+n);null!=(s=c.exec(e));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i].length,s[3]||s[4]){a+=o;continue}if((s[5]||s[6])&&n%3&&!((n+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math[r(334)](o,o+a+l);const e=[...s[0]][0][r(326)],c=t[r(339)](0,n+s[r(332)]+e+o);if(Math[r(334)](n,o)%2){const t=c[r(339)](1,-1);return{type:"em",raw:c,text:t,tokens:this.lexer[r(324)](t)}}const u=c[r(339)](2,-2);return{type:r(354),raw:c,text:u,tokens:this.lexer[r(324)](u)}}}},blockquote(t){const e=Qe,n=We[e(365)][e(363)][e(335)](t);if(n){let t=function(t){const e=t.length;if(0===e)return"";let n=0;for(;e>n&&"\n"===t.charAt(e-n-1);)n++;return t.slice(0,e-n)}(n[0])[e(355)]("\n"),r="",s="";const i=[];for(;t.length>0;){let n=!1;const o=[];let a;for(a=0;a<t[e(326)];a++)if(/^ {0,3}>/.test(t[a]))o[e(327)](t[a]),n=!0;else{if(n)break;o[e(327)](t[a])}t=t[e(339)](a);const l=o.join("\n"),c=l[e(320)](/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,e(328))[e(320)](/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this[e(325)].state[e(330)];if(this[e(325)][e(343)][e(330)]=!0,this[e(325)][e(322)](c,i,!0),this[e(325)][e(343)][e(330)]=u,0===t[e(326)])break;const p=i[i[e(326)]-1];if((null==p?void 0:p[e(353)])===e(329))break;if((null==p?void 0:p.type)===e(363)){const n=p,o=n[e(337)]+"\n"+t[e(341)]("\n"),a=this[e(363)](o);i[i[e(326)]-1]=a,r=r[e(348)](0,r[e(326)]-n[e(337)][e(326)])+a[e(337)],s=s[e(348)](0,s[e(326)]-n[e(345)].length)+a[e(345)];break}if((null==p?void 0:p[e(353)])===e(344)){const n=p,o=n[e(337)]+"\n"+t.join("\n"),a=this[e(344)](o);i[i[e(326)]-1]=a,r=r[e(348)](0,r[e(326)]-p.raw[e(326)])+a[e(337)],s=s[e(348)](0,s[e(326)]-n[e(337)][e(326)])+a.raw,t=o[e(348)](i[i[e(326)]-1][e(337)][e(326)])[e(355)]("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}};function tn(t,e){return t-=167,en()[t]}function en(){var t=["25473880KoFIKc","5400009ofudsW","12775SRXGPQ","1223080VpCFEp","495248YYuGLr","586134Uimqgq","3383345wDPBYd","1092vzUJRg"];return(en=function(){return t})()}!function(){for(var t=tn,e=en();;)try{if(903401==parseInt(t(167))/1+parseInt(t(174))/2+-parseInt(t(171))/3+-parseInt(t(173))/4+-parseInt(t(168))/5+parseInt(t(169))/6*(-parseInt(t(172))/7)+parseInt(t(170))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const nn=rn;function rn(t,e){return t-=379,on()[t]}var sn;function on(){const t=["</span> ","4926Csfpbl","tokens",'<p class="content paragraph">',"title","5qmmrnT","1538325zOQSCD","trim","10331776Kllahc","241779aSmlQm","5901244NzvczQ","true","</span></p>","3192082yLJzjW","lexer","success","Warn","^ {0,3}!!![","<span class='title'>","exec",'<span class="icon">',"Info","block",'<p class="heading">',"inlineTokens","alert","</p>","1744545jyYSrA","Error","Success","70bPxeSL","9219pzbNgS","indexOf","icon"];return(on=function(){return t})()}!function(){const t=rn,e=on();for(;;)try{if(841368==-parseInt(t(392))/1+parseInt(t(396))/2+-parseInt(t(410))/3+parseInt(t(393))/4*(parseInt(t(388))/5)+-parseInt(t(384))/6*(-parseInt(t(380))/7)+-parseInt(t(391))/8+parseInt(t(389))/9*(-parseInt(t(379))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=rn;t[e(399)]="warn",t.Success=e(398),t.Error="error",t.Info="info"}(sn||(sn={}));const an={name:nn(408),level:nn(405),start(t){const e=nn;return t[e(381)](e(400))},tokenizer(t){const e=nn;var n,r,s,i;const o=/^ {0,3}(!{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)(?:,([^\],]*))?(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(402)](t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(390)](),a=null===(r=o[3])||void 0===r?void 0:r[e(390)](),l=null===(s=o[4])||void 0===s?void 0:s.trim(),c=null===(i=o[5])||void 0===i?void 0:i[e(390)]();return{type:e(408),raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(397)][e(407)](c)}}},renderer(t){const e=nn;var n;let r="";if(t[e(382)]===e(394))switch(t.ttype){case sn[e(399)]:t[e(382)]="⚠️";break;case sn[e(412)]:t.icon="🎉";break;case sn[e(411)]:t[e(382)]="⛔";break;case sn[e(404)]:t[e(382)]="ℹ️"}const s=void 0!==t[e(382)]?e(403)+t[e(382)]+e(383):"";return r=r+'<section class="alert '+t.ttype+'">',t[e(387)]&&(r+=e(406)+s+e(401)+t[e(387)]+e(395)),r+=e(386)+(t.title?"":s)+this.parser.parseInline(null!==(n=t[e(385)])&&void 0!==n?n:[])+e(409),r+="</section>",r}};function ln(t){return(t||"").match(/\S*/)[0]}function cn(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const un=/[&<>"']/,pn=RegExp(un.source,"g"),hn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,fn=RegExp(hn.source,"g"),dn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gn=t=>dn[t];function mn(t,e){if(e){if(un.test(t))return t.replace(pn,gn)}else if(hn.test(t))return t.replace(fn,gn);return t}const kn=bn;function bn(t,e){return t-=398,xn()[t]}function xn(){const t=["plaintext","35pSxShg","latex","registerLanguage","javascript","2lCNcUd","837540BtHeWs","797656wHLatK","value","122630hjgtEZ","getLanguage","python","116365QRTrnW","125716cMBMZD","127764CptSDU","json","261vJyBhK","49248dWUTwv"];return(xn=function(){return t})()}!function(){const t=bn,e=xn();for(;;)try{if(225192==parseInt(t(408))/1*(-parseInt(t(401))/2)+parseInt(t(402))/3+parseInt(t(409))/4*(-parseInt(t(415))/5)+parseInt(t(413))/6+parseInt(t(410))/7+-parseInt(t(403))/8+parseInt(t(412))/9*(parseInt(t(405))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n[kn(399)](kn(400),r),n[kn(399)](kn(407),o),n[kn(399)](kn(398),i),n[kn(399)](kn(411),s);const wn=new vt(function(t){if("function"==typeof t&&(t={highlight:t}),!t||"function"!=typeof t.highlight)throw Error("Must provide highlight function");return"string"!=typeof t.langPrefix&&(t.langPrefix="language-"),"string"!=typeof t.emptyLangClass&&(t.emptyLangClass=""),{async:!!t.async,walkTokens(e){if("code"!==e.type)return;const n=ln(e.lang);if(t.async)return Promise.resolve(t.highlight(e.text,n,e.lang||"")).then(cn(e));const r=t.highlight(e.text,n,e.lang||"");if(r instanceof Promise)throw Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");cn(e)(r)},useNewRenderer:!0,renderer:{code(e,n,r){"object"==typeof e&&(r=e.escaped,n=e.lang,e=e.text);const s=ln(n),i=s?t.langPrefix+mn(s):t.emptyLangClass,o=i?` class="${i}"`:"";return e=e.replace(/\n$/,""),`<pre><code${o}>${r?e:mn(e,!0)}\n</code></pre>`}}}}({highlight(t,e){const r=kn,s=n[r(406)](e)?e:r(414);return n.highlight(t,{language:s})[r(404)]}}));function yn(t,e){return t-=215,$n()[t]}const In=yn;function $n(){const t=["1134eIkIkR","2TBEXFU","lexer","tokens",'<section class="gallery-wrapper">\n',"raw","block","649694XMgEdA","type","3668150GUVCFw","gallery","3857430HoVyGR","paragraph","forEach",'<section class="gallery-container">\n',"26232vOnvkZ","</section>\n","11793060JotOBT","3GayHbi","1505568vZyErJ","3142403DDEIrc","parse","80jcspHh"];return($n=function(){return t})()}!function(){const t=yn,e=$n();for(;;)try{if(672965==parseInt(t(234))/1*(parseInt(t(217))/2)+parseInt(t(228))/3*(parseInt(t(229))/4)+parseInt(t(219))/5+-parseInt(t(221))/6+-parseInt(t(233))/7*(-parseInt(t(225))/8)+parseInt(t(227))/9+-parseInt(t(232))/10*(parseInt(t(230))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const vn={name:In(220),level:In(216),start:t=>t.indexOf("!!!"),tokenizer(t){const e=In,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/.exec(t);if(n){const t=n[2];return{type:e(220),raw:n[0],text:t,tokens:this[e(235)].blockTokens(t)}}},renderer(t){const e=In;var n;let r=e(224);return r+=e(237),null===(n=t[e(236)])||void 0===n||n[e(223)](t=>{const n=e;var s;t[n(218)]===n(222)&&(null===(s=t[n(236)])||void 0===s||s[n(223)](t=>{const e=n;"image"===t[e(218)]&&(r+=wn[e(231)](t[e(215)]))}))}),r+=e(226),r+="</section>\n",r}};function Sn(){const t=["forEach",'" id="footnote-',"5277XlZJQZ","604164IibGdl","432PqdBKA","847516MbzLpw","tokens",'"> ⬅ </a>',"block","table","222320EQrcpF","caption","list",'<li class="footnote-def" key="',"replaceAll","inline","length","isolated","</li>","key","items","content","footnoteRef","89016YazmCi","number","exec","</ol>","]</a></sup></span>","push","154HHMECW","type","1970890CmLdPN","indexOf","9mWXTEa","40nftCjG",' <a href="#footnote-ref-',"footnoteDef","map",'">[',"5PiNvGU","trim",'<ol class="footnote-list">',"parseInline","sort","17534VEbWWq"];return(Sn=function(){return t})()}const An=_n;!function(){const t=_n,e=Sn();for(;;)try{if(123759==parseInt(t(382))/1+-parseInt(t(388))/2*(-parseInt(t(361))/3)+parseInt(t(364))/4*(parseInt(t(398))/5)+parseInt(t(362))/6+parseInt(t(369))/7*(-parseInt(t(393))/8)+parseInt(t(392))/9*(-parseInt(t(390))/10)+-parseInt(t(358))/11*(parseInt(t(363))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const jn={name:An(381),level:An(374),start:t=>t[An(391)]("[^"),tokenizer:t=>{const e=An,n=/^\[\^([^\]]+)\]/[e(384)](t);if(n){const t=n[1][e(399)]();return{type:"footnoteRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=An;return'<span class="footnote-ref" id="footnote-ref-'+t.id+'"><sup><a href="#footnote-'+t.id+e(397)+t.number+e(386)}};function _n(t,e){return t-=355,Sn()[t]}const zn={name:"footnoteDef",level:An(367),start:t=>t[An(391)]("[^"),tokenizer(t){const e=An,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/[e(384)](t);if(n){const t=n[1][e(399)](),r=n[2][e(399)]();return{type:e(395),raw:n[0],id:t,text:r,tokens:this.lexer.inlineTokens(r)}}},renderer(t){const e=An;var n;const r=e(394)+t.id+e(366);return e(372)+t[e(383)]+e(360)+t.id+'">'+this.parser[e(356)](null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:[])+(t[e(376)]?"":r)+e(377)}},Tn=t=>{const e={};let n=1;return function t(r){const s=_n;r[s(359)](r=>{const i=s;"footnoteRef"===r[i(389)]&&(!(r.id in e)&&(e[r.id]=n,n++),r.number=e[r.id]),r.type===i(371)&&r[i(379)].forEach(e=>{const n=i;e.tokens&&e[n(365)].length>0&&t(e[n(365)])}),r[i(389)]===i(368)&&(r.header[i(359)](e=>{const n=i;e.tokens&&e[n(365)][n(375)]>0&&t(e[n(365)])}),r.rows.forEach(e=>{e.forEach(e=>{const n=_n;e[n(365)]&&e[n(365)].length>0&&t(e[n(365)])})}),r[i(370)][i(365)]&&r.caption[i(365)][i(375)]>0&&t(r[i(370)][i(365)])),r[i(365)]&&r[i(365)][i(375)]>0&&t(r[i(365)])})}(t),function t(r){const s=_n;r[s(359)](r=>{const i=s;r[i(389)]===i(395)&&(r[i(376)]=!1,!(r.id in e)&&(e[r.id]=n,n++,r[i(376)]=!0),r[i(383)]=e[r.id]),r[i(365)]&&r[i(365)][i(375)]>0&&t(r.tokens)})}(t),t},Rn=qn;var Pn;function qn(t,e){return t-=353,Dn()[t]}function Dn(){const t=["lexer","parse","block","1571592jxKmLJ","426524kXsFbq","solution","blockTokens","proof","1042145hGLJHi",'<details class="solution ',"581021KMSFBJ","tokens","42CbXVAi","\n </section></details>","12764OAQlYK","SOLUTION","64954vqAFle","~~~[","stype","typeName",'</summary>\n <section class="content">\n ',"2618360jwAjcu","PROOF"];return(Dn=function(){return t})()}!function(){const t=qn,e=Dn();for(;;)try{if(132101==parseInt(t(370))/1+parseInt(t(358))/2+-parseInt(t(366))/3*(-parseInt(t(368))/4)+-parseInt(t(362))/5+parseInt(t(357))/6+parseInt(t(364))/7+-parseInt(t(375))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=qn;t[e(353)]=e(361),t[e(369)]=e(359)}(Pn||(Pn={}));const Ln={[Pn[Rn(353)]]:"证明",[Pn[Rn(369)]]:"解答"},Cn={name:"solution",level:Rn(356),start:t=>t.indexOf(Rn(371)),tokenizer(t){const e=Rn;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/.exec(t);if(r){const t=r[2].trim(),s=r[3].trim();return{type:"solution",raw:r[0],stype:t,typeName:null!==(n=Ln[t])&&void 0!==n?n:t,text:s,tokens:this[e(354)][e(360)](s)}}},renderer(t){const e=Rn;var n;return e(363)+ce(t[e(372)])+'"><summary>'+t[e(373)]+e(374)+this.parser[e(355)](null!==(n=null==t?void 0:t[e(365)])&&void 0!==n?n:[])+e(367)}},En=Un;var Mn;!function(){const t=Un,e=Nn();for(;;)try{if(501454==parseInt(t(494))/1+-parseInt(t(502))/2+parseInt(t(477))/3+-parseInt(t(499))/4*(-parseInt(t(497))/5)+parseInt(t(490))/6*(-parseInt(t(483))/7)+parseInt(t(482))/8+-parseInt(t(480))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Un;t[e(487)]=e(501),t[e(485)]="lemma",t[e(516)]=e(515),t[e(518)]="axiom",t[e(509)]="definition",t[e(481)]=e(498)}(Mn||(Mn={}));const On={[Mn[En(487)]]:"定理",[Mn[En(485)]]:"引理",[Mn[En(516)]]:"推论",[Mn[En(518)]]:"公理",[Mn[En(509)]]:"定义",[Mn.Example]:"例"},Bn={name:En(476),level:En(486),start:t=>t[En(495)]("[~"),tokenizer:t=>{const e=En,n=/^\[~([^\]]+)\]/.exec(t);if(n){const t=n[1][e(474)]();return{type:"theoremLikeRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=En;return e(512)+t.id+e(492)+t.id+'">'+(t.typeName+" "+t.number).trimEnd()+e(511)}};function Nn(){const t=["Definition","block","</a>",'<a id="theorem-like-ref-',"</b>","unnumbered","corollary","Corollary","list","Axiom","tokens","parse","parser","trim",'<section class="theorem-like ',"theoremLikeRef","859722WEacpl","theoremLikeDef","number","5501169FwDjNK","Example","6641944lYFMXZ","21CqkOpx","length","Lemma","inline","Theorem","</em> )",'" id="theorem-like-',"116460htaboz","lexer",'" href="#theorem-like-',"ttype","655166KQDfaX","indexOf","endsWith","20755MSLbXe","example","288rfJkmu","forEach","theorem","1799860bcnIvE",'\n </p>\n <section class="content">\n ',"type"," ( <em>","name","```[","typeName"];return(Nn=function(){return t})()}const Zn={name:En(478),level:En(510),start(t){const e=En;return t[e(495)](e(507))},tokenizer(t){const e=En;var n,r,s,i,o,a;const l=/^ {0,3}(`{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*),([^\],]*)(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/.exec(t);if(l){const t=null===(n=l[2])||void 0===n?void 0:n.trim().replace(/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r[e(474)]()[e(496)]("*"),u=null===(s=l[3])||void 0===s?void 0:s[e(474)](),p=null===(i=l[4])||void 0===i?void 0:i[e(474)](),h=null===(o=l[5])||void 0===o?void 0:o.trim();return{type:e(478),raw:l[0],id:u,name:p,text:h,ttype:t,typeName:null!==(a=On[t])&&void 0!==a?a:t,tokens:this[e(491)].blockTokens(h),unnumbered:c}}},renderer(t){const e=En;var n;return e(475)+ce(t.ttype)+e(489)+t.id+'">\n <p class="title"><b>'+t[e(508)]+e(513)+(t[e(514)]?"":" "+t[e(479)])+(t[e(506)]?e(505)+t.name+e(488):"")+e(503)+this[e(473)][e(520)](null!==(n=null==t?void 0:t[e(519)])&&void 0!==n?n:[])+"\n </section> \n</section>"}};function Un(t,e){return t-=473,Nn()[t]}const Fn=Kn;function Kn(t,e){return t-=321,Hn()[t]}!function(){const t=Kn,e=Hn();for(;;)try{if(581420==parseInt(t(327))/1*(parseInt(t(321))/2)+-parseInt(t(339))/3+parseInt(t(326))/4+-parseInt(t(336))/5*(parseInt(t(353))/6)+-parseInt(t(341))/7+parseInt(t(334))/8+parseInt(t(352))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Jn=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</;function Hn(){const t=['<span class="tooltip-container">\n',"title","</span>\n</span>\n","3037880UptwkW","347451sNLVGf","imageUrl","lexer","parser",' class="tooltip-trigger">','<span class="tooltip-title">',"inlineTokens","2155352smsFSh",'<span class="tooltip-description">',"35675rdrwyo",'<span class="tooltip-image"><img src="',"tooltip","1386645YYjLdx",'<input type="checkbox" id=',"4368945ngQZuw",'" alt="',">>>","trim",'"></span>\n',"description",' class="tooltip-toggle">',"text","<label for=",'<span class="tooltip">\n',"raw","9063846gTmMtw","894aeaMWM","parseInline","inline","</label>\n","4kxKfrb","</span>\n"];return(Hn=function(){return t})()}const Gn={name:Fn(338),level:Fn(355),start:t=>t.indexOf(Fn(343)),tokenizer(t){const e=Fn,n=Jn.exec(t);if(n){const[t,r,s,i,o]=n,a="id-"+re.md5(t);return{type:e(338),id:a,raw:t,title:s,text:r,imageUrl:o,description:{type:e(348),text:i,raw:i,tokens:this.lexer.inline(i)},tokens:this[e(329)][e(333)](r[e(344)]())}}},renderer(t){const e=Fn;var n;let r=e(323);return r+=e(340)+t.id+e(347),r+=e(349)+t.id+e(331)+this[e(330)].parseInline(null!==(n=t.tokens)&&void 0!==n?n:[])+e(356),r+=e(350),t.imageUrl[e(344)]()&&(r+=e(337)+t[e(328)].trim()+e(342)+t.title[e(344)]()+e(345)),t[e(324)][e(344)]()&&(r+=e(332)+t[e(324)][e(344)]()+e(322)),t[e(346)][e(351)][e(344)]()&&(r+=e(335)+this[e(330)][e(354)]([t[e(346)]])+"</span>\n"),r+=e(325),r}},Xn=Yn;function Wn(){const t=["15jjGYPQ","3483246kXGFZQ","inlineMath2","1258911MeESSF"," \\lt ","</p>\n","blockMath",'<p class="paragraph">',"373359xUVqlc","327048HrnZhX","4EmVAYH","890230xADRbN","trim","text","match","inline","blockMath2","197381zKdqOQ","16sWLJOw","inlineMath","36PTAgHP","638NDdwqW","exec","block","replace","803460dPlrEG","indexOf"];return(Wn=function(){return t})()}function Qn(t){const e=Yn;return t[e(263)](/\s*<\s*/g,e(270)).replace(/\s*>\s*/g," \\gt ")}!function(){const t=Yn,e=Wn();for(;;)try{if(325621==-parseInt(t(283))/1*(parseInt(t(276))/2)+-parseInt(t(269))/3+parseInt(t(264))/4*(parseInt(t(266))/5)+-parseInt(t(267))/6+parseInt(t(274))/7*(-parseInt(t(284))/8)+-parseInt(t(286))/9*(parseInt(t(277))/10)+parseInt(t(287))/11*(parseInt(t(275))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Vn={name:Xn(285),level:Xn(281),start:t=>t.indexOf("$"),tokenizer(t){const e=Xn,n=/^\$(?:[^$]|\\\$)+\$(?!\$)/[e(288)](t);if(n)return{type:e(285),raw:n[0],text:n[0]}},renderer:t=>Qn(t[Xn(279)])};function Yn(t,e){return t-=263,Wn()[t]}const tr={name:Xn(268),level:"inline",start:t=>t[Xn(265)]("\\("),tokenizer(t){const e=Xn,n=t[e(280)](/^\\\(.*?\\\)/);if(n)return{type:e(268),raw:n[0],text:n[0]}},renderer:t=>Qn(t[Xn(279)])},er={name:Xn(272),level:Xn(289),start:t=>t[Xn(265)]("$$"),tokenizer(t){const e=Xn,n=t.match(/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(n)return{type:e(272),raw:n[0],text:n[0][e(278)]()}},renderer:t=>Xn(273)+Qn(t.text)+"</p>\n"},nr={name:Xn(282),level:Xn(289),start:t=>t[Xn(265)]("\\["),tokenizer(t){const e=Xn,n=t[e(280)](/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:e(282),raw:n[0],text:n[0][e(278)]()}},renderer(t){const e=Xn;return'<p class="paragraph">'+Qn(t[e(279)])+e(271)}};function rr(){var t=["814jGiypd","116250AfXNFG","1672443BUxXGm","3207648RAzjXG","1788cvvtTM","1410108OvnMQW","5OtsNkF","681NjSeXQ","3138688QaNpOD","5403ZyHdCr"];return(rr=function(){return t})()}function sr(t,e){return t-=499,rr()[t]}function ir(){const t=["type","text","2272236UmSatM","4595988wOyufe",'<img src="',' style="',"3317232CmBBLL","879196EeDCNT","isArray","120856zgSNhS","push","tokens","height:","117PGbTge","px;","1343587AGqkOj","title","4765855yfamRh",' title="',"image","7jKDOTe","href",'" alt="'];return(ir=function(){return t})()}function or(t,e){return t-=261,ir()[t]}!function(){for(var t=sr,e=rr();;)try{if(403056==parseInt(t(501))/1*(parseInt(t(504))/2)+parseInt(t(503))/3*(-parseInt(t(508))/4)+parseInt(t(500))/5*(parseInt(t(507))/6)+parseInt(t(499))/7+parseInt(t(502))/8+-parseInt(t(506))/9+-parseInt(t(505))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=or,e=ir();for(;;)try{if(687694==-parseInt(t(264))/1+parseInt(t(274))/2+parseInt(t(278))/3+-parseInt(t(279))/4+-parseInt(t(266))/5+-parseInt(t(275))/6*(-parseInt(t(269))/7)+-parseInt(t(281))/8*(-parseInt(t(262))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ar=lr;function lr(t,e){return t-=175,pr()[t]}!function(){const t=lr,e=pr();for(;;)try{if(479490==-parseInt(t(198))/1*(parseInt(t(199))/2)+parseInt(t(194))/3*(parseInt(t(189))/4)+-parseInt(t(195))/5+parseInt(t(197))/6+-parseInt(t(178))/7+-parseInt(t(175))/8*(parseInt(t(190))/9)+-parseInt(t(192))/10*(-parseInt(t(193))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const cr=new vt;cr.use({extensions:[Vn,tr],tokenizer:Object[ar(180)]({},Ye),renderer:Object[ar(180)]({},ge)});const ur=t=>{const e=ar;Ft(e(200)),Wt()||(typeof process!==e(179)&&null!=process[e(187)]&&null!=process.versions[e(185)]?console[e(188)]("[mmarked] ⚠️ No valid license configured for Node.js server-side usage. "+e(196)+e(201)+e(181)):console.warn(e(176)+e(182)+e(183)));const n=new Date,r=cr[e(191)][e(186)](t,cr.defaults),s=cr[e(184)](t),i=new Date;let o=function(t,e){const n=or;let r=t;for(const t of e){const e=ie(t[n(270)]);if(null===e)continue;let s='<img src="'+e+n(271)+t[n(273)]+'"';if(t.title){const{text:e,width:r,height:i}=ue(t[n(265)]);e&&(s+=n(267)+e+'"'),(r||i)&&(s+=n(277),r&&(s+="width:"+r+n(263)),i&&(s+=n(261)+i+n(263)),s+='"')}s+=">";const i=n(276)+e+n(271)+t[n(273)]+'"'+(t[n(265)]?' title="'+t[n(265)]+'"':"")+">";r=r.replaceAll(i,s)}return r}(s,function t(e){const n=or,r=[];for(const s of e)s[n(272)]===n(268)&&r[n(282)](s),n(283)in s&&Array[n(280)](s[n(283)])&&r[n(282)](...t(s[n(283)]));return r}(r));const a=Kt();return a&&(o=a+o),{parsed:o,lexed:r,time:i[e(177)]()-n[e(177)]()}};function pr(){const t=["11QCKPJJ","3eDICQR","3450465vNuaAW","For commercial use, please configure a license using configureLicense(). ","2888730TTpTdl","55WdxLPk","19060zsLAsf","renderMarkdownCompact","Contact charles@mathcrowd.cn for commercial licensing. ","125848OyzOLh","[mmarked] ℹ️ Running in browser environment, no license required. ","getTime","2414160xtrbJw","undefined","assign","Browser usage does not require a license.","For commercial use in Node.js, please configure a license using configureLicense(). ","Contact charles@mathcrowd.cn for commercial licensing.","parseInline","node","lexInline","versions","warn","684460ifyFft","288SJRhNo","Lexer","18894350MKLako"];return(pr=function(){return t})()}const hr=gr;function fr(){const t=["328uQwprw","2523762AXQKnz","Browser usage does not require a license.","Contact charles@mathcrowd.cn for commercial licensing. ","583290qoFchI","64161pbJEki","3777928hPfLPP","getTime","2UmbEKv","For commercial use in Node.js, please configure a license using configureLicense(). ","versions","[mmarked] ℹ️ Running in browser environment, no license required. ","lexer","Contact charles@mathcrowd.cn for commercial licensing.","For commercial use, please configure a license using configureLicense(). ","assign","use","5230060ogDjbv","node","warn","1291055bkBBxt","parse","1067999DcSvdT","4ScuBPb"];return(fr=function(){return t})()}!function(){const t=gr,e=fr();for(;;)try{if(824422==parseInt(t(303))/1*(parseInt(t(313))/2)+parseInt(t(309))/3+parseInt(t(304))/4*(parseInt(t(325))/5)+-parseInt(t(306))/6+parseInt(t(311))/7+parseInt(t(305))/8*(-parseInt(t(310))/9)+-parseInt(t(322))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const dr={renderer:Object[hr(320)](Object[hr(320)]({},de),ge),tokenizer:Object[hr(320)]({},Ye),useNewRenderer:!0,gfm:!0,extensions:[Vn,tr,er,nr,jn,zn,Zn,Bn,Cn,an,vn,Gn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=En,n={[Mn[e(487)]]:0,[Mn[e(485)]]:0,[Mn[e(516)]]:0,[Mn[e(518)]]:0,[Mn[e(509)]]:0,[Mn[e(481)]]:0},r={};return function t(s){const i=e;s[i(500)](e=>{const s=i;e[s(504)]===s(478)&&(e[s(493)]in n?n[e.ttype]=n[e[s(493)]]+1:n[e[s(493)]]=1,e[s(479)]=e[s(514)]?"":n[e[s(493)]],r[e.id]={typeName:e[s(508)],number:e.number}),e[s(519)]&&e[s(519)].length>0&&t(e[s(519)])})}(t),function t(n){const s=e;n[s(500)](e=>{const n=s;e[n(504)]===n(476)&&e.id in r&&(e.number=r[e.id][n(479)],e[n(508)]=r[e.id][n(508)]),e[n(504)]===n(517)&&e.items[n(500)](e=>{const r=n;e.tokens&&e[r(519)][r(484)]>0&&t(e[r(519)])}),e[n(519)]&&e.tokens[n(484)]>0&&t(e[n(519)])})}(t),t})(Tn(t)),postprocess:t=>(t=>{const e=An,n=[];return t=t.replaceAll(/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,e)=>(n[_n(387)]({key:parseInt(e),content:t}),"")),n[e(357)]((t,n)=>t[e(378)]-n.key),t=t[e(373)](/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(375)]>0&&(t+=e(355)+n[e(396)](t=>t[e(380)]).join("")+e(385)),t})(t)}};function gr(t,e){return t-=303,fr()[t]}wn[hr(321)](dr);const mr=t=>{const e=hr;Ft("renderMarkdown"),Wt()||("undefined"!=typeof process&&null!=process.versions&&null!=process[e(315)][e(323)]?console[e(324)]("[mmarked] ⚠️ No valid license configured for Node.js server-side usage. "+e(319)+e(308)+e(307)):console[e(324)](e(316)+e(314)+e(318)));const n=new Date,r=Tn(wn[e(317)](t));let s=wn[e(326)](t);const i=new Date,o=Kt();return o&&(s=o+s),{parsed:s,lexed:r,time:i.getTime()-n[e(312)]()}};function kr(t,e){return t-=467,br()[t]}function br(){var t=["2321mJujBX","1558557WUtDxS","549706dGodyA","1ceWCpK","1491bObKwn","15yGHioJ","3124nOPWKO","56170UkIHbf","4450563Faludp","1143546jVpIZp","5971008aPyjyi"];return(br=function(){return t})()}function xr(t,e){return t-=156,yr()[t]}!function(){for(var t=kr,e=br();;)try{if(406730==parseInt(t(477))/1*(-parseInt(t(476))/2)+parseInt(t(467))/3*(parseInt(t(469))/4)+parseInt(t(468))/5*(parseInt(t(472))/6)+-parseInt(t(475))/7+-parseInt(t(473))/8+-parseInt(t(471))/9+-parseInt(t(470))/10*(-parseInt(t(474))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const wr=xr;function yr(){const t=["3843220OCPrDZ","240795JCwmIo","2370hYAAXI","body","none","172dbofwL","4680036HJKMXx","clear","16UbhqJf","document","2381148MhlqKs","1321494WTTLPt","2534042ULHSel","innerHTML"];return(yr=function(){return t})()}!function(){const t=xr,e=yr();for(;;)try{if(477476==parseInt(t(159))/1*(parseInt(t(156))/2)+parseInt(t(165))/3+parseInt(t(164))/4+parseInt(t(168))/5+-parseInt(t(160))/6+-parseInt(t(166))/7*(parseInt(t(162))/8)+-parseInt(t(169))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ir=a({fontSize:13});l(Ir);const $r=new u({packages:c,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:"\\unicode{x25B1}"}}),vr=new h({fontCache:wr(158)}),Sr=t=>{const e=wr;try{const n=p[e(163)](t,{InputJax:$r,OutputJax:vr});n.render();const r=Ir[e(167)](Ir[e(157)](n.document));return n[e(161)](),r}catch(e){return console.error(e),t}};function Ar(t,e){return t-=403,jr()[t]}function jr(){var t=["5376096Gjpvyh","8135sWsPYX","10qRBrVJ","78721hWjUtG","947328LcBBfO","2045155HuIBmX","4178412hphvlc","1060rByekV","6123736TqCvZR"];return(jr=function(){return t})()}function _r(t,e){return t-=108,zr()[t]}function zr(){var t=["895461WDnhsi","103810cBWOdB","4979096DgXtCd","30sfQakT","300051sDCCHG","340625PCLNzV","99cLiyPy","6plBpOU","1018304VxXnRg","9723olXKMV"];return(zr=function(){return t})()}!function(){for(var t=Ar,e=jr();;)try{if(542218==parseInt(t(411))/1*(-parseInt(t(410))/2)+-parseInt(t(403))/3+-parseInt(t(406))/4*(-parseInt(t(409))/5)+parseInt(t(405))/6+parseInt(t(404))/7+-parseInt(t(407))/8+parseInt(t(408))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=_r,e=zr();;)try{if(477248==parseInt(t(112))/1*(parseInt(t(115))/2)+-parseInt(t(117))/3+-parseInt(t(116))/4+-parseInt(t(113))/5+parseInt(t(111))/6*(parseInt(t(108))/7)+-parseInt(t(110))/8+parseInt(t(114))/9*(-parseInt(t(109))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{Tt as UNLICENSED_WARNING_INTERVAL,Qt as clearValidationCache,Jt as configureLicense,Gt as getLicenseConfig,Kt as getWarningIfNeeded,Wt as isLicensed,mr as renderMarkdown,ur as renderMarkdownCompact,Vt as resetUsageStats,Pt as setUnlicensedWarningInterval,Ut as stopUsageTracking,Sr as tex2svg,Ft as trackFunctionCall,Xt as validateLicense};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mathcrowd/mmarked",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A customized markdown parser/renderer with tex2svg.",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.mjs",