@visulima/vite-overlay 1.3.3 → 1.3.5

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ ## @visulima/vite-overlay [1.3.5](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.4...@visulima/vite-overlay@1.3.5) (2025-11-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update TypeScript configurations and improve linting across multiple packages ([6f25ec7](https://github.com/visulima/visulima/commit/6f25ec7841da7246f8f9166efc5292a7089d37ee))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * update npm and pnpm configurations for monorepo optimization ([#564](https://github.com/visulima/visulima/issues/564)) ([5512b42](https://github.com/visulima/visulima/commit/5512b42f672c216b6a3c9e39035199a4ebd9a4b8))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * **@visulima/error:** upgraded to 5.0.4
15
+ * **@visulima/path:** upgraded to 2.0.3
16
+
17
+ ## @visulima/vite-overlay [1.3.4](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.3...@visulima/vite-overlay@1.3.4) (2025-11-05)
18
+
19
+ ### Bug Fixes
20
+
21
+ * update dependencies across multiple packages ([36a47f2](https://github.com/visulima/visulima/commit/36a47f26d65d25a7b4d8371186710e7d0ab61a2b))
22
+
23
+ ### Miscellaneous Chores
24
+
25
+ * update dependencies across multiple packages ([c526462](https://github.com/visulima/visulima/commit/c52646260c2ae8bbf85692e642f305f47a158d4e))
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * **@visulima/error:** upgraded to 5.0.3
31
+ * **@visulima/path:** upgraded to 2.0.2
32
+
1
33
  ## @visulima/vite-overlay [1.3.3](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.2...@visulima/vite-overlay@1.3.3) (2025-10-22)
2
34
 
3
35
  ### Bug Fixes
@@ -41,7 +73,7 @@
41
73
  ### Bug Fixes
42
74
 
43
75
  * enhance linting commands and update package dependencies for improved performance ([cdbda6b](https://github.com/visulima/visulima/commit/cdbda6bd693d0618b58525e8fe10eb45d90eb6f5))
44
- * update @visulima/packem to 2.0.0-alpha.30 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
76
+ * update @visulima/packem to 2.0.0-alpha.32 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
45
77
  * update devDependencies and packem configuration ([db05ef1](https://github.com/visulima/visulima/commit/db05ef1f50c6efa73be2ab8f1362fa90587fafeb))
46
78
 
47
79
  ### Miscellaneous Chores
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- var co=Object.defineProperty;var S=(t,e)=>co(t,"name",{value:e,configurable:!0});import{createRequire as po}from"node:module";import{codeToANSI as uo}from"@shikijs/cli";import{renderError as go,getErrorCauses as mo}from"@visulima/error/error";import{errorHintFinder as fo,ruleBasedFinder as vo}from"@visulima/error/solution";import{parseStacktrace as Ee,formatStacktrace as Lr,codeFrame as Jt}from"@visulima/error";import Kt from"@visulima/error/solution/ai/prompt";import{TraceMap as bo,originalPositionFor as yo}from"@jridgewell/trace-mapping";const Cr=po(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tt=S(t=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[e,r]=Re.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Re.getBuiltinModule(t)}return Cr(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:ho,styleText:Qt}=tt("node:util"),wo=tt("node:fs"),re=tt("node:path"),{distance:Ge}=Cr("fastest-levenshtein"),{readFile:Tr}=tt("node:fs/promises");var ko=Object.defineProperty,z=S((t,e)=>ko(t,"name",{value:e,configurable:!0}),"k$3");function rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}S(rt,"q$1");z(rt,"L");var be=rt();function Et(t){be=t}S(Et,"ae");z(Et,"G");var He={exec:z(()=>null,"exec")};function L(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:z((o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(W.caret,"$1"),r=r.replace(o,a),n},"replace"),getRegex:z(()=>new RegExp(r,e),"getRegex")};return n}S(L,"p$6");z(L,"h");var W={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:z(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},xo=/^(?:[ \t]*(?:\n|$))+/,_o=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$o=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,je=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Eo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,St=/(?:[*+-]|\d{1,9}[.)])/,Pr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mr=L(Pr).replace(/bull/g,St).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(),So=L(Pr).replace(/bull/g,St).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(),Ct=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Co=/^[^\n]+/,Lt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lo=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),To=L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,St).getRegex(),nt="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",Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Po=L("^ {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",Tt).replace("tag",nt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rr=L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Mo=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rr).getRegex(),Pt={blockquote:Mo,code:_o,def:Lo,fences:$o,heading:Eo,hr:je,html:Po,lheading:Mr,list:To,newline:xo,paragraph:Rr,table:He,text:Co},er=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Ro={...Pt,lheading:So,table:er,paragraph:L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",er).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex()},Fo={...Pt,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tt).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:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(Ct).replace("hr",je).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",Mr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ho=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fr=/^( {2,}|\\)\n(?!\s*$)/,Ao=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ot=/[\p{P}\p{S}]/u,Mt=/[\s\p{P}\p{S}]/u,zr=/[^\s\p{P}\p{S}]/u,Io=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mt).getRegex(),Hr=/(?!~)[\p{P}\p{S}]/u,Do=/(?!~)[\s\p{P}\p{S}]/u,Bo=/(?:[^\s\p{P}\p{S}]|~)/u,jo=L(/link|code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ar=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Oo=L(Ar,"u").replace(/punct/g,ot).getRegex(),qo=L(Ar,"u").replace(/punct/g,Hr).getRegex(),Ir="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vo=L(Ir,"gu").replace(/notPunctSpace/g,zr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),Zo=L(Ir,"gu").replace(/notPunctSpace/g,Bo).replace(/punctSpace/g,Do).replace(/punct/g,Hr).getRegex(),Uo=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),No=L(/\\(punct)/,"gu").replace(/punct/g,ot).getRegex(),Wo=L(/^<(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(),Go=L(Tt).replace("(?:-->|$)","-->").getRegex(),Yo=L("^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",Go).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ye=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xo=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ye).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dr=L(/^!?\[(label)\]\[(ref)\]/).replace("label",Ye).replace("ref",Lt).getRegex(),Br=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lt).getRegex(),Qo=L("reflink|nolink(?!\\()","g").replace("reflink",Dr).replace("nolink",Br).getRegex(),tr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rt={_backpedal:He,anyPunctuation:No,autolink:Wo,blockSkip:jo,br:Fr,code:Ho,del:He,emStrongLDelim:Oo,emStrongRDelimAst:Vo,emStrongRDelimUnd:Uo,escape:zo,link:Xo,nolink:Br,punctuation:Io,reflink:Dr,reflinkSearch:Qo,tag:Yo,text:Ao,url:He},Jo={...Rt,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",Ye).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ye).getRegex()},mt={...Rt,emStrongRDelimAst:Zo,emStrongLDelim:qo,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tr).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:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tr).getRegex()},Ko={...mt,br:L(Fr).replace("{2,}","*").getRegex(),text:L(mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},We={normal:Pt,gfm:Ro,pedantic:Fo},Fe={normal:Rt,gfm:mt,breaks:Ko,pedantic:Jo},ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rr=z(t=>ei[t],"ge");function te(t,e){if(e){if(W.escapeTest.test(t))return t.replace(W.escapeReplace,rr)}else if(W.escapeTestNoEncode.test(t))return t.replace(W.escapeReplaceNoEncode,rr);return t}S(te,"$");z(te,"w");function ft(t){try{t=encodeURI(t).replace(W.percentDecode,"%")}catch{return null}return t}S(ft,"se");z(ft,"J");function vt(t,e){let r=t.replace(W.findPipe,(i,a,s)=>{let l=!1,d=a;for(;--d>=0&&s[d]==="\\";)l=!l;return l?"|":" |"}),n=r.split(W.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(W.slashPipe,"|");return n}S(vt,"le");z(vt,"V");function $e(t,e,r){let n=t.length;if(n===0)return"";let o=0;for(;o<n;){let i=t.charAt(n-o-1);if(i===e&&!r)o++;else if(i!==e&&r)o++;else break}return t.slice(0,n-o)}S($e,"_$1");z($e,"z");function jr(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}S(jr,"et");z(jr,"fe");function wt(t,e,r,n,o){let i=e.href,a=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:a,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}S(wt,"ie");z(wt,"me");function Or(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let o=n[1];return e.split(`
1
+ var lo=Object.defineProperty;var S=(t,e)=>lo(t,"name",{value:e,configurable:!0});import{createRequire as co}from"node:module";import{codeToANSI as uo}from"@shikijs/cli";import{renderError as go,getErrorCauses as mo}from"@visulima/error/error";import{errorHintFinder as fo,ruleBasedFinder as vo}from"@visulima/error/solution";import{distance as Ge}from"fastest-levenshtein";import{parseStacktrace as Ee,formatStacktrace as Cr,codeFrame as Jt}from"@visulima/error";import Kt from"@visulima/error/solution/ai/prompt";import{TraceMap as bo,originalPositionFor as yo}from"@jridgewell/trace-mapping";const po=co(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tt=S(t=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[e,r]=Re.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Re.getBuiltinModule(t)}return po(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:ho,styleText:Qt}=tt("node:util"),wo=tt("node:fs"),re=tt("node:path"),{readFile:Lr}=tt("node:fs/promises");var ko=Object.defineProperty,z=S((t,e)=>ko(t,"name",{value:e,configurable:!0}),"k$2");function rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}S(rt,"q$1");z(rt,"L");var be=rt();function Et(t){be=t}S(Et,"ae");z(Et,"G");var He={exec:z(()=>null,"exec")};function L(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:z((o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(W.caret,"$1"),r=r.replace(o,a),n},"replace"),getRegex:z(()=>new RegExp(r,e),"getRegex")};return n}S(L,"p$6");z(L,"h");var W={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:z(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:z(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},xo=/^(?:[ \t]*(?:\n|$))+/,_o=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$o=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,je=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Eo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,St=/(?:[*+-]|\d{1,9}[.)])/,Tr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Pr=L(Tr).replace(/bull/g,St).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(),So=L(Tr).replace(/bull/g,St).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(),Ct=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Co=/^[^\n]+/,Lt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lo=L(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),To=L(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,St).getRegex(),nt="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",Tt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Po=L("^ {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",Tt).replace("tag",nt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mr=L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Mo=L(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mr).getRegex(),Pt={blockquote:Mo,code:_o,def:Lo,fences:$o,heading:Eo,hr:je,html:Po,lheading:Pr,list:To,newline:xo,paragraph:Mr,table:He,text:Co},er=L("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex(),Ro={...Pt,lheading:So,table:er,paragraph:L(Ct).replace("hr",je).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",er).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nt).getRegex()},Fo={...Pt,html:L(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tt).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:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:L(Ct).replace("hr",je).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",Pr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ho=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Rr=/^( {2,}|\\)\n(?!\s*$)/,Ao=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ot=/[\p{P}\p{S}]/u,Mt=/[\s\p{P}\p{S}]/u,Fr=/[^\s\p{P}\p{S}]/u,Io=L(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Mt).getRegex(),zr=/(?!~)[\p{P}\p{S}]/u,Do=/(?!~)[\s\p{P}\p{S}]/u,Bo=/(?:[^\s\p{P}\p{S}]|~)/u,jo=L(/link|code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Oo=L(Hr,"u").replace(/punct/g,ot).getRegex(),qo=L(Hr,"u").replace(/punct/g,zr).getRegex(),Ar="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vo=L(Ar,"gu").replace(/notPunctSpace/g,Fr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),Zo=L(Ar,"gu").replace(/notPunctSpace/g,Bo).replace(/punctSpace/g,Do).replace(/punct/g,zr).getRegex(),Uo=L("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fr).replace(/punctSpace/g,Mt).replace(/punct/g,ot).getRegex(),No=L(/\\(punct)/,"gu").replace(/punct/g,ot).getRegex(),Wo=L(/^<(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(),Go=L(Tt).replace("(?:-->|$)","-->").getRegex(),Yo=L("^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",Go).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ye=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Xo=L(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ye).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ir=L(/^!?\[(label)\]\[(ref)\]/).replace("label",Ye).replace("ref",Lt).getRegex(),Dr=L(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lt).getRegex(),Qo=L("reflink|nolink(?!\\()","g").replace("reflink",Ir).replace("nolink",Dr).getRegex(),tr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Rt={_backpedal:He,anyPunctuation:No,autolink:Wo,blockSkip:jo,br:Rr,code:Ho,del:He,emStrongLDelim:Oo,emStrongRDelimAst:Vo,emStrongRDelimUnd:Uo,escape:zo,link:Xo,nolink:Dr,punctuation:Io,reflink:Ir,reflinkSearch:Qo,tag:Yo,text:Ao,url:He},Jo={...Rt,link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",Ye).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ye).getRegex()},mt={...Rt,emStrongRDelimAst:Zo,emStrongLDelim:qo,url:L(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tr).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:L(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tr).getRegex()},Ko={...mt,br:L(Rr).replace("{2,}","*").getRegex(),text:L(mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},We={normal:Pt,gfm:Ro,pedantic:Fo},Fe={normal:Rt,gfm:mt,breaks:Ko,pedantic:Jo},ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rr=z(t=>ei[t],"ge");function te(t,e){if(e){if(W.escapeTest.test(t))return t.replace(W.escapeReplace,rr)}else if(W.escapeTestNoEncode.test(t))return t.replace(W.escapeReplaceNoEncode,rr);return t}S(te,"$");z(te,"w");function ft(t){try{t=encodeURI(t).replace(W.percentDecode,"%")}catch{return null}return t}S(ft,"se");z(ft,"J");function vt(t,e){let r=t.replace(W.findPipe,(i,a,s)=>{let l=!1,d=a;for(;--d>=0&&s[d]==="\\";)l=!l;return l?"|":" |"}),n=r.split(W.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(W.slashPipe,"|");return n}S(vt,"le");z(vt,"V");function $e(t,e,r){let n=t.length;if(n===0)return"";let o=0;for(;o<n;){let i=t.charAt(n-o-1);if(i===e&&!r)o++;else if(i!==e&&r)o++;else break}return t.slice(0,n-o)}S($e,"_$1");z($e,"z");function Br(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}S(Br,"et");z(Br,"fe");function wt(t,e,r,n,o){let i=e.href,a=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:a,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}S(wt,"ie");z(wt,"me");function jr(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let o=n[1];return e.split(`
3
3
  `).map(i=>{let a=i.match(r.other.beginningSpace);if(a===null)return i;let[s]=a;return s.length>=o.length?i.slice(o.length):i}).join(`
4
- `)}S(Or,"tt");z(Or,"Ve");var Xe=class{static{S(this,"I")}static{z(this,"y")}options;rules;lexer;constructor(e){this.options=e||be}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$e(n,`
5
- `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],o=Or(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=$e(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:$e(r[0],`
4
+ `)}S(jr,"tt");z(jr,"Ve");var Xe=class{static{S(this,"I")}static{z(this,"y")}options;rules;lexer;constructor(e){this.options=e||be}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$e(n,`
5
+ `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],o=jr(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let o=$e(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:$e(r[0],`
6
6
  `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=$e(r[0],`
7
7
  `).split(`
8
8
  `),o="",i="",a=[];for(;n.length>0;){let s=!1,l=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))l.push(n[d]),s=!0;else if(!s)l.push(n[d]);else break;n=n.slice(d);let h=l.join(`
@@ -15,15 +15,15 @@ ${m}`:m;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
15
15
  `+n.join(`
16
16
  `),y=this.list(g);a[a.length-1]=y,o=o.substring(0,o.length-k.raw.length)+y.raw,i=i.substring(0,i.length-b.raw.length)+y.raw,n=g.substring(a.at(-1).raw.length).split(`
17
17
  `);continue}}return{type:"blockquote",raw:o,tokens:a,text:i}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),o=n.length>1,i={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let d=!1,h="",m="";if(!(r=a.exec(e))||this.rules.block.hr.test(e))break;h=r[0],e=e.substring(h.length);let f=r[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,P=>" ".repeat(3*P.length)),k=e.split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,M=>" ".repeat(3*M.length)),k=e.split(`
19
19
  `,1)[0],b=!f.trim(),g=0;if(this.options.pedantic?(g=2,m=f.trimStart()):b?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,m=f.slice(g),g+=r[1].length),b&&this.rules.other.blankLine.test(k)&&(h+=k+`
20
- `,e=e.substring(k.length+1),d=!0),!d){let P=this.rules.other.nextBulletRegex(g),C=this.rules.other.hrRegex(g),R=this.rules.other.fencesBeginRegex(g),U=this.rules.other.headingBeginRegex(g),ee=this.rules.other.htmlBeginRegex(g);for(;e;){let G=e.split(`
21
- `,1)[0],D;if(k=G,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),D=k):D=k.replace(this.rules.other.tabCharGlobal," "),R.test(k)||U.test(k)||ee.test(k)||P.test(k)||C.test(k))break;if(D.search(this.rules.other.nonSpaceChar)>=g||!k.trim())m+=`
22
- `+D.slice(g);else{if(b||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(f)||U.test(f)||C.test(f))break;m+=`
20
+ `,e=e.substring(k.length+1),d=!0),!d){let M=this.rules.other.nextBulletRegex(g),C=this.rules.other.hrRegex(g),R=this.rules.other.fencesBeginRegex(g),D=this.rules.other.headingBeginRegex(g),ee=this.rules.other.htmlBeginRegex(g);for(;e;){let G=e.split(`
21
+ `,1)[0],B;if(k=G,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),B=k):B=k.replace(this.rules.other.tabCharGlobal," "),R.test(k)||D.test(k)||ee.test(k)||M.test(k)||C.test(k))break;if(B.search(this.rules.other.nonSpaceChar)>=g||!k.trim())m+=`
22
+ `+B.slice(g);else{if(b||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(f)||D.test(f)||C.test(f))break;m+=`
23
23
  `+k}!b&&!k.trim()&&(b=!0),h+=G+`
24
- `,e=e.substring(G.length+1),f=D.slice(g)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let y=null,M;this.options.gfm&&(y=this.rules.other.listIsTask.exec(m),y&&(M=y[0]!=="[ ] ",m=m.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:h,task:!!y,checked:M,loose:!1,text:m,tokens:[]}),i.raw+=h}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let d=0;d<i.items.length;d++)if(this.lexer.state.top=!1,i.items[d].tokens=this.lexer.blockTokens(i.items[d].text,[]),!i.loose){let h=i.items[d].tokens.filter(f=>f.type==="space"),m=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=m}if(i.loose)for(let d=0;d<i.items.length;d++)i.items[d].loose=!0;return i}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=vt(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
24
+ `,e=e.substring(G.length+1),f=B.slice(g)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let y=null,P;this.options.gfm&&(y=this.rules.other.listIsTask.exec(m),y&&(P=y[0]!=="[ ] ",m=m.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:h,task:!!y,checked:P,loose:!1,text:m,tokens:[]}),i.raw+=h}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let d=0;d<i.items.length;d++)if(this.lexer.state.top=!1,i.items[d].tokens=this.lexer.blockTokens(i.items[d].text,[]),!i.loose){let h=i.items[d].tokens.filter(f=>f.type==="space"),m=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=m}if(i.loose)for(let d=0;d<i.items.length;d++)i.items[d].loose=!0;return i}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=vt(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
25
  `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let s of o)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(vt(s,a.header.length).map((l,d)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[d]})));return a}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
