opencami 1.8.7 → 1.8.9

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.
Files changed (84) hide show
  1. package/README.md +0 -1
  2. package/dist/client/assets/{CSPContext-KDlbpvjX.js → CSPContext-DI-5GAnQ.js} +1 -1
  3. package/dist/client/assets/{DirectionContext-DZNUWW6F.js → DirectionContext-CrIsc5n9.js} +1 -1
  4. package/dist/client/assets/_sessionKey-B4NZmxf3.js +21 -0
  5. package/dist/client/assets/agents-bptidK8z.js +2 -0
  6. package/dist/client/assets/agents-screen-6qdnPmx2.js +1 -0
  7. package/dist/client/assets/bots-BWpbaQ-E.js +2 -0
  8. package/dist/client/assets/{bots-screen-CvbAVMk0.js → bots-screen-BTKCOohV.js} +1 -1
  9. package/dist/client/assets/button-8ab4wOwy.js +1 -0
  10. package/dist/client/assets/{composite-t7Eu0qB0.js → composite-B2qsrzf3.js} +1 -1
  11. package/dist/client/assets/{connect-Btonx7l6.js → connect-B3_p7C4I.js} +1 -1
  12. package/dist/client/assets/dashboard-BtClHYpn.js +1 -0
  13. package/dist/client/assets/event-DG3RKJz8.js +1 -0
  14. package/dist/client/assets/file-explorer-screen-Djl8x-8P.js +1 -0
  15. package/dist/client/assets/files-CjbCJDgC.js +2 -0
  16. package/dist/client/assets/follow-up-suggestions-BSCMXRXh.js +5 -0
  17. package/dist/client/assets/{index-nheqha2z.js → index-BXiha-Vz.js} +1 -1
  18. package/dist/client/assets/{index-yPOt98v7.js → index-CtlYu8Ug.js} +1 -1
  19. package/dist/client/assets/keyboard-shortcuts-dialog-HAufCn9C.js +1 -0
  20. package/dist/client/assets/main-CQKtcNr3.js +210 -0
  21. package/dist/client/assets/markdown-DFJF-FsV.js +87 -0
  22. package/dist/client/assets/memory-DnJOmcwU.js +2 -0
  23. package/dist/client/assets/memory-screen-Bm4NMAnU.js +1 -0
  24. package/dist/client/assets/menu-D26Vmgxl.js +1 -0
  25. package/dist/client/assets/{opencami-logo-CoCA2JIf.js → opencami-logo-BSed2Wez.js} +1 -1
  26. package/dist/client/assets/popupStateMapping-DkI2OCkW.js +1 -0
  27. package/dist/client/assets/proxy-CHQ-VCN1.js +9 -0
  28. package/dist/client/assets/{react-DzPMbcP8.js → react-WkSlhZJd.js} +1 -1
  29. package/dist/client/assets/search-dialog-CCl4d0Pi.js +1 -0
  30. package/dist/client/assets/{search-sources-badge-DOd5AI-i.js → search-sources-badge-Du8KpUEb.js} +1 -1
  31. package/dist/client/assets/session-export-dialog-io9FvLKq.js +1 -0
  32. package/dist/client/assets/settings-dialog-B93qswor.js +1 -0
  33. package/dist/client/assets/skills-BNDGnHwM.js +2 -0
  34. package/dist/client/assets/{skills-panel-_M5k5dty.js → skills-panel-CVh1I-7D.js} +1 -1
  35. package/dist/client/assets/styles-Ce2xZzc4.css +1 -0
  36. package/dist/client/assets/switch-CSnzINDW.js +1 -0
  37. package/dist/client/assets/tabs-CWfn44FL.js +1 -0
  38. package/dist/client/assets/thinking-BmoLlbFC.js +1 -0
  39. package/dist/client/assets/tooltip-CSGMH2t4.js +1 -0
  40. package/dist/client/assets/use-file-explorer-state-BYVzjwPA.js +12 -0
  41. package/dist/client/assets/{useBaseUiId-CMJ8I9al.js → useBaseUiId-DiwX_3so.js} +1 -1
  42. package/dist/client/assets/{useCompositeItem-CSriPK0T.js → useCompositeItem-UPIPwR9H.js} +1 -1
  43. package/dist/client/assets/{useControlled-KFa25CcD.js → useControlled-CT2hRlcU.js} +1 -1
  44. package/dist/client/assets/{useMutation-Bd89JWif.js → useMutation-rx8UH99I.js} +1 -1
  45. package/dist/client/assets/{useQuery-DhR_UXNX.js → useQuery-Boaa6oF3.js} +1 -1
  46. package/dist/server/assets/{_sessionKey-BzM-igv7.js → _sessionKey-B6iYeyCS.js} +379 -395
  47. package/dist/server/assets/{_tanstack-start-manifest_v-Bfnqdswf.js → _tanstack-start-manifest_v-C9chPgNH.js} +1 -1
  48. package/dist/server/assets/{dashboard-GCKodTiJ.js → dashboard-UYRCu_mQ.js} +19 -3
  49. package/dist/server/assets/{follow-up-suggestions-DhBZIszK.js → follow-up-suggestions-mzRQIB0k.js} +2 -2
  50. package/dist/server/assets/{index-DCMpnyEo.js → index-COElhwGA.js} +1 -1
  51. package/dist/server/assets/{router-BqPDQeCx.js → router-BqLGFd4L.js} +4 -4
  52. package/dist/server/assets/{search-dialog-DtYc9e4N.js → search-dialog-CmI7naPN.js} +2 -2
  53. package/dist/server/assets/{settings-dialog-BQzn6fyF.js → settings-dialog-BZ67gr9N.js} +2 -2
  54. package/dist/server/assets/{thinking-D6q1tJkk.js → thinking-CA8PSwKJ.js} +2 -2
  55. package/dist/server/server.js +38 -195
  56. package/package.json +3 -7
  57. package/dist/client/assets/_sessionKey-CPRycepq.js +0 -19
  58. package/dist/client/assets/agents-Bp6Cn1BH.js +0 -2
  59. package/dist/client/assets/agents-screen-Du8b4SRW.js +0 -1
  60. package/dist/client/assets/bots-Dl65yZDx.js +0 -2
  61. package/dist/client/assets/button-BxDVif49.js +0 -1
  62. package/dist/client/assets/dashboard-Dz6Uyyke.js +0 -1
  63. package/dist/client/assets/event-DeooaZzN.js +0 -1
  64. package/dist/client/assets/file-explorer-screen-BnOINWSL.js +0 -1
  65. package/dist/client/assets/files-Cf87gXsq.js +0 -2
  66. package/dist/client/assets/follow-up-suggestions-DP_84nA2.js +0 -5
  67. package/dist/client/assets/keyboard-shortcuts-dialog-BzL7ZJUb.js +0 -1
  68. package/dist/client/assets/main-DJgQwVqD.js +0 -210
  69. package/dist/client/assets/markdown-CFbW7h0Q.js +0 -87
  70. package/dist/client/assets/memory-kYdhgbRR.js +0 -2
  71. package/dist/client/assets/memory-screen-BKYBnY-V.js +0 -1
  72. package/dist/client/assets/menu-CnihCZ4y.js +0 -1
  73. package/dist/client/assets/proxy-C2vtPufK.js +0 -9
  74. package/dist/client/assets/search-dialog-CDAdFAQI.js +0 -1
  75. package/dist/client/assets/session-export-dialog-Cf8eisLM.js +0 -1
  76. package/dist/client/assets/settings-dialog-CB1OiRWU.js +0 -1
  77. package/dist/client/assets/skills-D6MaebJh.js +0 -2
  78. package/dist/client/assets/styles-BNkOWk4R.css +0 -1
  79. package/dist/client/assets/switch-LzFh8co4.js +0 -1
  80. package/dist/client/assets/tabs-D9o7Irvl.js +0 -1
  81. package/dist/client/assets/thinking-BqZoM6BP.js +0 -1
  82. package/dist/client/assets/tooltip-D64CzFXa.js +0 -1
  83. package/dist/client/assets/use-file-explorer-state-Tzex8EEL.js +0 -12
  84. package/dist/client/assets/useOnFirstRender-DqnUCnnL.js +0 -1
