@auto-ai/agent 2.1.189 → 2.1.191

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 (53) hide show
  1. package/dist/safe-a/404/index.html +1 -1
  2. package/dist/safe-a/404.html +1 -1
  3. package/dist/safe-a/_next/static/chunks/5f0286b194e88c68.js +1 -0
  4. package/dist/safe-a/_next/static/chunks/65982c1925fca4ab.js +1 -0
  5. package/dist/safe-a/_next/static/chunks/69aecc2a7893ba05.js +1 -0
  6. package/dist/safe-a/_next/static/chunks/743bc613bbda46b4.css +1 -0
  7. package/dist/safe-a/_next/static/chunks/{5022180fa579a73a.js → 760380631ca561e0.js} +1 -1
  8. package/dist/safe-a/_next/static/chunks/{2bac8f0a4e762326.js → 9dcb662588dbf520.js} +1 -1
  9. package/dist/safe-a/_next/static/chunks/cb85ccd601c65174.js +1 -0
  10. package/dist/safe-a/_next/static/chunks/e784a1fa0acaaaa0.css +7 -0
  11. package/dist/safe-a/_next/static/chunks/{2d7f6aa6628bccd0.js → eca5690d7fb3d712.js} +1 -1
  12. package/dist/safe-a/index.html +2 -2
  13. package/dist/safe-a/index.txt +10 -10
  14. package/dist/safe-a/manage/about/index.html +2 -2
  15. package/dist/safe-a/manage/about/index.txt +11 -11
  16. package/dist/safe-a/manage/env/index.html +2 -2
  17. package/dist/safe-a/manage/env/index.txt +13 -13
  18. package/dist/safe-a/manage/geelib/index.html +2 -2
  19. package/dist/safe-a/manage/geelib/index.txt +13 -13
  20. package/dist/safe-a/manage/general/index.html +2 -2
  21. package/dist/safe-a/manage/general/index.txt +11 -11
  22. package/dist/safe-a/manage/git/index.html +2 -2
  23. package/dist/safe-a/manage/git/index.txt +13 -13
  24. package/dist/safe-a/manage/im/index.html +2 -2
  25. package/dist/safe-a/manage/im/index.txt +13 -13
  26. package/dist/safe-a/manage/index.html +2 -2
  27. package/dist/safe-a/manage/index.txt +8 -8
  28. package/dist/safe-a/manage/library/index.html +2 -2
  29. package/dist/safe-a/manage/library/index.txt +11 -11
  30. package/dist/safe-a/manage/mcp/index.html +2 -2
  31. package/dist/safe-a/manage/mcp/index.txt +11 -11
  32. package/dist/safe-a/manage/permissions/index.html +2 -2
  33. package/dist/safe-a/manage/permissions/index.txt +11 -11
  34. package/dist/safe-a/manage/skills/index.html +2 -2
  35. package/dist/safe-a/manage/skills/index.txt +11 -11
  36. package/dist/safe-a/manage/system/index.html +2 -2
  37. package/dist/safe-a/manage/system/index.txt +13 -13
  38. package/dist/safe-a/manage/task/index.html +2 -2
  39. package/dist/safe-a/manage/task/index.txt +11 -11
  40. package/dist/safe-a/manage/teams/index.html +2 -2
  41. package/dist/safe-a/manage/teams/index.txt +11 -11
  42. package/dist/safe-a/manage/tools/index.html +2 -2
  43. package/dist/safe-a/manage/tools/index.txt +11 -11
  44. package/package.json +6 -6
  45. package/dist/safe-a/_next/static/chunks/26f5809c84b263c0.css +0 -7
  46. package/dist/safe-a/_next/static/chunks/a5b851b271052e89.js +0 -1
  47. package/dist/safe-a/_next/static/chunks/a6aafbc087d75717.js +0 -1
  48. package/dist/safe-a/_next/static/chunks/d16ae4f1eb111da5.js +0 -1
  49. package/dist/safe-a/_next/static/chunks/d47487bdc4a277fd.css +0 -1
  50. package/dist/safe-a/_next/static/chunks/e00679a7df05e016.js +0 -1
  51. /package/dist/safe-a/_next/static/{XxDw4q1JeD7OUmzpG1zOw → 3ea9fvTCLmsV79kRmLI4V}/_buildManifest.js +0 -0
  52. /package/dist/safe-a/_next/static/{XxDw4q1JeD7OUmzpG1zOw → 3ea9fvTCLmsV79kRmLI4V}/_clientMiddlewareManifest.json +0 -0
  53. /package/dist/safe-a/_next/static/{XxDw4q1JeD7OUmzpG1zOw → 3ea9fvTCLmsV79kRmLI4V}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12732,50052,e=>{"use strict";e.s(["extractMessageBody",()=>eR,"renderMd",()=>ej],12732);var t,n=e.i(99749);function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var s=r(),l={exec:()=>null};function i(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=t[r];return s||(s=e(r),t[r]=s),s}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(c.caret,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}var o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return!!RegExp("(?<=1)(?<!1)"+e)}catch(e){return!1}}(),c={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:RegExp("[\\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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))")),nextBulletRegex:i(e=>new RegExp("^ {0,".concat(e,"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"))),hrRegex:i(e=>new RegExp("^ {0,".concat(e,"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))),fencesBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}(?:```|~~~)"))),headingBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}#"))),htmlBeginRegex:i(e=>RegExp("^ {0,".concat(e,"}<(?:[a-z].*>|!--)"),"i")),blockquoteBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}>")))},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,u=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,d=a(u).replace(/bull/g,p).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(),g=a(u).replace(/bull/g,p).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(),f=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,x=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",x).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m=a(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),b="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",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,y=a("^ {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",w).replace("tag",b).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),v=a(f).replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),S={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:y,lheading:d,list:m,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:v,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),j={...S,lheading:g,table:R,paragraph:a(f).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex()},T={...S,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).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:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(f).replace("hr",h).replace("heading"," *#{1,6} *[^\n]").replace("lheading",d).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)/,A=RegExp("[\\p{P}\\p{S}]","u"),C=RegExp("[\\s\\p{P}\\p{S}]","u"),_=RegExp("[^\\s\\p{P}\\p{S}]","u"),$=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),N=RegExp("(?!~)[\\p{P}\\p{S}]","u"),P=RegExp("(?!~)[\\s\\p{P}\\p{S}]","u"),E=RegExp("(?:[^\\s\\p{P}\\p{S}]|~)","u"),L=a(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),I=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,B=a(I,"u").replace(/punct/g,A).getRegex(),q=a(I,"u").replace(/punct/g,N).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=a(D,"gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),M=a(D,"gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,P).replace(/punct/g,N).getRegex(),Z=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),Q=a(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,A).getRegex(),O=a("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),H=a(/\\(punct)/,"gu").replace(/punct/g,A).getRegex(),U=a(/^<(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(),G=a(w).replace("(?:-->|$)","-->").getRegex(),J=a("^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",G).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),W=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,X=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",W).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=a(/^!?\[(label)\]\[(ref)\]/).replace("label",W).replace("ref",x).getRegex(),V=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",x).getRegex(),Y=a("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",V).getRegex(),ee=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,et={_backpedal:l,anyPunctuation:H,autolink:U,blockSkip:L,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,delLDelim:l,delRDelim:l,emStrongLDelim:B,emStrongRDelimAst:F,emStrongRDelimUnd:Z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:V,punctuation:$,reflink:K,reflinkSearch:Y,tag:J,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},en={...et,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",W).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W).getRegex()},er={...et,emStrongRDelimAst:M,emStrongLDelim:q,delLDelim:Q,delRDelim:O,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ee).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:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ee).getRegex()},es={...er,br:a(z).replace("{2,}","*").getRegex(),text:a(er.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},el={normal:S,gfm:j,pedantic:T},ei={normal:et,gfm:er,breaks:es,pedantic:en},ea={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=e=>ea[e];function ec(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,eo)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,eo);return e}function eh(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch(e){return null}return e}function ep(e,t){var n;let r=e.replace(c.findPipe,(e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(c.splitPipe),s=0;if(r[0].trim()||r.shift(),!(r.length>0)||(null==(n=r.at(-1))?void 0:n.trim())||r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(c.slashPipe,"|");return r}function eu(e,t,n){let r=e.length;if(0===r)return"";let s=0;for(;s<r;){let l=e.charAt(r-s-1);if(l!==t||n)if(l!==t&&n)s++;else break;else s++}return e.slice(0,r-s)}function ed(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&c.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function eg(e,t,n,r,s){let l=t.href,i=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:l,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}var ef=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ed(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let s=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=s.length?e.slice(s.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eu(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:eu(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eu(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eu(t[0],"\n").split("\n"),n="",r="",s=[];for(;e.length>0;){let t=!1,l=[],i;for(i=0;i<e.length;i++)if(this.rules.other.blockquoteStart.test(e[i]))l.push(e[i]),t=!0;else if(t)break;else l.push(e[i]);e=e.slice(i);let a=l.join("\n"),o=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?"".concat(n,"\n").concat(a):a,r=r?"".concat(r,"\n").concat(o):o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,s,!0),this.lexer.state.top=c,0===e.length)break;let h=s.at(-1);if((null==h?void 0:h.type)==="code")break;if((null==h?void 0:h.type)==="blockquote"){let t=h.raw+"\n"+e.join("\n"),l=this.blockquote(t);s[s.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,r=r.substring(0,r.length-h.text.length)+l.text;break}if((null==h?void 0:h.type)==="list"){let t=h.raw+"\n"+e.join("\n"),l=this.list(t);s[s.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,r=r.substring(0,r.length-h.raw.length)+l.raw,e=t.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=r?n:"[*+-]");let l=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],h=!o.trim(),p=0;if(this.options.pedantic?(p=2,a=o.trimStart()):h?p=t[1].length+1:(p=(p=o.search(this.rules.other.nonSpaceChar))>4?1:p,a=o.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),l=this.rules.other.headingBeginRegex(p),i=this.rules.other.htmlBeginRegex(p),u=this.rules.other.blockquoteBeginRegex(p);for(;e;){let d=e.split("\n",1)[0],g;if(c=d,g=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||l.test(c)||i.test(c)||u.test(c)||t.test(c)||n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+="\n"+g.slice(p);else{if(h||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(o)||l.test(o)||n.test(o))break;a+="\n"+c}h=!c.trim(),r+=d+"\n",e=e.substring(d.length+1),o=g.slice(p)}}s.loose||(i?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0)),s.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;for(let e of(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd(),s.items)){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&((null==t?void 0:t.type)==="text"||(null==t?void 0:t.type)==="paragraph")){e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,s.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1);if(!s.loose){let t=e.tokens.filter(e=>"space"===e.type);s.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(s.loose)for(let e of s.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return s}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=ed(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:eu(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=ep(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:eu(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===s.length){for(let e of s)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<r.length;e++)i.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:i.align[e]});for(let e of l)i.rows.push(ep(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:eu(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eu(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eg(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eg(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,s,l,i=n,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=o.exec(t));){if(!(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(l=[...s].length,r[3]||r[4]){i+=l;continue}if((r[5]||r[6])&&n%3&&!((n+l)%3)){a+=l;continue}if((i-=l)>0)continue;l=Math.min(l,l+i+a);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+l);if(Math.min(n,l)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,s,l,i=n,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=a.exec(t));){if(!(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(l=[...s].length)!==n)continue;if(r[3]||r[4]){i+=l;continue}if((i-=l)>0)continue;l=Math.min(l,l+i);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+l),o=a.slice(n,-n);return{type:"del",raw:a,text:o,tokens:this.lexer.inlineTokens(o)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,s;if("@"===t[2])s="mailto:"+(e=t[0]);else{var n,r;let l;do l=t[0],t[0]=null!=(r=null==(n=this.rules.inline._backpedal.exec(t[0]))?void 0:n[0])?r:"";while(l!==t[0])e=t[0],s="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:s,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"rules",void 0),(0,n._)(this,"lexer",void 0),this.options=e||s}},ex=class e{static get rules(){return{block:el,inline:ei}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));let r=1/0;for(;e;){var s,l,i;let a;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(null==(l=this.options.extensions)||null==(s=l.block)?void 0:s.some(n=>!!(a=n.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let n=t.at(-1);1===a.raw.length&&void 0!==n?n.raw+="\n":t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if((a=this.tokenizer.fences(e))||(a=this.tokenizer.heading(e))||(a=this.tokenizer.hr(e))||(a=this.tokenizer.blockquote(e))||(a=this.tokenizer.list(e))||(a=this.tokenizer.html(e))){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if((a=this.tokenizer.table(e))||(a=this.tokenizer.lheading(e))){e=e.substring(a.raw.length),t.push(a);continue}let o=e;if(null==(i=this.options.extensions)?void 0:i.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(a=this.tokenizer.paragraph(o))){let r=t.at(-1);n&&(null==r?void 0:r.type)==="paragraph"?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(a),n=o.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){var t,n,r,s,l,i;let a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let c=e,h=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(h=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(h=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,h.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(h=this.tokenizer.rules.inline.blockSkip.exec(c));)a=h[2]?h[2].length:0,c=c.slice(0,h.index+a)+"["+"a".repeat(h[0].length-a-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);c=null!=(r=null==(n=this.options.hooks)||null==(t=n.emStrongMask)?void 0:t.call({lexer:this},c))?r:c;let p=!1,u="",d=1/0;for(;e;){let t;if(e.length<d)d=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(p||(u=""),p=!1,null==(l=this.options.extensions)||null==(s=l.inline)?void 0:s.some(n=>!!(t=n.call({lexer:this},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)))continue;if((t=this.tokenizer.escape(e))||(t=this.tokenizer.tag(e))||(t=this.tokenizer.link(e))){e=e.substring(t.raw.length),o.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let n=o.at(-1);"text"===t.type&&(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):o.push(t);continue}if((t=this.tokenizer.emStrong(e,c,u))||(t=this.tokenizer.codespan(e))||(t=this.tokenizer.br(e))||(t=this.tokenizer.del(e,c,u))||(t=this.tokenizer.autolink(e))||!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),o.push(t);continue}let n=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t=1/0,r=e.slice(1),s;this.options.extensions.startInline.forEach(e=>{"number"==typeof(s=e.call({lexer:this},r))&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(n)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(u=t.raw.slice(-1)),p=!0;let n=o.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):o.push(t);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return o}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}constructor(e){(0,n._)(this,"tokens",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"inlineQueue",void 0),(0,n._)(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new ef,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:c,block:el.normal,inline:ei.normal};this.options.pedantic?(t.block=el.pedantic,t.inline=ei.pedantic):this.options.gfm&&(t.block=el.gfm,this.options.breaks?t.inline=ei.breaks:t.inline=ei.gfm),this.tokenizer.rules=t}},ek=class{space(e){return""}code(e){var t;let{text:n,lang:r,escaped:s}=e,l=null==(t=(r||"").match(c.notSpaceStart))?void 0:t[0],i=n.replace(c.endingNewline,"")+"\n";return l?'<pre><code class="language-'+ec(l)+'">'+(s?i:ec(i,!0))+"</code></pre>\n":"<pre><code>"+(s?i:ec(i,!0))+"</code></pre>\n"}blockquote(e){let{tokens:t}=e;return"<blockquote>\n".concat(this.parser.parse(t),"</blockquote>\n")}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:n}=e;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,">\n")}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(e){return"<li>".concat(this.parser.parse(e.tokens),"</li>\n")}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return"<p>".concat(this.parser.parseInline(t),"</p>\n")}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let s=e.rows[t];n="";for(let e=0;e<s.length;e++)n+=this.tablecell(s[e]);r+=this.tablerow({text:n})}return r&&(r="<tbody>".concat(r,"</tbody>")),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow(e){let{text:t}=e;return"<tr>\n".concat(t,"</tr>\n")}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,">\n")}strong(e){let{tokens:t}=e;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}em(e){let{tokens:t}=e;return"<em>".concat(this.parser.parseInline(t),"</em>")}codespan(e){let{text:t}=e;return"<code>".concat(ec(t,!0),"</code>")}br(e){return"<br>"}del(e){let{tokens:t}=e;return"<del>".concat(this.parser.parseInline(t),"</del>")}link(e){let{href:t,title:n,tokens:r}=e,s=this.parser.parseInline(r),l=eh(t);if(null===l)return s;let i='<a href="'+(t=l)+'"';return n&&(i+=' title="'+ec(n)+'"'),i+=">"+s+"</a>"}image(e){let{href:t,title:n,text:r,tokens:s}=e;s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let l=eh(t);if(null===l)return ec(r);t=l;let i='<img src="'.concat(t,'" alt="').concat(ec(r),'"');return n&&(i+=' title="'.concat(ec(n),'"')),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ec(e.text)}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"parser",void 0),this.options=e||s}},em=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},eb=class e{static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){var n,r;let l=e[s];if(null==(r=this.options.extensions)||null==(n=r.renderers)?void 0:n[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){t+=e||"";continue}}switch(l.type){case"space":t+=this.renderer.space(l);break;case"hr":t+=this.renderer.hr(l);break;case"heading":t+=this.renderer.heading(l);break;case"code":t+=this.renderer.code(l);break;case"table":t+=this.renderer.table(l);break;case"blockquote":t+=this.renderer.blockquote(l);break;case"list":t+=this.renderer.list(l);break;case"checkbox":t+=this.renderer.checkbox(l);break;case"html":t+=this.renderer.html(l);break;case"def":t+=this.renderer.def(l);break;case"paragraph":t+=this.renderer.paragraph(l);break;case"text":t+=this.renderer.text(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let n="";for(let l=0;l<e.length;l++){var r,s;let i=e[l];if(null==(s=this.options.extensions)||null==(r=s.renderers)?void 0:r[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"renderer",void 0),(0,n._)(this,"textRenderer",void 0),this.options=e||s,this.options.renderer=this.options.renderer||new ek,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new em}},ew=(t=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?ex.lex:ex.lexInline}provideParser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?eb.parse:eb.parseInline}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"block",void 0),this.options=e||s}},(0,n._)(t,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,n._)(t,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),t),ey=new class{walkTokens(e,t){let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":for(let e of l.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of l.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(l.items,t));break;default:{var r,s;let e=l;(null==(s=this.defaults.extensions)||null==(r=s.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=r.renderers[e.name];t?r.renderers[e.name]=function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];let l=e.renderer.apply(this,r);return!1===l&&(l=t.apply(this,r)),l}:r.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=r[e.level];t?t.unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),t.extensions=r),e.renderer){let n=this.defaults.renderer||new ek(this.defaults);for(let t in e.renderer){if(!(t in n))throw Error("renderer '".concat(t,"' does not exist"));if(["options","parser"].includes(t))continue;let r=e.renderer[t],s=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let i=r.apply(n,t);return!1===i&&(i=s.apply(n,t)),i||""}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new ef(this.defaults);for(let t in e.tokenizer){if(!(t in n))throw Error("tokenizer '".concat(t,"' does not exist"));if(["options","rules","lexer"].includes(t))continue;let r=e.tokenizer[t],s=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let i=r.apply(n,t);return!1===i&&(i=s.apply(n,t)),i}}t.tokenizer=n}if(e.hooks){let r=this.defaults.hooks||new ew;for(let t in e.hooks){var n=this;if(!(t in r))throw Error("hook '".concat(t,"' does not exist"));if(["options","block"].includes(t))continue;let s=e.hooks[t],l=r[t];ew.passThroughHooks.has(t)?r[t]=e=>{if(this.defaults.async&&ew.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await s.call(r,e);return l.call(r,t)})();let n=s.call(r,e);return l.call(r,n)}:r[t]=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(n.defaults.async)return(async()=>{let e=await s.apply(r,t);return!1===e&&(e=await l.apply(r,t)),e})();let a=s.apply(r,t);return!1===a&&(a=l.apply(r,t)),a}}t.hooks=r}if(e.walkTokens){let n=this.defaults.walkTokens,r=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ex.lex(e,null!=t?t:this.defaults)}parser(e,t){return eb.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},l=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return l(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(t):t,r=await (s.hooks?await s.hooks.provideLexer(e):e?ex.lex:ex.lexInline)(n,s),l=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let i=await (s.hooks?await s.hooks.provideParser(e):e?eb.parse:eb.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(i):i})().catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let n=(s.hooks?s.hooks.provideLexer(e):e?ex.lex:ex.lexInline)(t,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser(e):e?eb.parse:eb.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(e){return l(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ec(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}constructor(...e){(0,n._)(this,"defaults",r()),(0,n._)(this,"options",this.setOptions),(0,n._)(this,"parse",this.parseMarkdown(!0)),(0,n._)(this,"parseInline",this.parseMarkdown(!1)),(0,n._)(this,"Parser",eb),(0,n._)(this,"Renderer",ek),(0,n._)(this,"TextRenderer",em),(0,n._)(this,"Lexer",ex),(0,n._)(this,"Tokenizer",ef),(0,n._)(this,"Hooks",ew),this.use(...e)}};function ev(e,t){return ey.parse(e,t)}ev.options=ev.setOptions=function(e){return ey.setOptions(e),ev.defaults=ey.defaults,s=ev.defaults,ev},ev.getDefaults=r,ev.defaults=s,ev.use=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ey.use(...t),ev.defaults=ey.defaults,s=ev.defaults,ev},ev.walkTokens=function(e,t){return ey.walkTokens(e,t)},ev.parseInline=ey.parseInline,ev.Parser=eb,ev.parser=eb.parse,ev.Renderer=ek,ev.TextRenderer=em,ev.Lexer=ex,ev.lexer=ex.lex,ev.Tokenizer=ef,ev.Hooks=ew,ev.parse=ev,ev.options,ev.setOptions,ev.use,ev.walkTokens,ev.parseInline,eb.parse,ex.lex;var eS=e.i(92413);function eR(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(n.text);else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function ej(e){if(!e)return"";try{return ev.parse(e,{async:!1})}catch(e){return"<pre>".concat((0,eS.escapeHtml)(String(e)),"</pre>")}}ev.setOptions({breaks:!0,gfm:!0}),e.s(["deleteRepoFile",()=>e_,"fetchRepoEntries",()=>eA,"fetchRepoFilePreview",()=>eC,"uploadWorkspaceFile",()=>e$],50052);var eT=e.i(29250),ez=e.i(36845);async function eA(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=await (0,eT.get)((0,ez.buildRepoEntriesUrl)(e,t,n,r));if(!s.entries)throw Error(s.message||"获取目录条目失败");return s.entries}async function eC(e,t,n,r){return(await (0,eT.bridgeFetch)((0,ez.buildRepoFileUrl)(e,t,n,r,!0),{method:"GET",raw:!0})).text()}async function e_(e,t,n,r){await (0,eT.del)((0,ez.buildRepoFileUrl)(e,t,n,r))}async function e$(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=new FormData;l.append("file",r),l.append("path",s);let i=await (0,eT.post)((0,ez.buildRepoUploadUrl)(e,t,n),l,{type:"file"}),a="string"==typeof i.path?i.path.trim():"";if(!a)throw Error(i.message||i.error||"上传失败:未返回文件路径");return{path:a}}},89197,e=>{"use strict";e.s(["LibraryView",()=>C],89197);var t=e.i(18050),n=e.i(71645),r=e.i(65934),s=e.i(13354),l=e.i(68499),i=e.i(56708),a=e.i(85413),o=e.i(94197),c=e.i(2839),h=e.i(72064),p=e.i(19455),u=e.i(93479),d=e.i(36845),g=e.i(75157);function f(e){let t=e.toLowerCase().split(".");return t.length>1?t[t.length-1]:""}function x(e){var t;if("dir"===e.type)return"文件夹";let n=f(e.name);return n?null!=(t=({doc:"Word",docx:"Word",xls:"Excel",xlsx:"Excel",ppt:"PPT",pptx:"PPT",pdf:"PDF",log:"Log",html:"HTML",htm:"HTML",md:"Markdown",markdown:"Markdown",json:"JSON",zip:"压缩包"})[n])?t:n.toUpperCase():"文件"}function k(e){let{currentPath:r,entriesLoading:s,currentEntries:l,fileSearchQuery:i,onFileSearchQueryChange:k,wsUrl:m,apiBase:b,agentId:w,deleting:y,onSelectDir:v,onSelectFile:S,onDeleteEntry:R}=e,j=(0,n.useMemo)(()=>{if(!l)return null;let e=i.trim().toLowerCase();return e?l.filter(t=>{let n=x(t).toLowerCase();return t.name.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)||n.includes(e)}):l},[l,i]);return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b px-5 pt-4",children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate text-base font-semibold text-foreground",children:"文件列表"}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b pt-1 text-sm text-muted-foreground",children:[(0,t.jsx)("span",{children:"当前位置:"}),(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"sm",className:"h-auto border-0 bg-transparent px-1 py-0 !pl-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]",onClick:()=>v(""),children:"workspace"}),r.split("/").filter(Boolean).map((e,n,r)=>{let s=r.slice(0,n+1).join("/");return(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{children:"/"}),(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"sm",className:"h-auto border-0 bg-transparent px-1 py-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]",onClick:()=>v(s),children:e})]},s)})]})]})}),(0,t.jsx)("div",{className:"shrink-0 border-b px-5 py-3",children:(0,t.jsxs)("div",{className:"relative max-w-[260px]",children:[(0,t.jsx)(h.default,{name:"Search",size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(u.Input,{size:"sm",value:i,onChange:e=>k(e.target.value),placeholder:"搜索文件名 / 类型",className:"bg-background/70 h-8 pl-8"})]})}),(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:s?(0,t.jsx)(c.Loading,{text:"加载中…"}):null===l?(0,t.jsx)(a.Empty,{text:"暂无数据"}):(null==j?void 0:j.length)===0?(0,t.jsx)(a.Empty,{text:i.trim()?"未找到匹配文件":"当前目录为空"}):(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{className:"bg-muted/30 border-b",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-5 py-3 text-left font-medium text-muted-foreground",children:"文件名称"}),(0,t.jsx)("th",{className:"w-28 px-3 py-3 text-left font-medium text-muted-foreground",children:"类型"}),(0,t.jsx)("th",{className:"w-24 shrink-0 px-3 py-3 text-right font-medium text-muted-foreground",children:"操作"})]})}),(0,t.jsx)("tbody",{children:null==j?void 0:j.map(e=>{var n;return(0,t.jsxs)("tr",{className:"hover:bg-accent/35 group cursor-pointer border-b transition-colors last:border-0",onClick:()=>{"dir"===e.type?v(e.path):S(e)},children:[(0,t.jsx)("td",{className:"px-5 py-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-xl bg-[var(--ds-item-bg-hover)] text-xs font-semibold text-[var(--ds-accent)]",children:(0,t.jsx)(h.default,{name:"dir"===e.type?"Folder":null!=(n=({xml:"Xml",gif:"Gif",html:"Html",htm:"Html",java:"Java",jpg:"Jpg",jpeg:"Jpg",js:"Js",json:"Json",pdf:"Pdf",svg:"Svg"})[f(e.name)])?n:"File",size:15,className:"dir"===e.type?"text-amber-700":"text-muted-foreground"})}),(0,t.jsx)("span",{className:(0,g.cn)("truncate font-medium","dir"===e.type?"font-medium text-[var(--ds-accent,hsl(var(--primary)))]":"text-foreground"),children:e.name})]})}),(0,t.jsx)("td",{className:"px-3 py-3 text-muted-foreground",children:x(e)}),(0,t.jsx)("td",{className:"w-24 shrink-0 px-3 py-2 text-right",onClick:e=>e.stopPropagation(),children:"file"===e.type&&(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1 opacity-80 transition-opacity group-hover:opacity-100",children:[(0,t.jsx)("a",{href:(0,d.buildRepoFileUrl)(m,b,w,e.path),download:e.name,"aria-label":"下载 ".concat(e.name),className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(h.default,{name:"Download",size:14})}),(0,t.jsx)(o.IconTooltipButton,{icon:"Trash2",label:"删除",tone:"danger",disabled:y,onClick:()=>R(e)})]})})]},e.path)})})]})})]})}var m=e.i(12732);function b(e){let{entry:n,content:r,loading:s,downloadUrl:l,deleting:i,isMarkdownFile:a,onClose:u,onDelete:d}=e;return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b px-5 py-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon",className:"h-auto border-0 bg-transparent px-1 py-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]","aria-label":"返回列表",onClick:u,children:(0,t.jsx)(h.default,{name:"ChevronLeft",size:16})}),(0,t.jsx)("span",{className:"truncate text-base font-medium",children:n.name})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)(o.IconTooltipButton,{icon:"Download",label:"下载",onClick:()=>{let e=document.createElement("a");e.href=l,e.download=n.name,document.body.appendChild(e),e.click(),e.remove()}}),(0,t.jsx)(o.IconTooltipButton,{icon:"Trash2",label:"删除",tone:"danger",disabled:i,onClick:d})]})]}),(0,t.jsx)("div",{className:"relative flex-1 overflow-auto",children:s?(0,t.jsx)(c.Loading,{text:"加载中…"}):null===r?(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(h.default,{name:"File",size:32,className:"opacity-40"}),(0,t.jsx)("p",{children:"不支持页面内预览,请下载后查看。"})]}):a(n.name)?(0,t.jsx)("div",{className:"chat-md prose prose-sm dark:prose-invert max-w-none p-4",dangerouslySetInnerHTML:{__html:(0,m.renderMd)(r)}}):(0,t.jsx)("pre",{className:"min-h-full whitespace-pre-wrap break-all p-4 font-mono text-xs leading-relaxed",children:r})})]})}function w(e,t){var n;return(null!=(n=e.get(t))?n:[]).filter(e=>e.name&&("dir"===e.type||"file"===e.type)).slice().sort((e,t)=>e.type!==t.type?"dir"===e.type?-1:1:e.name.localeCompare(t.name))}function y(e){let{entry:n,depth:r,treeCache:s,currentPath:l,expandedPaths:i,loadingPaths:a,selectedFilePath:o,searchQuery:c,onSelectDir:u,onSelectFile:d,onToggleExpand:f}=e,x="file"===n.type,k=!x&&""===n.path,m=i.has(n.path),b=a.has(n.path),v=c.trim().toLowerCase(),S=x?[]:w(s,n.path).filter(e=>(function e(t,n,r){if(!r||""===n.path)return!0;let s=r.toLowerCase();return!!(n.name.toLowerCase().includes(s)||n.path.toLowerCase().includes(s))||"dir"===n.type&&w(t,n.path).some(n=>e(t,n,s))})(s,e,v)),R=!!x||s.has(n.path),j=!x&&(!R||S.length>0),T=!x&&l===n.path,z=x&&o===n.path;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:(0,g.cn)("flex h-8 w-full cursor-pointer items-center gap-2 rounded px-1 text-base leading-none","hover:bg-accent/50",x&&"is-file",(T||z)&&"is-selected bg-[var(--surface-2)] text-accent-foreground"),style:{paddingLeft:"".concat(8+14*r,"px")},onClick:()=>{x?d(n):u(n.path)},children:[!x&&j?(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"icon",className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center p-0 text-muted-foreground","aria-label":"展开/折叠",onClick:e=>{e.stopPropagation(),f(n.path)},children:b?(0,t.jsx)(h.default,{name:"Loader2",size:14,className:"animate-spin"}):(0,t.jsx)(h.default,{name:m?"ChevronDown":"ChevronRight",size:14})}):(0,t.jsx)("span",{className:"h-[18px] w-[18px] shrink-0"}),(0,t.jsx)("span",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:x?(0,t.jsx)(h.default,{name:"File",size:14,className:"text-muted-foreground"}):(0,t.jsx)(h.default,{name:m?"FolderOpen":"Folder",size:14,className:"text-amber-500"})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate leading-7",children:k?"workspace":n.name}),!x&&R&&(0,t.jsx)("span",{className:"ml-2 shrink-0 text-xs font-medium text-muted-foreground",children:S.length})]}),!x&&j&&(m||!!v)&&S.map(e=>(0,t.jsx)(y,{entry:e,depth:r+1,treeCache:s,currentPath:l,expandedPaths:i,loadingPaths:a,selectedFilePath:o,searchQuery:c,onSelectDir:u,onSelectFile:d,onToggleExpand:f},e.path))]})}let v={name:"",path:"",type:"dir"};function S(e){let{treeCache:n,currentPath:r,expandedPaths:s,loadingPaths:l,selectedFilePath:i,searchQuery:a,onSearchQueryChange:o,onSelectDir:c,onSelectFile:p,onToggleExpand:d}=e;return(0,t.jsxs)("aside",{className:"flex h-full w-[300px] shrink-0 flex-col rounded-2xl shadow-sm",style:{border:"1px solid #e4e4e7",backgroundColor:"#fff"},"aria-label":"目录树",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3 px-4 pb-3 pt-4",children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate text-base font-semibold text-foreground",children:"目录管理"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"按业务域组织资料"})]})}),(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.default,{name:"Search",size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(u.Input,{size:"sm",value:a,onChange:e=>o(e.target.value),placeholder:"搜索目录",className:"bg-background/70 h-8 pl-8"})]})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-3 pb-3",children:(0,t.jsx)(y,{entry:v,depth:0,treeCache:n,currentPath:r,expandedPaths:s,loadingPaths:l,selectedFilePath:i,searchQuery:a,onSelectDir:c,onSelectFile:p,onToggleExpand:d})})]})}var R=e.i(50052);let j=new Set(["txt","md","markdown","json","yaml","yml","toml","ini","cfg","conf","xml","html","htm","css","js","ts","jsx","tsx","py","sh","bash","zsh","fish","rs","go","java","c","cpp","h","hpp","cs","rb","php","swift","kt","sql","graphql","dockerfile","env"]),T=new Set(["md","markdown"]);function z(e){let t=e.toLowerCase().split(".");return t.length>1?t[t.length-1]:""}function A(e){return T.has(z(e))}function C(){var e,a;let o=(0,r.useAppStore)(e=>e.wsUrl),c=(0,r.useAppStore)(e=>e.apiBase),h=(0,r.useAppStore)(e=>e.agentId),p=(0,r.useAppStore)(e=>e.agentSelectionResolved),[u,g]=(0,n.useState)(""),[f,x]=(0,n.useState)(()=>new Map),[m,w]=(0,n.useState)(()=>new Set([""])),[y,v]=(0,n.useState)(()=>new Set),[T,C]=(0,n.useState)(!1),[_,$]=(0,n.useState)(null),[N,P]=(0,n.useState)(!1),[E,L]=(0,n.useState)(""),[I,B]=(0,n.useState)(""),q=(0,n.useRef)(!1),D=(0,n.useRef)(""),F=(0,n.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h){t||C(!0);try{let t=await (0,R.fetchRepoEntries)(o,c,h,e);x(n=>{let r=new Map(n);return r.set(e,t),r})}catch(e){s.appToast.error("加载目录失败:".concat(e instanceof Error?e.message:String(e)))}finally{t||C(!1)}}},[o,c,h]),M=(0,n.useCallback)(async e=>{if(!(!h||f.has(e))){v(t=>new Set([...t,e]));try{let t=await (0,R.fetchRepoEntries)(o,c,h,e);x(n=>{let r=new Map(n);return r.set(e,t),r})}catch(e){s.appToast.error("加载目录失败:".concat(e instanceof Error?e.message:String(e)))}finally{v(t=>{let n=new Set(t);return n.delete(e),n})}}},[o,c,h,f]);(0,n.useEffect)(()=>{h&&h!==D.current&&(D.current=h,q.current=!1,x(new Map),g(""),w(new Set([""])),$(null))},[h]),(0,n.useEffect)(()=>{!q.current&&h&&p&&(q.current=!0,F(""))},[h,p,F]);let Z=(0,n.useCallback)(e=>{g(e),$(null),w(t=>{let n=new Set(t);for(let t of function(e){let t=[""],n=e.split("/").filter(Boolean),r="";for(let e of n)r=r?"".concat(r,"/").concat(e):e,t.push(r);return t}(e))n.add(t);return n}),F(e)},[F]),Q=(0,n.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):(n.add(e),M(e)),n})},[M]),O=(0,n.useCallback)(async e=>{if($({entry:e,content:null,loading:!0}),!function(e){let t=z(e);return j.has(t)||"dockerfile"===e.toLowerCase()}(e.name))return void $({entry:e,content:null,loading:!1});try{let t=await (0,R.fetchRepoFilePreview)(o,c,h,e.path);$({entry:e,content:t,loading:!1})}catch(t){s.appToast.error("预览失败:".concat(t instanceof Error?t.message:String(t))),$({entry:e,content:null,loading:!1})}},[o,c,h]),H=(0,n.useCallback)(()=>{$(null)},[]),U=(0,n.useCallback)(async e=>{if(await (0,l.confirmAlertDialog)({title:"删除文件",description:"确认删除「".concat(e.name,"」?此操作不可撤销。"),confirmText:"删除",cancelText:"取消"})){P(!0);try{await (0,R.deleteRepoFile)(o,c,h,e.path),s.appToast.success("已删除:".concat(e.name)),$(t=>(null==t?void 0:t.entry.path)===e.path?null:t);let t=e.path.includes("/")?e.path.substring(0,e.path.lastIndexOf("/")):"";x(e=>{let n=new Map(e);return n.delete(t),n}),await F(t)}catch(e){s.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}finally{P(!1)}}},[o,c,h,F]),G=(0,n.useCallback)(async()=>{_&&await U(_.entry)},[_,U]),J=null!=(e=f.get(u))?e:null,W=_?(0,d.buildRepoFileUrl)(o,c,h,_.entry.path):"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.ManageChromeHeaderActions,{}),(0,t.jsxs)("div",{className:"flex h-full gap-5 overflow-hidden",children:[(0,t.jsx)(S,{treeCache:f,currentPath:u,expandedPaths:m,loadingPaths:y,selectedFilePath:null!=(a=null==_?void 0:_.entry.path)?a:"",searchQuery:E,onSearchQueryChange:L,onSelectDir:Z,onSelectFile:O,onToggleExpand:Q}),(0,t.jsx)("section",{className:"flex min-w-0 flex-1 flex-col overflow-hidden rounded-2xl shadow-sm",style:{border:"1px solid #e4e4e7",backgroundColor:"#fff"},children:_?(0,t.jsx)(b,{entry:_.entry,content:_.content,loading:_.loading,downloadUrl:W,deleting:N,isMarkdownFile:A,onClose:H,onDelete:G}):(0,t.jsx)(k,{currentPath:u,entriesLoading:T,currentEntries:J,fileSearchQuery:I,onFileSearchQueryChange:B,wsUrl:o,apiBase:c,agentId:h,deleting:N,onSelectDir:Z,onSelectFile:O,onDeleteEntry:e=>void U(e)})})]})]})}}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12732,50052,e=>{"use strict";e.s(["extractMessageBody",()=>ej,"renderMd",()=>eT],12732);var t,n=e.i(99749);function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var s=r(),l={exec:()=>null};function i(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=t[r];return s||(s=e(r),t[r]=s),s}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(c.caret,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}var o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return!!RegExp("(?<=1)(?<!1)"+e)}catch(e){return!1}}(),c={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:RegExp("[\\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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))")),nextBulletRegex:i(e=>new RegExp("^ {0,".concat(e,"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"))),hrRegex:i(e=>new RegExp("^ {0,".concat(e,"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))),fencesBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}(?:```|~~~)"))),headingBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}#"))),htmlBeginRegex:i(e=>RegExp("^ {0,".concat(e,"}<(?:[a-z].*>|!--)"),"i")),blockquoteBeginRegex:i(e=>new RegExp("^ {0,".concat(e,"}>")))},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,u=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,d=a(u).replace(/bull/g,p).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(),g=a(u).replace(/bull/g,p).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(),f=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,x=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",x).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m=a(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),b="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",w=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,y=a("^ {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",w).replace("tag",b).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),v=a(f).replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),S={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:y,lheading:d,list:m,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:v,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex(),j={...S,lheading:g,table:R,paragraph:a(f).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",b).getRegex()},T={...S,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",w).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:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(f).replace("hr",h).replace("heading"," *#{1,6} *[^\n]").replace("lheading",d).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)/,A=RegExp("[\\p{P}\\p{S}]","u"),C=RegExp("[\\s\\p{P}\\p{S}]","u"),_=RegExp("[^\\s\\p{P}\\p{S}]","u"),$=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),N=RegExp("(?!~)[\\p{P}\\p{S}]","u"),P=RegExp("(?!~)[\\s\\p{P}\\p{S}]","u"),E=RegExp("(?:[^\\s\\p{P}\\p{S}]|~)","u"),L=a(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),I=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,B=a(I,"u").replace(/punct/g,A).getRegex(),q=a(I,"u").replace(/punct/g,N).getRegex(),D="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=a(D,"gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),M=a(D,"gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,P).replace(/punct/g,N).getRegex(),Z=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),Q=a(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,A).getRegex(),O=a("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,_).replace(/punctSpace/g,C).replace(/punct/g,A).getRegex(),H=a(/\\(punct)/,"gu").replace(/punct/g,A).getRegex(),U=a(/^<(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(),G=a(w).replace("(?:-->|$)","-->").getRegex(),J=a("^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",G).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),W=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,X=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",W).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K=a(/^!?\[(label)\]\[(ref)\]/).replace("label",W).replace("ref",x).getRegex(),V=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",x).getRegex(),Y=a("reflink|nolink(?!\\()","g").replace("reflink",K).replace("nolink",V).getRegex(),ee=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,et={_backpedal:l,anyPunctuation:H,autolink:U,blockSkip:L,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,delLDelim:l,delRDelim:l,emStrongLDelim:B,emStrongRDelimAst:F,emStrongRDelimUnd:Z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:V,punctuation:$,reflink:K,reflinkSearch:Y,tag:J,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},en={...et,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",W).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W).getRegex()},er={...et,emStrongRDelimAst:M,emStrongLDelim:q,delLDelim:Q,delRDelim:O,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ee).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:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ee).getRegex()},es={...er,br:a(z).replace("{2,}","*").getRegex(),text:a(er.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},el={normal:S,gfm:j,pedantic:T},ei={normal:et,gfm:er,breaks:es,pedantic:en},ea={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=e=>ea[e];function ec(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,eo)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,eo);return e}function eh(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch(e){return null}return e}function ep(e,t){var n;let r=e.replace(c.findPipe,(e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(c.splitPipe),s=0;if(r[0].trim()||r.shift(),!(r.length>0)||(null==(n=r.at(-1))?void 0:n.trim())||r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(c.slashPipe,"|");return r}function eu(e,t,n){let r=e.length;if(0===r)return"";let s=0;for(;s<r;){let l=e.charAt(r-s-1);if(l!==t||n)if(l!==t&&n)s++;else break;else s++}return e.slice(0,r-s)}function ed(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&c.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function eg(e,t,n,r,s){let l=t.href,i=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:l,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}var ef=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ed(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let s=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=s.length?e.slice(s.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eu(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:eu(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eu(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eu(t[0],"\n").split("\n"),n="",r="",s=[];for(;e.length>0;){let t=!1,l=[],i;for(i=0;i<e.length;i++)if(this.rules.other.blockquoteStart.test(e[i]))l.push(e[i]),t=!0;else if(t)break;else l.push(e[i]);e=e.slice(i);let a=l.join("\n"),o=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?"".concat(n,"\n").concat(a):a,r=r?"".concat(r,"\n").concat(o):o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,s,!0),this.lexer.state.top=c,0===e.length)break;let h=s.at(-1);if((null==h?void 0:h.type)==="code")break;if((null==h?void 0:h.type)==="blockquote"){let t=h.raw+"\n"+e.join("\n"),l=this.blockquote(t);s[s.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,r=r.substring(0,r.length-h.text.length)+l.text;break}if((null==h?void 0:h.type)==="list"){let t=h.raw+"\n"+e.join("\n"),l=this.list(t);s[s.length-1]=l,n=n.substring(0,n.length-h.raw.length)+l.raw,r=r.substring(0,r.length-h.raw.length)+l.raw,e=t.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=r?n:"[*+-]");let l=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],h=!o.trim(),p=0;if(this.options.pedantic?(p=2,a=o.trimStart()):h?p=t[1].length+1:(p=(p=o.search(this.rules.other.nonSpaceChar))>4?1:p,a=o.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),l=this.rules.other.headingBeginRegex(p),i=this.rules.other.htmlBeginRegex(p),u=this.rules.other.blockquoteBeginRegex(p);for(;e;){let d=e.split("\n",1)[0],g;if(c=d,g=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||l.test(c)||i.test(c)||u.test(c)||t.test(c)||n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+="\n"+g.slice(p);else{if(h||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(o)||l.test(o)||n.test(o))break;a+="\n"+c}h=!c.trim(),r+=d+"\n",e=e.substring(d.length+1),o=g.slice(p)}}s.loose||(i?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0)),s.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;for(let e of(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd(),s.items)){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&((null==t?void 0:t.type)==="text"||(null==t?void 0:t.type)==="paragraph")){e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,s.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1);if(!s.loose){let t=e.tokens.filter(e=>"space"===e.type);s.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(s.loose)for(let e of s.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return s}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=ed(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:eu(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=ep(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:eu(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===s.length){for(let e of s)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<r.length;e++)i.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:i.align[e]});for(let e of l)i.rows.push(ep(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:eu(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eu(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eg(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eg(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,s,l,i=n,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=o.exec(t));){if(!(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(l=[...s].length,r[3]||r[4]){i+=l;continue}if((r[5]||r[6])&&n%3&&!((n+l)%3)){a+=l;continue}if((i-=l)>0)continue;l=Math.min(l,l+i+a);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+l);if(Math.min(n,l)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,s,l,i=n,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=a.exec(t));){if(!(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(l=[...s].length)!==n)continue;if(r[3]||r[4]){i+=l;continue}if((i-=l)>0)continue;l=Math.min(l,l+i);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+l),o=a.slice(n,-n);return{type:"del",raw:a,text:o,tokens:this.lexer.inlineTokens(o)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,s;if("@"===t[2])s="mailto:"+(e=t[0]);else{var n,r;let l;do l=t[0],t[0]=null!=(r=null==(n=this.rules.inline._backpedal.exec(t[0]))?void 0:n[0])?r:"";while(l!==t[0])e=t[0],s="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:s,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"rules",void 0),(0,n._)(this,"lexer",void 0),this.options=e||s}},ex=class e{static get rules(){return{block:el,inline:ei}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));let r=1/0;for(;e;){var s,l,i;let a;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(null==(l=this.options.extensions)||null==(s=l.block)?void 0:s.some(n=>!!(a=n.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let n=t.at(-1);1===a.raw.length&&void 0!==n?n.raw+="\n":t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if((a=this.tokenizer.fences(e))||(a=this.tokenizer.heading(e))||(a=this.tokenizer.hr(e))||(a=this.tokenizer.blockquote(e))||(a=this.tokenizer.list(e))||(a=this.tokenizer.html(e))){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if((a=this.tokenizer.table(e))||(a=this.tokenizer.lheading(e))){e=e.substring(a.raw.length),t.push(a);continue}let o=e;if(null==(i=this.options.extensions)?void 0:i.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(a=this.tokenizer.paragraph(o))){let r=t.at(-1);n&&(null==r?void 0:r.type)==="paragraph"?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(a),n=o.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){var t,n,r,s,l,i;let a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let c=e,h=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(h=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(h=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,h.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(h=this.tokenizer.rules.inline.blockSkip.exec(c));)a=h[2]?h[2].length:0,c=c.slice(0,h.index+a)+"["+"a".repeat(h[0].length-a-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);c=null!=(r=null==(n=this.options.hooks)||null==(t=n.emStrongMask)?void 0:t.call({lexer:this},c))?r:c;let p=!1,u="",d=1/0;for(;e;){let t;if(e.length<d)d=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(p||(u=""),p=!1,null==(l=this.options.extensions)||null==(s=l.inline)?void 0:s.some(n=>!!(t=n.call({lexer:this},e,o))&&(e=e.substring(t.raw.length),o.push(t),!0)))continue;if((t=this.tokenizer.escape(e))||(t=this.tokenizer.tag(e))||(t=this.tokenizer.link(e))){e=e.substring(t.raw.length),o.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let n=o.at(-1);"text"===t.type&&(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):o.push(t);continue}if((t=this.tokenizer.emStrong(e,c,u))||(t=this.tokenizer.codespan(e))||(t=this.tokenizer.br(e))||(t=this.tokenizer.del(e,c,u))||(t=this.tokenizer.autolink(e))||!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),o.push(t);continue}let n=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t=1/0,r=e.slice(1),s;this.options.extensions.startInline.forEach(e=>{"number"==typeof(s=e.call({lexer:this},r))&&s>=0&&(t=Math.min(t,s))}),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(n)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(u=t.raw.slice(-1)),p=!0;let n=o.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):o.push(t);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return o}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}constructor(e){(0,n._)(this,"tokens",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"state",void 0),(0,n._)(this,"inlineQueue",void 0),(0,n._)(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new ef,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:c,block:el.normal,inline:ei.normal};this.options.pedantic?(t.block=el.pedantic,t.inline=ei.pedantic):this.options.gfm&&(t.block=el.gfm,this.options.breaks?t.inline=ei.breaks:t.inline=ei.gfm),this.tokenizer.rules=t}},ek=class{space(e){return""}code(e){var t;let{text:n,lang:r,escaped:s}=e,l=null==(t=(r||"").match(c.notSpaceStart))?void 0:t[0],i=n.replace(c.endingNewline,"")+"\n";return l?'<pre><code class="language-'+ec(l)+'">'+(s?i:ec(i,!0))+"</code></pre>\n":"<pre><code>"+(s?i:ec(i,!0))+"</code></pre>\n"}blockquote(e){let{tokens:t}=e;return"<blockquote>\n".concat(this.parser.parse(t),"</blockquote>\n")}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:n}=e;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,">\n")}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(e){return"<li>".concat(this.parser.parse(e.tokens),"</li>\n")}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return"<p>".concat(this.parser.parseInline(t),"</p>\n")}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let s=e.rows[t];n="";for(let e=0;e<s.length;e++)n+=this.tablecell(s[e]);r+=this.tablerow({text:n})}return r&&(r="<tbody>".concat(r,"</tbody>")),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow(e){let{text:t}=e;return"<tr>\n".concat(t,"</tr>\n")}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,">\n")}strong(e){let{tokens:t}=e;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}em(e){let{tokens:t}=e;return"<em>".concat(this.parser.parseInline(t),"</em>")}codespan(e){let{text:t}=e;return"<code>".concat(ec(t,!0),"</code>")}br(e){return"<br>"}del(e){let{tokens:t}=e;return"<del>".concat(this.parser.parseInline(t),"</del>")}link(e){let{href:t,title:n,tokens:r}=e,s=this.parser.parseInline(r),l=eh(t);if(null===l)return s;let i='<a href="'+(t=l)+'"';return n&&(i+=' title="'+ec(n)+'"'),i+=">"+s+"</a>"}image(e){let{href:t,title:n,text:r,tokens:s}=e;s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let l=eh(t);if(null===l)return ec(r);t=l;let i='<img src="'.concat(t,'" alt="').concat(ec(r),'"');return n&&(i+=' title="'.concat(ec(n),'"')),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ec(e.text)}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"parser",void 0),this.options=e||s}},em=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},eb=class e{static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){var n,r;let l=e[s];if(null==(r=this.options.extensions)||null==(n=r.renderers)?void 0:n[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){t+=e||"";continue}}switch(l.type){case"space":t+=this.renderer.space(l);break;case"hr":t+=this.renderer.hr(l);break;case"heading":t+=this.renderer.heading(l);break;case"code":t+=this.renderer.code(l);break;case"table":t+=this.renderer.table(l);break;case"blockquote":t+=this.renderer.blockquote(l);break;case"list":t+=this.renderer.list(l);break;case"checkbox":t+=this.renderer.checkbox(l);break;case"html":t+=this.renderer.html(l);break;case"def":t+=this.renderer.def(l);break;case"paragraph":t+=this.renderer.paragraph(l);break;case"text":t+=this.renderer.text(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let n="";for(let l=0;l<e.length;l++){var r,s;let i=e[l];if(null==(s=this.options.extensions)||null==(r=s.renderers)?void 0:r[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"renderer",void 0),(0,n._)(this,"textRenderer",void 0),this.options=e||s,this.options.renderer=this.options.renderer||new ek,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new em}},ew=(t=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?ex.lex:ex.lexInline}provideParser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?eb.parse:eb.parseInline}constructor(e){(0,n._)(this,"options",void 0),(0,n._)(this,"block",void 0),this.options=e||s}},(0,n._)(t,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,n._)(t,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),t),ey=new class{walkTokens(e,t){let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":for(let e of l.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of l.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(l.items,t));break;default:{var r,s;let e=l;(null==(s=this.defaults.extensions)||null==(r=s.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=r.renderers[e.name];t?r.renderers[e.name]=function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];let l=e.renderer.apply(this,r);return!1===l&&(l=t.apply(this,r)),l}:r.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=r[e.level];t?t.unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),t.extensions=r),e.renderer){let n=this.defaults.renderer||new ek(this.defaults);for(let t in e.renderer){if(!(t in n))throw Error("renderer '".concat(t,"' does not exist"));if(["options","parser"].includes(t))continue;let r=e.renderer[t],s=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let i=r.apply(n,t);return!1===i&&(i=s.apply(n,t)),i||""}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new ef(this.defaults);for(let t in e.tokenizer){if(!(t in n))throw Error("tokenizer '".concat(t,"' does not exist"));if(["options","rules","lexer"].includes(t))continue;let r=e.tokenizer[t],s=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let i=r.apply(n,t);return!1===i&&(i=s.apply(n,t)),i}}t.tokenizer=n}if(e.hooks){let r=this.defaults.hooks||new ew;for(let t in e.hooks){var n=this;if(!(t in r))throw Error("hook '".concat(t,"' does not exist"));if(["options","block"].includes(t))continue;let s=e.hooks[t],l=r[t];ew.passThroughHooks.has(t)?r[t]=e=>{if(this.defaults.async&&ew.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await s.call(r,e);return l.call(r,t)})();let n=s.call(r,e);return l.call(r,n)}:r[t]=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(n.defaults.async)return(async()=>{let e=await s.apply(r,t);return!1===e&&(e=await l.apply(r,t)),e})();let a=s.apply(r,t);return!1===a&&(a=l.apply(r,t)),a}}t.hooks=r}if(e.walkTokens){let n=this.defaults.walkTokens,r=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ex.lex(e,null!=t?t:this.defaults)}parser(e,t){return eb.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},l=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return l(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(t):t,r=await (s.hooks?await s.hooks.provideLexer(e):e?ex.lex:ex.lexInline)(n,s),l=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let i=await (s.hooks?await s.hooks.provideParser(e):e?eb.parse:eb.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(i):i})().catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let n=(s.hooks?s.hooks.provideLexer(e):e?ex.lex:ex.lexInline)(t,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser(e):e?eb.parse:eb.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(e){return l(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ec(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}constructor(...e){(0,n._)(this,"defaults",r()),(0,n._)(this,"options",this.setOptions),(0,n._)(this,"parse",this.parseMarkdown(!0)),(0,n._)(this,"parseInline",this.parseMarkdown(!1)),(0,n._)(this,"Parser",eb),(0,n._)(this,"Renderer",ek),(0,n._)(this,"TextRenderer",em),(0,n._)(this,"Lexer",ex),(0,n._)(this,"Tokenizer",ef),(0,n._)(this,"Hooks",ew),this.use(...e)}};function ev(e,t){return ey.parse(e,t)}ev.options=ev.setOptions=function(e){return ey.setOptions(e),ev.defaults=ey.defaults,s=ev.defaults,ev},ev.getDefaults=r,ev.defaults=s,ev.use=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ey.use(...t),ev.defaults=ey.defaults,s=ev.defaults,ev},ev.walkTokens=function(e,t){return ey.walkTokens(e,t)},ev.parseInline=ey.parseInline,ev.Parser=eb,ev.parser=eb.parse,ev.Renderer=ek,ev.TextRenderer=em,ev.Lexer=ex,ev.lexer=ex.lex,ev.Tokenizer=ef,ev.Hooks=ew,ev.parse=ev,ev.options,ev.setOptions,ev.use,ev.walkTokens,ev.parseInline,eb.parse,ex.lex;var eS=e.i(92413);function eR(e){let t=e.match(/^\s*<channel\b[^>]*>\s*([\s\S]*?)\s*<\/channel>\s*$/i);return t?t[1].trim():e}function ej(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return eR(e);if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(eR(n.text));else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function eT(e){if(!e)return"";try{return ev.parse(e,{async:!1})}catch(e){return"<pre>".concat((0,eS.escapeHtml)(String(e)),"</pre>")}}ev.setOptions({breaks:!0,gfm:!0}),e.s(["deleteRepoFile",()=>e$,"fetchRepoEntries",()=>eC,"fetchRepoFilePreview",()=>e_,"uploadWorkspaceFile",()=>eN],50052);var ez=e.i(29250),eA=e.i(36845);async function eC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=await (0,ez.get)((0,eA.buildRepoEntriesUrl)(e,t,n,r));if(!s.entries)throw Error(s.message||"获取目录条目失败");return s.entries}async function e_(e,t,n,r){return(await (0,ez.bridgeFetch)((0,eA.buildRepoFileUrl)(e,t,n,r,!0),{method:"GET",raw:!0})).text()}async function e$(e,t,n,r){await (0,ez.del)((0,eA.buildRepoFileUrl)(e,t,n,r))}async function eN(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=new FormData;l.append("file",r),l.append("path",s);let i=await (0,ez.post)((0,eA.buildRepoUploadUrl)(e,t,n),l,{type:"file"}),a="string"==typeof i.path?i.path.trim():"";if(!a)throw Error(i.message||i.error||"上传失败:未返回文件路径");return{path:a}}},89197,e=>{"use strict";e.s(["LibraryView",()=>C],89197);var t=e.i(18050),n=e.i(71645),r=e.i(65934),s=e.i(13354),l=e.i(68499),i=e.i(56708),a=e.i(85413),o=e.i(94197),c=e.i(2839),h=e.i(72064),p=e.i(19455),u=e.i(93479),d=e.i(36845),g=e.i(75157);function f(e){let t=e.toLowerCase().split(".");return t.length>1?t[t.length-1]:""}function x(e){var t;if("dir"===e.type)return"文件夹";let n=f(e.name);return n?null!=(t=({doc:"Word",docx:"Word",xls:"Excel",xlsx:"Excel",ppt:"PPT",pptx:"PPT",pdf:"PDF",log:"Log",html:"HTML",htm:"HTML",md:"Markdown",markdown:"Markdown",json:"JSON",zip:"压缩包"})[n])?t:n.toUpperCase():"文件"}function k(e){let{currentPath:r,entriesLoading:s,currentEntries:l,fileSearchQuery:i,onFileSearchQueryChange:k,wsUrl:m,apiBase:b,agentId:w,deleting:y,onSelectDir:v,onSelectFile:S,onDeleteEntry:R}=e,j=(0,n.useMemo)(()=>{if(!l)return null;let e=i.trim().toLowerCase();return e?l.filter(t=>{let n=x(t).toLowerCase();return t.name.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)||n.includes(e)}):l},[l,i]);return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b px-5 pt-4",children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate text-base font-semibold text-foreground",children:"文件列表"}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b pt-1 text-sm text-muted-foreground",children:[(0,t.jsx)("span",{children:"当前位置:"}),(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"sm",className:"h-auto border-0 bg-transparent px-1 py-0 !pl-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]",onClick:()=>v(""),children:"workspace"}),r.split("/").filter(Boolean).map((e,n,r)=>{let s=r.slice(0,n+1).join("/");return(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{children:"/"}),(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"sm",className:"h-auto border-0 bg-transparent px-1 py-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]",onClick:()=>v(s),children:e})]},s)})]})]})}),(0,t.jsx)("div",{className:"shrink-0 border-b px-5 py-3",children:(0,t.jsxs)("div",{className:"relative max-w-[260px]",children:[(0,t.jsx)(h.default,{name:"Search",size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(u.Input,{size:"sm",value:i,onChange:e=>k(e.target.value),placeholder:"搜索文件名 / 类型",className:"bg-background/70 h-8 pl-8"})]})}),(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:s?(0,t.jsx)(c.Loading,{text:"加载中…"}):null===l?(0,t.jsx)(a.Empty,{text:"暂无数据"}):(null==j?void 0:j.length)===0?(0,t.jsx)(a.Empty,{text:i.trim()?"未找到匹配文件":"当前目录为空"}):(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{className:"bg-muted/30 border-b",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-5 py-3 text-left font-medium text-muted-foreground",children:"文件名称"}),(0,t.jsx)("th",{className:"w-28 px-3 py-3 text-left font-medium text-muted-foreground",children:"类型"}),(0,t.jsx)("th",{className:"w-24 shrink-0 px-3 py-3 text-right font-medium text-muted-foreground",children:"操作"})]})}),(0,t.jsx)("tbody",{children:null==j?void 0:j.map(e=>{var n;return(0,t.jsxs)("tr",{className:"hover:bg-accent/35 group cursor-pointer border-b transition-colors last:border-0",onClick:()=>{"dir"===e.type?v(e.path):S(e)},children:[(0,t.jsx)("td",{className:"px-5 py-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-xl bg-[var(--ds-item-bg-hover)] text-xs font-semibold text-[var(--ds-accent)]",children:(0,t.jsx)(h.default,{name:"dir"===e.type?"Folder":null!=(n=({xml:"Xml",gif:"Gif",html:"Html",htm:"Html",java:"Java",jpg:"Jpg",jpeg:"Jpg",js:"Js",json:"Json",pdf:"Pdf",svg:"Svg"})[f(e.name)])?n:"File",size:15,className:"dir"===e.type?"text-amber-700":"text-muted-foreground"})}),(0,t.jsx)("span",{className:(0,g.cn)("truncate font-medium","dir"===e.type?"font-medium text-[var(--ds-accent,hsl(var(--primary)))]":"text-foreground"),children:e.name})]})}),(0,t.jsx)("td",{className:"px-3 py-3 text-muted-foreground",children:x(e)}),(0,t.jsx)("td",{className:"w-24 shrink-0 px-3 py-2 text-right",onClick:e=>e.stopPropagation(),children:"file"===e.type&&(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1 opacity-80 transition-opacity group-hover:opacity-100",children:[(0,t.jsx)("a",{href:(0,d.buildRepoFileUrl)(m,b,w,e.path),download:e.name,"aria-label":"下载 ".concat(e.name),className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(h.default,{name:"Download",size:14})}),(0,t.jsx)(o.IconTooltipButton,{icon:"Trash2",label:"删除",tone:"danger",disabled:y,onClick:()=>R(e)})]})})]},e.path)})})]})})]})}var m=e.i(12732);function b(e){let{entry:n,content:r,loading:s,downloadUrl:l,deleting:i,isMarkdownFile:a,onClose:u,onDelete:d}=e;return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b px-5 py-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon",className:"h-auto border-0 bg-transparent px-1 py-0 text-sm font-medium text-foreground shadow-none hover:bg-transparent hover:text-[var(--ds-accent)]","aria-label":"返回列表",onClick:u,children:(0,t.jsx)(h.default,{name:"ChevronLeft",size:16})}),(0,t.jsx)("span",{className:"truncate text-base font-medium",children:n.name})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)(o.IconTooltipButton,{icon:"Download",label:"下载",onClick:()=>{let e=document.createElement("a");e.href=l,e.download=n.name,document.body.appendChild(e),e.click(),e.remove()}}),(0,t.jsx)(o.IconTooltipButton,{icon:"Trash2",label:"删除",tone:"danger",disabled:i,onClick:d})]})]}),(0,t.jsx)("div",{className:"relative flex-1 overflow-auto",children:s?(0,t.jsx)(c.Loading,{text:"加载中…"}):null===r?(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(h.default,{name:"File",size:32,className:"opacity-40"}),(0,t.jsx)("p",{children:"不支持页面内预览,请下载后查看。"})]}):a(n.name)?(0,t.jsx)("div",{className:"chat-md prose prose-sm dark:prose-invert max-w-none p-4",dangerouslySetInnerHTML:{__html:(0,m.renderMd)(r)}}):(0,t.jsx)("pre",{className:"min-h-full whitespace-pre-wrap break-all p-4 font-mono text-xs leading-relaxed",children:r})})]})}function w(e,t){var n;return(null!=(n=e.get(t))?n:[]).filter(e=>e.name&&("dir"===e.type||"file"===e.type)).slice().sort((e,t)=>e.type!==t.type?"dir"===e.type?-1:1:e.name.localeCompare(t.name))}function y(e){let{entry:n,depth:r,treeCache:s,currentPath:l,expandedPaths:i,loadingPaths:a,selectedFilePath:o,searchQuery:c,onSelectDir:u,onSelectFile:d,onToggleExpand:f}=e,x="file"===n.type,k=!x&&""===n.path,m=i.has(n.path),b=a.has(n.path),v=c.trim().toLowerCase(),S=x?[]:w(s,n.path).filter(e=>(function e(t,n,r){if(!r||""===n.path)return!0;let s=r.toLowerCase();return!!(n.name.toLowerCase().includes(s)||n.path.toLowerCase().includes(s))||"dir"===n.type&&w(t,n.path).some(n=>e(t,n,s))})(s,e,v)),R=!!x||s.has(n.path),j=!x&&(!R||S.length>0),T=!x&&l===n.path,z=x&&o===n.path;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:(0,g.cn)("flex h-8 w-full cursor-pointer items-center gap-2 rounded px-1 text-base leading-none","hover:bg-accent/50",x&&"is-file",(T||z)&&"is-selected bg-[var(--surface-2)] text-accent-foreground"),style:{paddingLeft:"".concat(8+14*r,"px")},onClick:()=>{x?d(n):u(n.path)},children:[!x&&j?(0,t.jsx)(p.Button,{type:"button",variant:"plain",size:"icon",className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center p-0 text-muted-foreground","aria-label":"展开/折叠",onClick:e=>{e.stopPropagation(),f(n.path)},children:b?(0,t.jsx)(h.default,{name:"Loader2",size:14,className:"animate-spin"}):(0,t.jsx)(h.default,{name:m?"ChevronDown":"ChevronRight",size:14})}):(0,t.jsx)("span",{className:"h-[18px] w-[18px] shrink-0"}),(0,t.jsx)("span",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center",children:x?(0,t.jsx)(h.default,{name:"File",size:14,className:"text-muted-foreground"}):(0,t.jsx)(h.default,{name:m?"FolderOpen":"Folder",size:14,className:"text-amber-500"})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate leading-7",children:k?"workspace":n.name}),!x&&R&&(0,t.jsx)("span",{className:"ml-2 shrink-0 text-xs font-medium text-muted-foreground",children:S.length})]}),!x&&j&&(m||!!v)&&S.map(e=>(0,t.jsx)(y,{entry:e,depth:r+1,treeCache:s,currentPath:l,expandedPaths:i,loadingPaths:a,selectedFilePath:o,searchQuery:c,onSelectDir:u,onSelectFile:d,onToggleExpand:f},e.path))]})}let v={name:"",path:"",type:"dir"};function S(e){let{treeCache:n,currentPath:r,expandedPaths:s,loadingPaths:l,selectedFilePath:i,searchQuery:a,onSearchQueryChange:o,onSelectDir:c,onSelectFile:p,onToggleExpand:d}=e;return(0,t.jsxs)("aside",{className:"flex h-full w-[300px] shrink-0 flex-col rounded-2xl shadow-sm",style:{border:"1px solid #e4e4e7",backgroundColor:"#fff"},"aria-label":"目录树",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3 px-4 pb-3 pt-4",children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate text-base font-semibold text-foreground",children:"目录管理"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"按业务域组织资料"})]})}),(0,t.jsx)("div",{className:"px-4 pb-3",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.default,{name:"Search",size:14,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(u.Input,{size:"sm",value:a,onChange:e=>o(e.target.value),placeholder:"搜索目录",className:"bg-background/70 h-8 pl-8"})]})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-3 pb-3",children:(0,t.jsx)(y,{entry:v,depth:0,treeCache:n,currentPath:r,expandedPaths:s,loadingPaths:l,selectedFilePath:i,searchQuery:a,onSelectDir:c,onSelectFile:p,onToggleExpand:d})})]})}var R=e.i(50052);let j=new Set(["txt","md","markdown","json","yaml","yml","toml","ini","cfg","conf","xml","html","htm","css","js","ts","jsx","tsx","py","sh","bash","zsh","fish","rs","go","java","c","cpp","h","hpp","cs","rb","php","swift","kt","sql","graphql","dockerfile","env"]),T=new Set(["md","markdown"]);function z(e){let t=e.toLowerCase().split(".");return t.length>1?t[t.length-1]:""}function A(e){return T.has(z(e))}function C(){var e,a;let o=(0,r.useAppStore)(e=>e.wsUrl),c=(0,r.useAppStore)(e=>e.apiBase),h=(0,r.useAppStore)(e=>e.agentId),p=(0,r.useAppStore)(e=>e.agentSelectionResolved),[u,g]=(0,n.useState)(""),[f,x]=(0,n.useState)(()=>new Map),[m,w]=(0,n.useState)(()=>new Set([""])),[y,v]=(0,n.useState)(()=>new Set),[T,C]=(0,n.useState)(!1),[_,$]=(0,n.useState)(null),[N,P]=(0,n.useState)(!1),[E,L]=(0,n.useState)(""),[I,B]=(0,n.useState)(""),q=(0,n.useRef)(!1),D=(0,n.useRef)(""),F=(0,n.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h){t||C(!0);try{let t=await (0,R.fetchRepoEntries)(o,c,h,e);x(n=>{let r=new Map(n);return r.set(e,t),r})}catch(e){s.appToast.error("加载目录失败:".concat(e instanceof Error?e.message:String(e)))}finally{t||C(!1)}}},[o,c,h]),M=(0,n.useCallback)(async e=>{if(!(!h||f.has(e))){v(t=>new Set([...t,e]));try{let t=await (0,R.fetchRepoEntries)(o,c,h,e);x(n=>{let r=new Map(n);return r.set(e,t),r})}catch(e){s.appToast.error("加载目录失败:".concat(e instanceof Error?e.message:String(e)))}finally{v(t=>{let n=new Set(t);return n.delete(e),n})}}},[o,c,h,f]);(0,n.useEffect)(()=>{h&&h!==D.current&&(D.current=h,q.current=!1,x(new Map),g(""),w(new Set([""])),$(null))},[h]),(0,n.useEffect)(()=>{!q.current&&h&&p&&(q.current=!0,F(""))},[h,p,F]);let Z=(0,n.useCallback)(e=>{g(e),$(null),w(t=>{let n=new Set(t);for(let t of function(e){let t=[""],n=e.split("/").filter(Boolean),r="";for(let e of n)r=r?"".concat(r,"/").concat(e):e,t.push(r);return t}(e))n.add(t);return n}),F(e)},[F]),Q=(0,n.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):(n.add(e),M(e)),n})},[M]),O=(0,n.useCallback)(async e=>{if($({entry:e,content:null,loading:!0}),!function(e){let t=z(e);return j.has(t)||"dockerfile"===e.toLowerCase()}(e.name))return void $({entry:e,content:null,loading:!1});try{let t=await (0,R.fetchRepoFilePreview)(o,c,h,e.path);$({entry:e,content:t,loading:!1})}catch(t){s.appToast.error("预览失败:".concat(t instanceof Error?t.message:String(t))),$({entry:e,content:null,loading:!1})}},[o,c,h]),H=(0,n.useCallback)(()=>{$(null)},[]),U=(0,n.useCallback)(async e=>{if(await (0,l.confirmAlertDialog)({title:"删除文件",description:"确认删除「".concat(e.name,"」?此操作不可撤销。"),confirmText:"删除",cancelText:"取消"})){P(!0);try{await (0,R.deleteRepoFile)(o,c,h,e.path),s.appToast.success("已删除:".concat(e.name)),$(t=>(null==t?void 0:t.entry.path)===e.path?null:t);let t=e.path.includes("/")?e.path.substring(0,e.path.lastIndexOf("/")):"";x(e=>{let n=new Map(e);return n.delete(t),n}),await F(t)}catch(e){s.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}finally{P(!1)}}},[o,c,h,F]),G=(0,n.useCallback)(async()=>{_&&await U(_.entry)},[_,U]),J=null!=(e=f.get(u))?e:null,W=_?(0,d.buildRepoFileUrl)(o,c,h,_.entry.path):"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.ManageChromeHeaderActions,{}),(0,t.jsxs)("div",{className:"flex h-full gap-5 overflow-hidden",children:[(0,t.jsx)(S,{treeCache:f,currentPath:u,expandedPaths:m,loadingPaths:y,selectedFilePath:null!=(a=null==_?void 0:_.entry.path)?a:"",searchQuery:E,onSearchQueryChange:L,onSelectDir:Z,onSelectFile:O,onToggleExpand:Q}),(0,t.jsx)("section",{className:"flex min-w-0 flex-1 flex-col overflow-hidden rounded-2xl shadow-sm",style:{border:"1px solid #e4e4e7",backgroundColor:"#fff"},children:_?(0,t.jsx)(b,{entry:_.entry,content:_.content,loading:_.loading,downloadUrl:W,deleting:N,isMarkdownFile:A,onClose:H,onDelete:G}):(0,t.jsx)(k,{currentPath:u,entriesLoading:T,currentEntries:J,fileSearchQuery:I,onFileSearchQueryChange:B,wsUrl:o,apiBase:c,agentId:h,deleting:N,onSelectDir:Z,onSelectFile:O,onDeleteEntry:e=>void U(e)})})]})]})}}]);
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--XxDw4q1JeD7OUmzpG1zOw--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/26f5809c84b263c0.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/d47487bdc4a277fd.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/bf2c1c402dbcccdf.js" async=""></script><script src="/app/_next/static/chunks/7145a30cb461e3ab.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/5022180fa579a73a.js" async=""></script><script src="/app/_next/static/chunks/e2833182a81cd867.js" async=""></script><script src="/app/_next/static/chunks/baed816b83bbd5b5.js" async=""></script><script src="/app/_next/static/chunks/8085c74f26fa2c4e.js" async=""></script><script src="/app/_next/static/chunks/074a7a892d554827.js" async=""></script><script src="/app/_next/static/chunks/a6aafbc087d75717.js" async=""></script><script src="/app/_next/static/chunks/79e8fd2602ccb6b6.js" async=""></script><script src="/app/_next/static/chunks/5d79b7f202080232.js" async=""></script><script src="/app/_next/static/chunks/d16ae4f1eb111da5.js" async=""></script><script src="/app/_next/static/chunks/0fde2a8866dd02fc.js" async=""></script><script src="/app/_next/static/chunks/2bac8f0a4e762326.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar h-dvh max-h-dvh min-h-0 self-start overflow-hidden " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="truncate text-zinc-900">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-700 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-item-active)] text-[var(--ds-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-drawers sidebar-drawers--nav px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">Tools</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">Skills</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">Agent / Teams</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M197.632 80.896H92.16c-51.2 0-92.16 40.96-92.16 92.16v672.768c0 51.2 40.96 92.16 92.16 92.16h105.472c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 38.912-39.936 38.912H92.16c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 17.408-39.936 39.936-39.936h105.472c21.504 0 39.936 17.408 39.936 39.936zM540.672 80.896H434.176c-51.2 0-92.16 40.96-92.16 92.16V844.8c0 51.2 41.984 92.16 92.16 92.16h106.496c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 39.936-39.936 39.936H434.176c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 18.432-39.936 39.936-39.936h106.496c21.504 0 39.936 17.408 39.936 39.936zm442.368-17.408-102.4-669.696c-7.168-48.128-51.2-82.944-99.328-77.824L731.136 92.16c-22.528 3.072-43.008 14.336-56.32 32.768-14.336 19.456-20.48 44.032-16.384 67.584l102.4 669.696c6.144 45.056 44.032 77.824 89.088 78.848h11.264l90.112-13.312c22.528-3.072 43.008-14.336 56.32-32.768 13.312-17.408 19.456-41.984 15.36-66.56m-59.392 36.864c-5.12 7.168-13.312 11.264-21.504 12.288l-90.112 11.264c-20.48 1.024-37.888-13.312-40.96-33.792l-102.4-669.696c-2.048-10.24 0-21.504 6.144-29.696 5.12-7.168 13.312-11.264 21.504-12.288l90.112-11.264h4.096c18.432 1.024 33.792 15.36 36.864 33.792l102.4 670.72c2.048 10.24 0 20.48-6.144 28.672"></path><path d="M105.472 446.464h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624m343.04 0h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624M184.32 578.56h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624S199.68 578.56 184.32 578.56m343.04 0h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624"></path></svg><span class="text-zinc-900">资料库</span></div></div><div class="sidebar-drawers sidebar-drawers--sessions is-open"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-border)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main overflow-x-auto is-draft-session" data-region="chat-shell"><div class="main-content"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><!--$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
- $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n5:I[21199,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/5022180fa579a73a.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/a6aafbc087d75717.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\"],\"WorkspaceShell\"]\n6:\"$Sreact.suspense\"\n7:I[5014,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/5022180fa579a73a.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/a6aafbc087d75717.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/d16ae4f1eb111da5.js\",\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"/app/_next/static/chunks/2bac8f0a4e762326.js\"],\"default\"]\n10:I[68027,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/26f5809c84b263c0.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/d47487bdc4a277"])</script><script>self.__next_f.push([1,"fd.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"XxDw4q1JeD7OUmzpG1zOw\",\"p\":\"/app\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"(workspace)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/26f5809c84b263c0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/d47487bdc4a277fd.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"className\":\"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans\",\"children\":[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[\"(workspace)\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/5022180fa579a73a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/e2833182a81cd867.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/074a7a892d554827.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/a6aafbc087d75717.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$6\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":[[\"path\",{\"d\":\"M21 12a9 9 0 1 1-6.219-8.56\",\"key\":\"13zald\"}]],\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}],\"children\":\"$L8\"}],[\"$L9\",\"$La\",\"$Lb\",\"$Lc\"],\"$Ld\"]}],{},null,false]},null,false]},[\"$Le\",[],[]],false],\"$Lf\",false]],\"m\":\"$undefined\",\"G\":[\"$10\",[\"$L11\",\"$L12\",\"$L13\"]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"14:I[41130,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/5022180fa579a73a.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/a6aafbc087d75717.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/d16ae4f1eb111da5.js\",\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"/app/_next/static/chunks/2bac8f0a4e762326.js\"],\"BridgeDebugApp\",1]\n"])</script><script>self.__next_f.push([1,"15:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n17:I[11533,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n19:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n1b:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"$L14\",null,{}]\n9:[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/5d79b7f202080232.js\",\"async\":true,\"nonce\":\"$undefined\"}]\na:[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/d16ae4f1eb111da5.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/2bac8f0a4e762326.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"$L15\",null,{\"children\":[\"$L16\",[\"$\",\"$L17\",null,{\"promise\":\"$@18\"}]]}]\ne:[\"$\",\"div\",\"l\",{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":\"$0:f:0:1:2:children:2:children:1:props:children:0:props:fallback:props:children:0:props:iconNode\",\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}]\nf:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L19\",null,{\"children\":\"$L1a\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$L1b\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$6\",null,{\"fallback\":null,\"children\":\"$L1c\"}]}]}]]}]\n11:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"pr"])</script><script>self.__next_f.push([1,"ecedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n12:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/26f5809c84b263c0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n13:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/d47487bdc4a277fd.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"1a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n16:null\n"])</script><script>self.__next_f.push([1,"18:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"1c:\"$18:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--3ea9fvTCLmsV79kRmLI4V--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/e784a1fa0acaaaa0.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/743bc613bbda46b4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/bf2c1c402dbcccdf.js" async=""></script><script src="/app/_next/static/chunks/7145a30cb461e3ab.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/760380631ca561e0.js" async=""></script><script src="/app/_next/static/chunks/e2833182a81cd867.js" async=""></script><script src="/app/_next/static/chunks/baed816b83bbd5b5.js" async=""></script><script src="/app/_next/static/chunks/8085c74f26fa2c4e.js" async=""></script><script src="/app/_next/static/chunks/074a7a892d554827.js" async=""></script><script src="/app/_next/static/chunks/69aecc2a7893ba05.js" async=""></script><script src="/app/_next/static/chunks/79e8fd2602ccb6b6.js" async=""></script><script src="/app/_next/static/chunks/5d79b7f202080232.js" async=""></script><script src="/app/_next/static/chunks/65982c1925fca4ab.js" async=""></script><script src="/app/_next/static/chunks/0fde2a8866dd02fc.js" async=""></script><script src="/app/_next/static/chunks/9dcb662588dbf520.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar h-dvh max-h-dvh min-h-0 self-start overflow-hidden " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="truncate text-zinc-900">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-700 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-item-active)] text-[var(--ds-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-scroll-area"><div class="sidebar-drawers sidebar-drawers--nav px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">Tools</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">Skills</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">Agent / Teams</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M197.632 80.896H92.16c-51.2 0-92.16 40.96-92.16 92.16v672.768c0 51.2 40.96 92.16 92.16 92.16h105.472c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 38.912-39.936 38.912H92.16c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 17.408-39.936 39.936-39.936h105.472c21.504 0 39.936 17.408 39.936 39.936zM540.672 80.896H434.176c-51.2 0-92.16 40.96-92.16 92.16V844.8c0 51.2 41.984 92.16 92.16 92.16h106.496c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 39.936-39.936 39.936H434.176c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 18.432-39.936 39.936-39.936h106.496c21.504 0 39.936 17.408 39.936 39.936zm442.368-17.408-102.4-669.696c-7.168-48.128-51.2-82.944-99.328-77.824L731.136 92.16c-22.528 3.072-43.008 14.336-56.32 32.768-14.336 19.456-20.48 44.032-16.384 67.584l102.4 669.696c6.144 45.056 44.032 77.824 89.088 78.848h11.264l90.112-13.312c22.528-3.072 43.008-14.336 56.32-32.768 13.312-17.408 19.456-41.984 15.36-66.56m-59.392 36.864c-5.12 7.168-13.312 11.264-21.504 12.288l-90.112 11.264c-20.48 1.024-37.888-13.312-40.96-33.792l-102.4-669.696c-2.048-10.24 0-21.504 6.144-29.696 5.12-7.168 13.312-11.264 21.504-12.288l90.112-11.264h4.096c18.432 1.024 33.792 15.36 36.864 33.792l102.4 670.72c2.048 10.24 0 20.48-6.144 28.672"></path><path d="M105.472 446.464h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624m343.04 0h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624M184.32 578.56h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624S199.68 578.56 184.32 578.56m343.04 0h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624"></path></svg><span class="text-zinc-900">资料库</span></div></div><div class="sidebar-drawers sidebar-drawers--sessions is-open"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-border)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main overflow-x-auto is-draft-session" data-region="chat-shell"><div class="main-content"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><!--$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
+ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n5:I[21199,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/760380631ca561e0.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/69aecc2a7893ba05.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\"],\"WorkspaceShell\"]\n6:\"$Sreact.suspense\"\n7:I[5014,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/760380631ca561e0.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/69aecc2a7893ba05.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/65982c1925fca4ab.js\",\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"/app/_next/static/chunks/9dcb662588dbf520.js\"],\"default\"]\n10:I[68027,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/e784a1fa0acaaaa0.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/743bc613bbda46"])</script><script>self.__next_f.push([1,"b4.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"3ea9fvTCLmsV79kRmLI4V\",\"p\":\"/app\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"(workspace)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/e784a1fa0acaaaa0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/743bc613bbda46b4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"className\":\"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans\",\"children\":[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[\"(workspace)\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/760380631ca561e0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/e2833182a81cd867.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/074a7a892d554827.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/69aecc2a7893ba05.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$6\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":[[\"path\",{\"d\":\"M21 12a9 9 0 1 1-6.219-8.56\",\"key\":\"13zald\"}]],\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}],\"children\":\"$L8\"}],[\"$L9\",\"$La\",\"$Lb\",\"$Lc\"],\"$Ld\"]}],{},null,false]},null,false]},[\"$Le\",[],[]],false],\"$Lf\",false]],\"m\":\"$undefined\",\"G\":[\"$10\",[\"$L11\",\"$L12\",\"$L13\"]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"14:I[41130,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/760380631ca561e0.js\",\"/app/_next/static/chunks/e2833182a81cd867.js\",\"/app/_next/static/chunks/baed816b83bbd5b5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/074a7a892d554827.js\",\"/app/_next/static/chunks/69aecc2a7893ba05.js\",\"/app/_next/static/chunks/79e8fd2602ccb6b6.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/65982c1925fca4ab.js\",\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"/app/_next/static/chunks/9dcb662588dbf520.js\"],\"BridgeDebugApp\",1]\n"])</script><script>self.__next_f.push([1,"15:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n17:I[11533,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n19:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n1b:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/7145a30cb461e3ab.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"$L14\",null,{}]\n9:[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/5d79b7f202080232.js\",\"async\":true,\"nonce\":\"$undefined\"}]\na:[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/65982c1925fca4ab.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/0fde2a8866dd02fc.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/9dcb662588dbf520.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"$L15\",null,{\"children\":[\"$L16\",[\"$\",\"$L17\",null,{\"promise\":\"$@18\"}]]}]\ne:[\"$\",\"div\",\"l\",{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":\"$0:f:0:1:2:children:2:children:1:props:children:0:props:fallback:props:children:0:props:iconNode\",\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}]\nf:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L19\",null,{\"children\":\"$L1a\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$L1b\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$6\",null,{\"fallback\":null,\"children\":\"$L1c\"}]}]}]]}]\n11:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"pr"])</script><script>self.__next_f.push([1,"ecedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n12:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/e784a1fa0acaaaa0.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n13:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/743bc613bbda46b4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"1a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n16:null\n"])</script><script>self.__next_f.push([1,"18:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"1c:\"$18:metadata\"\n"])</script></body></html>