26
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=$e(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=jr(r[2],"()");if(a===-2)return;if(a>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),wt(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[o.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return wt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...o[0]].length-1,a,s,l=i,d=0,h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*e.length+i);(o=h.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(s=[...a].length,o[3]||o[4]){l+=s;continue}else if((o[5]||o[6])&&i%3&&!((i+s)%3)){d+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+d);let m=[...o[0]][0].length,f=e.slice(0,i+o.index+m+s);if(Math.min(i,s)%2){let b=f.slice(1,-1);return{type:"em",raw:f,text:b,tokens:this.lexer.inlineTokens(b)}}let k=f.slice(2,-2);return{type:"strong",raw:f,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,o;if(r[2]==="@")n=r[0],o="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},ie=class bt{static{S(this,"Q")}static{z(this,"u")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||be,this.options.tokenizer=this.options.tokenizer||new Xe,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 r={other:W,block:We.normal,inline:Fe.normal};this.options.pedantic?(r.block=We.pedantic,r.inline=Fe.pedantic):this.options.gfm&&(r.block=We.gfm,this.options.breaks?r.inline=Fe.breaks:r.inline=Fe.gfm),this.tokenizer.rules=r}static get rules(){return{block:We,inline:Fe}}static lex(e,r){return new bt(r).lex(e)}static lexInline(e,r){return new bt(r).inlineTokens(e)}lex(e){e=e.replace(W.carriageReturn,`
26
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=$e(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Br(r[2],"()");if(a===-2)return;if(a>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),wt(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[o.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return wt(n,i,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...o[0]].length-1,a,s,l=i,d=0,h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*e.length+i);(o=h.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(s=[...a].length,o[3]||o[4]){l+=s;continue}else if((o[5]||o[6])&&i%3&&!((i+s)%3)){d+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+d);let m=[...o[0]][0].length,f=e.slice(0,i+o.index+m+s);if(Math.min(i,s)%2){let b=f.slice(1,-1);return{type:"em",raw:f,text:b,tokens:this.lexer.inlineTokens(b)}}let k=f.slice(2,-2);return{type:"strong",raw:f,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,o;if(r[2]==="@")n=r[0],o="mailto:"+n;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);n=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},ie=class bt{static{S(this,"Q")}static{z(this,"u")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||be,this.options.tokenizer=this.options.tokenizer||new Xe,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 r={other:W,block:We.normal,inline:Fe.normal};this.options.pedantic?(r.block=We.pedantic,r.inline=Fe.pedantic):this.options.gfm&&(r.block=We.gfm,this.options.breaks?r.inline=Fe.breaks:r.inline=Fe.gfm),this.tokenizer.rules=r}static get rules(){return{block:We,inline:Fe}}static lex(e,r){return new bt(r).lex(e)}static lexInline(e,r){return new bt(r).inlineTokens(e)}lex(e){e=e.replace(W.carriageReturn,`
27
27
  `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){for(this.options.pedantic&&(e=e.replace(W.tabCharGlobal," ").replace(W.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let a=r.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
28
28
  `:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
29
29
  `)?"":`
@@ -57,7 +57,7 @@ ${e}</tr>
57
57
  `}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
58
58
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${te(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let o=this.parser.parseInline(n),i=ft(e);if(i===null)return o;e=i;let a='<a href="'+e+'"';return r&&(a+=' title="'+te(r)+'"'),a+=">"+o+"</a>",a}image({href:e,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let i=ft(e);if(i===null)return te(n);e=i;let a=`<img src="${e}" alt="${n}"`;return r&&(a+=` title="${te(r)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:te(e.text)}},Ft=class{static{S(this,"D")}static{z(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ae=class yt{static{S(this,"N")}static{z(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||be,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ft}static parse(e,r){return new yt(r).parse(e)}static parseInline(e,r){return new yt(r).parseInline(e)}parse(e,r=!0){let n="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=l||"";continue}}let a=i;switch(a.type){case"space":{n+=this.renderer.space(a);continue}case"hr":{n+=this.renderer.hr(a);continue}case"heading":{n+=this.renderer.heading(a);continue}case"code":{n+=this.renderer.code(a);continue}case"table":{n+=this.renderer.table(a);continue}case"blockquote":{n+=this.renderer.blockquote(a);continue}case"list":{n+=this.renderer.list(a);continue}case"html":{n+=this.renderer.html(a);continue}case"def":{n+=this.renderer.def(a);continue}case"paragraph":{n+=this.renderer.paragraph(a);continue}case"text":{let s=a,l=this.renderer.text(s);for(;o+1<e.length&&e[o+1].type==="text";)s=e[++o],l+=`
59
59
  `+this.renderer.text(s);r?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):n+=l;continue}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,r=this.renderer){let n="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=s||"";continue}}let a=i;switch(a.type){case"escape":{n+=r.text(a);break}case"html":{n+=r.html(a);break}case"link":{n+=r.link(a);break}case"image":{n+=r.image(a);break}case"strong":{n+=r.strong(a);break}case"em":{n+=r.em(a);break}case"codespan":{n+=r.codespan(a);break}case"br":{n+=r.br(a);break}case"del":{n+=r.del(a);break}case"text":{n+=r.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}},ze=class{static{S(this,"T")}static{z(this,"S")}options;block;constructor(e){this.options=e||be}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ie.lex:ie.lexInline}provideParser(){return this.block?ae.parse:ae.parseInline}},ti=class{static{S(this,"be")}static{z(this,"B")}defaults=rt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ae;Renderer=Qe;TextRenderer=Ft;Lexer=ie;Tokenizer=Xe;Hooks=ze;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(let o of e)switch(n=n.concat(r.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,r));break}case"list":{let i=o;n=n.concat(this.walkTokens(i.items,r));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=r.renderers[i.name];a?r.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[i.level];a?a.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),o.extensions=r),n.renderer){let i=this.defaults.renderer||new Qe(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=n.renderer[s],d=i[s];i[s]=(...h)=>{let m=l.apply(i,h);return m===!1&&(m=d.apply(i,h)),m||""}}o.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Xe(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=n.tokenizer[s],d=i[s];i[s]=(...h)=>{let m=l.apply(i,h);return m===!1&&(m=d.apply(i,h)),m}}o.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ze;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=n.hooks[s],d=i[s];ze.passThroughHooks.has(a)?i[s]=h=>{if(this.defaults.async&&ze.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(i,h);return d.call(i,f)})();let m=l.call(i,h);return d.call(i,m)}:i[s]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,h);return f===!1&&(f=await d.apply(i,h)),f})();let m=l.apply(i,h);return m===!1&&(m=d.apply(i,h)),m}}o.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;o.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ie.lex(e,r??this.defaults)}parser(e,r){return ae.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let o={...n},i={...this.defaults,...o},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(r):r,l=await(i.hooks?await i.hooks.provideLexer():e?ie.lex:ie.lexInline)(s,i),d=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(d,i.walkTokens));let h=await(i.hooks?await i.hooks.provideParser():e?ae.parse:ae.parseInline)(d,i);return i.hooks?await i.hooks.postprocess(h):h})().catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let s=(i.hooks?i.hooks.provideLexer():e?ie.lex:ie.lexInline)(r,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():e?ae.parse:ae.parseInline)(s,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(e,r){return n=>{if(n.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+te(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},we=new ti;function H(t,e){return we.parse(t,e)}S(H,"g$6");z(H,"k");H.options=H.setOptions=function(t){return we.setOptions(t),H.defaults=we.defaults,Et(H.defaults),H};H.getDefaults=rt;H.defaults=be;H.use=function(...t){return we.use(...t),H.defaults=we.defaults,Et(H.defaults),H};H.walkTokens=function(t,e){return we.walkTokens(t,e)};H.parseInline=we.parseInline;H.Parser=ae;H.parser=ae.parse;H.Renderer=Qe;H.TextRenderer=Ft;H.Lexer=ie;H.lexer=ie.lex;H.Tokenizer=Xe;H.Hooks=ze;H.parse=H;var nr=H,ri=Object.defineProperty,ni=S((t,e)=>ri(t,"name",{value:e,configurable:!0}),"t$1");const oi=["cjs","mjs"],ii=["mdoc"],Ce=ni(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||oi.includes(e))return"javascript";if(ii.includes(e))return"markdown";switch(e){case"js":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";default:return"javascript"}},"findLanguageBasedOnExtension"),ai=500,qr="visulima:vite-overlay:error",si="visulima-vite-overlay",Vr="Error",li="Runtime error",or="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",ir="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",ar="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",sr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",lr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var kt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(kt||{}),ci=`/*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */
60
+ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+te(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},we=new ti;function H(t,e){return we.parse(t,e)}S(H,"g$5");z(H,"k");H.options=H.setOptions=function(t){return we.setOptions(t),H.defaults=we.defaults,Et(H.defaults),H};H.getDefaults=rt;H.defaults=be;H.use=function(...t){return we.use(...t),H.defaults=we.defaults,Et(H.defaults),H};H.walkTokens=function(t,e){return we.walkTokens(t,e)};H.parseInline=we.parseInline;H.Parser=ae;H.parser=ae.parse;H.Renderer=Qe;H.TextRenderer=Ft;H.Lexer=ie;H.lexer=ie.lex;H.Tokenizer=Xe;H.Hooks=ze;H.parse=H;var nr=H,ri=Object.defineProperty,ni=S((t,e)=>ri(t,"name",{value:e,configurable:!0}),"t$1");const oi=["cjs","mjs"],ii=["mdoc"],Ce=ni(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||oi.includes(e))return"javascript";if(ii.includes(e))return"markdown";switch(e){case"js":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":return"typescript";case"tsx":return"tsx";case"xml":return"xml";case"md":return"markdown";case"mdx":return"mdx";case"svelte":return"svelte";case"vue":return"vue";case"html":return"html";case"css":return"css";case"scss":return"scss";case"less":return"less";case"sass":return"sass";case"stylus":return"stylus";case"styl":return"styl";default:return"javascript"}},"findLanguageBasedOnExtension"),ai=500,Or="visulima:vite-overlay:error",si="visulima-vite-overlay",qr="Error",li="Runtime error",or="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-copy%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22%20ry%3D%222%22%20%2F%3E%20%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20%2F%3E%20%3C%2Fsvg%3E",ir="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-info%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2016v-4%22%20%2F%3E%20%3Cpath%20d%3D%22M12%208h.01%22%20%2F%3E%20%3C%2Fsvg%3E",ar="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-moon-star%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%205h4%22%20%2F%3E%20%3Cpath%20d%3D%22M20%203v4%22%20%2F%3E%20%3Cpath%20d%3D%22M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401%22%20%2F%3E%20%3C%2Fsvg%3E",sr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-sun%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20%2F%3E%20%3Cpath%20d%3D%22M12%202v2%22%20%2F%3E%20%3Cpath%20d%3D%22M12%2020v2%22%20%2F%3E%20%3Cpath%20d%3D%22m4.93%204.93%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m17.66%2017.66%201.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22M2%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22M20%2012h2%22%20%2F%3E%20%3Cpath%20d%3D%22m6.34%2017.66-1.41%201.41%22%20%2F%3E%20%3Cpath%20d%3D%22m19.07%204.93-1.41%201.41%22%20%2F%3E%20%3C%2Fsvg%3E",lr="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-x%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%3E%20%3Cpath%20d%3D%22M18%206%206%2018%22%20%2F%3E%20%3Cpath%20d%3D%22m6%206%2012%2012%22%20%2F%3E%20%3C%2Fsvg%3E";var kt=(t=>(t.appcode="AppCode",t["android-studio"]="Android Studio",t.atom="Atom",t["atom-beta"]="Atom Beta",t.brackets="Brackets",t.clion="CLion",t.code="Visual Studio Code",t["code-insiders"]="Visual Studio Code Insiders",t.codium="VSCodium",t.cursor="Cursor",t.emacs="GNU Emacs",t.emacsforosx="GNU Emacs for Mac OS X",t.intellij="IntelliJ IDEA",t.idea="IntelliJ IDEA",t.nano="GNU nano",t.neovim="NeoVim",t["notepad++"]="Notepad++",t.phpstorm="PhpStorm",t.pycharm="PyCharm",t.rider="Rider",t.rubymine="RubyMine",t.sublime="SublimeText",t.textmate="TextMate",t.vim="Vim",t.visualstudio="Visual Studio",t.vscode="Visual Studio Code",t.vscodium="VSCodium",t.webstorm="WebStorm",t.xcode="Xcode",t.zed="Zed",t))(kt||{}),ci=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
61
61
  @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-lime-800:oklch(45.3% .124 130.933);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-md:.375rem;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body{background-color:var(--ono-v-bg);color:var(--ono-v-text)}pre,code{color:var(--ono-v-text)}.text-muted{color:var(--ono-v-text-muted)}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb,var(--ono-v-red-orange)20%,transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:.375rem;padding:.125rem .375rem;font:.75rem ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}hr{border-color:var(--ono-v-border)}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{top:calc(var(--ono-v-dialog-border-width)*-1)}.right-6{right:calc(var(--spacing)*6)}.right-\\[-54px\\]{right:-54px}.left-\\[-54px\\]{left:-54px}.-z-1{z-index:calc(1*-1)}.z-2{z-index:2}.z-10{z-index:10}.z-\\[2147483647\\]{z-index:2147483647}.m-1{margin:calc(var(--spacing)*1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing)*-3)}.-mt-5{margin-top:calc(var(--spacing)*-5)}.mt-8{margin-top:calc(var(--spacing)*8)}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6\\.5{width:calc(var(--spacing)*6.5);height:calc(var(--spacing)*6.5)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-10{height:calc(var(--spacing)*10)}.h-\\[40vmin\\]{height:40vmin}.h-\\[calc\\(100\\%\\+var\\(--ono-v-dialog-border-width\\)\\)\\]{height:calc(100% + var(--ono-v-dialog-border-width))}.h-\\[var\\(--ono-v-dialog-notch-height\\)\\]{height:var(--ono-v-dialog-notch-height)}.max-h-50{max-height:calc(var(--spacing)*50)}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[calc\\(100\\%-56px\\)\\]{max-height:calc(100% - 56px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\\/2{width:50%}.w-1\\/3{width:33.3333%}.w-2\\/3{width:66.6667%}.w-2\\/5{width:40%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-4\\/5{width:80%}.w-6{width:calc(var(--spacing)*6)}.w-42{width:calc(var(--spacing)*42)}.w-44{width:calc(var(--spacing)*44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[calc\\(var\\(--ono-v-dialog-max-width\\)-24px\\)\\]{max-width:calc(var(--ono-v-dialog-max-width) - 24px)}.max-w-\\[var\\(--ono-v-dialog-max-width\\)\\]{max-width:var(--ono-v-dialog-max-width)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\\[calc\\(var\\(--ono-v-dialog-border-width\\)\\*-1\\)\\]{--tw-translate-x:calc(var(--ono-v-dialog-border-width)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[var\\(--ono-v-dialog-border-width\\)\\]{--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[var\\(--ono-v-dialog-border-width\\)\\]{--tw-translate-y:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.\\[transform\\:rotateY\\(180deg\\)\\]{transform:rotateY(180deg)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\\[spin_20s_linear_infinite\\]{animation:20s linear infinite spin}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-0\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[var\\(--ono-v-radius-md\\)\\]{border-radius:var(--ono-v-radius-md)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-tl-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\[var\\(--ono-v-dialog-radius\\)\\]{border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\[var\\(--ono-v-dialog-radius\\)\\]{border-bottom-right-radius:var(--ono-v-dialog-radius);border-bottom-left-radius:var(--ono-v-dialog-radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-none{--tw-border-style:none;border-style:none}.border-\\[var\\(--ono-v-border\\)\\]{border-color:var(--ono-v-border)}.border-\\[var\\(--stroke-color\\)\\]{border-color:var(--stroke-color)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-\\[var\\(--background-color\\)\\]{background-color:var(--background-color)}.bg-\\[var\\(--ono-v-chip-bg\\)\\]{background-color:var(--ono-v-chip-bg)}.bg-\\[var\\(--ono-v-red-orange\\)\\]{background-color:var(--ono-v-red-orange)}.bg-\\[var\\(--ono-v-success-bg\\)\\]{background-color:var(--ono-v-success-bg)}.bg-\\[var\\(--ono-v-surface\\)\\]{background-color:var(--ono-v-surface)}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[15px\\]{padding-inline:15px}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pe-6{padding-inline-end:calc(var(--spacing)*6)}.pt-5{padding-top:calc(var(--spacing)*5)}.pt-\\[10vh\\]{padding-top:10vh}.pr-0{padding-right:calc(var(--spacing)*0)}.pl-0{padding-left:calc(var(--spacing)*0)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--ono-v-elevation-1\\)\\]{--tw-shadow:var(--ono-v-elevation-1);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[var\\(--ono-v-elevation-2\\)\\]{--tw-shadow:var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-shadow-\\[var\\(--ono-v-elevation-2\\)\\]{--tw-inset-shadow:inset var(--ono-v-elevation-2);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\[var\\(--ono-v-hover-overlay\\)\\]:hover{background-color:var(--ono-v-hover-overlay)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\[var\\(--ono-v-text\\)\\]:hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.focus\\:bg-\\[var\\(--ono-v-hover-overlay\\)\\]:focus{background-color:var(--ono-v-hover-overlay)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[var\\(--ono-v-red-orange\\)\\]:focus{--tw-ring-color:var(--ono-v-red-orange)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\[var\\(--ono-v-red-orange\\)\\]:focus-visible{outline-color:var(--ono-v-red-orange)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\\:bg-lime-800:where(.dark,.dark *){background-color:var(--color-lime-800)}.dark\\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.prose-headings\\:text-white :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--color-white)}.prose-ul\\:list-none :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:none}.prose-hr\\:my-6 :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--spacing)*6)}.prose-hr\\:border :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:1px}}:host{--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-x-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial:;--ono-v-white-smoke:#f5f5f5;--ono-v-red-orange:#ff4628;--ono-v-charcoal-black:#202020;--ono-v-bg:var(--ono-v-white-smoke);--ono-v-surface:#fff;--ono-v-surface-muted:#fafafa;--ono-v-border:#b9c8d780;--ono-v-hover-overlay:#2020200d;--ono-v-success:#2ea043;--ono-v-success-bg:#d6eed1;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e76812e;--ono-v-chip-bg:#6e768124;--ono-v-chip-text:var(--ono-v-text);--ono-v-radius-md:.5rem;--ono-v-radius-lg:.75rem;--ono-v-elevation-1:0 1px 2px #0000000a,0 1px 1px #00000005;--ono-v-elevation-2:0 10px 25px -5px #2020201a,0 8px 10px -6px #2020201a;--ono-v-text:#111827;--ono-v-text-muted:#374151;--ono-v-link:#c4311d;--ono-v-muted-on-surface:#374151;--ono-v-on-accent:#fff;--ono-v-dialog-border-width:1px;--ono-v-dialog-radius:12px;--ono-v-dialog-max-width:960px;--ono-v-dialog-row-padding:16px;--ono-v-dialog-padding:12px;--ono-v-dialog-notch-height:42px}.dark{--ono-v-bg:#161b22;--ono-v-surface:#0d1117;--ono-v-surface-muted:#0f141b;--ono-v-border:#30363d99;--ono-v-text:#c9d1d9;--ono-v-text-muted:#8b949e;--ono-v-link:#ff6a52;--ono-v-muted-on-surface:#8b949e;--ono-v-hover-overlay:#f0f6fc0f;--ono-v-on-accent:#fff;--ono-v-success:#2ea043;--ono-v-success-bg:#2ea04333;--ono-v-neutral:#6e7681;--ono-v-neutral-bg:#6e768140;--ono-v-chip-bg:#6e768133;--ono-v-chip-text:var(--ono-v-text)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (min-width:576px){:host{--ono-v-dialog-max-width:540px}}@media (min-width:768px){:host{--ono-v-dialog-max-width:720px}}@media (min-width:992px){:host{--ono-v-dialog-max-width:960px}}button:focus-visible,[role=tab]:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[data-open-in-editor]:focus-visible,.js-clipboard:focus-visible{outline:2px solid var(--ono-v-red-orange);outline-offset:2px}.lucide{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.dui{width:1rem;height:1rem;-webkit-mask-image:var(--icon);-webkit-mask-position:50%;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-image:var(--icon);mask-image:var(--icon);background-color:currentColor;display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.dui.hidden{display:none!important}.shiki{max-width:100%;max-height:300px;padding-bottom:calc(var(--spacing)*4);overflow-wrap:break-word;overflow:auto}.shiki pre{max-width:100%;overflow:auto}.dark .shiki,.dark .shiki span{color:var(--shiki-dark)!important;background-color:var(--shiki-dark-bg)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;-webkit-text-decoration:var(--shiki-dark-text-decoration)!important;text-decoration:var(--shiki-dark-text-decoration)!important}.shiki.has-diff .diff{position:relative}.shiki.has-diff .diff.add span{background-color:#00c75826}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.add span{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.shiki.has-diff .diff.remove span{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.shiki.has-diff .diff.remove span{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.shiki.has-diff .diff.add:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-green-500);-webkit-user-select:none;user-select:none;content:"+";position:absolute}.shiki.has-diff .diff.remove:before{pointer-events:none;left:calc(var(--spacing)*3);margin-top:calc(var(--spacing)*.5);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold);color:var(--color-red-500);-webkit-user-select:none;user-select:none;content:"−";position:absolute}.dark .shiki.has-diff .diff.add{background-color:#00c75833!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.add{background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.remove{background-color:#fb2c3633!important}@supports (color:color-mix(in lab, red, red)){.dark .shiki.has-diff .diff.remove{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)!important}}.dark .shiki.has-diff .diff.add:before{color:var(--color-green-400)}.dark .shiki.has-diff .diff.remove:before{color:var(--color-red-400)}.dark [type=checkbox]:checked,.dark [type=radio]:checked{background-color:currentColor}.v-o-skeleton{background:linear-gradient(90deg,#00000014 25%,#0000 50%,#00000014 75%) 0 0/200% 100%}.dark .v-o-skeleton{background:linear-gradient(90deg,#ffffff1a 25%,#0000 50%,#ffffff1a 75%)}#__v_o__stacktrace summary svg{transition:transform .2s}#__v_o__stacktrace[open] summary svg{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root{scrollbar-width:thin;scrollbar-color:var(--ono-v-border)transparent}#__v_o__root::-webkit-scrollbar{width:8px;height:8px}#__v_o__root::-webkit-scrollbar-track{background:var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb{background:var(--ono-v-border);border:1px solid var(--ono-v-surface-muted);border-radius:4px}#__v_o__root::-webkit-scrollbar-thumb:hover{background:var(--ono-v-neutral)}#__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-link)}#__v_o__root::-webkit-scrollbar-corner{background:var(--ono-v-surface-muted)}.dark #__v_o__root{scrollbar-color:#6e768199 transparent}.dark #__v_o__root::-webkit-scrollbar-track{background:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb{background:#6e768199;border-color:#0f141bcc}.dark #__v_o__root::-webkit-scrollbar-thumb:hover{background:#6e768199}.dark #__v_o__root::-webkit-scrollbar-thumb:active{background:var(--ono-v-red-orange)}.dark #__v_o__root::-webkit-scrollbar-corner{background:#0f141bcc}#__v_o__root{pointer-events:auto}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;const cr=`/* eslint-disable no-bitwise */
62
62
  /* eslint-disable class-methods-use-this */
63
63
  /* eslint-disable sonarjs/cognitive-complexity */
@@ -1706,16 +1706,16 @@ class ViteErrorOverlay`);return o=o.replace(hi,`${n}
1706
1706
  ${cr}
1707
1707
  var ViteErrorOverlay = `),o=`${o}
1708
1708
 
1709
- ${ui};`,o},"patchOverlay");var wi=Object.defineProperty,I=S((t,e)=>wi(t,"name",{value:e,configurable:!0}),"n$2");const bi=4,ur=1e3,yi=5,ki=.5,xi=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],_i=[".css",".scss",".sass",".less"],Zr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],$i=new Set([...Zr,...xi,..._i]),j=I((t,...e)=>{const r=t.toLowerCase();return e.some(n=>r.includes(n.toLowerCase()))},"has"),Ei=I((t,e)=>{const r=re.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),Si=I(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),Ci=I((t,e)=>{try{const r=re.relative(t,e).split(re.sep).filter(o=>o&&o!==".");let n=0;for(const o of r)n+=o===".."?2:1;return n}catch{return 10}},"calculatePathDistance"),Li=I((t,e,r,n)=>{if(e&&n===e){const i=Ge(t,r);return i<=Math.max(3,Math.floor(t.length*ki))?10-i:0}if(!e){const i=Ge(t,r);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&$i.has(n)?7-i:0}const o=Ge(t,r);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),Ti=I((t,e,r)=>{const n=[],o=I((i,a=0)=>{if(!(a>bi||n.length>ur))try{const s=wo.readdirSync(i,{withFileTypes:!0});for(const l of s){if(n.length>ur)break;const d=re.join(i,l.name);if(l.isDirectory()&&!l.name.startsWith(".")&&l.name!=="node_modules")o(d,a+1);else if(l.isFile()){const h=re.extname(l.name),m=re.basename(l.name,h),f=Li(e,r,m,h);f>0&&n.push({baseName:m,extension:h,fullPath:d,path:d,relevanceScore:f})}}}catch{}},"walk");return o(t),n},"collectFileCandidates"),gr=I((t,e,r)=>{const n=re.basename(t),o=re.extname(n),i=re.basename(n,o),a=re.dirname(e),s=Ti(r,i,o).map(f=>{const k=Ge(i,f.baseName),b=Ci(a,re.dirname(f.fullPath)),g=f.relevanceScore*.7+b*.2+k*.1;return{...f,nameDistance:k,pathDistance:b,score:g}});s.sort((f,k)=>f.score-k.score);const l=[],d=s.slice(0,8);let h=!1;for(const f of d){const k=Ei(a,f.fullPath);if(!l.includes(k)){const b=Si(f.pathDistance);l.push(k+b);const g=f.fullPath.replaceAll("\\","/").split("/"),y=g.indexOf("public");y!==-1&&y<g.length-1&&(h=!0)}}let m=`<ul>${[...new Set(l)].slice(0,yi).map(f=>`<li>\`${f}\`</li>`).join(`
1710
- `)}</ul>`;if(h){const f=n;[...Zr].some(k=>f.includes(k))&&(m+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${f}\`.`)}return m},"findSimilarFiles"),Pi=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:I(t=>j(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:I(t=>j(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:I(t=>j(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1711
- `),header:"Environment Variables"},test:I(t=>j(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:I(t=>j(t,"Failed to load")&&j(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:I(t=>j(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:I(t=>j(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:I((t,e)=>j(t,"TypeScript")||e&&e.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:I(t=>j(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:I(t=>j(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:I(t=>j(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:I(t=>j(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:I(t=>j(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1712
- `)},test:I(t=>j(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],Mi=I(t=>({async handle(e,r){const{file:n,language:o}=r,i=e.message??"";if(j(i,"Failed to resolve import","Cannot resolve module")){const a=i.match(/Failed to resolve import ["']([^"']+)["']/),s=i.match(/Cannot resolve module ["']([^"']+)["']/),l=a?.[1]||s?.[1];if(l&&n){const d=gr(l,n,t);if(d)return{body:`The import path \`${l}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${d}`};if([".jsx",".tsx"].includes(o)||j(i,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(o==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(j(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const a=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(a){const s=a[1];if(s&&n){const l=gr(s,n,t);if(l)return{body:`Cannot resolve \`${s}\`. Did you mean one of these files?${l}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const a of Pi)if(a.test(i,n))return a.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var Ri=Object.defineProperty,Se=S((t,e)=>Ri(t,"name",{value:e,configurable:!0}),"r$2");let Ae,Ie;const Fi=Se(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=e,{createJavaScriptRegexEngine:o}=r,i=await n({themes:[import("@shikijs/themes/github-dark-default"),import("@shikijs/themes/github-light")],langs:[import("@shikijs/langs/javascript"),import("@shikijs/langs/typescript"),import("@shikijs/langs/jsx"),import("@shikijs/langs/tsx"),import("@shikijs/langs/json"),import("@shikijs/langs/jsonc"),import("@shikijs/langs/xml"),import("@shikijs/langs/sql"),import("@shikijs/langs/bash"),import("@shikijs/langs/shell"),import("@shikijs/langs/markdown"),import("@shikijs/langs/mdx"),import("@shikijs/langs/html"),import("@shikijs/langs/css"),import("@shikijs/langs/scss"),import("@shikijs/langs/less"),import("@shikijs/langs/sass"),import("@shikijs/langs/stylus"),import("@shikijs/langs/styl"),...t],engine:o()}),a=i;return Ie=Se(()=>{try{i?.dispose?.()}catch{}Ae=void 0},"disposeFn"),a}catch{const{createHighlighter:e}=await import("shiki"),r=await e({langs:["javascript","typescript","jsx","tsx","json","jsonc","xml","sql","bash","shell","markdown","mdx"],themes:["github-dark-default","github-light"]});return Ie=Se(()=>{try{r?.dispose?.()}catch{}Ae=void 0},"disposeFn"),r}},"createSingletonHighlighter"),Ur=Se(async(t=[])=>(Ae||(Ae=Fi(t)),Ae),"getHighlighter");Se(async()=>{try{Ie&&(Ie(),Ie=void 0)}catch{}},"disposeHighlighter");const mr=Se((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const n=t.find(o=>o.line===r);return n?.classes&&this.addClassToHast(e,n.classes),e}}),"transformerCompactLineOptions");var zi=Object.defineProperty,Nr=S((t,e)=>zi(t,"name",{value:e,configurable:!0}),"s$3");const Hi=Nr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),Ai=Nr(t=>t.map((e,r)=>{const{location:n,pluginName:o,text:i}=e,a={message:i||`ESBuild error #${r+1}`};return n&&(a.file=n.file,a.line=n.line,a.column=n.column),o&&(a.plugin=o),a.name=e.name||"Error",a.stack=e.stack||"",a}),"processESBuildErrors");var Ii=Object.defineProperty,Wr=S((t,e)=>Ii(t,"name",{value:e,configurable:!0}),"c$6");const Di=Wr((t,e)=>{for(const[r,n]of t.moduleGraph.idToModuleMap){if(!n)continue;const o=n,i=[String(o.file||"").replaceAll("\\","/"),String(r||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const a of e)if(i.some(s=>s===a||s.includes(a)||a.includes(s)))return n}},"findBestModuleMatch"),De=Wr((t,e)=>{const r=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let n,o=0;for(const i of r)try{const a=t.moduleGraph.getModuleById(i);if(a){const l=Object.keys(a).length>0,d=!!a.transformResult;let h=0;if(l&&d?h=2:l&&(h=1),l&&(h>o&&(n=a,o=h),d))return a}const s=t.moduleGraph.getModuleByUrl?.(i);if(s){const l=Object.keys(s).length>0,d=!!s.transformResult;let h=0;if(l&&d?h=2:l&&(h=1),l&&(h>o&&(n=s,o=h),d))return s}}catch{}return n||Di(t,e)||void 0},"findModuleForPath");var Bi=Object.defineProperty,zt=S((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"r$1");const ji=/^https?:\/\//,Oi=zt(t=>{const e=new URL(t),{pathname:r}=e,n=e.search||"",o=[r+n,r,r.replace(/^\/@fs\//,""),decodeURIComponent(r+n),decodeURIComponent(r)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Gr=zt(t=>ji.test(t),"isHttpUrl"),fe=zt(t=>{if(!t)return[];try{if(Gr(t))return Oi(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const r=t.split("?")[0];r&&e.push(r)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var qi=Object.defineProperty,he=S((t,e)=>qi(t,"name",{value:e,configurable:!0}),"o$4");const Vi=he((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),fr=he(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Zi=he((t,e)=>{if(e<=0||e>t.length)return"";const r=Math.max(0,e-1),n=t.slice(r,r+64),o=/[A-Z_$][\w$]{2,}/i.exec(n);if(o?.[0])return o[0];let i=n.trim();return i.length<4&&(i=t.slice(Math.max(0,r-16),r+16).trim()),i},"extractCandidateToken"),Ui=he((t,e)=>{if(!t||t.length<3)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryTokenBasedSearch"),Ni=he((t,e)=>{if(!t)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryLineSubstringSearch"),Wi=he((t,e)=>{if(!t)return null;const r=fr(t);if(!r)return null;for(const[n,o]of e.entries()){if(!o)continue;const i=fr(o).indexOf(r);if(i!==-1){const a=Gi(o,i);if(a!==-1)return{column:a,line:n+1}}}return null},"tryWhitespaceInsensitiveSearch"),Gi=he((t,e)=>{let r=0;for(const[n,o]of[...t].entries())if(typeof o=="string"){if(r===e)return n+1;/\s/.test(o)||r++}return-1},"mapNormalizedToOriginalPosition"),Yi=he((t,e,r,n)=>{const o=Vi(t,e);if(!o)return null;const i=n.split(/\n/g),a=Zi(o,r);return Ui(a,i)||Ni(o.trim(),i)||Wi(o.trim(),i)},"realignOriginalPosition");var Xi=Object.defineProperty,K=S((t,e)=>Xi(t,"name",{value:e,configurable:!0}),"u$1");const Qi=/`((?:[^`$]|\$\{[^}]+\})*)`/g,vr=/\$\{[^}]+\}/g,Ji=/[.*+?^${}()|[\]\\]/g,Yr=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],ve=K(t=>t.replaceAll(Ji,String.raw`\$&`),"escapeRegex"),Ki=K(t=>{const e=ve(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${ve(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${ve(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),wr=K((t,e)=>{const r=[...t.matchAll(Qi)];for(const n of r){const o=n[1];if(!o)continue;const i=o.split(vr);if(i.every(s=>s===""||e.includes(s))&&i.length>1)return!0;if(!o)continue;const a=o.replaceAll(vr,"(.+?)");try{if(new RegExp(`^${ve(a)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),ea=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],ta=K(t=>{for(const e of ea){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),br=K(t=>{let e=null,r=null;for(const n of Yr){const o=t.match(n);o&&(!e||n.source.includes("throw")&&!r?.source.includes("throw"))&&(e=o,r=n)}return{bestMatch:e,bestPattern:r}},"findBestErrorConstructor"),yr=K((t,e)=>{let r=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const n=t[0].indexOf("new");n!==-1&&(r+=n)}return r+1},"calculateActualColumn"),ra=K((t,e,r=0)=>{if(!t||!e)return null;const n=t.split(`
1713
- `),o=ta(e),i=Ki(e),a=K((m,f,k)=>{let b=0;for(const[g,y]of m.entries()){if(!y)continue;const M=y.includes(f)||wr(y,f),P=Yr.some(C=>C.test(y));if(M&&P){const{bestMatch:C,bestPattern:R}=br(y);if(C&&R&&(b++,b>k))return{column:yr(C,R),line:g+1}}}return null},"processErrorConstructorLines")(n,e,r);if(a)return a;o&&K((m,f,k)=>{if(m[0].includes("Failed to resolve import")){const b=m[1];if(!b)return;const g=ve(b);k.unshift(`import.*from ["']${g}["']`,`import.*["']${g}["']`,b)}else if(m[0].includes("is not defined")){const b=m[1];if(!b)return;k.unshift(b,`{${b}}`,`src={${b}}`,`${b}.`,`=${b}`)}else if(m[0].includes("Cannot read properties")){const b=m[1],g=m[2];if(!g)return;k.unshift(g,`${b}.${g}`,`${b}?.${g}`,`${b}[${g}]`)}else{const b=m[1];if(!b)return;const g=ve(f),y=ve(b);k.unshift(`new Error(\`${y}`,`throw new Error(\`${y}`,`new Error("${y}`,`new Error('${y}`,`throw new Error("${y}`,`throw new Error('${y}`,`new Error("${g}")`,`new Error('${g}')`,`throw new Error("${g}")`,`throw new Error('${g}')`,`new Error(\`${g}\`)`,`throw new Error(\`${g}\`)`)}},"addDynamicPatterns")(o,e,i);const s=K((m,f,k)=>{let b=0;for(const[g,y]of m.entries()){if(!y||!wr(y,f))continue;const{bestMatch:M,bestPattern:P}=br(y);if(M&&P&&(b++,b>k))return{column:yr(M,P),line:g+1}}return null},"processTemplateLiteralLines"),l=K((m,f,k,b)=>{let g=0;for(const[y,M]of m.entries()){if(!M)continue;let P=-1,C=null;for(const R of f){const U=M.indexOf(R);U!==-1&&(P===-1||U<P)&&(P=U,C=R)}if(P!==-1&&C&&(g++,g>b))return{column:d(P,C,M,k),line:y+1}}return null},"processPatternLines"),d=K((m,f,k,b)=>{if(!b)return m+1;if(b[0].includes("Failed to resolve import")){const g=b[1];if(k.includes(`"${g}"`)||k.includes(`'${g}'`)){const y=k.includes(`"${g}"`)?'"':"'";return k.indexOf(`${y}${g}${y}`)+1}}else if(b[0].includes("is not defined")){const g=b[1];if(g&&f===g)return m+1;if(g&&f.includes(g))return m+f.indexOf(g)+1}else if(b[0].includes("Cannot read properties")){const g=b[2];if(g&&f.includes(g))return m+f.indexOf(g)+1}else if(f.includes("new Error("))return k.indexOf("new Error(")+1;return m+1},"calculatePatternColumn");return s(n,e,r)||l(n,i,o,r)},"findErrorInSourceCode");var na=Object.defineProperty,Oe=S((t,e)=>na(t,"name",{value:e,configurable:!0}),"m$4");const oa=1,kr=Oe((t,e)=>{let r=t,n=e;return t>=20?r=Math.max(1,Math.round(t*.5)):t>15?r=Math.max(1,Math.round(t*.6)):t>10?r=Math.max(1,t-8):r=Math.max(1,t-3),e>=10||e>7?n=Math.max(0,e-1):e>5&&(n=Math.max(0,e)),{estimatedColumn:n,estimatedLine:r}},"estimateOriginalPosition"),ia=Oe((t,e,r)=>{try{const n=new bo(t),o=[{column:r,desc:"original",line:e},{column:Math.max(0,r-oa),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(i,a)=>({column:Math.max(0,r-2+a),desc:`col ${r-2+a}`,line:e}))];for(const i of o){const a=yo(n,{column:i.column,line:i.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(n){console.warn("Source map processing failed:",n)}return null},"resolveSourceMapPosition"),aa=Oe((t,e)=>e?Gr(t)?sa(t,e):e:t,"resolveSourcePath"),sa=Oe((t,e)=>{try{const r=new URL(t),n=(r.pathname||"").replace(/^\//,""),o=n.includes("/")?n.slice(0,Math.max(0,n.lastIndexOf("/"))):"";return`${r.origin}/${o?`${o}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),xt=Oe(async(t,e,r,n,o,i,a=0)=>{if(i&&e)try{let l=null;if(e.transformResult?.map?.sourcesContent?.[0]?l=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(l=e.transformResult.code),!l&&(e.id||e.url)){const d=e.id||e.url;if(d)try{const h=await t.transformRequest(d);h?.map&&"sourcesContent"in h.map&&h.map.sourcesContent?.[0]?l=h.map.sourcesContent[0]:h?.code&&(l=h.code)}catch(h){console.warn("Failed to get fresh source for error search:",h)}}if(!l&&r)try{const d=await import("node:fs/promises");let h=r;if(r.includes("://"))try{h=new URL(r).pathname}catch{const m=r.indexOf("://");m!==-1&&(h=r.slice(m+3))}h.startsWith("/")||(h=`${t.config.root||process.cwd()}/${h}`),l=await d.readFile(h,"utf8")}catch(d){console.warn("Failed to read source file from disk:",d)}if(l){const d=ra(l,i,a);if(d)return{originalFileColumn:d.column,originalFileLine:d.line,originalFilePath:r}}}catch(l){console.warn("Source code search failed:",l)}let s=e?.transformResult?.map;if(!s&&(e?.id||e?.url)){const l=e.id||e.url;if(l)try{const d=await t.transformRequest(l);d?.map&&(s=d.map)}catch(d){console.warn("Failed to get fresh source map:",d)}}if(!s){const{estimatedColumn:l,estimatedLine:d}=kr(n,o);return{originalFileColumn:l,originalFileLine:d,originalFilePath:r}}try{const l=ia(s,n,o);if(!l){const{estimatedColumn:h,estimatedLine:m}=kr(n,o);return{originalFileColumn:h,originalFileLine:m,originalFilePath:r}}const d=aa(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:d}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:o,originalFileLine:n,originalFilePath:r}}},"resolveOriginalLocation");var la=Object.defineProperty,ca=S((t,e)=>la(t,"name",{value:e,configurable:!0}),"$e"),da=Object.defineProperty,Ht=ca((t,e)=>da(t,"name",{value:e,configurable:!0}),"W"),pa=Object.defineProperty,_=Ht((t,e)=>pa(t,"name",{value:e,configurable:!0}),"u$1");let xr=_(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=_((c,p)=>{for(var u in p)e(c,u,{get:p[u],enumerable:!0})},"ne"),a=_((c,p,u,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let v of n(p))!o.call(c,v)&&v!==u&&e(c,v,{get:_(()=>p[v],"get"),enumerable:!(w=r(p,v))||w.enumerable});return c},"ae"),s=_(c=>a(e({},"__esModule",{value:!0}),c),"oe"),l={};i(l,{zeptomatch:_(()=>Xt,"zeptomatch")});var d=_(c=>{const p=new Set,u=[c];for(let w=0;w<u.length;w++){const v=u[w];if(p.has(v))continue;p.add(v);const{children:x}=v;if(x?.length)for(let E=0,F=x.length;E<F;E++)u.push(x[E])}return Array.from(p)},"M"),h=_(c=>{let p="";const u=d(c);for(let w=0,v=u.length;w<v;w++){const x=u[w];if(!x.regex)continue;const E=x.regex.flags;if(p||(p=E),p!==E)throw new Error(`Inconsistent RegExp flags used: "${p}" and "${E}"`)}return p},"se"),m=_((c,p,u)=>{const w=u.get(c);if(w!==void 0)return w;const v=c.partial??p;let x="";if(c.regex&&(x+=v?"(?:$|":"",x+=c.regex.source),c.children?.length){const E=k(c.children.map(F=>m(F,p,u)).filter(Boolean));if(E?.length){const F=c.children.some(Pe=>!Pe.regex||!(Pe.partial??p)),V=E.length>1||v&&(!x.length||F);x+=V?v?"(?:$|":"(?:":"",x+=E.join("|"),x+=V?")":""}}return c.regex&&(x+=v?")":""),u.set(c,x),x},"O"),f=_((c,p)=>{const u=new Map,w=d(c);for(let v=w.length-1;v>=0;v--){const x=m(w[v],p,u);if(!(v>0))return x}return""},"ie"),k=_(c=>Array.from(new Set(c)),"ue"),b=_((c,p,u)=>b.compile(c,u).test(p),"R");b.compile=(c,p)=>{const u=p?.partial??!1,w=f(c,u),v=h(c);return new RegExp(`^(?:${w})$`,v)};var g=b,y=_((c,p)=>{const u=g.compile(c,p),w=`${u.source.slice(0,-1)}[\\\\/]?$`,v=u.flags;return new RegExp(w,v)},"le"),M=y,P=_(c=>{const p=c.map(w=>w.source).join("|")||"$^",u=c[0]?.flags;return new RegExp(p,u)},"ve"),C=P,R=_(c=>Array.isArray(c),"j"),U=_(c=>typeof c=="function","_"),ee=_(c=>c.length===0,"he"),G=(()=>{const{toString:c}=Function.prototype,p=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return u=>(u.length===0||u.length===1)&&p.test(c.call(u))})(),D=_(c=>typeof c=="number","de"),N=_(c=>typeof c=="object"&&c!==null,"xe"),st=_(c=>c instanceof RegExp,"me"),lt=(()=>{const c=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return p=>c.test(p.source)})(),ue=(()=>{const c=/^[a-zA-Z0-9_-]+$/;return p=>c.test(p.source)&&!p.flags.includes("i")})(),Ve=_(c=>typeof c=="string","A"),T=_(c=>c===void 0,"f"),A=_(c=>{const p=new Map;return u=>{const w=p.get(u);if(w!==void 0)return w;const v=c(u);return p.set(u,v),v}},"ye"),O=_((c,p,u={})=>{const w={cache:{},input:c,index:0,indexBacktrackMax:0,options:u,output:[]},v=de(p)(w),x=Math.max(w.index,w.indexBacktrackMax);if(v&&w.index===c.length)return w.output;throw new Error(`Failed to parse at index ${x}`)},"I"),$=_((c,p)=>R(c)?ke(c,p):Ve(c)?Ne(c,p):le(c,p),"i"),ke=_((c,p)=>{const u={};for(const w of c){if(w.length!==1)throw new Error(`Invalid character: "${w}"`);const v=w.charCodeAt(0);u[v]=!0}return w=>{const v=w.input;let x=w.index,E=x;for(;E<v.length&&v.charCodeAt(E)in u;)E+=1;if(E>x){if(!T(p)&&!w.options.silent){const F=v.slice(x,E),V=U(p)?p(F,v,`${x}`):p;T(V)||w.output.push(V)}w.index=E}return!0}},"we"),le=_((c,p)=>{if(ue(c))return Ne(c.source,p);{const u=c.source,w=c.flags.replace(/y|$/,"y"),v=new RegExp(u,w);return lt(c)&&U(p)&&!G(p)?Ze(v,p):Ue(v,p)}},"$e"),Ze=_((c,p)=>u=>{const w=u.index,v=u.input;c.lastIndex=w;const x=c.exec(v);if(x){const E=c.lastIndex;if(!u.options.silent){const F=p(...x,v,`${w}`);T(F)||u.output.push(F)}return u.index=E,!0}else return!1},"Ee"),Ue=_((c,p)=>u=>{const w=u.index,v=u.input;if(c.lastIndex=w,c.test(v)){const x=c.lastIndex;if(!T(p)&&!u.options.silent){const E=U(p)?p(v.slice(w,x),v,`${w}`):p;T(E)||u.output.push(E)}return u.index=x,!0}else return!1},"Ce"),Ne=_((c,p)=>u=>{const w=u.index,v=u.input;if(v.startsWith(c,w)){if(!T(p)&&!u.options.silent){const x=U(p)?p(c,v,`${w}`):p;T(x)||u.output.push(x)}return u.index+=c.length,!0}else return!1},"F"),ce=_((c,p,u,w)=>{const v=de(c),x=p>1;return dt(ct(Dt(E=>{let F=0;for(;F<u;){const V=E.index;if(!v(E)||(F+=1,E.index===V))break}return F>=p},x),w))},"k"),q=_((c,p)=>ce(c,0,1,p),"L"),Y=_((c,p)=>ce(c,0,1/0,p),"$"),ge=_((c,p)=>ce(c,1,1/0,p),"Re"),Q=_((c,p)=>{const u=c.map(de);return dt(ct(Dt(w=>{for(let v=0,x=u.length;v<x;v++)if(!u[v](w))return!1;return!0}),p))},"x"),J=_((c,p)=>{const u=c.map(de);return dt(ct(w=>{for(let v=0,x=u.length;v<x;v++)if(u[v](w))return!0;return!1},p))},"p"),Dt=_((c,p=!0,u=!1)=>{const w=de(c);return p?v=>{const x=v.index,E=v.output.length,F=w(v);return!F&&!u&&(v.indexBacktrackMax=Math.max(v.indexBacktrackMax,v.index)),(!F||u)&&(v.index=x,v.output.length!==E&&(v.output.length=E)),F}:w},"q"),ct=_((c,p)=>{const u=de(c);return p?w=>{if(w.options.silent)return u(w);const v=w.output.length;if(u(w)){const x=w.output.splice(v,1/0),E=p(x);return T(E)||w.output.push(E),!0}else return!1}:u},"B"),dt=(()=>{let c=0;return p=>{const u=de(p),w=c+=1;return v=>{var x;if(v.options.memoization===!1)return u(v);const E=v.index,F=(x=v.cache)[w]||(x[w]={indexMax:-1,queue:[]}),V=F.queue;if(E<=F.indexMax){const Me=F.store||(F.store=new Map);if(V.length){for(let _e=0,ao=V.length;_e<ao;_e+=2){const so=V[_e*2],lo=V[_e*2+1];Me.set(so,lo)}V.length=0}const oe=Me.get(E);if(oe===!1)return!1;if(D(oe))return v.index=oe,!0;if(oe)return v.index=oe.index,oe.output?.length&&v.output.push(...oe.output),!0}const Pe=v.output.length,io=u(v);if(F.indexMax=Math.max(F.indexMax,E),io){const Me=v.index,oe=v.output.length;if(oe>Pe){const _e=v.output.slice(Pe,oe);V.push(E,{index:Me,output:_e})}else V.push(E,Me);return!0}else return V.push(E,!1),!1}}})(),Bt=_(c=>{let p;return u=>(p||(p=de(c())),p(u))},"G"),de=A(c=>{if(U(c))return ee(c)?Bt(c):c;if(Ve(c)||st(c))return $(c);if(R(c))return Q(c);if(N(c))return J(Object.values(c));throw new Error("Invalid rule")}),me=_(c=>c,"d"),rn=_(c=>typeof c=="string","ke"),nn=_(c=>{const p=new WeakMap,u=new WeakMap;return(w,v)=>{const x=v?.partial?u:p,E=x.get(w);if(E!==void 0)return E;const F=c(w,v);return x.set(w,F),F}},"Be"),on=_(c=>{const p={},u={};return(w,v)=>{const x=v?.partial?u:p;return x[w]??(x[w]=c(w,v))}},"Pe"),an=$(/\\./,me),sn=$(/./,me),ln=$(/\*\*\*+/,"*"),cn=$(/([^/{[(!])\*\*/,(c,p)=>`${p}*`),dn=$(/(^|.)\*\*(?=[^*/)\]}])/,(c,p)=>`${p}*`),pn=Y(J([an,ln,cn,dn,sn])),hn=pn,un=_(c=>O(c,hn,{memoization:!1}).join(""),"Ie"),gn=un,jt="abcdefghijklmnopqrstuvwxyz",mn=_(c=>{let p="";for(;c>0;){const u=(c-1)%26;p=jt[u]+p,c=Math.floor((c-1)/26)}return p},"Le"),Ot=_(c=>{let p=0;for(let u=0,w=c.length;u<w;u++)p=p*26+jt.indexOf(c[u])+1;return p},"V"),pt=_((c,p)=>{if(p<c)return pt(p,c);const u=[];for(;c<=p;)u.push(c++);return u},"b"),fn=_((c,p,u)=>pt(c,p).map(w=>String(w).padStart(u,"0")),"qe"),qt=_((c,p)=>pt(Ot(c),Ot(p)).map(mn),"W"),B=_(c=>({partial:!1,regex:new RegExp(c,"s"),children:[]}),"c"),Te=_(c=>({children:c}),"y"),xe=(()=>{const c=_((p,u,w)=>{if(w.has(p))return;w.add(p);const{children:v}=p;if(!v.length)v.push(u);else for(let x=0,E=v.length;x<E;x++)c(v[x],u,w)},"e");return p=>{if(!p.length)return Te([]);for(let u=p.length-1;u>=1;u--){const w=new Set,v=p[u-1],x=p[u];c(v,x,w)}return p[0]}})(),pe=_(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),vn=$(/\\./,B),wn=$(/[$.*+?^(){}[\]\|]/,c=>B(`\\${c}`)),bn=$(/[\\\/]/,pe),yn=$(/[^$.*+?^(){}[\]\|\\\/]+/,B),kn=$(/^(?:!!)*!(.*)$/,(c,p)=>B(`(?!^${Xt.compile(p).source}$).*?`)),xn=$(/^(!!)+/),_n=J([kn,xn]),$n=$(/\/(\*\*\/)+/,()=>Te([xe([pe(),B(".+?"),pe()]),pe()])),En=$(/^(\*\*\/)+/,()=>Te([B("^"),xe([B(".*?"),pe()])])),Sn=$(/\/(\*\*)$/,()=>Te([xe([pe(),B(".*?")]),B("$")])),Cn=$(/\*\*/,()=>B(".*?")),Vt=J([$n,En,Sn,Cn]),Ln=$(/\*\/(?!\*\*\/|\*$)/,()=>xe([B("[^\\\\/]*?"),pe()])),Tn=$(/\*/,()=>B("[^\\\\/]*")),Zt=J([Ln,Tn]),Ut=$("?",()=>B("[^\\\\/]")),Pn=$("[",me),Mn=$("]",me),Rn=$(/[!^]/,"^\\\\/"),Fn=$(/[a-z]-[a-z]|[0-9]-[0-9]/i,me),zn=$(/\\./,me),Hn=$(/[$.*+?^(){}[\|]/,c=>`\\${c}`),An=$(/[\\\/]/,"\\\\/"),In=$(/[^$.*+?^(){}[\]\|\\\/]+/,me),Dn=J([zn,Hn,An,Fn,In]),Nt=Q([Pn,q(Rn),Y(Dn),Mn],c=>B(c.join(""))),Bn=$("{","(?:"),jn=$("}",")"),On=$(/(\d+)\.\.(\d+)/,(c,p,u)=>fn(+p,+u,Math.min(p.length,u.length)).join("|")),qn=$(/([a-z]+)\.\.([a-z]+)/,(c,p,u)=>qt(p,u).join("|")),Vn=$(/([A-Z]+)\.\.([A-Z]+)/,(c,p,u)=>qt(p.toLowerCase(),u.toLowerCase()).join("|").toUpperCase()),Zn=J([On,qn,Vn]),Wt=Q([Bn,Zn,jn],c=>B(c.join(""))),Un=$("{"),Nn=$("}"),Wn=$(","),Gn=$(/\\./,B),Yn=$(/[$.*+?^(){[\]\|]/,c=>B(`\\${c}`)),Xn=$(/[\\\/]/,pe),Qn=$(/[^$.*+?^(){}[\]\|\\\/,]+/,B),Jn=Bt(()=>Yt),Kn=$("",()=>B("(?:)")),eo=ge(J([Vt,Zt,Ut,Nt,Wt,Jn,Gn,Yn,Xn,Qn]),xe),Gt=J([eo,Kn]),Yt=Q([Un,q(Q([Gt,Y(Q([Wn,Gt]))])),Nn],Te),to=Y(J([_n,Vt,Zt,Ut,Nt,Wt,Yt,vn,wn,bn,yn]),xe),ro=to,no=_(c=>O(c,ro,{memoization:!1})[0],"kr"),oo=no,ht=_((c,p,u)=>ht.compile(c,u).test(p),"N");ht.compile=(()=>{const c=on((u,w)=>M(oo(gn(u)),w)),p=nn((u,w)=>C(u.map(v=>c(v,w))));return(u,w)=>rn(u)?c(u,w):p(u,w)})();var Xt=ht;return s(l)})();return t.default||t},"_lazyMatch"),ut;const ha=_((t,e)=>(ut||(ut=xr(),xr=null),ut(t,e)),"default");var ua=Object.defineProperty,ga=Ht((t,e)=>ua(t,"name",{value:e,configurable:!0}),"t");const ma=/^[A-Z]:\//i,ye=ga((t="")=>t&&t.replaceAll("\\","/").replace(ma,e=>e.toUpperCase()),"normalizeWindowsPath");var fa=Object.defineProperty,X=Ht((t,e)=>fa(t,"name",{value:e,configurable:!0}),"r");const va=/^[/\\]{2}/,wa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Xr=/^[A-Z]:$/i,_r=/^\/([A-Z]:)?$/i,ba=/.(\.[^./]+)$/,ya=/^[/\\]|^[a-z]:[/\\]/i,ka=X(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Qr=X((t,e)=>{let r="",n=0,o=-1,i=0,a;for(let s=0;s<=t.length;++s){if(s<t.length)a=t[s];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===s-1||i===1))if(i===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}else if(r.length>0){r="",n=0,o=s,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(o+1,s)}`:r=t.slice(o+1,s),n=s-o-1;o=s,i=0}else a==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Be=X(t=>wa.test(t),"isAbsolute"),Je=X(function(t){if(t.length===0)return".";t=ye(t);const e=va.exec(t),r=Be(t),n=t.at(-1)==="/";return t=Qr(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Xr.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Be(t)?`/${t}`:t)},"normalize");X((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const n=e[e.length-1]==="/",o=r[0]==="/";n&&o?e+=r.slice(1):e+=n||o?r:`/${r}`}else e+=r;return Je(e)},"join");const Ke=X(function(...t){t=t.map(n=>ye(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const o=n>=0?t[n]:ka();!o||o.length===0||(e=`${o}/${e}`,r=Be(o))}return e=Qr(e,!r),r&&!Be(e)?`/${e}`:e.length>0?e:"."},"resolve");X(function(t){return ye(t)},"toNamespacedPath");const xa=X(function(t){return ba.exec(ye(t))?.[1]??""},"extname");X(function(t,e){const r=Ke(t).replace(_r,"$1").split("/"),n=Ke(e).replace(_r,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const o=[...r];for(const i of o){if(n[0]!==i)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const _a=X(t=>{const e=ye(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Xr.test(e[0])&&(e[0]+="/"),e.join("/")||(Be(t)?"/":".")},"dirname");X(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return ye(t.root?Ke(...e):e.join("/"))},"format");const $a=X((t,e)=>{const r=ye(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");X(function(t){const e=ya.exec(t)?.[0]?.replaceAll("\\","/")??"",r=$a(t),n=xa(r);return{base:r,dir:_a(t),ext:n,name:r.slice(0,r.length-n.length),root:e}},"parse");X((t,e)=>ha(e,Je(t)),"matchesGlob");var Ea=Object.defineProperty,ne=S((t,e)=>Ea(t,"name",{value:e,configurable:!0}),"e$1");const _t="/",$r=":",Sa="at ",Ca=/https?:\/\/[^\s)]+/g,La=/file:\/\//g,Jr=/\/@fs\//g,Ta=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Pa=new Set(["<anonymous>","<unknown>","native"]),Ma=ne(t=>{const e=t.trim();return!e.startsWith(Sa)||!([...Ta].some(r=>e.includes(r))||[...Pa].some(r=>e.includes(r)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Ra=ne(t=>(t=t.replaceAll(Jr,_t),t=t.replaceAll(La,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Ma(t)?"":t),"cleanStackLine"),Fa=ne((t,e)=>{try{const{baseUrl:r,col:n,line:o}=za(t),i=Ha(r,e);return Aa(i,o,n)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),za=ne(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],n=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:n,line:r}},"parseUrlWithLocation"),Ha=ne((t,e)=>{const r=new URL(t);let n=decodeURIComponent(r.pathname||"");return n=n.replaceAll(Jr,_t),Ke(e,n.startsWith(_t)?n.slice(1):n)},"urlToAbsolutePath"),Aa=ne((t,e,r)=>{if(!e)return t;const n=r?`${$r}${r}`:"";return`${t}${$r}${e}${n}`},"formatAbsolutePath"),At=ne(t=>t&&t.replaceAll(`\r
1709
+ ${ui};`,o},"patchOverlay");var wi=Object.defineProperty,I=S((t,e)=>wi(t,"name",{value:e,configurable:!0}),"n$2");const bi=4,ur=1e3,yi=5,ki=.5,xi=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],_i=[".css",".scss",".sass",".less"],Vr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],$i=new Set([...Vr,...xi,..._i]),O=I((t,...e)=>{const r=t.toLowerCase();return e.some(n=>r.includes(n.toLowerCase()))},"has"),Ei=I((t,e)=>{const r=re.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),Si=I(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),Ci=I((t,e)=>{try{const r=re.relative(t,e).split(re.sep).filter(o=>o&&o!==".");let n=0;for(const o of r)n+=o===".."?2:1;return n}catch{return 10}},"calculatePathDistance"),Li=I((t,e,r,n)=>{if(e&&n===e){const i=Ge(t,r);return i<=Math.max(3,Math.floor(t.length*ki))?10-i:0}if(!e){const i=Ge(t,r);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&$i.has(n)?7-i:0}const o=Ge(t,r);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),Ti=I((t,e,r)=>{const n=[],o=I((i,a=0)=>{if(!(a>bi||n.length>ur))try{const s=wo.readdirSync(i,{withFileTypes:!0});for(const l of s){if(n.length>ur)break;const d=re.join(i,l.name);if(l.isDirectory()&&!l.name.startsWith(".")&&l.name!=="node_modules")o(d,a+1);else if(l.isFile()){const h=re.extname(l.name),m=re.basename(l.name,h),f=Li(e,r,m,h);f>0&&n.push({baseName:m,extension:h,fullPath:d,path:d,relevanceScore:f})}}}catch{}},"walk");return o(t),n},"collectFileCandidates"),gr=I((t,e,r)=>{const n=re.basename(t),o=re.extname(n),i=re.basename(n,o),a=re.dirname(e),s=Ti(r,i,o).map(f=>{const k=Ge(i,f.baseName),b=Ci(a,re.dirname(f.fullPath)),g=f.relevanceScore*.7+b*.2+k*.1;return{...f,nameDistance:k,pathDistance:b,score:g}});s.sort((f,k)=>f.score-k.score);const l=[],d=s.slice(0,8);let h=!1;for(const f of d){const k=Ei(a,f.fullPath);if(!l.includes(k)){const b=Si(f.pathDistance);l.push(k+b);const g=f.fullPath.replaceAll("\\","/").split("/"),y=g.indexOf("public");y!==-1&&y<g.length-1&&(h=!0)}}let m=`<ul>${[...new Set(l)].slice(0,yi).map(f=>`<li>\`${f}\`</li>`).join(`
1710
+ `)}</ul>`;if(h){const f=n;[...Vr].some(k=>f.includes(k))&&(m+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${f}\`.`)}return m},"findSimilarFiles"),Pi=[{solution:{body:"Browser APIs like `window` and `document` are not available during server-side rendering. Use dynamic imports or check for SSR environment before using browser APIs.",header:"SSR Browser API Error"},test:I(t=>O(t,"window is not defined","document is not defined"),"test")},{solution:{body:"Some plugins need specific ordering. Use `enforce: 'pre'` for plugins that need to run first, or `enforce: 'post'` for plugins that need to run last.",header:"Plugin Ordering Issue"},test:I(t=>O(t,"Plugin ordering","enforce"),"test")},{solution:{body:"CSS Modules require proper configuration. Make sure your CSS files use the `.module.css` extension and are imported correctly.",header:"CSS Modules Configuration"},test:I(t=>O(t,"CSS Modules","module.css"),"test")},{solution:{body:["Only variables prefixed with `VITE_` are exposed on `import.meta.env` to the client at build time.","Server-only variables should not be prefixed with `VITE_`.","- Do not use `process.env` in browser code; prefer `import.meta.env.*`","- Custom vars must be prefixed with `VITE_` to be exposed to client",'- For TS, add `/// <reference types="vite/client" />` for type-safe access'].join(`
1711
+ `),header:"Environment Variables"},test:I(t=>O(t,"VITE_","process.env"),"test")},{solution:{body:"For static assets, use the `new URL('./path/to/asset', import.meta.url)` syntax or import them and use the returned URL.",header:"Asset Import Issue"},test:I(t=>O(t,"Failed to load")&&O(t,".png",".jpg",".svg"),"test")},{solution:{body:"Some issues only occur in production builds. Check if the error happens in development mode. You might need different configurations for build vs dev.",header:"Build vs Development Mode"},test:I(t=>O(t,"production","build"),"test")},{solution:{body:"HMR issues can occur with certain patterns. Make sure you're not mutating module-level variables and consider using `import.meta.hot` guards.",header:"Hot Module Replacement Issue"},test:I(t=>O(t,"HMR","hot reload"),"test")},{solution:{body:"Check your `tsconfig.json` and make sure it includes proper paths and compiler options. For Vite, you might need a `vite-env.d.ts` file.",header:"TypeScript Configuration"},test:I((t,e)=>O(t,"TypeScript")||e&&e.endsWith(".ts"),"test")},{solution:{body:"Some dependencies need to be excluded from pre-bundling. Add them to `optimizeDeps.exclude` in your Vite config.",header:"Dependency Optimization"},test:I(t=>O(t,"optimizeDeps","pre-bundling"),"test")},{solution:{body:"Configure path aliases in your Vite config using the `resolve.alias` option to match your TypeScript path mappings.",header:"Path Resolution"},test:I(t=>O(t,"resolve.alias","Cannot find module"),"test")},{solution:{body:"Server middleware and proxy settings should be configured in the `server` section of your Vite config.",header:"Server Configuration"},test:I(t=>O(t,"middleware","proxy"),"test")},{solution:{body:"Check your plugin configuration in `vite.config.js/ts`. Make sure all required options are provided and options are correctly typed.",header:"Plugin Configuration"},test:I(t=>O(t,"plugin","configuration"),"test")},{solution:{body:"Configure your build output directory using `build.outDir` in your Vite config. Make sure the directory is writable.",header:"Build Output Configuration"},test:I(t=>O(t,"build.outDir","dist"),"test")},{solution:{body:["Client and server rendered markup differ.","","Checklist:","- A server/client branch `if (typeof window !== 'undefined')`.","- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.","- Date formatting in a user's locale which doesn't match the server.","- External changing data without sending a snapshot of it along with the HTML.","- Invalid HTML tag nesting.","","It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.","","https://react.dev/link/hydration-mismatch"].join(`
1712
+ `)},test:I(t=>O(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],Mi=I(t=>({async handle(e,r){const{file:n,language:o}=r,i=e.message??"";if(O(i,"Failed to resolve import","Cannot resolve module")){const a=i.match(/Failed to resolve import ["']([^"']+)["']/),s=i.match(/Cannot resolve module ["']([^"']+)["']/),l=a?.[1]||s?.[1];if(l&&n){const d=gr(l,n,t);if(d)return{body:`The import path \`${l}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${d}`};if([".jsx",".tsx"].includes(o)||O(i,"react"))return{body:"Install and configure the React plugin. Add `@vitejs/plugin-react` to your dependencies and include it in your Vite config.",header:"Missing React Plugin"};if(o==="vue")return{body:"Install and configure the Vue plugin. Add `@vitejs/plugin-vue` to your dependencies and include it in your Vite config.",header:"Missing Vue Plugin"}}}if(O(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const a=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(a){const s=a[1];if(s&&n){const l=gr(s,n,t);if(l)return{body:`Cannot resolve \`${s}\`. Did you mean one of these files?${l}`,header:"File Not Found"}}}return{body:"In Vite, you may need to include file extensions in imports, especially for TypeScript files. Try adding `.js` extension to your imports.",header:"Missing File Extension"}}for(const a of Pi)if(a.test(i,n))return a.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var Ri=Object.defineProperty,Se=S((t,e)=>Ri(t,"name",{value:e,configurable:!0}),"r$2");let Ae,Ie;const Fi=Se(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=e,{createJavaScriptRegexEngine:o}=r,i=await n({themes:[import("@shikijs/themes/github-dark-default"),import("@shikijs/themes/github-light")],langs:[import("@shikijs/langs/javascript"),import("@shikijs/langs/typescript"),import("@shikijs/langs/jsx"),import("@shikijs/langs/tsx"),import("@shikijs/langs/json"),import("@shikijs/langs/jsonc"),import("@shikijs/langs/xml"),import("@shikijs/langs/sql"),import("@shikijs/langs/bash"),import("@shikijs/langs/shell"),import("@shikijs/langs/markdown"),import("@shikijs/langs/mdx"),import("@shikijs/langs/html"),import("@shikijs/langs/css"),import("@shikijs/langs/scss"),import("@shikijs/langs/less"),import("@shikijs/langs/sass"),import("@shikijs/langs/stylus"),import("@shikijs/langs/styl"),...t],engine:o()}),a=i;return Ie=Se(()=>{try{i?.dispose?.()}catch{}Ae=void 0},"disposeFn"),a}catch{const{createHighlighter:e}=await import("shiki"),r=await e({langs:["javascript","typescript","jsx","tsx","json","jsonc","xml","sql","bash","shell","markdown","mdx"],themes:["github-dark-default","github-light"]});return Ie=Se(()=>{try{r?.dispose?.()}catch{}Ae=void 0},"disposeFn"),r}},"createSingletonHighlighter"),Zr=Se(async(t=[])=>(Ae||(Ae=Fi(t)),Ae),"getHighlighter");Se(async()=>{try{Ie&&(Ie(),Ie=void 0)}catch{}},"disposeHighlighter");const mr=Se((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const n=t.find(o=>o.line===r);return n?.classes&&this.addClassToHast(e,n.classes),e}}),"transformerCompactLineOptions");var zi=Object.defineProperty,Ur=S((t,e)=>zi(t,"name",{value:e,configurable:!0}),"s$3");const Hi=Ur(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),Ai=Ur(t=>t.map((e,r)=>{const{location:n,pluginName:o,text:i}=e,a={message:i||`ESBuild error #${r+1}`};return n&&(a.file=n.file,a.line=n.line,a.column=n.column),o&&(a.plugin=o),a.name=e.name||"Error",a.stack=e.stack||"",a}),"processESBuildErrors");var Ii=Object.defineProperty,Nr=S((t,e)=>Ii(t,"name",{value:e,configurable:!0}),"c$6");const Di=Nr((t,e)=>{for(const[r,n]of t.moduleGraph.idToModuleMap){if(!n)continue;const o=n,i=[String(o.file||"").replaceAll("\\","/"),String(r||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const a of e)if(i.some(s=>s===a||s.includes(a)||a.includes(s)))return n}},"findBestModuleMatch"),De=Nr((t,e)=>{const r=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let n,o=0;for(const i of r)try{const a=t.moduleGraph.getModuleById(i);if(a){const l=Object.keys(a).length>0,d=!!a.transformResult;let h=0;if(l&&d?h=2:l&&(h=1),l&&(h>o&&(n=a,o=h),d))return a}const s=t.moduleGraph.getModuleByUrl?.(i);if(s){const l=Object.keys(s).length>0,d=!!s.transformResult;let h=0;if(l&&d?h=2:l&&(h=1),l&&(h>o&&(n=s,o=h),d))return s}}catch{}return n||Di(t,e)||void 0},"findModuleForPath");var Bi=Object.defineProperty,zt=S((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"r$1");const ji=/^https?:\/\//,Oi=zt(t=>{const e=new URL(t),{pathname:r}=e,n=e.search||"",o=[r+n,r,r.replace(/^\/@fs\//,""),decodeURIComponent(r+n),decodeURIComponent(r)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Wr=zt(t=>ji.test(t),"isHttpUrl"),fe=zt(t=>{if(!t)return[];try{if(Wr(t))return Oi(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const r=t.split("?")[0];r&&e.push(r)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var qi=Object.defineProperty,he=S((t,e)=>qi(t,"name",{value:e,configurable:!0}),"o$4");const Vi=he((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),fr=he(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Zi=he((t,e)=>{if(e<=0||e>t.length)return"";const r=Math.max(0,e-1),n=t.slice(r,r+64),o=/[A-Z_$][\w$]{2,}/i.exec(n);if(o?.[0])return o[0];let i=n.trim();return i.length<4&&(i=t.slice(Math.max(0,r-16),r+16).trim()),i},"extractCandidateToken"),Ui=he((t,e)=>{if(!t||t.length<3)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryTokenBasedSearch"),Ni=he((t,e)=>{if(!t)return null;for(const[r,n]of e.entries()){if(!n)continue;const o=n.indexOf(t);if(o!==-1)return{column:o+1,line:r+1}}return null},"tryLineSubstringSearch"),Wi=he((t,e)=>{if(!t)return null;const r=fr(t);if(!r)return null;for(const[n,o]of e.entries()){if(!o)continue;const i=fr(o).indexOf(r);if(i!==-1){const a=Gi(o,i);if(a!==-1)return{column:a,line:n+1}}}return null},"tryWhitespaceInsensitiveSearch"),Gi=he((t,e)=>{let r=0;for(const[n,o]of[...t].entries())if(typeof o=="string"){if(r===e)return n+1;/\s/.test(o)||r++}return-1},"mapNormalizedToOriginalPosition"),Yi=he((t,e,r,n)=>{const o=Vi(t,e);if(!o)return null;const i=n.split(/\n/g),a=Zi(o,r);return Ui(a,i)||Ni(o.trim(),i)||Wi(o.trim(),i)},"realignOriginalPosition");var Xi=Object.defineProperty,K=S((t,e)=>Xi(t,"name",{value:e,configurable:!0}),"u$1");const Qi=/`((?:[^`$]|\$\{[^}]+\})*)`/g,vr=/\$\{[^}]+\}/g,Ji=/[.*+?^${}()|[\]\\]/g,Gr=[/new Error\(/,/throw new Error\(/,/new Error`/,/throw new Error`/,/new [A-Z]\w*\(/,/throw new [A-Z]\w*\(/,/new [A-Z]\w*`/,/throw new [A-Z]\w*`/],ve=K(t=>t.replaceAll(Ji,String.raw`\$&`),"escapeRegex"),Ki=K(t=>{const e=ve(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${ve(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${ve(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),wr=K((t,e)=>{const r=[...t.matchAll(Qi)];for(const n of r){const o=n[1];if(!o)continue;const i=o.split(vr);if(i.every(s=>s===""||e.includes(s))&&i.length>1)return!0;if(!o)continue;const a=o.replaceAll(vr,"(.+?)");try{if(new RegExp(`^${ve(a)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),ea=[/Failed to resolve import ["']([^"']+)["'](?:\s+from ["']([^"']+)["'])?/,/(.+?)\s+from line \d+/,/(.+?)\s+is not defined/,/(.+?)\s+is not a function/,/Cannot read properties of (.+?)\s+\(reading (.+?)\)/],ta=K(t=>{for(const e of ea){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),br=K(t=>{let e=null,r=null;for(const n of Gr){const o=t.match(n);o&&(!e||n.source.includes("throw")&&!r?.source.includes("throw"))&&(e=o,r=n)}return{bestMatch:e,bestPattern:r}},"findBestErrorConstructor"),yr=K((t,e)=>{let r=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const n=t[0].indexOf("new");n!==-1&&(r+=n)}return r+1},"calculateActualColumn"),ra=K((t,e,r=0)=>{if(!t||!e)return null;const n=t.split(`
1713
+ `),o=ta(e),i=Ki(e),a=K((m,f,k)=>{let b=0;for(const[g,y]of m.entries()){if(!y)continue;const P=y.includes(f)||wr(y,f),M=Gr.some(C=>C.test(y));if(P&&M){const{bestMatch:C,bestPattern:R}=br(y);if(C&&R&&(b++,b>k))return{column:yr(C,R),line:g+1}}}return null},"processErrorConstructorLines")(n,e,r);if(a)return a;o&&K((m,f,k)=>{if(m[0].includes("Failed to resolve import")){const b=m[1];if(!b)return;const g=ve(b);k.unshift(`import.*from ["']${g}["']`,`import.*["']${g}["']`,b)}else if(m[0].includes("is not defined")){const b=m[1];if(!b)return;k.unshift(b,`{${b}}`,`src={${b}}`,`${b}.`,`=${b}`)}else if(m[0].includes("Cannot read properties")){const b=m[1],g=m[2];if(!g)return;k.unshift(g,`${b}.${g}`,`${b}?.${g}`,`${b}[${g}]`)}else{const b=m[1];if(!b)return;const g=ve(f),y=ve(b);k.unshift(`new Error(\`${y}`,`throw new Error(\`${y}`,`new Error("${y}`,`new Error('${y}`,`throw new Error("${y}`,`throw new Error('${y}`,`new Error("${g}")`,`new Error('${g}')`,`throw new Error("${g}")`,`throw new Error('${g}')`,`new Error(\`${g}\`)`,`throw new Error(\`${g}\`)`)}},"addDynamicPatterns")(o,e,i);const s=K((m,f,k)=>{let b=0;for(const[g,y]of m.entries()){if(!y||!wr(y,f))continue;const{bestMatch:P,bestPattern:M}=br(y);if(P&&M&&(b++,b>k))return{column:yr(P,M),line:g+1}}return null},"processTemplateLiteralLines"),l=K((m,f,k,b)=>{let g=0;for(const[y,P]of m.entries()){if(!P)continue;let M=-1,C=null;for(const R of f){const D=P.indexOf(R);D!==-1&&(M===-1||D<M)&&(M=D,C=R)}if(M!==-1&&C&&(g++,g>b))return{column:d(M,C,P,k),line:y+1}}return null},"processPatternLines"),d=K((m,f,k,b)=>{if(!b)return m+1;if(b[0].includes("Failed to resolve import")){const g=b[1];if(k.includes(`"${g}"`)||k.includes(`'${g}'`)){const y=k.includes(`"${g}"`)?'"':"'";return k.indexOf(`${y}${g}${y}`)+1}}else if(b[0].includes("is not defined")){const g=b[1];if(g&&f===g)return m+1;if(g&&f.includes(g))return m+f.indexOf(g)+1}else if(b[0].includes("Cannot read properties")){const g=b[2];if(g&&f.includes(g))return m+f.indexOf(g)+1}else if(f.includes("new Error("))return k.indexOf("new Error(")+1;return m+1},"calculatePatternColumn");return s(n,e,r)||l(n,i,o,r)},"findErrorInSourceCode");var na=Object.defineProperty,Oe=S((t,e)=>na(t,"name",{value:e,configurable:!0}),"m$4");const oa=1,kr=Oe((t,e)=>{let r=t,n=e;return t>=20?r=Math.max(1,Math.round(t*.5)):t>15?r=Math.max(1,Math.round(t*.6)):t>10?r=Math.max(1,t-8):r=Math.max(1,t-3),e>=10||e>7?n=Math.max(0,e-1):e>5&&(n=Math.max(0,e)),{estimatedColumn:n,estimatedLine:r}},"estimateOriginalPosition"),ia=Oe((t,e,r)=>{try{const n=new bo(t),o=[{column:r,desc:"original",line:e},{column:Math.max(0,r-oa),desc:"offset",line:e},{column:r,desc:"line above",line:e-1},{column:r,desc:"line below",line:e+1},...Array.from({length:5},(i,a)=>({column:Math.max(0,r-2+a),desc:`col ${r-2+a}`,line:e}))];for(const i of o){const a=yo(n,{column:i.column,line:i.line});if(a.source&&a.line!==void 0&&a.column!==void 0&&a.line>0&&a.column>=0)return{column:a.column,line:a.line,source:a.source}}}catch(n){console.warn("Source map processing failed:",n)}return null},"resolveSourceMapPosition"),aa=Oe((t,e)=>e?Wr(t)?sa(t,e):e:t,"resolveSourcePath"),sa=Oe((t,e)=>{try{const r=new URL(t),n=(r.pathname||"").replace(/^\//,""),o=n.includes("/")?n.slice(0,Math.max(0,n.lastIndexOf("/"))):"";return`${r.origin}/${o?`${o}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),xt=Oe(async(t,e,r,n,o,i,a=0)=>{if(i&&e)try{let l=null;if(e.transformResult?.map?.sourcesContent?.[0]?l=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(l=e.transformResult.code),!l&&(e.id||e.url)){const d=e.id||e.url;if(d)try{const h=await t.transformRequest(d);h?.map&&"sourcesContent"in h.map&&h.map.sourcesContent?.[0]?l=h.map.sourcesContent[0]:h?.code&&(l=h.code)}catch(h){console.warn("Failed to get fresh source for error search:",h)}}if(!l&&r)try{const d=await import("node:fs/promises");let h=r;if(r.includes("://"))try{h=new URL(r).pathname}catch{const m=r.indexOf("://");m!==-1&&(h=r.slice(m+3))}h.startsWith("/")||(h=`${t.config.root||process.cwd()}/${h}`),l=await d.readFile(h,"utf8")}catch(d){console.warn("Failed to read source file from disk:",d)}if(l){const d=ra(l,i,a);if(d)return{originalFileColumn:d.column,originalFileLine:d.line,originalFilePath:r}}}catch(l){console.warn("Source code search failed:",l)}let s=e?.transformResult?.map;if(!s&&(e?.id||e?.url)){const l=e.id||e.url;if(l)try{const d=await t.transformRequest(l);d?.map&&(s=d.map)}catch(d){console.warn("Failed to get fresh source map:",d)}}if(!s){const{estimatedColumn:l,estimatedLine:d}=kr(n,o);return{originalFileColumn:l,originalFileLine:d,originalFilePath:r}}try{const l=ia(s,n,o);if(!l){const{estimatedColumn:h,estimatedLine:m}=kr(n,o);return{originalFileColumn:h,originalFileLine:m,originalFilePath:r}}const d=aa(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:d}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:o,originalFileLine:n,originalFilePath:r}}},"resolveOriginalLocation");var la=Object.defineProperty,ca=S((t,e)=>la(t,"name",{value:e,configurable:!0}),"$e"),da=Object.defineProperty,Ht=ca((t,e)=>da(t,"name",{value:e,configurable:!0}),"W"),pa=Object.defineProperty,_=Ht((t,e)=>pa(t,"name",{value:e,configurable:!0}),"u$1");let xr=_(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=_((c,p)=>{for(var u in p)e(c,u,{get:p[u],enumerable:!0})},"ne"),a=_((c,p,u,w)=>{if(p&&typeof p=="object"||typeof p=="function")for(let v of n(p))!o.call(c,v)&&v!==u&&e(c,v,{get:_(()=>p[v],"get"),enumerable:!(w=r(p,v))||w.enumerable});return c},"ae"),s=_(c=>a(e({},"__esModule",{value:!0}),c),"oe"),l={};i(l,{zeptomatch:_(()=>Xt,"zeptomatch")});var d=_(c=>{const p=new Set,u=[c];for(let w=0;w<u.length;w++){const v=u[w];if(p.has(v))continue;p.add(v);const{children:x}=v;if(x?.length)for(let E=0,F=x.length;E<F;E++)u.push(x[E])}return Array.from(p)},"M"),h=_(c=>{let p="";const u=d(c);for(let w=0,v=u.length;w<v;w++){const x=u[w];if(!x.regex)continue;const E=x.regex.flags;if(p||(p=E),p!==E)throw new Error(`Inconsistent RegExp flags used: "${p}" and "${E}"`)}return p},"se"),m=_((c,p,u)=>{const w=u.get(c);if(w!==void 0)return w;const v=c.partial??p;let x="";if(c.regex&&(x+=v?"(?:$|":"",x+=c.regex.source),c.children?.length){const E=k(c.children.map(F=>m(F,p,u)).filter(Boolean));if(E?.length){const F=c.children.some(Pe=>!Pe.regex||!(Pe.partial??p)),Z=E.length>1||v&&(!x.length||F);x+=Z?v?"(?:$|":"(?:":"",x+=E.join("|"),x+=Z?")":""}}return c.regex&&(x+=v?")":""),u.set(c,x),x},"O"),f=_((c,p)=>{const u=new Map,w=d(c);for(let v=w.length-1;v>=0;v--){const x=m(w[v],p,u);if(!(v>0))return x}return""},"ie"),k=_(c=>Array.from(new Set(c)),"ue"),b=_((c,p,u)=>b.compile(c,u).test(p),"R");b.compile=(c,p)=>{const u=p?.partial??!1,w=f(c,u),v=h(c);return new RegExp(`^(?:${w})$`,v)};var g=b,y=_((c,p)=>{const u=g.compile(c,p),w=`${u.source.slice(0,-1)}[\\\\/]?$`,v=u.flags;return new RegExp(w,v)},"le"),P=y,M=_(c=>{const p=c.map(w=>w.source).join("|")||"$^",u=c[0]?.flags;return new RegExp(p,u)},"ve"),C=M,R=_(c=>Array.isArray(c),"j"),D=_(c=>typeof c=="function","_"),ee=_(c=>c.length===0,"he"),G=(()=>{const{toString:c}=Function.prototype,p=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return u=>(u.length===0||u.length===1)&&p.test(c.call(u))})(),B=_(c=>typeof c=="number","de"),N=_(c=>typeof c=="object"&&c!==null,"xe"),st=_(c=>c instanceof RegExp,"me"),lt=(()=>{const c=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return p=>c.test(p.source)})(),ue=(()=>{const c=/^[a-zA-Z0-9_-]+$/;return p=>c.test(p.source)&&!p.flags.includes("i")})(),Ve=_(c=>typeof c=="string","A"),T=_(c=>c===void 0,"f"),A=_(c=>{const p=new Map;return u=>{const w=p.get(u);if(w!==void 0)return w;const v=c(u);return p.set(u,v),v}},"ye"),q=_((c,p,u={})=>{const w={cache:{},input:c,index:0,indexBacktrackMax:0,options:u,output:[]},v=de(p)(w),x=Math.max(w.index,w.indexBacktrackMax);if(v&&w.index===c.length)return w.output;throw new Error(`Failed to parse at index ${x}`)},"I"),$=_((c,p)=>R(c)?ke(c,p):Ve(c)?Ne(c,p):le(c,p),"i"),ke=_((c,p)=>{const u={};for(const w of c){if(w.length!==1)throw new Error(`Invalid character: "${w}"`);const v=w.charCodeAt(0);u[v]=!0}return w=>{const v=w.input;let x=w.index,E=x;for(;E<v.length&&v.charCodeAt(E)in u;)E+=1;if(E>x){if(!T(p)&&!w.options.silent){const F=v.slice(x,E),Z=D(p)?p(F,v,`${x}`):p;T(Z)||w.output.push(Z)}w.index=E}return!0}},"we"),le=_((c,p)=>{if(ue(c))return Ne(c.source,p);{const u=c.source,w=c.flags.replace(/y|$/,"y"),v=new RegExp(u,w);return lt(c)&&D(p)&&!G(p)?Ze(v,p):Ue(v,p)}},"$e"),Ze=_((c,p)=>u=>{const w=u.index,v=u.input;c.lastIndex=w;const x=c.exec(v);if(x){const E=c.lastIndex;if(!u.options.silent){const F=p(...x,v,`${w}`);T(F)||u.output.push(F)}return u.index=E,!0}else return!1},"Ee"),Ue=_((c,p)=>u=>{const w=u.index,v=u.input;if(c.lastIndex=w,c.test(v)){const x=c.lastIndex;if(!T(p)&&!u.options.silent){const E=D(p)?p(v.slice(w,x),v,`${w}`):p;T(E)||u.output.push(E)}return u.index=x,!0}else return!1},"Ce"),Ne=_((c,p)=>u=>{const w=u.index,v=u.input;if(v.startsWith(c,w)){if(!T(p)&&!u.options.silent){const x=D(p)?p(c,v,`${w}`):p;T(x)||u.output.push(x)}return u.index+=c.length,!0}else return!1},"F"),ce=_((c,p,u,w)=>{const v=de(c),x=p>1;return dt(ct(Dt(E=>{let F=0;for(;F<u;){const Z=E.index;if(!v(E)||(F+=1,E.index===Z))break}return F>=p},x),w))},"k"),V=_((c,p)=>ce(c,0,1,p),"L"),Y=_((c,p)=>ce(c,0,1/0,p),"$"),ge=_((c,p)=>ce(c,1,1/0,p),"Re"),Q=_((c,p)=>{const u=c.map(de);return dt(ct(Dt(w=>{for(let v=0,x=u.length;v<x;v++)if(!u[v](w))return!1;return!0}),p))},"x"),J=_((c,p)=>{const u=c.map(de);return dt(ct(w=>{for(let v=0,x=u.length;v<x;v++)if(u[v](w))return!0;return!1},p))},"p"),Dt=_((c,p=!0,u=!1)=>{const w=de(c);return p?v=>{const x=v.index,E=v.output.length,F=w(v);return!F&&!u&&(v.indexBacktrackMax=Math.max(v.indexBacktrackMax,v.index)),(!F||u)&&(v.index=x,v.output.length!==E&&(v.output.length=E)),F}:w},"q"),ct=_((c,p)=>{const u=de(c);return p?w=>{if(w.options.silent)return u(w);const v=w.output.length;if(u(w)){const x=w.output.splice(v,1/0),E=p(x);return T(E)||w.output.push(E),!0}else return!1}:u},"B"),dt=(()=>{let c=0;return p=>{const u=de(p),w=c+=1;return v=>{var x;if(v.options.memoization===!1)return u(v);const E=v.index,F=(x=v.cache)[w]||(x[w]={indexMax:-1,queue:[]}),Z=F.queue;if(E<=F.indexMax){const Me=F.store||(F.store=new Map);if(Z.length){for(let _e=0,io=Z.length;_e<io;_e+=2){const ao=Z[_e*2],so=Z[_e*2+1];Me.set(ao,so)}Z.length=0}const oe=Me.get(E);if(oe===!1)return!1;if(B(oe))return v.index=oe,!0;if(oe)return v.index=oe.index,oe.output?.length&&v.output.push(...oe.output),!0}const Pe=v.output.length,oo=u(v);if(F.indexMax=Math.max(F.indexMax,E),oo){const Me=v.index,oe=v.output.length;if(oe>Pe){const _e=v.output.slice(Pe,oe);Z.push(E,{index:Me,output:_e})}else Z.push(E,Me);return!0}else return Z.push(E,!1),!1}}})(),Bt=_(c=>{let p;return u=>(p||(p=de(c())),p(u))},"G"),de=A(c=>{if(D(c))return ee(c)?Bt(c):c;if(Ve(c)||st(c))return $(c);if(R(c))return Q(c);if(N(c))return J(Object.values(c));throw new Error("Invalid rule")}),me=_(c=>c,"d"),tn=_(c=>typeof c=="string","ke"),rn=_(c=>{const p=new WeakMap,u=new WeakMap;return(w,v)=>{const x=v?.partial?u:p,E=x.get(w);if(E!==void 0)return E;const F=c(w,v);return x.set(w,F),F}},"Be"),nn=_(c=>{const p={},u={};return(w,v)=>{const x=v?.partial?u:p;return x[w]??(x[w]=c(w,v))}},"Pe"),on=$(/\\./,me),an=$(/./,me),sn=$(/\*\*\*+/,"*"),ln=$(/([^/{[(!])\*\*/,(c,p)=>`${p}*`),cn=$(/(^|.)\*\*(?=[^*/)\]}])/,(c,p)=>`${p}*`),dn=Y(J([on,sn,ln,cn,an])),pn=dn,hn=_(c=>q(c,pn,{memoization:!1}).join(""),"Ie"),un=hn,jt="abcdefghijklmnopqrstuvwxyz",gn=_(c=>{let p="";for(;c>0;){const u=(c-1)%26;p=jt[u]+p,c=Math.floor((c-1)/26)}return p},"Le"),Ot=_(c=>{let p=0;for(let u=0,w=c.length;u<w;u++)p=p*26+jt.indexOf(c[u])+1;return p},"V"),pt=_((c,p)=>{if(p<c)return pt(p,c);const u=[];for(;c<=p;)u.push(c++);return u},"b"),mn=_((c,p,u)=>pt(c,p).map(w=>String(w).padStart(u,"0")),"qe"),qt=_((c,p)=>pt(Ot(c),Ot(p)).map(gn),"W"),j=_(c=>({partial:!1,regex:new RegExp(c,"s"),children:[]}),"c"),Te=_(c=>({children:c}),"y"),xe=(()=>{const c=_((p,u,w)=>{if(w.has(p))return;w.add(p);const{children:v}=p;if(!v.length)v.push(u);else for(let x=0,E=v.length;x<E;x++)c(v[x],u,w)},"e");return p=>{if(!p.length)return Te([]);for(let u=p.length-1;u>=1;u--){const w=new Set,v=p[u-1],x=p[u];c(v,x,w)}return p[0]}})(),pe=_(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),fn=$(/\\./,j),vn=$(/[$.*+?^(){}[\]\|]/,c=>j(`\\${c}`)),wn=$(/[\\\/]/,pe),bn=$(/[^$.*+?^(){}[\]\|\\\/]+/,j),yn=$(/^(?:!!)*!(.*)$/,(c,p)=>j(`(?!^${Xt.compile(p).source}$).*?`)),kn=$(/^(!!)+/),xn=J([yn,kn]),_n=$(/\/(\*\*\/)+/,()=>Te([xe([pe(),j(".+?"),pe()]),pe()])),$n=$(/^(\*\*\/)+/,()=>Te([j("^"),xe([j(".*?"),pe()])])),En=$(/\/(\*\*)$/,()=>Te([xe([pe(),j(".*?")]),j("$")])),Sn=$(/\*\*/,()=>j(".*?")),Vt=J([_n,$n,En,Sn]),Cn=$(/\*\/(?!\*\*\/|\*$)/,()=>xe([j("[^\\\\/]*?"),pe()])),Ln=$(/\*/,()=>j("[^\\\\/]*")),Zt=J([Cn,Ln]),Ut=$("?",()=>j("[^\\\\/]")),Tn=$("[",me),Pn=$("]",me),Mn=$(/[!^]/,"^\\\\/"),Rn=$(/[a-z]-[a-z]|[0-9]-[0-9]/i,me),Fn=$(/\\./,me),zn=$(/[$.*+?^(){}[\|]/,c=>`\\${c}`),Hn=$(/[\\\/]/,"\\\\/"),An=$(/[^$.*+?^(){}[\]\|\\\/]+/,me),In=J([Fn,zn,Hn,Rn,An]),Nt=Q([Tn,V(Mn),Y(In),Pn],c=>j(c.join(""))),Dn=$("{","(?:"),Bn=$("}",")"),jn=$(/(\d+)\.\.(\d+)/,(c,p,u)=>mn(+p,+u,Math.min(p.length,u.length)).join("|")),On=$(/([a-z]+)\.\.([a-z]+)/,(c,p,u)=>qt(p,u).join("|")),qn=$(/([A-Z]+)\.\.([A-Z]+)/,(c,p,u)=>qt(p.toLowerCase(),u.toLowerCase()).join("|").toUpperCase()),Vn=J([jn,On,qn]),Wt=Q([Dn,Vn,Bn],c=>j(c.join(""))),Zn=$("{"),Un=$("}"),Nn=$(","),Wn=$(/\\./,j),Gn=$(/[$.*+?^(){[\]\|]/,c=>j(`\\${c}`)),Yn=$(/[\\\/]/,pe),Xn=$(/[^$.*+?^(){}[\]\|\\\/,]+/,j),Qn=Bt(()=>Yt),Jn=$("",()=>j("(?:)")),Kn=ge(J([Vt,Zt,Ut,Nt,Wt,Qn,Wn,Gn,Yn,Xn]),xe),Gt=J([Kn,Jn]),Yt=Q([Zn,V(Q([Gt,Y(Q([Nn,Gt]))])),Un],Te),eo=Y(J([xn,Vt,Zt,Ut,Nt,Wt,Yt,fn,vn,wn,bn]),xe),to=eo,ro=_(c=>q(c,to,{memoization:!1})[0],"kr"),no=ro,ht=_((c,p,u)=>ht.compile(c,u).test(p),"N");ht.compile=(()=>{const c=nn((u,w)=>P(no(un(u)),w)),p=rn((u,w)=>C(u.map(v=>c(v,w))));return(u,w)=>tn(u)?c(u,w):p(u,w)})();var Xt=ht;return s(l)})();return t.default||t},"_lazyMatch"),ut;const ha=_((t,e)=>(ut||(ut=xr(),xr=null),ut(t,e)),"default");var ua=Object.defineProperty,ga=Ht((t,e)=>ua(t,"name",{value:e,configurable:!0}),"t");const ma=/^[A-Z]:\//i,ye=ga((t="")=>t&&t.replaceAll("\\","/").replace(ma,e=>e.toUpperCase()),"normalizeWindowsPath");var fa=Object.defineProperty,X=Ht((t,e)=>fa(t,"name",{value:e,configurable:!0}),"r");const va=/^[/\\]{2}/,wa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Yr=/^[A-Z]:$/i,_r=/^\/([A-Z]:)?$/i,ba=/.(\.[^./]+)$/,ya=/^[/\\]|^[a-z]:[/\\]/i,ka=X(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Xr=X((t,e)=>{let r="",n=0,o=-1,i=0,a;for(let s=0;s<=t.length;++s){if(s<t.length)a=t[s];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===s-1||i===1))if(i===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}else if(r.length>0){r="",n=0,o=s,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(o+1,s)}`:r=t.slice(o+1,s),n=s-o-1;o=s,i=0}else a==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Be=X(t=>wa.test(t),"isAbsolute"),Je=X(function(t){if(t.length===0)return".";t=ye(t);const e=va.exec(t),r=Be(t),n=t.at(-1)==="/";return t=Xr(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Yr.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Be(t)?`/${t}`:t)},"normalize");X((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const n=e[e.length-1]==="/",o=r[0]==="/";n&&o?e+=r.slice(1):e+=n||o?r:`/${r}`}else e+=r;return Je(e)},"join");const Ke=X(function(...t){t=t.map(n=>ye(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const o=n>=0?t[n]:ka();!o||o.length===0||(e=`${o}/${e}`,r=Be(o))}return e=Xr(e,!r),r&&!Be(e)?`/${e}`:e.length>0?e:"."},"resolve");X(function(t){return ye(t)},"toNamespacedPath");const xa=X(function(t){return ba.exec(ye(t))?.[1]??""},"extname");X(function(t,e){const r=Ke(t).replace(_r,"$1").split("/"),n=Ke(e).replace(_r,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const o=[...r];for(const i of o){if(n[0]!==i)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const _a=X(t=>{const e=ye(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Yr.test(e[0])&&(e[0]+="/"),e.join("/")||(Be(t)?"/":".")},"dirname");X(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return ye(t.root?Ke(...e):e.join("/"))},"format");const $a=X((t,e)=>{const r=ye(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");X(function(t){const e=ya.exec(t)?.[0]?.replaceAll("\\","/")??"",r=$a(t),n=xa(r);return{base:r,dir:_a(t),ext:n,name:r.slice(0,r.length-n.length),root:e}},"parse");X((t,e)=>ha(e,Je(t)),"matchesGlob");var Ea=Object.defineProperty,ne=S((t,e)=>Ea(t,"name",{value:e,configurable:!0}),"e$1");const _t="/",$r=":",Sa="at ",Ca=/https?:\/\/[^\s)]+/g,La=/file:\/\//g,Qr=/\/@fs\//g,Ta=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Pa=new Set(["<anonymous>","<unknown>","native"]),Ma=ne(t=>{const e=t.trim();return!e.startsWith(Sa)||!([...Ta].some(r=>e.includes(r))||[...Pa].some(r=>e.includes(r)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Ra=ne(t=>(t=t.replaceAll(Qr,_t),t=t.replaceAll(La,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Ma(t)?"":t),"cleanStackLine"),Fa=ne((t,e)=>{try{const{baseUrl:r,col:n,line:o}=za(t),i=Ha(r,e);return Aa(i,o,n)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),za=ne(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],n=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:n,line:r}},"parseUrlWithLocation"),Ha=ne((t,e)=>{const r=new URL(t);let n=decodeURIComponent(r.pathname||"");return n=n.replaceAll(Qr,_t),Ke(e,n.startsWith(_t)?n.slice(1):n)},"urlToAbsolutePath"),Aa=ne((t,e,r)=>{if(!e)return t;const n=r?`${$r}${r}`:"";return`${t}${$r}${e}${n}`},"formatAbsolutePath"),At=ne(t=>t&&t.replaceAll(`\r
1714
1714
  `,`
1715
1715
  `).replaceAll("\r",`
1716
1716
  `).split(/\n/).map(Ra).filter(e=>e.trim()!=="").join(`
1717
1717
  `),"cleanErrorStack"),Ia=ne(t=>{const e=typeof t=="string"?t:t.message||String(t);return ho(e)},"cleanErrorMessage"),Da=ne(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),Ba=ne(t=>Da(t)?t.errors:[t],"extractErrors"),at=ne((t,e)=>t&&String(t).replaceAll(Ca,r=>Fa(r,e)),"absolutizeStackUrls");var ja=Object.defineProperty,Oa=S((t,e)=>ja(t,"name",{value:e,configurable:!0}),"a$4");const qa=Oa(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",r=0,n=0;const o=/\((\d+):(\d+)\)/,i=t.match(o);i&&i[1]&&i[2]&&(r=Number.parseInt(i[1],10),n=Number.parseInt(i[2],10));const a=/(\S+\.vue)/,s=t.match(a);s&&s[1]&&(e=s[1]||"");const l=t.split(`
1718
- `)[0]||t;if(e&&r>0&&n>0)return{column:n,line:r,message:l,originalFilePath:e}},"parseVueCompilationError");var Va=Object.defineProperty,Kr=S((t,e)=>Va(t,"name",{value:e,configurable:!0}),"a$3");const Za=Kr(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,r=/<script\b[^>]*>[\s\S]*?<\/script>/gi,n=/<template\b[^>]*>[\s\S]*?<\/template>/gi,o=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(r,"").replaceAll(n,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(o,(a,s)=>`style="${(s.trim().endsWith(";")?s:`${s};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Ua="https://react.dev/link/hydration-mismatch",Na=Kr(t=>{const[e,r]=t.message.split(Ua);if(e){const[i]=e?.split(`
1718
+ `)[0]||t;if(e&&r>0&&n>0)return{column:n,line:r,message:l,originalFilePath:e}},"parseVueCompilationError");var Va=Object.defineProperty,Jr=S((t,e)=>Va(t,"name",{value:e,configurable:!0}),"a$3");const Za=Jr(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,r=/<script\b[^>]*>[\s\S]*?<\/script>/gi,n=/<template\b[^>]*>[\s\S]*?<\/template>/gi,o=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(r,"").replaceAll(n,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(o,(a,s)=>`style="${(s.trim().endsWith(";")?s:`${s};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Ua="https://react.dev/link/hydration-mismatch",Na=Jr(t=>{const[e,r]=t.message.split(Ua);if(e){const[i]=e?.split(`
1719
1719
 
1720
1720
  `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const n=[];for(const i of Za(r?.trim()||"").split(`
1721
1721
  `)||[])i.startsWith("+ ")?n.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?n.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||n.push(i);let o=n.findIndex(i=>i.startsWith("[!code ++]"));if(o===-1&&(o=n.findIndex(i=>i.startsWith("[!code --]"))),o!==-1)return n.slice(Math.max(0,o-5)).join(`
@@ -1725,11 +1725,11 @@ ${ui};`,o},"patchOverlay");var wi=Object.defineProperty,I=S((t,e)=>wi(t,"name",{
1725
1725
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,`
1726
1726
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,`
1727
1727
  at $1 <$2>:d+:d+`),n=n.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
1728
- at $1 <unknown>:0:0`)),!n.includes("<unknown>")&&!n.includes("react-dom")&&!n.includes("react"))return n;const o=Ee({stack:n}),i=await Promise.all(o.map(async a=>{const{file:s}=a,l=a.line??0,d=a.column??0;if(s&&s!=="<unknown>"&&l>0&&d>0&&!s.includes("react-dom")&&!s.includes("react"))return a;if(!s||l<=0||d<=0){if((s==="<unknown>"||s&&(s.includes("react-dom")||s.includes("react")))&&a.methodName){const{methodName:h}=a,m={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[f,k]of Object.entries(m))if(h.includes(f))return{...a,column:0,file:`[React] ${k}`,line:0};if(!h.includes("$")&&!h.includes("anonymous")){const f=fe(h),k=De(t,f);if(k){const b=await xt(t,k,"",1,1);if(b.originalFilePath)return{...a,column:b.originalFileColumn||1,file:b.originalFilePath,line:b.originalFileLine||1}}}}return a}try{const h=fe(s),m=De(t,h);if(!m)return a;const f=await xt(t,m,s,l,d);return{...a,column:f.originalFileColumn,file:f.originalFilePath,line:f.originalFileLine}}catch{return a}}));return Lr(i,{header:r})},"remapStackToOriginal");var Xa=Object.defineProperty,qe=S((t,e)=>Xa(t,"name",{value:e,configurable:!0}),"t");const Qa=qe(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),gt=qe(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ja=qe((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Ka=qe((t,e)=>{if(!t||t.length===0)return-1;const r=t.indexOf(e);if(r!==-1)return r;if(!(e.includes("\\")||e.includes("/")))return-1;const n=Je(e),o=t.indexOf(n);if(o!==-1)return o;for(const[i,a]of t.entries()){if(!a||typeof a!="string")continue;const s=Je(a);if(Ja(s,n))return i}return-1},"findSourceIndex"),Er=qe((t,e)=>{if(!Qa(t))return;if(!e&&t.sourcesContent?.[0])return gt(t.sourcesContent[0]);const r=Ka(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?gt(t.sourcesContent[r]):t.sourcesContent?.[0]?gt(t.sourcesContent[0]):void 0},"getSourceFromMap");var es=Object.defineProperty,ts=S((t,e)=>es(t,"name",{value:e,configurable:!0}),"f");const Sr=ts(async(t,e,r,n)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const s=e.transformResult;s.code&&!i&&(i=s.code),s.map&&!o&&(o=Er(s.map,r))}const a=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:n[0];if(a&&(!o||!i))try{const s=await t.transformRequest(a);if(s?.code&&!i&&(i=s.code),s?.map&&!o){const{map:l}=s;typeof l=="object"&&l!==null&&"mappings"in l&&l.mappings!==""&&(o=Er(l,r))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await Tr(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var rs=Object.defineProperty,ns=S((t,e)=>rs(t,"name",{value:e,configurable:!0}),"a$1");const os=ns((t={})=>{const{classActivePre:e="has-diff",classLineAdd:r="diff add",classLineRemove:n="diff remove"}=t;return{code(o){this.addClassToHast(this.pre,e),o.children.filter(i=>i.type==="element").forEach(i=>{for(const a of i.children){if(a.type!=="element")continue;const s=a.children[0];s.type==="text"&&(s.value.startsWith("[!code ++]")&&(s.value=s.value.slice(10),this.addClassToHast(i,r)),s.value.startsWith("[!code --]")&&(s.value=s.value.slice(10),this.addClassToHast(i,n)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var is=Object.defineProperty,as=S((t,e)=>is(t,"name",{value:e,configurable:!0}),"r");const ss=as((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var ls=Object.defineProperty,cs=S((t,e)=>ls(t,"name",{value:e,configurable:!0}),"e");const ds=cs(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var ps=Object.defineProperty,Le=S((t,e)=>ps(t,"name",{value:e,configurable:!0}),"E$1");const hs=Le(t=>Array.isArray(t)&&Hi(t)?Ai(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):Ba(t),"extractIndividualErrors"),us=Le(t=>{const e=Ee(t,{frameLimit:10}),r=e?.find(n=>n?.file?.startsWith("http"))||e?.[0];return{compiledColumn:r?.column??0,compiledFilePath:r?.file??"",compiledLine:r?.line??0}},"extractLocationFromStack"),gs=Le(async(t,e,r,n,o,i,a=0,s)=>{const l=o?.originalFilePath||e,d=o?.line??n,h=o?.column??r;if(l){let m=l,f=l;if(l.startsWith("http://")||l.startsWith("https://"))try{m=new URL(l).pathname,m.startsWith("/")&&(m=m.slice(1));const M=t.config.root||process.cwd();f=m.startsWith("/")?m:`${M}/${m}`}catch{console.warn("Failed to parse HTTP URL:",l)}const k=fe(m),b=De(t,k);if(b)try{const M=await xt(t,b,e||s||m,d,h,i,a),P=f||M.originalFilePath;return{originalFileColumn:M.originalFileColumn,originalFileLine:M.originalFileLine,originalFilePath:P}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let g,y=h;return d>=20?g=Math.max(1,Math.round(d*.5)):d>15?g=Math.max(1,Math.round(d*.6)):d>10?g=Math.max(1,d-8):g=Math.max(1,d-3),h>=10||h>7?y=Math.max(0,h-1):h>5&&(y=Math.max(0,h)),{originalFileColumn:y,originalFileLine:g,originalFilePath:f||l}}return{originalFileColumn:h,originalFileLine:d,originalFilePath:l}},"resolveOriginalLocationInfo"),ms=Le((t,e,r,n,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:r,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:n,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),fs=Le(async(t,e,r,n,o,i)=>{let a,s;const l=Ce(r)||"text",d=Ce(n)||l,h=[],m=new Set([d,l]);m.has("svelte")&&h.push(import("@shikijs/langs/svelte")),m.has("vue")&&h.push(import("@shikijs/langs/vue"));const f=await Ur(h),k={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{a=f.codeToHtml(t,{...k,lang:l,transformers:[mr([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{s=f.codeToHtml(e,{...k,lang:d,transformers:[mr([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:s,originalCodeFrameContent:a}},"generateSyntaxHighlightedFrames"),vs=Le(async(t,e,r=0,n,o,i)=>{const a=n==="vue"&&t?.message?qa(t.message):void 0,s=hs(t),l=s[0]||t,d=n==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let h="";if(i&&i.length>1)for(const T of i.slice(1)){const A=T.stack||"",O=Ee({stack:A},{frameLimit:10})?.find($=>$?.file?.startsWith("http"));if(O?.file&&(h=ds(O.file),h))break}const m=Ia(l),f=At(l.stack||""),k=await Ya(e,f,{message:m,name:l.name});let b,g,y;if(o?.file&&o?.line&&o?.column)b=o.column,g=o.file,y=o.line;else{const T=us(l);if(b=T.compiledColumn,g=T.compiledFilePath,y=T.compiledLine,g&&!g.startsWith("http")){const A=e.config.root;let O=g;g.startsWith(A)&&(O=g.slice(A.length)),O.startsWith("/")||(O=`/${O}`);const $=e.config.server.port||e.config.preview?.port||5173,ke=e.config.server.host||e.config.preview?.host||"localhost";let le=`${e.config.server.https?"https":"http"}://${ke}:${$}${O}`;h&&(le=ss(le,h)),g=le}}if(d){const T=Na(t);if(T){const A=await Ur();return{errorCount:1,fixPrompt:Kt({applicationType:void 0,error:l,file:{file:g,language:"jsx",line:y,snippet:T}}),message:l.message,originalCodeFrameContent:A.codeToHtml(T,{lang:g?Ce(g):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[os()]}),originalFileColumn:b,originalFileLine:y,originalFilePath:g,originalSnippet:T,originalStack:l.stack||""}}}let M=o?.file||g;if(!o?.file&&l.stack){const T=Ee(l,{frameLimit:10})?.find(A=>A?.file&&!A.file.startsWith("http")&&!A.file.includes("node_modules")&&!A.file.includes(".vite")&&A.file.includes(".tsx"));T?.file&&(M=T.file)}let{originalFileColumn:P,originalFileLine:C,originalFilePath:R}=await gs(e,M,b,y,a,l.message,r,g);const U=o?.plugin;let ee="",G="",D,N;try{const[T,A]=await Promise.all([De(e,fe(g)),De(e,fe(R))]);if(!T&&!A)return ms(b,g,y,P,C,R);const O=g.startsWith("http")?g.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):g,$=R.startsWith("http")?R.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):R,ke=T||A;if(ke?.transformResult?.code&&(N=ke.transformResult.code),A?.transformResult?.map&&!D){const q=A.transformResult.map;try{const Y=q.sourcesContent?.[0];Y&&(D=Y)}catch(Y){console.warn("Failed to get original source from source map:",Y)}}const[le,Ze]=await Promise.all([!N&&T?Sr(e,T,O,fe(O)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!D&&A?Sr(e,A,$,fe($)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!N&&le.compiledSourceText&&({compiledSourceText:N}=le),!D&&Ze.originalSourceText&&({originalSourceText:D}=Ze),D){if(N&&C<=0&&y>0){const q=Yi(N,y,b,D);q&&(C=q.line,P=q.column)}try{ee=Jt(D,{start:{column:Math.max(1,P),line:Math.max(1,C)}},{showGutter:!1})}catch{ee=D?.slice(0,500)||""}}const Ue=N&&y>0,Ne=C>0&&P>0;let ce=!1;if(Ue&&y>0&&l.message&&N){const q=N.split(`
1729
- `)[y-1];if(q&&b<=q.length){const Y=l.message,ge=Math.max(0,b-1),Q=new Set(q.slice(Math.max(0,ge)));ce=Q.has("new Error(")||Q.has("throw new Error")||Q.has("throw ")||Q.has(Y.slice(0,20)),!ce&&Ne&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||g.includes(".js")||g.includes(".ts"))&&(ce=!0)}}if(Ue&&ce&&N){const q=N.split(`
1730
- `),Y=q.length,ge=Math.min(y,Y)||Math.max(1,Y-2),Q=q[ge-1]?Math.min(b||1,q[ge-1]?.length||1):1;try{G=Jt(N,{start:{column:Q,line:ge}},{showGutter:!1})}catch(J){console.warn("Compiled codeFrame failed:",J),G=N?.slice(0,500)||""}}}catch(T){console.warn("Source retrieval failed:",T)}const{compiledCodeFrameContent:st,originalCodeFrameContent:lt}=await fs(ee,G,R,g,C,y);let ue=ee;if(!ue&&D){const T=D.split(`
1731
- `),A=Math.max(0,C-3),O=Math.min(T.length,C+2);ue=T.slice(A,O).join(`
1732
- `)}ue||(ue=G||`Error at line ${C} in ${R}`);const Ve=Kt({applicationType:void 0,error:t,file:{file:R,language:Ce(R),line:C,snippet:ue}});return{compiledCodeFrameContent:st,compiledColumn:b,compiledFilePath:g,compiledLine:y,compiledStack:Lr(Ee({message:m,name:l.name,stack:f}),{header:{message:m,name:l.name}}),errorCount:s.length,fixPrompt:Ve,originalCodeFrameContent:lt,originalFileColumn:P,originalFileLine:C,originalFilePath:R,originalSnippet:ee,originalStack:k||f,plugin:U}},"buildExtendedErrorData");var ws=Object.defineProperty,bs=S((t,e)=>ws(t,"name",{value:e,configurable:!0}),"a");const ys=bs((t,e)=>{const r=e.map(n=>{const o=n.charAt(0).toUpperCase()+n.slice(1);return`
1728
+ at $1 <unknown>:0:0`)),!n.includes("<unknown>")&&!n.includes("react-dom")&&!n.includes("react"))return n;const o=Ee({stack:n}),i=await Promise.all(o.map(async a=>{const{file:s}=a,l=a.line??0,d=a.column??0;if(s&&s!=="<unknown>"&&l>0&&d>0&&!s.includes("react-dom")&&!s.includes("react"))return a;if(!s||l<=0||d<=0){if((s==="<unknown>"||s&&(s.includes("react-dom")||s.includes("react")))&&a.methodName){const{methodName:h}=a,m={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[f,k]of Object.entries(m))if(h.includes(f))return{...a,column:0,file:`[React] ${k}`,line:0};if(!h.includes("$")&&!h.includes("anonymous")){const f=fe(h),k=De(t,f);if(k){const b=await xt(t,k,"",1,1);if(b.originalFilePath)return{...a,column:b.originalFileColumn||1,file:b.originalFilePath,line:b.originalFileLine||1}}}}return a}try{const h=fe(s),m=De(t,h);if(!m)return a;const f=await xt(t,m,s,l,d);return{...a,column:f.originalFileColumn,file:f.originalFilePath,line:f.originalFileLine}}catch{return a}}));return Cr(i,{header:r})},"remapStackToOriginal");var Xa=Object.defineProperty,qe=S((t,e)=>Xa(t,"name",{value:e,configurable:!0}),"t");const Qa=qe(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),gt=qe(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ja=qe((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Ka=qe((t,e)=>{if(!t||t.length===0)return-1;const r=t.indexOf(e);if(r!==-1)return r;if(!(e.includes("\\")||e.includes("/")))return-1;const n=Je(e),o=t.indexOf(n);if(o!==-1)return o;for(const[i,a]of t.entries()){if(!a||typeof a!="string")continue;const s=Je(a);if(Ja(s,n))return i}return-1},"findSourceIndex"),Er=qe((t,e)=>{if(!Qa(t))return;if(!e&&t.sourcesContent?.[0])return gt(t.sourcesContent[0]);const r=Ka(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?gt(t.sourcesContent[r]):t.sourcesContent?.[0]?gt(t.sourcesContent[0]):void 0},"getSourceFromMap");var es=Object.defineProperty,ts=S((t,e)=>es(t,"name",{value:e,configurable:!0}),"f");const Sr=ts(async(t,e,r,n)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const s=e.transformResult;s.code&&!i&&(i=s.code),s.map&&!o&&(o=Er(s.map,r))}const a=e&&typeof e=="object"&&("id"in e&&e.id||"url"in e&&e.url)?"id"in e&&e.id||"url"in e&&e.url:n[0];if(a&&(!o||!i))try{const s=await t.transformRequest(a);if(s?.code&&!i&&(i=s.code),s?.map&&!o){const{map:l}=s;typeof l=="object"&&l!==null&&"mappings"in l&&l.mappings!==""&&(o=Er(l,r))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await Lr(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var rs=Object.defineProperty,ns=S((t,e)=>rs(t,"name",{value:e,configurable:!0}),"a$1");const os=ns((t={})=>{const{classActivePre:e="has-diff",classLineAdd:r="diff add",classLineRemove:n="diff remove"}=t;return{code(o){this.addClassToHast(this.pre,e),o.children.filter(i=>i.type==="element").forEach(i=>{for(const a of i.children){if(a.type!=="element")continue;const s=a.children[0];s.type==="text"&&(s.value.startsWith("[!code ++]")&&(s.value=s.value.slice(10),this.addClassToHast(i,r)),s.value.startsWith("[!code --]")&&(s.value=s.value.slice(10),this.addClassToHast(i,n)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var is=Object.defineProperty,as=S((t,e)=>is(t,"name",{value:e,configurable:!0}),"r");const ss=as((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var ls=Object.defineProperty,cs=S((t,e)=>ls(t,"name",{value:e,configurable:!0}),"e");const ds=cs(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var ps=Object.defineProperty,Le=S((t,e)=>ps(t,"name",{value:e,configurable:!0}),"E$1");const hs=Le(t=>Array.isArray(t)&&Hi(t)?Ai(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):Ba(t),"extractIndividualErrors"),us=Le(t=>{const e=Ee(t,{frameLimit:10}),r=e?.find(n=>n?.file?.startsWith("http"))||e?.[0];return{compiledColumn:r?.column??0,compiledFilePath:r?.file??"",compiledLine:r?.line??0}},"extractLocationFromStack"),gs=Le(async(t,e,r,n,o,i,a=0,s)=>{const l=o?.originalFilePath||e,d=o?.line??n,h=o?.column??r;if(l){let m=l,f=l;if(l.startsWith("http://")||l.startsWith("https://"))try{m=new URL(l).pathname,m.startsWith("/")&&(m=m.slice(1));const P=t.config.root||process.cwd();f=m.startsWith("/")?m:`${P}/${m}`}catch{console.warn("Failed to parse HTTP URL:",l)}const k=fe(m),b=De(t,k);if(b)try{const P=await xt(t,b,e||s||m,d,h,i,a),M=f||P.originalFilePath;return{originalFileColumn:P.originalFileColumn,originalFileLine:P.originalFileLine,originalFilePath:M}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let g,y=h;return d>=20?g=Math.max(1,Math.round(d*.5)):d>15?g=Math.max(1,Math.round(d*.6)):d>10?g=Math.max(1,d-8):g=Math.max(1,d-3),h>=10||h>7?y=Math.max(0,h-1):h>5&&(y=Math.max(0,h)),{originalFileColumn:y,originalFileLine:g,originalFilePath:f||l}}return{originalFileColumn:h,originalFileLine:d,originalFilePath:l}},"resolveOriginalLocationInfo"),ms=Le((t,e,r,n,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:r,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:n,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),fs=Le(async(t,e,r,n,o,i)=>{let a,s;const l=Ce(r)||"text",d=Ce(n)||l,h=[],m=new Set([d,l]);m.has("svelte")&&h.push(import("@shikijs/langs/svelte")),m.has("vue")&&h.push(import("@shikijs/langs/vue"));const f=await Zr(h),k={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{a=f.codeToHtml(t,{...k,lang:l,transformers:[mr([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{s=f.codeToHtml(e,{...k,lang:d,transformers:[mr([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:s,originalCodeFrameContent:a}},"generateSyntaxHighlightedFrames"),vs=Le(async(t,e,r=0,n,o,i)=>{const a=n==="vue"&&t?.message?qa(t.message):void 0,s=hs(t),l=s[0]||t,d=n==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let h="";if(i&&i.length>1)for(const T of i.slice(1)){const A=T.stack||"",q=Ee({stack:A},{frameLimit:10})?.find($=>$?.file?.startsWith("http"));if(q?.file&&(h=ds(q.file),h))break}const m=Ia(l),f=At(l.stack||""),k=await Ya(e,f,{message:m,name:l.name});let b,g,y;if(o?.file&&o?.line&&o?.column)b=o.column,g=o.file,y=o.line;else{const T=us(l);if(b=T.compiledColumn,g=T.compiledFilePath,y=T.compiledLine,g&&!g.startsWith("http")){const A=e.config.root;let q=g;g.startsWith(A)&&(q=g.slice(A.length)),q.startsWith("/")||(q=`/${q}`);const $=e.config.server.port||e.config.preview?.port||5173,ke=e.config.server.host||e.config.preview?.host||"localhost";let le=`${e.config.server.https?"https":"http"}://${ke}:${$}${q}`;h&&(le=ss(le,h)),g=le}}if(d){const T=Na(t);if(T){const A=await Zr();return{errorCount:1,fixPrompt:Kt({applicationType:void 0,error:l,file:{file:g,language:"jsx",line:y,snippet:T}}),message:l.message,originalCodeFrameContent:A.codeToHtml(T,{lang:g?Ce(g):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[os()]}),originalFileColumn:b,originalFileLine:y,originalFilePath:g,originalSnippet:T,originalStack:l.stack||""}}}let P=o?.file||g;if(!o?.file&&l.stack){const T=Ee(l,{frameLimit:10})?.find(A=>A?.file&&!A.file.startsWith("http")&&!A.file.includes("node_modules")&&!A.file.includes(".vite")&&A.file.includes(".tsx"));T?.file&&(P=T.file)}let{originalFileColumn:M,originalFileLine:C,originalFilePath:R}=await gs(e,P,b,y,a,l.message,r,g);const D=o?.plugin;let ee="",G="",B,N;try{const[T,A]=await Promise.all([De(e,fe(g)),De(e,fe(R))]);if(!T&&!A)return ms(b,g,y,M,C,R);const q=g.startsWith("http")?g.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):g,$=R.startsWith("http")?R.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):R,ke=T||A;if(ke?.transformResult?.code&&(N=ke.transformResult.code),A?.transformResult?.map&&!B){const V=A.transformResult.map;try{const Y=V.sourcesContent?.[0];Y&&(B=Y)}catch(Y){console.warn("Failed to get original source from source map:",Y)}}const[le,Ze]=await Promise.all([!N&&T?Sr(e,T,q,fe(q)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!B&&A?Sr(e,A,$,fe($)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!N&&le.compiledSourceText&&({compiledSourceText:N}=le),!B&&Ze.originalSourceText&&({originalSourceText:B}=Ze),B){if(N&&C<=0&&y>0){const V=Yi(N,y,b,B);V&&(C=V.line,M=V.column)}try{ee=Jt(B,{start:{column:Math.max(1,M),line:Math.max(1,C)}},{showGutter:!1})}catch{ee=B?.slice(0,500)||""}}const Ue=N&&y>0,Ne=C>0&&M>0;let ce=!1;if(Ue&&y>0&&l.message&&N){const V=N.split(`
1729
+ `)[y-1];if(V&&b<=V.length){const Y=l.message,ge=Math.max(0,b-1),Q=new Set(V.slice(Math.max(0,ge)));ce=Q.has("new Error(")||Q.has("throw new Error")||Q.has("throw ")||Q.has(Y.slice(0,20)),!ce&&Ne&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||g.includes(".js")||g.includes(".ts"))&&(ce=!0)}}if(Ue&&ce&&N){const V=N.split(`
1730
+ `),Y=V.length,ge=Math.min(y,Y)||Math.max(1,Y-2),Q=V[ge-1]?Math.min(b||1,V[ge-1]?.length||1):1;try{G=Jt(N,{start:{column:Q,line:ge}},{showGutter:!1})}catch(J){console.warn("Compiled codeFrame failed:",J),G=N?.slice(0,500)||""}}}catch(T){console.warn("Source retrieval failed:",T)}const{compiledCodeFrameContent:st,originalCodeFrameContent:lt}=await fs(ee,G,R,g,C,y);let ue=ee;if(!ue&&B){const T=B.split(`
1731
+ `),A=Math.max(0,C-3),q=Math.min(T.length,C+2);ue=T.slice(A,q).join(`
1732
+ `)}ue||(ue=G||`Error at line ${C} in ${R}`);const Ve=Kt({applicationType:void 0,error:t,file:{file:R,language:Ce(R),line:C,snippet:ue}});return{compiledCodeFrameContent:st,compiledColumn:b,compiledFilePath:g,compiledLine:y,compiledStack:Cr(Ee({message:m,name:l.name,stack:f}),{header:{message:m,name:l.name}}),errorCount:s.length,fixPrompt:Ve,originalCodeFrameContent:lt,originalFileColumn:M,originalFileLine:C,originalFilePath:R,originalSnippet:ee,originalStack:k||f,plugin:D}},"buildExtendedErrorData");var ws=Object.defineProperty,bs=S((t,e)=>ws(t,"name",{value:e,configurable:!0}),"a");const ys=bs((t,e)=>{const r=e.map(n=>{const o=n.charAt(0).toUpperCase()+n.slice(1);return`
1733
1733
  var orig${o} = console.${n};
1734
1734
 
1735
1735
  console.${n} = function(...args) {
@@ -1827,7 +1827,7 @@ async function sendError(error, loc) {
1827
1827
 
1828
1828
  var causeChain = extractCauseChain(error);
1829
1829
 
1830
- hot.send('${qr}', {
1830
+ hot.send('${Or}', {
1831
1831
  name: error?.name || null,
1832
1832
  message: error.message,
1833
1833
  stack: error.stack,
@@ -1874,10 +1874,10 @@ window.addEventListener("unhandledrejection", function (evt) {
1874
1874
  window.__flameSendError = sendError;
1875
1875
 
1876
1876
  ${r}
1877
- `},"generateClientScript");var ks=Object.defineProperty,se=S((t,e)=>ks(t,"name",{value:e,configurable:!0}),"o");const xs=/\.mdx$/i,_s=1,$s=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Es=/glob:\s*"(.+)"\s*\(/i,Ss=se(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Cs=se((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),Ls=se(t=>{try{const e=Ee(t,{frameLimit:_s})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Ts=se(async t=>{try{return await Tr(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Ps=se((t,e)=>{const r=t.id||t.loc?.file||e;r&&xs.test(String(r))&&/syntax error/i.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),en=se((t,e)=>{const r=t.split(`
1878
- `),n=r.findIndex(i=>i.includes(e));if(n===-1)return;const o=r[n]||"";return{column:Math.max(0,o.indexOf(e))+1,line:n+1}},"findImportLocation"),Ms=se(async(t,e,r)=>{const n=$s.exec(t.message)?.[1];if(n&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${n}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",r&&e)){const o=en(r,n);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Rs=se(async(t,e,r)=>{const n=Es.exec(t.message)?.[1];if(n&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${n}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",r&&e)){const o=en(r,n);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),Fs=se(async(t,e)=>{const r=Ss(t);Cs(e,r);const n=Ls(r),o=n?await Ts(n):void 0;return await Ms(r,n,o),Ps(r,n),await Rs(r,n,o),r},"enhanceViteSsrError");var zs=Object.defineProperty,Z=S((t,e)=>zs(t,"name",{value:e,configurable:!0}),"g");const et=Z((t,e,r)=>{try{const n=r instanceof Error?r.message:String(r);t.config.logger.error(`${e}: ${n}`,{clear:!0,timestamp:!0})}catch{}},"logError"),Hs=Z(t=>({error:Z(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:Z(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),As=Z(()=>{const t=new Map;return{recentErrors:t,shouldSkip:Z(e=>{const r=Date.now(),n=t.get(e)||0;return r-n<ai?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),tn=Z(t=>`${String(t?.message||"")}
1879
- ${String(t?.stack||"")}`,"createErrorSignature"),Is=Z((t,e,r)=>async n=>{const o=n instanceof Error?n:new Error(String(n?.stack||n));try{t.ssrFixStacktrace(o)}catch(i){et(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Fs(o,t);Object.assign(o,i)}catch(i){et(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=at(At(String(o.stack||"")),e)}catch{}await r.error(go(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Ds=Z(async(t,e,r)=>{let n;e.push(fo,Mi(r),vo);for await(const o of e.toSorted((i,a)=>a.priority-i.priority)){const{handle:i,name:a}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${a}`),typeof i=="function")try{const s=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:Ce(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(s===void 0)continue;const l=await nr(s.header??"");n={body:await nr(s.body??""),header:l};break}catch{continue}}return n},"findSolution"),$t=Z(async(t,e,r,n,o,i,a)=>{const s=mo(t);if(s.length===0)throw new Error("No errors found in the error stack");const l=await Promise.all(s.map(async(h,m)=>{let f=n;if(m>0){const g=(h?.stack?.split(`
1880
- `)||[]).find(y=>y.includes("at ")&&!y.includes("node_modules"));if(g){const y=g.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||g.match(/at\s+([^:)]+):(\d+):(\d+)/);if(y){const[,M,P,C]=y;f={column:Number.parseInt(C||"0",10),file:M,line:Number.parseInt(P||"0",10),plugin:n?.plugin}}}}let k=f;m===0&&h?.sourceFile&&(k={...f,file:h.sourceFile});const b=await vs(h,e,m,a,k,s);return{hint:h?.hint,message:h?.message||"",name:h?.name||Vr,stack:at(At(h?.stack||""),r),...b}})),d=await Ds(l[0],i,r);return{errors:l,errorType:o,rootPath:r,solution:d}},"buildExtendedError"),It=Z(t=>{if(!t)return null;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=It(t.cause)),e},"reconstructCauseChain"),Bs=Z((t,e,r,n,o,i)=>{const a=t.ws.send.bind(t.ws);t.ws.send=async(s,l)=>{try{if(s&&typeof s=="object"&&s.type==="error"&&s.err){const{err:d}=s,h=tn(d);if(e(h))return;if(d.message?.includes("Failed to resolve import")){const m=d.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(m){const f=m[2],k=new Error(d.message);k.name="ImportResolutionError",k.stack=d.stack;const b=await $t(k,t,n,{column:d.loc?.column||1,file:f,line:d.loc?.line||1,plugin:d.plugin||"vite:import-analysis"},"server",o,i);s.err=b,r.set(JSON.stringify(b),Date.now())}}else{const m=String(d?.name||"Error"),f=String(d.message),k=String(d.stack),b=new Error(f);b.name=m,b.stack=`${m}: ${f}
1881
- ${at(k,n)}`,d.cause&&(b.cause=It(d.cause));const g=d.sourceFile?{column:d.column,file:d.sourceFile,line:d.line,plugin:d.plugin}:void 0,y=await $t(b,t,n,g,"server",o,i);s.err=y,r.set(JSON.stringify(y),Date.now())}}a(s,l)}catch(d){et(t,"[visulima:vite-overlay:server] ws.send intercept failed",d),l.send(s,l)}}},"setupWebSocketInterception"),js=Z((t,e,r,n,o,i,a,s)=>{t.ws.on(qr,async(l,d)=>{if(!a)return;const h=l&&typeof l=="object"?l:{message:li,stack:""},m=tn(h);if(r(m))return;const f=String(h?.name||"Error"),k=String(h.message),b=String(h.stack),g=new Error(k);g.name=f,g.stack=`${f}: ${k}
1882
- ${at(b,o)}`,h.cause&&(g.cause=It(h.cause));try{const y=await $t(g,t,o,{column:h?.column,file:h?.file,line:h?.line,plugin:h?.plugin},"client",i,s);n.set(JSON.stringify(y),Date.now());const M={err:{...y},type:"error"};y.solution&&(M.solutions=y.solution);const P=[...y.errors],C=P.shift(),R=[`${Qt("red","[client]")} ${C.name}: ${C.message}`,...C.originalFilePath.includes("-extension://")?[]:["",Qt("blue",`${C.originalFilePath}:${C.originalFileLine}:${C.originalFileColumn}`),"",await uo(C.originalSnippet,Ce(C.originalFilePath),"nord"),"","Raw stack trace:","",C.originalStack]];P.forEach((U,ee)=>{const G=" ".repeat(2*ee);R.push("",`${G}Caused by: `,"",`${G}${C.name}: ${C.message}`,`${G}at ${C.originalFilePath}:${C.originalFileLine}:${C.originalFileColumn}`)}),await e.error(R.join(`
1883
- `)),d.send(M)}catch(y){et(t,"[visulima:vite-overlay:server] failed to build extended client error",y),d.send({err:{message:y.message,name:String(y.name||Vr),stack:y.stack},type:"error"})}})},"setupHMRHandler"),Os=Z((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:react-swc"||r.name==="vite:react-refresh"||r.name==="vite:react-babel"||r.name==="@vitejs/plugin-react"||typeof r=="function"&&r.name?.includes("react")||r.constructor&&r.constructor.name?.includes("React"))),"hasReactPlugin"),qs=Z((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:vue"||r.name==="@vitejs/plugin-vue"||typeof r=="function"&&r.name?.includes("vue")||r.constructor&&r.constructor.name?.includes("Vue"))),"hasVuePlugin"),rl=Z((t={})=>{let e,r,n;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(a,s){return a.plugins&&(r=Os(a.plugins,t?.reactPluginName),n=qs(a.plugins,t?.vuePluginName)),e=s.mode||"development",a},configureServer(a){const s=a.config.root||process.cwd(),l=Hs(a),{recentErrors:d,shouldSkip:h}=As(),m=a.transformRequest.bind(a);a.transformRequest=async(b,g)=>{try{return await m(b,g)}catch(y){if(y?.message?.includes("Failed to resolve import")){const M=y.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(M){const[,P,C]=M;y.sourceFile=C,y.importPath=P}}throw y}};let f;r?f="react":n&&(f="vue"),Bs(a,h,d,s,t?.solutionFinders??[],f),js(a,l,h,d,s,t?.solutionFinders??[],o,f);const k=Is(a,s,l);process.on("unhandledRejection",k),a.httpServer?.on("close",()=>{process.off("unhandledRejection",k)})},enforce:"pre",name:si,transform(a,s,l){return l?.ssr||!(s.includes("vite/dist/client/client.mjs")||s.includes("/@vite/client"))?null:vi(a,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:ys(e,i),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{rl as default};
1877
+ `},"generateClientScript");var ks=Object.defineProperty,se=S((t,e)=>ks(t,"name",{value:e,configurable:!0}),"o");const xs=/\.mdx$/i,_s=1,$s=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Es=/glob:\s*"(.+)"\s*\(/i,Ss=se(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Cs=se((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),Ls=se(t=>{try{const e=Ee(t,{frameLimit:_s})?.[0];return String(e?.file||t.loc?.file||t.id||"")}catch(e){console.warn("[visulima:vite-overlay:server] Stack trace parsing failed:",e);return}},"extractTopFileFromStack"),Ts=se(async t=>{try{return await Lr(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Ps=se((t,e)=>{const r=t.id||t.loc?.file||e;r&&xs.test(String(r))&&/syntax error/i.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Kr=se((t,e)=>{const r=t.split(`
1878
+ `),n=r.findIndex(i=>i.includes(e));if(n===-1)return;const o=r[n]||"";return{column:Math.max(0,o.indexOf(e))+1,line:n+1}},"findImportLocation"),Ms=se(async(t,e,r)=>{const n=$s.exec(t.message)?.[1];if(n&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${n}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",r&&e)){const o=Kr(r,n);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Rs=se(async(t,e,r)=>{const n=Es.exec(t.message)?.[1];if(n&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${n}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",r&&e)){const o=Kr(r,n);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),Fs=se(async(t,e)=>{const r=Ss(t);Cs(e,r);const n=Ls(r),o=n?await Ts(n):void 0;return await Ms(r,n,o),Ps(r,n),await Rs(r,n,o),r},"enhanceViteSsrError");var zs=Object.defineProperty,U=S((t,e)=>zs(t,"name",{value:e,configurable:!0}),"d");const et=U((t,e,r)=>{try{const n=r instanceof Error?r.message:String(r);t.config.logger.error(`${e}: ${n}`,{clear:!0,timestamp:!0})}catch{}},"logError"),Hs=U(t=>({error:U(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:U(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),As=U(()=>{const t=new Map;return{recentErrors:t,shouldSkip:U(e=>{const r=Date.now(),n=t.get(e)||0;return r-n<ai?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),en=U(t=>`${String(t?.message||"")}
1879
+ ${String(t?.stack||"")}`,"createErrorSignature"),Is=U((t,e,r)=>async n=>{const o=n instanceof Error?n:new Error(String(n?.stack||n));try{t.ssrFixStacktrace(o)}catch(i){et(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Fs(o,t);Object.assign(o,i)}catch(i){et(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=at(At(String(o.stack||"")),e)}catch{}await r.error(go(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Ds=U(async(t,e,r)=>{let n;e.push(fo,Mi(r),vo);for await(const o of e.toSorted((i,a)=>a.priority-i.priority)){const{handle:i,name:a}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${a}`),typeof i=="function")try{const s=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:Ce(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(s===void 0)continue;const l=await nr(s.header??"");n={body:await nr(s.body??""),header:l};break}catch{continue}}return n},"findSolution"),$t=U(async(t,e,r,n,o,i,a)=>{const s=mo(t);if(s.length===0)throw new Error("No errors found in the error stack");const l=await Promise.all(s.map(async(h,m)=>{let f=n;if(m>0){const g=(h?.stack?.split(`
1880
+ `)||[]).find(y=>y.includes("at ")&&!y.includes("node_modules"));if(g){const y=g.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||g.match(/at\s+([^:)]+):(\d+):(\d+)/);if(y){const[,P,M,C]=y;f={column:Number.parseInt(C||"0",10),file:P,line:Number.parseInt(M||"0",10),plugin:n?.plugin}}}}let k=f;m===0&&h?.sourceFile&&(k={...f,file:h.sourceFile});const b=await vs(h,e,m,a,k,s);return{hint:h?.hint,message:h?.message||"",name:h?.name||qr,stack:at(At(h?.stack||""),r),...b}})),d=await Ds(l[0],i,r);return{errors:l,errorType:o,rootPath:r,solution:d}},"buildExtendedError"),It=U(t=>{if(!t)return null;const e=new Error(String(t.message||"Caused by error"));return e.name=String(t.name||"Error"),e.stack=String(t.stack||""),t.cause&&(e.cause=It(t.cause)),e},"reconstructCauseChain"),Bs=U((t,e,r,n,o,i)=>{const a=t.ws.send.bind(t.ws);t.ws.send=async(s,l)=>{try{if(s&&typeof s=="object"&&s.type==="error"&&s.err){const{err:d}=s,h=en(d);if(e(h))return;if(d.message?.includes("Failed to resolve import")){const m=d.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(m){const f=m[2],k=new Error(d.message);k.name="ImportResolutionError",k.stack=d.stack;const b=await $t(k,t,n,{column:d.loc?.column||1,file:f,line:d.loc?.line||1,plugin:d.plugin||"vite:import-analysis"},"server",o,i);s.err=b,r.set(JSON.stringify(b),Date.now())}}else{const m=String(d?.name||"Error"),f=String(d.message),k=String(d.stack),b=new Error(f);b.name=m,b.stack=`${m}: ${f}
1881
+ ${at(k,n)}`,d.cause&&(b.cause=It(d.cause));const g=d.sourceFile?{column:d.column,file:d.sourceFile,line:d.line,plugin:d.plugin}:void 0,y=await $t(b,t,n,g,"server",o,i);s.err=y,r.set(JSON.stringify(y),Date.now())}}a(s,l)}catch(d){et(t,"[visulima:vite-overlay:server] ws.send intercept failed",d),l.send(s,l)}}},"setupWebSocketInterception"),js=U((t,e,r,n,o,i,a,s)=>{t.ws.on(Or,async(l,d)=>{if(!a)return;const h=l&&typeof l=="object"?l:{message:li,stack:""},m=en(h);if(r(m))return;const f=String(h?.name||"Error"),k=String(h.message),b=String(h.stack),g=new Error(k);g.name=f,g.stack=`${f}: ${k}
1882
+ ${at(b,o)}`,h.cause&&(g.cause=It(h.cause));try{const y=await $t(g,t,o,{column:h?.column,file:h?.file,line:h?.line,plugin:h?.plugin},"client",i,s);n.set(JSON.stringify(y),Date.now());const P={err:{...y},type:"error"};y.solution&&(P.solutions=y.solution);const M=[...y.errors],C=M.shift();if(!C){await e.error("No error information available"),d.send(P);return}const R=[`${Qt("red","[client]")} ${C.name}: ${C.message}`,...C.originalFilePath.includes("-extension://")?[]:["",Qt("blue",`${C.originalFilePath}:${C.originalFileLine}:${C.originalFileColumn}`),"",await uo(C.originalSnippet,Ce(C.originalFilePath)||"text","nord"),"","Raw stack trace:","",C.originalStack]];M.forEach((D,ee)=>{const G=" ".repeat(2*ee);R.push("",`${G}Caused by: `,"",`${G}${D.name}: ${D.message}`,`${G}at ${D.originalFilePath}:${D.originalFileLine}:${D.originalFileColumn}`)}),await e.error(R.join(`
1883
+ `)),d.send(P)}catch(y){et(t,"[visulima:vite-overlay:server] failed to build extended client error",y),d.send({err:{message:y.message,name:String(y.name||qr),stack:y.stack},type:"error"})}})},"setupHMRHandler"),Os=U((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:react-swc"||r.name==="vite:react-refresh"||r.name==="vite:react-babel"||r.name==="@vitejs/plugin-react"||typeof r=="function"&&r.name?.includes("react")||r.constructor&&r.constructor.name?.includes("React"))),"hasReactPlugin"),qs=U((t,e)=>t.flat().some(r=>r&&(e&&r.name===e||r.name==="vite:vue"||r.name==="@vitejs/plugin-vue"||typeof r=="function"&&r.name?.includes("vue")||r.constructor&&r.constructor.name?.includes("Vue"))),"hasVuePlugin"),nl=U((t={})=>{let e,r,n;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(a,s){return a.plugins&&(r=Os(a.plugins,t?.reactPluginName),n=qs(a.plugins,t?.vuePluginName)),e=s.mode||"development",a},configureServer(a){const s=a.config.root||process.cwd(),l=Hs(a),{recentErrors:d,shouldSkip:h}=As(),m=a.transformRequest.bind(a);a.transformRequest=async(b,g)=>{try{return await m(b,g)}catch(y){if(y?.message?.includes("Failed to resolve import")){const P=y.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(P){const[,M,C]=P;y.sourceFile=C,y.importPath=M}}throw y}};let f;r?f="react":n&&(f="vue"),Bs(a,h,d,s,t?.solutionFinders??[],f),js(a,l,h,d,s,t?.solutionFinders??[],o,f);const k=Is(a,s,l);process.on("unhandledRejection",k),a.httpServer?.on("close",()=>{process.off("unhandledRejection",k)})},enforce:"pre",name:si,transform(a,s,l){return l?.ssr||!(s.includes("vite/dist/client/client.mjs")||s.includes("/@vite/client"))?null:vi(a,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:ys(e,i),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{nl as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/vite-overlay",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Improved vite overlay",
5
5
  "keywords": [
6
6
  "vite",
@@ -57,12 +57,12 @@
57
57
  ],
58
58
  "dependencies": {
59
59
  "@jridgewell/trace-mapping": "^0.3.31",
60
- "@shikijs/cli": "3.13.0",
61
- "@shikijs/langs": "3.13.0",
62
- "@shikijs/themes": "3.13.0",
63
- "@visulima/error": "5.0.2",
60
+ "@shikijs/cli": "3.14.0",
61
+ "@shikijs/langs": "3.14.0",
62
+ "@shikijs/themes": "3.14.0",
63
+ "@visulima/error": "5.0.4",
64
64
  "fastest-levenshtein": "^1.0.16",
65
- "shiki": "3.13.0"
65
+ "shiki": "3.14.0"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "vite": "^6 || ^7 || ^8"