comp-hub 0.1.14 → 0.1.16

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 (54) hide show
  1. package/dist/website/dist/assets/{atom-one-dark-BwmybF0s.js → atom-one-dark-C8u-1dd1.js} +1 -1
  2. package/dist/website/dist/assets/index-8cEtbT3O.js +1 -0
  3. package/dist/website/dist/assets/{index-Dq0blRri.css → index-B9WN-WSz.css} +1 -1
  4. package/dist/website/dist/assets/{index-qqhGQ9ov.js → index-BDuN8NeP.js} +27 -27
  5. package/dist/website/dist/assets/index-BOfoxPL-.js +1 -0
  6. package/dist/website/dist/assets/index-BXnL5GlT.js +1 -0
  7. package/dist/website/dist/assets/{index-DuA_FMrx.js → index-BbU2mVcC.js} +5 -5
  8. package/dist/website/dist/assets/{index-MmOZc86g.js → index-C0SGaR4J.js} +1 -1
  9. package/dist/website/dist/assets/index-C8LSpT-z.css +1 -0
  10. package/dist/website/dist/assets/index-CB7JXyjj.css +1 -0
  11. package/dist/website/dist/assets/index-CLMaeILH.js +1 -0
  12. package/dist/website/dist/assets/index-CczN5fLz.css +1 -0
  13. package/dist/website/dist/assets/{index-C6ykT5DB.js → index-DC7eamiy.js} +1 -1
  14. package/dist/website/dist/assets/index-DH9qVX3y.js +1 -0
  15. package/dist/website/dist/assets/index-DctCZKbD.css +1 -0
  16. package/dist/website/dist/assets/index-DhKRQfS3.js +1 -0
  17. package/dist/website/dist/assets/index-DjnoPitg.js +10 -0
  18. package/dist/website/dist/assets/index-Dndizr_2.js +1 -0
  19. package/dist/website/dist/assets/index-Dt0F6rkY.js +1 -0
  20. package/dist/website/dist/assets/index-Dy-UmOsw.js +1 -0
  21. package/dist/website/dist/assets/index-SRPHXpr5.js +1 -0
  22. package/dist/website/dist/assets/index-fiBRIyYr.css +1 -0
  23. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-CDCqDNpH.js → index.vue_vue_type_script_setup_true_lang-BaKY9guh.js} +1 -1
  24. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-BdvpltCF.js → index.vue_vue_type_script_setup_true_lang-BrlIS8wK.js} +1 -1
  25. package/dist/website/dist/assets/index.vue_vue_type_script_setup_true_lang-C54Zykk3.js +1 -0
  26. package/dist/website/dist/assets/{index.vue_vue_type_script_setup_true_lang-C4cvy6a2.js → index.vue_vue_type_script_setup_true_lang-CGqaVhym.js} +1 -1
  27. package/dist/website/dist/assets/index.vue_vue_type_script_setup_true_lang-CXaPCvf4.js +1 -0
  28. package/dist/website/dist/assets/index.vue_vue_type_script_setup_true_lang-FvgCOROY.js +1 -0
  29. package/dist/website/dist/assets/{index.vue_vue_type_style_index_0_lang-D1ljrTvy.js → index.vue_vue_type_style_index_0_lang-BBsxZQZT.js} +2 -2
  30. package/dist/website/dist/assets/{md5-DgSw8kO8.js → md5-CMJCUOOG.js} +1 -1
  31. package/dist/website/dist/index.html +2 -2
  32. package/dist/website/dist/md/COMP_REPEAT.md +20 -20
  33. package/dist/website/dist/md/PUT_TREATY.md +68 -68
  34. package/package.json +1 -1
  35. package/dist/website/dist/assets/index-B1ZA_Gp3.js +0 -1
  36. package/dist/website/dist/assets/index-B64KcJZG.js +0 -1
  37. package/dist/website/dist/assets/index-BDDqCvkc.js +0 -1
  38. package/dist/website/dist/assets/index-Bga5l3sA.js +0 -1
  39. package/dist/website/dist/assets/index-Bix0h4dT.js +0 -10
  40. package/dist/website/dist/assets/index-C3pHoUWG.js +0 -1
  41. package/dist/website/dist/assets/index-C78mSqAp.js +0 -1
  42. package/dist/website/dist/assets/index-CJS-qcNg.js +0 -1
  43. package/dist/website/dist/assets/index-CWDRcuvp.css +0 -1
  44. package/dist/website/dist/assets/index-CbSqrxm2.js +0 -1
  45. package/dist/website/dist/assets/index-Ck4C1E7S.css +0 -1
  46. package/dist/website/dist/assets/index-Cp2VkTzN.js +0 -1
  47. package/dist/website/dist/assets/index-CpiNrXF0.js +0 -1
  48. package/dist/website/dist/assets/index-DZKQQB5Z.js +0 -1
  49. package/dist/website/dist/assets/index-DzIqUKJQ.css +0 -1
  50. package/dist/website/dist/assets/index-LH-PwDzI.css +0 -1
  51. package/dist/website/dist/assets/index-Yu34eIW7.css +0 -1
  52. package/dist/website/dist/assets/index-c8iDd6t4.js +0 -1
  53. package/dist/website/dist/assets/index-dExr9we_.css +0 -1
  54. package/dist/website/dist/assets/index.vue_vue_type_script_setup_true_lang-Bzeh0ahZ.js +0 -1
