-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-NV53ZGLB.js
46 lines (46 loc) · 40.5 KB
/
chunk-NV53ZGLB.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import{m as re,s as le}from"./chunk-KUIU3T4D.js";import{Db as ee,Eb as te,Fb as ne,Ma as W,Ra as X,Sa as V,V as G,_ as K,db as J,fc as ie,gc as se,k as L,o as Q,ub as Y,w as N,y as F}from"./chunk-GR3MIE2K.js";import{a as w,b as R}from"./chunk-4CLCTAJ7.js";function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!1,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!1,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var S=H();function ue(o){S=o}var ge=/[&<>"']/,me=new RegExp(ge.source,"g"),fe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xe=new RegExp(fe.source,"g"),be={"&":"&","<":"<",">":">",'"':""","'":"'"},oe=o=>be[o];function y(o,n){if(n){if(ge.test(o))return o.replace(me,oe)}else if(fe.test(o))return o.replace(xe,oe);return o}var we=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function de(o){return o.replace(we,(n,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}var ye=/(^|[^\[])\^/g;function m(o,n){o=typeof o=="string"?o:o.source,n=n||"";let t={replace:(e,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(ye,"$1"),o=o.replace(e,i),t),getRegex:()=>new RegExp(o,n)};return t}var _e=/[^\w:]/g,$e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ae(o,n,t){if(o){let e;try{e=decodeURIComponent(de(t)).replace(_e,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}n&&!$e.test(t)&&(t=Re(n,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}var P={},ze=/^[^:]+:\/*[^/]*$/,Te=/^([^:]+:)[\s\S]*$/,Se=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Re(o,n){P[" "+o]||(ze.test(o)?P[" "+o]=o+"/":P[" "+o]=j(o,"/",!0)),o=P[" "+o];let t=o.indexOf(":")===-1;return n.substring(0,2)==="//"?t?n:o.replace(Te,"$1")+n:n.charAt(0)==="/"?t?n:o.replace(Se,"$1")+n:o+n}var D={exec:()=>null};function ce(o,n){let t=o.replace(/\|/g,(s,r,l)=>{let a=!1,p=r;for(;--p>=0&&l[p]==="\\";)a=!a;return a?"|":" |"}),e=t.split(/ \|/),i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),n)if(e.length>n)e.splice(n);else for(;e.length<n;)e.push("");for(;i<e.length;i++)e[i]=e[i].trim().replace(/\\\|/g,"|");return e}function j(o,n,t){let e=o.length;if(e===0)return"";let i=0;for(;i<e;){let s=o.charAt(e-i-1);if(s===n&&!t)i++;else if(s!==n&&t)i++;else break}return o.slice(0,e-i)}function Ie(o,n){if(o.indexOf(n[1])===-1)return-1;let t=0;for(let e=0;e<o.length;e++)if(o[e]==="\\")e++;else if(o[e]===n[0])t++;else if(o[e]===n[1]&&(t--,t<0))return e;return-1}function Ae(o,n){!o||o.silent||(n&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(o.sanitize||o.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(o.highlight||o.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),o.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),o.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),o.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),o.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(o.headerIds||o.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function he(o,n,t,e){let i=n.href,s=n.title?y(n.title):null,r=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){e.state.inLink=!0;let l={type:"link",raw:t,href:i,title:s,text:r,tokens:e.inlineTokens(r)};return e.state.inLink=!1,l}return{type:"image",raw:t,href:i,title:s,text:y(r)}}function ve(o,n){let t=o.match(/^(\s+)(?:```)/);if(t===null)return n;let e=t[1];return n.split(`
`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[r]=s;return r.length>=e.length?i.slice(e.length):i}).join(`
`)}var A=class{options;rules;lexer;constructor(n){this.options=n||S}space(n){let t=this.rules.block.newline.exec(n);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(n){let t=this.rules.block.code.exec(n);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:j(e,`
`)}}}fences(n){let t=this.rules.block.fences.exec(n);if(t){let e=t[0],i=ve(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(n){let t=this.rules.block.heading.exec(n);if(t){let e=t[2].trim();if(/#$/.test(e)){let i=j(e,"#");(this.options.pedantic||!i||/ $/.test(i))&&(e=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(n){let t=this.rules.block.hr.exec(n);if(t)return{type:"hr",raw:t[0]}}blockquote(n){let t=this.rules.block.blockquote.exec(n);if(t){let e=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(n){let t=this.rules.block.list.exec(n);if(t){let e=t[1].trim(),i=e.length>1,s={type:"list",raw:"",ordered:i,start:i?+e.slice(0,-1):"",loose:!1,items:[]};e=i?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=i?e:"[*+-]");let r=new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),l="",a="",p=!1;for(;n;){let h=!1;if(!(t=r.exec(n))||this.rules.block.hr.test(n))break;l=t[0],n=n.substring(l.length);let f=t[2].split(`
`,1)[0].replace(/^\t+/,Z=>" ".repeat(3*Z.length)),u=n.split(`
`,1)[0],k=0;this.options.pedantic?(k=2,a=f.trimLeft()):(k=t[2].search(/[^ ]/),k=k>4?1:k,a=f.slice(k),k+=t[1].length);let x=!1;if(!f&&/^ *$/.test(u)&&(l+=u+`
`,n=n.substring(u.length+1),h=!0),!h){let Z=new RegExp(`^ {0,${Math.min(3,k-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),O=new RegExp(`^ {0,${Math.min(3,k-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),U=new RegExp(`^ {0,${Math.min(3,k-1)}}(?:\`\`\`|~~~)`),M=new RegExp(`^ {0,${Math.min(3,k-1)}}#`);for(;n;){let q=n.split(`
`,1)[0];if(u=q,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),U.test(u)||M.test(u)||Z.test(u)||O.test(n))break;if(u.search(/[^ ]/)>=k||!u.trim())a+=`
`+u.slice(k);else{if(x||f.search(/[^ ]/)>=4||U.test(f)||M.test(f)||O.test(f))break;a+=`
`+u}!x&&!u.trim()&&(x=!0),l+=q+`
`,n=n.substring(q.length+1),f=u.slice(k)}}s.loose||(p?s.loose=!0:/\n *\n *$/.test(l)&&(p=!0));let b=null,_;this.options.gfm&&(b=/^\[[ xX]\] /.exec(a),b&&(_=b[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:l,task:!!b,checked:_,loose:!1,text:a,tokens:[]}),s.raw+=l}s.items[s.items.length-1].raw=l.trimRight(),s.items[s.items.length-1].text=a.trimRight(),s.raw=s.raw.trimRight();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let f=s.items[h].tokens.filter(k=>k.type==="space"),u=f.length>0&&f.some(k=>/\n.*\n/.test(k.raw));s.loose=u}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(n){let t=this.rules.block.html.exec(n);if(t){let e={type:"html",block:!0,raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){let i=this.options.sanitizer?this.options.sanitizer(t[0]):y(t[0]),s=e;s.type="paragraph",s.text=i,s.tokens=this.lexer.inline(i)}return e}}def(n){let t=this.rules.block.def.exec(n);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:s}}}table(n){let t=this.rules.block.table.exec(n);if(t){let e={type:"table",raw:t[0],header:ce(t[1]).map(i=>({text:i,tokens:[]})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(e.header.length===e.align.length){let i=e.align.length,s,r,l,a;for(s=0;s<i;s++){let p=e.align[s];p&&(/^ *-+: *$/.test(p)?e.align[s]="right":/^ *:-+: *$/.test(p)?e.align[s]="center":/^ *:-+ *$/.test(p)?e.align[s]="left":e.align[s]=null)}for(i=e.rows.length,s=0;s<i;s++)e.rows[s]=ce(e.rows[s],e.header.length).map(p=>({text:p,tokens:[]}));for(i=e.header.length,r=0;r<i;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(i=e.rows.length,r=0;r<i;r++)for(a=e.rows[r],l=0;l<a.length;l++)a[l].tokens=this.lexer.inline(a[l].text);return e}}}lheading(n){let t=this.rules.block.lheading.exec(n);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(n){let t=this.rules.block.paragraph.exec(n);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(n){let t=this.rules.block.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(n){let t=this.rules.inline.escape.exec(n);if(t)return{type:"escape",raw:t[0],text:y(t[1])}}tag(n){let t=this.rules.inline.tag.exec(n);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):y(t[0]):t[0]}}link(n){let t=this.rules.inline.link.exec(n);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let r=j(e.slice(0,-1),"\\");if((e.length-r.length)%2===0)return}else{let r=Ie(t[2],"()");if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){let r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);r&&(i=r[1],s=r[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(e)?i=i.slice(1):i=i.slice(1,-1)),he(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(n,t){let e;if((e=this.rules.inline.reflink.exec(n))||(e=this.rules.inline.nolink.exec(n))){let i=(e[2]||e[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){let s=e[0].charAt(0);return{type:"text",raw:s,text:s}}return he(e,i,e[0],this.lexer)}}emStrong(n,t,e=""){let i=this.rules.inline.emStrong.lDelim.exec(n);if(!i||i[3]&&e.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!e||this.rules.inline.punctuation.exec(e)){let r=[...i[0]].length-1,l,a,p=r,h=0,f=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(f.lastIndex=0,t=t.slice(-1*n.length+r);(i=f.exec(t))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(a=[...l].length,i[3]||i[4]){p+=a;continue}else if((i[5]||i[6])&&r%3&&!((r+a)%3)){h+=a;continue}if(p-=a,p>0)continue;a=Math.min(a,a+p+h);let u=[...n].slice(0,r+i.index+a+1).join("");if(Math.min(r,a)%2){let x=u.slice(1,-1);return{type:"em",raw:u,text:x,tokens:this.lexer.inlineTokens(x)}}let k=u.slice(2,-2);return{type:"strong",raw:u,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(n){let t=this.rules.inline.code.exec(n);if(t){let e=t[2].replace(/\n/g," "),i=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return i&&s&&(e=e.substring(1,e.length-1)),e=y(e,!0),{type:"codespan",raw:t[0],text:e}}}br(n){let t=this.rules.inline.br.exec(n);if(t)return{type:"br",raw:t[0]}}del(n){let t=this.rules.inline.del.exec(n);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(n,t){let e=this.rules.inline.autolink.exec(n);if(e){let i,s;return e[2]==="@"?(i=y(this.options.mangle?t(e[1]):e[1]),s="mailto:"+i):(i=y(e[1]),s=i),{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(n,t){let e;if(e=this.rules.inline.url.exec(n)){let i,s;if(e[2]==="@")i=y(this.options.mangle?t(e[0]):e[0]),s="mailto:"+i;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])[0];while(r!==e[0]);i=y(e[0]),e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n,t){let e=this.rules.inline.text.exec(n);if(e){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):y(e[0]):e[0]:i=y(this.options.smartypants?t(e[0]):e[0]),{type:"text",raw:e[0],text:i}}}},g={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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 *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:D,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};g._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;g._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;g.def=m(g.def).replace("label",g._label).replace("title",g._title).getRegex();g.bullet=/(?:[*+-]|\d{1,9}[.)])/;g.listItemStart=m(/^( *)(bull) */).replace("bull",g.bullet).getRegex();g.list=m(g.list).replace(/bull/g,g.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+g.def.source+")").getRegex();g._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";g._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;g.html=m(g.html,"i").replace("comment",g._comment).replace("tag",g._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();g.lheading=m(g.lheading).replace(/bull/g,g.bullet).getRegex();g.paragraph=m(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").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",g._tag).getRegex();g.blockquote=m(g.blockquote).replace("paragraph",g.paragraph).getRegex();g.normal=w({},g);g.gfm=R(w({},g.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});g.gfm.table=m(g.gfm.table).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",g._tag).getRegex();g.gfm.paragraph=m(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",g.gfm.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",g._tag).getRegex();g.pedantic=R(w({},g.normal),{html:m(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",g._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:D,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(g.normal._paragraph).replace("hr",g.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",g.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var c={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:D,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^((?![*_])[\spunctuation])/};c._punctuation="\\p{P}$+<=>`^|~";c.punctuation=m(c.punctuation,"u").replace(/punctuation/g,c._punctuation).getRegex();c.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;c.anyPunctuation=/\\[punct]/g;c._escapes=/\\([punct])/g;c._comment=m(g._comment).replace("(?:-->|$)","-->").getRegex();c.emStrong.lDelim=m(c.emStrong.lDelim,"u").replace(/punct/g,c._punctuation).getRegex();c.emStrong.rDelimAst=m(c.emStrong.rDelimAst,"gu").replace(/punct/g,c._punctuation).getRegex();c.emStrong.rDelimUnd=m(c.emStrong.rDelimUnd,"gu").replace(/punct/g,c._punctuation).getRegex();c.anyPunctuation=m(c.anyPunctuation,"gu").replace(/punct/g,c._punctuation).getRegex();c._escapes=m(c._escapes,"gu").replace(/punct/g,c._punctuation).getRegex();c._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;c._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])?)+(?![-_])/;c.autolink=m(c.autolink).replace("scheme",c._scheme).replace("email",c._email).getRegex();c._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;c.tag=m(c.tag).replace("comment",c._comment).replace("attribute",c._attribute).getRegex();c._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;c._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;c._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;c.link=m(c.link).replace("label",c._label).replace("href",c._href).replace("title",c._title).getRegex();c.reflink=m(c.reflink).replace("label",c._label).replace("ref",g._label).getRegex();c.nolink=m(c.nolink).replace("ref",g._label).getRegex();c.reflinkSearch=m(c.reflinkSearch,"g").replace("reflink",c.reflink).replace("nolink",c.nolink).getRegex();c.normal=w({},c);c.pedantic=R(w({},c.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",c._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c._label).getRegex()});c.gfm=R(w({},c.normal),{escape:m(c.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});c.gfm.url=m(c.gfm.url,"i").replace("email",c.gfm._extended_email).getRegex();c.breaks=R(w({},c.gfm),{br:m(c.br).replace("{2,}","*").getRegex(),text:m(c.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function Ce(o){return o.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function pe(o){let n="";for(let t=0;t<o.length;t++){let e=Math.random()>.5?"x"+o.charCodeAt(t).toString(16):o.charCodeAt(t).toString();n+="&#"+e+";"}return n}var $=class o{tokens;options;state;tokenizer;inlineQueue;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||S,this.options.tokenizer=this.options.tokenizer||new A,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 t={block:g.normal,inline:c.normal};this.options.pedantic?(t.block=g.pedantic,t.inline=c.pedantic):this.options.gfm&&(t.block=g.gfm,this.options.breaks?t.inline=c.breaks:t.inline=c.gfm),this.tokenizer.rules=t}static get rules(){return{block:g,inline:c}}static lex(n,t){return new o(t).lex(n)}static lexInline(n,t){return new o(t).inlineTokens(n)}lex(n){n=n.replace(/\r\n|\r/g,`
`),this.blockTokens(n,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(n,t=[]){this.options.pedantic?n=n.replace(/\t/g," ").replace(/^ +$/gm,""):n=n.replace(/^( *)(\t+)/gm,(l,a,p)=>a+" ".repeat(p.length));let e,i,s,r;for(;n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(e=l.call({lexer:this},n,t))?(n=n.substring(e.raw.length),t.push(e),!0):!1))){if(e=this.tokenizer.space(n)){n=n.substring(e.raw.length),e.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(e);continue}if(e=this.tokenizer.code(n)){n=n.substring(e.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+e.raw,i.text+=`
`+e.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(e);continue}if(e=this.tokenizer.fences(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.heading(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.hr(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.blockquote(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.list(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.html(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.def(n)){n=n.substring(e.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+e.raw,i.text+=`
`+e.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[e.tag]||(this.tokens.links[e.tag]={href:e.href,title:e.title});continue}if(e=this.tokenizer.table(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.lheading(n)){n=n.substring(e.raw.length),t.push(e);continue}if(s=n,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,a=n.slice(1),p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},a),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(s=n.substring(0,l+1))}if(this.state.top&&(e=this.tokenizer.paragraph(s))){i=t[t.length-1],r&&i.type==="paragraph"?(i.raw+=`
`+e.raw,i.text+=`
`+e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(e),r=s.length!==n.length,n=n.substring(e.raw.length);continue}if(e=this.tokenizer.text(n)){n=n.substring(e.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
`+e.raw,i.text+=`
`+e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(e);continue}if(n){let l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(n,t=[]){return this.inlineQueue.push({src:n,tokens:t}),t}inlineTokens(n,t=[]){let e,i,s,r=n,l,a,p;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)h.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,l.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;n;)if(a||(p=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(e=h.call({lexer:this},n,t))?(n=n.substring(e.raw.length),t.push(e),!0):!1))){if(e=this.tokenizer.escape(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.tag(n)){n=n.substring(e.raw.length),i=t[t.length-1],i&&e.type==="text"&&i.type==="text"?(i.raw+=e.raw,i.text+=e.text):t.push(e);continue}if(e=this.tokenizer.link(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(e.raw.length),i=t[t.length-1],i&&e.type==="text"&&i.type==="text"?(i.raw+=e.raw,i.text+=e.text):t.push(e);continue}if(e=this.tokenizer.emStrong(n,r,p)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.codespan(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.br(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.del(n)){n=n.substring(e.raw.length),t.push(e);continue}if(e=this.tokenizer.autolink(n,pe)){n=n.substring(e.raw.length),t.push(e);continue}if(!this.state.inLink&&(e=this.tokenizer.url(n,pe))){n=n.substring(e.raw.length),t.push(e);continue}if(s=n,this.options.extensions&&this.options.extensions.startInline){let h=1/0,f=n.slice(1),u;this.options.extensions.startInline.forEach(k=>{u=k.call({lexer:this},f),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(s=n.substring(0,h+1))}if(e=this.tokenizer.inlineText(s,Ce)){n=n.substring(e.raw.length),e.raw.slice(-1)!=="_"&&(p=e.raw.slice(-1)),a=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=e.raw,i.text+=e.text):t.push(e);continue}if(n){let h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return t}},v=class{options;constructor(n){this.options=n||S}code(n,t,e){let i=(t||"").match(/^\S*/)?.[0];if(this.options.highlight){let s=this.options.highlight(n,i);s!=null&&s!==n&&(e=!0,n=s)}return n=n.replace(/\n$/,"")+`
`,i?'<pre><code class="'+this.options.langPrefix+y(i)+'">'+(e?n:y(n,!0))+`</code></pre>
`:"<pre><code>"+(e?n:y(n,!0))+`</code></pre>
`}blockquote(n){return`<blockquote>
${n}</blockquote>
`}html(n,t){return n}heading(n,t,e,i){if(this.options.headerIds){let s=this.options.headerPrefix+i.slug(e);return`<h${t} id="${s}">${n}</h${t}>
`}return`<h${t}>${n}</h${t}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(n,t,e){let i=t?"ol":"ul",s=t&&e!==1?' start="'+e+'"':"";return"<"+i+s+`>
`+n+"</"+i+`>
`}listitem(n,t,e){return`<li>${n}</li>
`}checkbox(n){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(n){return`<p>${n}</p>
`}table(n,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+n+`</thead>
`+t+`</table>
`}tablerow(n){return`<tr>
${n}</tr>
`}tablecell(n,t){let e=t.header?"th":"td";return(t.align?`<${e} align="${t.align}">`:`<${e}>`)+n+`</${e}>
`}strong(n){return`<strong>${n}</strong>`}em(n){return`<em>${n}</em>`}codespan(n){return`<code>${n}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(n){return`<del>${n}</del>`}link(n,t,e){let i=ae(this.options.sanitize,this.options.baseUrl,n);if(i===null)return e;n=i;let s='<a href="'+n+'"';return t&&(s+=' title="'+t+'"'),s+=">"+e+"</a>",s}image(n,t,e){let i=ae(this.options.sanitize,this.options.baseUrl,n);if(i===null)return e;n=i;let s=`<img src="${n}" alt="${e}"`;return t&&(s+=` title="${t}"`),s+=this.options.xhtml?"/>":">",s}text(n){return n}},C=class{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,t,e){return""+e}image(n,t,e){return""+e}br(){return""}},E=class{seen;constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,t){let e=n,i=0;if(this.seen.hasOwnProperty(e)){i=this.seen[n];do i++,e=n+"-"+i;while(this.seen.hasOwnProperty(e))}return t||(this.seen[n]=i,this.seen[e]=0),e}slug(n,t={}){let e=this.serialize(n);return this.getNextSafeSlug(e,t.dryrun)}},z=class o{options;renderer;textRenderer;slugger;constructor(n){this.options=n||S,this.options.renderer=this.options.renderer||new v,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new C,this.slugger=new E}static parse(n,t){return new o(t).parse(n)}static parseInline(n,t){return new o(t).parseInline(n)}parse(n,t=!0){let e="";for(let i=0;i<n.length;i++){let s=n[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let r=s,l=this.options.extensions.renderers[r.type].call({parser:this},r);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){e+=l||"";continue}}switch(s.type){case"space":continue;case"hr":{e+=this.renderer.hr();continue}case"heading":{let r=s;e+=this.renderer.heading(this.parseInline(r.tokens),r.depth,de(this.parseInline(r.tokens,this.textRenderer)),this.slugger);continue}case"code":{let r=s;e+=this.renderer.code(r.text,r.lang,!!r.escaped);continue}case"table":{let r=s,l="",a="";for(let h=0;h<r.header.length;h++)a+=this.renderer.tablecell(this.parseInline(r.header[h].tokens),{header:!0,align:r.align[h]});l+=this.renderer.tablerow(a);let p="";for(let h=0;h<r.rows.length;h++){let f=r.rows[h];a="";for(let u=0;u<f.length;u++)a+=this.renderer.tablecell(this.parseInline(f[u].tokens),{header:!1,align:r.align[u]});p+=this.renderer.tablerow(a)}e+=this.renderer.table(l,p);continue}case"blockquote":{let r=s,l=this.parse(r.tokens);e+=this.renderer.blockquote(l);continue}case"list":{let r=s,l=r.ordered,a=r.start,p=r.loose,h="";for(let f=0;f<r.items.length;f++){let u=r.items[f],k=u.checked,x=u.task,b="";if(u.task){let _=this.renderer.checkbox(!!k);p?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=_+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=_+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:_}):b+=_}b+=this.parse(u.tokens,p),h+=this.renderer.listitem(b,x,!!k)}e+=this.renderer.list(h,l,a);continue}case"html":{let r=s;e+=this.renderer.html(r.text,r.block);continue}case"paragraph":{let r=s;e+=this.renderer.paragraph(this.parseInline(r.tokens));continue}case"text":{let r=s,l=r.tokens?this.parseInline(r.tokens):r.text;for(;i+1<n.length&&n[i+1].type==="text";)r=n[++i],l+=`
`+(r.tokens?this.parseInline(r.tokens):r.text);e+=t?this.renderer.paragraph(l):l;continue}default:{let r='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return e}parseInline(n,t){t=t||this.renderer;let e="";for(let i=0;i<n.length;i++){let s=n[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let r=this.options.extensions.renderers[s.type].call({parser:this},s);if(r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){e+=r||"";continue}}switch(s.type){case"escape":{let r=s;e+=t.text(r.text);break}case"html":{let r=s;e+=t.html(r.text);break}case"link":{let r=s;e+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break}case"image":{let r=s;e+=t.image(r.href,r.title,r.text);break}case"strong":{let r=s;e+=t.strong(this.parseInline(r.tokens,t));break}case"em":{let r=s;e+=t.em(this.parseInline(r.tokens,t));break}case"codespan":{let r=s;e+=t.codespan(r.text);break}case"br":{e+=t.br();break}case"del":{let r=s;e+=t.del(this.parseInline(r.tokens,t));break}case"text":{let r=s;e+=t.text(r.text);break}default:{let r='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return e}},I=class{options;constructor(n){this.options=n||S}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(n){return n}postprocess(n){return n}},B=class{defaults=H();options=this.setOptions;parse=this.#e($.lex,z.parse);parseInline=this.#e($.lexInline,z.parseInline);Parser=z;parser=z.parse;Renderer=v;TextRenderer=C;Lexer=$;lexer=$.lex;Tokenizer=A;Slugger=E;Hooks=I;constructor(...n){this.use(...n)}walkTokens(n,t){let e=[];for(let i of n)switch(e=e.concat(t.call(this,i)),i.type){case"table":{let s=i;for(let r of s.header)e=e.concat(this.walkTokens(r.tokens,t));for(let r of s.rows)for(let l of r)e=e.concat(this.walkTokens(l.tokens,t));break}case"list":{let s=i;e=e.concat(this.walkTokens(s.items,t));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(r=>{e=e.concat(this.walkTokens(s[r],t))}):s.tokens&&(e=e.concat(this.walkTokens(s.tokens,t)))}}return e}use(...n){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(e=>{let i=w({},e);if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let r=t.renderers[s.name];r?t.renderers[s.name]=function(...l){let a=s.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[s.level];r?r.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),i.extensions=t),e.renderer){let s=this.defaults.renderer||new v(this.defaults);for(let r in e.renderer){let l=e.renderer[r],a=r,p=s[a];s[a]=(...h)=>{let f=l.apply(s,h);return f===!1&&(f=p.apply(s,h)),f||""}}i.renderer=s}if(e.tokenizer){let s=this.defaults.tokenizer||new A(this.defaults);for(let r in e.tokenizer){let l=e.tokenizer[r],a=r,p=s[a];s[a]=(...h)=>{let f=l.apply(s,h);return f===!1&&(f=p.apply(s,h)),f}}i.tokenizer=s}if(e.hooks){let s=this.defaults.hooks||new I;for(let r in e.hooks){let l=e.hooks[r],a=r,p=s[a];I.passThroughHooks.has(r)?s[a]=h=>{if(this.defaults.async)return Promise.resolve(l.call(s,h)).then(u=>p.call(s,u));let f=l.call(s,h);return p.call(s,f)}:s[a]=(...h)=>{let f=l.apply(s,h);return f===!1&&(f=p.apply(s,h)),f}}i.hooks=s}if(e.walkTokens){let s=this.defaults.walkTokens,r=e.walkTokens;i.walkTokens=function(l){let a=[];return a.push(r.call(this,l)),s&&(a=a.concat(s.call(this,l))),a}}this.defaults=w(w({},this.defaults),i)}),this}setOptions(n){return this.defaults=w(w({},this.defaults),n),this}#e(n,t){return(e,i,s)=>{typeof i=="function"&&(s=i,i=null);let r=w({},i),l=w(w({},this.defaults),r);this.defaults.async===!0&&r.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);let a=this.#t(!!l.silent,!!l.async,s);if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(Ae(l,s),l.hooks&&(l.hooks.options=l),s){let p=s,h=l.highlight,f;try{l.hooks&&(e=l.hooks.preprocess(e)),f=n(e,l)}catch(x){return a(x)}let u=x=>{let b;if(!x)try{l.walkTokens&&this.walkTokens(f,l.walkTokens),b=t(f,l),l.hooks&&(b=l.hooks.postprocess(b))}catch(_){x=_}return l.highlight=h,x?a(x):p(null,b)};if(!h||h.length<3||(delete l.highlight,!f.length))return u();let k=0;this.walkTokens(f,x=>{x.type==="code"&&(k++,setTimeout(()=>{h(x.text,x.lang,(b,_)=>{if(b)return u(b);_!=null&&_!==x.text&&(x.text=_,x.escaped=!0),k--,k===0&&u()})},0))}),k===0&&u();return}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(e):e).then(p=>n(p,l)).then(p=>l.walkTokens?Promise.all(this.walkTokens(p,l.walkTokens)).then(()=>p):p).then(p=>t(p,l)).then(p=>l.hooks?l.hooks.postprocess(p):p).catch(a);try{l.hooks&&(e=l.hooks.preprocess(e));let p=n(e,l);l.walkTokens&&this.walkTokens(p,l.walkTokens);let h=t(p,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(p){return a(p)}}}#t(n,t,e){return i=>{if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+y(i.message+"",!0)+"</pre>";if(t)return Promise.resolve(s);if(e){e(null,s);return}return s}if(t)return Promise.reject(i);if(e){e(i);return}throw i}}},T=new B;function d(o,n,t){return T.parse(o,n,t)}d.options=d.setOptions=function(o){return T.setOptions(o),d.defaults=T.defaults,ue(d.defaults),d};d.getDefaults=H;d.defaults=S;d.use=function(...o){return T.use(...o),d.defaults=T.defaults,ue(d.defaults),d};d.walkTokens=function(o,n){return T.walkTokens(o,n)};d.parseInline=T.parseInline;d.Parser=z;d.parser=z.parse;d.Renderer=v;d.TextRenderer=C;d.Lexer=$;d.lexer=$.lex;d.Tokenizer=A;d.Slugger=E;d.Hooks=I;d.parse=d;var Pe=d.options,je=d.setOptions,De=d.use,Ze=d.walkTokens,qe=d.parseInline;var Be=z.parse,He=$.lex;var ke=(()=>{class o{constructor(t){this.http=t,this.url="https://raw.githubusercontent.com/angular-split/angular-split/refs/heads/main/projects/angular-split/CHANGELOG.md",this.cachedHtml="",d.setOptions({})}getHtml(){return this.cachedHtml!==""?L(this.cachedHtml):N(L("Loading.."),this.http.get(this.url,{responseType:"text"}).pipe(Q(t=>(this.cachedHtml=d(t),this.cachedHtml)),F(()=>L(`Error:<br>Unable to retrieve CHANGELOG.md from github..<br>Please go to <a href="${this.url}">${this.url}</a> to view it.`))))}static{this.\u0275fac=function(e){return new(e||o)(K(le))}}static{this.\u0275prov=G({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Xe=(()=>{class o{constructor(t){this.changelogService=t}ngOnInit(){this.changelogHtml$=this.changelogService.getHtml()}static{this.\u0275fac=function(e){return new(e||o)(V(ke))}}static{this.\u0275cmp=J({type:o,selectors:[["sp-ex-changelog"]],decls:3,vars:3,consts:[[1,"container"],[3,"innerHTML"]],template:function(e,i){e&1&&(ee(0,"div",0),ne(1,"div",1),ie(2,"async"),te()),e&2&&(X(),Y("innerHTML",se(2,1,i.changelogHtml$),W))},dependencies:[re],styles:["[_nghost-%COMP%]{display:block;width:100%;margin:50px 0}"]})}}return o})();export{Xe as ChangelogComponent};