@@ -0,0 +1,87 @@
1
+ import{A as Ir,j as P,r as ce,d as Gi,L as Pn}from"./main-CQKtcNr3.js";import{r as Xi,C as Jt}from"./index-BXiha-Vz.js";import{u as Ct,D as Yi,a as Ji,b as Ki,d as el}from"./use-file-explorer-state-BYVzjwPA.js";import{c as tl,B as Fn}from"./button-8ab4wOwy.js";import{s as Kt,h as nl,w as rl,f as il,a as ll,b as sl,c as Ln}from"./index-T4TOjvD0.js";function en(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ae=en();function Tr(e){Ae=e}var We={exec:()=>null};function j(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(J.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}var al=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),J={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]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ol=/^(?:[ \t]*(?:\n|$))+/,ul=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,cl=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Je=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hl=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tn=/(?:[*+-]|\d{1,9}[.)])/,Ar=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zr=j(Ar).replace(/bull/g,tn).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(),fl=j(Ar).replace(/bull/g,tn).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(),nn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pl=/^[^\n]+/,rn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ml=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gl=j(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tn).getRegex(),dt="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",ln=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dl=j("^ {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|$))","i").replace("comment",ln).replace("tag",dt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rr=j(nn).replace("hr",Je).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",dt).getRegex(),kl=j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rr).getRegex(),sn={blockquote:kl,code:ul,def:ml,fences:cl,heading:hl,hr:Je,html:dl,lheading:zr,list:gl,newline:ol,paragraph:Rr,table:We,text:pl},vn=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",dt).getRegex(),xl={...sn,lheading:fl,table:vn,paragraph:j(nn).replace("hr",Je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vn).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",dt).getRegex()},yl={...sn,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ln).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:We,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(nn).replace("hr",Je).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",zr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},bl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wl=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_r=/^( {2,}|\\)\n(?!\s*$)/,Sl=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,kt=/[\p{P}\p{S}]/u,an=/[\s\p{P}\p{S}]/u,Pr=/[^\s\p{P}\p{S}]/u,Cl=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,an).getRegex(),Fr=/(?!~)[\p{P}\p{S}]/u,El=/(?!~)[\s\p{P}\p{S}]/u,Il=/(?:[^\s\p{P}\p{S}]|~)/u,Tl=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",al?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Lr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Al=j(Lr,"u").replace(/punct/g,kt).getRegex(),zl=j(Lr,"u").replace(/punct/g,Fr).getRegex(),vr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Rl=j(vr,"gu").replace(/notPunctSpace/g,Pr).replace(/punctSpace/g,an).replace(/punct/g,kt).getRegex(),_l=j(vr,"gu").replace(/notPunctSpace/g,Il).replace(/punctSpace/g,El).replace(/punct/g,Fr).getRegex(),Pl=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pr).replace(/punctSpace/g,an).replace(/punct/g,kt).getRegex(),Fl=j(/\\(punct)/,"gu").replace(/punct/g,kt).getRegex(),Ll=j(/^<(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(),vl=j(ln).replace("(?:-->|$)","-->").getRegex(),Dl=j("^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",vl).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ot=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Nl=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ot).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dr=j(/^!?\[(label)\]\[(ref)\]/).replace("label",ot).replace("ref",rn).getRegex(),Nr=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",rn).getRegex(),Ol=j("reflink|nolink(?!\\()","g").replace("reflink",Dr).replace("nolink",Nr).getRegex(),Dn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,on={_backpedal:We,anyPunctuation:Fl,autolink:Ll,blockSkip:Tl,br:_r,code:wl,del:We,emStrongLDelim:Al,emStrongRDelimAst:Rl,emStrongRDelimUnd:Pl,escape:bl,link:Nl,nolink:Nr,punctuation:Cl,reflink:Dr,reflinkSearch:Ol,tag:Dl,text:Sl,url:We},$l={...on,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",ot).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ot).getRegex()},Mt={...on,emStrongRDelimAst:_l,emStrongLDelim:zl,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Dn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Dn).getRegex()},Bl={...Mt,br:j(_r).replace("{2,}","*").getRegex(),text:j(Mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nt={normal:sn,gfm:xl,pedantic:yl},Be={normal:on,gfm:Mt,breaks:Bl,pedantic:$l},jl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Nn=e=>jl[e];function ke(e,t){if(t){if(J.escapeTest.test(e))return e.replace(J.escapeReplace,Nn)}else if(J.escapeTestNoEncode.test(e))return e.replace(J.escapeReplaceNoEncode,Nn);return e}function On(e){try{e=encodeURI(e).replace(J.percentDecode,"%")}catch{return null}return e}function $n(e,t){let n=e.replace(J.findPipe,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(J.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(J.slashPipe,"|");return r}function je(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function Ml(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Bn(e,t,n,r,i){let s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}function ql(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
+ `).map(s=>{let l=s.match(n.other.beginningSpace);if(l===null)return s;let[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
4
+ `)}var ut=class{options;rules;lexer;constructor(e){this.options=e||Ae}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:je(n,`
5
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=ql(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=je(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:je(t[0],`
6
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=je(t[0],`
7
+ `).split(`
8
+ `),r="",i="",s=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let u=o.join(`
9
+ `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
11
+ ${u}`:u,i=i?`${i}
12
+ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=h,n.length===0)break;let p=s.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let f=p,d=f.raw+`
13
+ `+n.join(`
14
+ `),b=this.blockquote(d);s[s.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,i=i.substring(0,i.length-f.text.length)+b.text;break}else if(p?.type==="list"){let f=p,d=f.raw+`
15
+ `+n.join(`
16
+ `),b=this.list(d);s[s.length-1]=b,r=r.substring(0,r.length-p.raw.length)+b.raw,i=i.substring(0,i.length-f.raw.length)+b.raw,n=d.substring(s.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={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 s=this.rules.other.listItemRegex(n),l=!1;for(;e;){let a=!1,u="",c="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=t[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),p=e.split(`
19
+ `,1)[0],f=!h.trim(),d=0;if(this.options.pedantic?(d=2,c=h.trimStart()):f?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,c=h.slice(d),d+=t[1].length),f&&this.rules.other.blankLine.test(p)&&(u+=p+`
20
+ `,e=e.substring(p.length+1),a=!0),!a){let b=this.rules.other.nextBulletRegex(d),y=this.rules.other.hrRegex(d),k=this.rules.other.fencesBeginRegex(d),E=this.rules.other.headingBeginRegex(d),C=this.rules.other.htmlBeginRegex(d);for(;e;){let L=e.split(`
21
+ `,1)[0],F;if(p=L,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),F=p):F=p.replace(this.rules.other.tabCharGlobal," "),k.test(p)||E.test(p)||C.test(p)||b.test(p)||y.test(p))break;if(F.search(this.rules.other.nonSpaceChar)>=d||!p.trim())c+=`
22
+ `+F.slice(d);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(h)||E.test(h)||y.test(h))break;c+=`
23
+ `+p}!f&&!p.trim()&&(f=!0),u+=L+`
24
+ `,e=e.substring(L.length+1),h=F.slice(d)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(l=!0)),i.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),i.raw+=u}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let a of i.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),a.tokens[0]?.type==="text"||a.tokens[0]?.type==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(a.raw);if(u){let c={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};a.checked=c.checked,i.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=c.raw+a.tokens[0].raw,a.tokens[0].text=c.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(c)):a.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):a.tokens.unshift(c)}}if(!i.loose){let u=a.tokens.filter(h=>h.type==="space"),c=u.length>0&&u.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=c}}if(i.loose)for(let a of i.items){a.loose=!0;for(let u of a.tokens)u.type==="text"&&(u.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=$n(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push($n(l,s.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:s.align[a]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);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(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
26
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=je(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Ml(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Bn(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Bn(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,s,l,o=i,a=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(r=u.exec(t))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(l=[...s].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&i%3&&!((i+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let c=[...r[0]][0].length,h=e.slice(0,i+r.index+c+l);if(Math.min(i,l)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ae=class qt{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ae,this.options.tokenizer=this.options.tokenizer||new ut,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 n={other:J,block:nt.normal,inline:Be.normal};this.options.pedantic?(n.block=nt.pedantic,n.inline=Be.pedantic):this.options.gfm&&(n.block=nt.gfm,this.options.breaks?n.inline=Be.breaks:n.inline=Be.gfm),this.tokenizer.rules=n}static get rules(){return{block:nt,inline:Be}}static lex(t,n){return new qt(n).lex(t)}static lexInline(t,n){return new qt(n).inlineTokens(t)}lex(t){t=t.replace(J.carriageReturn,`
27
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(J.tabCharGlobal," ").replace(J.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=n.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
28
+ `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
29
+ `)?"":`
30
+ `)+i.raw,l.text+=`
31
+ `+i.text,this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
32
+ `)?"":`
33
+ `)+i.raw,l.text+=`
34
+ `+i.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let s=t;if(this.options.extensions?.startBlock){let l=1/0,o=t.slice(1),a;this.options.extensions.startBlock.forEach(u=>{a=u.call({lexer:this},o),typeof a=="number"&&a>=0&&(l=Math.min(l,a))}),l<1/0&&l>=0&&(s=t.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){let l=n.at(-1);r&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
35
+ `)?"":`
36
+ `)+i.raw,l.text+=`
37
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i),r=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
38
+ `)?"":`
39
+ `)+i.raw,l.text+=`
40
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,i=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)s=i[2]?i[2].length:0,r=r.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let l=!1,o="";for(;t;){l||(o=""),l=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length);let c=n.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,r,o)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t))){t=t.substring(a.raw.length),n.push(a);continue}let u=t;if(this.options.extensions?.startInline){let c=1/0,h=t.slice(1),p;this.options.extensions.startInline.forEach(f=>{p=f.call({lexer:this},h),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(a=this.tokenizer.inlineText(u)){t=t.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),l=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},ct=class{options;parser;constructor(e){this.options=e||Ae}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(J.notSpaceStart)?.[0],i=e.replace(J.endingNewline,"")+`
41
+ `;return r?'<pre><code class="language-'+ke(r)+'">'+(n?i:ke(i,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?i:ke(i,!0))+`</code></pre>
43
+ `}blockquote({tokens:e}){return`<blockquote>
44
+ ${this.parser.parse(e)}</blockquote>
45
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
46
+ `}hr(e){return`<hr>
47
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let l=0;l<e.items.length;l++){let o=e.items[l];r+=this.listitem(o)}let i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
48
+ `+r+"</"+i+`>
49
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
50
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
52
+ <thead>
53
+ `+t+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:e}){return`<tr>
56
+ ${e}</tr>
57
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ke(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=On(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+ke(t)+'"'),s+=">"+r+"</a>",s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=On(e);if(i===null)return ke(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${ke(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ke(e.text)}},un=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},oe=class Ht{options;renderer;textRenderer;constructor(t){this.options=t||Ae,this.options.renderer=this.options.renderer||new ct,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new un}static parse(t,n){return new Ht(n).parse(t)}static parseInline(t,n){return new Ht(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let l=i,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=o||"";continue}}let s=i;switch(s.type){case"space":{n+=this.renderer.space(s);break}case"hr":{n+=this.renderer.hr(s);break}case"heading":{n+=this.renderer.heading(s);break}case"code":{n+=this.renderer.code(s);break}case"table":{n+=this.renderer.table(s);break}case"blockquote":{n+=this.renderer.blockquote(s);break}case"list":{n+=this.renderer.list(s);break}case"checkbox":{n+=this.renderer.checkbox(s);break}case"html":{n+=this.renderer.html(s);break}case"def":{n+=this.renderer.def(s);break}case"paragraph":{n+=this.renderer.paragraph(s);break}case"text":{n+=this.renderer.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,n=this.renderer){let r="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}let l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},Ue=class{options;block;constructor(e){this.options=e||Ae}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ae.lex:ae.lexInline}provideParser(){return this.block?oe.parse:oe.parseInline}},Hl=class{defaults=en();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=oe;Renderer=ct;TextRenderer=un;Lexer=ae;Tokenizer=ut;Hooks=Ue;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let s of i.header)n=n.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let l of s)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let l=i[s].flat(1/0);n=n.concat(this.walkTokens(l,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...l){let o=i.renderer.apply(this,l);return o===!1&&(o=s.apply(this,l)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new ct(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,o=n.renderer[l],a=i[l];i[l]=(...u)=>{let c=o.apply(i,u);return c===!1&&(c=a.apply(i,u)),c||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new ut(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,o=n.tokenizer[l],a=i[l];i[l]=(...u)=>{let c=o.apply(i,u);return c===!1&&(c=a.apply(i,u)),c}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Ue;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let l=s,o=n.hooks[l],a=i[l];Ue.passThroughHooks.has(s)?i[l]=u=>{if(this.defaults.async&&Ue.passThroughHooksRespectAsync.has(s))return(async()=>{let h=await o.call(i,u);return a.call(i,h)})();let c=o.call(i,u);return a.call(i,c)}:i[l]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await o.apply(i,u);return h===!1&&(h=await a.apply(i,u)),h})();let c=o.apply(i,u);return c===!1&&(c=a.apply(i,u)),c}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(s.call(this,l)),i&&(o=o.concat(i.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ae.lex(e,t??this.defaults)}parser(e,t){return oe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return s(new 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 t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let l=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?ae.lex:ae.lexInline)(l,i),a=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser():e?oe.parse:oe.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let l=(i.hooks?i.hooks.provideLexer():e?ae.lex:ae.lexInline)(t,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?oe.parse:oe.parseInline)(l,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(l){return s(l)}}}onError(e,t){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ke(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ie=new Hl;function H(e,t){return Ie.parse(e,t)}H.options=H.setOptions=function(e){return Ie.setOptions(e),H.defaults=Ie.defaults,Tr(H.defaults),H};H.getDefaults=en;H.defaults=Ae;H.use=function(...e){return Ie.use(...e),H.defaults=Ie.defaults,Tr(H.defaults),H};H.walkTokens=function(e,t){return Ie.walkTokens(e,t)};H.parseInline=Ie.parseInline;H.Parser=oe;H.parser=oe.parse;H.Renderer=ct;H.TextRenderer=un;H.Lexer=ae;H.lexer=ae.lex;H.Tokenizer=ut;H.Hooks=Ue;H.parse=H;H.options;H.setOptions;H.use;H.walkTokens;H.parseInline;oe.parse;ae.lex;const Vl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ul=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wl={};function jn(e,t){return(Wl.jsx?Ul:Vl).test(e)}const Ql={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Pe={},Et,Mn;function Zl(){if(Mn)return Et;Mn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
60
+ `,u="/",c="*",h="",p="comment",f="declaration";function d(y,k){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];k=k||{};var E=1,C=1;function L(_){var T=_.match(t);T&&(E+=T.length);var V=_.lastIndexOf(a);C=~V?_.length-V:C+_.length}function F(){var _={line:E,column:C};return function(T){return T.position=new S(_),B(),T}}function S(_){this.start=_,this.end={line:E,column:C},this.source=k.source}S.prototype.content=y;function N(_){var T=new Error(k.source+":"+E+":"+C+": "+_);if(T.reason=_,T.filename=k.source,T.line=E,T.column=C,T.source=y,!k.silent)throw T}function M(_){var T=_.exec(y);if(T){var V=T[0];return L(V),y=y.slice(V.length),T}}function B(){M(n)}function x(_){var T;for(_=_||[];T=A();)T!==!1&&_.push(T);return _}function A(){var _=F();if(!(u!=y.charAt(0)||c!=y.charAt(1))){for(var T=2;h!=y.charAt(T)&&(c!=y.charAt(T)||u!=y.charAt(T+1));)++T;if(T+=2,h===y.charAt(T-1))return N("End of comment missing");var V=y.slice(2,T-2);return C+=2,L(V),y=y.slice(T),C+=2,_({type:p,comment:V})}}function z(){var _=F(),T=M(r);if(T){if(A(),!M(i))return N("property missing ':'");var V=M(s),Q=_({type:f,property:b(T[0].replace(e,h)),value:V?b(V[0].replace(e,h)):h});return M(l),Q}}function q(){var _=[];x(_);for(var T;T=z();)T!==!1&&(_.push(T),x(_));return _}return B(),q()}function b(y){return y?y.replace(o,h):h}return Et=d,Et}var qn;function Gl(){if(qn)return Pe;qn=1;var e=Pe&&Pe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=n;const t=e(Zl());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const l=(0,t.default)(r),o=typeof i=="function";return l.forEach(a=>{if(a.type!=="declaration")return;const{property:u,value:c}=a;o?i(u,c,a):c&&(s=s||{},s[u]=c)}),s}return Pe}var Me={},Hn;function Xl(){if(Hn)return Me;Hn=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},l=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},a=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(t,l))};return Me.camelCase=a,Me}var qe,Vn;function Yl(){if(Vn)return qe;Vn=1;var e=qe&&qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Gl()),n=Xl();function r(i,s){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(o,a){o&&a&&(l[(0,n.camelCase)(o,s)]=a)}),l}return r.default=r,qe=r,qe}var Jl=Yl();const Kl=Ir(Jl),Or=$r("end"),cn=$r("start");function $r(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function es(e){const t=cn(e),n=Or(e);if(t&&n)return{start:t,end:n}}function Qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Un(e.position):"start"in e||"end"in e?Un(e):"line"in e||"column"in e?Vt(e):""}function Vt(e){return Wn(e&&e.line)+":"+Wn(e&&e.column)}function Un(e){return Vt(e&&e.start)+"-"+Vt(e&&e.end)}function Wn(e){return e&&typeof e=="number"?e:1}class X extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},l=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(l=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?s.ruleId=r:(s.source=r.slice(0,a),s.ruleId=r.slice(a+1))}if(!s.place&&s.ancestors&&s.ancestors){const a=s.ancestors[s.ancestors.length-1];a&&(s.place=a.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Qe(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;const hn={}.hasOwnProperty,ts=new Map,ns=/[A-Z]/g,rs=new Set(["table","tbody","thead","tfoot","tr"]),is=new Set(["td","th"]),Br="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ls(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ps(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=fs(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Kt:nl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=jr(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function jr(e,t,n){if(t.type==="element")return ss(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return as(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return us(e,t,n);if(t.type==="mdxjsEsm")return os(e,t);if(t.type==="root")return cs(e,t,n);if(t.type==="text")return hs(e,t)}function ss(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Kt,e.schema=i),e.ancestors.push(t);const s=qr(e,t.tagName,!1),l=ms(e,t);let o=pn(e,t);return rs.has(t.tagName)&&(o=o.filter(function(a){return typeof a=="string"?!rl(a):!0})),Mr(e,l,s,t),fn(l,o),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function as(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xe(e,t.position)}function os(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}function us(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Kt,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:qr(e,t.name,!0),l=gs(e,t),o=pn(e,t);return Mr(e,l,s,t),fn(l,o),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function cs(e,t,n){const r={};return fn(r,pn(e,t)),e.create(t,e.Fragment,r,n)}function hs(e,t){return t.value}function Mr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function fs(e,t,n){return r;function r(i,s,l,o){const u=Array.isArray(l.children)?n:t;return o?u(s,l,o):u(s,l)}}function ps(e,t){return n;function n(r,i,s,l){const o=Array.isArray(s.children),a=cn(r);return t(i,s,l,o,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function ms(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&hn.call(t.properties,i)){const s=ds(e,i,t.properties[i]);if(s){const[l,o]=s;e.tableCellAlignToStyle&&l==="align"&&typeof o=="string"&&is.has(t.tagName)?r=o:n[l]=o}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function gs(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const l=s.expression;l.type;const o=l.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Xe(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,s=e.evaluater.evaluateExpression(o.expression)}else Xe(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function pn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ts;for(;++r<t.children.length;){const s=t.children[r];let l;if(e.passKeys){const a=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(a){const u=i.get(a)||0;l=a+"-"+u,i.set(a,u+1)}}const o=jr(e,s,l);o!==void 0&&n.push(o)}return n}function ds(e,t,n){const r=il(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ll(n):sl(n)),r.property==="style"){let i=typeof n=="object"?n:ks(e,String(n));return e.stylePropertyNameCase==="css"&&(i=xs(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ql[r.property]||r.property:r.attribute,n]}}function ks(e,t){try{return Kl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new X("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Br+"#cannot-parse-style-attribute",i}}function qr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,l;for(;++s<i.length;){const o=jn(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};l=l?{type:"MemberExpression",object:l,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=l}else r=jn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return hn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new X("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Br+"#cannot-handle-mdx-estrees-without-createevaluater",n}function xs(e){const t={};let n;for(n in e)hn.call(e,n)&&(t[ys(n)]=e[n]);return t}function ys(e){let t=e.replace(ns,bs);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bs(e){return"-"+e.toLowerCase()}const It={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ws={};function mn(e,t){const n=ws,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Hr(e,r,i)}function Hr(e,t,n){if(Ss(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qn(e.children,t,n)}return Array.isArray(e)?Qn(e,t,n):""}function Qn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Hr(e[i],t,n);return r.join("")}function Ss(e){return!!(e&&typeof e=="object")}const Zn=document.createElement("i");function gn(e){const t="&"+e+";";Zn.innerHTML=t;const n=Zn.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function te(e,t,n,r){const i=e.length;let s=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);s<r.length;)l=r.slice(s,s+1e4),l.unshift(t,0),e.splice(...l),s+=1e4,t+=1e4}function ne(e,t){return e.length>0?(te(e,e.length,0,t),e):t}const Gn={}.hasOwnProperty;function Vr(e){const t={};let n=-1;for(;++n<e.length;)Cs(t,e[n]);return t}function Cs(e,t){let n;for(n in t){const i=(Gn.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let l;if(s)for(l in s){Gn.call(i,l)||(i[l]=[]);const o=s[l];Es(i[l],Array.isArray(o)?o:o?[o]:[])}}}function Es(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);te(e,0,0,r)}function Ur(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ue(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Y=we(/[A-Za-z]/),G=we(/[\dA-Za-z]/),Is=we(/[#-'*+\--9=?A-Z^-~]/);function ht(e){return e!==null&&(e<32||e===127)}const Ut=we(/\d/),Ts=we(/[\dA-Fa-f]/),As=we(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<-2}function W(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const xt=we(new RegExp("\\p{P}|\\p{S}","u")),Te=we(/\s/);function we(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function De(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let l="";if(s===37&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(l=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(l=String.fromCharCode(s,o),i=1):l="�"}else l=String.fromCharCode(s);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function $(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return l;function l(a){return D(a)?(e.enter(n),o(a)):t(a)}function o(a){return D(a)&&s++<i?(e.consume(a),o):(e.exit(n),t(a))}}const zs={tokenize:Rs};function Rs(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),s(o)}function s(o){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(o)}function l(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return R(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),l)}}const _s={tokenize:Ps},Xn={tokenize:Fs};function Ps(e){const t=this,n=[];let r=0,i,s,l;return o;function o(C){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,a,u)(C)}return u(C)}function a(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const L=t.events.length;let F=L,S;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){S=t.events[F][1].end;break}k(r);let N=L;for(;N<t.events.length;)t.events[N][1].end={...S},N++;return te(t.events,F+1,0,t.events.slice(L)),t.events.length=N,u(C)}return o(C)}function u(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xn,c,h)(C)}function c(C){return i&&E(),k(r),p(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(C)}function p(C){return t.containerState={},e.attempt(Xn,f,d)(C)}function f(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function d(C){if(C===null){i&&E(),k(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),b(C)}function b(C){if(C===null){y(e.exit("chunkFlow"),!0),k(0),e.consume(C);return}return R(C)?(e.consume(C),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(C),b)}function y(C,L){const F=t.sliceStream(C);if(L&&F.push(null),C.previous=s,s&&(s.next=C),s=C,i.defineSkip(C.start),i.write(F),t.parser.lazy[C.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const N=t.events.length;let M=N,B,x;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(B){x=t.events[M][1].end;break}B=!0}for(k(r),S=N;S<t.events.length;)t.events[S][1].end={...x},S++;te(t.events,M+1,0,t.events.slice(N)),t.events.length=S}}function k(C){let L=n.length;for(;L-- >C;){const F=n[L];t.containerState=F[1],F[0].exit.call(t,e)}n.length=C}function E(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Fs(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ve(e){if(e===null||W(e)||Te(e))return 1;if(xt(e))return 2}function yt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Wt={name:"attention",resolveAll:Ls,tokenize:vs};function Ls(e,t){let n=-1,r,i,s,l,o,a,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};Yn(h,-a),Yn(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},s={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[r][1].end={...l.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ne(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ne(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",s,t]]),u=ne(u,yt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ne(u,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ne(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,te(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function vs(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ve(r);let s;return l;function l(a){return s=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===s)return e.consume(a),o;const u=e.exit("attentionSequence"),c=ve(a),h=!c||c===2&&i||n.includes(a),p=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?h:h&&(i||!p)),u._close=!!(s===42?p:p&&(c||!h)),t(a)}}function Yn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ds={name:"autolink",tokenize:Ns};function Ns(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(f){return Y(f)?(e.consume(f),l):f===64?n(f):u(f)}function l(f){return f===43||f===45||f===46||G(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(e.consume(f),r=0,a):(f===43||f===45||f===46||G(f))&&r++<32?(e.consume(f),o):(r=0,u(f))}function a(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ht(f)?n(f):(e.consume(f),a)}function u(f){return f===64?(e.consume(f),c):Is(f)?(e.consume(f),u):n(f)}function c(f){return G(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||G(f))&&r++<63){const d=f===45?p:h;return e.consume(f),d}return n(f)}}const Ke={partial:!0,tokenize:Os};function Os(e,t,n){return r;function r(s){return D(s)?$(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||R(s)?t(s):n(s)}}const Wr={continuation:{tokenize:Bs},exit:js,name:"blockQuote",tokenize:$s};function $s(e,t,n){const r=this;return i;function i(l){if(l===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),s}return n(l)}function s(l){return D(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Bs(e,t,n){const r=this;return i;function i(l){return D(l)?$(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):s(l)}function s(l){return e.attempt(Wr,t,n)(l)}}function js(e){e.exit("blockQuote")}const Qr={name:"characterEscape",tokenize:Ms};function Ms(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return As(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Zr={name:"characterReference",tokenize:qs};function qs(e,t,n){const r=this;let i=0,s,l;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),a}function a(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,l=G,c(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,l=Ts,c):(e.enter("characterReferenceValue"),s=7,l=Ut,c(h))}function c(h){if(h===59&&i){const p=e.exit("characterReferenceValue");return l===G&&!gn(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(h)&&i++<s?(e.consume(h),c):n(h)}}const Jn={partial:!0,tokenize:Vs},Kn={concrete:!0,name:"codeFenced",tokenize:Hs};function Hs(e,t,n){const r=this,i={partial:!0,tokenize:F};let s=0,l=0,o;return a;function a(S){return u(S)}function u(S){const N=r.events[r.events.length-1];return s=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(l++,e.consume(S),c):l<3?n(S):(e.exit("codeFencedFenceSequence"),D(S)?$(e,h,"whitespace")(S):h(S))}function h(S){return S===null||R(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Jn,b,L)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||R(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(S)):D(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,f,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),p)}function f(S){return S===null||R(S)?h(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||R(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(S)):S===96&&S===o?n(S):(e.consume(S),d)}function b(S){return e.attempt(i,L,y)(S)}function y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),k}function k(S){return s>0&&D(S)?$(e,E,"linePrefix",s+1)(S):E(S)}function E(S){return S===null||R(S)?e.check(Jn,b,L)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||R(S)?(e.exit("codeFlowValue"),E(S)):(e.consume(S),C)}function L(S){return e.exit("codeFenced"),t(S)}function F(S,N,M){let B=0;return x;function x(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),A}function A(T){return S.enter("codeFencedFence"),D(T)?$(S,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):z(T)}function z(T){return T===o?(S.enter("codeFencedFenceSequence"),q(T)):M(T)}function q(T){return T===o?(B++,S.consume(T),q):B>=l?(S.exit("codeFencedFenceSequence"),D(T)?$(S,_,"whitespace")(T):_(T)):M(T)}function _(T){return T===null||R(T)?(S.exit("codeFencedFence"),N(T)):M(T)}}}function Vs(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Tt={name:"codeIndented",tokenize:Ws},Us={partial:!0,tokenize:Qs};function Ws(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),$(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?a(u):R(u)?e.attempt(Us,l,a)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||R(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),o)}function a(u){return e.exit("codeIndented"),t(u)}}function Qs(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):R(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):$(e,s,"linePrefix",5)(l)}function s(l){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(l):R(l)?i(l):n(l)}}const Zs={name:"codeText",previous:Xs,resolve:Gs,tokenize:Ys};function Gs(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Xs(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ys(e,t,n){let r=0,i,s;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),a(h))}function a(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),a):h===96?(s=e.enter("codeTextSequence"),i=0,c(h)):R(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||R(h)?(e.exit("codeTextData"),a(h)):(e.consume(h),u)}function c(h){return h===96?(e.consume(h),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",u(h))}}class Js{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Gr(e){const t={};let n=-1,r,i,s,l,o,a,u;const c=new Js(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,s=0,s<a.length&&a[s][1].type==="lineEndingBlank"&&(s+=2),s<a.length&&a[s][1].type==="content"))for(;++s<a.length&&a[s][1].type!=="content";)a[s][1].type==="chunkText"&&(a[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ks(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(l=c.get(s),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=s);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return te(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Ks(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const o=l.events,a=[],u={};let c,h,p=-1,f=n,d=0,b=0;const y=[b];for(;f;){for(;e.get(++i)[1]!==f;);s.push(i),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),h&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(b=p+1,y.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):y.pop(),p=y.length;p--;){const k=o.slice(y[p],y[p+1]),E=s.pop();a.push([E,E+k.length-1]),e.splice(E,2,k)}for(a.reverse(),p=-1;++p<a.length;)u[d+a[p][0]]=d+a[p][1],d+=a[p][1]-a[p][0]-1;return u}const ea={resolve:na,tokenize:ra},ta={partial:!0,tokenize:ia};function na(e){return Gr(e),e}function ra(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):R(o)?e.check(ta,l,s)(o):(e.consume(o),i)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function l(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ia(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),$(e,s,"linePrefix")}function s(l){if(l===null||R(l))return n(l);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Xr(e,t,n,r,i,s,l,o,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return h;function h(k){return k===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(k),e.exit(s),p):k===null||k===32||k===41||ht(k)?n(k):(e.enter(r),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(k))}function p(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===62?(e.exit("chunkString"),e.exit(o),p(k)):k===null||k===60||R(k)?n(k):(e.consume(k),k===92?d:f)}function d(k){return k===60||k===62||k===92?(e.consume(k),f):f(k)}function b(k){return!c&&(k===null||k===41||W(k))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(r),t(k)):c<u&&k===40?(e.consume(k),c++,b):k===41?(e.consume(k),c--,b):k===null||k===32||k===40||ht(k)?n(k):(e.consume(k),k===92?y:b)}function y(k){return k===40||k===41||k===92?(e.consume(k),b):b(k)}}function Yr(e,t,n,r,i,s){const l=this;let o=0,a;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(s),c}function c(f){return o>999||f===null||f===91||f===93&&!a||f===94&&!o&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):f===93?(e.exit(s),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):R(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||R(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),a||(a=!D(f)),f===92?p:h)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,h):h(f)}}function Jr(e,t,n,r,i,s){let l;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,a):n(p)}function a(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(s),u(p))}function u(p){return p===l?(e.exit(s),a(l)):p===null?n(p):R(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),$(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===l||p===null||R(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?h:c)}function h(p){return p===l||p===92?(e.consume(p),c):c(p)}}function Ze(e,t){let n;return r;function r(i){return R(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):D(i)?$(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const la={name:"definition",tokenize:aa},sa={partial:!0,tokenize:oa};function aa(e,t,n){const r=this;let i;return s;function s(f){return e.enter("definition"),l(f)}function l(f){return Yr.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),a):n(f)}function a(f){return W(f)?Ze(e,u)(f):u(f)}function u(f){return Xr(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(sa,h,h)(f)}function h(f){return D(f)?$(e,p,"whitespace")(f):p(f)}function p(f){return f===null||R(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function oa(e,t,n){return r;function r(o){return W(o)?Ze(e,i)(o):n(o)}function i(o){return Jr(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return D(o)?$(e,l,"whitespace")(o):l(o)}function l(o){return o===null||R(o)?t(o):n(o)}}const ua={name:"hardBreakEscape",tokenize:ca};function ca(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return R(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const ha={name:"headingAtx",resolve:fa,tokenize:pa};function fa(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},te(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function pa(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||W(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||R(c)?(e.exit("atxHeading"),t(c)):D(c)?$(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||W(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const ma=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],er=["pre","script","style","textarea"],ga={concrete:!0,name:"htmlFlow",resolveTo:xa,tokenize:ya},da={partial:!0,tokenize:wa},ka={partial:!0,tokenize:ba};function xa(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ya(e,t,n){const r=this;let i,s,l,o,a;return u;function u(g){return c(g)}function c(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),h}function h(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),s=!0,b):g===63?(e.consume(g),i=3,r.interrupt?t:m):Y(g)?(e.consume(g),l=String.fromCharCode(g),y):n(g)}function p(g){return g===45?(e.consume(g),i=2,f):g===91?(e.consume(g),i=5,o=0,d):Y(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function f(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const le="CDATA[";return g===le.charCodeAt(o++)?(e.consume(g),o===le.length?r.interrupt?t:z:d):n(g)}function b(g){return Y(g)?(e.consume(g),l=String.fromCharCode(g),y):n(g)}function y(g){if(g===null||g===47||g===62||W(g)){const le=g===47,Se=l.toLowerCase();return!le&&!s&&er.includes(Se)?(i=1,r.interrupt?t(g):z(g)):ma.includes(l.toLowerCase())?(i=6,le?(e.consume(g),k):r.interrupt?t(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):s?E(g):C(g))}return g===45||G(g)?(e.consume(g),l+=String.fromCharCode(g),y):n(g)}function k(g){return g===62?(e.consume(g),r.interrupt?t:z):n(g)}function E(g){return D(g)?(e.consume(g),E):x(g)}function C(g){return g===47?(e.consume(g),x):g===58||g===95||Y(g)?(e.consume(g),L):D(g)?(e.consume(g),C):x(g)}function L(g){return g===45||g===46||g===58||g===95||G(g)?(e.consume(g),L):F(g)}function F(g){return g===61?(e.consume(g),S):D(g)?(e.consume(g),F):C(g)}function S(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),a=g,N):D(g)?(e.consume(g),S):M(g)}function N(g){return g===a?(e.consume(g),a=null,B):g===null||R(g)?n(g):(e.consume(g),N)}function M(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||W(g)?F(g):(e.consume(g),M)}function B(g){return g===47||g===62||D(g)?C(g):n(g)}function x(g){return g===62?(e.consume(g),A):n(g)}function A(g){return g===null||R(g)?z(g):D(g)?(e.consume(g),A):n(g)}function z(g){return g===45&&i===2?(e.consume(g),V):g===60&&i===1?(e.consume(g),Q):g===62&&i===4?(e.consume(g),ie):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),pe):R(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(da,me,q)(g)):g===null||R(g)?(e.exit("htmlFlowData"),q(g)):(e.consume(g),z)}function q(g){return e.check(ka,_,me)(g)}function _(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||R(g)?q(g):(e.enter("htmlFlowData"),z(g))}function V(g){return g===45?(e.consume(g),m):z(g)}function Q(g){return g===47?(e.consume(g),l="",re):z(g)}function re(g){if(g===62){const le=l.toLowerCase();return er.includes(le)?(e.consume(g),ie):z(g)}return Y(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),re):z(g)}function pe(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),ie):g===45&&i===2?(e.consume(g),m):z(g)}function ie(g){return g===null||R(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ie)}function me(g){return e.exit("htmlFlow"),t(g)}}function ba(e,t,n){const r=this;return i;function i(l){return R(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):n(l)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function wa(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,t,n)}}const Sa={name:"htmlText",tokenize:Ca};function Ca(e,t,n){const r=this;let i,s,l;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),F):m===63?(e.consume(m),C):Y(m)?(e.consume(m),M):n(m)}function u(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),s=0,d):Y(m)?(e.consume(m),E):n(m)}function c(m){return m===45?(e.consume(m),f):n(m)}function h(m){return m===null?n(m):m===45?(e.consume(m),p):R(m)?(l=h,Q(m)):(e.consume(m),h)}function p(m){return m===45?(e.consume(m),f):h(m)}function f(m){return m===62?V(m):m===45?p(m):h(m)}function d(m){const ie="CDATA[";return m===ie.charCodeAt(s++)?(e.consume(m),s===ie.length?b:d):n(m)}function b(m){return m===null?n(m):m===93?(e.consume(m),y):R(m)?(l=b,Q(m)):(e.consume(m),b)}function y(m){return m===93?(e.consume(m),k):b(m)}function k(m){return m===62?V(m):m===93?(e.consume(m),k):b(m)}function E(m){return m===null||m===62?V(m):R(m)?(l=E,Q(m)):(e.consume(m),E)}function C(m){return m===null?n(m):m===63?(e.consume(m),L):R(m)?(l=C,Q(m)):(e.consume(m),C)}function L(m){return m===62?V(m):C(m)}function F(m){return Y(m)?(e.consume(m),S):n(m)}function S(m){return m===45||G(m)?(e.consume(m),S):N(m)}function N(m){return R(m)?(l=N,Q(m)):D(m)?(e.consume(m),N):V(m)}function M(m){return m===45||G(m)?(e.consume(m),M):m===47||m===62||W(m)?B(m):n(m)}function B(m){return m===47?(e.consume(m),V):m===58||m===95||Y(m)?(e.consume(m),x):R(m)?(l=B,Q(m)):D(m)?(e.consume(m),B):V(m)}function x(m){return m===45||m===46||m===58||m===95||G(m)?(e.consume(m),x):A(m)}function A(m){return m===61?(e.consume(m),z):R(m)?(l=A,Q(m)):D(m)?(e.consume(m),A):B(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,q):R(m)?(l=z,Q(m)):D(m)?(e.consume(m),z):(e.consume(m),_)}function q(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):R(m)?(l=q,Q(m)):(e.consume(m),q)}function _(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||W(m)?B(m):(e.consume(m),_)}function T(m){return m===47||m===62||W(m)?B(m):n(m)}function V(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),re}function re(m){return D(m)?$(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),l(m)}}const dn={name:"labelEnd",resolveAll:Aa,resolveTo:za,tokenize:Ra},Ea={tokenize:_a},Ia={tokenize:Pa},Ta={tokenize:Fa};function Aa(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&te(e,0,e.length,n),e}function za(e,t){let n=e.length,r=0,i,s,l,o;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[l-2][1].start}};return o=[["enter",a,t],["enter",u,t]],o=ne(o,e.slice(s+1,s+r+3)),o=ne(o,[["enter",c,t]]),o=ne(o,yt(t.parser.constructs.insideSpan.null,e.slice(s+r+4,l-3),t)),o=ne(o,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),o=ne(o,e.slice(l+1)),o=ne(o,[["exit",a,t]]),te(e,s,e.length,o),e}function Ra(e,t,n){const r=this;let i=r.events.length,s,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(p){return s?s._inactive?h(p):(l=r.parser.defined.includes(ue(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(Ea,c,l?c:h)(p):p===91?e.attempt(Ia,c,l?u:h)(p):l?c(p):h(p)}function u(p){return e.attempt(Ta,c,h)(p)}function c(p){return t(p)}function h(p){return s._balanced=!0,n(p)}}function _a(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return W(h)?Ze(e,s)(h):s(h)}function s(h){return h===41?c(h):Xr(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function l(h){return W(h)?Ze(e,a)(h):c(h)}function o(h){return n(h)}function a(h){return h===34||h===39||h===40?Jr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function u(h){return W(h)?Ze(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Pa(e,t,n){const r=this;return i;function i(o){return Yr.call(r,e,s,l,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function l(o){return n(o)}}function Fa(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const La={name:"labelStartImage",resolveAll:dn.resolveAll,tokenize:va};function va(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),l):n(o)}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Da={name:"labelStartLink",resolveAll:dn.resolveAll,tokenize:Na};function Na(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),s}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const At={name:"lineEnding",tokenize:Oa};function Oa(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,t,"linePrefix")}}const at={name:"thematicBreak",tokenize:$a};function $a(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||R(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),D(u)?$(e,o,"whitespace")(u):o(u))}}const K={continuation:{tokenize:qa},exit:Va,name:"list",tokenize:Ma},Ba={partial:!0,tokenize:Ua},ja={partial:!0,tokenize:Ha};function Ma(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return o;function o(f){const d=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ut(f)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(at,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(f)}return n(f)}function a(f){return Ut(f)&&++l<10?(e.consume(f),a):(!r.interrupt||l<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ke,r.interrupt?n:c,e.attempt(Ba,p,h))}function c(f){return r.containerState.initialBlankLine=!0,s++,p(f)}function h(f){return D(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function qa(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!D(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ja,t,l)(o))}function l(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(K,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ha(e,t,n){const r=this;return $(e,i,"listItemIndent",r.containerState.size+1);function i(s){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(s):n(s)}}function Va(e){e.exit(this.containerState.type)}function Ua(e,t,n){const r=this;return $(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const l=r.events[r.events.length-1];return!D(s)&&l&&l[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const tr={name:"setextUnderline",resolveTo:Wa,tokenize:Qa};function Wa(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",l,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Qa(e,t,n){const r=this;let i;return s;function s(u){let c=r.events.length,h;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){h=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),D(u)?$(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||R(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Za={tokenize:Ga};function Ga(e){const t=this,n=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ea,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Xa={resolveAll:ei()},Ya=Kr("string"),Ja=Kr("text");function Kr(e){return{resolveAll:ei(e==="text"?Ka:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,l,o);return l;function l(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const h=i[c];let p=-1;if(h)for(;++p<h.length;){const f=h[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ei(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function Ka(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,l=-1,o=0,a;for(;s--;){const u=i[s];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)o++,l--;if(l)break;l=-1}else if(u===-2)a=!0,o++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:r.start._bufferIndex+l,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const eo={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:Wr},to={91:la},no={[-2]:Tt,[-1]:Tt,32:Tt},ro={35:ha,42:at,45:[tr,at],60:ga,61:tr,95:at,96:Kn,126:Kn},io={38:Zr,92:Qr},lo={[-5]:At,[-4]:At,[-3]:At,33:La,38:Zr,42:Wt,60:[Ds,Sa],91:Da,92:[ua,Qr],93:dn,95:Wt,96:Zs},so={null:[Wt,Xa]},ao={null:[42,95]},oo={null:[]},uo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ao,contentInitial:to,disable:oo,document:eo,flow:ro,flowInitial:no,insideSpan:so,string:io,text:lo},Symbol.toStringTag,{value:"Module"}));function co(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let l=[],o=[];const a={attempt:N(F),check:N(S),consume:E,enter:C,exit:L,interrupt:N(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:h};let c=t.tokenize.call(u,a);return t.resolveAll&&s.push(t),u;function h(A){return l=ne(l,A),y(),l[l.length-1]!==null?[]:(M(t,0),u.events=yt(s,u.events,u),u.events)}function p(A,z){return fo(f(A),z)}function f(A){return ho(l,A)}function d(){const{_bufferIndex:A,_index:z,line:q,column:_,offset:T}=r;return{_bufferIndex:A,_index:z,line:q,column:_,offset:T}}function b(A){i[A.line]=A.column,x()}function y(){let A;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<z.length;)k(z.charCodeAt(r._bufferIndex));else k(z)}}function k(A){c=c(A)}function E(A){R(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,x()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A}function C(A,z){const q=z||{};return q.type=A,q.start=d(),u.events.push(["enter",q,u]),o.push(q),q}function L(A){const z=o.pop();return z.end=d(),u.events.push(["exit",z,u]),z}function F(A,z){M(A,z.from)}function S(A,z){z.restore()}function N(A,z){return q;function q(_,T,V){let Q,re,pe,m;return Array.isArray(_)?me(_):"tokenize"in _?me([_]):ie(_);function ie(Z){return Ne;function Ne(ye){const ze=ye!==null&&Z[ye],Re=ye!==null&&Z.null,tt=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(Re)?Re:Re?[Re]:[]];return me(tt)(ye)}}function me(Z){return Q=Z,re=0,Z.length===0?V:g(Z[re])}function g(Z){return Ne;function Ne(ye){return m=B(),pe=Z,Z.partial||(u.currentConstruct=Z),Z.name&&u.parser.constructs.disable.null.includes(Z.name)?Se():Z.tokenize.call(z?Object.assign(Object.create(u),z):u,a,le,Se)(ye)}}function le(Z){return A(pe,m),T}function Se(Z){return m.restore(),++re<Q.length?g(Q[re]):V}}}function M(A,z){A.resolveAll&&!s.includes(A)&&s.push(A),A.resolve&&te(u.events,z,u.events.length-z,A.resolve(u.events.slice(z),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function B(){const A=d(),z=u.previous,q=u.currentConstruct,_=u.events.length,T=Array.from(o);return{from:_,restore:V};function V(){r=A,u.previous=z,u.currentConstruct=q,u.events.length=_,o=T,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ho(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,s)];else{if(l=e.slice(n,i),r>-1){const o=l[0];typeof o=="string"?l[0]=o.slice(r):l.shift()}s>0&&l.push(e[i].slice(0,s))}return l}function fo(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let l;if(typeof s=="string")l=s;else switch(s){case-5:{l="\r";break}case-4:{l=`
61
+ `;break}case-3:{l=`\r
62
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(s)}i=s===-2,r.push(l)}return r.join("")}function po(e){const r={constructs:Vr([uo,...(e||{}).extensions||[]]),content:i(zs),defined:[],document:i(_s),flow:i(Za),lazy:{},string:i(Ya),text:i(Ja)};return r;function i(s){return l;function l(o){return co(r,s,o)}}}function mo(e){for(;!Gr(e););return e}const nr=/[\0\t\n\r]/g;function go(){let e=1,t="",n=!0,r;return i;function i(s,l,o){const a=[];let u,c,h,p,f;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(l||void 0).decode(s)),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(nr.lastIndex=h,u=nr.exec(s),p=u&&u.index!==void 0?u.index:s.length,f=s.charCodeAt(p),!u){t=s.slice(h);break}if(f===10&&h===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),h<p&&(a.push(s.slice(h,p)),e+=p-h),f){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const ko=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xo(e){return e.replace(ko,yo)}function yo(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Ur(n.slice(s?2:1),s?16:10)}return gn(n)||e}const ti={}.hasOwnProperty;function bo(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wo(n)(mo(po(n).document().write(go()(e,t,!0))))}function wo(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Rn),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(Tn),blockQuote:s(Re),characterEscape:B,characterReference:B,codeFenced:s(tt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(tt,l),codeText:s(ji,l),codeTextData:B,data:B,codeFlowValue:B,definition:s(Mi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(qi),hardBreakEscape:s(An),hardBreakTrailing:s(An),htmlFlow:s(zn,l),htmlFlowData:B,htmlText:s(zn,l),htmlTextData:B,image:s(Hi),label:l,link:s(Rn),listItem:s(Vi),listItemValue:p,listOrdered:s(_n,h),listUnordered:s(_n),paragraph:s(Ui),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(Tn),strong:s(Wi),thematicBreak:s(Zi)},exit:{atxHeading:a(),atxHeadingSequence:F,autolink:a(),autolinkEmail:ze,autolinkProtocol:ye,blockQuote:a(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:Z,characterReference:Ne,codeFenced:a(y),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:a(k),codeText:a(T),codeTextData:x,data:x,definition:a(),definitionDestinationString:L,definitionLabelString:E,definitionTitleString:C,emphasis:a(),hardBreakEscape:a(z),hardBreakTrailing:a(z),htmlFlow:a(q),htmlFlowData:x,htmlText:a(_),htmlTextData:x,image:a(Q),label:pe,labelText:re,lineEnding:A,link:a(V),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:le,resourceDestinationString:m,resourceTitleString:ie,resource:me,setextHeading:a(M),setextHeadingLineSequence:N,setextHeadingText:S,strong:a(),thematicBreak:a()}};ni(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let I={type:"root",children:[]};const v={stack:[I],tokenStack:[],config:t,enter:o,exit:u,buffer:l,resume:c,data:n},O=[];let U=-1;for(;++U<w.length;)if(w[U][1].type==="listOrdered"||w[U][1].type==="listUnordered")if(w[U][0]==="enter")O.push(U);else{const se=O.pop();U=i(w,se,U)}for(U=-1;++U<w.length;){const se=t[w[U][0]];ti.call(se,w[U][1].type)&&se[w[U][1].type].call(Object.assign({sliceSerialize:w[U][2].sliceSerialize},v),w[U][1])}if(v.tokenStack.length>0){const se=v.tokenStack[v.tokenStack.length-1];(se[1]||rr).call(v,void 0,se[0])}for(I.position={start:be(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:be(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<t.transforms.length;)I=t.transforms[U](I)||I;return I}function i(w,I,v){let O=I-1,U=-1,se=!1,Ce,ge,Oe,$e;for(;++O<=v;){const ee=w[O];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?U++:U--,$e=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(Ce&&!$e&&!U&&!Oe&&(Oe=O),$e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$e=void 0}if(!U&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||U===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(Ce){let _e=O;for(ge=void 0;_e--;){const de=w[_e];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(w[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=_e}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Oe&&(!ge||Oe<ge)&&(Ce._spread=!0),Ce.end=Object.assign({},ge?w[ge][1].start:ee[1].end),w.splice(ge||O,0,["exit",Ce,ee[2]]),O++,v++}if(ee[1].type==="listItemPrefix"){const _e={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};Ce=_e,w.splice(O,0,["enter",_e,ee[2]]),O++,v++,Oe=void 0,$e=!0}}}return w[I][1]._spread=se,v}function s(w,I){return v;function v(O){o.call(this,w(O),O),I&&I.call(this,O)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(w,I,v){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([I,v||void 0]),w.position={start:be(I.start),end:void 0}}function a(w){return I;function I(v){w&&w.call(this,v),u.call(this,v)}}function u(w,I){const v=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==w.type&&(I?I.call(this,w,O[0]):(O[1]||rr).call(this,w,O[0]));else throw new Error("Cannot close `"+w.type+"` ("+Qe({start:w.start,end:w.end})+"): it’s not open");v.position.end=be(w.end)}function c(){return mn(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(w){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function f(){const w=this.resume(),I=this.stack[this.stack.length-1];I.lang=w}function d(){const w=this.resume(),I=this.stack[this.stack.length-1];I.meta=w}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w.replace(/(\r?\n|\r)$/g,"")}function E(w){const I=this.resume(),v=this.stack[this.stack.length-1];v.label=I,v.identifier=ue(this.sliceSerialize(w)).toLowerCase()}function C(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function L(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function F(w){const I=this.stack[this.stack.length-1];if(!I.depth){const v=this.sliceSerialize(w).length;I.depth=v}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function N(w){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function B(w){const v=this.stack[this.stack.length-1].children;let O=v[v.length-1];(!O||O.type!=="text")&&(O=Qi(),O.position={start:be(w.start),end:void 0},v.push(O)),this.stack.push(O)}function x(w){const I=this.stack.pop();I.value+=this.sliceSerialize(w),I.position.end=be(w.end)}function A(w){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const v=I.children[I.children.length-1];v.position.end=be(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(B.call(this,w),x.call(this,w))}function z(){this.data.atHardBreak=!0}function q(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function _(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function T(){const w=this.resume(),I=this.stack[this.stack.length-1];I.value=w}function V(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function Q(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=I,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function re(w){const I=this.sliceSerialize(w),v=this.stack[this.stack.length-2];v.label=xo(I),v.identifier=ue(I).toLowerCase()}function pe(){const w=this.stack[this.stack.length-1],I=this.resume(),v=this.stack[this.stack.length-1];if(this.data.inReference=!0,v.type==="link"){const O=w.children;v.children=O}else v.alt=I}function m(){const w=this.resume(),I=this.stack[this.stack.length-1];I.url=w}function ie(){const w=this.resume(),I=this.stack[this.stack.length-1];I.title=w}function me(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function le(w){const I=this.resume(),v=this.stack[this.stack.length-1];v.label=I,v.identifier=ue(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function Se(w){this.data.characterReferenceType=w.type}function Z(w){const I=this.sliceSerialize(w),v=this.data.characterReferenceType;let O;v?(O=Ur(I,v==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=gn(I);const U=this.stack[this.stack.length-1];U.value+=O}function Ne(w){const I=this.stack.pop();I.position.end=be(w.end)}function ye(w){x.call(this,w);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(w)}function ze(w){x.call(this,w);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(w)}function Re(){return{type:"blockquote",children:[]}}function tt(){return{type:"code",lang:null,meta:null,value:""}}function ji(){return{type:"inlineCode",value:""}}function Mi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qi(){return{type:"emphasis",children:[]}}function Tn(){return{type:"heading",depth:0,children:[]}}function An(){return{type:"break"}}function zn(){return{type:"html",value:""}}function Hi(){return{type:"image",title:null,url:"",alt:null}}function Rn(){return{type:"link",title:null,url:"",children:[]}}function _n(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Vi(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function Ui(){return{type:"paragraph",children:[]}}function Wi(){return{type:"strong",children:[]}}function Qi(){return{type:"text",value:""}}function Zi(){return{type:"thematicBreak"}}}function be(e){return{line:e.line,column:e.column,offset:e.offset}}function ni(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ni(e,r):So(e,r)}}function So(e,t){let n;for(n in t)if(ti.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function rr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is still open")}function Co(e){const t=this;t.parser=n;function n(r){return bo(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eo(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Io(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
63
+ `}]}function To(e,t){const n=t.value?t.value+`
64
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Ao(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zo(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ro(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=De(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let l,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=s+1,o+=1,e.footnoteCounts.set(r,o);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function _o(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Po(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ri(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Fo(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ri(e,t);const i={src:De(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Lo(e,t){const n={src:De(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vo(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Do(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ri(e,t);const i={href:De(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function No(e,t){const n={href:De(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Oo(e,t,n){const r=e.all(t),i=n?$o(n):ii(t),s={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
65
+ `}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
66
+ `});const u={type:"element",tagName:"li",properties:s,children:l};return e.patch(t,u),e.applyData(t,u)}function $o(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ii(n[r])}return t}function ii(e){const t=e.spread;return t??e.children.length>1}function Bo(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function jo(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mo(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function qo(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ho(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=cn(t.children[1]),a=Or(t.children[t.children.length-1]);o&&a&&(l.position={start:o,end:a}),i.push(l)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Vo(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,o=l?l.length:t.children.length;let a=-1;const u=[];for(;++a<o;){const h=t.children[a],p={},f=l?l[a]:void 0;f&&(p.align=f);let d={type:"element",tagName:s,properties:p,children:[]};h&&(d.children=e.all(h),e.patch(h,d),d=e.applyData(h,d)),u.push(d)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Uo(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ir=9,lr=32;function Wo(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(sr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(sr(t.slice(i),i>0,!1)),s.join("")}function sr(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===ir||s===lr;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===ir||s===lr;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qo(e,t){const n={type:"text",value:Wo(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Zo(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Go={blockquote:Eo,break:Io,code:To,delete:Ao,emphasis:zo,footnoteReference:Ro,heading:_o,html:Po,imageReference:Fo,image:Lo,inlineCode:vo,linkReference:Do,link:No,listItem:Oo,list:Bo,paragraph:jo,root:Mo,strong:qo,table:Ho,tableCell:Uo,tableRow:Vo,text:Qo,thematicBreak:Zo,toml:rt,yaml:rt,definition:rt,footnoteDefinition:rt};function rt(){}const li=-1,bt=0,Ge=1,ft=2,kn=3,xn=4,yn=5,bn=6,si=7,ai=8,ar=typeof self=="object"?self:globalThis,Xo=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,l]=t[i];switch(s){case bt:case li:return n(l,i);case Ge:{const o=n([],i);for(const a of l)o.push(r(a));return o}case ft:{const o=n({},i);for(const[a,u]of l)o[r(a)]=r(u);return o}case kn:return n(new Date(l),i);case xn:{const{source:o,flags:a}=l;return n(new RegExp(o,a),i)}case yn:{const o=n(new Map,i);for(const[a,u]of l)o.set(r(a),r(u));return o}case bn:{const o=n(new Set,i);for(const a of l)o.add(r(a));return o}case si:{const{name:o,message:a}=l;return n(new ar[o](a),i)}case ai:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:o}=new Uint8Array(l);return n(new DataView(o),l)}}return n(new ar[s](l),i)};return r},or=e=>Xo(new Map,e)(0),Fe="",{toString:Yo}={},{keys:Jo}=Object,Ve=e=>{const t=typeof e;if(t!=="object"||!e)return[bt,t];const n=Yo.call(e).slice(8,-1);switch(n){case"Array":return[Ge,Fe];case"Object":return[ft,Fe];case"Date":return[kn,Fe];case"RegExp":return[xn,Fe];case"Map":return[yn,Fe];case"Set":return[bn,Fe];case"DataView":return[Ge,n]}return n.includes("Array")?[Ge,n]:n.includes("Error")?[si,n]:[ft,n]},it=([e,t])=>e===bt&&(t==="function"||t==="symbol"),Ko=(e,t,n,r)=>{const i=(l,o)=>{const a=r.push(l)-1;return n.set(o,a),a},s=l=>{if(n.has(l))return n.get(l);let[o,a]=Ve(l);switch(o){case bt:{let c=l;switch(a){case"bigint":o=ai,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([li],l)}return i([o,c],l)}case Ge:{if(a){let p=l;return a==="DataView"?p=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(l)),i([a,[...p]],l)}const c=[],h=i([o,c],l);for(const p of l)c.push(s(p));return h}case ft:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return s(l.toJSON());const c=[],h=i([o,c],l);for(const p of Jo(l))(e||!it(Ve(l[p])))&&c.push([s(p),s(l[p])]);return h}case kn:return i([o,l.toISOString()],l);case xn:{const{source:c,flags:h}=l;return i([o,{source:c,flags:h}],l)}case yn:{const c=[],h=i([o,c],l);for(const[p,f]of l)(e||!(it(Ve(p))||it(Ve(f))))&&c.push([s(p),s(f)]);return h}case bn:{const c=[],h=i([o,c],l);for(const p of l)(e||!it(Ve(p)))&&c.push(s(p));return h}}const{message:u}=l;return i([o,{name:a,message:u}],l)};return s},ur=(e,{json:t,lossy:n}={})=>{const r=[];return Ko(!(t||n),!!t,new Map,r)(e),r},pt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?or(ur(e,t)):structuredClone(e):(e,t)=>or(ur(e,t));function eu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function nu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||eu,r=e.options.footnoteBackLabel||tu,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const c=e.all(u),h=String(u.identifier).toUpperCase(),p=De(h.toLowerCase());let f=0;const d=[],b=e.footnoteCounts.get(h);for(;b!==void 0&&++f<=b;){d.length>0&&d.push({type:"text",value:" "});let E=typeof n=="string"?n:n(a,f);typeof E=="string"&&(E={type:"text",value:E}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,f),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...d)}else c.push(...d);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,k),o.push(k)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...pt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
67
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
68
+ `}]}}const wt=(function(e){if(e==null)return su;if(typeof e=="function")return St(e);if(typeof e=="object")return Array.isArray(e)?ru(e):iu(e);if(typeof e=="string")return lu(e);throw new Error("Expected function, string, or object as test")});function ru(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wt(e[n]);return St(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function iu(e){const t=e;return St(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function lu(e){return St(t);function t(n){return n&&n.type===e}}function St(e){return t;function t(n,r,i){return!!(au(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function su(){return!0}function au(e){return e!==null&&typeof e=="object"&&"type"in e}const oi=[],ou=!0,Qt=!1,uu="skip";function ui(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=wt(i),l=r?-1:1;o(e,void 0,[])();function o(a,u,c){const h=a&&typeof a=="object"?a:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=oi,d,b,y;if((!t||s(a,u,c[c.length-1]||void 0))&&(f=cu(n(a,c)),f[0]===Qt))return f;if("children"in a&&a.children){const k=a;if(k.children&&f[0]!==uu)for(b=(r?k.children.length:-1)+l,y=c.concat(k);b>-1&&b<k.children.length;){const E=k.children[b];if(d=o(E,b,y)(),d[0]===Qt)return d;b=typeof d[1]=="number"?d[1]:b+l}}return f}}}function cu(e){return Array.isArray(e)?e:typeof e=="number"?[ou,e]:e==null?oi:[e]}function wn(e,t,n,r){let i,s,l;typeof t=="function"&&typeof n!="function"?(s=void 0,l=t,i=n):(s=t,l=n,i=r),ui(e,s,o,i);function o(a,u){const c=u[u.length-1],h=c?c.children.indexOf(a):void 0;return l(a,h,c)}}const Zt={}.hasOwnProperty,hu={};function fu(e,t){const n=t||hu,r=new Map,i=new Map,s=new Map,l={...Go,...n.handlers},o={all:u,applyData:mu,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:l,one:a,options:n,patch:pu,wrap:du};return wn(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();h.has(p)||h.set(p,c)}}),o;function a(c,h){const p=c.type,f=o.handlers[p];if(Zt.call(o.handlers,p)&&f)return f(o,c,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:b,...y}=c,k=pt(y);return k.children=o.all(c),k}return pt(c)}return(o.options.unknownHandler||gu)(o,c,h)}function u(c){const h=[];if("children"in c){const p=c.children;let f=-1;for(;++f<p.length;){const d=o.one(p[f],c);if(d){if(f&&p[f-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=cr(d.value)),!Array.isArray(d)&&d.type==="element")){const b=d.children[0];b&&b.type==="text"&&(b.value=cr(b.value))}Array.isArray(d)?h.push(...d):h.push(d)}}}return h}}function pu(e,t){e.position&&(t.position=es(e))}function mu(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&s&&Object.assign(n.properties,pt(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function gu(e,t){const n=t.data||{},r="value"in t&&!(Zt.call(n,"hProperties")||Zt.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function du(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
69
+ `});++r<e.length;)r&&n.push({type:"text",value:`
70
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
71
+ `}),n}function cr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hr(e,t){const n=fu(e,t),r=n.one(e,void 0),i=nu(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
72
+ `},i),s}function ku(e,t){return e&&"run"in e?async function(n,r){const i=hr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hr(n,{file:r,...e||t})}}function fr(e){if(e)throw e}var zt,pr;function xu(){if(pr)return zt;pr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!h)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return zt=function a(){var u,c,h,p,f,d,b=arguments[0],y=1,k=arguments.length,E=!1;for(typeof b=="boolean"&&(E=b,b=arguments[1]||{},y=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});y<k;++y)if(u=arguments[y],u!=null)for(c in u)h=o(b,c),p=o(u,c),b!==p&&(E&&p&&(s(p)||(f=i(p)))?(f?(f=!1,d=h&&i(h)?h:[]):d=h&&s(h)?h:{},l(b,{name:c,newValue:a(E,d,p)})):typeof p<"u"&&l(b,{name:c,newValue:p}));return b},zt}var yu=xu();const Rt=Ir(yu);function Gt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bu(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);o(null,...i);function o(a,...u){const c=e[++s];let h=-1;if(a){l(a);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,c?wu(c,o)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function wu(e,t){let n;return r;function r(...l){const o=e.length>l.length;let a;o&&l.push(i);try{a=e.apply(this,l)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(a&&a.then&&typeof a.then=="function"?a.then(s,i):a instanceof Error?i(a):s(a))}function i(l,...o){n||(n=!0,t(l,...o))}function s(l){i(null,l)}}const he={basename:Su,dirname:Cu,extname:Eu,join:Iu,sep:"/"};function Su(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');et(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else l<0&&(s=!0,l=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Cu(e){if(et(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Eu(e){et(e);let t=e.length,n=-1,r=0,i=-1,s=0,l;for(;t--;){const o=e.codePointAt(t);if(o===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Iu(...e){let t=-1,n;for(;++t<e.length;)et(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Tu(n)}function Tu(e){et(e);const t=e.codePointAt(0)===47;let n=Au(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Au(e,t){let n="",r=0,i=-1,s=0,l=-1,o,a;for(;++l<=e.length;){if(l<e.length)o=e.codePointAt(l);else{if(o===47)break;o=47}if(o===47){if(!(i===l-1||s===1))if(i!==l-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,s=0;continue}}else if(n.length>0){n="",r=0,i=l,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,s=0}else o===46&&s>-1?s++:s=-1}return n}function et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const zu={cwd:Ru};function Ru(){return"/"}function Xt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _u(e){if(typeof e=="string")e=new URL(e);else if(!Xt(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Pu(e)}function Pu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const _t=["history","path","basename","stem","extname","dirname"];class ci{constructor(t){let n;t?Xt(t)?n={path:t}:typeof t=="string"||Fu(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":zu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<_t.length;){const s=_t[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)_t.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?he.basename(this.path):void 0}set basename(t){Ft(t,"basename"),Pt(t,"basename"),this.path=he.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?he.dirname(this.path):void 0}set dirname(t){mr(this.basename,"dirname"),this.path=he.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?he.extname(this.path):void 0}set extname(t){if(Pt(t,"extname"),mr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=he.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xt(t)&&(t=_u(t)),Ft(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?he.basename(this.path,this.extname):void 0}set stem(t){Ft(t,"stem"),Pt(t,"stem"),this.path=he.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new X(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pt(e,t){if(e&&e.includes(he.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+he.sep+"`")}function Ft(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Fu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lu=(function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),vu={}.hasOwnProperty;class Sn extends Lu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=bu()}copy(){const t=new Sn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Rt(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Dt("data",this.frozen),this.namespace[t]=n,this):vu.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Dt("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=lt(t),r=this.parser||this.Parser;return Lt("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Lt("process",this.parser||this.Parser),vt("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,l){const o=lt(t),a=r.parse(o);r.run(a,o,function(c,h,p){if(c||!h||!p)return u(c);const f=h,d=r.stringify(f,p);Ou(d)?p.value=d:p.result=d,u(c,p)});function u(c,h){c||!h?l(c):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Lt("processSync",this.parser||this.Parser),vt("processSync",this.compiler||this.Compiler),this.process(t,i),dr("processSync","process",n),r;function i(s,l){n=!0,fr(s),r=l}}run(t,n,r){gr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(l,o){const a=lt(n);i.run(t,a,u);function u(c,h,p){const f=h||t;c?o(c):l?l(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),dr("runSync","run",r),i;function s(l,o){fr(l),i=o,r=!0}}stringify(t,n){this.freeze();const r=lt(n),i=this.compiler||this.Compiler;return vt("stringify",i),gr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Dt("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...h]=u;a(c,h)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=Rt(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const h=u[c];s(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,c){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===u){p=h;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[f,...d]=c;const b=r[p][1];Gt(b)&&Gt(f)&&(f=Rt(!0,b,f)),r[p]=[u,f,...d]}}}}const Du=new Sn().freeze();function Lt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dt(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gr(e){if(!Gt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lt(e){return Nu(e)?e:new ci(e)}function Nu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ou(e){return typeof e=="string"||$u(e)}function $u(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",kr=[],xr={allowDangerousHtml:!0},ju=/^(https?|ircs?|mailto|xmpp)$/i,Mu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qu(e){const t=Hu(e),n=Vu(e);return Uu(t.runSync(t.parse(n),n),e)}function Hu(e){const t=e.rehypePlugins||kr,n=e.remarkPlugins||kr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xr}:xr;return Du().use(Co).use(n).use(ku,r).use(t)}function Vu(e){const t=e.children||"",n=new ci;return typeof t=="string"&&(n.value=t),n}function Uu(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,l=t.skipHtml,o=t.unwrapDisallowed,a=t.urlTransform||Wu;for(const c of Mu)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Bu+c.id,void 0);return wn(e,u),ls(e,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function u(c,h,p){if(c.type==="raw"&&p&&typeof h=="number")return l?p.children.splice(h,1):p.children[h]={type:"text",value:c.value},h;if(c.type==="element"){let f;for(f in It)if(Object.hasOwn(It,f)&&Object.hasOwn(c.properties,f)){const d=c.properties[f],b=It[f];(b===null||b.includes(c.tagName))&&(c.properties[f]=a(String(d||""),f,c))}}if(c.type==="element"){let f=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!f&&r&&typeof h=="number"&&(f=!r(c,h,p)),f&&p&&typeof h=="number")return o&&c.children?p.children.splice(h,1,...c.children):p.children.splice(h,1),h}}}function Wu(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ju.test(e.slice(0,t))?e:""}function Qu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hi(e,t,n){const i=wt((n||{}).ignore||[]),s=Zu(t);let l=-1;for(;++l<s.length;)ui(e,"text",o);function o(u,c){let h=-1,p;for(;++h<c.length;){const f=c[h],d=p?p.children:void 0;if(i(f,d?d.indexOf(f):void 0,p))return;p=f}if(p)return a(u,c)}function a(u,c){const h=c[c.length-1],p=s[l][0],f=s[l][1];let d=0;const y=h.children.indexOf(u);let k=!1,E=[];p.lastIndex=0;let C=p.exec(u.value);for(;C;){const L=C.index,F={index:C.index,input:C.input,stack:[...c,u]};let S=f(...C,F);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=L+1:(d!==L&&E.push({type:"text",value:u.value.slice(d,L)}),Array.isArray(S)?E.push(...S):S&&E.push(S),d=L+C[0].length,k=!0),!p.global)break;C=p.exec(u.value)}return k?(d<u.value.length&&E.push({type:"text",value:u.value.slice(d)}),h.children.splice(y,1,...E)):E=[u],y+E.length}}function Zu(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Gu(i[0]),Xu(i[1])])}return t}function Gu(e){return typeof e=="string"?new RegExp(Qu(e),"g"):e}function Xu(e){return typeof e=="function"?e:function(){return e}}function Yu(e){hi(e,[/\r?\n|\r/g,Ju])}function Ju(){return{type:"break"}}function Ku(){return function(e){Yu(e)}}const Nt="phrasing",Ot=["autolink","link","image","label"];function ec(){return{transforms:[ac],enter:{literalAutolink:nc,literalAutolinkEmail:$t,literalAutolinkHttp:$t,literalAutolinkWww:$t},exit:{literalAutolink:sc,literalAutolinkEmail:lc,literalAutolinkHttp:rc,literalAutolinkWww:ic}}}function tc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Nt,notInConstruct:Ot},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Nt,notInConstruct:Ot},{character:":",before:"[ps]",after:"\\/",inConstruct:Nt,notInConstruct:Ot}]}}function nc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $t(e){this.config.enter.autolinkProtocol.call(this,e)}function rc(e){this.config.exit.autolinkProtocol.call(this,e)}function ic(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lc(e){this.config.exit.autolinkEmail.call(this,e)}function sc(e){this.exit(e)}function ac(e){hi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,oc],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uc]],{ignore:["link","linkReference"]})}function oc(e,t,n,r,i){let s="";if(!fi(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!cc(n)))return!1;const l=hc(n+r);if(!l[0])return!1;const o={type:"link",title:null,url:s+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[o,{type:"text",value:l[1]}]:o}function uc(e,t,n,r){return!fi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function cc(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hc(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ln(e,"(");let s=Ln(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function fi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Te(n)||xt(n))&&(!t||n!==47)}pi.peek=bc;function fc(){this.buffer()}function pc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function mc(){this.buffer()}function gc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function dc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kc(e){this.exit(e)}function xc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yc(e){this.exit(e)}function bc(){return"["}function pi(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const l=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),l(),s+=i.move("]"),s}function wc(){return{enter:{gfmFootnoteCallString:fc,gfmFootnoteCall:pc,gfmFootnoteDefinitionLabelString:mc,gfmFootnoteDefinition:gc},exit:{gfmFootnoteCallString:dc,gfmFootnoteCall:kc,gfmFootnoteDefinitionLabelString:xc,gfmFootnoteDefinition:yc}}}function Sc(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:pi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,l){const o=s.createTracker(l);let a=o.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return a+=o.move(s.safe(s.associationId(r),{before:a,after:"]"})),c(),a+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),a+=o.move((t?`
73
+ `:" ")+s.indentLines(s.containerFlow(r,o.current()),t?mi:Cc))),u(),a}}function Cc(e,t,n){return t===0?e:mi(e,t,n)}function mi(e,t,n){return(n?"":" ")+e}const Ec=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];gi.peek=Rc;function Ic(){return{canContainEols:["delete"],enter:{strikethrough:Ac},exit:{strikethrough:zc}}}function Tc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ec}],handlers:{delete:gi}}}function Ac(e){this.enter({type:"delete",children:[]},e)}function zc(e){this.exit(e)}function gi(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),s(),l}function Rc(){return"~"}function _c(e){return e.length}function Pc(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||_c,s=[],l=[],o=[],a=[];let u=0,c=-1;for(;++c<e.length;){const b=[],y=[];let k=-1;for(e[c].length>u&&(u=e[c].length);++k<e[c].length;){const E=Fc(e[c][k]);if(n.alignDelimiters!==!1){const C=i(E);y[k]=C,(a[k]===void 0||C>a[k])&&(a[k]=C)}b.push(E)}l[c]=b,o[c]=y}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<u;)s[h]=yr(r[h]);else{const b=yr(r);for(;++h<u;)s[h]=b}h=-1;const p=[],f=[];for(;++h<u;){const b=s[h];let y="",k="";b===99?(y=":",k=":"):b===108?y=":":b===114&&(k=":");let E=n.alignDelimiters===!1?1:Math.max(1,a[h]-y.length-k.length);const C=y+"-".repeat(E)+k;n.alignDelimiters!==!1&&(E=y.length+E+k.length,E>a[h]&&(a[h]=E),f[h]=E),p[h]=C}l.splice(1,0,p),o.splice(1,0,f),c=-1;const d=[];for(;++c<l.length;){const b=l[c],y=o[c];h=-1;const k=[];for(;++h<u;){const E=b[h]||"";let C="",L="";if(n.alignDelimiters!==!1){const F=a[h]-(y[h]||0),S=s[h];S===114?C=" ".repeat(F):S===99?F%2?(C=" ".repeat(F/2+.5),L=" ".repeat(F/2-.5)):(C=" ".repeat(F/2),L=C):L=" ".repeat(F)}n.delimiterStart!==!1&&!h&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||h)&&k.push(" "),n.alignDelimiters!==!1&&k.push(C),k.push(E),n.alignDelimiters!==!1&&k.push(L),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||h!==u-1)&&k.push("|")}d.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return d.join(`
74
+ `)}function Fc(e){return e==null?"":String(e)}function yr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Lc(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const l=n.indentLines(n.containerFlow(e,s.current()),vc);return i(),l}function vc(e,t,n){return">"+(n?"":" ")+e}function Dc(e,t){return br(e,t.inConstruct,!0)&&!br(e,t.notInConstruct,!1)}function br(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function wr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
75
+ `&&Dc(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
76
+ `}function Nc(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>l&&(l=s):s=1,i=r+t.length,r=n.indexOf(t,i);return l}function Oc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $c(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Bc(e,t,n,r){const i=$c(n),s=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Oc(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(s,jc);return h(),p}const o=n.createTracker(r),a=i.repeat(Math.max(Nc(s,i)+1,3)),u=n.enter("codeFenced");let c=o.move(a);if(e.lang){const h=n.enter(`codeFencedLang${l}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${l}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
77
+ `,encode:["`"],...o.current()})),h()}return c+=o.move(`
78
+ `),s&&(c+=o.move(s+`
79
+ `)),c+=o.move(a),u(),c}function jc(e,t,n){return(n?"":" ")+e}function Cn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Mc(e,t,n,r){const i=Cn(n),s=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
80
+ `,...a.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),o()),l(),u}function qc(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ye(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mt(e,t,n){const r=ve(e),i=ve(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}di.peek=Hc;function di(e,t,n,r){const i=qc(n),s=n.enter("emphasis"),l=n.createTracker(r),o=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:o,...l.current()}));const u=a.charCodeAt(0),c=mt(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(a=Ye(u)+a.slice(1));const h=a.charCodeAt(a.length-1),p=mt(r.after.charCodeAt(0),h,i);p.inside&&(a=a.slice(0,-1)+Ye(h));const f=l.move(i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+a+f}function Hc(e,t,n){return n.options.emphasis||"*"}function Vc(e,t){let n=!1;return wn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Qt}),!!((!e.depth||e.depth<3)&&mn(e)&&(t.options.setext||n))}function Uc(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(Vc(e,n)){const c=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...s.current(),before:`
81
+ `,after:`
82
+ `});return h(),c(),p+`
83
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
84
+ `))+1))}const l="#".repeat(i),o=n.enter("headingAtx"),a=n.enter("phrasing");s.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
85
+ `,...s.current()});return/^[\t ]/.test(u)&&(u=Ye(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),a(),o(),u}ki.peek=Wc;function ki(e){return e.value||""}function Wc(){return"<"}xi.peek=Qc;function xi(e,t,n,r){const i=Cn(n),s=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),o()),u+=a.move(")"),l(),u}function Qc(){return"!"}yi.peek=Zc;function yi(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let l=n.enter("label");const o=n.createTracker(r);let a=o.move("![");const u=n.safe(e.alt,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const h=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return l(),n.stack=c,s(),i==="full"||!u||u!==h?a+=o.move(h+"]"):i==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function Zc(){return"!"}bi.peek=Gc;function bi(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const l=n.unsafe[s],o=n.compilePattern(l);let a;if(l.atBreak)for(;a=o.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function Gc(){return"`"}function wi(e,t){const n=mn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Si.peek=Xc;function Si(e,t,n,r){const i=Cn(n),s=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let o,a;if(wi(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let h=l.move("<");return h+=l.move(n.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),o(),n.stack=c,h}o=n.enter("link"),a=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function Xc(e,t,n){return wi(e,n)?"<":"["}Ci.peek=Yc;function Ci(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let l=n.enter("label");const o=n.createTracker(r);let a=o.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const h=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return l(),n.stack=c,s(),i==="full"||!u||u!==h?a+=o.move(h+"]"):i==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function Yc(){return"["}function En(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Jc(e){const t=En(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Kc(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ei(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eh(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let l=e.ordered?Kc(n):En(n);const o=e.ordered?l==="."?")":".":Jc(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),Ei(n)===l&&c){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=o),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=s,i(),u}function th(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nh(e,t,n,r){const i=th(n);let s=n.bulletCurrent||En(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let l=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(l-s.length)),o.shift(l);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return a(),u;function c(h,p,f){return p?(f?"":" ".repeat(l))+h:(f?s:s+" ".repeat(l-s.length))+h}}function rh(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),l=n.containerPhrasing(e,r);return s(),i(),l}const ih=wt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lh(e,t,n,r){return(e.children.some(function(l){return ih(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function sh(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ii.peek=ah;function Ii(e,t,n,r){const i=sh(n),s=n.enter("strong"),l=n.createTracker(r),o=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:o,...l.current()}));const u=a.charCodeAt(0),c=mt(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(a=Ye(u)+a.slice(1));const h=a.charCodeAt(a.length-1),p=mt(r.after.charCodeAt(0),h,i);p.inside&&(a=a.slice(0,-1)+Ye(h));const f=l.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+a+f}function ah(e,t,n){return n.options.strong||"*"}function oh(e,t,n,r){return n.safe(e.value,r)}function uh(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ch(e,t,n){const r=(Ei(n)+(n.options.ruleSpaces?" ":"")).repeat(uh(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ti={blockquote:Lc,break:wr,code:Bc,definition:Mc,emphasis:di,hardBreak:wr,heading:Uc,html:ki,image:xi,imageReference:yi,inlineCode:bi,link:Si,linkReference:Ci,list:eh,listItem:nh,paragraph:rh,root:lh,strong:Ii,text:oh,thematicBreak:ch};function hh(){return{enter:{table:fh,tableData:Sr,tableHeader:Sr,tableRow:mh},exit:{codeText:gh,table:ph,tableData:Bt,tableHeader:Bt,tableRow:Bt}}}function fh(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ph(e){this.exit(e),this.data.inTable=void 0}function mh(e){this.enter({type:"tableRow",children:[]},e)}function Bt(e){this.exit(e)}function Sr(e){this.enter({type:"tableCell",children:[]},e)}function gh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,dh));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function dh(e,t){return t==="|"?t:e}function kh(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
86
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:a,tableRow:o}};function l(f,d,b,y){return u(c(f,b,y),f.align)}function o(f,d,b,y){const k=h(f,b,y),E=u([k]);return E.slice(0,E.indexOf(`
87
+ `))}function a(f,d,b,y){const k=b.enter("tableCell"),E=b.enter("phrasing"),C=b.containerPhrasing(f,{...y,before:s,after:s});return E(),k(),C}function u(f,d){return Pc(f,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function c(f,d,b){const y=f.children;let k=-1;const E=[],C=d.enter("table");for(;++k<y.length;)E[k]=h(y[k],d,b);return C(),E}function h(f,d,b){const y=f.children;let k=-1;const E=[],C=d.enter("tableRow");for(;++k<y.length;)E[k]=a(y[k],f,d,b);return C(),E}function p(f,d,b){let y=Ti.inlineCode(f,d,b);return b.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function xh(){return{exit:{taskListCheckValueChecked:Cr,taskListCheckValueUnchecked:Cr,paragraph:bh}}}function yh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wh}}}function Cr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bh(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,l;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){l=o;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function wh(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(l);let a=Ti.listItem(e,t,n,{...r,...o.current()});return s&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(c){return c+l}}function Sh(){return[ec(),wc(),Ic(),hh(),xh()]}function Ch(e){return{extensions:[tc(),Sc(e),Tc(),kh(e),yh()]}}const Eh={tokenize:_h,partial:!0},Ai={tokenize:Ph,partial:!0},zi={tokenize:Fh,partial:!0},Ri={tokenize:Lh,partial:!0},Ih={tokenize:vh,partial:!0},_i={name:"wwwAutolink",tokenize:zh,previous:Fi},Pi={name:"protocolAutolink",tokenize:Rh,previous:Li},xe={name:"emailAutolink",tokenize:Ah,previous:vi},fe={};function Th(){return{text:fe}}let Ee=48;for(;Ee<123;)fe[Ee]=xe,Ee++,Ee===58?Ee=65:Ee===91&&(Ee=97);fe[43]=xe;fe[45]=xe;fe[46]=xe;fe[95]=xe;fe[72]=[xe,Pi];fe[104]=[xe,Pi];fe[87]=[xe,_i];fe[119]=[xe,_i];function Ah(e,t,n){const r=this;let i,s;return l;function l(h){return!Yt(h)||!vi.call(r,r.previous)||In(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return Yt(h)?(e.consume(h),o):h===64?(e.consume(h),a):n(h)}function a(h){return h===46?e.check(Ih,c,u)(h):h===45||h===95||G(h)?(s=!0,e.consume(h),a):c(h)}function u(h){return e.consume(h),i=!0,a}function c(h){return s&&i&&Y(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function zh(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Fi.call(r,r.previous)||In(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Eh,e.attempt(Ai,e.attempt(zi,s),n),n)(l))}function s(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Rh(e,t,n){const r=this;let i="",s=!1;return l;function l(h){return(h===72||h===104)&&Li.call(r,r.previous)&&!In(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(Y(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(h),a}return n(h)}function a(h){return h===47?(e.consume(h),s?u:(s=!0,a)):n(h)}function u(h){return h===null||ht(h)||W(h)||Te(h)||xt(h)?n(h):e.attempt(Ai,e.attempt(zi,c),n)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function _h(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),s):n(l)}function s(l){return l===null?n(l):t(l)}}function Ph(e,t,n){let r,i,s;return l;function l(u){return u===46||u===95?e.check(Ri,a,o)(u):u===null||W(u)||Te(u)||u!==45&&xt(u)?a(u):(s=!0,e.consume(u),l)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function a(u){return i||r||!s?n(u):t(u)}}function Fh(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?s(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Ri,t,s)(l):l===null||W(l)||Te(l)?t(l):(e.consume(l),i)}function s(l){return l===41&&r++,e.consume(l),i}}function Lh(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),s):o===93?(e.consume(o),i):o===60||o===null||W(o)||Te(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||W(o)||Te(o)?t(o):r(o)}function s(o){return Y(o)?l(o):n(o)}function l(o){return o===59?(e.consume(o),r):Y(o)?(e.consume(o),l):n(o)}}function vh(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return G(s)?n(s):t(s)}}function Fi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||W(e)}function Li(e){return!Y(e)}function vi(e){return!(e===47||Yt(e))}function Yt(e){return e===43||e===45||e===46||e===95||G(e)}function In(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Dh={tokenize:Hh,partial:!0};function Nh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:jh,continuation:{tokenize:Mh},exit:qh}},text:{91:{name:"gfmFootnoteCall",tokenize:Bh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Oh,resolveTo:$h}}}}function Oh(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return o;function o(a){if(!l||!l._balanced)return n(a);const u=ue(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function $h(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Bh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,l;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),a}function a(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(s>999||h===93&&!l||h===null||h===91||W(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ue(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return W(h)||(l=!0),s++,e.consume(h),h===92?c:u}function c(h){return h===91||h===92||h===93?(e.consume(h),s++,u):u(h)}}function jh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,l=0,o;return a;function a(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(d)}function c(d){if(l>999||d===93&&!o||d===null||d===91||W(d))return n(d);if(d===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return s=ue(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return W(d)||(o=!0),l++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),l++,c):c(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(s)||i.push(s),$(e,f,"gfmFootnoteDefinitionWhitespace")):n(d)}function f(d){return t(d)}}function Mh(e,t,n){return e.check(Ke,t,e.attempt(Dh,t,n))}function qh(e){e.exit("gfmFootnoteDefinition")}function Hh(e,t,n){const r=this;return $(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(s):n(s)}}function Vh(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,o){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let u=a;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[a][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[a][1].end)},h={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[a][1].start)},p=[["enter",c,o],["enter",l[u][1],o],["exit",l[u][1],o],["enter",h,o]],f=o.parser.constructs.insideSpan.null;f&&te(p,p.length,0,yt(f,l.slice(u+1,a),o)),te(p,p.length,0,[["exit",h,o],["enter",l[a][1],o],["exit",l[a][1],o],["exit",c,o]]),te(l,u-1,a-u+3,p),a=u+p.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function s(l,o,a){const u=this.previous,c=this.events;let h=0;return p;function p(d){return u===126&&c[c.length-1][1].type!=="characterEscape"?a(d):(l.enter("strikethroughSequenceTemporary"),f(d))}function f(d){const b=ve(u);if(d===126)return h>1?a(d):(l.consume(d),h++,f);if(h<2&&!n)return a(d);const y=l.exit("strikethroughSequenceTemporary"),k=ve(d);return y._open=!k||k===2&&!!b,y._close=!b||b===2&&!!k,o(d)}}}class Uh{constructor(){this.map=[]}add(t,n,r){Wh(this,t,n,r)}consume(t){if(this.map.sort(function(s,l){return s[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function Wh(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Qh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Zh(){return{flow:{null:{name:"table",tokenize:Gh,resolveAll:Xh}}}}function Gh(e,t,n){const r=this;let i=0,s=0,l;return o;function o(x){let A=r.events.length-1;for(;A>-1;){const _=r.events[A][1].type;if(_==="lineEnding"||_==="linePrefix")A--;else break}const z=A>-1?r.events[A][1].type:null,q=z==="tableHead"||z==="tableRow"?S:a;return q===S&&r.parser.lazy[r.now().line]?n(x):q(x)}function a(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(l=!0,s+=1),c(x)}function c(x){return x===null?n(x):R(x)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),f):n(x):D(x)?$(e,c,"whitespace")(x):(s+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),h(x)))}function h(x){return x===null||x===124||W(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?p:h)}function p(x){return x===92||x===124?(e.consume(x),h):h(x)}function f(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,D(x)?$(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?y(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),b):F(x)}function b(x){return D(x)?$(e,y,"whitespace")(x):y(x)}function y(x){return x===58?(s+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),k):x===45?(s+=1,k(x)):x===null||R(x)?L(x):F(x)}function k(x){return x===45?(e.enter("tableDelimiterFiller"),E(x)):F(x)}function E(x){return x===45?(e.consume(x),E):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(x))}function C(x){return D(x)?$(e,L,"whitespace")(x):L(x)}function L(x){return x===124?d(x):x===null||R(x)?!l||i!==s?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):F(x)}function F(x){return n(x)}function S(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||R(x)?(e.exit("tableRow"),t(x)):D(x)?$(e,N,"whitespace")(x):(e.enter("data"),M(x))}function M(x){return x===null||x===124||W(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?B:M)}function B(x){return x===92||x===124?(e.consume(x),M):M(x)}}function Xh(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],l=[0,0,0,0],o=!1,a=0,u,c,h;const p=new Uh;for(;++n<e.length;){const f=e[n],d=f[1];f[0]==="enter"?d.type==="tableHead"?(o=!1,a!==0&&(Er(p,t,a,u,c),c=void 0,a=0),u={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",u,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,h=void 0,s=[0,0,0,0],l=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",c,t]])),i=d.type==="tableDelimiterRow"?2:c?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(s[1]!==0&&(l[0]=l[1],h=st(p,t,s,i,void 0,h),s=[0,0,0,0]),l[2]=n)):d.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(l[0]=l[1],h=st(p,t,s,i,void 0,h)),s=l,l=[s[1],n,0,0])):d.type==="tableHead"?(o=!0,a=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(a=n,s[1]!==0?(l[0]=l[1],h=st(p,t,s,i,n,h)):l[1]!==0&&(h=st(p,t,l,i,n,h)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&Er(p,t,a,u,c),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Qh(t.events,n))}return e}function st(e,t,n,r,i,s){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},Le(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const a=Le(t.events,n[1]);if(s={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=Le(t.events,n[2]),c=Le(t.events,n[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,b=n[3]-n[2]-1;e.add(d,b,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(s.end=Object.assign({},Le(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Er(e,t,n,r,i){const s=[],l=Le(t.events,n);i&&(i.end=Object.assign({},l),s.push(["exit",i,t])),r.end=Object.assign({},l),s.push(["exit",r,t]),e.add(n+1,0,s)}function Le(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Yh={name:"tasklistCheck",tokenize:Kh};function Jh(){return{text:{91:Yh}}}function Kh(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),s)}function s(a){return W(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(a)}function o(a){return R(a)?t(a):D(a)?e.check({tokenize:ef},t,n)(a):n(a)}}function ef(e,t,n){return $(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tf(e){return Vr([Th(),Nh(),Vh(e),Zh(),Jh()])}const nf={};function rf(e){const t=this,n=e||nf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tf(n)),s.push(Sh()),l.push(Ch(n))}const lf=["md","txt","json","yaml","yml","toml","py","js","ts","tsx","jsx","css","scss","html","xml","sh","bash","go","rs","rb","php","java","kt","swift","c","cpp","h","hpp","sql","graphql","dockerfile","env","conf","cfg","ini","log","csv"],sf=lf.join("|"),af="(?:~\\/[A-Za-z0-9._\\-\\/]*[A-Za-z0-9._\\-\\/]|\\/(?:[\\w.\\-]+\\/)*[\\w.\\-]+\\/?)",of="(?:[A-Za-z0-9._\\-]+(?:\\/[A-Za-z0-9._\\-]+)+\\/?)",uf=`(?:[A-Za-z0-9_-][A-Za-z0-9._-]*[A-Za-z0-9_-]\\.(?:${sf})|dockerfile)`,gt=new RegExp(`(^|[\\s"'(,;:])(${af}|${of}|${uf})(?=$|[\\s"'),;:!?])`,"gi");function cf(e){if(!e)return{path:e??"",trailing:""};const t=e.match(/^(.*?)([),.;:!?]+)?$/);return t?{path:t[1]||e,trailing:t[2]||""}:{path:e,trailing:""}}function hf(e){if(!e)return!1;gt.lastIndex=0;const t=gt.exec(e);if(!t)return!1;const n=t[1]||"",r=t[2]||"",i=t.index+n.length,s=i+r.length;return i===0&&s===e.length}function ff(e){if(!e)return[{type:"text",value:e}];const t=[];let n=0;gt.lastIndex=0;let r;for(;(r=gt.exec(e))!==null;){const i=r[1]||"",s=r[2]||"",l=r[0],o=r.index,a=o,u=o+i.length;a>n&&t.push({type:"text",value:e.slice(n,a)}),i&&t.push({type:"text",value:i});const{path:c,trailing:h}=cf(s);c.length>1?(t.push({type:"path",value:c}),h&&t.push({type:"text",value:h})):t.push({type:"text",value:l}),n=u+s.length}return n<e.length&&t.push({type:"text",value:e.slice(n)}),t.length>0?t:[{type:"text",value:e}]}function pf(e){return`openclaw-file://${encodeURIComponent(e)}`}function Di(e){if(!e?.startsWith("openclaw-file://"))return null;try{return decodeURIComponent(e.slice(16))}catch{return null}}function mf(){return e=>{function t(n,r){if(n){if(n.type==="text"&&r&&r.type!=="link"&&r.type!=="inlineCode"&&r.type!=="code"){const i=ff(String(n.value||""));if(!i.some(a=>a.type==="path"))return;const l=i.map(a=>a.type==="text"?{type:"text",value:a.value}:{type:"link",url:pf(a.value),children:[{type:"text",value:a.value}]}),o=r.children.indexOf(n);o>=0&&r.children.splice(o,1,...l);return}if(Array.isArray(n.children))for(const i of[...n.children])t(i,n)}}t(e,null)}}const gf={py:"python",ts:"typescript",js:"javascript",jsx:"jsx",tsx:"tsx",json:"json",md:"markdown",yml:"yaml",yaml:"yaml",sh:"bash",bash:"bash",zsh:"bash",html:"html",css:"css",sql:"sql",xml:"xml",toml:"toml",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp",cs:"csharp",php:"php",rb:"ruby",graphql:"graphql",diff:"diff",patch:"diff",env:"text"};function df(e){if(!e)return"text";const n=(e.split("/").pop()||"").toLowerCase();if(n==="dockerfile")return"dockerfile";if(n==="makefile")return"text";const r=n.split("."),i=r.length>1&&r.pop()||"",s=gf[i]||i||"text";return Xi(s)}const kf=100*1024;function Ni(e){return e?e.includes("/")?e:`/${e}`:"/"}function jt(e){let t=Ni(e);const n=["/root/clawd/","/root/"];for(const r of n)if(t.startsWith(r)){t="/"+t.slice(r.length);break}return t.startsWith("/")?t:`/${t}`}function xf(e){const n=e.replace(/\/+$/,"").split("/").pop()||"";return!n||n.startsWith(".")?!1:n.includes(".")}function yf(e){return e?e.endsWith("/")||!xf(e):!1}function bf(e,t){const n=String(e||"").toUpperCase(),r=String(t||"").toLowerCase();return n.includes("DIRECTORY")||r.includes("is a directory")||r.includes("directory")}function wf(e){return H.lexer(e).map(n=>n.raw)}function Oi(e){if(!e)return"text";const t=e.match(/language-([\w-]+)/);return t?t[1]:"text"}function $i(e){const t=e?.trim();return t&&t.split(/\s+/)[0]||void 0}const Sf={code:function({className:t,children:n,node:r}){if(!t?.includes("language-"))return P.jsx("code",{className:"rounded bg-primary-100 px-1.5 py-1 text-sm font-mono text-primary-900 border border-primary-200",children:n});const s=Oi(t),l=$i(r?.data?.meta);return P.jsx(Jt,{content:String(n??""),language:s,filename:l,className:"w-full"})},pre:function({children:t}){return P.jsx(P.Fragment,{children:t})},h1:function({children:t}){return P.jsx("h1",{className:"text-xl font-medium text-primary-950",children:t})},h2:function({children:t}){return P.jsx("h2",{className:"text-lg font-medium text-primary-900",children:t})},h3:function({children:t}){return P.jsx("h3",{className:"font-medium text-primary-900",children:t})},p:function({children:t}){return P.jsx("p",{className:"text-primary-950 text-pretty leading-relaxed",children:t})},ul:function({children:t}){return P.jsx("ul",{className:"ml-4 list-disc text-primary-950 marker:text-primary-400",children:t})},ol:function({children:t}){return P.jsx("ol",{className:"ml-4 list-decimal text-primary-950 marker:text-primary-500",children:t})},li:function({children:t}){return P.jsx("li",{className:"leading-relaxed",children:t})},blockquote:function({children:t}){return P.jsx("blockquote",{className:"border-l-2 border-primary-300 pl-4 text-primary-900 italic",children:t})},strong:function({children:t}){return P.jsx("strong",{className:"font-medium text-primary-950",children:t})},em:function({children:t}){return P.jsx("em",{className:"italic text-primary-950",children:t})},hr:function(){return P.jsx("hr",{className:"my-3 border-primary-200"})},table:function({children:t}){return P.jsx("div",{className:"overflow-x-auto",children:P.jsx("table",{className:"w-full border-collapse text-sm",children:t})})},thead:function({children:t}){return P.jsx("thead",{className:"border-b border-primary-200 bg-primary-50",children:t})},tbody:function({children:t}){return P.jsx("tbody",{className:"divide-y divide-primary-100",children:t})},tr:function({children:t}){return P.jsx("tr",{className:"transition-colors hover:bg-primary-50/50",children:t})},th:function({children:t}){return P.jsx("th",{className:"px-3 py-2 text-left font-medium text-primary-950",children:t})},td:function({children:t}){return P.jsx("td",{className:"px-3 py-2 text-primary-950",children:t})}};function Cf(e,t=!1){return{...Sf,a:function({children:r,href:i}){const s=Di(i);return s?P.jsx("button",{type:"button",onClick:()=>e(s),className:"font-mono text-[var(--opencami-accent)] underline decoration-[var(--opencami-accent-light)] underline-offset-4 hover:opacity-90 cursor-pointer",children:r}):P.jsx("a",{href:i,onClick:l=>{i?.startsWith("openclaw-file://")&&l.preventDefault()},className:"text-[var(--opencami-accent)] underline decoration-[var(--opencami-accent-light)] underline-offset-4 transition-opacity hover:opacity-90",target:"_blank",rel:"noopener noreferrer",children:r})},code:function({children:r,className:i,node:s}){if(i?.includes("language-")){const o=Oi(i),a=$i(s?.data?.meta);return P.jsx(Jt,{content:String(r??""),language:o,filename:a,className:"w-full",isStreaming:t})}const l=typeof r=="string"?r:Array.isArray(r)?r.filter(o=>typeof o=="string").join(""):String(r??"");return l&&hf(l)?P.jsx("button",{type:"button",onClick:()=>e(l),className:"font-mono text-sm bg-primary-100 rounded px-1.5 py-0.5 text-primary-900 underline decoration-primary-300 underline-offset-4 hover:decoration-primary-600 cursor-pointer",children:r}):P.jsx("code",{className:"font-mono text-sm bg-primary-100 rounded px-1.5 py-0.5 text-primary-900",children:r})}}}const Bi=ce.memo(function({content:t,components:n}){return P.jsx(qu,{remarkPlugins:[rf,Ku,mf],components:n,children:t})},function(t,n){return t.content===n.content});Bi.displayName="MemoizedMarkdownBlock";function Ef(e,t){return t==="NOT_FOUND"||e===404?"File not found":t==="UNSUPPORTED_TYPE"?"Binary file":t==="FILE_TOO_LARGE"||e===413?"File too large":"Failed to load file preview"}function If({children:e,id:t,className:n,components:r,isStreaming:i=!1}){const s=ce.useId(),l=t??s,o=ce.useMemo(()=>wf(e),[e]),[a,u]=ce.useState({status:"idle"}),c=Gi(),h=ce.useCallback(y=>{const k=jt(y);Ct.getState().navigateTo(k),u({status:"idle"}),c({to:"/files"})},[c]),p=ce.useCallback(y=>{const k=Ni(y);if(yf(k)){h(k);return}u({status:"loading",path:k})},[h]),f=ce.useMemo(()=>Cf(p,i),[i,p]),d=ce.useMemo(()=>({...f,...r||{}}),[f,r]);ce.useEffect(()=>{if(a.status!=="loading")return;const y=a.path,k=new AbortController;return fetch(`/api/files/read?path=${encodeURIComponent(y)}`,{signal:k.signal}).then(async E=>{const C=await E.json().catch(()=>({}));if(!E.ok){if(bf(C.code,C.message)){h(y);return}const S=Ef(E.status,C.code);u({status:"error",path:y,message:S});return}if(Number(C.size??0)>kf){u({status:"error",path:y,message:"File too large"});return}const F=String(C.content??"");u({status:"success",path:y,content:F,language:df(y)})}).catch(()=>{k.signal.aborted||u({status:"error",path:y,message:"Failed to load file preview"})}),()=>k.abort()},[a,h]);const b=a.status!=="idle";return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:tl("flex min-w-0 max-w-full flex-col gap-2 overflow-x-hidden",n),onClickCapture:y=>{const E=y.target?.closest?.('a[href^="openclaw-file://"]');if(!E)return;const C=Di(E.getAttribute("href")??void 0);C&&(y.preventDefault(),y.stopPropagation(),p(C))},children:o.map((y,k)=>P.jsx(Bi,{content:y,components:d},`${l}-block-${k}`))}),P.jsx(Yi,{open:b,onOpenChange:y=>{y||u({status:"idle"})},children:P.jsxs(Ji,{className:"w-[min(1000px,95vw)] max-h-[88vh] overflow-hidden p-0",children:[P.jsxs("div",{className:"border-b border-primary-200 px-4 py-3 flex items-start justify-between gap-3",children:[P.jsxs("div",{className:"min-w-0",children:[P.jsx(Ki,{className:"text-base",children:"File Preview"}),a.status!=="idle"&&P.jsx("p",{className:"text-xs text-primary-600 font-mono truncate",children:a.path})]}),P.jsxs("div",{className:"flex items-center gap-2",children:[a.status!=="idle"&&P.jsx(Fn,{variant:"ghost",size:"sm",asChild:!0,children:P.jsx(Pn,{to:"/files",onClick:()=>{const y=a.status!=="idle"?jt(a.path):"";if(y){const k=y.includes("/")&&y.slice(0,y.lastIndexOf("/"))||"/";Ct.getState().navigateTo(k)}u({status:"idle"})},children:"Open in Explorer"})}),a.status!=="idle"&&P.jsx(Fn,{variant:"ghost",size:"sm",asChild:!0,children:P.jsx(Pn,{to:"/files",onClick:()=>{const y=a.status!=="idle"?jt(a.path):"";y&&Ct.getState().openInEditor(y),u({status:"idle"})},children:"Open in Editor"})}),P.jsx(el,{children:"Close"})]})]}),P.jsxs("div",{className:"p-4 overflow-auto max-h-[calc(88vh-72px)]",children:[a.status==="loading"&&P.jsx("p",{className:"text-sm text-primary-600",children:"Loading preview…"}),a.status==="error"&&P.jsx("p",{className:"text-sm text-red-600",children:a.message}),a.status==="success"&&P.jsx(Jt,{content:a.content,language:a.language,className:"w-full"})]})]})})]})}const Tf=ce.memo(If);Tf.displayName="Markdown";export{Tf as M};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/memory-screen-Bm4NMAnU.js","assets/main-CQKtcNr3.js","assets/useQuery-Boaa6oF3.js","assets/useMutation-rx8UH99I.js","assets/button-8ab4wOwy.js","assets/markdown-DFJF-FsV.js","assets/index-BXiha-Vz.js","assets/react-WkSlhZJd.js","assets/use-file-explorer-state-BYVzjwPA.js","assets/useBaseUiId-DiwX_3so.js","assets/event-DG3RKJz8.js","assets/popupStateMapping-DkI2OCkW.js","assets/visuallyHidden-COI6QeQH.js","assets/composite-B2qsrzf3.js","assets/index-T4TOjvD0.js"])))=>i.map(i=>d[i]);
2
+ import{j as e,r,_ as s}from"./main-CQKtcNr3.js";const n=r.lazy(()=>s(()=>import("./memory-screen-Bm4NMAnU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>({default:t.MemoryScreen})));function a(){return e.jsx(r.Suspense,{fallback:e.jsx("div",{className:"flex h-screen items-center justify-center text-primary-500 text-sm",children:"Loading…"}),children:e.jsx(n,{})})}export{a as component};