@@ -1,4 +1,4 @@
1
- var pt=Object.defineProperty;var gt=(t,e,n)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>gt(t,typeof e!="symbol"?e+"":e,n);import{H as Y}from"./atom-one-dark-BwmybF0s.js";import{d as qe,h as ae,G as Dt,a2 as ft,a0 as mt,c as Ft,o as Ue,a as oe,ao as Ze,B as bt,p as kt,K as Et,k as Ct,A as At,w as xt,ax as wt,n as yt,aw as Bt}from"./index-qqhGQ9ov.js";function Ae(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var X=Ae();function Ge(t){X=t}var te={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(B.caret,"$1"),n=n.replace(r,o),s},getRegex:()=>new RegExp(n,e)};return s}var B={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},St=/^(?:[ \t]*(?:\n|$))+/,Tt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,re=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_t=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xe=/(?:[*+-]|\d{1,9}[.)])/,je=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qe=k(je).replace(/bull/g,xe).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(),Rt=k(je).replace(/bull/g,xe).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(),we=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Nt=/^[^\n]+/,ye=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$t=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ye).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lt=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xe).getRegex(),pe="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",Be=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,It=k("^ {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",Be).replace("tag",pe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=k(we).replace("hr",re).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",pe).getRegex(),Ot=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),Se={blockquote:Ot,code:Tt,def:$t,fences:vt,heading:_t,hr:re,html:It,lheading:Qe,list:Lt,newline:St,paragraph:Xe,table:te,text:Nt},Ne=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",re).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",pe).getRegex(),zt={...Se,lheading:Rt,table:Ne,paragraph:k(we).replace("hr",re).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ne).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",pe).getRegex()},Mt={...Se,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Be).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:te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(we).replace("hr",re).replace("heading",` *#{1,6} *[^
1
+ var pt=Object.defineProperty;var gt=(t,e,n)=>e in t?pt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>gt(t,typeof e!="symbol"?e+"":e,n);import{H as Y}from"./atom-one-dark-C8u-1dd1.js";import{d as qe,h as ae,G as Dt,a2 as ft,a0 as mt,c as Ft,o as Ue,a as oe,ao as Ze,B as bt,p as kt,K as Et,k as Ct,A as At,w as xt,ax as wt,n as yt,aw as Bt}from"./index-BDuN8NeP.js";function Ae(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var X=Ae();function Ge(t){X=t}var te={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(B.caret,"$1"),n=n.replace(r,o),s},getRegex:()=>new RegExp(n,e)};return s}var B={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},St=/^(?:[ \t]*(?:\n|$))+/,Tt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,re=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_t=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xe=/(?:[*+-]|\d{1,9}[.)])/,je=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Qe=k(je).replace(/bull/g,xe).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(),Rt=k(je).replace(/bull/g,xe).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(),we=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Nt=/^[^\n]+/,ye=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$t=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ye).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lt=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xe).getRegex(),pe="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",Be=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,It=k("^ {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",Be).replace("tag",pe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=k(we).replace("hr",re).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",pe).getRegex(),Ot=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),Se={blockquote:Ot,code:Tt,def:$t,fences:vt,heading:_t,hr:re,html:It,lheading:Qe,list:Lt,newline:St,paragraph:Xe,table:te,text:Nt},Ne=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",re).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",pe).getRegex(),zt={...Se,lheading:Rt,table:Ne,paragraph:k(we).replace("hr",re).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ne).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",pe).getRegex()},Mt={...Se,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Be).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:te,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(we).replace("hr",re).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Qe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ht=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,We=/^( {2,}|\\)\n(?!\s*$)/,qt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ge=/[\p{P}\p{S}]/u,Te=/[\s\p{P}\p{S}]/u,Ke=/[^\s\p{P}\p{S}]/u,Ut=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Te).getRegex(),Ve=/(?!~)[\p{P}\p{S}]/u,Zt=/(?!~)[\s\p{P}\p{S}]/u,Gt=/(?:[^\s\p{P}\p{S}]|~)/u,jt=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ye=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Qt=k(Ye,"u").replace(/punct/g,ge).getRegex(),Xt=k(Ye,"u").replace(/punct/g,Ve).getRegex(),Je="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Wt=k(Je,"gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Te).replace(/punct/g,ge).getRegex(),Kt=k(Je,"gu").replace(/notPunctSpace/g,Gt).replace(/punctSpace/g,Zt).replace(/punct/g,Ve).getRegex(),Vt=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ke).replace(/punctSpace/g,Te).replace(/punct/g,ge).getRegex(),Yt=k(/\\(punct)/,"gu").replace(/punct/g,ge).getRegex(),Jt=k(/^<(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(),en=k(Be).replace("(?:-->|$)","-->").getRegex(),tn=k("^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",en).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,nn=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),et=k(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",ye).getRegex(),tt=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",ye).getRegex(),rn=k("reflink|nolink(?!\\()","g").replace("reflink",et).replace("nolink",tt).getRegex(),ve={_backpedal:te,anyPunctuation:Yt,autolink:Jt,blockSkip:jt,br:We,code:Ht,del:te,emStrongLDelim:Qt,emStrongRDelimAst:Wt,emStrongRDelimUnd:Vt,escape:Pt,link:nn,nolink:tt,punctuation:Ut,reflink:et,reflinkSearch:rn,tag:tn,text:qt,url:te},sn={...ve,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",ce).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ce).getRegex()},be={...ve,emStrongRDelimAst:Kt,emStrongLDelim:Xt,url:k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ln={...be,br:k(We).replace("{2,}","*").getRegex(),text:k(be.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},le={normal:Se,gfm:zt,pedantic:Mt},J={normal:ve,gfm:be,breaks:ln,pedantic:sn},an={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$e=t=>an[t];function I(t,e){if(e){if(B.escapeTest.test(t))return t.replace(B.escapeReplace,$e)}else if(B.escapeTestNoEncode.test(t))return t.replace(B.escapeReplaceNoEncode,$e);return t}function Le(t){try{t=encodeURI(t).replace(B.percentDecode,"%")}catch{return null}return t}function Ie(t,e){var i;let n=t.replace(B.findPipe,(o,a,u)=>{let l=!1,c=a;for(;--c>=0&&u[c]==="\\";)l=!l;return l?"|":" |"}),s=n.split(B.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!((i=s.at(-1))!=null&&i.trim())&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(B.slashPipe,"|");return s}function ee(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function on(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function Oe(t,e,n,s,r){let i=e.href,o=e.title||null,a=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let u={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,u}function un(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
3
3
  `).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[a]=o;return a.length>=r.length?i.slice(r.length):i}).join(`
4
4
  `)}var de=class{constructor(t){A(this,"options");A(this,"rules");A(this,"lexer");this.options=t||X}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ee(n,`
@@ -58,4 +58,4 @@ ${t}</tr>
58
58
  `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${I(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let s=this.parser.parseInline(n),r=Le(t);if(r===null)return s;t=r;let i='<a href="'+t+'"';return e&&(i+=' title="'+I(e)+'"'),i+=">"+s+"</a>",i}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Le(t);if(r===null)return I(n);t=r;let i=`<img src="${t}" alt="${n}"`;return e&&(i+=` title="${I(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:I(t.text)}},_e=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},P=class Ee{constructor(e){A(this,"options");A(this,"renderer");A(this,"textRenderer");this.options=e||X,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _e}static parse(e,n){return new Ee(n).parse(e)}static parseInline(e,n){return new Ee(n).parseInline(e)}parse(e,n=!0){var r,i;let s="";for(let o=0;o<e.length;o++){let a=e[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[a.type]){let l=a,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=c||"";continue}}let u=a;switch(u.type){case"space":{s+=this.renderer.space(u);continue}case"hr":{s+=this.renderer.hr(u);continue}case"heading":{s+=this.renderer.heading(u);continue}case"code":{s+=this.renderer.code(u);continue}case"table":{s+=this.renderer.table(u);continue}case"blockquote":{s+=this.renderer.blockquote(u);continue}case"list":{s+=this.renderer.list(u);continue}case"html":{s+=this.renderer.html(u);continue}case"def":{s+=this.renderer.def(u);continue}case"paragraph":{s+=this.renderer.paragraph(u);continue}case"text":{let l=u,c=this.renderer.text(l);for(;o+1<e.length&&e[o+1].type==="text";)l=e[++o],c+=`
59
59
  `+this.renderer.text(l);n?s+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):s+=c;continue}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}parseInline(e,n=this.renderer){var r,i;let s="";for(let o=0;o<e.length;o++){let a=e[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=l||"";continue}}let u=a;switch(u.type){case"escape":{s+=n.text(u);break}case"html":{s+=n.html(u);break}case"link":{s+=n.link(u);break}case"image":{s+=n.image(u);break}case"strong":{s+=n.strong(u);break}case"em":{s+=n.em(u);break}case"codespan":{s+=n.codespan(u);break}case"br":{s+=n.br(u);break}case"del":{s+=n.del(u);break}case"text":{s+=n.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}},Fe,ue=(Fe=class{constructor(t){A(this,"options");A(this,"block");this.options=t||X}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?M.lex:M.lexInline}provideParser(){return this.block?P.parse:P.parseInline}},A(Fe,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Fe),cn=class{constructor(...t){A(this,"defaults",Ae());A(this,"options",this.setOptions);A(this,"parse",this.parseMarkdown(!0));A(this,"parseInline",this.parseMarkdown(!1));A(this,"Parser",P);A(this,"Renderer",he);A(this,"TextRenderer",_e);A(this,"Lexer",M);A(this,"Tokenizer",de);A(this,"Hooks",ue);this.use(...t)}walkTokens(t,e){var s,r;let n=[];for(let i of t)switch(n=n.concat(e.call(this,i)),i.type){case"table":{let o=i;for(let a of o.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let u of a)n=n.concat(this.walkTokens(u.tokens,e));break}case"list":{let o=i;n=n.concat(this.walkTokens(o.items,e));break}default:{let o=i;(r=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let u=o[a].flat(1/0);n=n.concat(this.walkTokens(u,e))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=e.renderers[r.name];i?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[r.level];i?i.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new he(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,a=n.renderer[o],u=r[o];r[o]=(...l)=>{let c=a.apply(r,l);return c===!1&&(c=u.apply(r,l)),c||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new de(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,a=n.tokenizer[o],u=r[o];r[o]=(...l)=>{let c=a.apply(r,l);return c===!1&&(c=u.apply(r,l)),c}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new ue;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,a=n.hooks[o],u=r[o];ue.passThroughHooks.has(i)?r[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(r,l)).then(h=>u.call(r,h));let c=a.call(r,l);return u.call(r,c)}:r[o]=(...l)=>{let c=a.apply(r,l);return c===!1&&(c=u.apply(r,l)),c}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return M.lex(t,e??this.defaults)}parser(t,e){return P.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return i(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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=t);let o=r.hooks?r.hooks.provideLexer():t?M.lex:M.lexInline,a=r.hooks?r.hooks.provideParser():t?P.parse:P.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(u=>o(u,r)).then(u=>r.hooks?r.hooks.processAllTokens(u):u).then(u=>r.walkTokens?Promise.all(this.walkTokens(u,r.walkTokens)).then(()=>u):u).then(u=>a(u,r)).then(u=>r.hooks?r.hooks.postprocess(u):u).catch(i);try{r.hooks&&(e=r.hooks.preprocess(e));let u=o(e,r);r.hooks&&(u=r.hooks.processAllTokens(u)),r.walkTokens&&this.walkTokens(u,r.walkTokens);let l=a(u,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(u){return i(u)}}}onError(t,e){return n=>{if(n.message+=`
60
60
  Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+I(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},Q=new cn;function b(t,e){return Q.parse(t,e)}b.options=b.setOptions=function(t){return Q.setOptions(t),b.defaults=Q.defaults,Ge(b.defaults),b};b.getDefaults=Ae;b.defaults=X;b.use=function(...t){return Q.use(...t),b.defaults=Q.defaults,Ge(b.defaults),b};b.walkTokens=function(t,e){return Q.walkTokens(t,e)};b.parseInline=Q.parseInline;b.Parser=P;b.parser=P.parse;b.Renderer=he;b.TextRenderer=_e;b.Lexer=M;b.lexer=M.lex;b.Tokenizer=de;b.Hooks=ue;b.parse=b;b.options;b.setOptions;b.use;b.walkTokens;b.parseInline;P.parse;M.lex;function ze(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(i,{begin:/\(/,end:/\)/}),a=t.inherit(t.APOS_STRING_MODE,{className:"string"}),u=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,u,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,u,a]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Me="[A-Za-z$_][0-9A-Za-z$_]*",dn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],hn=["true","false","null","undefined","NaN","Infinity"],nt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],st=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],gn=[].concat(st,nt,rt);function Dn(t){const e=t.regex,n=(T,{after:q})=>{const z="</"+T[0].slice(1);return T.input.indexOf(z,q)!==-1},s=Me,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(T,q)=>{const z=T[0].length+T.index,U=T.input[z];if(U==="<"||U===","){q.ignoreMatch();return}U===">"&&(n(T,{after:z})||q.ignoreMatch());let G;const ie=T.input.substring(z);if(G=ie.match(/^\s*=/)){q.ignoreMatch();return}if((G=ie.match(/^\s+extends\s+/))&&G.index===0){q.ignoreMatch();return}}},a={$pattern:Me,keyword:dn,literal:hn,built_in:gn,"variable.language":pn},u="[0-9](_?[0-9])*",l=`\\.(${u})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},D={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},F={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},S={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},O=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,D,g,F,y,{match:/\$\d+/},h];d.contains=O.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(O)});const L=[].concat(S,d.contains),H=L.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(L)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H},_={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,e.concat(s,"(",e.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...nt,...rt]}},De={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},p={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},f={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function E(T){return e.concat("(?!",T.join("|"),")")}const C={match:e.concat(/\b/,E([...st,"super","import"].map(T=>`${T}\\s*\\(`)),s,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},x={begin:e.concat(/\./,e.lookahead(e.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",se={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:W},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),De,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,D,g,F,y,S,{match:/\$\d+/},h,W,{scope:"attr",match:s+e.lookahead(":"),relevance:0},se,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,t.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},p,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},x,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},C,f,_,K,{match:/\$[(.]/}]}}const fn=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),mn=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Fn=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],bn=[...mn,...Fn],kn=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),En=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Cn=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),An=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function xn(t){const e=t.regex,n=fn(t),s={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",i=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,s,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+En.join("|")+")"},{begin:":(:)?("+Cn.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+An.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:kn.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+bn.join("|")+")\\b"}]}}const wn=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,yn=Object.hasOwnProperty;class it{constructor(){this.occurrences,this.reset()}slug(e,n){const s=this;let r=Bn(e,n===!0);const i=r;for(;yn.call(s.occurrences,r);)s.occurrences[i]++,r=i+"-"+s.occurrences[i];return s.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}}function Bn(t,e){return typeof t!="string"?"":(e||(t=t.toLowerCase()),t.replace(wn,"").replace(/ /g,"-"))}let lt=new it,at=[];const Sn=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Tn(t){return t.replace(Sn,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}function vn({prefix:t="",globalSlugs:e=!1}={}){return{headerIds:!1,hooks:{preprocess(n){return e||_n(),n}},useNewRenderer:!0,renderer:{heading({tokens:n,depth:s}){const r=this.parser.parseInline(n),i=Tn(r).trim().replace(/<[!\/a-z].*?>/gi,""),o=s,a=`${t}${lt.slug(i.toLowerCase())}`,u={level:o,text:r,id:a,raw:i};return at.push(u),`<h${o} id="${a}">${r}</h${o}>
61
- `}}}}function _n(){at=[],lt=new it}function Rn(t){const e=[].forEach,n=[].some,s=typeof window<"u"&&document.body,r=" ";let i,o=!0,a=0;function u(p,f){const E=f.appendChild(c(p));if(p.children.length){const C=h(p.isCollapsed);p.children.forEach(x=>{u(x,C)}),E.appendChild(C)}}function l(p,f){const C=h(!1);if(f.forEach(x=>{u(x,C)}),i=p||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),f.length===0?i:i.appendChild(C)}function c(p){const f=document.createElement("li"),E=document.createElement("a");return t.listItemClass&&f.setAttribute("class",t.listItemClass),t.onClick&&(E.onclick=t.onClick),t.includeTitleTags&&E.setAttribute("title",p.textContent),t.includeHtml&&p.childNodes.length?e.call(p.childNodes,C=>{E.appendChild(C.cloneNode(!0))}):E.textContent=p.textContent,E.setAttribute("href",`${t.basePath}#${p.id}`),E.setAttribute("class",`${t.linkClass+r}node-name--${p.nodeName}${r}${t.extraLinkClasses}`),f.appendChild(E),f}function h(p){const f=t.orderedList?"ol":"ul",E=document.createElement(f);let C=t.listClass+r+t.extraListClasses;return p&&(C=C+r+t.collapsibleClass,C=C+r+t.isCollapsedClass),E.setAttribute("class",C),E}function d(){const p=_(),f=document.querySelector(t.positionFixedSelector);t.fixedSidebarOffset==="auto"&&(t.fixedSidebarOffset=i.offsetTop),p>t.fixedSidebarOffset?f.className.indexOf(t.positionFixedClass)===-1&&(f.className+=r+t.positionFixedClass):f.className=f.className.replace(r+t.positionFixedClass,"")}function D(p){let f=0;return p!==null&&(f=p.offsetTop,t.hasInnerContainers&&(f+=D(p.offsetParent))),f}function g(p,f){return p&&p.className!==f&&(p.className=f),p}function F(p,f){var V,se;t.positionFixedSelector&&d();const E=p,C=(V=f==null?void 0:f.target)!=null&&V.getAttribute?(se=f==null?void 0:f.target)==null?void 0:se.getAttribute("href"):null,x=C&&C.charAt(0)==="#"?L(C.replace("#","")):!1,K=o||x;if(f&&a<5&&a++,K&&i&&E.length>0){const T=W(E),q=i.querySelector(`.${t.activeLinkClass}`),z=T.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),U=window.location.hash.replace("#","");let G=z;const ie=H();C&&x?G=C.replace("#",""):U&&U!==z&&ie&&(L(z)||a<=2)&&(G=U);const w=i.querySelector(`.${t.linkClass}[href="${t.basePath}#${G}"]`);if(q===w)return;const ct=i.querySelectorAll(`.${t.linkClass}`);e.call(ct,Z=>{g(Z,Z.className.replace(r+t.activeLinkClass,""))});const dt=i.querySelectorAll(`.${t.listItemClass}`);e.call(dt,Z=>{g(Z,Z.className.replace(r+t.activeListItemClass,""))}),w&&w.className.indexOf(t.activeLinkClass)===-1&&(w.className+=r+t.activeLinkClass);const fe=w==null?void 0:w.parentNode;fe&&fe.className.indexOf(t.activeListItemClass)===-1&&(fe.className+=r+t.activeListItemClass);const ht=i.querySelectorAll(`.${t.listClass}.${t.collapsibleClass}`);e.call(ht,Z=>{Z.className.indexOf(t.isCollapsedClass)===-1&&(Z.className+=r+t.isCollapsedClass)}),w!=null&&w.nextSibling&&w.nextSibling.className.indexOf(t.isCollapsedClass)!==-1&&g(w.nextSibling,w.nextSibling.className.replace(r+t.isCollapsedClass,"")),y(w==null?void 0:w.parentNode.parentNode)}}function y(p){return p&&p.className.indexOf(t.collapsibleClass)!==-1&&p.className.indexOf(t.isCollapsedClass)!==-1?(g(p,p.className.replace(r+t.isCollapsedClass,"")),y(p.parentNode.parentNode)):p}function R(p){const f=p.target||p.srcElement;typeof f.className!="string"||f.className.indexOf(t.linkClass)===-1||(o=!1)}function S(){o=!0}function O(){return o}function L(p){const f=v();return(document==null?void 0:document.getElementById(p)).offsetTop>f.offsetHeight-f.clientHeight*1.4-t.bottomModeThreshold}function H(){const p=v(),f=p.scrollHeight>p.clientHeight,E=_()+p.clientHeight>p.offsetHeight-t.bottomModeThreshold;return f&&E}function v(){let p;return t.scrollContainer&&document.querySelector(t.scrollContainer)?p=document.querySelector(t.scrollContainer):p=document.documentElement||s,p}function _(){const p=v();return(p==null?void 0:p.scrollTop)||0}function W(p,f=_()){let E;return n.call(p,(C,x)=>{if(D(C)>f+t.headingsOffset+10){const K=x===0?x:x-1;return E=p[K],!0}if(x===p.length-1)return E=p[p.length-1],!0}),E}function De(p){const f=_(),E=W(p,f),C=H();if((!E||f<5)&&!C)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(E&&!C){const x=`#${E.id}`;window.location.hash!==x&&window.history.pushState(null,null,x)}}return{enableTocAnimation:S,disableTocAnimation:R,render:l,updateToc:F,getCurrentlyHighlighting:O,getTopHeader:W,getScrollTop:_,updateUrlHashForHeader:De}}const Nn={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(t){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(t){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function $n(t){const e=[].reduce;function n(l){return l[l.length-1]}function s(l){return+l.nodeName.toUpperCase().replace("H","")}function r(l){try{return l instanceof window.HTMLElement||l instanceof window.parent.HTMLElement}catch{return l instanceof window.HTMLElement}}function i(l){if(!r(l))return l;if(t.ignoreHiddenElements&&(!l.offsetHeight||!l.offsetParent))return null;const c=l.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(l.innerText)):(l.innerText||l.textContent).trim()),h={id:l.id,children:[],nodeName:l.nodeName,headingLevel:s(l),textContent:c};return t.includeHtml&&(h.childNodes=l.childNodes),t.headingObjectCallback?t.headingObjectCallback(h,l):h}function o(l,c){const h=i(l),d=h.headingLevel;let D=c,g=n(D);const F=g?g.headingLevel:0;let y=d-F;for(;y>0&&(g=n(D),!(g&&d===g.headingLevel));)g&&g.children!==void 0&&(D=g.children),y--;return d>=t.collapseDepth&&(h.isCollapsed=!0),D.push(h),D}function a(l,c){let h=c;t.ignoreSelector&&(h=c.split(",").map(function(D){return`${D.trim()}:not(${t.ignoreSelector})`}));try{return l.querySelectorAll(h)}catch{return console.warn(`Headers not found with selector: ${h}`),null}}function u(l){return e.call(l,function(h,d){const D=i(d);return D&&o(D,h.nest),h},{nest:[]})}return{nestHeadingsArray:u,selectHeadings:a}}function Ln(t){var e=t.duration,n=t.offset;if(typeof window>"u"||typeof location>"u")return;var s=location.hash?o(location.href):location.href;r();function r(){document.body.addEventListener("click",u,!1);function u(l){!i(l.target)||l.target.className.indexOf("no-smooth-scroll")>-1||l.target.href.charAt(l.target.href.length-2)==="#"&&l.target.href.charAt(l.target.href.length-1)==="!"||l.target.className.indexOf(t.linkClass)===-1||In(l.target.hash,{duration:e,offset:n,callback:function(){a(l.target.hash)}})}}function i(u){return u.tagName.toLowerCase()==="a"&&(u.hash.length>0||u.href.charAt(u.href.length-1)==="#")&&(o(u.href)===s||o(u.href)+"#"===s)}function o(u){return u.slice(0,u.lastIndexOf("#"))}function a(u){var l=document.getElementById(u.substring(1));l&&(/^(?:a|select|input|button|textarea)$/i.test(l.tagName)||(l.tabIndex=-1),l.focus())}}function In(t,e){var n=window.pageYOffset,s={duration:e.duration,offset:e.offset||0,callback:e.callback,easing:e.easing||h},r=document.querySelector('[id="'+decodeURI(t).split("#").join("")+'"]')||document.querySelector('[id="'+t.split("#").join("")+'"]'),i=typeof t=="string"?s.offset+(t?r&&r.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):t,o=typeof s.duration=="function"?s.duration(i):s.duration,a,u;requestAnimationFrame(function(d){a=d,l(d)});function l(d){u=d-a,window.scrollTo(0,s.easing(u,n,i,o)),u<o?requestAnimationFrame(l):c()}function c(){window.scrollTo(0,n+i),typeof s.callback=="function"&&s.callback()}function h(d,D,g,F){return d/=F/2,d<1?g/2*d*d+D:(d--,-g/2*(d*(d-2)-1)+D)}}function On(t){const e=t.tocScrollingWrapper||t.tocElement||document.querySelector(t.tocSelector);if(e&&e.scrollHeight>e.clientHeight){const n=e.querySelector(`.${t.activeListItemClass}`);if(n){const r=n.offsetTop-t.tocScrollOffset;e.scrollTop=r>0?r:0}}}let m={},N,me,j,$,ne;function ot(t){let e=!1;m=Pn(Nn,t||{}),m.scrollSmooth&&(m.duration=m.scrollSmoothDuration,m.offset=m.scrollSmoothOffset,Ln(m)),N=Rn(m),me=$n(m),Re();const n=qn(m);if(n===null)return;const s=ut(m);if(s===null||(j=me.selectHeadings(n,m.headingSelector),j===null))return;const i=me.nestHeadingsArray(j).nest;if(!m.skipRendering)N.render(s,i);else return this;let o=!1;const a=m.scrollHandlerTimeout||m.throttleTimeout;$=((c,h)=>Hn(c,h,m.scrollHandlerType))(c=>{var d,D,g;N.updateToc(j,c),!m.disableTocScrollSync&&!o&&On(m),m.enableUrlHashUpdateOnScroll&&e&&N.getCurrentlyHighlighting()&&N.updateUrlHashForHeader(j);const h=((D=(d=c==null?void 0:c.target)==null?void 0:d.scrollingElement)==null?void 0:D.scrollTop)===0;(c&&(c.eventPhase===0||c.currentTarget===null)||h)&&(N.updateToc(j),(g=m.scrollEndCallback)==null||g.call(m,c))},a),e||($(),e=!0),window.onhashchange=window.onscrollend=c=>{$(c)},m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).addEventListener("scroll",$,!1),document.querySelector(m.scrollContainer).addEventListener("resize",$,!1)):(document.addEventListener("scroll",$,!1),document.addEventListener("resize",$,!1));let l=null;ne=Ce(c=>{o=!0,m.scrollSmooth&&N.disableTocAnimation(c),N.updateToc(j,c),l&&clearTimeout(l),l=setTimeout(()=>{N.enableTocAnimation()},m.scrollSmoothDuration),setTimeout(()=>{o=!1},m.scrollSmoothDuration+100)},m.throttleTimeout),m.scrollContainer&&document.querySelector(m.scrollContainer)?document.querySelector(m.scrollContainer).addEventListener("click",ne,!1):document.addEventListener("click",ne,!1)}function Re(){const t=ut(m);t!==null&&(m.skipRendering||t&&(t.innerHTML=""),m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).removeEventListener("scroll",$,!1),document.querySelector(m.scrollContainer).removeEventListener("resize",$,!1),N&&document.querySelector(m.scrollContainer).removeEventListener("click",ne,!1)):(document.removeEventListener("scroll",$,!1),document.removeEventListener("resize",$,!1),N&&document.removeEventListener("click",ne,!1)))}function zn(t){Re(),ot(t||m)}const Mn=Object.prototype.hasOwnProperty;function Pn(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)Mn.call(s,r)&&(e[r]=s[r])}return e}function Ce(t,e,n){e||(e=250);let s,r;return function(...i){const o=this,a=+new Date;s&&a<s+e?(clearTimeout(r),r=setTimeout(()=>{s=a,t.apply(o,i)},e)):(s=a,t.apply(o,i))}}function Pe(t,e){let n;return(...s)=>{clearTimeout(n),n=setTimeout(()=>t.apply(this,s),e)}}function Hn(t,e,n="auto"){switch(n){case"debounce":return Pe(t,e);case"throttle":return Ce(t,e);default:return e<334?Pe(t,e):Ce(t,e)}}function qn(t){try{return t.contentElement||document.querySelector(t.contentSelector)}catch{return console.warn(`Contents element not found: ${t.contentSelector}`),null}}function ut(t){try{return t.tocElement||document.querySelector(t.tocSelector)}catch{return console.warn(`TOC element not found: ${t.tocSelector}`),null}}const He={destroy:Re,init:ot,refresh:zn},Un=qe({__name:"index",props:{contentSelector:{},headingSelector:{default:"h1,h2,h3,h4,h5,h6"},scrollContainer:{}},setup(t,{expose:e}){const n=t,s=kt(),r=Et(),i=ae(!1),o=async()=>{He.destroy();const h=document.querySelector(n.contentSelector);if(!h)return;const d=document.querySelector(n.scrollContainer);d&&(d.addEventListener("scroll",bt.debounce(a,300)),He.init({tocSelector:"#toc",contentSelector:n.contentSelector,headingSelector:n.headingSelector,collapseDepth:6,onClick:function(D){D.preventDefault(),D.stopPropagation();const g=D.target.getAttribute("href"),F=h.querySelector(g);F&&(i.value=!0,d.scrollTo({top:F.offsetTop,behavior:"smooth"}),c(g))}}),l())};function a(){console.log("滚动结束!"),i.value=!1}const u=()=>{const h=n.headingSelector.split(",").map(D=>`${n.contentSelector} ${D.trim()}`).join(",");return document.querySelectorAll(h)},l=()=>{const h=document.querySelector(n.contentSelector),d=document.querySelector(n.scrollContainer);if(!d||!h)return;const D=u();if(!D.length)return;let g="";const F=new IntersectionObserver(y=>{const R=[];if(y.forEach(S=>{S.isIntersecting&&R.push(S.target)}),R.length>0){R.sort((O,L)=>O.getBoundingClientRect().top-L.getBoundingClientRect().top);const S=R[0].id;S!==g&&!i.value&&(g=S,s.replace({...r,hash:`#${g}`}))}},{root:d,rootMargin:"0px 0px -80% 0px",threshold:0});return D.forEach(y=>{F.observe(y)}),()=>{F.disconnect()}},c=h=>{document.querySelectorAll("#toc a.toc-link").forEach(D=>{const g=D.closest("li.toc-list-item"),F=D.getAttribute("href")===h;D.classList.toggle("is-active-link",F),g&&g.classList.toggle("is-active-li",F)})};return Dt(()=>{l()}),ft(()=>r.hash,async h=>{h&&c(h)},{immediate:!0}),mt(()=>{c(r.hash)}),e({initToc:o}),(h,d)=>(Ue(),Ft("div",null,[d[0]||(d[0]=oe("nav",{id:"toc",class:"sticky top-2"},null,-1)),Ze(h.$slots,"default")]))}}),Zn={class:"flex-1 p-[10px] flex flex-col"},Gn={class:"md-content break-all"},jn=["innerHTML"],Kn=qe({__name:"index",props:{src:{},showToc:{type:Boolean,default:!1},scrollContainer:{}},setup(t){Y.registerLanguage("xml",ze),Y.registerLanguage("js",Dn),Y.registerLanguage("css",xn),Y.registerLanguage("vue",ze),b.use(vn({prefix:""}));const e=t,n=ae(""),s=ae(),r=ae(!1);return Ct(async()=>{var i;try{if(!e.src){n.value="作者没有配置README.md文件",r.value=!0;return}const a=await(await fetch(e.src)).text();n.value=await b.parse(a),await wt(),Y.highlightAll(),e.showToc&&((i=s.value)==null||i.initToc()),r.value=!0}catch(o){n.value="加载失败:"+o}}),(i,o)=>(Ue(),At(Un,{contentSelector:".md-content",scrollContainer:i.scrollContainer||".prose",class:"flex items-start p-[5px]",ref_key:"tocbotContainerRef",ref:s},{default:xt(()=>[oe("div",Zn,[oe("div",Gn,[oe("div",{class:Bt(["prose",{empty:!i.src}]),innerHTML:n.value},null,10,jn)]),r.value?Ze(i.$slots,"footer",{key:0}):yt("",!0)])]),_:3},8,["scrollContainer"]))}});export{Kn as _};
61
+ `}}}}function _n(){at=[],lt=new it}function Rn(t){const e=[].forEach,n=[].some,s=typeof window<"u"&&document.body,r=" ";let i,o=!0,a=0;function u(p,f){const E=f.appendChild(c(p));if(p.children.length){const C=h(p.isCollapsed);p.children.forEach(x=>{u(x,C)}),E.appendChild(C)}}function l(p,f){const C=h(!1);if(f.forEach(x=>{u(x,C)}),i=p||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),f.length===0?i:i.appendChild(C)}function c(p){const f=document.createElement("li"),E=document.createElement("a");return t.listItemClass&&f.setAttribute("class",t.listItemClass),t.onClick&&(E.onclick=t.onClick),t.includeTitleTags&&E.setAttribute("title",p.textContent),t.includeHtml&&p.childNodes.length?e.call(p.childNodes,C=>{E.appendChild(C.cloneNode(!0))}):E.textContent=p.textContent,E.setAttribute("href",`${t.basePath}#${p.id}`),E.setAttribute("class",`${t.linkClass+r}node-name--${p.nodeName}${r}${t.extraLinkClasses}`),f.appendChild(E),f}function h(p){const f=t.orderedList?"ol":"ul",E=document.createElement(f);let C=t.listClass+r+t.extraListClasses;return p&&(C=C+r+t.collapsibleClass,C=C+r+t.isCollapsedClass),E.setAttribute("class",C),E}function d(){const p=_(),f=document.querySelector(t.positionFixedSelector);t.fixedSidebarOffset==="auto"&&(t.fixedSidebarOffset=i.offsetTop),p>t.fixedSidebarOffset?f.className.indexOf(t.positionFixedClass)===-1&&(f.className+=r+t.positionFixedClass):f.className=f.className.replace(r+t.positionFixedClass,"")}function D(p){let f=0;return p!==null&&(f=p.offsetTop,t.hasInnerContainers&&(f+=D(p.offsetParent))),f}function g(p,f){return p&&p.className!==f&&(p.className=f),p}function F(p,f){var V,se;t.positionFixedSelector&&d();const E=p,C=(V=f==null?void 0:f.target)!=null&&V.getAttribute?(se=f==null?void 0:f.target)==null?void 0:se.getAttribute("href"):null,x=C&&C.charAt(0)==="#"?L(C.replace("#","")):!1,K=o||x;if(f&&a<5&&a++,K&&i&&E.length>0){const T=W(E),q=i.querySelector(`.${t.activeLinkClass}`),z=T.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),U=window.location.hash.replace("#","");let G=z;const ie=H();C&&x?G=C.replace("#",""):U&&U!==z&&ie&&(L(z)||a<=2)&&(G=U);const w=i.querySelector(`.${t.linkClass}[href="${t.basePath}#${G}"]`);if(q===w)return;const ct=i.querySelectorAll(`.${t.linkClass}`);e.call(ct,Z=>{g(Z,Z.className.replace(r+t.activeLinkClass,""))});const dt=i.querySelectorAll(`.${t.listItemClass}`);e.call(dt,Z=>{g(Z,Z.className.replace(r+t.activeListItemClass,""))}),w&&w.className.indexOf(t.activeLinkClass)===-1&&(w.className+=r+t.activeLinkClass);const fe=w==null?void 0:w.parentNode;fe&&fe.className.indexOf(t.activeListItemClass)===-1&&(fe.className+=r+t.activeListItemClass);const ht=i.querySelectorAll(`.${t.listClass}.${t.collapsibleClass}`);e.call(ht,Z=>{Z.className.indexOf(t.isCollapsedClass)===-1&&(Z.className+=r+t.isCollapsedClass)}),w!=null&&w.nextSibling&&w.nextSibling.className.indexOf(t.isCollapsedClass)!==-1&&g(w.nextSibling,w.nextSibling.className.replace(r+t.isCollapsedClass,"")),y(w==null?void 0:w.parentNode.parentNode)}}function y(p){return p&&p.className.indexOf(t.collapsibleClass)!==-1&&p.className.indexOf(t.isCollapsedClass)!==-1?(g(p,p.className.replace(r+t.isCollapsedClass,"")),y(p.parentNode.parentNode)):p}function R(p){const f=p.target||p.srcElement;typeof f.className!="string"||f.className.indexOf(t.linkClass)===-1||(o=!1)}function S(){o=!0}function O(){return o}function L(p){const f=v();return(document==null?void 0:document.getElementById(p)).offsetTop>f.offsetHeight-f.clientHeight*1.4-t.bottomModeThreshold}function H(){const p=v(),f=p.scrollHeight>p.clientHeight,E=_()+p.clientHeight>p.offsetHeight-t.bottomModeThreshold;return f&&E}function v(){let p;return t.scrollContainer&&document.querySelector(t.scrollContainer)?p=document.querySelector(t.scrollContainer):p=document.documentElement||s,p}function _(){const p=v();return(p==null?void 0:p.scrollTop)||0}function W(p,f=_()){let E;return n.call(p,(C,x)=>{if(D(C)>f+t.headingsOffset+10){const K=x===0?x:x-1;return E=p[K],!0}if(x===p.length-1)return E=p[p.length-1],!0}),E}function De(p){const f=_(),E=W(p,f),C=H();if((!E||f<5)&&!C)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(E&&!C){const x=`#${E.id}`;window.location.hash!==x&&window.history.pushState(null,null,x)}}return{enableTocAnimation:S,disableTocAnimation:R,render:l,updateToc:F,getCurrentlyHighlighting:O,getTopHeader:W,getScrollTop:_,updateUrlHashForHeader:De}}const Nn={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(t){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(t){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function $n(t){const e=[].reduce;function n(l){return l[l.length-1]}function s(l){return+l.nodeName.toUpperCase().replace("H","")}function r(l){try{return l instanceof window.HTMLElement||l instanceof window.parent.HTMLElement}catch{return l instanceof window.HTMLElement}}function i(l){if(!r(l))return l;if(t.ignoreHiddenElements&&(!l.offsetHeight||!l.offsetParent))return null;const c=l.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(l.innerText)):(l.innerText||l.textContent).trim()),h={id:l.id,children:[],nodeName:l.nodeName,headingLevel:s(l),textContent:c};return t.includeHtml&&(h.childNodes=l.childNodes),t.headingObjectCallback?t.headingObjectCallback(h,l):h}function o(l,c){const h=i(l),d=h.headingLevel;let D=c,g=n(D);const F=g?g.headingLevel:0;let y=d-F;for(;y>0&&(g=n(D),!(g&&d===g.headingLevel));)g&&g.children!==void 0&&(D=g.children),y--;return d>=t.collapseDepth&&(h.isCollapsed=!0),D.push(h),D}function a(l,c){let h=c;t.ignoreSelector&&(h=c.split(",").map(function(D){return`${D.trim()}:not(${t.ignoreSelector})`}));try{return l.querySelectorAll(h)}catch{return console.warn(`Headers not found with selector: ${h}`),null}}function u(l){return e.call(l,function(h,d){const D=i(d);return D&&o(D,h.nest),h},{nest:[]})}return{nestHeadingsArray:u,selectHeadings:a}}function Ln(t){var e=t.duration,n=t.offset;if(typeof window>"u"||typeof location>"u")return;var s=location.hash?o(location.href):location.href;r();function r(){document.body.addEventListener("click",u,!1);function u(l){!i(l.target)||l.target.className.indexOf("no-smooth-scroll")>-1||l.target.href.charAt(l.target.href.length-2)==="#"&&l.target.href.charAt(l.target.href.length-1)==="!"||l.target.className.indexOf(t.linkClass)===-1||In(l.target.hash,{duration:e,offset:n,callback:function(){a(l.target.hash)}})}}function i(u){return u.tagName.toLowerCase()==="a"&&(u.hash.length>0||u.href.charAt(u.href.length-1)==="#")&&(o(u.href)===s||o(u.href)+"#"===s)}function o(u){return u.slice(0,u.lastIndexOf("#"))}function a(u){var l=document.getElementById(u.substring(1));l&&(/^(?:a|select|input|button|textarea)$/i.test(l.tagName)||(l.tabIndex=-1),l.focus())}}function In(t,e){var n=window.pageYOffset,s={duration:e.duration,offset:e.offset||0,callback:e.callback,easing:e.easing||h},r=document.querySelector('[id="'+decodeURI(t).split("#").join("")+'"]')||document.querySelector('[id="'+t.split("#").join("")+'"]'),i=typeof t=="string"?s.offset+(t?r&&r.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):t,o=typeof s.duration=="function"?s.duration(i):s.duration,a,u;requestAnimationFrame(function(d){a=d,l(d)});function l(d){u=d-a,window.scrollTo(0,s.easing(u,n,i,o)),u<o?requestAnimationFrame(l):c()}function c(){window.scrollTo(0,n+i),typeof s.callback=="function"&&s.callback()}function h(d,D,g,F){return d/=F/2,d<1?g/2*d*d+D:(d--,-g/2*(d*(d-2)-1)+D)}}function On(t){const e=t.tocScrollingWrapper||t.tocElement||document.querySelector(t.tocSelector);if(e&&e.scrollHeight>e.clientHeight){const n=e.querySelector(`.${t.activeListItemClass}`);if(n){const r=n.offsetTop-t.tocScrollOffset;e.scrollTop=r>0?r:0}}}let m={},N,me,j,$,ne;function ot(t){let e=!1;m=Pn(Nn,t||{}),m.scrollSmooth&&(m.duration=m.scrollSmoothDuration,m.offset=m.scrollSmoothOffset,Ln(m)),N=Rn(m),me=$n(m),Re();const n=qn(m);if(n===null)return;const s=ut(m);if(s===null||(j=me.selectHeadings(n,m.headingSelector),j===null))return;const i=me.nestHeadingsArray(j).nest;if(!m.skipRendering)N.render(s,i);else return this;let o=!1;const a=m.scrollHandlerTimeout||m.throttleTimeout;$=((c,h)=>Hn(c,h,m.scrollHandlerType))(c=>{var d,D,g;N.updateToc(j,c),!m.disableTocScrollSync&&!o&&On(m),m.enableUrlHashUpdateOnScroll&&e&&N.getCurrentlyHighlighting()&&N.updateUrlHashForHeader(j);const h=((D=(d=c==null?void 0:c.target)==null?void 0:d.scrollingElement)==null?void 0:D.scrollTop)===0;(c&&(c.eventPhase===0||c.currentTarget===null)||h)&&(N.updateToc(j),(g=m.scrollEndCallback)==null||g.call(m,c))},a),e||($(),e=!0),window.onhashchange=window.onscrollend=c=>{$(c)},m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).addEventListener("scroll",$,!1),document.querySelector(m.scrollContainer).addEventListener("resize",$,!1)):(document.addEventListener("scroll",$,!1),document.addEventListener("resize",$,!1));let l=null;ne=Ce(c=>{o=!0,m.scrollSmooth&&N.disableTocAnimation(c),N.updateToc(j,c),l&&clearTimeout(l),l=setTimeout(()=>{N.enableTocAnimation()},m.scrollSmoothDuration),setTimeout(()=>{o=!1},m.scrollSmoothDuration+100)},m.throttleTimeout),m.scrollContainer&&document.querySelector(m.scrollContainer)?document.querySelector(m.scrollContainer).addEventListener("click",ne,!1):document.addEventListener("click",ne,!1)}function Re(){const t=ut(m);t!==null&&(m.skipRendering||t&&(t.innerHTML=""),m.scrollContainer&&document.querySelector(m.scrollContainer)?(document.querySelector(m.scrollContainer).removeEventListener("scroll",$,!1),document.querySelector(m.scrollContainer).removeEventListener("resize",$,!1),N&&document.querySelector(m.scrollContainer).removeEventListener("click",ne,!1)):(document.removeEventListener("scroll",$,!1),document.removeEventListener("resize",$,!1),N&&document.removeEventListener("click",ne,!1)))}function zn(t){Re(),ot(t||m)}const Mn=Object.prototype.hasOwnProperty;function Pn(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)Mn.call(s,r)&&(e[r]=s[r])}return e}function Ce(t,e,n){e||(e=250);let s,r;return function(...i){const o=this,a=+new Date;s&&a<s+e?(clearTimeout(r),r=setTimeout(()=>{s=a,t.apply(o,i)},e)):(s=a,t.apply(o,i))}}function Pe(t,e){let n;return(...s)=>{clearTimeout(n),n=setTimeout(()=>t.apply(this,s),e)}}function Hn(t,e,n="auto"){switch(n){case"debounce":return Pe(t,e);case"throttle":return Ce(t,e);default:return e<334?Pe(t,e):Ce(t,e)}}function qn(t){try{return t.contentElement||document.querySelector(t.contentSelector)}catch{return console.warn(`Contents element not found: ${t.contentSelector}`),null}}function ut(t){try{return t.tocElement||document.querySelector(t.tocSelector)}catch{return console.warn(`TOC element not found: ${t.tocSelector}`),null}}const He={destroy:Re,init:ot,refresh:zn},Un=qe({__name:"index",props:{contentSelector:{},headingSelector:{default:"h1,h2,h3,h4,h5,h6"},scrollContainer:{}},setup(t,{expose:e}){const n=t,s=kt(),r=Et(),i=ae(!1),o=async()=>{He.destroy();const h=document.querySelector(n.contentSelector);if(!h)return;const d=document.querySelector(n.scrollContainer);d&&(d.addEventListener("scroll",bt.debounce(a,300)),He.init({tocSelector:"#toc",contentSelector:n.contentSelector,headingSelector:n.headingSelector,collapseDepth:6,onClick:function(D){D.preventDefault(),D.stopPropagation();const g=D.target.getAttribute("href"),F=h.querySelector(g);F&&(i.value=!0,d.scrollTo({top:F.offsetTop,behavior:"smooth"}),c(g))}}),l())};function a(){console.log("滚动结束!"),i.value=!1}const u=()=>{const h=n.headingSelector.split(",").map(D=>`${n.contentSelector} ${D.trim()}`).join(",");return document.querySelectorAll(h)},l=()=>{const h=document.querySelector(n.contentSelector),d=document.querySelector(n.scrollContainer);if(!d||!h)return;const D=u();if(!D.length)return;let g="";const F=new IntersectionObserver(y=>{const R=[];if(y.forEach(S=>{S.isIntersecting&&R.push(S.target)}),R.length>0){R.sort((O,L)=>O.getBoundingClientRect().top-L.getBoundingClientRect().top);const S=R[0].id;S!==g&&!i.value&&(g=S,s.replace({...r,hash:`#${g}`}))}},{root:d,rootMargin:"0px 0px -80% 0px",threshold:0});return D.forEach(y=>{F.observe(y)}),()=>{F.disconnect()}},c=h=>{document.querySelectorAll("#toc a.toc-link").forEach(D=>{const g=D.closest("li.toc-list-item"),F=D.getAttribute("href")===h;D.classList.toggle("is-active-link",F),g&&g.classList.toggle("is-active-li",F)})};return Dt(()=>{l()}),ft(()=>r.hash,async h=>{h&&c(h)},{immediate:!0}),mt(()=>{c(r.hash)}),e({initToc:o}),(h,d)=>(Ue(),Ft("div",null,[d[0]||(d[0]=oe("nav",{id:"toc",class:"sticky top-2"},null,-1)),Ze(h.$slots,"default")]))}}),Zn={class:"flex-1 p-[10px] flex flex-col overflow-auto"},Gn={class:"md-content break-all"},jn=["innerHTML"],Kn=qe({__name:"index",props:{src:{},showToc:{type:Boolean,default:!1},scrollContainer:{}},setup(t){Y.registerLanguage("xml",ze),Y.registerLanguage("js",Dn),Y.registerLanguage("css",xn),Y.registerLanguage("vue",ze),b.use(vn({prefix:""}));const e=t,n=ae(""),s=ae(),r=ae(!1);return Ct(async()=>{var i;try{if(!e.src){n.value="作者没有配置README.md文件",r.value=!0;return}const a=await(await fetch(e.src)).text();n.value=await b.parse(a),await wt(),Y.highlightAll(),e.showToc&&((i=s.value)==null||i.initToc()),r.value=!0}catch(o){n.value="加载失败:"+o}}),(i,o)=>(Ue(),At(Un,{contentSelector:".md-content",scrollContainer:i.scrollContainer||".prose",class:"flex items-start p-[5px]",ref_key:"tocbotContainerRef",ref:s},{default:xt(()=>[oe("div",Zn,[oe("div",Gn,[oe("div",{class:Bt(["prose",{empty:!i.src}]),innerHTML:n.value},null,10,jn)]),r.value?Ze(i.$slots,"footer",{key:0}):yt("",!0)])]),_:3},8,["scrollContainer"]))}});export{Kn as _};
@@ -1,4 +1,4 @@
1
- import{aW as E,a_ as H}from"./index-qqhGQ9ov.js";async function $(p,l){return E("/__remote__/api/v1/email/sendCode",{method:"POST",headers:{"Content-Type":"application/json"},data:p})}var g={exports:{}},x={exports:{}},_;function O(){return _||(_=1,(function(){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l={rotl:function(f,i){return f<<i|f>>>32-i},rotr:function(f,i){return f<<32-i|f>>>i},endian:function(f){if(f.constructor==Number)return l.rotl(f,8)&16711935|l.rotl(f,24)&4278255360;for(var i=0;i<f.length;i++)f[i]=l.endian(f[i]);return f},randomBytes:function(f){for(var i=[];f>0;f--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(f){for(var i=[],c=0,a=0;c<f.length;c++,a+=8)i[a>>>5]|=f[c]<<24-a%32;return i},wordsToBytes:function(f){for(var i=[],c=0;c<f.length*32;c+=8)i.push(f[c>>>5]>>>24-c%32&255);return i},bytesToHex:function(f){for(var i=[],c=0;c<f.length;c++)i.push((f[c]>>>4).toString(16)),i.push((f[c]&15).toString(16));return i.join("")},hexToBytes:function(f){for(var i=[],c=0;c<f.length;c+=2)i.push(parseInt(f.substr(c,2),16));return i},bytesToBase64:function(f){for(var i=[],c=0;c<f.length;c+=3)for(var a=f[c]<<16|f[c+1]<<8|f[c+2],h=0;h<4;h++)c*8+h*6<=f.length*8?i.push(p.charAt(a>>>6*(3-h)&63)):i.push("=");return i.join("")},base64ToBytes:function(f){f=f.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],c=0,a=0;c<f.length;a=++c%4)a!=0&&i.push((p.indexOf(f.charAt(c-1))&Math.pow(2,-2*a+8)-1)<<a*2|p.indexOf(f.charAt(c))>>>6-a*2);return i}};x.exports=l})()),x.exports}var B,S;function C(){if(S)return B;S=1;var p={utf8:{stringToBytes:function(l){return p.bin.stringToBytes(unescape(encodeURIComponent(l)))},bytesToString:function(l){return decodeURIComponent(escape(p.bin.bytesToString(l)))}},bin:{stringToBytes:function(l){for(var f=[],i=0;i<l.length;i++)f.push(l.charCodeAt(i)&255);return f},bytesToString:function(l){for(var f=[],i=0;i<l.length;i++)f.push(String.fromCharCode(l[i]));return f.join("")}}};return B=p,B}/*!
1
+ import{aS as E,aW as H}from"./index-BDuN8NeP.js";async function $(p,l){return E("/__remote__/api/v1/email/sendCode",{method:"POST",headers:{"Content-Type":"application/json"},data:p})}var g={exports:{}},x={exports:{}},_;function O(){return _||(_=1,(function(){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l={rotl:function(f,i){return f<<i|f>>>32-i},rotr:function(f,i){return f<<32-i|f>>>i},endian:function(f){if(f.constructor==Number)return l.rotl(f,8)&16711935|l.rotl(f,24)&4278255360;for(var i=0;i<f.length;i++)f[i]=l.endian(f[i]);return f},randomBytes:function(f){for(var i=[];f>0;f--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(f){for(var i=[],c=0,a=0;c<f.length;c++,a+=8)i[a>>>5]|=f[c]<<24-a%32;return i},wordsToBytes:function(f){for(var i=[],c=0;c<f.length*32;c+=8)i.push(f[c>>>5]>>>24-c%32&255);return i},bytesToHex:function(f){for(var i=[],c=0;c<f.length;c++)i.push((f[c]>>>4).toString(16)),i.push((f[c]&15).toString(16));return i.join("")},hexToBytes:function(f){for(var i=[],c=0;c<f.length;c+=2)i.push(parseInt(f.substr(c,2),16));return i},bytesToBase64:function(f){for(var i=[],c=0;c<f.length;c+=3)for(var a=f[c]<<16|f[c+1]<<8|f[c+2],h=0;h<4;h++)c*8+h*6<=f.length*8?i.push(p.charAt(a>>>6*(3-h)&63)):i.push("=");return i.join("")},base64ToBytes:function(f){f=f.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],c=0,a=0;c<f.length;a=++c%4)a!=0&&i.push((p.indexOf(f.charAt(c-1))&Math.pow(2,-2*a+8)-1)<<a*2|p.indexOf(f.charAt(c))>>>6-a*2);return i}};x.exports=l})()),x.exports}var B,S;function C(){if(S)return B;S=1;var p={utf8:{stringToBytes:function(l){return p.bin.stringToBytes(unescape(encodeURIComponent(l)))},bytesToString:function(l){return decodeURIComponent(escape(p.bin.bytesToString(l)))}},bin:{stringToBytes:function(l){for(var f=[],i=0;i<l.length;i++)f.push(l.charCodeAt(i)&255);return f},bytesToString:function(l){for(var f=[],i=0;i<l.length;i++)f.push(String.fromCharCode(l[i]));return f.join("")}}};return B=p,B}/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -10,8 +10,8 @@
10
10
  <script src="/dist/js/vue3-sfc-loader.js"></script>
11
11
  <script src="/dist/font/iconfont.js"></script>
12
12
 
13
- <script type="module" crossorigin src="/dist/assets/index-qqhGQ9ov.js"></script>
14
- <link rel="stylesheet" crossorigin href="/dist/assets/index-Dq0blRri.css">
13
+ <script type="module" crossorigin src="/dist/assets/index-BDuN8NeP.js"></script>
14
+ <link rel="stylesheet" crossorigin href="/dist/assets/index-B9WN-WSz.css">
15
15
  </head>
16
16
 
17
17
  <body>
@@ -1,20 +1,20 @@
1
- ## ⚠️ 组件重复提示
2
-
3
- ### 检测结果
4
-
5
- 您的组件与平台已有组件在**核心功能、代码结构或 UI 交互**上高度相似。
6
- 为避免生态同质化,**不建议继续上传**。
7
-
8
- ### 仍坚持上传的后果
9
-
10
- - 该组件**不会进入**「推荐」「热门」「最新」等任何公共列表;
11
- - 用户仅可通过**组件全名绝对匹配**搜索到;
12
- - 平台会在其他组件的**「相似组件」栏目**中展示本品,作为替代选项之一;
13
- - 后续版本同样**不享受推荐权重**,直至差异性重新评估通过。
14
-
15
- ### 如何解除限制
16
-
17
- 1. 提供**显著差异化功能**或**独创性交互**的更新版本;
18
-
19
- &gt; 大量上传相似组件可能被视为「设计垃圾邮件」,情节严重者将被暂停上架权限。
20
- &gt; 请珍惜社区环境,尽量提交原创或深度改进作品。
1
+ ## ⚠️ 组件重复提示
2
+
3
+ ### 检测结果
4
+
5
+ 您的组件与平台已有组件在**核心功能、代码结构或 UI 交互**上高度相似。
6
+ 为避免生态同质化,**不建议继续上传**。
7
+
8
+ ### 仍坚持上传的后果
9
+
10
+ - 该组件**不会进入**「推荐」「热门」「最新」等任何公共列表;
11
+ - 用户仅能在**我的组件**列表中查看和管理该组件;
12
+ - 平台会在其他组件的**「相似组件」栏目**中展示本品,作为替代选项之一;
13
+ - 后续版本同样**不享受推荐权重**,直至差异性重新评估通过。
14
+
15
+ ### 如何解除限制
16
+
17
+ 1. 提供**显著差异化功能**或**独创性交互**的更新版本;
18
+
19
+ &gt; 大量上传相似组件可能被视为「设计垃圾邮件」,情节严重者将被暂停上架权限。
20
+ &gt; 请珍惜社区环境,尽量提交原创或深度改进作品。
@@ -1,68 +1,68 @@
1
- # 组件发布协议
2
-
3
- 欢迎您在本平台发布组件,为确保平台生态合规、安全及用户权益,您需严格遵守以下条款,**提交发布即视为已阅读并同意本协议**。
4
-
5
- ---
6
-
7
- ## 一、合法性与合规性要求
8
-
9
- - **不得发布任何违反国家法律法规、行业监管标准及公序良俗的组件内容**。
10
- - **禁止包含政治敏感、暴力血腥、色情低俗、仇恨歧视、封建迷信等违规信息**。
11
- - **不得发布涉及赌博、诈骗、传销、非法金融等违法用途的组件**。
12
- - 组件功能及内容需符合平台定位,**不得超出平台允许的服务范围**。
13
-
14
- ---
15
-
16
- ## 二、知识产权与授权规范
17
-
18
- - **您需确保对发布的组件(含代码、界面设计、素材等)拥有完整、合法的知识产权,无第三方权属争议**。
19
- - 若组件中使用开源代码、第三方库或素材(如图片、图标、字体),**需严格遵守对应开源协议(如 MIT、GPL、Apache 等)或授权条款**,**明确标注来源及版权信息**。
20
- - **禁止盗用、抄袭他人已发布的组件内容**,或未经授权使用他人享有知识产权的成果。
21
- - 若组件涉及他人肖像、姓名、商标等权益,**需提前获得相关方书面授权**,并在组件说明中**公示授权信息**。
22
-
23
- ---
24
-
25
- ## 三、内容真实性与质量承诺
26
-
27
- - **组件需具备基本可用性,无导致系统崩溃、数据丢失等严重问题的已知漏洞**。
28
- - 若组件依赖第三方服务(如 API 接口、云存储等),**需在说明中明确标注依赖项、适用环境及第三方服务的风险提示**。
29
- - **禁止发布空白、测试性质、广告导流(无实际功能仅用于推广)或与平台无关的无效组件**。
30
-
31
- ---
32
-
33
- ## 四、安全与隐私保护义务
34
-
35
- - **组件不得包含恶意代码(如病毒、木马、蠕虫)、后门程序或可能窃取用户数据的功能**。
36
- - 若组件需收集用户数据(如账号信息、设备信息、使用记录等),**需满足以下要求**:
37
- - **明确告知用户数据收集的范围、目的及使用方式**;
38
- - **获得用户主动授权(如弹窗同意)**,且提供数据删除、撤回授权的途径;
39
- - **不得超范围收集数据**,**不得将用户数据用于协议外用途或泄露给第三方**(法律法规要求除外);
40
- - **组件需具备基础的数据安全防护能力**,避免因自身漏洞导致用户数据泄露、篡改。
41
-
42
- ---
43
-
44
- ## 五、维护与更新责任
45
-
46
- - **建议您定期维护组件**,及时修复功能漏洞、适配平台版本更新及兼容主流运行环境。
47
- - 若组件出现重大安全问题(如数据泄露风险、恶意代码注入等),**需在 24 小时内提交修复版本**,并配合平台进行应急处理。
48
- - 若您计划停止组件维护或下架组件,**需提前 7 天在组件详情页公示通知**,为已使用该组件的用户预留迁移时间。
49
- - 组件更新时,**需清晰标注更新内容**(如功能新增、bug 修复、兼容性调整),**不得在更新中添加未经说明的新权限或违规功能**。
50
-
51
- ---
52
-
53
- ## 六、平台审核与违规处理
54
-
55
- - **平台有权对您提交的组件进行审核**,审核标准以本协议及平台规则为准,审核结果(**通过 / 驳回 / 整改**)将通过系统通知告知。
56
- - 若组件存在违反本协议的情况,**平台有权采取以下措施**:
57
- - **要求限期整改,整改期间暂停组件展示**;
58
- - **直接驳回发布申请,且不退还已产生的审核成本(若有)**;
59
- - **下架已发布的违规组件,清除相关展示数据**;
60
- - **若您多次违反本协议(累计 3 次及以上)**,平台有权**永久封禁您的发布账号**,且保留追究法律责任的权利。
61
-
62
- ---
63
-
64
- ## 七、免责声明
65
-
66
- - **您需自行承担因组件违规、侵权或质量问题导致的法律责任**(包括但不限于第三方索赔、行政机关处罚),平台不承担相关连带责任。
67
- - 因组件使用不当、环境适配问题或第三方服务故障导致的用户损失,**平台不承担赔偿责任**。
68
- - **平台有权根据法律法规更新、行业变化及平台发展需求,调整本协议条款**,更新后将通过平台公告告知,**您继续发布组件即视为同意更新后的协议**。
1
+ # 组件发布协议
2
+
3
+ 欢迎您在本平台发布组件,为确保平台生态合规、安全及用户权益,您需严格遵守以下条款,**提交发布即视为已阅读并同意本协议**。
4
+
5
+ ---
6
+
7
+ ## 一、合法性与合规性要求
8
+
9
+ - **不得发布任何违反国家法律法规、行业监管标准及公序良俗的组件内容**。
10
+ - **禁止包含政治敏感、暴力血腥、色情低俗、仇恨歧视、封建迷信等违规信息**。
11
+ - **不得发布涉及赌博、诈骗、传销、非法金融等违法用途的组件**。
12
+ - 组件功能及内容需符合平台定位,**不得超出平台允许的服务范围**。
13
+
14
+ ---
15
+
16
+ ## 二、知识产权与授权规范
17
+
18
+ - **您需确保对发布的组件(含代码、界面设计、素材等)拥有完整、合法的知识产权,无第三方权属争议**。
19
+ - 若组件中使用开源代码、第三方库或素材(如图片、图标、字体),**需严格遵守对应开源协议(如 MIT、GPL、Apache 等)或授权条款**,**明确标注来源及版权信息**。
20
+ - **禁止盗用、抄袭他人已发布的组件内容**,或未经授权使用他人享有知识产权的成果。
21
+ - 若组件涉及他人肖像、姓名、商标等权益,**需提前获得相关方书面授权**,并在组件说明中**公示授权信息**。
22
+
23
+ ---
24
+
25
+ ## 三、内容真实性与质量承诺
26
+
27
+ - **组件需具备基本可用性,无导致系统崩溃、数据丢失等严重问题的已知漏洞**。
28
+ - 若组件依赖第三方服务(如 API 接口、云存储等),**需在说明中明确标注依赖项、适用环境及第三方服务的风险提示**。
29
+ - **禁止发布空白、测试性质、广告导流(无实际功能仅用于推广)或与平台无关的无效组件**。
30
+
31
+ ---
32
+
33
+ ## 四、安全与隐私保护义务
34
+
35
+ - **组件不得包含恶意代码(如病毒、木马、蠕虫)、后门程序或可能窃取用户数据的功能**。
36
+ - 若组件需收集用户数据(如账号信息、设备信息、使用记录等),**需满足以下要求**:
37
+ - **明确告知用户数据收集的范围、目的及使用方式**;
38
+ - **获得用户主动授权(如弹窗同意)**,且提供数据删除、撤回授权的途径;
39
+ - **不得超范围收集数据**,**不得将用户数据用于协议外用途或泄露给第三方**(法律法规要求除外);
40
+ - **组件需具备基础的数据安全防护能力**,避免因自身漏洞导致用户数据泄露、篡改。
41
+
42
+ ---
43
+
44
+ ## 五、维护与更新责任
45
+
46
+ - **建议您定期维护组件**,及时修复功能漏洞、适配平台版本更新及兼容主流运行环境。
47
+ - 若组件出现重大安全问题(如数据泄露风险、恶意代码注入等),**需在 24 小时内提交修复版本**,并配合平台进行应急处理。
48
+ - 若您计划停止组件维护或下架组件,**需提前 7 天在组件详情页公示通知**,为已使用该组件的用户预留迁移时间。
49
+ - 组件更新时,**需清晰标注更新内容**(如功能新增、bug 修复、兼容性调整),**不得在更新中添加未经说明的新权限或违规功能**。
50
+
51
+ ---
52
+
53
+ ## 六、平台审核与违规处理
54
+
55
+ - **平台有权对您提交的组件进行审核**,审核标准以本协议及平台规则为准,审核结果(**通过 / 驳回 / 整改**)将通过系统通知告知。
56
+ - 若组件存在违反本协议的情况,**平台有权采取以下措施**:
57
+ - **要求限期整改,整改期间暂停组件展示**;
58
+ - **直接驳回发布申请,且不退还已产生的审核成本(若有)**;
59
+ - **下架已发布的违规组件,清除相关展示数据**;
60
+ - **若您多次违反本协议(累计 3 次及以上)**,平台有权**永久封禁您的发布账号**,且保留追究法律责任的权利。
61
+
62
+ ---
63
+
64
+ ## 七、免责声明
65
+
66
+ - **您需自行承担因组件违规、侵权或质量问题导致的法律责任**(包括但不限于第三方索赔、行政机关处罚),平台不承担相关连带责任。
67
+ - 因组件使用不当、环境适配问题或第三方服务故障导致的用户损失,**平台不承担赔偿责任**。
68
+ - **平台有权根据法律法规更新、行业变化及平台发展需求,调整本协议条款**,更新后将通过平台公告告知,**您继续发布组件即视为同意更新后的协议**。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comp-hub",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "comphub": "bin/cli.js"
@@ -1 +0,0 @@
1
- var g=Object.defineProperty;var S=(r,a,o)=>a in r?g(r,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[a]=o;var i=(r,a,o)=>S(r,typeof a!="symbol"?a+"":a,o);import{d as M,h as f,B as b,D as T,G as _,c as D,o as R,a as C,H as l,J as P,x as A}from"./index-qqhGQ9ov.js";const E={class:"canvas-animation-container"},L=M({__name:"index",setup(r){const a=f(null),o=f(!1);let c=null;class u{constructor({cvs:t,ctx:s}){i(this,"rangeR");i(this,"r");i(this,"rSpeed");i(this,"cvs");i(this,"ctx");i(this,"x");i(this,"y");i(this,"xSpeed");i(this,"ySpeed");i(this,"lastMoveTime");i(this,"fillStyle");i(this,"maxTimeDiff",100);this.rangeR=[3,7],this.r=l(this.rangeR[0],this.rangeR[1]),this.rSpeed=l(-1,1),this.cvs=t,this.ctx=s,this.x=l(0+this.r,this.cvs.width-this.r),this.y=l(0+this.r,this.cvs.height-this.r),this.xSpeed=l(-10,10),this.ySpeed=l(-10,10),this.lastMoveTime=null,this.fillStyle=P()}setLastMoveTime(t){this.lastMoveTime=t}draw(){if(this.lastMoveTime){const h=Date.now()-this.lastMoveTime,e=Math.min(h,this.maxTimeDiff)/1e3;let n=this.x+e*this.xSpeed,m=this.y+e*this.ySpeed,x=this.r+e*this.rSpeed;x<=this.rangeR[0]?(x=this.rangeR[0],this.rSpeed=Math.abs(this.rSpeed)):x>=this.rangeR[1]&&(x=this.rangeR[1],this.rSpeed=-Math.abs(this.rSpeed)),n-this.r<0?(n=this.r,this.xSpeed=Math.abs(this.xSpeed)):n+this.r>this.cvs.width&&(n=this.cvs.width-this.r,this.xSpeed=-Math.abs(this.xSpeed)),m-this.r<0?(m=this.r,this.ySpeed=Math.abs(this.ySpeed)):m+this.r>this.cvs.height&&(m=this.cvs.height-this.r,this.ySpeed=-Math.abs(this.ySpeed)),this.x=n,this.y=m,this.r=x}const t=Math.max(0,this.r);this.ctx.beginPath(),this.ctx.arc(this.x,this.y,t,0,2*Math.PI),this.ctx.fillStyle=this.fillStyle,this.ctx.fill(),this.lastMoveTime=Date.now()}}class w{constructor({pointNumber:t=30,maxDis:s=100,cvs:h,ctx:e}){i(this,"points");i(this,"maxDis");i(this,"cvs");i(this,"ctx");this.points=new Array(t).fill(0).map(()=>new u({cvs:h,ctx:e})),this.maxDis=s,this.cvs=h,this.ctx=e}resetPointsTime(){const t=Date.now();this.points.forEach(s=>{s.setLastMoveTime(t)})}draw(){if(o.value){if(document.hidden){setTimeout(()=>this.draw(),100);return}requestAnimationFrame(()=>this.draw()),this.ctx.clearRect(0,0,this.cvs.width,this.cvs.height);for(let t=0;t<this.points.length;t++){const s=this.points[t];s.draw();for(let h=t+1;h<this.points.length;h++){const e=this.points[h],n=Math.sqrt((s.x-e.x)**2+(s.y-e.y)**2);isNaN(n)||n>this.maxDis||(this.ctx.beginPath(),this.ctx.moveTo(s.x,s.y),this.ctx.lineTo(e.x,e.y),this.ctx.strokeStyle=`rgba(200,200,200,${Math.max(0,Math.min(1,1-n/this.maxDis))})`,this.ctx.stroke(),this.ctx.closePath())}}}}}function y(){if(!a.value)return;console.log("渲染动画"),o.value=!0;const d=1920,t=110*window.innerWidth/d,s=80*window.innerWidth/d,h=a.value,e=h.getContext("2d");if(!e)return;const n=window.devicePixelRatio||1;h.width=window.innerWidth*n,h.height=window.innerHeight*n,e.scale(n,n),c=new w({pointNumber:Math.floor(t),maxDis:Math.floor(s),cvs:h,ctx:e}),c.draw()}const p=b.debounce(y,200);function v(){document.hidden?o.value=!1:a.value&&c&&(o.value=!0,c.resetPointsTime(),c.draw())}return window.addEventListener("resize",p),document.addEventListener("visibilitychange",v),T(()=>{p()}),_(()=>{o.value=!1,window.removeEventListener("resize",p),document.removeEventListener("visibilitychange",v),c=null}),(d,t)=>(R(),D("div",E,[C("canvas",{ref_key:"myCanvas",ref:a,class:"my-canvas"},null,512)]))}}),B=A(L,[["__scopeId","data-v-c9ea6413"]]);export{B as C};
@@ -1 +0,0 @@
1
- import{_ as t}from"./index.vue_vue_type_script_setup_true_lang-Bzeh0ahZ.js";import{d as s,O as a,D as c,G as r,c as n,o as p,b as i,P as m,Q as o,x as _}from"./index-qqhGQ9ov.js";import"./index-CbSqrxm2.js";import"./index-DuA_FMrx.js";import"./index.vue_vue_type_script_setup_true_lang-C4cvy6a2.js";import"./index.vue_vue_type_script_setup_true_lang-CDCqDNpH.js";const d={class:"share-container"},l=s({__name:"index",setup(f){const e=a(m.SHARE)();return o("compListStore",e),o("callbacks",new Map),c(()=>{e.setOperate(["download","preview","collect","terminal"]),e.getCompList()}),r(()=>{e.$reset()}),(x,b)=>(p(),n("div",d,[i(t)]))}}),w=_(l,[["__scopeId","data-v-509b8290"]]);export{w as default};
@@ -1 +0,0 @@
1
- import{d as x,y as v,z as b,c as l,o as i,b as t,a as n,n as d,w as r,r as c,u as s,F as _,t as m,A as h,f as o,_ as y}from"./index-qqhGQ9ov.js";import{C as k}from"./index-MmOZc86g.js";import{C}from"./index-B1ZA_Gp3.js";import"./atom-one-dark-BwmybF0s.js";const S={class:"relative"},V={class:"absolute inset-0 bg-[#fff] border border-[#ccc] rounded-sm max-w-[1000px] mx-auto p-[10px] min-h-[100vh] overflow-auto"},w={class:"flex items-center gap-[5px]"},z={key:0,class:"h-[100px] flex items-center justify-center text-[#ccc]"},B={class:"flex items-center gap-[5px]"},D={class:"text-[14px] whitespace-pre-line leading-5"},E=x({__name:"index",setup(N){const f=v(),a=b();return(U,e)=>{const g=c("router-link"),p=c("el-tag"),u=c("el-divider");return i(),l("div",S,[t(C),n("div",V,[n("div",w,[t(g,{to:"/"},{default:r(()=>[t(y,{logoClass:"h-[30px] mt-[40px] mb-[40px]"})]),_:1}),t(p,{type:"info",round:"",size:"small"},{default:r(()=>[o(m(s(f).compHubVersion),1)]),_:1})]),s(a).hasUpgrade?d("",!0):(i(),l("div",z,"暂无更新")),s(a).upgradeDesc?(i(),l(_,{key:1},[t(u,{"content-position":"center"},{default:r(()=>[n("div",B,[e[0]||(e[0]=o(" 新版功能 ",-1)),t(p,{type:"info",round:"",size:"small"},{default:r(()=>[o(m(s(a).latestVersion),1)]),_:1})])]),_:1}),n("p",D,m(s(a).upgradeDesc),1)],64)):d("",!0),s(a).isUpgrade?(i(),l(_,{key:2},[t(u,{"content-position":"center"},{default:r(()=>[...e[1]||(e[1]=[o(" 更新方式 ",-1)])]),_:1}),e[3]||(e[3]=n("div",{class:"mb-[10px]"},[o(" 更新 "),n("span",{class:"font-bold"},"comp-hub"),o(" 请回到项目根目录,打开终端,执行以下命令: ")],-1)),s(a).isForceUpgrade?(i(),h(p,{key:0,type:"danger",round:"",size:"small"},{default:r(()=>[...e[2]||(e[2]=[o(" 不可忽略此次更新 ",-1)])]),_:1})):d("",!0),t(k,{code:"npm install comp-hub@latest -D",language:"bash"})],64)):d("",!0)])])}}});export{E as default};
@@ -1 +0,0 @@
1
- import{d as a,O as c,i as r,R as n,D as i,G as p,c as m,o as _,b as l,P as d,Q as s}from"./index-qqhGQ9ov.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang-Bzeh0ahZ.js";import"./index-CbSqrxm2.js";import"./index-DuA_FMrx.js";import"./index.vue_vue_type_script_setup_true_lang-C4cvy6a2.js";import"./index.vue_vue_type_script_setup_true_lang-CDCqDNpH.js";const L={class:"size-full"},S=a({__name:"index",setup(E){const e=c(d.COLLECT)();s("compListStore",e);const t=r(new Map);return s("callbacks",t),t.set(n.AFTER_COMP_CANCEL_COLLECT,o=>{e.delCompListById(o)}),i(async()=>{e.setOperate(["download","preview","collect","terminal"]),e.getCompList()}),p(()=>{e.$reset()}),(o,O)=>(_(),m("div",L,[l(C)]))}});export{S as default};