'+(n?e:U(e,!0))+`
`:""+(n?e:U(e,!0))+`
`}blockquote(e){return`${e}`}html(e){return e}heading(e,t,n,l){if(this.options.headerIds){const r=this.options.headerPrefix+l.slug(n);return`
${e}
`}table(e,t){return t&&(t=`${t}`),`${e}
`}br(){return this.options.xhtml?"An error occurred:
"+U(l.message+"",!0)+"";throw l}try{const l=ee.lex(i,e);if(e.walkTokens){if(e.async)return Promise.all(V.walkTokens(l,e.walkTokens)).then(()=>Y.parse(l,e)).catch(n);V.walkTokens(l,e.walkTokens)}return Y.parse(l,e)}catch(l){n(l)}}V.options=V.setOptions=function(i){return X(V.defaults,i),hn(V.defaults),V},V.getDefaults=ct,V.defaults=ae,V.use=function(...i){const e=V.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const n=X({},t);if(n.async=V.defaults.async||n.async,t.extensions&&(t.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if(l.renderer){const r=e.renderers[l.name];r?e.renderers[l.name]=function(...s){let a=l.renderer.apply(this,s);return a===!1&&(a=r.apply(this,s)),a}:e.renderers[l.name]=l.renderer}if(l.tokenizer){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[l.level]?e[l.level].unshift(l.tokenizer):e[l.level]=[l.tokenizer],l.start&&(l.level==="block"?e.startBlock?e.startBlock.push(l.start):e.startBlock=[l.start]:l.level==="inline"&&(e.startInline?e.startInline.push(l.start):e.startInline=[l.start]))}l.childTokens&&(e.childTokens[l.name]=l.childTokens)}),n.extensions=e),t.renderer){const l=V.defaults.renderer||new Pe;for(const r in t.renderer){const s=l[r];l[r]=(...a)=>{let u=t.renderer[r].apply(l,a);return u===!1&&(u=s.apply(l,a)),u}}n.renderer=l}if(t.tokenizer){const l=V.defaults.tokenizer||new He;for(const r in t.tokenizer){const s=l[r];l[r]=(...a)=>{let u=t.tokenizer[r].apply(l,a);return u===!1&&(u=s.apply(l,a)),u}}n.tokenizer=l}if(t.walkTokens){const l=V.defaults.walkTokens;n.walkTokens=function(r){let s=[];return s.push(t.walkTokens.call(this,r)),l&&(s=s.concat(l.call(this,r))),s}}V.setOptions(n)})},V.walkTokens=function(i,e){let t=[];for(const n of i)switch(t=t.concat(e.call(V,n)),n.type){case"table":{for(const l of n.header)t=t.concat(V.walkTokens(l.tokens,e));for(const l of n.rows)for(const r of l)t=t.concat(V.walkTokens(r.tokens,e));break}case"list":{t=t.concat(V.walkTokens(n.items,e));break}default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[n.type]?V.defaults.extensions.childTokens[n.type].forEach(function(l){t=t.concat(V.walkTokens(n[l],e))}):n.tokens&&(t=t.concat(V.walkTokens(n.tokens,e)))}return t},V.parseInline=function(i,e){if(typeof i=="undefined"||i===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");e=X({},V.defaults,e||{}),gt(e);try{const t=ee.lexInline(i,e);return e.walkTokens&&V.walkTokens(t,e.walkTokens),Y.parseInline(t,e)}catch(t){if(t.message+=` Please report this to https://github.com/markedjs/marked.`,e.silent)return"
An error occurred:
"+U(t.message+"",!0)+"";throw t}},V.Parser=Y,V.parser=Y.parse,V.Renderer=Pe,V.TextRenderer=wt,V.Lexer=ee,V.lexer=ee.lex,V.Tokenizer=He,V.Slugger=xt,V.parse=V,Y.parse,ee.lex;var Nn=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n
${l}
`}else return`${t.text}
`}}},inline(i,e){return{name:"KaTexInlineExtension",level:"inline",start:t=>{var n;return(n=t.match(/\$[^\n]*/))==null?void 0:n.index},tokenizer(t){if(/^\$[^\n]*\$/.test(t)){const n=et(t);return{type:"KaTexInlineExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(t){const n=e||typeof window!="undefined"&&window.katex;if(n){const l=n.renderToString(t.text,{throwOnError:!1});return`${l}`}else return`${t.text}`}}}};const St=["abstract","attention","bug","caution","danger","error","example","failure","hint","info","note","question","quote","success","tip","warning"],Oe=new RegExp(`^!!!\\s+(${St.join("|")})\\s+(.*)$`),Pn=/^!!!\s*$/,On={name:"alert",level:"block",start(i){var t;return(t=i.match(new RegExp(`(^|[\\r\\n])!!!\\s+(${St.join("|")})\\s+(.*)`)))==null?void 0:t.index},tokenizer(i){const e=i.split(/\n/);if(Oe.test(e[0])){const t={x:-1,y:-1},n=[];for(let l=0,r=e.length;l${this.parser.parseInline(i.titleTokens,null)}
${this.parser.parse(i.tokens)}${w}
`,`${R}
`}catch(R){return`Error: ${(R==null?void 0:R.message)||""}
`}}return E.call(y,w,$,F)},y.image=(w,$,F)=>``,y.listitem=(w,$)=>$?`