@mathcrowd/mmarked 3.0.0 → 3.0.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+|$)/,I=/(?:[*+-]|\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+|$)/,w=m(y).replace(/bull/g,I).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,I).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,I).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(),q={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:w,list:j,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:R,table:g,text:/^[^\n]+/},M=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(),P={...q,lheading:$,table:M,paragraph:m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",M).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={...q,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",w).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},L=/^( {2,}|\\)\n(?!\s*$)/,C=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,Z=/[^\s\p{P}\p{S}]/u,O=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),N=/(?!~)[\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_]))/,F=m(B,"u").replace(/punct/g,C).getRegex(),X=m(B,"u").replace(/punct/g,N).getRegex(),K="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=m(K,"gu").replace(/notPunctSpace/g,Z).replace(/punctSpace/g,D).replace(/punct/g,C).getRegex(),J=m(K,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),W=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Z).replace(/punctSpace/g,D).replace(/punct/g,C).getRegex(),V=m(/\\(punct)/,"gu").replace(/punct/g,C).getRegex(),G=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(),Q=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",Q).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:V,autolink:G,blockSkip:U,br:L,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:H,emStrongRDelimUnd:W,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:O,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:J,emStrongLDelim:X,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(L).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:q,gfm:P,pedantic:E},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}},It=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""}},wt=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new It,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?wt.parse:wt.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=wt;Renderer=It;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 It(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 wt.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?wt.parse:wt.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?wt.parse:wt.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=wt,At.parser=wt.parse,At.Renderer=It,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=Nt;function zt(){const t=["stringify","POST","current version","[mmarked] License validation failed:","undefined","session-","3407139YvFuEq","toString","application/json","https://api.mathcrowd.cn/validate-license","50910GfFoWj","renderMarkdownCompactCalls","sessionId","22KPbCUF",'">\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>',"Fetch API not available. Requires Node.js 18+ or use custom validator.","lastUsedAt",'" data-timestamp="',"versions","[mmarked] Failed to report usage statistics:","crypto","totalCalls","3484850zqavCo","error","[mmarked] Usage reporting error:","json","randomUUID","[mmarked] ⚠️ Remote license validation not supported on Node.js ","catch","4552134rXDpqK","debug","get","Requires Node.js 18+ for fetch API support. ","[mmarked] Remote validation failed:","warn","log","nodeVersion","[mmarked] Validation cache cleared","node","set","substring","mmarked","renderMarkdownCalls","1648TPUQWV","[mmarked] License configured successfully","[mmarked] Usage stats reset","renderMarkdown","4951128WWQijy","renderMarkdownCompact","now","result","assign","[mmarked] License validation error:","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","clear","7CDuDVB","firstUsedAt","substr","https://api.mathcrowd.cn/report-usage","random","1055485ywaFaJ","2.0.3","valid","apiKey","lastReportedAt","timestamp","No license configured. Please call configureLicense() with your API key.","statusText","771HLOVsz"];return(zt=function(){return t})()}function Tt(){const t=Nt;if(!Ot())return"browser-session";try{if(typeof require!==t(243)){const e=require(t(259));if(e[t(265)])return e[t(265)]()}return t(293).replace(/[xy]/g,function(e){const n=16*Math[t(299)]()|0;return("x"===e?n:3&n|8).toString(16)})}catch(e){return t(244)+Date.now()+"-"+Math[t(299)]()[t(246)](36)[t(297)](2,9)}}!function(){const t=Nt,e=zt();for(;;)try{if(412913==-parseInt(t(252))/1*(-parseInt(t(249))/2)+-parseInt(t(308))/3*(parseInt(t(282))/4)+-parseInt(t(300))/5+parseInt(t(268))/6+-parseInt(t(295))/7*(parseInt(t(286))/8)+parseInt(t(245))/9+-parseInt(t(261))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let Rt=1e3;function qt(t){Rt=t}let Mt=null;const Pt=new Map;let Et=!1;const Lt=_t(248),Ct=_t(298),Dt={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date[_t(288)](),lastUsedAt:Date[_t(288)](),sessionId:Tt()};let Zt=null;function Ot(){const t=_t;return"undefined"!=typeof process&&null!=process[t(257)]&&null!=process.versions[t(277)]}function Nt(t,e){return t-=239,zt()[t]}function Ut(){return jt(this,void 0,void 0,function*(){const t=Nt;var e;if(!Ot())return;const n=Mt;if(!n||!n[t(303)])return;const r=Date[t(288)]();if(Dt[t(304)]&&18e5>r-Dt[t(304)])return;const s=Ct;try{const i=Object[t(290)](Object[t(290)]({},Dt),{apiKey:n[t(303)],timestamp:r,nodeVersion:null===(e=process[t(257)])||void 0===e?void 0:e.node});typeof fetch!==t(243)&&(yield fetch(s,{method:t(240),headers:{"Content-Type":"application/json"},body:JSON[t(239)](i)}),Dt.lastReportedAt=r,console[t(269)]("[mmarked] Usage statistics reported successfully"))}catch(e){console.debug(t(258),e)}})}function Bt(t){const e=_t;var n;Ot()&&(Dt[e(260)]++,Dt[e(255)]=Date[e(288)](),t===e(285)?Dt[e(281)]++:t===e(287)&&Dt[e(250)]++,(null==Mt?void 0:Mt[e(303)])&&(Dt.apiKey=Mt[e(303)],Dt[e(275)]=null===(n=process[e(257)])||void 0===n?void 0:n[e(277)]))}function Ft(){const t=_t;return!Ot()||Jt()?"":Dt[t(260)]>0&&Dt[t(260)]%Rt===0?function(){const t=_t,e=Date[t(288)]();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(299)]()[t(246)](36)[t(279)](2,9)+t(256)+e+t(253)}():""}function Xt(t){const e=_t;Mt=t,function(){const t=_t;Ot()&&Mt&&Mt[t(303)]&&(Zt&&clearInterval(Zt),Zt=setInterval(()=>{const e=t;Ut()[e(267)](t=>{const n=e;console[n(269)](n(263),t)})},36e5),Ut()[t(267)](t=>{console.debug("[mmarked] Initial usage reporting error:",t)}))}(),console[e(274)](e(283))}function Kt(){return Mt}function Ht(){return jt(this,void 0,void 0,function*(){const t=Nt,e=Mt;if(!e||!e[t(303)])return{valid:!1,message:t(306)};const{apiKey:n}=e,r=Pt[t(270)](n);if(r&&36e5>Date[t(288)]()-r[t(305)])return{valid:r[t(289)]};const s=yield function(t,e){return jt(this,void 0,void 0,function*(){const n=Nt;var r;try{if(typeof fetch===n(243)){const t=null===(r=process.versions)||void 0===r?void 0:r[n(277)];return console[n(273)](n(266)+(t||n(241))+". "+n(271)+n(292)),{valid:!1,message:n(254)}}const s=yield fetch(e,{method:"POST",headers:{"Content-Type":n(247)},body:JSON[n(239)]({apiKey:t,product:n(280),version:n(301)})});return s.ok?yield s[n(264)]():{valid:!1,message:"Validation failed: "+s[n(307)]}}catch(t){return console.warn(n(272),t),{valid:!1,message:"Network error during validation"}}})}(n,Lt);return Pt[t(278)](n,{result:s[t(302)],timestamp:Date.now()}),s})}function Jt(){const t=_t;return!!Ot()&&!(!Mt||!Mt.apiKey||(!Et&&(Et=!0,Ht().then(t=>{const e=Nt;return!t[e(302)]&&console[e(273)](e(242),t.message),t})[t(267)](e=>{const n=t;throw console[n(262)](n(291),e),e})),0))}function Wt(){Pt[_t(294)](),Et=!1,console.log("[mmarked] Validation cache cleared")}function Vt(){const t=_t;Dt.totalCalls=0,Dt[t(281)]=0,Dt[t(250)]=0,Dt[t(296)]=Date[t(288)](),Dt.lastUsedAt=Date[t(288)](),Dt[t(304)]=void 0,Dt[t(251)]=Tt(),Mt=null,Pt[t(294)](),Et=!1,console[t(274)](t(284)),console[t(274)](t(276))}var Gt,Qt,Yt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},te={exports:{}},ee=(Gt||(Gt=1,Qt=te,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=Yt:i&&(s=self);var a,l=!s.JS_MD5_NO_COMMON_JS&&Qt.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]},I=function(t){return function(e){return new w(!0).update(e)[t]()}},y=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function w(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 w(!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}w.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}w.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},w.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()}},w.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)},w.prototype.toString=w.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]},w.prototype.array=w.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]},w.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},w.prototype.buffer=w.prototype.arrayBuffer,w.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 w).finalize=function(){if(w.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();w.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),w.prototype.finalize.call(this)}};var v=function(){var r=I("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 w},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=I(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?Qt.exports=v:s.md5=v}()),te.exports);function ne(t,e){return t-=315,ae()[t]}function re(t){const e=ne;try{t=encodeURI(t)[e(315)](/%25/g,"%")}catch(t){return null}return t}!function(){const t=ne,e=ae();for(;;)try{if(629461==-parseInt(t(335))/1+parseInt(t(339))/2+parseInt(t(319))/3+parseInt(t(328))/4*(parseInt(t(320))/5)+-parseInt(t(330))/6*(parseInt(t(333))/7)+-parseInt(t(322))/8*(parseInt(t(316))/9)+parseInt(t(318))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const se={exec:()=>null};function ie(t,e){const n=ne;let r=typeof t===n(321)?t:t[n(338)];e=e||"";const s={replace:(t,e)=>{const i=n;let o=typeof e===i(321)?e:e[i(338)];return o=o[i(315)](/(^|[^[])\^/g,"$1"),r=r.replace(t,o),s},getRegex:()=>RegExp(r,e)};return s}const oe=t=>/^[a-z][\w-]*$/i[ne(329)](t)?t:"class-"+ee.md5(t);function ae(){const t=["indexOf","pop","101255nhIAKl","split","1068233XUufWr","node","trim","source","1765276XdCQqX","replace","72fMooqy","shift","18100720qWrKMC","2325729HYDkZu","1535pUWxAd","string","924592lpEIKC","length","versions","charAt","slice","undefined","4436eFmLKR","test","492URdwWK"];return(ae=function(){return t})()}function le(t){const e=t.match(/^(.*?)(?:\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 ce(t,e){const n=ne,r=t.replace(/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})[n(334)](/ \|/);let s=0;if(!r[0].trim()&&r[n(317)](),r[n(323)]>0&&!r[r.length-1][n(337)]()&&r[n(332)](),e)if(r[n(323)]>e)r.splice(e);else for(;r[n(323)]<e;)r.push("");for(;s<r[n(323)];s++)r[s]=r[s][n(337)]()[n(315)](/\\\|/g,"|");return r}function ue(){const t=[' style="',"5368250VMjbkj","caption","title","6pHrvek","1490062jFvkpI",'<section class="img-container">\n',"</table>\n",'" alt="',"</figcaption>\n","</p>\n","tablerow",'<li class="md-list-item">',"items",' start="',"text","rows","parseInline","image","href","</li>\n","<table>\n","</figure>\n","header","height:","parser","<figure>\n","</section>\n","<figcaption>","3415875ozYYdz","6320064JjbhII","task","39506958xJmrCG","tokens","length","2BGnwKa",'<p class="paragraph">',"px;","<thead>\n","width:","listitem","4470692LZxpGV","10GOxyRe",'<img src="',' class="md-list"',"3012499evNemM","<tbody>","type","tablecell"];return(ue=function(){return t})()}!function(){const t=he,e=ue();for(;;)try{if(790017==-parseInt(t(319))/1+-parseInt(t(349))/2*(parseInt(t(343))/3)+-parseInt(t(355))/4+parseInt(t(364))/5*(-parseInt(t(318))/6)+parseInt(t(359))/7+parseInt(t(344))/8+-parseInt(t(346))/9*(-parseInt(t(356))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const pe={paragraph({tokens:t}){const e=he;if(1===t[e(348)]&&t[0].type===e(332)){const n=t[0];if(null===re(n[e(333)]))return n[e(329)];let r="<figure>\n";if(r+=e(320),r+=this[e(332)](n)+"\n",r+=e(341),n.title){const{text:t}=le(n[e(366)]);t&&(r+=e(342)+t+e(323))}return r+=e(336),r}return e(350)+this.parser[e(331)](t)+e(324)},list(t){const e=he,n=t.ordered,r=t.start;let s="";for(let n=0;n<t[e(327)][e(348)];n++){const r=t[e(327)][n];s+=this[e(354)](r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(328)+r+'"':"")+e(358)+">\n"+s+"</"+i+">\n"},listitem(t){const e=he;let n="";if(t[e(345)]){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[e(348)]>0&&"paragraph"===t[e(347)][0][e(361)]?(t[e(347)][0][e(329)]=r+" "+t[e(347)][0][e(329)],t[e(347)][0][e(347)]&&t[e(347)][0][e(347)][e(348)]>0&&t[e(347)][0][e(347)][0][e(361)]===e(329)&&(t[e(347)][0][e(347)][0][e(329)]=r+" "+t[e(347)][0].tokens[0].text)):t.tokens.unshift({type:e(329),raw:r+" ",text:r+" "}):n+=r+" "}return n+=this[e(339)].parse(t.tokens,!!t.loose),e(326)+n+e(334)},table(t){const e=he;let n="",r="";for(let n=0;n<t[e(337)].length;n++)r+=this.tablecell(t[e(337)][n]);n+=this[e(325)]({text:r});let s="";for(let n=0;n<t[e(330)].length;n++){const i=t[e(330)][n];r="";for(let t=0;i.length>t;t++)r+=this[e(362)](i[t]);s+=this.tablerow({text:r})}s&&(s=e(360)+s+"</tbody>\n");let i="";return t.caption[e(329)]&&(i=e(342)+this[e(339)].parseInline([t[e(365)]])+"</figcaption>\n"),e(340)+e(335)+e(352)+n+"</thead>\n"+s+e(321)+i+e(336)},image(t){const e=he,n=re(t[e(333)]);if(null===n)return t[e(329)];let r=e(357)+n+e(322)+t[e(329)]+'"';if(t[e(366)]){const{text:n,width:s,height:i}=le(t.title);n&&(r+=' title="'+n+'"'),(s||i)&&(r+=e(363),s&&(r+=e(353)+s+e(351)),i&&(r+=e(338)+i+e(351)),r+='"')}return r+=">",r}};function he(t,e){return t-=318,ue()[t]}const fe={},de=ge;function ge(t,e){return t-=379,me()[t]}function me(){const t=["^comment","|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe","title"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)","4419415aIoiSu","replace","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","code","|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|<![A-Z][\\s\\S]*?(?:>\\n*|$)","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","|[^punct\\s](\\*+)(?=[^punct\\s])","heading","1496495cNuAMb","2388864wxTWXA","|[^_]+(?=[^_])","7503252eIsWrf","^ *([^\\n ].*)\\n","1257469CwytQH","5249673PEjfvw","tag","(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","fences","|table","ref"," {0,3}>","40kleXBS","(?: {4}| {0,3}\t)[^\\n]","14566tfImNg","|comment[^\\n]*(\\n+|$)"," {0,3}#{1,6}(?:\\s|$)","table","\\p{P}\\p{S}","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","(?:--\x3e|$)","html","^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)","|[^*]+(?=[^*])","label","reflink|nolink(?!\\()","blockquote","|(?!_)[punct\\s](_+)(?=[^punct\\s])","|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option","comment","|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>","|^</[a-zA-Z][\\w:-]*\\s*>","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","^ {0,3}(?:","|^<\\?[\\s\\S]*?\\?>","assign","nolink","|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>","|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])","|(?!_)[punct](_+)(?=[\\s]|$)","|[\\s](\\*+)(?!\\*)(?=[punct])"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n","<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)","email","|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)","|[\\s](_+)(?!_)(?=[punct])","|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)","474SJeFgv","^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)","list","--\x3e","paragraph"," {0,3}(?:[*+-]|1[.)]) ","getRegex","|tr|track|ul","reflink","|(?!_)[punct](_+)(?!_)(?=[punct])","|^<![a-zA-Z]+\\s[\\s\\S]*?>","|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"];return(me=function(){return t})()}!function(){const t=ge,e=me();for(;;)try{if(629926==-parseInt(t(390))/1+parseInt(t(401))/2*(parseInt(t(434))/3)+-parseInt(t(386))/4+parseInt(t(385))/5+-parseInt(t(388))/6+-parseInt(t(450))/7+parseInt(t(399))/8*(parseInt(t(391))/9))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=ie(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,be)[de(451)](/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[de(451)](/blockquote/g,/ {0,3}>/)[de(451)](/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ie=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ye=/(?!\s*\])(?:\\.|[^[\]\\])+/,we=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[de(451)](de(411),ye)[de(451)](de(448),/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[de(440)](),$e=ie(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/)[de(451)](/bull/g,be)[de(440)](),ve="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"+de(447)+de(415)+"|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title"+de(441),Se=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=ie(de(420)+de(429)+de(402)+de(382)+de(381)+de(431)+de(445)+de(380)+de(452)+")","i")[de(451)]("comment",Se).replace(de(392),ve)[de(451)]("attribute",/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i)[de(440)](),je=ie(Ie)[de(451)]("hr",ke).replace(de(384)," {0,3}#{1,6}(?:\\s|$)")[de(451)]("|lheading","").replace(de(396),"")[de(451)](de(413),de(398))[de(451)]("fences",de(428))[de(451)](de(436),de(439))[de(451)](de(408),de(406))[de(451)](de(392),ve)[de(440)](),_e={blockquote:ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[de(451)](de(438),je)[de(440)](),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:we,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:se,text:/^[^\n]+/},ze=ie(de(389)+de(449)+"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)")[de(451)]("hr",ke)[de(451)](de(384),de(403)).replace(de(413),de(398))[de(451)](de(379),"(?: {4}| {0,3}\t)[^\\n]")[de(451)]("fences",de(428))[de(451)](de(436),de(439))[de(451)](de(408),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace(de(392),ve)[de(440)](),Te=Object[de(422)](Object[de(422)]({},_e),{table:ze,paragraph:ie(Ie)[de(451)]("hr",ke).replace(de(384),de(403))[de(451)]("|lheading","")[de(451)](de(404),ze)[de(451)](de(413),de(398))[de(451)]("fences",de(428))[de(451)](de(436),de(439))[de(451)](de(408),de(406))[de(451)](de(392),ve)[de(440)]()}),Re=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,qe=de(405),Me=ie(/^((?![*_])[\spunctaio])/,"u")[de(451)](/punctuation/g,qe).getRegex(),Pe=ie(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u")[de(451)](/punct/g,qe)[de(440)](),Ee=ie(de(435)+de(410)+de(419)+de(433)+"|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])"+de(427)+de(425)+de(383),"gu").replace(/punct/g,qe)[de(440)](),Le=ie(de(409)+de(387)+de(426)+"|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)"+de(414)+de(432)+de(443),"gu").replace(/punct/g,qe)[de(440)](),Ce=ie(/\\([punct])/,"gu")[de(451)](/punct/g,qe).getRegex(),De=ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)[de(451)]("scheme",/[a-z][a-z\d+.-]{1,31}/i).replace("email",/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i)[de(440)](),Ze=ie(Se).replace(de(407),de(437)).getRegex(),Oe=ie(de(446)+de(418)+de(417)+de(421)+de(444)+de(424))[de(451)](de(416),Ze)[de(451)]("attribute",/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i)[de(440)](),Ne=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Ue=ie(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/)[de(451)](de(411),Ne)[de(451)]("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(de(448),/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)[de(440)](),Be=ie(/^!?\[(label)\]\[(ref)\]/)[de(451)](de(411),Ne).replace(de(397),ye)[de(440)](),Fe=ie(/^!?\[(ref)\](?:\[\])?/)[de(451)](de(397),ye).getRegex(),Xe={t:se,anyPunctuation:Ce,autolink:De,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:se,emStrongLDelim:Pe,emStrongRDelimAst:Ee,emStrongRDelimUnd:Le,escape:Re,link:Ue,nolink:Fe,punctuation:Me,reflink:Be,reflinkSearch:ie(de(412),"g")[de(451)](de(442),Be)[de(451)](de(423),Fe)[de(440)](),tag:Oe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:se},Ke=Object[de(422)](Object[de(422)]({},Xe),{escape:ie(Re).replace("])","~|])").getRegex(),url:ie(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i").replace(de(430),/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i).getRegex(),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.!#$%&'*+/=?`{|}~-]+@)))/}),He=Object[de(422)](Object.assign({},Ke),{br:se,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/}),Je={block:Object.assign(Object.assign({},Te),{lheading:se,code:se,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:ie(Ie).replace("hr",ke)[de(451)](de(384),de(403))[de(451)]("|lheading","")[de(451)](de(404),ze)[de(451)]("blockquote"," {0,3}(?<!>)>(?!>)").replace(de(395),de(428))[de(451)](de(436),de(439))[de(451)](de(408),de(406)).replace(de(392),ve)[de(440)](),table:ie("^ *([^\\n ].*)\\n"+de(394)+"((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)"+de(393))[de(451)]("hr",ke)[de(451)](de(384),de(403)).replace(de(413)," {0,3}>")[de(451)](de(379),de(400))[de(451)](de(395),de(428)).replace("list",de(439))[de(451)]("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace(de(392),ve)[de(440)](),blockquote:ie(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/)[de(451)](de(438),je)[de(440)]()}),inline:He};function We(){const t=["32245LlgrfH","rows","3294718yEKUZF","blockquote","trim","header","emStrongRDelimUnd","index","inlineTokens","left","lexer","inline","11494980rNqbaz","center","exec","table","45914NTuSbI","map","push","block","replace","1tEVEWs","right","5262341TElOhe","anyPunctuation","length","punctuation","text","substring","raw","slice","1485828GerCvB","lastIndex","test","code","state","list","split","align","min","top","strong","join","blockTokens","match","4330770wsErnI","type","1020aNMxaf","16ArZypF","844NhMJKx","emStrongRDelimAst","\n $1"];return(We=function(){return t})()}function Ve(t,e){return t-=376,We()[t]}!function(){const t=Ve,e=We();for(;;)try{if(950390==parseInt(t(379))/1*(parseInt(t(412))/2)+-parseInt(t(403))/3+parseInt(t(407))/4*(-parseInt(t(410))/5)+-parseInt(t(389))/6+-parseInt(t(381))/7*(-parseInt(t(406))/8)+parseInt(t(422))/9+parseInt(t(405))/10*(-parseInt(t(426))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ge={table(t){const e=Ve,n=Je[e(377)][e(425)][e(424)](t);if(!n)return;if(!/[:|]/[e(391)](n[2]))return;const r=ce(n[1]),s=n[2][e(378)](/^\||\| *$/g,"").split("|"),i=n[3]&&n[3][e(414)]()?n[3].replace(/\n[ \t]*$/,"")[e(395)]("\n"):[],o=n[5],a={type:e(425),raw:n[0],header:[],align:[],rows:[],caption:{type:e(385),text:o,raw:o,tokens:this[e(420)][e(421)](o)}};if(r.length===s.length){for(const t of s)/^ *-+: *$/.test(t)?a[e(396)][e(376)](e(380)):/^ *:-+: *$/.test(t)?a.align[e(376)](e(423)):/^ *:-+ *$/.test(t)?a[e(396)][e(376)](e(419)):a[e(396)][e(376)](null);for(let t=0;t<r[e(383)];t++)a[e(415)][e(376)]({text:r[t],tokens:this[e(420)][e(421)](r[t]),header:!0,align:a[e(396)][t]});for(const t of i)a[e(411)][e(376)](ce(t,a[e(415)][e(383)])[e(427)]((t,n)=>({text:t,tokens:this.lexer[e(421)](t),header:!1,align:a.align[n]})));return a}},lheading(){},code(){},fences(t){const e=Ve,n=Je[e(377)].fences.exec(t);if(n){const t=n[0],r=function(t,e){const n=Ve,r=t.match(/^(\s+)```/);if(null===r)return e;const s=r[1];return e.split("\n")[n(427)](t=>{const e=n,r=t.match(/^\s+/);if(null===r)return t;const[i]=r;return i.length<s[e(383)]?t:t[e(388)](s[e(383)])})[n(400)]("\n")}(t,n[3]||"");return{type:e(392),raw:t,lang:n[2]?n[2][e(414)]()[e(378)](Je[e(421)][e(382)],"$1"):n[2],text:r}}},br(){},emStrong(t,e,n=""){const r=Ve;let s=Je[r(421)].emStrongLDelim[r(424)](t);if(s&&(!s[3]||!n[r(402)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||Je[r(421)][r(384)][r(424)](n))){const n=[...s[0]][r(383)]-1;let i,o,a=n,l=0;const c="*"===s[0][0]?Je[r(421)][r(408)]:Je[r(421)][r(416)];for(c[r(390)]=0,e=e[r(388)](-1*t[r(383)]+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][r(383)],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(397)](o,o+a+l);const e=[...s[0]][0].length,c=t[r(388)](0,n+s[r(417)]+e+o);if(Math.min(n,o)%2){const t=c[r(388)](1,-1);return{type:"em",raw:c,text:t,tokens:this.lexer[r(418)](t)}}const u=c[r(388)](2,-2);return{type:r(399),raw:c,text:u,tokens:this[r(420)][r(418)](u)}}}},blockquote(t){const e=Ve,n=Je[e(377)][e(413)][e(424)](t);if(n){let t=function(t){const e=ne,n=t[e(323)];if(0===n)return"";let r=0;for(;n>r&&"\n"===t[e(325)](n-r-1);)r++;return t[e(326)](0,n-r)}(n[0])[e(395)]("\n"),r="",s="";const i=[];for(;t[e(383)]>0;){let n=!1;const o=[];let a;for(a=0;a<t[e(383)];a++)if(/^ {0,3}>/[e(391)](t[a]))o.push(t[a]),n=!0;else{if(n)break;o[e(376)](t[a])}t=t[e(388)](a);const l=o[e(400)]("\n"),c=l[e(378)](/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,e(409)).replace(/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this.lexer.state[e(398)];if(this.lexer[e(393)][e(398)]=!0,this[e(420)][e(401)](c,i,!0),this[e(420)][e(393)][e(398)]=u,0===t[e(383)])break;const p=i[i[e(383)]-1];if((null==p?void 0:p[e(404)])===e(392))break;if("blockquote"===(null==p?void 0:p.type)){const n=p,o=n[e(387)]+"\n"+t.join("\n"),a=this[e(413)](o);i[i[e(383)]-1]=a,r=r[e(386)](0,r[e(383)]-n[e(387)][e(383)])+a[e(387)],s=s.substring(0,s[e(383)]-n[e(385)].length)+a[e(385)];break}if((null==p?void 0:p.type)===e(394)){const n=p,o=n.raw+"\n"+t.join("\n"),a=this.list(o);i[i[e(383)]-1]=a,r=r[e(386)](0,r[e(383)]-p[e(387)][e(383)])+a[e(387)],s=s[e(386)](0,s.length-n[e(387)][e(383)])+a[e(387)],t=o[e(386)](i[i[e(383)]-1].raw[e(383)])[e(395)]("\n");continue}}return{type:e(413),raw:r,tokens:i,text:s}}}};function Qe(t,e){return t-=448,Ye()[t]}function Ye(){var t=["796179fmINbp","177068xzauuE","6cEYKiq","6104ZoMacA","888104XlMQBC","820107kScLye","608OMUDXA","5004795vZqAsi","10NszIxK","18868068rPozvx"];return(Ye=function(){return t})()}function tn(t,e){return t-=329,sn()[t]}!function(){for(var t=Qe,e=Ye();;)try{if(564584==-parseInt(t(452))/1+parseInt(t(451))/2+-parseInt(t(457))/3+parseInt(t(448))/4+parseInt(t(454))/5*(-parseInt(t(449))/6)+-parseInt(t(450))/7*(-parseInt(t(453))/8)+-parseInt(t(456))/9*(-parseInt(t(455))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const en=tn;var nn;!function(){const t=tn,e=sn();for(;;)try{if(852649==-parseInt(t(340))/1+-parseInt(t(342))/2*(-parseInt(t(347))/3)+-parseInt(t(333))/4*(-parseInt(t(341))/5)+parseInt(t(343))/6+parseInt(t(330))/7+parseInt(t(355))/8*(parseInt(t(361))/9)+-parseInt(t(358))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=tn;t[e(337)]=e(351),t[e(345)]=e(348),t[e(336)]=e(360),t[e(357)]="info"}(nn||(nn={}));const rn={name:en(339),level:en(334),start:t=>t.indexOf("^ {0,3}!!!["),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|$)|$)/.exec(t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(331)](),a=null===(r=o[3])||void 0===r?void 0:r[e(331)](),l=null===(s=o[4])||void 0===s?void 0:s[e(331)](),c=null===(i=o[5])||void 0===i?void 0:i[e(331)]();return{type:"alert",raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(338)].inlineTokens(c)}}},renderer(t){const e=en;var n;let r="";if(t.icon===e(335))switch(t.ttype){case nn[e(337)]:t[e(329)]="⚠️";break;case nn[e(345)]:t.icon="🎉";break;case nn[e(336)]:t[e(329)]="⛔";break;case nn[e(357)]:t[e(329)]="ℹ️"}const s=void 0!==t.icon?'<span class="icon">'+t.icon+e(350):"";return r+=e(332)+t[e(359)]+'">',t[e(356)]&&(r=r+(e(352)+s+"<span class='title'>")+t.title+e(346)),r+=e(353)+(t[e(356)]?"":s)+this[e(349)][e(354)](null!==(n=t.tokens)&&void 0!==n?n:[])+e(344),r+="</section>",r}};function sn(){const t=["2pKPGtc","4768914VUiHPy","</p>","Success","</span></p>","2421537qKDBMB","success","parser","</span> ","warn",'<p class="heading">','<p class="content paragraph">',"parseInline","8uhwMxI","title","Info","29522860EHTfXj","ttype","error","6593166wWbULh","icon","9049936XqAxqc","trim",'<section class="alert ',"2008VbdOOJ","block","true","Error","Warn","lexer","alert","614641BWlrAU","7890LNioft"];return(sn=function(){return t})()}function on(t){return(t||"").match(/\S*/)[0]}function an(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const ln=/[&<>"']/,cn=RegExp(ln.source,"g"),un=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,pn=RegExp(un.source,"g"),hn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fn=t=>hn[t];function dn(t,e){if(e){if(ln.test(t))return t.replace(cn,fn)}else if(un.test(t))return t.replace(pn,fn);return t}function gn(){const t=["225xfYsKv","54byhSwd","74148TcFqgi","json","registerLanguage","3357zlInvn","plaintext","38045381dewTOp","4205912IKOmRs","225OunvZR","highlight","1607556mmvrwQ","3444885zqlxsd","javascript","209600fxhXyk","latex","21ThWKKM"];return(gn=function(){return t})()}const mn=kn;function kn(t,e){return t-=303,gn()[t]}!function(){const t=kn,e=gn();for(;;)try{if(583533==parseInt(t(312))/1*(-parseInt(t(308))/2)+-parseInt(t(319))/3+parseInt(t(309))/4*(-parseInt(t(307))/5)+parseInt(t(318))/6*(-parseInt(t(306))/7)+parseInt(t(315))/8+-parseInt(t(316))/9*(parseInt(t(304))/10)+parseInt(t(314))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n.registerLanguage(mn(303),r),n[mn(311)]("python",o),n[mn(311)](mn(305),i),n[mn(311)](mn(310),s);const bn=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=on(e.lang);if(t.async)return Promise.resolve(t.highlight(e.text,n,e.lang||"")).then(an(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.");an(e)(r)},useNewRenderer:!0,renderer:{code(e,n,r){"object"==typeof e&&(r=e.escaped,n=e.lang,e=e.text);const s=on(n),i=s?t.langPrefix+dn(s):t.emptyLangClass,o=i?` class="${i}"`:"";return e=e.replace(/\n$/,""),`<pre><code${o}>${r?e:dn(e,!0)}\n</code></pre>`}}}}({highlight(t,e){const r=mn,s=n.getLanguage(e)?e:r(313);return n[r(317)](t,{language:s}).value}}));function xn(){const t=["raw","1487528YSnPca",'<section class="gallery-container">\n',"!!!","gallery",'<section class="gallery-wrapper">\n',"forEach","2325024wnORal","172530cDjVqS","blockTokens","exec","parse","40lHAlXF","12kuxLkT","</section>\n","331644TyDmub","type","1376476NdwVpA","1374015tTGQMM","tokens","image","1XyOVQy","lexer","1658136ddttNs"];return(xn=function(){return t})()}function In(t,e){return t-=230,xn()[t]}!function(){const t=In,e=xn();for(;;)try{if(451368==-parseInt(t(245))/1*(-parseInt(t(241))/2)+-parseInt(t(231))/3+-parseInt(t(239))/4+-parseInt(t(242))/5*(-parseInt(t(237))/6)+-parseInt(t(249))/7+parseInt(t(247))/8+parseInt(t(232))/9*(parseInt(t(236))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const yn={name:"gallery",level:"block",start:t=>t.indexOf(In(251)),tokenizer(t){const e=In,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(234)](t);if(n){const t=n[2];return{type:e(252),raw:n[0],text:t,tokens:this[e(246)][e(233)](t)}}},renderer(t){const e=In;var n;let r=e(250);return r+=e(253),null===(n=t[e(243)])||void 0===n||n.forEach(t=>{const n=e;var s;"paragraph"===t.type&&(null===(s=t[n(243)])||void 0===s||s[n(230)](t=>{const e=n;t[e(240)]===e(244)&&(r+=bn[e(235)](t[e(248)]))}))}),r+=e(238),r+="</section>\n",r}},wn=jn;!function(){const t=jn,e=An();for(;;)try{if(629715==-parseInt(t(206))/1*(parseInt(t(184))/2)+-parseInt(t(202))/3+parseInt(t(219))/4+parseInt(t(190))/5*(parseInt(t(225))/6)+-parseInt(t(226))/7*(parseInt(t(196))/8)+parseInt(t(218))/9*(-parseInt(t(227))/10)+parseInt(t(188))/11*(parseInt(t(189))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const $n={name:wn(210),level:wn(217),start:t=>t[wn(197)]("[^"),tokenizer:t=>{const e=wn,n=/^\[\^([^\]]+)\]/[e(186)](t);if(n){const t=n[1][e(221)]();return{type:"footnoteRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=wn;return e(183)+t.id+e(208)+t.id+'">['+t[e(220)]+e(191)}},vn={name:"footnoteDef",level:wn(203),start:t=>t.indexOf("[^"),tokenizer(t){const e=wn,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/[e(186)](t);if(n){const t=n[1][e(221)](),r=n[2][e(221)]();return{type:e(216),raw:n[0],id:t,text:r,tokens:this[e(187)][e(195)](r)}}},renderer(t){const e=wn;var n;const r=' <a href="#footnote-ref-'+t.id+e(205);return e(211)+t[e(220)]+e(200)+t.id+'">'+this[e(193)][e(230)](null!==(n=null==t?void 0:t[e(185)])&&void 0!==n?n:[])+(t.isolated?"":r)+e(198)}},Sn=t=>{const e={};let n=1;return function t(r){r.forEach(r=>{const s=jn;r[s(212)]===s(210)&&(!(r.id in e)&&(e[r.id]=n,n++),r[s(220)]=e[r.id]),r[s(212)]===s(224)&&r[s(214)].forEach(e=>{const n=s;e.tokens&&e[n(185)][n(222)]>0&&t(e[n(185)])}),r[s(212)]===s(228)&&(r[s(199)][s(215)](e=>{const n=s;e[n(185)]&&e[n(185)].length>0&&t(e[n(185)])}),r[s(182)][s(215)](e=>{const n=s;e[n(215)](e=>{const r=n;e[r(185)]&&e.tokens[r(222)]>0&&t(e.tokens)})}),r[s(192)][s(185)]&&r[s(192)][s(185)].length>0&&t(r.caption[s(185)])),r[s(185)]&&r.tokens[s(222)]>0&&t(r.tokens)})}(t),function t(r){const s=jn;r[s(215)](r=>{const i=s;"footnoteDef"===r[i(212)]&&(r[i(213)]=!1,!(r.id in e)&&(e[r.id]=n,n++,r.isolated=!0),r[i(220)]=e[r.id]),r.tokens&&r[i(185)][i(222)]>0&&t(r[i(185)])})}(t),t};function An(){const t=["lexer","228866HENtMh","1356EAxgcc","2220bqwHsz","]</a></sup></span>","caption","parser","join","inlineTokens","1404176GvjqpO","indexOf","</li>","header",'" id="footnote-',"content","3321657jeZupe","block","key",'"> ⬅ </a>',"10859PomnLH","replaceAll",'"><sup><a href="#footnote-','<ol class="footnote-list">',"footnoteRef",'<li class="footnote-def" key="',"type","isolated","items","forEach","footnoteDef","inline","234niXUxT","4984500HlnLMl","number","trim","length","map","list","4122egpfpS","28KKGGJp","216120OOocav","table","push","parseInline","rows",'<span class="footnote-ref" id="footnote-ref-',"166Fypvls","tokens","exec"];return(An=function(){return t})()}function jn(t,e){return t-=182,An()[t]}const _n=zn;function zn(t,e){return t-=304,Mn()[t]}var Tn,Rn;!function(){const t=zn,e=Mn();for(;;)try{if(301791==-parseInt(t(329))/1+parseInt(t(312))/2*(parseInt(t(325))/3)+parseInt(t(305))/4+parseInt(t(308))/5*(parseInt(t(322))/6)+-parseInt(t(310))/7*(-parseInt(t(309))/8)+parseInt(t(320))/9*(-parseInt(t(321))/10)+-parseInt(t(315))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(Rn=Tn||(Tn={})).PROOF="proof",Rn.SOLUTION="solution";const qn={[Tn[_n(323)]]:"证明",[Tn[_n(313)]]:"解答"};function Mn(){const t=["1865rGxILg","29072sqrlbr","1071ZAzwRx","~~~[","125866jnYTJF","SOLUTION","blockTokens","5563701fpwIII",'</summary>\n <section class="content">\n ',"exec","indexOf",'"><summary>',"54OxgBLH","21390KLAzpW","9018zmSyUj","PROOF","solution","3XRaRcn","block","\n </section></details>","parser","564079UeKexQ","typeName",'<details class="solution ',"stype","tokens","819764JxwQqx","lexer","trim"];return(Mn=function(){return t})()}const Pn={name:_n(324),level:_n(326),start:t=>{const e=_n;return t[e(318)](e(311))},tokenizer(t){const e=_n;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/[e(317)](t);if(r){const t=r[2][e(307)](),s=r[3][e(307)]();return{type:e(324),raw:r[0],stype:t,typeName:null!==(n=qn[t])&&void 0!==n?n:t,text:s,tokens:this[e(306)][e(314)](s)}}},renderer(t){const e=_n;var n;return e(331)+oe(t[e(332)])+e(319)+t[e(330)]+e(316)+this[e(328)].parse(null!==(n=null==t?void 0:t[e(304)])&&void 0!==n?n:[])+e(327)}},En=Ln;function Ln(t,e){return t-=126,Dn()[t]}var Cn;function Dn(){const t=["length","trimEnd",'" href="#theorem-like-',"replace","parser","9OIRJFq","145989KneiCI","1878580JIgGcb","number","2810310ZcavDY","parse","</b>","unnumbered","type","Axiom","tokens",'<a id="theorem-like-ref-',"name","typeName","Lemma","exec","325882sgJUVJ","items","Theorem",'">\n <p class="title"><b>'," ( <em>","theorem","Example","692175xeGltL","forEach","78872gpLWmr","1hnsTLt","Definition",'" id="theorem-like-',"block",'\n </p>\n <section class="content">\n ',"blockTokens","axiom","trim","```[","lemma","7WispZJ","Corollary","884742UFoswt","4SLtZou","theoremLikeDef","ttype","example","\n </section> \n</section>","definition","theoremLikeRef","list"];return(Dn=function(){return t})()}!function(){const t=Ln,e=Dn();for(;;)try{if(224902==parseInt(t(130))/1*(-parseInt(t(172))/2)+parseInt(t(157))/3*(-parseInt(t(143))/4)+parseInt(t(158))/5+parseInt(t(142))/6*(-parseInt(t(140))/7)+parseInt(t(129))/8*(-parseInt(t(156))/9)+parseInt(t(160))/10+-parseInt(t(127))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Ln;t[e(174)]=e(177),t[e(170)]=e(139),t[e(141)]="corollary",t[e(165)]=e(136),t.Definition=e(148),t.Example=e(146)}(Cn||(Cn={}));const Zn={[Cn[En(174)]]:"定理",[Cn[En(170)]]:"引理",[Cn[En(141)]]:"推论",[Cn.Axiom]:"公理",[Cn[En(131)]]:"定义",[Cn[En(126)]]:"例"},On={name:En(149),level:"inline",start:t=>t.indexOf("[~"),tokenizer:t=>{const e=En,n=/^\[~([^\]]+)\]/.exec(t);if(n){const t=n[1][e(137)]();return{type:e(149),raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=En;return e(167)+t.id+e(153)+t.id+'">'+(t.typeName+" "+t[e(159)])[e(152)]()+"</a>"}},Nn={name:En(144),level:En(133),start:t=>t.indexOf(En(138)),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|$)|$)/[e(171)](t);if(l){const t=null===(n=l[2])||void 0===n?void 0:n[e(137)]()[e(154)](/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r.trim().endsWith("*"),u=null===(s=l[3])||void 0===s?void 0:s.trim(),p=null===(i=l[4])||void 0===i?void 0:i[e(137)](),h=null===(o=l[5])||void 0===o?void 0:o.trim();return{type:e(144),raw:l[0],id:u,name:p,text:h,ttype:t,typeName:null!==(a=Zn[t])&&void 0!==a?a:t,tokens:this.lexer[e(135)](h),unnumbered:c}}},renderer(t){const e=En;var n;return'<section class="theorem-like '+oe(t[e(145)])+e(132)+t.id+e(175)+t[e(169)]+e(162)+(t[e(163)]?"":" "+t[e(159)])+(t[e(168)]?e(176)+t.name+"</em> )":"")+e(134)+this[e(155)][e(161)](null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:[])+e(147)}},Un=Bn;function Bn(t,e){return t-=193,Xn()[t]}!function(){const t=Bn,e=Xn();for(;;)try{if(858051==-parseInt(t(217))/1*(parseInt(t(209))/2)+-parseInt(t(200))/3*(-parseInt(t(222))/4)+-parseInt(t(220))/5+parseInt(t(214))/6*(parseInt(t(230))/7)+parseInt(t(225))/8+parseInt(t(213))/9+parseInt(t(215))/10*(-parseInt(t(210))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Fn=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</;function Xn(){const t=[' class="tooltip-trigger">',"</span>\n</span>\n","description","6RbnaKl","12881nnxQyz","trim","indexOf","7594110CQCoAJ","6edRlnA","6290bFfvEZ","exec","469742afMPXh","inlineTokens","lexer","5443215bEBHeW","</label>\n","934564uWJfxr",'<span class="tooltip-title">',"imageUrl","3659096GUyXwm","raw",">>>","inline","tokens","8090705hiazXE",'"></span>\n','<span class="tooltip-image"><img src="',"text","</span>\n",' class="tooltip-toggle">',"id-","title","tooltip","21ypIyCy",'<span class="tooltip-container">\n','<span class="tooltip-description">',"parser",'<span class="tooltip">\n','" alt="'];return(Xn=function(){return t})()}const Kn={name:Un(199),level:Un(228),start(t){const e=Un;return t[e(212)](e(227))},tokenizer(t){const e=Un,n=Fn[e(216)](t);if(n){const[t,r,s,i,o]=n,a=e(197)+ee.md5(t);return{type:e(199),id:a,raw:t,title:s,text:r,imageUrl:o,description:{type:e(194),text:i,raw:i,tokens:this[e(219)][e(228)](i)},tokens:this[e(219)][e(218)](r[e(211)]())}}},renderer(t){const e=Un;var n;let r=e(201);return r+='<input type="checkbox" id='+t.id+e(196),r+="<label for="+t.id+e(206)+this.parser.parseInline(null!==(n=t[e(229)])&&void 0!==n?n:[])+e(221),r+=e(204),t[e(224)][e(211)]()&&(r+=e(193)+t[e(224)][e(211)]()+e(205)+t.title[e(211)]()+e(231)),t[e(198)][e(211)]()&&(r+=e(223)+t[e(198)].trim()+e(195)),t[e(208)][e(226)][e(211)]()&&(r+=e(202)+this[e(203)].parseInline([t.description])+e(195)),r+=e(207),r}};function Hn(t,e){return t-=200,Jn()[t]}function Jn(){const t=["</p>\n","blockMath","3116055GsfFBE","490855edVLZC",'<p class="paragraph">',"block","inline","42erNInd","8565240bZzODF","15220530RSpPVL","315098DstJqP","32QQqTiv","inlineMath","341260szsimv","match","inlineMath2"," \\lt ","indexOf","replace","text","743714DMNbFf"," \\gt ","trim"];return(Jn=function(){return t})()}const Wn=Hn;function Vn(t){const e=Hn;return t[e(222)](/\s*<\s*/g,e(220))[e(222)](/\s*>\s*/g,e(202))}!function(){const t=Hn,e=Jn();for(;;)try{if(990225==parseInt(t(207))/1+parseInt(t(201))/2+-parseInt(t(211))/3*(-parseInt(t(217))/4)+-parseInt(t(206))/5+parseInt(t(212))/6+parseInt(t(214))/7*(-parseInt(t(215))/8)+-parseInt(t(213))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Gn={name:Wn(216),level:Wn(210),start:t=>t.indexOf("$"),tokenizer(t){const e=/^\$(?:[^$]|\\\$)+\$(?!\$)/.exec(t);if(e)return{type:"inlineMath",raw:e[0],text:e[0]}},renderer:t=>Vn(t[Wn(200)])},Qn={name:Wn(219),level:"inline",start:t=>t[Wn(221)]("\\("),tokenizer(t){const e=Wn,n=t[e(218)](/^\\\(.*?\\\)/);if(n)return{type:e(219),raw:n[0],text:n[0]}},renderer:t=>Vn(t[Wn(200)])},Yn={name:"blockMath",level:"block",start:t=>t[Wn(221)]("$$"),tokenizer(t){const e=Wn,n=t.match(/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(n)return{type:e(205),raw:n[0],text:n[0].trim()}},renderer(t){const e=Wn;return e(208)+Vn(t.text)+e(204)}},tr={name:"blockMath2",level:Wn(209),start:t=>t[Wn(221)]("\\["),tokenizer(t){const e=Wn,n=t.match(/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:"blockMath2",raw:n[0],text:n[0][e(203)]()}},renderer(t){const e=Wn;return e(208)+Vn(t[e(200)])+e(204)}};function er(t,e){return t-=298,nr()[t]}function nr(){var t=["1017022QpRNyT","1LTxrHJ","2669028rPKGkx","3438351TGLSwq","4289528EVeyrn","13026490TWZbyH","9YQIIlI","1273281PDRNwF","1685sMlCDg","5836IxbYKR"];return(nr=function(){return t})()}function rr(t,e){return t-=163,sr()[t]}function sr(){const t=["256007cfXEPm","1134870dlEsLC","width:","px;","height:",' title="','<img src="',"replaceAll","1785594qvcalP",' style="',"237813TiJjqE","715592zxeLAy","title","push","1192065INXcXW","isArray","2isctBx","text","tokens","type","image","4378560bnMDsi",'" alt="'];return(sr=function(){return t})()}function ir(){const t=["860846TeTeKM","379581GrLllc","For commercial use in Node.js, please configure a license using configureLicense(). ","5352860anptAb","8jhwTSf","defaults","use","Contact charles@mathcrowd.cn for commercial licensing. ","parseInline","11jCwmis","renderMarkdownCompact","lexInline","549523hcuopj","getTime","Browser usage does not require a license.","849034DWfwsf","156yOoZvS","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","148672WivZjR","24jAaMMP","Lexer","warn","undefined","versions","202435fHFWyR","node","216qddTBw","1KqtVXI","For commercial use, please configure a license using configureLicense(). ","assign"];return(ir=function(){return t})()}function or(t,e){return t-=165,ir()[t]}!function(){for(var t=er,e=nr();;)try{if(367864==-parseInt(t(304))/1*(parseInt(t(303))/2)+-parseInt(t(300))/3+parseInt(t(302))/4*(-parseInt(t(301))/5)+parseInt(t(305))/6+-parseInt(t(306))/7+parseInt(t(307))/8*(parseInt(t(299))/9)+parseInt(t(298))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=rr,e=sr();for(;;)try{if(162592==parseInt(t(173))/1*(parseInt(t(166))/2)+-parseInt(t(183))/3+parseInt(t(184))/4+parseInt(t(174))/5+parseInt(t(181))/6+-parseInt(t(164))/7+-parseInt(t(171))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=or,e=ir();for(;;)try{if(410623==parseInt(t(165))/1*(parseInt(t(183))/2)+-parseInt(t(169))/3+-parseInt(t(172))/4*(-parseInt(t(192))/5)+-parseInt(t(187))/6*(-parseInt(t(168))/7)+-parseInt(t(186))/8*(parseInt(t(194))/9)+parseInt(t(171))/10*(parseInt(t(177))/11)+parseInt(t(184))/12*(-parseInt(t(180))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ar=t=>{const e=or;Bt(e(178)),Jt()||(typeof process!==e(190)&&null!=process.versions&&null!=process[e(191)][e(193)]?console[e(189)](e(185)+e(166)+e(175)+e(182)):console.warn("[mmarked] ℹ️ Running in browser environment, no license required. "+e(170)+"Contact charles@mathcrowd.cn for commercial licensing."));const n=new Date,r=new vt;r[e(174)]({extensions:[Gn,Qn],tokenizer:Object[e(167)]({},Ge),renderer:Object.assign({},fe)});const s=r[e(188)][e(179)](t,r[e(173)]),i=r[e(176)](t),o=new Date;let a=function(t,e){const n=rr;let r=t;for(const t of e){const e=re(t.href);if(null===e)continue;let s=n(179)+e+n(172)+t[n(167)]+'"';if(t[n(185)]){const{text:e,width:r,height:i}=le(t.title);e&&(s+=n(178)+e+'"'),(r||i)&&(s+=n(182),r&&(s+=n(175)+r+n(176)),i&&(s+=n(177)+i+n(176)),s+='"')}s+=">";const i='<img src="'+e+'" alt="'+t.text+'"'+(t[n(185)]?n(178)+t[n(185)]+'"':"")+">";r=r[n(180)](i,s)}return r}(i,function t(e){const n=rr,r=[];for(const s of e)s[n(169)]===n(170)&&r[n(163)](s),"tokens"in s&&Array[n(165)](s[n(168)])&&r[n(163)](...t(s.tokens));return r}(s));const l=Ft();return l&&(a=l+a),{parsed:a,lexed:s,time:o[e(181)]()-n.getTime()}};function lr(t,e){return t-=102,cr()[t]}function cr(){const t=["lexer","[mmarked] ℹ️ Running in browser environment, no license required. ","984ZiJHPn","504elHkLT","renderMarkdown","540054jYzyay","400PXdGUg","24618ytCWnp","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","For commercial use in Node.js, please configure a license using configureLicense(). ","892IBuNap","4777311XyKocZ","use","parse","236997DHzPig","1463120mFJwSU","versions","For commercial use, please configure a license using configureLicense(). ","18hTfmVc","getTime","Browser usage does not require a license.","Contact charles@mathcrowd.cn for commercial licensing. ","45710SziZhm","warn","assign"];return(cr=function(){return t})()}!function(){const t=lr,e=cr();for(;;)try{if(209895==-parseInt(t(104))/1+-parseInt(t(120))/2+-parseInt(t(117))/3*(-parseInt(t(125))/4)+parseInt(t(121))/5*(parseInt(t(122))/6)+parseInt(t(112))/7*(-parseInt(t(118))/8)+parseInt(t(108))/9*(parseInt(t(105))/10)+parseInt(t(126))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ur=t=>{const e=lr;Bt(e(119)),Jt()||("undefined"!=typeof process&&null!=process[e(106)]&&null!=process[e(106)].node?console[e(113)](e(123)+e(107)+e(111)+e(110)):console[e(113)](e(116)+e(124)+"Contact charles@mathcrowd.cn for commercial licensing."));const n={renderer:Object[e(114)](Object[e(114)]({},pe),fe),tokenizer:Object[e(114)]({},Ge),useNewRenderer:!0,gfm:!0,extensions:[Gn,Qn,Yn,tr,$n,vn,Nn,On,Pn,rn,yn,Kn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=En,n={[Cn[e(174)]]:0,[Cn.Lemma]:0,[Cn[e(141)]]:0,[Cn.Axiom]:0,[Cn[e(131)]]:0,[Cn.Example]:0},r={};return function t(s){const i=e;s[i(128)](e=>{const s=i;"theoremLikeDef"===e[s(164)]&&(e[s(145)]in n?n[e[s(145)]]=n[e[s(145)]]+1:n[e[s(145)]]=1,e[s(159)]=e.unnumbered?"":n[e[s(145)]],r[e.id]={typeName:e.typeName,number:e.number}),e.tokens&&e.tokens[s(151)]>0&&t(e.tokens)})}(t),function t(n){const s=e;n[s(128)](e=>{const n=s;e[n(164)]===n(149)&&e.id in r&&(e[n(159)]=r[e.id][n(159)],e[n(169)]=r[e.id].typeName),e.type===n(150)&&e[n(173)].forEach(e=>{const r=n;e.tokens&&e.tokens[r(151)]>0&&t(e[r(166)])}),e[n(166)]&&e.tokens[n(151)]>0&&t(e[n(166)])})}(t),t})(Sn(t)),postprocess:t=>(t=>{const e=wn,n=[];return t=t[e(207)](/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,r)=>(n[e(229)]({key:parseInt(r),content:t}),"")),n.sort((t,n)=>t.key-n[e(204)]),t=t[e(207)](/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(222)]>0&&(t+=e(209)+n[e(223)](t=>t[e(201)])[e(194)]("")+"</ol>"),t})(t)}};bn[e(102)](n);const r=new Date,s=Sn(bn[e(115)](t));let i=bn[e(103)](t);const o=new Date,a=Ft();return a&&(i=a+i),{parsed:i,lexed:s,time:o[e(109)]()-r[e(109)]()}};function pr(t,e){return t-=435,hr()[t]}function hr(){var t=["40xHhful","17910CIBLpS","68002OPMDCH","1146392qnpAiS","160FrcGWD","9YyyQid","1443045jtfEJm","552KUfuMJ","433753bneMrt","205394UqSkMP","5494360LarScs","18WUVUCF"];return(hr=function(){return t})()}function fr(t,e){return t-=185,gr()[t]}!function(){for(var t=pr,e=hr();;)try{if(556972==-parseInt(t(444))/1+parseInt(t(439))/2+parseInt(t(437))/3*(parseInt(t(440))/4)+-parseInt(t(442))/5*(-parseInt(t(435))/6)+parseInt(t(445))/7*(parseInt(t(436))/8)+parseInt(t(441))/9*(-parseInt(t(446))/10)+parseInt(t(438))/11*(-parseInt(t(443))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=fr,e=gr();for(;;)try{if(726443==-parseInt(t(188))/1*(parseInt(t(191))/2)+-parseInt(t(187))/3*(parseInt(t(198))/4)+-parseInt(t(190))/5*(parseInt(t(186))/6)+-parseInt(t(193))/7+parseInt(t(194))/8+-parseInt(t(197))/9+parseInt(t(192))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const dr=t=>{const e=fr;try{const n=a({fontSize:13});l(n);const r=new u({packages:c,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:e(195)}}),s=new h({fontCache:e(189)}),i=p.document(t,{InputJax:r,OutputJax:s});return i.render(),n[e(196)](n.body(i[e(185)]))}catch(e){return console.error(e),t}};function gr(){const t=["\\unicode{x25B1}","innerHTML","3229713JcKsTy","44YcxuLo","document","504aZigIA","359727tmXvJx","1380ZNachD","none","43875XQpGfQ","1336JthVjV","39635350IeDCIm","1637216oUPfjz","2668736XShEvg"];return(gr=function(){return t})()}function mr(t,e){return t-=312,kr()[t]}function kr(){var t=["1496403NhmkMm","97608hvZadB","2341188hziKtt","345792LuwLbM","2ndGLgQ","323308EUnksU","2789241kRfXZr","24170SXVJol","35pTTAmr","8532AoTUwX"];return(kr=function(){return t})()}function br(t,e){return t-=461,xr()[t]}function xr(){var t=["5378112LZRfjl","12PDqHqF","6Wahokk","2947485xvktNI","592428Urxbev","1329050lBZZPY","10WRSMaH","42622745hYWBJT","2019987jEgTaf","8XzmVVB","8929018mHvPbR"];return(xr=function(){return t})()}!function(){for(var t=mr,e=kr();;)try{if(328347==-parseInt(t(319))/1+-parseInt(t(318))/2*(parseInt(t(314))/3)+-parseInt(t(316))/4+-parseInt(t(312))/5*(parseInt(t(315))/6)+-parseInt(t(320))/7+-parseInt(t(317))/8+parseInt(t(313))/9*(parseInt(t(321))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=br,e=xr();;)try{if(922055==parseInt(t(464))/1+parseInt(t(468))/2*(-parseInt(t(463))/3)+parseInt(t(471))/4*(-parseInt(t(462))/5)+parseInt(t(461))/6*(-parseInt(t(469))/7)+-parseInt(t(470))/8+parseInt(t(467))/9+parseInt(t(465))/10*(parseInt(t(466))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{Rt as UNLICENSED_WARNING_INTERVAL,Wt as clearValidationCache,Xt as configureLicense,Kt as getLicenseConfig,Ft as getWarningIfNeeded,Jt as isLicensed,ur as renderMarkdown,ar as renderMarkdownCompact,Vt as resetUsageStats,qt as setUnlicensedWarningInterval,dr as tex2svg,Bt as trackFunctionCall,Ht 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+|$)/,I=/(?:[*+-]|\d{1,9}[.)])/,w=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,y=m(w).replace(/bull/g,I).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(w).replace(/bull/g,I).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,I).getRegex(),z="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",_=/<!--(?:-?>|[\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",_).replace("tag",z).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),P=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",z).getRegex(),R={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",P).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:y,list:j,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:P,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",z).getRegex(),C={...R,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",z).getRegex()},E={...R,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).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",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},L=/^( {2,}|\\)\n(?!\s*$)/,O=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,Z=/[^\s\p{P}\p{S}]/u,N=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),M=/(?!~)[\p{P}\p{S}]/u,F=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_]))/,B=m(U,"u").replace(/punct/g,O).getRegex(),W=m(U,"u").replace(/punct/g,M).getRegex(),H="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",K=m(H,"gu").replace(/notPunctSpace/g,Z).replace(/punctSpace/g,D).replace(/punct/g,O).getRegex(),G=m(H,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,M).getRegex(),J=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Z).replace(/punctSpace/g,D).replace(/punct/g,O).getRegex(),Y=m(/\\(punct)/,"gu").replace(/punct/g,O).getRegex(),V=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(),X=m(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),Q=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",X).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:Y,autolink:V,blockSkip:F,br:L,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:B,emStrongRDelimAst:K,emStrongRDelimUnd:J,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:N,reflink:nt,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),tag:Q,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:W,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(L).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:R,gfm:C,pedantic:E},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}},It=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)}},wt=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""}},yt=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new It,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wt}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?yt.parse:yt.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=yt;Renderer=It;TextRenderer=wt;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 It(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 yt.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?yt.parse:yt.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?yt.parse:yt.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=yt,At.parser=yt.parse,At.Renderer=It,At.TextRenderer=wt,At.Lexer=xt,At.lexer=xt.lex,At.Tokenizer=bt,At.Hooks=$t,At.parse=At,"function"==typeof SuppressedError&&SuppressedError;const zt=Kt;function _t(){const t=Kt;if(!Nt())return t(249);try{if(typeof require!==t(224)){const e=require(t(231));if(e[t(244)])return e[t(244)]()}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t(240)](/[xy]/g,function(e){const n=t,r=16*Math[n(225)]()|0;return("x"===e?r:3&r|8)[n(255)](16)})}catch(e){return t(216)+Date[t(215)]()+"-"+Math[t(225)]().toString(36)[t(212)](2,9)}}!function(){const t=Kt,e=Bt();for(;;)try{if(563143==-parseInt(t(205))/1+-parseInt(t(239))/2*(-parseInt(t(227))/3)+parseInt(t(222))/4+parseInt(t(252))/5*(-parseInt(t(196))/6)+-parseInt(t(245))/7*(parseInt(t(230))/8)+-parseInt(t(242))/9*(-parseInt(t(221))/10)+parseInt(t(197))/11*(-parseInt(t(203))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let Tt=1e3;function Pt(t){Tt=t}let Rt=null;const qt=new Map;let Ct=!1;const Et=36e5,Lt=zt(211),Ot=zt(251),Dt={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date[zt(215)](),lastUsedAt:Date[zt(215)](),sessionId:_t()};let Zt=null;function Nt(){const t=zt;return typeof process!==t(224)&&null!=process[t(248)]&&null!=process[t(248)][t(209)]}function Mt(){return jt(this,void 0,void 0,function*(){const t=Kt;var e;if(!Nt())return;const n=Rt;if(!n||!n[t(219)])return;const r=Date[t(215)]();if(Dt.lastReportedAt&&18e5>r-Dt.lastReportedAt)return;const s=Ot;try{const i=Object[t(243)](Object[t(243)]({},Dt),{apiKey:n[t(219)],timestamp:r,nodeVersion:null===(e=process.versions)||void 0===e?void 0:e[t(209)]});typeof fetch!==t(224)&&(yield fetch(s,{method:t(202),headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),Dt[t(228)]=r,console.debug(t(220)))}catch(e){console[t(218)](t(214),e)}})}function Ft(t){const e=zt;var n;Nt()&&(Dt[e(235)]++,Dt[e(208)]=Date.now(),t===e(254)?Dt.renderMarkdownCalls++:"renderMarkdownCompact"===t&&Dt[e(234)]++,(null==Rt?void 0:Rt.apiKey)&&(Dt[e(219)]=Rt[e(219)],Dt[e(201)]=null===(n=process.versions)||void 0===n?void 0:n.node))}function Ut(){const t=zt;return!Nt()||Jt()?"":Dt[t(235)]>0&&Dt.totalCalls%Tt===0?function(){const t=zt,e=Date[t(215)](),n=Math[t(225)]().toString(36)[t(236)](2,9);return t(246)+n+t(223)+e+t(188)}():""}function Bt(){const t=["lastUsedAt","node","error","https://api.mathcrowd.cn/validate-license","substr","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.","[mmarked] Failed to report usage statistics:","now","session-","[mmarked] Usage reporting error:","debug","apiKey","[mmarked] Usage statistics reported successfully","110GImOfS","2351712GFmaBF",'" data-timestamp="',"undefined","random","[mmarked] License validation error:","39phcdDD","lastReportedAt","current version","8lYQTVx","crypto","result","catch","renderMarkdownCompactCalls","totalCalls","substring","valid","mmarked","103282xIzvBp","replace","set","289998humNJf","assign","randomUUID","2275553OCtiNF",'<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="',"get","versions","browser-session","json","https://api.mathcrowd.cn/report-usage","231365GIrSXL","[mmarked] ⚠️ Remote license validation not supported on Node.js ","renderMarkdown","toString","statusText","application/json","timestamp",'">\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>',"[mmarked] License configured successfully","log","message","[mmarked] License validation failed:","then","Requires Node.js 18+ for fetch API support. ","warn","78lmmqiK","7832WSrAar","[mmarked] Initial usage reporting error:","clear","sessionId","nodeVersion","POST","300AzhGaj","[mmarked] Validation cache cleared","106132cEmqye","2.0.3","firstUsedAt"];return(Bt=function(){return t})()}function Wt(t){const e=zt;Rt=t,function(){const t=zt;Nt()&&Rt&&Rt[t(219)]&&(Zt&&clearInterval(Zt),Zt=setInterval(()=>{const e=t;Mt()[e(233)](t=>{const n=e;console[n(218)](n(217),t)})},36e5),Mt()[t(233)](e=>{const n=t;console[n(218)](n(198),e)}))}(),console[e(190)](e(189))}function Ht(){return Rt}function Kt(t,e){return t-=186,Bt()[t]}function Gt(){return jt(this,void 0,void 0,function*(){const t=Kt,e=Rt;if(!e||!e[t(219)])return{valid:!1,message:"No license configured. Please call configureLicense() with your API key."};const{apiKey:n}=e,r=qt[t(247)](n);if(r&&Date[t(215)]()-r[t(187)]<Et)return{valid:r[t(232)]};const s=yield function(t,e){return jt(this,void 0,void 0,function*(){const n=Kt;var r;try{if(typeof fetch===n(224)){const t=null===(r=process[n(248)])||void 0===r?void 0:r.node;return console[n(195)](n(253)+(t||n(229))+". "+n(194)+n(213)),{valid:!1,message:"Fetch API not available. Requires Node.js 18+ or use custom validator."}}const s=yield fetch(e,{method:n(202),headers:{"Content-Type":n(186)},body:JSON.stringify({apiKey:t,product:n(238),version:n(206)})});return s.ok?yield s[n(250)]():{valid:!1,message:"Validation failed: "+s[n(256)]}}catch(t){return console[n(195)]("[mmarked] Remote validation failed:",t),{valid:!1,message:"Network error during validation"}}})}(n,Lt);return qt[t(241)](n,{result:s[t(237)],timestamp:Date[t(215)]()}),s})}function Jt(){const t=zt;if(!Nt())return!1;const e=Rt;if(!e||!e[t(219)])return!1;const{apiKey:n}=e,r=qt[t(247)](n);return r?(Date[t(215)]()-r[t(187)]>=Et&&Gt()[t(193)](e=>{const n=t;return!e.valid&&console[n(195)](n(192),e[n(191)]),e})[t(233)](e=>{throw console[t(210)]("[mmarked] License validation error:",e),e}),r[t(232)]):(!Ct&&(Ct=!0,Gt()[t(193)](e=>{const n=t;return!e[n(237)]&&console[n(195)](n(192),e[n(191)]),e})[t(233)](e=>{const n=t;throw console[n(210)](n(226),e),e})),!0)}function Yt(){const t=zt;qt[t(199)](),Ct=!1,console[t(190)](t(204))}function Vt(){const t=zt;Dt.totalCalls=0,Dt.renderMarkdownCalls=0,Dt[t(234)]=0,Dt[t(207)]=Date[t(215)](),Dt.lastUsedAt=Date[t(215)](),Dt[t(228)]=void 0,Dt[t(200)]=_t(),Rt=null,qt[t(199)](),Ct=!1,console.log("[mmarked] Usage stats reset"),console[t(190)](t(204))}var Xt,Qt,te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ee={exports:{}},ne=(Xt||(Xt=1,Qt=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&&Qt.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]},I=function(t){return function(e){return new y(!0).update(e)[t]()}},w=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function y(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 y(!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}y.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}y.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},y.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()}},y.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)},y.prototype.toString=y.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]},y.prototype.array=y.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]},y.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},y.prototype.buffer=y.prototype.arrayBuffer,y.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 y).finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();y.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),y.prototype.finalize.call(this)}};var v=function(){var r=I("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 y},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=I(a)}return r}();v.md5=v,v.md5.hmac=function(){var t=w("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]=w(n)}return t}(),l?Qt.exports=v:s.md5=v}()),ee.exports);function re(){const t=["718532JntgWm","trim","push","12167952iQybZh","491658TvoIho","length","4RNulsa","source","285912rWhCyK","91oBzHFX","split","9ttKSvc","match","test","slice","node","string","versions","38215HzZtVX","replace","25yvLpHh","pop","71256CmfOIb","10BZSPlB","indexOf","2818188Tsrtgx","class-"];return(re=function(){return t})()}function se(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch(t){return null}return t}!function(){const t=ce,e=re();for(;;)try{if(405451==parseInt(t(167))/1*(-parseInt(t(182))/2)+-parseInt(t(187))/3*(parseInt(t(176))/4)+-parseInt(t(169))/5*(-parseInt(t(180))/6)+-parseInt(t(185))/7*(parseInt(t(171))/8)+-parseInt(t(174))/9+-parseInt(t(172))/10*(-parseInt(t(184))/11)+parseInt(t(179))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ie={exec:()=>null};function oe(t,e){const n=ce;let r="string"==typeof t?t:t[n(183)];e=e||"";const s={replace:(t,e)=>{const i=n;let o=typeof e===i(192)?e:e[i(183)];return o=o.replace(/(^|[^[])\^/g,"$1"),r=r.replace(t,o),s},getRegex:()=>RegExp(r,e)};return s}const ae=t=>{const e=ce;return/^[a-z][\w-]*$/i[e(189)](t)?t:e(175)+ne.md5(t)};function le(t){const e=ce,n=t[e(188)](/^(.*?)(?:\s*=(\d*)(?:x(\d+))?)?$/);if(n){const t=n[1].trim(),r=n[2]?parseInt(n[2],10):null,s=n[3]?parseInt(n[3],10):null;return{text:0===t[e(181)]?null:t,width:r,height:s}}return{text:null,width:null,height:null}}function ce(t,e){return t-=167,re()[t]}function ue(t,e){const n=ce,r=t[n(168)](/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})[n(186)](/ \|/);let s=0;if(!r[0][n(177)]()&&r.shift(),r[n(181)]>0&&!r[r[n(181)]-1].trim()&&r[n(170)](),e)if(r.length>e)r.splice(e);else for(;r[n(181)]<e;)r[n(178)]("");for(;s<r[n(181)];s++)r[s]=r[s].trim()[n(168)](/\\\|/g,"|");return r}function pe(t,e){return t-=342,he()[t]}function he(){const t=["loose","675630frmRaE","tokens","px;","start","caption",'" alt="',"</thead>\n","tablerow","rows","<thead>\n","1004140FRfBKP",' start="',"text","parseInline","parser","ordered","length","</p>\n","height:","unshift","items",'<p class="paragraph">',"5696286aiFbQG","153364QHeTfy","</figcaption>\n","</table>\n","type","1301419VmRNKj",' class="md-list"',"<tbody>",'<section class="img-container">\n',"9KWJVTg","header","</section>\n","<figcaption>","12036650PyEuoZ","title","2797911GQffLm","<table>\n","</li>\n",' style="',"tablecell","8kdOMif","8YFjmgE","href"];return(he=function(){return t})()}!function(){const t=pe,e=he();for(;;)try{if(536945==-parseInt(t(361))/1*(parseInt(t(342))/2)+-parseInt(t(356))/3+parseInt(t(375))/4+-parseInt(t(365))/5+parseInt(t(387))/6+-parseInt(t(346))/7*(parseInt(t(362))/8)+-parseInt(t(350))/9*(-parseInt(t(354))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const fe={paragraph({tokens:t}){const e=pe;if(1===t[e(381)]&&"image"===t[0].type){const n=t[0];if(null===se(n[e(363)]))return n.text;let r="<figure>\n";if(r+=e(349),r+=this.image(n)+"\n",r+=e(352),n[e(355)]){const{text:t}=le(n[e(355)]);t&&(r+="<figcaption>"+t+"</figcaption>\n")}return r+="</figure>\n",r}return e(386)+this[e(379)][e(378)](t)+e(382)},list(t){const e=pe,n=t[e(380)],r=t[e(368)];let s="";for(let n=0;n<t[e(385)].length;n++){const r=t[e(385)][n];s+=this.listitem(r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(376)+r+'"':"")+e(347)+">\n"+s+"</"+i+">\n"},listitem(t){const e=pe;let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t[e(364)]?t[e(366)][e(381)]>0&&"paragraph"===t[e(366)][0].type?(t[e(366)][0].text=r+" "+t[e(366)][0].text,t[e(366)][0].tokens&&t.tokens[0][e(366)].length>0&&t[e(366)][0].tokens[0][e(345)]===e(377)&&(t[e(366)][0].tokens[0].text=r+" "+t[e(366)][0][e(366)][0][e(377)])):t[e(366)][e(384)]({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this[e(379)].parse(t[e(366)],!!t.loose),'<li class="md-list-item">'+n+e(358)},table(t){const e=pe;let n="",r="";for(let n=0;n<t[e(351)].length;n++)r+=this[e(360)](t[e(351)][n]);n+=this.tablerow({text:r});let s="";for(let n=0;n<t[e(373)][e(381)];n++){const i=t[e(373)][n];r="";for(let t=0;t<i[e(381)];t++)r+=this[e(360)](i[t]);s+=this[e(372)]({text:r})}s&&(s=e(348)+s+"</tbody>\n");let i="";return t[e(369)].text&&(i=e(353)+this.parser[e(378)]([t[e(369)]])+e(343)),"<figure>\n"+e(357)+e(374)+n+e(371)+s+e(344)+i+"</figure>\n"},image(t){const e=pe,n=se(t[e(363)]);if(null===n)return t.text;let r='<img src="'+n+e(370)+t[e(377)]+'"';if(t[e(355)]){const{text:n,width:s,height:i}=le(t[e(355)]);n&&(r+=' title="'+n+'"'),(s||i)&&(r+=e(359),s&&(r+="width:"+s+e(367)),i&&(r+=e(383)+i+e(367)),r+='"')}return r+=">",r}},de={};function ge(){const t=["^ *([^\\n ].*)\\n","code","|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|[\\s](\\*+)(?!\\*)(?=[punct])","|lheading","href","(?: {4}| {0,3}\t)[^\\n]","html","442477VPmPAm"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)","getRegex","list","23300ezOoou","|[^_]+(?=[^_])","|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)","|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","6AkPmvo","5748485lCZQpt","~|])","|[^*]+(?=[^*])","|tr|track|ul","blockquote","^ {0,3}(?:","|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title","|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)","ref","^comment","|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>","((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)","--\x3e","|comment[^\\n]*(\\n+|$)","title","|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","|(?!_)[punct](_+)(?=[\\s]|$)","fences","^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)","1166nqjulk","assign","reflink","replace","|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)","table"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n"," {0,3}>","heading","26YXhWjB","tag","comment","|^<![a-zA-Z]+\\s[\\s\\S]*?>"," {0,3}(?:[*+-]|1[.)]) ","|table","paragraph","910090grpZcX","275464nFvnZH","|^<\\?[\\s\\S]*?\\?>","label","attribute","reflink|nolink(?!\\()","^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)","241626qfLNqQ","nolink","|(?!_)[punct\\s](_+)(?=[^punct\\s])","(?:--\x3e|$)","|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])","|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)"," {0,3}#{1,6}(?:\\s|$)","1812196deKWmI","297iJuXWg","|^</[a-zA-Z][\\w:-]*\\s*>","|(?!_)[punct](_+)(?!_)(?=[punct])","|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])"];return(ge=function(){return t})()}const me=ke;function ke(t,e){return t-=190,ge()[t]}!function(){const t=ke,e=ge();for(;;)try{if(598130==-parseInt(t(225))/1+-parseInt(t(218))/2*(parseInt(t(232))/3)+parseInt(t(239))/4+parseInt(t(263))/5+-parseInt(t(262))/6*(-parseInt(t(252))/7)+-parseInt(t(226))/8*(-parseInt(t(240))/9)+parseInt(t(256))/10*(-parseInt(t(205))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const be=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xe=/(?:[*+-]|\d{1,9}[.)])/,Ie=oe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/)[me(208)](/bull/g,xe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/)[me(208)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[me(208)](/blockquote/g,/ {0,3}>/)[me(208)](/heading/g,/ {0,3}#{1,6}/)[me(208)](/html/g,/ {0,3}<[^\n>]+>\n/)[me(254)](),we=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ye=/(?!\s*\])(?:\\.|[^[\]\\])+/,$e=oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[me(208)](me(228),ye)[me(208)](me(198),/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[me(254)](),ve=oe(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/).replace(/bull/g,xe)[me(254)](),Se="address|article|aside|base|basefont|blockquote|body|caption"+me(199)+me(260)+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+me(190)+me(266),Ae=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,je=oe(me(268)+me(259)+me(197)+me(201)+"|<![A-Z][\\s\\S]*?(?:>\\n*|$)"+me(237)+me(246)+me(258)+me(210)+")","i").replace(me(220),Ae).replace(me(219),Se)[me(208)](me(229),/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i)[me(254)](),ze=oe(we)[me(208)]("hr",be)[me(208)](me(217)," {0,3}#{1,6}(?:\\s|$)")[me(208)](me(248),"")[me(208)](me(223),"")[me(208)](me(267),me(216))[me(208)](me(203),me(215))[me(208)](me(255),me(222))[me(208)](me(251),me(200))[me(208)](me(219),Se)[me(254)](),_e={blockquote:oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[me(208)](me(224),ze).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:$e,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:be,html:je,lheading:Ie,list:ve,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ze,table:ie,text:/^[^\n]+/},Te=oe(me(244)+me(253)+me(211))[me(208)]("hr",be).replace(me(217),me(238)).replace(me(267),me(216))[me(208)](me(245),me(250)).replace(me(203),me(215)).replace("list"," {0,3}(?:[*+-]|1[.)]) ")[me(208)](me(251),me(200))[me(208)](me(219),Se)[me(254)](),Pe=Object[me(206)](Object[me(206)]({},_e),{table:Te,paragraph:oe(we)[me(208)]("hr",be).replace("heading"," {0,3}#{1,6}(?:\\s|$)")[me(208)](me(248),"").replace(me(212),Te)[me(208)](me(267),me(216))[me(208)]("fences",me(215))[me(208)](me(255),me(222))[me(208)](me(251),me(200))[me(208)]("tag",Se)[me(254)]()}),Re=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,qe="\\p{P}\\p{S}",Ce=oe(/^((?![*_])[\spunctaio])/,"u")[me(208)](/punctuation/g,qe)[me(254)](),Ee=oe(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u")[me(208)](/punct/g,qe)[me(254)](),Le=oe(me(231)+me(265)+me(261)+me(214)+me(243)+me(247)+me(236)+"|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,qe)[me(254)](),Oe=oe(me(204)+me(257)+me(202)+me(191)+me(234)+"|[\\s](_+)(?!_)(?=[punct])"+me(242),"gu")[me(208)](/punct/g,qe)[me(254)](),De=oe(/\\([punct])/,"gu")[me(208)](/punct/g,qe)[me(254)](),Ze=oe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)[me(208)]("scheme",/[a-z][a-z\d+.-]{1,31}/i)[me(208)]("email",/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i).getRegex(),Ne=oe(Ae).replace(me(235),me(196))[me(254)](),Me=oe(me(193)+me(241)+me(194)+me(227)+me(221)+me(209)).replace("comment",Ne)[me(208)](me(229),/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i)[me(254)](),Fe=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Ue=oe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/)[me(208)]("label",Fe)[me(208)](me(249),/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/)[me(208)](me(198),/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)[me(254)](),Be=oe(/^!?\[(label)\]\[(ref)\]/)[me(208)](me(228),Fe).replace("ref",ye)[me(254)](),We=oe(/^!?\[(ref)\](?:\[\])?/).replace(me(192),ye)[me(254)](),He={t:ie,anyPunctuation:De,autolink:Ze,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:ie,emStrongLDelim:Ee,emStrongRDelimAst:Le,emStrongRDelimUnd:Oe,escape:Re,link:Ue,nolink:We,punctuation:Ce,reflink:Be,reflinkSearch:oe(me(230),"g").replace(me(207),Be)[me(208)](me(233),We).getRegex(),tag:Me,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:ie},Ke=Object[me(206)](Object.assign({},He),{escape:oe(Re)[me(208)]("])",me(264))[me(254)](),url:oe(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i")[me(208)]("email",/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i)[me(254)](),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.!#$%&'*+/=?`{|}~-]+@)))/}),Ge=Object.assign(Object[me(206)]({},Ke),{br:ie,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/}),Je={block:Object.assign(Object[me(206)]({},Pe),{lheading:ie,code:ie,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:oe(we)[me(208)]("hr",be)[me(208)](me(217)," {0,3}#{1,6}(?:\\s|$)")[me(208)](me(248),"")[me(208)](me(212),Te)[me(208)](me(267)," {0,3}(?<!>)>(?!>)")[me(208)](me(203)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[me(208)](me(255),me(222)).replace(me(251),me(200)).replace(me(219),Se).getRegex(),table:oe(me(244)+me(213)+me(195)+"(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)")[me(208)]("hr",be)[me(208)](me(217),me(238))[me(208)](me(267),me(216))[me(208)]("code","(?: {4}| {0,3}\t)[^\\n]")[me(208)]("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[me(208)](me(255),me(222))[me(208)](me(251),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace(me(219),Se)[me(254)](),blockquote:oe(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/).replace(me(224),ze)[me(254)]()}),inline:Ge};function Ye(){const t=["strong","lastIndex","193348PrcFuP","text","join","14990eEsjcX","map","index","match","emStrongRDelimUnd","76oPQdin","blockquote","min","type","length","rows","left","emStrongLDelim","substring","2zWlmPh","anyPunctuation","emStrongRDelimAst","inlineTokens","table","header","center","lexer","exec","top","94775GogvTq","raw","slice","list","22536fniuLT","align","blockTokens","split","block","fences","state","8CzUYow","2116268UJIpow","4994tBnlPm","trim","2850954TLHTgg","2394wwLrUa","code","test","inline","replace","right","528564PbEACT","push"];return(Ye=function(){return t})()}function Ve(t,e){return t-=321,Ye()[t]}!function(){const t=Ve,e=Ye();for(;;)try{if(283728==-parseInt(t(347))/1*(-parseInt(t(364))/2)+-parseInt(t(343))/3+parseInt(t(355))/4*(-parseInt(t(321))/5)+parseInt(t(336))/6+-parseInt(t(333))/7*(parseInt(t(332))/8)+parseInt(t(337))/9*(-parseInt(t(350))/10)+parseInt(t(334))/11*(parseInt(t(325))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Xe={table(t){const e=Ve,n=Je[e(329)].table.exec(t);if(!n)return;if(!/[:|]/[e(339)](n[2]))return;const r=ue(n[1]),s=n[2][e(341)](/^\||\| *$/g,"")[e(328)]("|"),i=n[3]&&n[3][e(335)]()?n[3].replace(/\n[ \t]*$/,"").split("\n"):[],o=n[5],a={type:e(368),raw:n[0],header:[],align:[],rows:[],caption:{type:e(348),text:o,raw:o,tokens:this[e(371)][e(340)](o)}};if(r.length===s[e(359)]){for(const t of s)/^ *-+: *$/[e(339)](t)?a[e(326)][e(344)](e(342)):/^ *:-+: *$/[e(339)](t)?a[e(326)][e(344)](e(370)):/^ *:-+ *$/[e(339)](t)?a[e(326)][e(344)](e(361)):a[e(326)][e(344)](null);for(let t=0;t<r[e(359)];t++)a[e(369)].push({text:r[t],tokens:this.lexer[e(340)](r[t]),header:!0,align:a[e(326)][t]});for(const t of i)a[e(360)].push(ue(t,a[e(369)][e(359)])[e(351)]((t,n)=>{const r=e;return{text:t,tokens:this.lexer[r(340)](t),header:!1,align:a[r(326)][n]}}));return a}},lheading(){},code(){},fences(t){const e=Ve,n=Je.block[e(330)][e(372)](t);if(n){const t=n[0],r=function(t,e){const n=Ve,r=t[n(353)](/^(\s+)```/);if(null===r)return e;const s=r[1];return e[n(328)]("\n")[n(351)](t=>{const e=n,r=t[e(353)](/^\s+/);if(null===r)return t;const[i]=r;return i[e(359)]<s.length?t:t[e(323)](s[e(359)])})[n(349)]("\n")}(t,n[3]||"");return{type:e(338),raw:t,lang:n[2]?n[2].trim().replace(Je[e(340)][e(365)],"$1"):n[2],text:r}}},br(){},emStrong(t,e,n=""){const r=Ve;let s=Je.inline[r(362)].exec(t);if(s&&(!s[3]||!n[r(353)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||Je[r(340)].punctuation[r(372)](n))){const n=[...s[0]][r(359)]-1;let i,o,a=n,l=0;const c="*"===s[0][0]?Je[r(340)][r(366)]:Je[r(340)][r(354)];for(c[r(346)]=0,e=e[r(323)](-1*t[r(359)]+n);null!=(s=c[r(372)](e));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i][r(359)],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(357)](o,o+a+l);const e=[...s[0]][0][r(359)],c=t.slice(0,n+s[r(352)]+e+o);if(Math[r(357)](n,o)%2){const t=c[r(323)](1,-1);return{type:"em",raw:c,text:t,tokens:this[r(371)].inlineTokens(t)}}const u=c[r(323)](2,-2);return{type:r(345),raw:c,text:u,tokens:this[r(371)][r(367)](u)}}}},blockquote(t){const e=Ve,n=Je[e(329)].blockquote[e(372)](t);if(n){let t=function(t){const e=ce,n=t[e(181)];if(0===n)return"";let r=0;for(;n>r&&"\n"===t.charAt(n-r-1);)r++;return t[e(190)](0,n-r)}(n[0])[e(328)]("\n"),r="",s="";const i=[];for(;t[e(359)]>0;){let n=!1;const o=[];let a;for(a=0;a<t[e(359)];a++)if(/^ {0,3}>/[e(339)](t[a]))o[e(344)](t[a]),n=!0;else{if(n)break;o[e(344)](t[a])}t=t[e(323)](a);const l=o[e(349)]("\n"),c=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1")[e(341)](/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this[e(371)][e(331)][e(373)];if(this[e(371)][e(331)][e(373)]=!0,this[e(371)][e(327)](c,i,!0),this[e(371)][e(331)][e(373)]=u,0===t[e(359)])break;const p=i[i[e(359)]-1];if((null==p?void 0:p[e(358)])===e(338))break;if("blockquote"===(null==p?void 0:p[e(358)])){const n=p,o=n[e(322)]+"\n"+t.join("\n"),a=this[e(356)](o);i[i.length-1]=a,r=r.substring(0,r.length-n[e(322)][e(359)])+a[e(322)],s=s[e(363)](0,s[e(359)]-n[e(348)][e(359)])+a[e(348)];break}if((null==p?void 0:p.type)===e(324)){const n=p,o=n[e(322)]+"\n"+t[e(349)]("\n"),a=this[e(324)](o);i[i[e(359)]-1]=a,r=r[e(363)](0,r.length-p.raw[e(359)])+a.raw,s=s.substring(0,s.length-n[e(322)].length)+a[e(322)],t=o.substring(i[i[e(359)]-1][e(322)][e(359)]).split("\n");continue}}return{type:e(356),raw:r,tokens:i,text:s}}}};function Qe(t,e){return t-=246,tn()[t]}function tn(){var t=["3BZbvWW","1788350FiZJvz","17871986JJGxrv","12sdTeQz","111267HKddWq","390794Nrlmru","5410391DrouPZ","3699636LtwQLn","6735440lzMLXO","16yKpkdQ","3dAZFdZ"];return(tn=function(){return t})()}!function(){for(var t=Qe,e=tn();;)try{if(796122==-parseInt(t(255))/1*(-parseInt(t(249))/2)+parseInt(t(254))/3*(-parseInt(t(251))/4)+parseInt(t(256))/5+-parseInt(t(247))/6*(parseInt(t(250))/7)+parseInt(t(253))/8*(parseInt(t(248))/9)+parseInt(t(252))/10+parseInt(t(246))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const en=rn;var nn;function rn(t,e){return t-=438,on()[t]}!function(){const t=rn,e=on();for(;;)try{if(389440==parseInt(t(442))/1+parseInt(t(441))/2+-parseInt(t(439))/3*(parseInt(t(462))/4)+parseInt(t(466))/5+parseInt(t(463))/6+-parseInt(t(469))/7+parseInt(t(455))/8*(-parseInt(t(453))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=rn;t.Warn=e(438),t.Success=e(468),t[e(457)]=e(465),t[e(444)]=e(461)}(nn||(nn={}));const sn={name:en(443),level:"block",start(t){const e=en;return t[e(451)](e(450))},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|$)|$)/.exec(t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(460)](),a=null===(r=o[3])||void 0===r?void 0:r.trim(),l=null===(s=o[4])||void 0===s?void 0:s.trim(),c=null===(i=o[5])||void 0===i?void 0:i[e(460)]();return{type:"alert",raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(440)][e(448)](c)}}},renderer(t){const e=en;var n;let r="";if(t.icon===e(458))switch(t[e(454)]){case nn.Warn:t.icon="⚠️";break;case nn[e(459)]:t.icon="🎉";break;case nn[e(457)]:t[e(445)]="⛔";break;case nn.Info:t[e(445)]="ℹ️"}const s=void 0!==t[e(445)]?e(452)+t[e(445)]+e(446):"";return r=r+'<section class="alert '+t.ttype+'">',t[e(464)]&&(r=r+'<p class="heading">'+s+e(447)+t[e(464)]+"</span></p>"),r+=e(449)+(t[e(464)]?"":s)+this[e(467)].parseInline(null!==(n=t.tokens)&&void 0!==n?n:[])+"</p>",r+=e(456),r}};function on(){const t=["lexer","893184nHDaGW","240441YCgAch","alert","Info","icon","</span> ","<span class='title'>","inlineTokens",'<p class="content paragraph">',"^ {0,3}!!![","indexOf",'<span class="icon">',"872037OIwdRp","ttype","24kipJFl","</section>","Error","true","Success","trim","info","511712MOeshf","3188430hswyfk","title","error","46545LGITQb","parser","success","2042404sWlcVp","warn","6UsDAMI"];return(on=function(){return t})()}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=["518339qtCcoU","654MBtrYK","576flvvOl","2621840oRmDiC","1637373FGjonK","2GOUFZo","value","json","latex","registerLanguage","plaintext","1874380heCVto","javascript","getLanguage","highlight","python","71320itnTsA","4395fhvTQm","1926687KYETfq"];return(kn=function(){return t})()}function bn(t,e){return t-=486,kn()[t]}!function(){const t=bn,e=kn();for(;;)try{if(287387==parseInt(t(498))/1+parseInt(t(503))/2*(parseInt(t(502))/3)+-parseInt(t(490))/4+parseInt(t(496))/5*(parseInt(t(499))/6)+-parseInt(t(497))/7+parseInt(t(501))/8+-parseInt(t(500))/9*(parseInt(t(495))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n.registerLanguage(mn(491),r),n[mn(488)](mn(494),o),n[mn(488)](mn(487),i),n[mn(488)](mn(486),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[r(492)](e)?e:r(489);return n[r(493)](t,{language:s})[r(504)]}})),In=wn;function wn(t,e){return t-=449,yn()[t]}function yn(){const t=["9363069CzbCgL","2648456elvXXX","10NwEyPD","</section>\n","411954PPfOrH","8neFwyu","!!!","paragraph","type","1920550yhOtck","tokens","forEach","675018eUoRnP","parse","208163gunHGU","2utyUyc","gallery","image","block","2746457mHyCzu","indexOf","exec",'<section class="gallery-container">\n'];return(yn=function(){return t})()}!function(){const t=wn,e=yn();for(;;)try{if(243331==-parseInt(t(465))/1*(parseInt(t(466))/2)+parseInt(t(463))/3*(parseInt(t(456))/4)+-parseInt(t(460))/5+parseInt(t(455))/6+-parseInt(t(470))/7+-parseInt(t(452))/8+parseInt(t(451))/9*(parseInt(t(453))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const $n={name:"gallery",level:In(469),start(t){const e=In;return t[e(471)](e(457))},tokenizer(t){const e=In,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(449)](t);if(n){const t=n[2];return{type:e(467),raw:n[0],text:t,tokens:this.lexer.blockTokens(t)}}},renderer(t){const e=In;var n;let r=e(450);return r+='<section class="gallery-wrapper">\n',null===(n=t[e(461)])||void 0===n||n[e(462)](t=>{const n=e;var s;t[n(459)]===n(458)&&(null===(s=t[n(461)])||void 0===s||s[n(462)](t=>{const e=n;t[e(459)]===e(468)&&(r+=xn[e(464)](t.raw))}))}),r+=e(454),r+="</section>\n",r}},vn=_n;function Sn(){const t=["tokens","40971238WrUJqB","map","6482500aDWmAV","6193030woUSeY","24387MYIvEp",'<span class="footnote-ref" id="footnote-ref-',"list",'"> ⬅ </a>',"parseInline","replaceAll","isolated","37YCwPrh","66058NEQgpv","</ol>",' <a href="#footnote-ref-',"rows",'"><sup><a href="#footnote-','<li class="footnote-def" key="','" id="footnote-',"888152nZtrFf","footnoteDef","items",'<ol class="footnote-list">',"exec","length","</li>","key","header","caption","indexOf","push","number","join","]</a></sup></span>","forEach","18BKZjNB","block",'">[',"footnoteRef","292ZWwfrL","inline","content","7kvuSbb","trim","2708682rbCpYy","type","lexer","sort","table"];return(Sn=function(){return t})()}!function(){const t=_n,e=Sn();for(;;)try{if(901324==parseInt(t(516))/1*(-parseInt(t(517))/2)+-parseInt(t(509))/3*(-parseInt(t(544))/4)+-parseInt(t(507))/5+parseInt(t(499))/6+-parseInt(t(497))/7*(parseInt(t(524))/8)+parseInt(t(540))/9*(-parseInt(t(508))/10)+parseInt(t(505))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const An={name:vn(543),level:vn(545),start:t=>t.indexOf("[^"),tokenizer:t=>{const e=vn,n=/^\[\^([^\]]+)\]/[e(528)](t);if(n){const t=n[1][e(498)]();return{type:"footnoteRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=vn;return e(510)+t.id+e(521)+t.id+e(542)+t.number+e(538)}},jn={name:"footnoteDef",level:vn(541),start:t=>t[vn(534)]("[^"),tokenizer(t){const e=vn,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/[e(528)](t);if(n){const t=n[1][e(498)](),r=n[2][e(498)]();return{type:e(525),raw:n[0],id:t,text:r,tokens:this[e(501)].inlineTokens(r)}}},renderer(t){const e=vn;var n;const r=e(519)+t.id+e(512);return e(522)+t[e(536)]+e(523)+t.id+'">'+this.parser[e(513)](null!==(n=null==t?void 0:t[e(504)])&&void 0!==n?n:[])+(t.isolated?"":r)+e(530)}},zn=t=>{const e={};let n=1;return function t(r){const s=_n;r[s(539)](r=>{const i=s;r.type===i(543)&&(!(r.id in e)&&(e[r.id]=n,n++),r[i(536)]=e[r.id]),r.type===i(511)&&r[i(526)][i(539)](e=>{const n=i;e[n(504)]&&e.tokens.length>0&&t(e[n(504)])}),r[i(500)]===i(503)&&(r[i(532)][i(539)](e=>{const n=i;e[n(504)]&&e[n(504)].length>0&&t(e[n(504)])}),r[i(520)][i(539)](e=>{e.forEach(e=>{const n=_n;e[n(504)]&&e[n(504)][n(529)]>0&&t(e[n(504)])})}),r[i(533)][i(504)]&&r[i(533)][i(504)].length>0&&t(r.caption[i(504)])),r[i(504)]&&r[i(504)][i(529)]>0&&t(r[i(504)])})}(t),function t(r){const s=_n;r[s(539)](r=>{const i=s;r[i(500)]===i(525)&&(r.isolated=!1,!(r.id in e)&&(e[r.id]=n,n++,r[i(515)]=!0),r[i(536)]=e[r.id]),r.tokens&&r[i(504)][i(529)]>0&&t(r[i(504)])})}(t),t};function _n(t,e){return t-=496,Sn()[t]}const Tn=qn;function Pn(){const t=['<details class="solution ',"lexer","774576xgboCr","tokens","1556430FlBIoE","stype","parse","blockTokens","SOLUTION","12CcSuqw","trim","7xUgYLa","proof","solution","389496NpkkkS","5206792KGFljW","typeName",'"><summary>',"PROOF","18wZiCiW","block","~~~[","3125828SNsGRv","\n </section></details>","8549690kVCWFb","3033745vDHDML","parser","indexOf","exec"];return(Pn=function(){return t})()}var Rn;function qn(t,e){return t-=339,Pn()[t]}!function(){const t=qn,e=Pn();for(;;)try{if(409782==parseInt(t(357))/1+parseInt(t(364))/2*(parseInt(t(340))/3)+parseInt(t(348))/4+-parseInt(t(351))/5+-parseInt(t(359))/6+-parseInt(t(366))/7*(-parseInt(t(341))/8)+parseInt(t(345))/9*(-parseInt(t(350))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=qn;t[e(344)]=e(367),t[e(363)]=e(339)}(Rn||(Rn={}));const Cn={[Rn[Tn(344)]]:"证明",[Rn[Tn(363)]]:"解答"},En={name:Tn(339),level:Tn(346),start:t=>{const e=Tn;return t[e(353)](e(347))},tokenizer(t){const e=Tn;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/[e(354)](t);if(r){const t=r[2][e(365)](),s=r[3][e(365)]();return{type:e(339),raw:r[0],stype:t,typeName:null!==(n=Cn[t])&&void 0!==n?n:t,text:s,tokens:this[e(356)][e(362)](s)}}},renderer(t){const e=Tn;var n;return e(355)+ae(t[e(360)])+e(343)+t[e(342)]+'</summary>\n <section class="content">\n '+this[e(352)][e(361)](null!==(n=null==t?void 0:t[e(358)])&&void 0!==n?n:[])+e(349)}};function Ln(){const t=["Corollary","name","theoremLikeDef","replace","</b>","items","endsWith","theoremLikeRef","type","71696QKnGry","Theorem","list",'">\n <p class="title"><b>',"2853592lzfreo","example","Axiom",'\n </p>\n <section class="content">\n '," ( <em>","axiom","4662604egbpyv","244788PvAsEB","Definition","typeName","lemma","Lemma","definition","parse","ttype",'<section class="theorem-like ',"lexer","corollary","block","Example","7210lEGoxv","tokens","inline","4588932QwOLED","number","indexOf",'" href="#theorem-like-',"parser",'<a id="theorem-like-ref-',"1563611dEliYH","forEach","theorem","1078ZkirKr","length","trim","55260JmYpLZ","blockTokens","```[","</em> )","exec","unnumbered","trimEnd","5PbJPwh",'" id="theorem-like-',"</a>"];return(Ln=function(){return t})()}const On=Dn;function Dn(t,e){return t-=211,Ln()[t]}var Zn;!function(){const t=Dn,e=Ln();for(;;)try{if(804612==-parseInt(t(216))/1+-parseInt(t(245))/2+-parseInt(t(252))/3+parseInt(t(251))/4*(-parseInt(t(229))/5)+-parseInt(t(268))/6+parseInt(t(219))/7*(parseInt(t(241))/8)+-parseInt(t(222))/9*(-parseInt(t(265))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Dn;t[e(242)]=e(218),t[e(256)]=e(255),t[e(232)]=e(262),t.Axiom=e(250),t[e(253)]=e(257),t[e(264)]=e(246)}(Zn||(Zn={}));const Nn={[Zn[On(242)]]:"定理",[Zn[On(256)]]:"引理",[Zn[On(232)]]:"推论",[Zn[On(247)]]:"公理",[Zn[On(253)]]:"定义",[Zn.Example]:"例"},Mn={name:On(239),level:On(267),start:t=>t[On(212)]("[~"),tokenizer:t=>{const e=On,n=/^\[~([^\]]+)\]/[e(226)](t);if(n){const t=n[1][e(221)]();return{type:"theoremLikeRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=On;return e(215)+t.id+e(213)+t.id+'">'+(t[e(254)]+" "+t[e(211)])[e(228)]()+e(231)}},Fn={name:On(234),level:On(263),start:t=>t.indexOf(On(224)),tokenizer(t){const e=On;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[e(221)]()[e(235)](/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r[e(221)]()[e(238)]("*"),u=null===(s=l[3])||void 0===s?void 0:s.trim(),p=null===(i=l[4])||void 0===i?void 0:i[e(221)](),h=null===(o=l[5])||void 0===o?void 0:o[e(221)]();return{type:e(234),raw:l[0],id:u,name:p,text:h,ttype:t,typeName:null!==(a=Nn[t])&&void 0!==a?a:t,tokens:this[e(261)][e(223)](h),unnumbered:c}}},renderer(t){const e=On;var n;return e(260)+ae(t[e(259)])+e(230)+t.id+e(244)+t[e(254)]+e(236)+(t.unnumbered?"":" "+t[e(211)])+(t[e(233)]?e(249)+t[e(233)]+e(225):"")+e(248)+this[e(214)][e(258)](null!==(n=null==t?void 0:t[e(266)])&&void 0!==n?n:[])+"\n </section> \n</section>"}},Un=Wn;function Bn(){const t=[">>>",'<span class="tooltip-container">\n','<input type="checkbox" id=',"imageUrl","lexer","1893704mqCkor","</label>\n","472942etPzjZ","9IHYDBP",' class="tooltip-trigger">',"inlineTokens","286086UdmTzc","671397FZsMHW","indexOf",'"></span>\n',"990540oLEFcS","parser",'<span class="tooltip-title">',"raw","60740ZQrphz","</span>\n</span>\n","24cEtdJl","tokens","tooltip",'" alt="','<span class="tooltip-image"><img src="',"description",'<span class="tooltip-description">',"text","trim","inline","7zDoaXf","title",' class="tooltip-toggle">',"3598520ruGJRp","parseInline","<label for="];return(Bn=function(){return t})()}function Wn(t,e){return t-=144,Bn()[t]}!function(){const t=Wn,e=Bn();for(;;)try{if(146436==-parseInt(t(151))/1+-parseInt(t(147))/2+-parseInt(t(152))/3+parseInt(t(155))/4+-parseInt(t(159))/5*(-parseInt(t(161))/6)+-parseInt(t(171))/7*(-parseInt(t(145))/8)+-parseInt(t(148))/9*(-parseInt(t(174))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Hn=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</,Kn={name:Un(163),level:Un(170),start(t){const e=Un;return t[e(153)](e(177))},tokenizer(t){const e=Un,n=Hn.exec(t);if(n){const[t,r,s,i,o]=n,a="id-"+ne.md5(t);return{type:e(163),id:a,raw:t,title:s,text:r,imageUrl:o,description:{type:e(168),text:i,raw:i,tokens:this[e(144)].inline(i)},tokens:this[e(144)][e(150)](r[e(169)]())}}},renderer(t){const e=Un;var n;let r=e(178);return r+=e(179)+t.id+e(173),r+=e(176)+t.id+e(149)+this[e(156)][e(175)](null!==(n=t[e(162)])&&void 0!==n?n:[])+e(146),r+='<span class="tooltip">\n',t.imageUrl[e(169)]()&&(r+=e(165)+t[e(180)].trim()+e(164)+t[e(172)].trim()+e(154)),t.title[e(169)]()&&(r+=e(157)+t[e(172)][e(169)]()+"</span>\n"),t[e(166)][e(158)].trim()&&(r+=e(167)+this[e(156)][e(175)]([t[e(166)]])+"</span>\n"),r+=e(160),r}},Gn=tr;function Jn(t){const e=tr;return t[e(488)](/\s*<\s*/g,e(485))[e(488)](/\s*>\s*/g,e(498))}function Yn(){const t=["inlineMath",'<p class="paragraph">'," \\gt ","8bMzokW","blockMath","text","7190348OYDCzV","2897766CBWbbr","inlineMath2","match","5969442niWEDu","</p>\n","inline","14538132ZLNGSt","25096Ffxvck"," \\lt ","blockMath2","3096989NpAlQj","replace","5PoJJlL","indexOf","block","14848390IltGLE","126QwBrST","exec","33CRjcRO"];return(Yn=function(){return t})()}!function(){const t=tr,e=Yn();for(;;)try{if(978936==-parseInt(t(484))/1*(parseInt(t(493))/2)+parseInt(t(503))/3+-parseInt(t(502))/4+parseInt(t(489))/5*(parseInt(t(480))/6)+-parseInt(t(487))/7*(parseInt(t(499))/8)+-parseInt(t(483))/9+-parseInt(t(492))/10*(-parseInt(t(495))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Vn={name:Gn(496),level:Gn(482),start:t=>t.indexOf("$"),tokenizer(t){const e=Gn,n=/^\$(?:[^$]|\\\$)+\$(?!\$)/[e(494)](t);if(n)return{type:e(496),raw:n[0],text:n[0]}},renderer:t=>Jn(t[Gn(501)])},Xn={name:Gn(504),level:"inline",start:t=>t[Gn(490)]("\\("),tokenizer(t){const e=Gn,n=t[e(505)](/^\\\(.*?\\\)/);if(n)return{type:e(504),raw:n[0],text:n[0]}},renderer:t=>Jn(t[Gn(501)])},Qn={name:Gn(500),level:Gn(491),start:t=>t[Gn(490)]("$$"),tokenizer(t){const e=Gn,n=t[e(505)](/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(n)return{type:e(500),raw:n[0],text:n[0].trim()}},renderer(t){const e=Gn;return e(497)+Jn(t[e(501)])+e(481)}};function tr(t,e){return t-=480,Yn()[t]}const er={name:Gn(486),level:Gn(491),start:t=>t[Gn(490)]("\\["),tokenizer(t){const e=Gn,n=t.match(/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:e(486),raw:n[0],text:n[0].trim()}},renderer(t){const e=Gn;return e(497)+Jn(t[e(501)])+e(481)}};function nr(t,e){return t-=317,rr()[t]}function rr(){var t=["1988112NiwPvi","1535340cmkvbt","28nqLCnI","10702242RerMEx","2114916pXQVFC","66bwGdae","401616xulMeL","4091619ufpfIX","22982bgvqkL"];return(rr=function(){return t})()}function sr(t,e){return t-=409,ir()[t]}function ir(){const t=["20101HhHumP","height:","333viOeju","replaceAll","width:","image","54kkAHoc","title","2035790fprrpi","2433987tYiLOc","isArray",'" alt="',"px;","href","765820fzgXqq",' title="',"text",'<img src="',"2882780ZrpjoZ","1631QIsqCi","tokens","199112FESMuo","11436YiuOXf"];return(ir=function(){return t})()}function or(t,e){return t-=230,lr()[t]}!function(){for(var t=nr,e=rr();;)try{if(741060==parseInt(t(319))/1*(-parseInt(t(322))/2)+parseInt(t(321))/3+parseInt(t(318))/4+-parseInt(t(324))/5+parseInt(t(323))/6*(-parseInt(t(325))/7)+parseInt(t(320))/8+parseInt(t(317))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=sr,e=ir();for(;;)try{if(493046==parseInt(t(424))/1*(parseInt(t(430))/2)+parseInt(t(410))/3+-parseInt(t(415))/4+parseInt(t(409))/5+parseInt(t(423))/6*(-parseInt(t(420))/7)+-parseInt(t(422))/8*(parseInt(t(426))/9)+parseInt(t(419))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=or,e=lr();for(;;)try{if(942905==parseInt(t(232))/1*(-parseInt(t(239))/2)+-parseInt(t(245))/3*(parseInt(t(254))/4)+-parseInt(t(241))/5*(parseInt(t(257))/6)+-parseInt(t(244))/7*(parseInt(t(235))/8)+-parseInt(t(248))/9+-parseInt(t(250))/10+parseInt(t(234))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ar=t=>{const e=or;Ft(e(243)),Jt()||(typeof process!==e(240)&&null!=process[e(230)]&&null!=process[e(230)][e(253)]?console[e(251)](e(238)+"For commercial use, please configure a license using configureLicense(). "+e(237)+e(236)):console[e(251)](e(247)+e(256)+e(246)));const n=new Date,r=new vt;r[e(231)]({extensions:[Vn,Xn],tokenizer:Object[e(249)]({},Xe),renderer:Object[e(249)]({},de)});const s=r[e(252)][e(255)](t,r[e(233)]),i=r[e(242)](t),o=new Date;let a=function(t,e){const n=sr;let r=t;for(const t of e){const e=se(t[n(414)]);if(null===e)continue;let s=n(418)+e+n(412)+t.text+'"';if(t[n(431)]){const{text:e,width:r,height:i}=le(t[n(431)]);e&&(s+=' title="'+e+'"'),(r||i)&&(s+=' style="',r&&(s+=n(428)+r+"px;"),i&&(s+=n(425)+i+n(413)),s+='"')}s+=">";const i='<img src="'+e+'" alt="'+t[n(417)]+'"'+(t[n(431)]?n(416)+t[n(431)]+'"':"")+">";r=r[n(427)](i,s)}return r}(i,function t(e){const n=sr,r=[];for(const s of e)s.type===n(429)&&r.push(s),"tokens"in s&&Array[n(411)](s.tokens)&&r.push(...t(s[n(421)]));return r}(s));const l=Ut();return l&&(a=l+a),{parsed:a,lexed:s,time:o.getTime()-n.getTime()}};function lr(){const t=["956OoCFiH","lexInline","For commercial use in Node.js, please configure a license using configureLicense(). ","1218054wmGseF","versions","use","1315ekOoUv","defaults","62778584lhnrOS","8iFMqTP","Browser usage does not require a license.","Contact charles@mathcrowd.cn for commercial licensing. ","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","1238ZFeaju","undefined","5NlmtcV","parseInline","renderMarkdownCompact","9098551DTAVMf","7341kzvOtJ","Contact charles@mathcrowd.cn for commercial licensing.","[mmarked] ℹ️ Running in browser environment, no license required. ","7213293VXYSgm","assign","10611420ePPNWW","warn","Lexer","node"];return(lr=function(){return t})()}function cr(t,e){return t-=477,pr()[t]}!function(){const t=cr,e=pr();for(;;)try{if(576097==parseInt(t(491))/1*(-parseInt(t(499))/2)+-parseInt(t(478))/3*(parseInt(t(480))/4)+-parseInt(t(482))/5+-parseInt(t(498))/6*(parseInt(t(483))/7)+-parseInt(t(492))/8+parseInt(t(493))/9*(-parseInt(t(502))/10)+parseInt(t(485))/11*(parseInt(t(489))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ur=t=>{const e=cr;Ft(e(490)),Jt()||(typeof process!==e(481)&&null!=process[e(488)]&&null!=process[e(488)][e(494)]?console[e(501)](e(500)+e(477)+"Contact charles@mathcrowd.cn for commercial licensing. "+e(484)):console[e(501)](e(497)+e(495)+e(486)));const n={renderer:Object[e(487)](Object[e(487)]({},fe),de),tokenizer:Object[e(487)]({},Xe),useNewRenderer:!0,gfm:!0,extensions:[Vn,Xn,Qn,er,An,jn,Fn,Mn,En,sn,$n,Kn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=On,n={[Zn[e(242)]]:0,[Zn[e(256)]]:0,[Zn[e(232)]]:0,[Zn[e(247)]]:0,[Zn[e(253)]]:0,[Zn.Example]:0},r={};return function t(s){const i=e;s[i(217)](e=>{const s=i;e.type===s(234)&&(e[s(259)]in n?n[e[s(259)]]=n[e[s(259)]]+1:n[e[s(259)]]=1,e.number=e[s(227)]?"":n[e[s(259)]],r[e.id]={typeName:e[s(254)],number:e[s(211)]}),e[s(266)]&&e.tokens.length>0&&t(e[s(266)])})}(t),function t(e){e.forEach(e=>{const n=Dn;e[n(240)]===n(239)&&e.id in r&&(e[n(211)]=r[e.id][n(211)],e[n(254)]=r[e.id][n(254)]),e[n(240)]===n(243)&&e[n(237)][n(217)](e=>{const r=n;e.tokens&&e[r(266)][r(220)]>0&&t(e[r(266)])}),e[n(266)]&&e[n(266)].length>0&&t(e[n(266)])})}(t),t})(zn(t)),postprocess:t=>(t=>{const e=vn,n=[];return t=t[e(514)](/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,r)=>(n[e(535)]({key:parseInt(r),content:t}),"")),n[e(502)]((t,n)=>t.key-n[e(531)]),t=t[e(514)](/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(529)]>0&&(t+=e(527)+n[e(506)](t=>t[e(496)])[e(537)]("")+e(518)),t})(t)}};xn[e(496)](n);const r=new Date,s=zn(xn.lexer(t));let i=xn.parse(t);const o=new Date,a=Ut();return a&&(i=a+i),{parsed:i,lexed:s,time:o[e(479)]()-r.getTime()}};function pr(){const t=["5192hLdcJa","Contact charles@mathcrowd.cn for commercial licensing.","assign","versions","119916qozUnv","renderMarkdown","811724foePNs","7704568fIRDqY","7083khsJcP","node","For commercial use in Node.js, please configure a license using configureLicense(). ","use","[mmarked] ℹ️ Running in browser environment, no license required. ","24USNKaT","2jiZvLV","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","warn","1600kNtqae","For commercial use, please configure a license using configureLicense(). ","189027gdzKYV","getTime","60kYGUjW","undefined","3078785LSPsai","1188236lkgRaJ","Browser usage does not require a license."];return(pr=function(){return t})()}function hr(){var t=["2tpjgYe","4903645oRKNpW","1393iYvTiD","40bYDsNE","11497156jriUiv","5256357muqrqv","12952704rahzXo","49758hZjlvM","777906PcJgVE","4DuojNc","14935914zCotSi"];return(hr=function(){return t})()}function fr(t,e){return t-=348,hr()[t]}function dr(t,e){return t-=148,gr()[t]}function gr(){const t=["6110IurVLY","2291768TKcnKq","348470KIxDsx","147105mmhkgF","\\unicode{x25B1}","695092kmFKyH","3915468XxJZOC","567924TqNCGF","body","innerHTML","417IdDyhE","none","render","document","error","24FxLXEN"];return(gr=function(){return t})()}!function(){for(var t=fr,e=hr();;)try{if(940723==parseInt(t(352))/1*(-parseInt(t(349))/2)+-parseInt(t(357))/3*(parseInt(t(350))/4)+parseInt(t(353))/5+parseInt(t(348))/6*(-parseInt(t(354))/7)+parseInt(t(358))/8+-parseInt(t(351))/9+-parseInt(t(355))/10*(-parseInt(t(356))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=dr,e=gr();for(;;)try{if(221644==parseInt(t(162))/1+-parseInt(t(159))/2*(-parseInt(t(153))/3)+parseInt(t(148))/4+-parseInt(t(161))/5*(-parseInt(t(158))/6)+-parseInt(t(150))/7+-parseInt(t(160))/8+-parseInt(t(149))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const mr=t=>{const e=dr;try{const n=a({fontSize:13});l(n);const r=new u({packages:c,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:e(163)}}),s=new h({fontCache:e(154)}),i=p.document(t,{InputJax:r,OutputJax:s});return i[e(155)](),n[e(152)](n[e(151)](i[e(156)]))}catch(n){return console[e(157)](n),t}};function kr(){var t=["278HEPYQI","645606IKAalW","99UDFwvn","2961BSaNrO","2040997jRZNET","1961328xgWzny","4jJOahD","3785780hpuWVm","898648UNVyGk","1952770xlIMGq"];return(kr=function(){return t})()}function br(t,e){return t-=466,kr()[t]}function xr(){var t=["672286UeIxei","7Fuwoim","1TSyKpM","380400oeABtn","5892944lvwPdy","2227107UQrQvV","3577506wVhWmr","162rCYlmA","2226720caChLi","6558100WPhOtC"];return(xr=function(){return t})()}function Ir(t,e){return t-=186,xr()[t]}!function(){for(var t=br,e=kr();;)try{if(460444==-parseInt(t(473))/1+parseInt(t(472))/2*(-parseInt(t(475))/3)+parseInt(t(468))/4*(-parseInt(t(469))/5)+-parseInt(t(467))/6+parseInt(t(466))/7+-parseInt(t(470))/8+-parseInt(t(474))/9*(-parseInt(t(471))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=Ir,e=xr();;)try{if(757713==-parseInt(t(189))/1*(parseInt(t(187))/2)+parseInt(t(192))/3+parseInt(t(191))/4+-parseInt(t(186))/5+parseInt(t(193))/6*(parseInt(t(188))/7)+parseInt(t(195))/8+parseInt(t(194))/9*(-parseInt(t(190))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{Tt as UNLICENSED_WARNING_INTERVAL,Yt as clearValidationCache,Wt as configureLicense,Ht as getLicenseConfig,Ut as getWarningIfNeeded,Jt as isLicensed,ur as renderMarkdown,ar as renderMarkdownCompact,Vt as resetUsageStats,Pt as setUnlicensedWarningInterval,mr as tex2svg,Ft as trackFunctionCall,Gt 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.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A customized markdown parser/renderer with tex2svg.",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.mjs",