@visulima/vite-overlay 1.1.1 → 1.2.1

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/dist/index.js CHANGED
@@ -1,64 +1,66 @@
1
- var jo=Object.defineProperty;var x=(t,e)=>jo(t,"name",{value:e,configurable:!0});import{renderError as Do,getErrorCauses as Io}from"@visulima/error/error";import{ruleBasedFinder as pr,errorHintFinder as hr}from"@visulima/error/solution";import{parseStacktrace as Oo}from"@visulima/error/stacktrace";import{boxen as Ho}from"@visulima/boxen";import{readFile as ft}from"node:fs/promises";import{fileURLToPath as qo}from"node:url";import Zo from"node:fs";import J from"node:path";import{distance as Ze}from"fastest-levenshtein";import{parseStacktrace as ye,formatStacktrace as ur,codeFrame as It}from"@visulima/error";import Ot from"@visulima/error/solution/ai/prompt";import{TraceMap as Vo,originalPositionFor as No}from"@jridgewell/trace-mapping";import{stripVTControlCharacters as Uo}from"node:util";var Wo=Object.defineProperty,z=x((t,e)=>Wo(t,"name",{value:e,configurable:!0}),"g$6");function Qe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}x(Qe,"q$2");z(Qe,"L");var ve=Qe();function vt(t){ve=t}x(vt,"le");z(vt,"G");var Pe={exec:z(()=>null,"exec")};function E(t,e=""){let r=typeof t=="string"?t:t.source,o={replace:z((n,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(V.caret,"$1"),r=r.replace(n,a),o},"replace"),getRegex:z(()=>new RegExp(r,e),"getRegex")};return o}x(E,"u$5");z(E,"h");var V={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")},Go=/^(?:[ \t]*(?:\n|$))+/,Xo=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qo=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ae=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Yo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,wt=/(?:[*+-]|\d{1,9}[.)])/,gr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mr=E(gr).replace(/bull/g,wt).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(),Jo=E(gr).replace(/bull/g,wt).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(),bt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ko=/^[^\n]+/,kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,en=E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tn=E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,wt).getRegex(),Ye="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",yt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rn=E("^ {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",yt).replace("tag",Ye).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fr=E(bt).replace("hr",Ae).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",Ye).getRegex(),on=E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",fr).getRegex(),xt={blockquote:on,code:Xo,def:en,fences:Qo,heading:Yo,hr:Ae,html:rn,lheading:mr,list:tn,newline:Go,paragraph:fr,table:Pe,text:Ko},Ht=E("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ae).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",Ye).getRegex(),nn={...xt,lheading:Jo,table:Ht,paragraph:E(bt).replace("hr",Ae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ht).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",Ye).getRegex()},an={...xt,html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yt).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:Pe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(bt).replace("hr",Ae).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",mr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ln=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vr=/^( {2,}|\\)\n(?!\s*$)/,cn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Je=/[\p{P}\p{S}]/u,_t=/[\s\p{P}\p{S}]/u,wr=/[^\s\p{P}\p{S}]/u,dn=E(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_t).getRegex(),br=/(?!~)[\p{P}\p{S}]/u,pn=/(?!~)[\s\p{P}\p{S}]/u,hn=/(?:[^\s\p{P}\p{S}]|~)/u,un=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,kr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,gn=E(kr,"u").replace(/punct/g,Je).getRegex(),mn=E(kr,"u").replace(/punct/g,br).getRegex(),yr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",fn=E(yr,"gu").replace(/notPunctSpace/g,wr).replace(/punctSpace/g,_t).replace(/punct/g,Je).getRegex(),vn=E(yr,"gu").replace(/notPunctSpace/g,hn).replace(/punctSpace/g,pn).replace(/punct/g,br).getRegex(),wn=E("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,wr).replace(/punctSpace/g,_t).replace(/punct/g,Je).getRegex(),bn=E(/\\(punct)/,"gu").replace(/punct/g,Je).getRegex(),kn=E(/^<(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(),yn=E(yt).replace("(?:-->|$)","-->").getRegex(),xn=E("^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",yn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ve=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,_n=E(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ve).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xr=E(/^!?\[(label)\]\[(ref)\]/).replace("label",Ve).replace("ref",kt).getRegex(),_r=E(/^!?\[(ref)\](?:\[\])?/).replace("ref",kt).getRegex(),$n=E("reflink|nolink(?!\\()","g").replace("reflink",xr).replace("nolink",_r).getRegex(),$t={_backpedal:Pe,anyPunctuation:bn,autolink:kn,blockSkip:un,br:vr,code:ln,del:Pe,emStrongLDelim:gn,emStrongRDelimAst:fn,emStrongRDelimUnd:wn,escape:sn,link:_n,nolink:_r,punctuation:dn,reflink:xr,reflinkSearch:$n,tag:xn,text:cn,url:Pe},Sn={...$t,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",Ve).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ve).getRegex()},at={...$t,emStrongRDelimAst:vn,emStrongLDelim:mn,url:E(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},En={...at,br:E(vr).replace("{2,}","*").getRegex(),text:E(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},He={normal:xt,gfm:nn,pedantic:an},Le={normal:$t,gfm:at,breaks:En,pedantic:Sn},Cn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qt=z(t=>Cn[t],"ke");function Y(t,e){if(e){if(V.escapeTest.test(t))return t.replace(V.escapeReplace,qt)}else if(V.escapeTestNoEncode.test(t))return t.replace(V.escapeReplaceNoEncode,qt);return t}x(Y,"m$9");z(Y,"w");function st(t){try{t=encodeURI(t).replace(V.percentDecode,"%")}catch{return null}return t}x(st,"ne");z(st,"J");function lt(t,e){let r=t.replace(V.findPipe,(i,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),o=r.split(V.splitPipe),n=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),e)if(o.length>e)o.splice(e);else for(;o.length<e;)o.push("");for(;n<o.length;n++)o[n]=o[n].trim().replace(V.slashPipe,"|");return o}x(lt,"se");z(lt,"V");function ke(t,e,r){let o=t.length;if(o===0)return"";let n=0;for(;n<o;){let i=t.charAt(o-n-1);if(i===e&&!r)n++;else if(i!==e&&r)n++;else break}return t.slice(0,o-n)}x(ke,"_$1");z(ke,"z");function $r(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let o=0;o<t.length;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])r++;else if(t[o]===e[1]&&(r--,r<0))return o;return r>0?-2:-1}x($r,"Ye");z($r,"ge");function ct(t,e,r,o,n){let i=e.href,a=e.title||null,s=t[1].replace(n.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:a,text:s,tokens:o.inlineTokens(s)};return o.state.inLink=!1,l}x(ct,"ie");z(ct,"fe");function Sr(t,e,r){let o=t.match(r.other.indentCodeCompensation);if(o===null)return e;let n=o[1];return e.split(`
3
- `).map(i=>{let a=i.match(r.other.beginningSpace);if(a===null)return i;let[s]=a;return s.length>=n.length?i.slice(n.length):i}).join(`
4
- `)}x(Sr,"et");z(Sr,"Je");var Ne=class{static{x(this,"I")}static{z(this,"y")}options;rules;lexer;constructor(e){this.options=e||ve}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 o=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:ke(o,`
5
- `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let o=r[0],n=Sr(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let n=ke(o,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(o=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:ke(r[0],`
6
- `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let o=ke(r[0],`
1
+ var Bn=Object.defineProperty;var x=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{renderError as jn,getErrorCauses as On}from"@visulima/error/error";import{ruleBasedFinder as ur,errorHintFinder as gr}from"@visulima/error/solution";import{parseStacktrace as qn}from"@visulima/error/stacktrace";import{boxen as Zn}from"@visulima/boxen";import{readFile as vt}from"node:fs/promises";import{fileURLToPath as Vn}from"node:url";import Un from"node:fs";import J from"node:path";import{distance as Ze}from"fastest-levenshtein";import{parseStacktrace as ke,formatStacktrace as mr,codeFrame as Bt}from"@visulima/error";import jt from"@visulima/error/solution/ai/prompt";import{TraceMap as Nn,originalPositionFor as Wn}from"@jridgewell/trace-mapping";import{stripVTControlCharacters as Gn}from"node:util";var Yn=Object.defineProperty,M=x((t,e)=>Yn(t,"name",{value:e,configurable:!0}),"g$5");function Xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}x(Xe,"q$2");M(Xe,"L");var ve=Xe();function wt(t){ve=t}x(wt,"le");M(wt,"G");var Pe={exec:M(()=>null,"exec")};function S(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:M((o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(V.caret,"$1"),r=r.replace(o,s),n},"replace"),getRegex:M(()=>new RegExp(r,e),"getRegex")};return n}x(S,"u$6");M(S,"h");var V={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:M(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},Xn=/^(?:[ \t]*(?:\n|$))+/,Qn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Jn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ae=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Kn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bt=/(?:[*+-]|\d{1,9}[.)])/,fr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,vr=S(fr).replace(/bull/g,bt).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(),eo=S(fr).replace(/bull/g,bt).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(),yt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,to=/^[^\n]+/,kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ro=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),no=S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bt).getRegex(),Qe="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",xt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,oo=S("^ {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",xt).replace("tag",Qe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),wr=S(yt).replace("hr",Ae).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",Qe).getRegex(),io=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",wr).getRegex(),_t={blockquote:io,code:Qn,def:ro,fences:Jn,heading:Kn,hr:Ae,html:oo,lheading:vr,list:no,newline:Xn,paragraph:wr,table:Pe,text:to},Ot=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ae).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",Qe).getRegex(),so={..._t,lheading:eo,table:Ot,paragraph:S(yt).replace("hr",Ae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ot).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",Qe).getRegex()},ao={..._t,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xt).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:Pe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(yt).replace("hr",Ae).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",vr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,co=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br=/^( {2,}|\\)\n(?!\s*$)/,po=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Je=/[\p{P}\p{S}]/u,$t=/[\s\p{P}\p{S}]/u,yr=/[^\s\p{P}\p{S}]/u,ho=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$t).getRegex(),kr=/(?!~)[\p{P}\p{S}]/u,uo=/(?!~)[\s\p{P}\p{S}]/u,go=/(?:[^\s\p{P}\p{S}]|~)/u,mo=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,xr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,fo=S(xr,"u").replace(/punct/g,Je).getRegex(),vo=S(xr,"u").replace(/punct/g,kr).getRegex(),_r="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wo=S(_r,"gu").replace(/notPunctSpace/g,yr).replace(/punctSpace/g,$t).replace(/punct/g,Je).getRegex(),bo=S(_r,"gu").replace(/notPunctSpace/g,go).replace(/punctSpace/g,uo).replace(/punct/g,kr).getRegex(),yo=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yr).replace(/punctSpace/g,$t).replace(/punct/g,Je).getRegex(),ko=S(/\\(punct)/,"gu").replace(/punct/g,Je).getRegex(),xo=S(/^<(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(),_o=S(xt).replace("(?:-->|$)","-->").getRegex(),$o=S("^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",_o).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ve=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,Eo=S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ve).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$r=S(/^!?\[(label)\]\[(ref)\]/).replace("label",Ve).replace("ref",kt).getRegex(),Er=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",kt).getRegex(),So=S("reflink|nolink(?!\\()","g").replace("reflink",$r).replace("nolink",Er).getRegex(),Et={_backpedal:Pe,anyPunctuation:ko,autolink:xo,blockSkip:mo,br,code:co,del:Pe,emStrongLDelim:fo,emStrongRDelimAst:wo,emStrongRDelimUnd:yo,escape:lo,link:Eo,nolink:Er,punctuation:ho,reflink:$r,reflinkSearch:So,tag:$o,text:po,url:Pe},Co={...Et,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",Ve).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ve).getRegex()},at={...Et,emStrongRDelimAst:bo,emStrongLDelim:vo,url:S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Lo={...at,br:S(br).replace("{2,}","*").getRegex(),text:S(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Oe={normal:_t,gfm:so,pedantic:ao},Le={normal:Et,gfm:at,breaks:Lo,pedantic:Co},To={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qt=M(t=>To[t],"ke");function Q(t,e){if(e){if(V.escapeTest.test(t))return t.replace(V.escapeReplace,qt)}else if(V.escapeTestNoEncode.test(t))return t.replace(V.escapeReplaceNoEncode,qt);return t}x(Q,"m$9");M(Q,"w");function lt(t){try{t=encodeURI(t).replace(V.percentDecode,"%")}catch{return null}return t}x(lt,"ne");M(lt,"J");function ct(t,e){let r=t.replace(V.findPipe,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(V.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(V.slashPipe,"|");return n}x(ct,"se");M(ct,"V");function ye(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)}x(ye,"_$1");M(ye,"z");function Sr(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}x(Sr,"Ye");M(Sr,"ge");function dt(t,e,r,n,o){let i=e.href,s=e.title||null,a=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:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}x(dt,"ie");M(dt,"fe");function Cr(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let o=n[1];return e.split(`
3
+ `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[a]=s;return a.length>=o.length?i.slice(o.length):i}).join(`
4
+ `)}x(Cr,"et");M(Cr,"Je");var Ue=class{static{x(this,"I")}static{M(this,"y")}options;rules;lexer;constructor(e){this.options=e||ve}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:ye(n,`
5
+ `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],o=Cr(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=ye(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:ye(r[0],`
6
+ `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=ye(r[0],`
7
7
  `).split(`
8
- `),n="",i="",a=[];for(;o.length>0;){let s=!1,l=[],c;for(c=0;c<o.length;c++)if(this.rules.other.blockquoteStart.test(o[c]))l.push(o[c]),s=!0;else if(!s)l.push(o[c]);else break;o=o.slice(c);let p=l.join(`
8
+ `),o="",i="",s=[];for(;n.length>0;){let a=!1,l=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))l.push(n[c]),a=!0;else if(!a)l.push(n[c]);else break;n=n.slice(c);let p=l.join(`
9
9
  `),g=p.replace(this.rules.other.blockquoteSetextReplace,`
10
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
11
11
  ${p}`:p,i=i?`${i}
12
- ${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,a,!0),this.lexer.state.top=m,o.length===0)break;let v=a.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let f=v,h=f.raw+`
13
- `+o.join(`
14
- `),b=this.blockquote(h);a[a.length-1]=b,n=n.substring(0,n.length-f.raw.length)+b.raw,i=i.substring(0,i.length-f.text.length)+b.text;break}else if(v?.type==="list"){let f=v,h=f.raw+`
15
- `+o.join(`
16
- `),b=this.list(h);a[a.length-1]=b,n=n.substring(0,n.length-v.raw.length)+b.raw,i=i.substring(0,i.length-f.raw.length)+b.raw,o=h.substring(a.at(-1).raw.length).split(`
17
- `);continue}}return{type:"blockquote",raw:n,tokens:a,text:i}}}list(e){let r=this.rules.block.list.exec(e);if(r){let o=r[1].trim(),n=o.length>1,i={type:"list",raw:"",ordered:n,start:n?+o.slice(0,-1):"",loose:!1,items:[]};o=n?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=n?o:"[*+-]");let a=this.rules.other.listItemRegex(o),s=!1;for(;e;){let c=!1,p="",g="";if(!(r=a.exec(e))||this.rules.block.hr.test(e))break;p=r[0],e=e.substring(p.length);let m=r[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,F=>" ".repeat(3*F.length)),v=e.split(`
12
+ ${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,s,!0),this.lexer.state.top=m,n.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let f=v,h=f.raw+`
13
+ `+n.join(`
14
+ `),b=this.blockquote(h);s[s.length-1]=b,o=o.substring(0,o.length-f.raw.length)+b.raw,i=i.substring(0,i.length-f.text.length)+b.text;break}else if(v?.type==="list"){let f=v,h=f.raw+`
15
+ `+n.join(`
16
+ `),b=this.list(h);s[s.length-1]=b,o=o.substring(0,o.length-v.raw.length)+b.raw,i=i.substring(0,i.length-f.raw.length)+b.raw,n=h.substring(s.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:o,tokens:s,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 s=this.rules.other.listItemRegex(n),a=!1;for(;e;){let c=!1,p="",g="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;p=r[0],e=e.substring(p.length);let m=r[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,z=>" ".repeat(3*z.length)),v=e.split(`
19
19
  `,1)[0],f=!m.trim(),h=0;if(this.options.pedantic?(h=2,g=m.trimStart()):f?h=r[1].length+1:(h=r[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,g=m.slice(h),h+=r[1].length),f&&this.rules.other.blankLine.test(v)&&(p+=v+`
20
- `,e=e.substring(v.length+1),c=!0),!c){let F=this.rules.other.nextBulletRegex(h),S=this.rules.other.hrRegex(h),A=this.rules.other.fencesBeginRegex(h),ee=this.rules.other.headingBeginRegex(h),_=this.rules.other.htmlBeginRegex(h);for(;e;){let te=e.split(`
21
- `,1)[0],D;if(v=te,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),D=v):D=v.replace(this.rules.other.tabCharGlobal," "),A.test(v)||ee.test(v)||_.test(v)||F.test(v)||S.test(v))break;if(D.search(this.rules.other.nonSpaceChar)>=h||!v.trim())g+=`
22
- `+D.slice(h);else{if(f||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(m)||ee.test(m)||S.test(m))break;g+=`
20
+ `,e=e.substring(v.length+1),c=!0),!c){let z=this.rules.other.nextBulletRegex(h),E=this.rules.other.hrRegex(h),A=this.rules.other.fencesBeginRegex(h),ee=this.rules.other.headingBeginRegex(h),_=this.rules.other.htmlBeginRegex(h);for(;e;){let te=e.split(`
21
+ `,1)[0],D;if(v=te,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),D=v):D=v.replace(this.rules.other.tabCharGlobal," "),A.test(v)||ee.test(v)||_.test(v)||z.test(v)||E.test(v))break;if(D.search(this.rules.other.nonSpaceChar)>=h||!v.trim())g+=`
22
+ `+D.slice(h);else{if(f||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(m)||ee.test(m)||E.test(m))break;g+=`
23
23
  `+v}!f&&!v.trim()&&(f=!0),p+=te+`
24
- `,e=e.substring(te.length+1),m=D.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(s=!0));let b=null,C;this.options.gfm&&(b=this.rules.other.listIsTask.exec(g),b&&(C=b[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:p,task:!!b,checked:C,loose:!1,text:g,tokens:[]}),i.raw+=p}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 c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){let p=i.items[c].tokens.filter(m=>m.type==="space"),g=p.length>0&&p.some(m=>this.rules.other.anyLine.test(m.raw));i.loose=g}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].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 o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=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:o,raw:r[0],href:n,title:i}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=lt(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
- `):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(o.length===n.length){for(let s of n)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<o.length;s++)a.header.push({text:o[s],tokens:this.lexer.inline(o[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(lt(s,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));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 o=r[1].charAt(r[1].length-1)===`
26
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}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 o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let a=ke(o.slice(0,-1),"\\");if((o.length-a.length)%2===0)return}else{let a=$r(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 n=r[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?n=n.slice(1):n=n.slice(1,-1)),ct(r,{href:n&&n.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 o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let n=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=r[n.toLowerCase()];if(!i){let a=o[0].charAt(0);return{type:"text",raw:a,text:a}}return ct(o,i,o[0],this.lexer,this.rules)}}emStrong(e,r,o=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!o||this.rules.inline.punctuation.exec(o))){let i=[...n[0]].length-1,a,s,l=i,c=0,p=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,r=r.slice(-1*e.length+i);(n=p.exec(r))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(s=[...a].length,n[3]||n[4]){l+=s;continue}else if((n[5]||n[6])&&i%3&&!((i+s)%3)){c+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let g=[...n[0]][0].length,m=e.slice(0,i+n.index+g+s);if(Math.min(i,s)%2){let f=m.slice(1,-1);return{type:"em",raw:m,text:f,tokens:this.lexer.inlineTokens(f)}}let v=m.slice(2,-2);return{type:"strong",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(o),i=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return n&&i&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}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 o,n;return r[2]==="@"?(o=r[1],n="mailto:"+o):(o=r[1],n=o),{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let o,n;if(r[2]==="@")o=r[0],n="mailto:"+o;else{let i;do i=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(i!==r[0]);o=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:o,href:n,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}},ce=class dt{static{x(this,"N")}static{z(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ve,this.options.tokenizer=this.options.tokenizer||new Ne,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:V,block:He.normal,inline:Le.normal};this.options.pedantic?(r.block=He.pedantic,r.inline=Le.pedantic):this.options.gfm&&(r.block=He.gfm,this.options.breaks?r.inline=Le.breaks:r.inline=Le.gfm),this.tokenizer.rules=r}static get rules(){return{block:He,inline:Le}}static lex(e,r){return new dt(r).lex(e)}static lexInline(e,r){return new dt(r).inlineTokens(e)}lex(e){e=e.replace(V.carriageReturn,`
27
- `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let o=this.inlineQueue[r];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],o=!1){for(this.options.pedantic&&(e=e.replace(V.tabCharGlobal," ").replace(V.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(a=>(n=a.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let a=r.at(-1);n.raw.length===1&&a!==void 0?a.raw+=`
28
- `:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
24
+ `,e=e.substring(te.length+1),m=D.slice(h)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(a=!0));let b=null,C;this.options.gfm&&(b=this.rules.other.listIsTask.exec(g),b&&(C=b[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:p,task:!!b,checked:C,loose:!1,text:g,tokens:[]}),i.raw+=p}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 c=0;c<i.items.length;c++)if(this.lexer.state.top=!1,i.items[c].tokens=this.lexer.blockTokens(i.items[c].text,[]),!i.loose){let p=i.items[c].tokens.filter(m=>m.type==="space"),g=p.length>0&&p.some(m=>this.rules.other.anyLine.test(m.raw));i.loose=g}if(i.loose)for(let c=0;c<i.items.length;c++)i.items[c].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=ct(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let a of o)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<n.length;a++)s.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:s.align[a]});for(let a of i)s.rows.push(ct(a,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}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 s=ye(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=Sr(r[2],"()");if(s===-2)return;if(s>-1){let a=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,a).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],i=s[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)),dt(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 s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return dt(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,s,a,l=i,c=0,p=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,r=r.slice(-1*e.length+i);(o=p.exec(r))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){l+=a;continue}else if((o[5]||o[6])&&i%3&&!((i+a)%3)){c+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+c);let g=[...o[0]][0].length,m=e.slice(0,i+o.index+g+a);if(Math.min(i,a)%2){let f=m.slice(1,-1);return{type:"em",raw:m,text:f,tokens:this.lexer.inlineTokens(f)}}let v=m.slice(2,-2);return{type:"strong",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}}}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}}}},ce=class pt{static{x(this,"N")}static{M(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ve,this.options.tokenizer=this.options.tokenizer||new Ue,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:V,block:Oe.normal,inline:Le.normal};this.options.pedantic?(r.block=Oe.pedantic,r.inline=Le.pedantic):this.options.gfm&&(r.block=Oe.gfm,this.options.breaks?r.inline=Le.breaks:r.inline=Le.gfm),this.tokenizer.rules=r}static get rules(){return{block:Oe,inline:Le}}static lex(e,r){return new pt(r).lex(e)}static lexInline(e,r){return new pt(r).inlineTokens(e)}lex(e){e=e.replace(V.carriageReturn,`
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(V.tabCharGlobal," ").replace(V.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(s=>(o=s.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 s=r.at(-1);o.raw.length===1&&s!==void 0?s.raw+=`
28
+ `:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
29
29
  `)?"":`
30
- `)+n.raw,a.text+=`
31
- `+n.text,this.inlineQueue.at(-1).src=a.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
30
+ `)+o.raw,s.text+=`
31
+ `+o.text,this.inlineQueue.at(-1).src=s.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
32
32
  `)?"":`
33
- `)+n.raw,a.text+=`
34
- `+n.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}let i=e;if(this.options.extensions?.startBlock){let a=1/0,s=e.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},s),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let a=r.at(-1);o&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
33
+ `)+o.raw,s.text+=`
34
+ `+o.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let i=e;if(this.options.extensions?.startBlock){let s=1/0,a=e.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},a),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(i=e.substring(0,s+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let s=r.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
35
35
  `)?"":`
36
- `)+n.raw,a.text+=`
37
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
36
+ `)+o.raw,s.text+=`
37
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(o),n=i.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
38
38
  `)?"":`
39
- `)+n.raw,a.text+=`
40
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(n);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let o=e,n=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)s.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,n.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(n=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;let i=!1,a="";for(;e;){i||(a=""),i=!1;let s;if(this.options.extensions?.inline?.some(c=>(s=c.call({lexer:this},e,r))?(e=e.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let c=r.at(-1);s.type==="text"&&c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):r.push(s);continue}if(s=this.tokenizer.emStrong(e,o,a)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),r.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),r.push(s);continue}let l=e;if(this.options.extensions?.startInline){let c=1/0,p=e.slice(1),g;this.options.extensions.startInline.forEach(m=>{g=m.call({lexer:this},p),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(l=e.substring(0,c+1))}if(s=this.tokenizer.inlineText(l)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),i=!0;let c=r.at(-1);c?.type==="text"?(c.raw+=s.raw,c.text+=s.text):r.push(s);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return r}},Ue=class{static{x(this,"L")}static{z(this,"P")}options;parser;constructor(e){this.options=e||ve}space(e){return""}code({text:e,lang:r,escaped:o}){let n=(r||"").match(V.notSpaceStart)?.[0],i=e.replace(V.endingNewline,"")+`
41
- `;return n?'<pre><code class="language-'+Y(n)+'">'+(o?i:Y(i,!0))+`</code></pre>
42
- `:"<pre><code>"+(o?i:Y(i,!0))+`</code></pre>
39
+ `)+o.raw,s.text+=`
40
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(o);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n=e,o=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)a.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;e;){i||(s=""),i=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let c=r.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):r.push(a);continue}if(a=this.tokenizer.emStrong(e,n,s)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),r.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),r.push(a);continue}let l=e;if(this.options.extensions?.startInline){let c=1/0,p=e.slice(1),g;this.options.extensions.startInline.forEach(m=>{g=m.call({lexer:this},p),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(l=e.substring(0,c+1))}if(a=this.tokenizer.inlineText(l)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(s=a.raw.slice(-1)),i=!0;let c=r.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):r.push(a);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return r}},Ne=class{static{x(this,"L")}static{M(this,"P")}options;parser;constructor(e){this.options=e||ve}space(e){return""}code({text:e,lang:r,escaped:n}){let o=(r||"").match(V.notSpaceStart)?.[0],i=e.replace(V.endingNewline,"")+`
41
+ `;return o?'<pre><code class="language-'+Q(o)+'">'+(n?i:Q(i,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?i:Q(i,!0))+`</code></pre>
43
43
  `}blockquote({tokens:e}){return`<blockquote>
44
44
  ${this.parser.parse(e)}</blockquote>
45
45
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
46
46
  `}hr(e){return`<hr>
47
- `}list(e){let r=e.ordered,o=e.start,n="";for(let s=0;s<e.items.length;s++){let l=e.items[s];n+=this.listitem(l)}let i=r?"ol":"ul",a=r&&o!==1?' start="'+o+'"':"";return"<"+i+a+`>
48
- `+n+"</"+i+`>
49
- `}listitem(e){let r="";if(e.task){let o=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=o+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=o+" "+Y(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):r+=o+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
47
+ `}list(e){let r=e.ordered,n=e.start,o="";for(let a=0;a<e.items.length;a++){let l=e.items[a];o+=this.listitem(l)}let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
48
+ `+o+"</"+i+`>
49
+ `}listitem(e){let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+Q(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
50
50
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
- `}table(e){let r="",o="";for(let i=0;i<e.header.length;i++)o+=this.tablecell(e.header[i]);r+=this.tablerow({text:o});let n="";for(let i=0;i<e.rows.length;i++){let a=e.rows[i];o="";for(let s=0;s<a.length;s++)o+=this.tablecell(a[s]);n+=this.tablerow({text:o})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
51
+ `}table(e){let r="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);r+=this.tablerow({text:n});let o="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];n="";for(let a=0;a<s.length;a++)n+=this.tablecell(s[a]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
52
52
  <thead>
53
53
  `+r+`</thead>
54
- `+n+`</table>
54
+ `+o+`</table>
55
55
  `}tablerow({text:e}){return`<tr>
56
56
  ${e}</tr>
57
- `}tablecell(e){let r=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+r+`</${o}>
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>${Y(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:o}){let n=this.parser.parseInline(o),i=st(e);if(i===null)return n;e=i;let a='<a href="'+e+'"';return r&&(a+=' title="'+Y(r)+'"'),a+=">"+n+"</a>",a}image({href:e,title:r,text:o,tokens:n}){n&&(o=this.parser.parseInline(n,this.parser.textRenderer));let i=st(e);if(i===null)return Y(o);e=i;let a=`<img src="${e}" alt="${o}"`;return r&&(a+=` title="${Y(r)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Y(e.text)}},St=class{static{x(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""}},de=class pt{static{x(this,"O")}static{z(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||ve,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new St}static parse(e,r){return new pt(r).parse(e)}static parseInline(e,r){return new pt(r).parseInline(e)}parse(e,r=!0){let o="";for(let n=0;n<e.length;n++){let i=e[n];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)){o+=l||"";continue}}let a=i;switch(a.type){case"space":{o+=this.renderer.space(a);continue}case"hr":{o+=this.renderer.hr(a);continue}case"heading":{o+=this.renderer.heading(a);continue}case"code":{o+=this.renderer.code(a);continue}case"table":{o+=this.renderer.table(a);continue}case"blockquote":{o+=this.renderer.blockquote(a);continue}case"list":{o+=this.renderer.list(a);continue}case"html":{o+=this.renderer.html(a);continue}case"def":{o+=this.renderer.def(a);continue}case"paragraph":{o+=this.renderer.paragraph(a);continue}case"text":{let s=a,l=this.renderer.text(s);for(;n+1<e.length&&e[n+1].type==="text";)s=e[++n],l+=`
59
- `+this.renderer.text(s);r?o+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):o+=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 o}parseInline(e,r=this.renderer){let o="";for(let n=0;n<e.length;n++){let i=e[n];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)){o+=s||"";continue}}let a=i;switch(a.type){case"escape":{o+=r.text(a);break}case"html":{o+=r.html(a);break}case"link":{o+=r.link(a);break}case"image":{o+=r.image(a);break}case"strong":{o+=r.strong(a);break}case"em":{o+=r.em(a);break}case"codespan":{o+=r.codespan(a);break}case"br":{o+=r.br(a);break}case"del":{o+=r.del(a);break}case"text":{o+=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 o}},Me=class{static{x(this,"T")}static{z(this,"S")}options;block;constructor(e){this.options=e||ve}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?ce.lex:ce.lexInline}provideParser(){return this.block?de.parse:de.parseInline}},Ln=class{static{x(this,"xe")}static{z(this,"B")}defaults=Qe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=de;Renderer=Ue;TextRenderer=St;Lexer=ce;Tokenizer=Ne;Hooks=Me;constructor(...e){this.use(...e)}walkTokens(e,r){let o=[];for(let n of e)switch(o=o.concat(r.call(this,n)),n.type){case"table":{let i=n;for(let a of i.header)o=o.concat(this.walkTokens(a.tokens,r));for(let a of i.rows)for(let s of a)o=o.concat(this.walkTokens(s.tokens,r));break}case"list":{let i=n;o=o.concat(this.walkTokens(i.items,r));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);o=o.concat(this.walkTokens(s,r))}):i.tokens&&(o=o.concat(this.walkTokens(i.tokens,r)))}}return o}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let n={...o};if(n.async=this.defaults.async||n.async||!1,o.extensions&&(o.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)}),n.extensions=r),o.renderer){let i=this.defaults.renderer||new Ue(this.defaults);for(let a in o.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=o.renderer[s],c=i[s];i[s]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g||""}}n.renderer=i}if(o.tokenizer){let i=this.defaults.tokenizer||new Ne(this.defaults);for(let a in o.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=o.tokenizer[s],c=i[s];i[s]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g}}n.tokenizer=i}if(o.hooks){let i=this.defaults.hooks||new Me;for(let a in o.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=o.hooks[s],c=i[s];Me.passThroughHooks.has(a)?i[s]=p=>{if(this.defaults.async&&Me.passThroughHooksRespectAsync.has(a))return Promise.resolve(l.call(i,p)).then(m=>c.call(i,m));let g=l.call(i,p);return c.call(i,g)}:i[s]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g}}n.hooks=i}if(o.walkTokens){let i=this.defaults.walkTokens,a=o.walkTokens;n.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,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ce.lex(e,r??this.defaults)}parser(e,r){return de.parse(e,r??this.defaults)}parseMarkdown(e){return(r,o)=>{let n={...o},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.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"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?ce.lex:ce.lexInline,l=i.hooks?i.hooks.provideParser():e?de.parse:de.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(c=>s(c,i)).then(c=>i.hooks?i.hooks.processAllTokens(c):c).then(c=>i.walkTokens?Promise.all(this.walkTokens(c,i.walkTokens)).then(()=>c):c).then(c=>l(c,i)).then(c=>i.hooks?i.hooks.postprocess(c):c).catch(a);try{i.hooks&&(r=i.hooks.preprocess(r));let c=s(r,i);i.hooks&&(c=i.hooks.processAllTokens(c)),i.walkTokens&&this.walkTokens(c,i.walkTokens);let p=l(c,i);return i.hooks&&(p=i.hooks.postprocess(p)),p}catch(c){return a(c)}}}onError(e,r){return o=>{if(o.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Y(o.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(o);throw o}}},fe=new Ln;function T(t,e){return fe.parse(t,e)}x(T,"p$6");z(T,"d");T.options=T.setOptions=function(t){return fe.setOptions(t),T.defaults=fe.defaults,vt(T.defaults),T};T.getDefaults=Qe;T.defaults=ve;T.use=function(...t){return fe.use(...t),T.defaults=fe.defaults,vt(T.defaults),T};T.walkTokens=function(t,e){return fe.walkTokens(t,e)};T.parseInline=fe.parseInline;T.Parser=de;T.parser=de.parse;T.Renderer=Ue;T.TextRenderer=St;T.Lexer=ce;T.lexer=ce.lex;T.Tokenizer=Ne;T.Hooks=Me;T.parse=T;var Zt=T,Mn=Object.defineProperty,Pn=x((t,e)=>Mn(t,"name",{value:e,configurable:!0}),"t$1");const zn=["cjs","mjs"],Fn=["mdoc"],_e=Pn(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||zn.includes(e))return"javascript";if(Fn.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");var Rn=Object.defineProperty,Tn=x((t,e)=>Rn(t,"name",{value:e,configurable:!0}),"s$5");const qe=new Map,An=Tn(async t=>{if(/^(?:http|https|file|data):/.test(t)){if(qe.has(t))return qe.get(t);if(t.startsWith("file:"))try{const e=qo(t),r=await ft(e,"utf8");return qe.set(t,r),r}catch{return}try{const e=await fetch(t);if(!e.ok)return;const r=await e.text();return qe.set(t,r),r}catch{return}}},"getFileSource");var Bn=Object.defineProperty,Ke=x((t,e)=>Bn(t,"name",{value:e,configurable:!0}),"d$8");const jn=Ke(t=>t.replace(/^\s*#+\s*/,"").trim(),"sanitizeTitle"),Dn=Ke(async(t,e,r=!1)=>{const o=[...e,pr,hr],n=Oo(t,{frameLimit:1})[0]??{};for await(const i of o.sort((a,s)=>a.priority-s.priority)){const{handle:a}=i;if(typeof a!="function")continue;const s=await a(t,{file:n.file??"",language:_e(n.file??""),line:n.line??0,snippet:n.file?await An(n.file):""});if(s)return s}},"runSolutionFinders"),In=Ke(async(t,e)=>{const{solutionFinders:r=[],solutionTitle:o,color:n,debug:i=!1,...a}=e,s=Do(t,{...a,...n?.codeFrame}),l=await Dn(t,r,i);if(!l)return{errorAnsi:s,solutionBox:void 0};const c=jn(l.header??o??"A possible solution to this error"),p=Ho(l.body,{borderStyle:"round",padding:{top:1,right:2,bottom:1,left:2},margin:{top:0,right:0,bottom:0,left:0},headerText:`💡 ${c}`,headerAlignment:"left",textAlignment:"left",...n?.boxen});return{errorAnsi:s,solutionBox:p}},"buildOutput"),Er=Ke(async(t,e={})=>{const{logger:r=console,...o}=e,{errorAnsi:n,solutionBox:i}=await In(t,o);r.error(n),i&&(r.log(""),r.log(i))},"terminalOutput"),On=500,Cr="visulima:vite-overlay:error",Hn="visulima-vite-overlay",Lr="Error",qn="Runtime error",Vt="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",Nt="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",Ut="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",Wt="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",Gt="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 ht=(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))(ht||{}),Zn=`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
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-blue-800:oklch(42.4% .199 265.638);--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-\\[1\\]{z-index:calc(1*-1)}.z-10{z-index:10}.z-\\[2\\]{z-index:2}.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:rgb(255,255,255/10%);--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-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-block{display:inline-block}.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-\\[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-44{width:calc(var(--spacing)*44)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.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}.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}.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)}.pl-4{padding-left:calc(var(--spacing)*4)}.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-\\[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-nowrap{white-space:nowrap}.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-black{color:var(--color-black)}.text-blue-800{color:var(--color-blue-800)}.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-100{opacity:1}.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)}.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))}.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\\:text-blue-600:hover{color:var(--color-blue-600)}.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}@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 Xt=`/* eslint-disable sonarjs/cognitive-complexity */
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
+ `}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>${Q(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=lt(e);if(i===null)return o;e=i;let s='<a href="'+e+'"';return r&&(s+=' title="'+Q(r)+'"'),s+=">"+o+"</a>",s}image({href:e,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let i=lt(e);if(i===null)return Q(n);e=i;let s=`<img src="${e}" alt="${n}"`;return r&&(s+=` title="${Q(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Q(e.text)}},St=class{static{x(this,"D")}static{M(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""}},de=class ht{static{x(this,"O")}static{M(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||ve,this.options.renderer=this.options.renderer||new Ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new St}static parse(e,r){return new ht(r).parse(e)}static parseInline(e,r){return new ht(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 a=i,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=l||"";continue}}let s=i;switch(s.type){case"space":{n+=this.renderer.space(s);continue}case"hr":{n+=this.renderer.hr(s);continue}case"heading":{n+=this.renderer.heading(s);continue}case"code":{n+=this.renderer.code(s);continue}case"table":{n+=this.renderer.table(s);continue}case"blockquote":{n+=this.renderer.blockquote(s);continue}case"list":{n+=this.renderer.list(s);continue}case"html":{n+=this.renderer.html(s);continue}case"def":{n+=this.renderer.def(s);continue}case"paragraph":{n+=this.renderer.paragraph(s);continue}case"text":{let a=s,l=this.renderer.text(a);for(;o+1<e.length&&e[o+1].type==="text";)a=e[++o],l+=`
59
+ `+this.renderer.text(a);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 a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}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 a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}let s=i;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},Te=class{static{x(this,"T")}static{M(this,"S")}options;block;constructor(e){this.options=e||ve}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?ce.lex:ce.lexInline}provideParser(){return this.block?de.parse:de.parseInline}},Po=class{static{x(this,"xe")}static{M(this,"B")}defaults=Xe();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=de;Renderer=Ne;TextRenderer=St;Lexer=ce;Tokenizer=Ue;Hooks=Te;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 s of i.header)n=n.concat(this.walkTokens(s.tokens,r));for(let s of i.rows)for(let a of s)n=n.concat(this.walkTokens(a.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(s=>{let a=i[s].flat(1/0);n=n.concat(this.walkTokens(a,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 s=r.renderers[i.name];s?r.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),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 s=r[i.level];s?s.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 Ne(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=n.renderer[a],c=i[a];i[a]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g||""}}o.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Ue(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=n.tokenizer[a],c=i[a];i[a]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g}}o.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Te;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=n.hooks[a],c=i[a];Te.passThroughHooks.has(s)?i[a]=p=>{if(this.defaults.async&&Te.passThroughHooksRespectAsync.has(s))return Promise.resolve(l.call(i,p)).then(m=>c.call(i,m));let g=l.call(i,p);return c.call(i,g)}:i[a]=(...p)=>{let g=l.apply(i,p);return g===!1&&(g=c.apply(i,p)),g}}o.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;o.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ce.lex(e,r??this.defaults)}parser(e,r){return de.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let o={...n},i={...this.defaults,...o},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let a=i.hooks?i.hooks.provideLexer():e?ce.lex:ce.lexInline,l=i.hooks?i.hooks.provideParser():e?de.parse:de.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(r):r).then(c=>a(c,i)).then(c=>i.hooks?i.hooks.processAllTokens(c):c).then(c=>i.walkTokens?Promise.all(this.walkTokens(c,i.walkTokens)).then(()=>c):c).then(c=>l(c,i)).then(c=>i.hooks?i.hooks.postprocess(c):c).catch(s);try{i.hooks&&(r=i.hooks.preprocess(r));let c=a(r,i);i.hooks&&(c=i.hooks.processAllTokens(c)),i.walkTokens&&this.walkTokens(c,i.walkTokens);let p=l(c,i);return i.hooks&&(p=i.hooks.postprocess(p)),p}catch(c){return s(c)}}}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>"+Q(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},fe=new Po;function R(t,e){return fe.parse(t,e)}x(R,"p$6");M(R,"d");R.options=R.setOptions=function(t){return fe.setOptions(t),R.defaults=fe.defaults,wt(R.defaults),R};R.getDefaults=Xe;R.defaults=ve;R.use=function(...t){return fe.use(...t),R.defaults=fe.defaults,wt(R.defaults),R};R.walkTokens=function(t,e){return fe.walkTokens(t,e)};R.parseInline=fe.parseInline;R.Parser=de;R.parser=de.parse;R.Renderer=Ne;R.TextRenderer=St;R.Lexer=ce;R.lexer=ce.lex;R.Tokenizer=Ue;R.Hooks=Te;R.parse=R;var Zt=R,Mo=Object.defineProperty,zo=x((t,e)=>Mo(t,"name",{value:e,configurable:!0}),"t$1");const Fo=["cjs","mjs"],Ro=["mdoc"],_e=zo(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Fo.includes(e))return"javascript";if(Ro.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");var Ao=Object.defineProperty,Ho=x((t,e)=>Ao(t,"name",{value:e,configurable:!0}),"s$5");const qe=new Map,Io=Ho(async t=>{if(/^(?:http|https|file|data):/.test(t)){if(qe.has(t))return qe.get(t);if(t.startsWith("file:"))try{const e=Vn(t),r=await vt(e,"utf8");return qe.set(t,r),r}catch{return}try{const e=await fetch(t);if(!e.ok)return;const r=await e.text();return qe.set(t,r),r}catch{return}}},"getFileSource");var Do=Object.defineProperty,Ke=x((t,e)=>Do(t,"name",{value:e,configurable:!0}),"d$8");const Bo=Ke(t=>t.replace(/^\s*#+\s*/,"").trim(),"sanitizeTitle"),jo=Ke(async(t,e,r=!1)=>{const n=[...e,ur,gr],o=qn(t,{frameLimit:1})[0]??{};for await(const i of n.sort((s,a)=>s.priority-a.priority)){const{handle:s}=i;if(typeof s!="function")continue;const a=await s(t,{file:o.file??"",language:_e(o.file??""),line:o.line??0,snippet:o.file?await Io(o.file):""});if(a)return a}},"runSolutionFinders"),Oo=Ke(async(t,e)=>{const{solutionFinders:r=[],solutionTitle:n,color:o,debug:i=!1,...s}=e,a=jn(t,{...s,...o?.codeFrame}),l=await jo(t,r,i);if(!l)return{errorAnsi:a,solutionBox:void 0};const c=Bo(l.header??n??"A possible solution to this error"),p=Zn(l.body,{borderStyle:"round",padding:{top:1,right:2,bottom:1,left:2},margin:{top:0,right:0,bottom:0,left:0},headerText:`💡 ${c}`,headerAlignment:"left",textAlignment:"left",...o?.boxen});return{errorAnsi:a,solutionBox:p}},"buildOutput"),Lr=Ke(async(t,e={})=>{const{logger:r=console,...n}=e,{errorAnsi:o,solutionBox:i}=await Oo(t,n);r.error(o),i&&(r.log(""),r.log(i))},"terminalOutput"),qo=500,Tr="visulima:vite-overlay:error",Zo="visulima-vite-overlay",Pr="Error",Vo="Runtime error",Vt="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",Ut="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",Nt="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",Wt="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",Gt="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 ut=(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))(ut||{}),Uo=`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
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-blue-800:oklch(42.4% .199 265.638);--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-block{display:inline-block}.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)}.pl-4{padding-left:calc(var(--spacing)*4)}.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-nowrap{white-space:nowrap}.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-black{color:var(--color-black)}.text-blue-800{color:var(--color-blue-800)}.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\\:text-blue-600:hover{color:var(--color-blue-600)}.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 Yt=`/* eslint-disable no-bitwise */
62
+ /* eslint-disable class-methods-use-this */
63
+ /* eslint-disable sonarjs/cognitive-complexity */
62
64
  /* eslint-disable no-param-reassign */
63
65
  /* eslint-disable n/no-unsupported-features/node-builtins */
64
66
  /* eslint-disable no-unsanitized/property */
@@ -80,10 +82,56 @@ class ErrorOverlay extends HTMLElement {
80
82
  * @typedef {import('../types').VisulimaViteOverlayErrorPayload} VisulimaViteOverlayErrorPayload
81
83
  */
82
84
 
85
+ static COPY_SUCCESS_DELAY = 2000;
86
+
87
+ static DRAG_THRESHOLD = 5;
88
+
89
+ // Constants
90
+ static HISTORY_LIMIT = 50;
91
+
92
+ static LOADING_DELAY = 100;
93
+
94
+ static SCROLL_PADDING = 8;
95
+
96
+ static WHEEL_TIMEOUT = 100;
97
+
98
+ // Cached DOM elements for performance
99
+ __elements = {};
100
+
101
+ // Event listeners for cleanup
102
+ __eventListeners = new Map();
103
+
104
+ // Core state
105
+ __v_oCurrentHistoryIndex = -1;
106
+
107
+ __v_oHistoryEnabled = false;
108
+
83
109
  __v_oMode;
84
110
 
85
111
  __v_oPayload;
86
112
 
113
+ __v_oScrollTimeout = undefined;
114
+
115
+ /**
116
+ * Gets the global error history, creating it if it doesn't exist.
117
+ * @returns {Array} The global error history array
118
+ */
119
+ get __v_oHistory() {
120
+ if (!globalThis.__v_o_error_history) {
121
+ globalThis.__v_o_error_history = [];
122
+ }
123
+
124
+ return globalThis.__v_o_error_history;
125
+ }
126
+
127
+ /**
128
+ * Sets the global error history.
129
+ * @param {Array} value - The history array to set
130
+ */
131
+ set __v_oHistory(value) {
132
+ globalThis.__v_o_error_history = value;
133
+ }
134
+
87
135
  /**
88
136
  * Creates a new ErrorOverlay instance.
89
137
  * @param {VisulimaViteOverlayErrorPayload} error - The error payload to display
@@ -91,9 +139,14 @@ class ErrorOverlay extends HTMLElement {
91
139
  constructor(error) {
92
140
  super();
93
141
 
142
+ // Remove previous instance
94
143
  const previous = globalThis.__v_o__current;
95
144
 
96
145
  if (previous && previous !== this) {
146
+ if (typeof previous._cleanupEventListeners === "function") {
147
+ previous._cleanupEventListeners();
148
+ }
149
+
97
150
  if (previous.parentNode) {
98
151
  previous.remove();
99
152
  } else if (typeof previous.close === "function") {
@@ -106,10 +159,7 @@ class ErrorOverlay extends HTMLElement {
106
159
  this.root.innerHTML = overlayTemplate;
107
160
  this.dir = "ltr";
108
161
 
109
- this.element = this;
110
-
111
162
  this.root.host._errorOverlay = this;
112
-
113
163
  globalThis.__v_o__current = this;
114
164
 
115
165
  if (error && (error.errors === undefined || !Array.isArray(error.errors))) {
@@ -123,17 +173,20 @@ class ErrorOverlay extends HTMLElement {
123
173
  };
124
174
 
125
175
  this.__v_oPayload = payload;
126
-
127
176
  this.__v_oMode = "original";
128
177
 
178
+ // Cache DOM elements for performance
179
+ this._cacheElements();
180
+
129
181
  this._initializeThemeToggle();
130
- this._initializeBalloon(payload.errors.length);
182
+ this._initializeBalloon(this.__v_oPayload.errors.length);
131
183
  this._restoreBalloonState();
132
184
  this._initializeCopyError();
133
185
  this._initializePagination();
186
+ this._initializeHistory();
134
187
 
135
- if (error.solution) {
136
- this._injectSolution(error.solution);
188
+ if (this.__v_oPayload.solution) {
189
+ this._injectSolution(this.__v_oPayload.solution);
137
190
  }
138
191
 
139
192
  this._hideLoadingStates();
@@ -141,9 +194,7 @@ class ErrorOverlay extends HTMLElement {
141
194
  const editorSelect = this.root.querySelector("#editor-selector");
142
195
 
143
196
  if (editorSelect) {
144
- let saved;
145
-
146
- saved = localStorage.getItem("vo:editor");
197
+ const saved = localStorage.getItem("vo:editor");
147
198
 
148
199
  if (saved && editorSelect.value !== saved) {
149
200
  editorSelect.value = saved;
@@ -167,98 +218,259 @@ class ErrorOverlay extends HTMLElement {
167
218
  }
168
219
 
169
220
  if (this.__v_oPayload.errorType === "client") {
170
- document.addEventListener("keydown", (event) => {
221
+ this._addEventListener(document, "keydown", (event) => {
171
222
  if (event.key === "Escape" && this.parentNode) {
172
223
  this.close();
173
224
  }
225
+
226
+ // History mode keyboard navigation
227
+ if (this.__v_oHistoryEnabled && this.__v_oHistory.length > 1) {
228
+ // eslint-disable-next-line default-case
229
+ switch (event.key) {
230
+ case "ArrowDown":
231
+ case "ArrowRight": {
232
+ event.preventDefault();
233
+ this._navigateHistoryByScroll(1);
234
+
235
+ break;
236
+ }
237
+ case "ArrowLeft":
238
+ case "ArrowUp": {
239
+ event.preventDefault();
240
+ this._navigateHistoryByScroll(-1);
241
+
242
+ break;
243
+ }
244
+ case "End": {
245
+ event.preventDefault();
246
+ this._navigateToHistoryItem(this.__v_oHistory.length - 1);
247
+
248
+ break;
249
+ }
250
+ case "h":
251
+ case "H": {
252
+ event.preventDefault();
253
+ this._toggleHistoryMode();
254
+
255
+ break;
256
+ }
257
+ case "Home": {
258
+ event.preventDefault();
259
+ this._navigateToHistoryItem(0);
260
+
261
+ break;
262
+ }
263
+ // No default
264
+ }
265
+ }
174
266
  });
175
267
  }
176
268
  }
177
269
 
178
270
  /**
179
- * Hides loading skeleton states and shows the actual content after a brief delay.
271
+ * Adds the current error to the history.
180
272
  * @private
181
273
  */
182
- _hideLoadingStates() {
183
- setTimeout(() => {
184
- const headerSkeleton = this.root.querySelector("#__v_o__header_loader");
185
- const headerContent = this.root.querySelector("#__v_o__title");
274
+ _addCurrentErrorToHistory() {
275
+ if (!this.__v_oPayload || !this.__v_oPayload.errors || this.__v_oPayload.errors.length === 0) {
276
+ return;
277
+ }
186
278
 
187
- if (headerSkeleton) {
188
- headerSkeleton.style.display = "none";
189
- }
279
+ const currentError = this.__v_oPayload.errors[0];
280
+ const historyEntry = {
281
+ column: currentError.originalFileColumn || 0,
282
+ errorType: this.__v_oPayload.errorType || "client",
283
+ file: currentError.originalFilePath || "",
284
+ id: this._generateErrorId(currentError),
285
+ line: currentError.originalFileLine || 0,
286
+ message: currentError.message || "",
287
+ name: currentError.name || "Error",
288
+ payload: this.__v_oPayload,
289
+ timestamp: Date.now(),
290
+ };
190
291
 
191
- if (headerContent) {
192
- headerContent.classList.remove("hidden");
193
- }
292
+ // Always add error to history (no deduplication to show frequency)
293
+ this.__v_oHistory.unshift(historyEntry);
294
+ this.__v_oCurrentHistoryIndex = 0;
194
295
 
195
- const messageSkeleton = this.root.querySelector("#__v_o__message_loader");
196
- const messageContent = this.root.querySelector("#__v_o__message");
296
+ // Limit history to prevent memory issues
297
+ if (this.__v_oHistory.length > ErrorOverlay.HISTORY_LIMIT) {
298
+ this.__v_oHistory = this.__v_oHistory.slice(0, ErrorOverlay.HISTORY_LIMIT);
299
+ }
300
+ }
197
301
 
198
- if (messageSkeleton) {
199
- messageSkeleton.style.display = "none";
200
- }
302
+ /**
303
+ * Adds an event listener with cleanup tracking.
304
+ * @private
305
+ * @param {Element} element - The element to add the listener to
306
+ * @param {string} event - The event type
307
+ * @param {Function} handler - The event handler
308
+ * @param {object} options - Event listener options
309
+ */
310
+ _addEventListener(element, event, handler, options = {}) {
311
+ if (!element)
312
+ return;
313
+
314
+ element.addEventListener(event, handler, options);
315
+ const key = \`\${element.id || element.className || "unknown"}_\${event}\`;
316
+
317
+ if (!this.__eventListeners.has(key)) {
318
+ this.__eventListeners.set(key, []);
319
+ }
320
+
321
+ this.__eventListeners.get(key).push({ element, event, handler, options });
322
+ }
201
323
 
202
- if (messageContent) {
203
- messageContent.classList.remove("hidden");
324
+ /**
325
+ * Initializes cached DOM element references for performance.
326
+ * @private
327
+ */
328
+ _cacheElements() {
329
+ const { root } = this;
330
+
331
+ if (!root) {
332
+ return;
333
+ }
334
+
335
+ this.__elements = {
336
+ balloon: root.querySelector("#__v_o__balloon"),
337
+ balloonCount: root.querySelector("#__v_o__balloon_count"),
338
+ balloonText: root.querySelector("#__v_o__balloon_text"),
339
+ fileButton: root.querySelector("button[class*=\\"underline\\"]"),
340
+ heading: root.querySelector("#__v_o__heading"),
341
+ historyIndicator: root.querySelector("#__v_o__history_indicator"),
342
+ historyLayerDepth: root.querySelector("#__v_o__history_layer_depth"),
343
+ historyTimestamp: root.querySelector("#__v_o__history_timestamp"),
344
+ historyToggle: root.querySelector("#__v_o__history_toggle"),
345
+ message: root.querySelector(String.raw\`.text-sm.text-\\[var\\(--ono-v-red-orange\\)\\].font-mono.bg-\\[var\\(--ono-v-surface-muted\\)\\]\`),
346
+ nextButton: root.querySelector("#__v_o__error-overlay-pagination-next"),
347
+ overlay: root.querySelector("#__v_o__overlay"),
348
+ paginationCurrent: root.querySelector("#__v_o__pagination_current"),
349
+ paginationTotal: root.querySelector("#__v_o__pagination_total"),
350
+ previousButton: root.querySelector("#__v_o__error-overlay-pagination-previous"),
351
+ root: root.querySelector("#__v_o__root"),
352
+ stackElement: root.querySelector(String.raw\`.text-xs.font-mono.text-\\[var\\(--ono-v-text-muted\\)\\].whitespace-pre-wrap\`),
353
+ };
354
+ }
355
+
356
+ /**
357
+ * Cleans up all event listeners.
358
+ * @private
359
+ */
360
+ _cleanupEventListeners() {
361
+ for (const listeners of this.__eventListeners.values()) {
362
+ for (const { element, event, handler, options } of listeners) {
363
+ element.removeEventListener(event, handler, options);
204
364
  }
365
+ }
366
+
367
+ this.__eventListeners.clear();
368
+ }
369
+
370
+ /**
371
+ * Generates a unique ID for an error based on its properties.
372
+ * @private
373
+ * @param {object} error - The error object
374
+ * @returns {string} A unique identifier for the error
375
+ */
376
+ _generateErrorId(error) {
377
+ const key = \`\${error.name || ""}|\${error.message || ""}|\${error.originalFilePath || ""}|\${error.originalFileLine || 0}|\${error.originalFileColumn || 0}\`;
378
+
379
+ // Simple hash function
380
+ let hash = 0;
381
+
382
+ for (let index = 0; index < key.length; index++) {
383
+ hash = ((hash << 5) - hash + key.codePointAt(index)) & 0xff_ff_ff_ff;
384
+ }
385
+
386
+ return Math.abs(hash).toString(36);
387
+ }
388
+
389
+ /**
390
+ * Gets a relative path from a full file path.
391
+ * @private
392
+ * @param {string} filePath - The full file path
393
+ * @returns {string} Relative path
394
+ */
395
+ _getRelativePath(filePath) {
396
+ if (!filePath)
397
+ return "";
398
+
399
+ const rootPath = this.__v_oPayload?.rootPath || "";
205
400
 
206
- const bodySkeleton = this.root.querySelector("#__v_o__body_loader");
207
- const bodyContent = this.root.querySelector("#__v_o__overlay");
401
+ if (rootPath && filePath.startsWith(rootPath)) {
402
+ return filePath.slice(rootPath.length).replace(/^\\//, "");
403
+ }
404
+
405
+ return filePath;
406
+ }
407
+
408
+ /**
409
+ * Hides loading skeleton states and shows the actual content after a brief delay.
410
+ * @private
411
+ */
412
+ _hideLoadingStates() {
413
+ const hideElement = (selector) => {
414
+ const element = this.root.querySelector(selector);
208
415
 
209
- if (bodySkeleton) {
210
- bodySkeleton.style.display = "none";
416
+ if (element) {
417
+ element.style.display = "none";
211
418
  }
419
+ };
212
420
 
213
- if (bodyContent) {
214
- bodyContent.classList.remove("hidden");
421
+ const showElement = (selector) => {
422
+ const element = this.root.querySelector(selector);
423
+
424
+ if (element) {
425
+ element.classList.remove("hidden");
215
426
  }
216
- }, 100);
427
+ };
428
+
429
+ setTimeout(() => {
430
+ hideElement("#__v_o__header_loader");
431
+ showElement("#__v_o__title");
432
+ hideElement("#__v_o__message_loader");
433
+ showElement("#__v_o__message");
434
+ hideElement("#__v_o__body_loader");
435
+ showElement("#__v_o__overlay");
436
+ }, ErrorOverlay.LOADING_DELAY);
217
437
  }
218
438
 
219
439
  /**
220
440
  * Initializes the floating balloon button that shows the error count
221
441
  * and toggles the overlay open/close when clicked.
222
- * The balloon is already present in the DOM template.
223
442
  * @private
224
443
  * @param {number} total - The total number of errors to display
225
444
  */
226
445
  _initializeBalloon(total) {
227
- try {
228
- const balloon = this.root.querySelector("#__v_o__balloon");
229
- const countElement = this.root.querySelector("#__v_o__balloon_count");
230
- const rootElement = this.root.querySelector("#__v_o__root");
231
- const textElement = this.root.querySelector("#__v_o__balloon_text");
446
+ const { balloon, balloonCount, balloonText, root } = this.__elements || {};
232
447
 
233
- if (balloon && countElement) {
234
- countElement.textContent = total.toString();
448
+ if (!balloon || !balloonCount || !root) {
449
+ return;
450
+ }
235
451
 
236
- if (textElement) {
237
- textElement.textContent = total === 1 ? "Error" : "Errors";
238
- }
452
+ try {
453
+ balloonCount.textContent = total.toString();
239
454
 
240
- this._restoreBalloonState();
455
+ if (balloonText) {
456
+ balloonText.textContent = total === 1 ? "Error" : "Errors";
457
+ }
241
458
 
242
- balloon.classList.toggle("hidden", total <= 0);
459
+ this._restoreBalloonState();
243
460
 
244
- const clickHandler = (event) => {
245
- event.preventDefault();
461
+ balloon.classList.toggle("hidden", total <= 0);
246
462
 
247
- const classes = rootElement.classList;
463
+ const clickHandler = (event) => {
464
+ event.preventDefault();
465
+ const isHidden = root.classList.contains("hidden");
248
466
 
249
- if (classes.contains("hidden")) {
250
- classes.remove("hidden");
251
- this._saveBalloonState("overlay", "open");
252
- } else {
253
- classes.add("hidden");
254
- this._saveBalloonState("overlay", "closed");
255
- }
256
- };
467
+ root.classList.toggle("hidden");
468
+ this._saveBalloonState("overlay", isHidden ? "open" : "closed");
469
+ };
257
470
 
258
- this._makeBalloonDraggable(balloon);
471
+ this._makeBalloonDraggable(balloon);
259
472
 
260
- balloon.addEventListener("click", clickHandler);
261
- }
473
+ balloon.addEventListener("click", clickHandler);
262
474
  } catch {
263
475
  // Fail silently if DOM is not available
264
476
  }
@@ -322,7 +534,7 @@ class ErrorOverlay extends HTMLElement {
322
534
 
323
535
  setTimeout(() => {
324
536
  copyButton.innerHTML = originalText;
325
- }, 2000);
537
+ }, ErrorOverlay.COPY_SUCCESS_DELAY);
326
538
  } catch (error) {
327
539
  console.error("[v-o] Failed to copy error info:", error);
328
540
 
@@ -339,25 +551,51 @@ class ErrorOverlay extends HTMLElement {
339
551
 
340
552
  setTimeout(() => {
341
553
  copyButton.innerHTML = originalText;
342
- }, 2000);
554
+ }, ErrorOverlay.COPY_SUCCESS_DELAY);
343
555
  }
344
556
  });
345
557
  }
346
558
 
559
+ /**
560
+ * Initializes the layered error history functionality with Mac Time Machine-like scrolling.
561
+ * @private
562
+ */
563
+ _initializeHistory() {
564
+ this._addCurrentErrorToHistory();
565
+ this._initializeHistoryToggle();
566
+ this._initializeScrollNavigation();
567
+ this._updateHistoryToggleVisibility();
568
+ }
569
+
570
+ /**
571
+ * Initializes the history toggle button.
572
+ * @private
573
+ */
574
+ _initializeHistoryToggle() {
575
+ const toggleButton = this.__elements.historyToggle;
576
+
577
+ if (!toggleButton) {
578
+ return;
579
+ }
580
+
581
+ toggleButton.addEventListener("click", (event) => {
582
+ event.preventDefault();
583
+ this._toggleHistoryMode();
584
+ });
585
+ }
586
+
347
587
  /**
348
588
  * Initializes pagination functionality for navigating between multiple errors.
349
589
  * @private
350
590
  */
351
591
  _initializePagination() {
352
- const payload = this.__v_oPayload;
353
- const errors = Array.isArray(payload.errors) && payload.errors.length > 0 ? payload.errors : [];
592
+ const errors = Array.isArray(this.__v_oPayload.errors) && this.__v_oPayload.errors.length > 0 ? this.__v_oPayload.errors : [];
354
593
  const errorIds = errors.map((error) =>
355
594
  String(error.__id || [error.originalFilePath || "", error.originalFileLine || 0, error.name || "", error.message || ""].join("|")),
356
595
  );
357
596
 
358
- const totalErrors = errors.length;
359
-
360
- let currentIndex = 0;
597
+ // Store current index on the instance so it can be reset when navigating history
598
+ this.__v_oCurrentErrorIndex = 0;
361
599
 
362
600
  const updateOverlayContent = () => {
363
601
  const mount = this.root.querySelector("#__v_o__overlay");
@@ -366,11 +604,11 @@ class ErrorOverlay extends HTMLElement {
366
604
  return;
367
605
  }
368
606
 
369
- const currentError = errors[currentIndex] || {
370
- compiledStack: payload.compiledStack,
371
- message: payload.message,
372
- name: payload.name,
373
- originalStack: payload.originalStack,
607
+ const currentError = this.__v_oPayload.errors[this.__v_oCurrentErrorIndex] || {
608
+ compiledStack: this.__v_oPayload.compiledStack,
609
+ message: this.__v_oPayload.message,
610
+ name: this.__v_oPayload.name,
611
+ originalStack: this.__v_oPayload.originalStack,
374
612
  };
375
613
 
376
614
  const updateFileLink = () => {
@@ -385,8 +623,8 @@ class ErrorOverlay extends HTMLElement {
385
623
  const isHttpLink = /^https?:\\/\\//i.test(fullPath);
386
624
  let displayPath = fullPath;
387
625
 
388
- if (!isHttpLink && payload.rootPath && fullPath.startsWith(payload.rootPath)) {
389
- displayPath = fullPath.slice(payload.rootPath.length);
626
+ if (!isHttpLink && this.__v_oPayload.rootPath && fullPath.startsWith(this.__v_oPayload.rootPath)) {
627
+ displayPath = fullPath.slice(this.__v_oPayload.rootPath.length);
390
628
 
391
629
  if (!displayPath.startsWith("/")) {
392
630
  displayPath = \`/\${displayPath}\`;
@@ -430,12 +668,10 @@ class ErrorOverlay extends HTMLElement {
430
668
  const stackElement = stackHost && stackHost.querySelector("div:last-child");
431
669
 
432
670
  if (stackHost && stackElement) {
433
- const rootPayload = this.__v_oPayload || {};
434
-
435
671
  const stackText
436
672
  = mode === "compiled"
437
- ? String(currentError.compiledStack || rootPayload.compiledStack || "")
438
- : String(currentError.originalStack || currentError.stack || rootPayload.originalStack || "");
673
+ ? String(currentError.compiledStack || this.__v_oPayload.compiledStack || currentError.stack || "")
674
+ : String(currentError.originalStack || currentError.stack || this.__v_oPayload.originalStack || this.__v_oPayload.stack || "");
439
675
 
440
676
  const escape = (s) =>
441
677
  String(s || "")
@@ -512,7 +748,7 @@ class ErrorOverlay extends HTMLElement {
512
748
 
513
749
  if (headingElement) {
514
750
  headingElement.textContent = currentError.name || "";
515
- headingElement.dataset.errorId = errorIds[currentIndex] || "";
751
+ headingElement.dataset.errorId = errorIds[this.__v_oCurrentErrorIndex] || "";
516
752
  }
517
753
 
518
754
  if (messageElement) {
@@ -546,10 +782,21 @@ class ErrorOverlay extends HTMLElement {
546
782
 
547
783
  let codeFrame = "<div class=\\"no-code-frame font-mono\\">No code frame could be generated.</div>";
548
784
 
785
+ // Try current error's code frame first
549
786
  if (mode === "compiled" && currentError.compiledCodeFrameContent) {
550
787
  codeFrame = currentError.compiledCodeFrameContent;
551
788
  } else if (currentError.originalCodeFrameContent) {
552
789
  codeFrame = currentError.originalCodeFrameContent;
790
+ } else {
791
+ // For cause errors that don't have their own code frames,
792
+ // fall back to the primary error's code frame
793
+ const primaryError = errors[0] || currentError;
794
+
795
+ if (mode === "compiled" && primaryError.compiledCodeFrameContent) {
796
+ codeFrame = primaryError.compiledCodeFrameContent;
797
+ } else if (primaryError.originalCodeFrameContent) {
798
+ codeFrame = primaryError.originalCodeFrameContent;
799
+ }
553
800
  }
554
801
 
555
802
  flameOverlay.innerHTML = codeFrame;
@@ -606,43 +853,50 @@ class ErrorOverlay extends HTMLElement {
606
853
  }
607
854
  };
608
855
 
609
- const updatePagination = () => {
610
- const indexElement = this.root.querySelector("[data-flame-dialog-error-index]");
611
- const totalElement = this.root.querySelector("[data-flame-dialog-header-total-count]");
612
- const previousButton = this.root.querySelector("[data-flame-dialog-error-previous]");
613
- const nextButton = this.root.querySelector("[data-flame-dialog-error-next]");
856
+ const updatePagination = (index) => {
857
+ // Update the current error index if provided
858
+ if (typeof index === "number") {
859
+ const maxIndex = (this.__v_oPayload?.errors?.length || 1) - 1;
614
860
 
615
- if (indexElement) {
616
- indexElement.textContent = (currentIndex + 1).toString();
861
+ this.__v_oCurrentErrorIndex = Math.max(0, Math.min(index, maxIndex));
617
862
  }
618
863
 
619
- if (totalElement) {
620
- totalElement.textContent = totalErrors.toString();
864
+ const currentTotalErrors = this.__v_oPayload?.errors?.length;
865
+ const { nextButton, paginationCurrent, paginationTotal, previousButton } = this.__elements;
866
+
867
+ if (paginationCurrent) {
868
+ paginationCurrent.textContent = (this.__v_oCurrentErrorIndex + 1).toString();
869
+ }
870
+
871
+ if (paginationTotal) {
872
+ paginationTotal.textContent = currentTotalErrors.toString();
621
873
  }
622
874
 
623
875
  if (previousButton) {
624
- previousButton.disabled = currentIndex === 0;
625
- previousButton.setAttribute("aria-disabled", currentIndex === 0);
876
+ previousButton.disabled = this.__v_oCurrentErrorIndex === 0;
877
+ previousButton.setAttribute("aria-disabled", this.__v_oCurrentErrorIndex === 0);
626
878
  }
627
879
 
628
880
  if (nextButton) {
629
- nextButton.disabled = currentIndex >= totalErrors - 1;
630
- nextButton.setAttribute("aria-disabled", currentIndex >= totalErrors - 1);
881
+ nextButton.disabled = this.__v_oCurrentErrorIndex >= (currentTotalErrors || 0) - 1;
882
+ nextButton.setAttribute("aria-disabled", this.__v_oCurrentErrorIndex >= (currentTotalErrors || 0) - 1);
631
883
  }
632
884
 
633
885
  updateOverlayContent();
634
886
  };
635
887
 
636
- const previousButton = this.root.querySelector("[data-flame-dialog-error-previous]");
637
- const nextButton = this.root.querySelector("[data-flame-dialog-error-next]");
888
+ // Store the updatePagination function for use by history navigation
889
+ this._updatePagination = updatePagination;
890
+
891
+ const { nextButton, previousButton } = this.__elements;
638
892
 
639
893
  if (previousButton) {
640
894
  previousButton.addEventListener("click", (event) => {
641
895
  event.preventDefault();
642
896
  event.stopPropagation();
643
897
 
644
- if (currentIndex > 0) {
645
- currentIndex--;
898
+ if (this.__v_oCurrentErrorIndex > 0) {
899
+ this.__v_oCurrentErrorIndex--;
646
900
  updatePagination();
647
901
  }
648
902
  });
@@ -653,8 +907,8 @@ class ErrorOverlay extends HTMLElement {
653
907
  event.preventDefault();
654
908
  event.stopPropagation();
655
909
 
656
- if (currentIndex < totalErrors - 1) {
657
- currentIndex++;
910
+ if (this.__v_oCurrentErrorIndex < (this.__v_oPayload?.errors?.length || 0) - 1) {
911
+ this.__v_oCurrentErrorIndex++;
658
912
  updatePagination();
659
913
  }
660
914
  });
@@ -664,8 +918,7 @@ class ErrorOverlay extends HTMLElement {
664
918
  const index = errorIds.indexOf(String(id || ""));
665
919
 
666
920
  if (index !== -1) {
667
- currentIndex = index;
668
-
921
+ this.__v_oCurrentErrorIndex = index;
669
922
  updatePagination();
670
923
  }
671
924
  };
@@ -679,6 +932,48 @@ class ErrorOverlay extends HTMLElement {
679
932
  updatePagination();
680
933
  }
681
934
 
935
+ /**
936
+ * Initializes scroll-based navigation for the layered history system.
937
+ * @private
938
+ */
939
+ _initializeScrollNavigation() {
940
+ const rootElement = this.__elements?.root;
941
+
942
+ if (!rootElement)
943
+ return;
944
+
945
+ const handleWheel = (event) => {
946
+ // Only handle scroll events when history is enabled and we have multiple errors
947
+ if (!this.__v_oHistoryEnabled || this.__v_oHistory.length <= 1)
948
+ return;
949
+
950
+ // Prevent default scrolling behavior
951
+ event.preventDefault();
952
+ event.stopPropagation();
953
+
954
+ // Ignore very small scroll movements
955
+ if (Math.abs(event.deltaY) < ErrorOverlay.DRAG_THRESHOLD)
956
+ return;
957
+
958
+ const scrollDirection = event.deltaY > 0 ? 1 : -1;
959
+
960
+ this._navigateHistoryByScroll(scrollDirection);
961
+ };
962
+
963
+ // Add wheel event listener - attach to the shadow root for better event capture
964
+ this._addEventListener(this.root, "wheel", handleWheel, { passive: false });
965
+
966
+ // Also add to the main overlay element
967
+ this._addEventListener(rootElement, "wheel", handleWheel, { passive: false });
968
+
969
+ // Also add to the backdrop for better coverage
970
+ const backdrop = this.root.querySelector("#__v_o__backdrop");
971
+
972
+ if (backdrop) {
973
+ this._addEventListener(backdrop, "wheel", handleWheel, { passive: false });
974
+ }
975
+ }
976
+
682
977
  /**
683
978
  * Initializes the theme toggle functionality for switching between light and dark modes.
684
979
  * @private
@@ -690,7 +985,7 @@ class ErrorOverlay extends HTMLElement {
690
985
 
691
986
  const isDark = currentTheme === "dark";
692
987
 
693
- const rootElement = this.root.querySelector("#__v_o__root");
988
+ const rootElement = this.__elements.root;
694
989
  const darkButton = this.root.querySelector("[data-v-o-theme-click-value=\\"dark\\"]");
695
990
  const lightButton = this.root.querySelector("[data-v-o-theme-click-value=\\"light\\"]");
696
991
 
@@ -804,24 +1099,43 @@ class ErrorOverlay extends HTMLElement {
804
1099
  let startY;
805
1100
  let balloonRect;
806
1101
 
1102
+ // Function to detect scrollbar visibility
1103
+ const hasScrollbar = () => {
1104
+ const hasVerticalScrollbar = document.body.scrollHeight > window.innerHeight;
1105
+ const hasHorizontalScrollbar = document.body.scrollWidth > window.innerWidth;
1106
+
1107
+ return { horizontal: hasHorizontalScrollbar, vertical: hasVerticalScrollbar };
1108
+ };
1109
+
1110
+ // Function to get viewport dimensions accounting for scrollbars
1111
+ const getViewportDimensions = () => {
1112
+ const scrollbarInfo = hasScrollbar();
1113
+ const scrollbarWidth = scrollbarInfo.vertical ? window.innerWidth - document.documentElement.clientWidth : 0;
1114
+ const scrollbarHeight = scrollbarInfo.horizontal ? window.innerHeight - document.documentElement.clientHeight : 0;
1115
+
1116
+ return {
1117
+ height: window.innerHeight - scrollbarHeight,
1118
+ width: window.innerWidth - scrollbarWidth,
1119
+ };
1120
+ };
1121
+
807
1122
  const handleMouseMove = (event) => {
808
1123
  if (!isDragging)
809
1124
  return;
810
1125
 
811
- const windowWidth = window.innerWidth;
812
- const windowHeight = window.innerHeight;
1126
+ const viewport = getViewportDimensions();
813
1127
  const balloonWidth = balloonRect.width;
814
1128
  const balloonHeight = balloonRect.height;
815
1129
 
816
1130
  let newX = event.clientX - startX;
817
1131
  let newY = event.clientY - startY;
818
1132
 
819
- const padding = 8;
1133
+ const padding = ErrorOverlay.SCROLL_PADDING;
820
1134
  const corners = [
821
1135
  { name: "top-left", x: padding, y: padding },
822
- { name: "top-right", x: windowWidth - balloonWidth - padding, y: padding },
823
- { name: "bottom-left", x: padding, y: windowHeight - balloonHeight - padding },
824
- { name: "bottom-right", x: windowWidth - balloonWidth - padding, y: windowHeight - balloonHeight - padding },
1136
+ { name: "top-right", x: viewport.width - balloonWidth - padding, y: padding },
1137
+ { name: "bottom-left", x: padding, y: viewport.height - balloonHeight - padding },
1138
+ { name: "bottom-right", x: viewport.width - balloonWidth - padding, y: viewport.height - balloonHeight - padding },
825
1139
  ];
826
1140
 
827
1141
  let closestCorner = corners[0];
@@ -836,10 +1150,8 @@ class ErrorOverlay extends HTMLElement {
836
1150
  }
837
1151
  });
838
1152
 
839
- balloon.style.left = \`\${closestCorner.x}px\`;
840
- balloon.style.top = \`\${closestCorner.y}px\`;
841
- balloon.style.right = "auto";
842
- balloon.style.bottom = "auto";
1153
+ // Use inset for smooth dragging during movement
1154
+ balloon.style.inset = \`\${closestCorner.y}px auto auto \${closestCorner.x}px\`;
843
1155
  balloon.style.transform = "none";
844
1156
 
845
1157
  this._saveBalloonState("position", closestCorner.name);
@@ -856,22 +1168,79 @@ class ErrorOverlay extends HTMLElement {
856
1168
  };
857
1169
 
858
1170
  const handleMouseDown = (event) => {
859
- if (event.target.closest("#__v_o__balloon_count"))
1171
+ if (event.target.closest("#__v_o__balloon_count")) {
860
1172
  return; // Don't drag when clicking count
1173
+ }
861
1174
 
862
1175
  isDragging = true;
863
1176
  balloonRect = balloon.getBoundingClientRect();
864
1177
  startX = event.clientX - balloonRect.left;
865
1178
  startY = event.clientY - balloonRect.top;
866
1179
 
867
- document.addEventListener("mousemove", handleMouseMove);
868
- document.addEventListener("mouseup", handleMouseUp);
1180
+ this._addEventListener(document, "mousemove", handleMouseMove);
1181
+ this._addEventListener(document, "mouseup", handleMouseUp);
1182
+
869
1183
  balloon.style.cursor = "grabbing";
870
1184
  };
871
1185
 
872
1186
  balloon.addEventListener("mousedown", handleMouseDown);
873
1187
  }
874
1188
 
1189
+ /**
1190
+ * Navigates through history using scroll direction.
1191
+ * @private
1192
+ * @param {number} direction - 1 for forward, -1 for backward
1193
+ */
1194
+ _navigateHistoryByScroll(direction) {
1195
+ if (this.__v_oHistory.length <= 1) {
1196
+ return;
1197
+ }
1198
+
1199
+ let newIndex = this.__v_oCurrentHistoryIndex + direction;
1200
+
1201
+ // Loop around
1202
+ if (newIndex < 0) {
1203
+ newIndex = this.__v_oHistory.length - 1;
1204
+ } else if (newIndex >= this.__v_oHistory.length) {
1205
+ newIndex = 0;
1206
+ }
1207
+
1208
+ this._navigateToHistoryItem(newIndex);
1209
+ }
1210
+
1211
+ /**
1212
+ * Navigates to a specific history item.
1213
+ * @private
1214
+ * @param {number} index - The index of the history item
1215
+ */
1216
+ _navigateToHistoryItem(index) {
1217
+ if (index < 0 || index >= this.__v_oHistory.length) {
1218
+ return;
1219
+ }
1220
+
1221
+ // Update the current history index
1222
+ this.__v_oCurrentHistoryIndex = index;
1223
+
1224
+ // Update payload to the history entry's data
1225
+ const historyEntry = this.__v_oHistory[index];
1226
+
1227
+ this.__v_oPayload = historyEntry.payload;
1228
+
1229
+ // Re-render the main overlay with the current error
1230
+ this._updateOverlayWithHistoryError();
1231
+
1232
+ // Update the history indicator
1233
+ this._updateHistoryIndicator();
1234
+
1235
+ // Update history toggle visibility
1236
+ this._updateHistoryToggleVisibility();
1237
+
1238
+ // Update main overlay timestamp when in history mode
1239
+ if (this.__v_oHistoryEnabled) {
1240
+ this._updateMainOverlayTimestamp();
1241
+ }
1242
+ }
1243
+
875
1244
  /**
876
1245
  * Restores balloon state and position from localStorage
877
1246
  * @private
@@ -880,7 +1249,7 @@ class ErrorOverlay extends HTMLElement {
880
1249
  try {
881
1250
  const balloonStates = JSON.parse(localStorage.getItem("v-o-balloon") || "{}");
882
1251
  const balloon = this.root.querySelector("#__v_o__balloon");
883
- const rootElement = this.root.querySelector("#__v_o__root");
1252
+ const rootElement = this.__elements.root;
884
1253
 
885
1254
  if (balloon && rootElement) {
886
1255
  if (balloonStates.overlay === "open") {
@@ -899,30 +1268,17 @@ class ErrorOverlay extends HTMLElement {
899
1268
  balloon.style.right = "";
900
1269
  balloon.style.transform = "";
901
1270
 
902
- switch (balloonStates.position) {
903
- case "bottom-left": {
904
- balloon.style.bottom = "8px";
905
- balloon.style.left = "8px";
906
- break;
907
- }
908
- case "bottom-right": {
909
- balloon.style.bottom = "8px";
910
- balloon.style.right = "8px";
911
- break;
912
- }
913
- case "top-left": {
914
- balloon.style.top = "8px";
915
- balloon.style.left = "8px";
916
- break;
917
- }
918
- case "top-right": {
919
- balloon.style.top = "8px";
920
- balloon.style.right = "8px";
921
- break;
922
- }
923
- default: {
924
- break;
925
- }
1271
+ const positionStyles = {
1272
+ "bottom-left": { bottom: "8px", left: "8px" },
1273
+ "bottom-right": { bottom: "8px", right: "8px" },
1274
+ "top-left": { left: "8px", top: "8px" },
1275
+ "top-right": { right: "8px", top: "8px" },
1276
+ };
1277
+
1278
+ const styles = positionStyles[balloonStates.position];
1279
+
1280
+ if (styles) {
1281
+ Object.assign(balloon.style, styles);
926
1282
  }
927
1283
  }
928
1284
  }
@@ -938,7 +1294,7 @@ class ErrorOverlay extends HTMLElement {
938
1294
  * @param {string} key - The state key ('overlay' or 'position')
939
1295
  * @param {string} value - The state value
940
1296
  */
941
- // eslint-disable-next-line class-methods-use-this
1297
+
942
1298
  _saveBalloonState(key, value) {
943
1299
  try {
944
1300
  const item = localStorage.getItem("v-o-balloon");
@@ -953,21 +1309,171 @@ class ErrorOverlay extends HTMLElement {
953
1309
  }
954
1310
 
955
1311
  /**
956
- * Removes the error overlay from the DOM.
1312
+ * Toggles the history mode on/off.
1313
+ * @private
1314
+ */
1315
+ _toggleHistoryMode() {
1316
+ this.__v_oHistoryEnabled = !this.__v_oHistoryEnabled;
1317
+
1318
+ const { historyIndicator, historyLayerDepth, historyToggle, root } = this.__elements || {};
1319
+
1320
+ if (this.__v_oHistoryEnabled) {
1321
+ if (root && typeof root.classList?.add === "function")
1322
+ root.classList.add("scrolling-history");
1323
+
1324
+ if (historyIndicator && typeof historyIndicator.classList?.add === "function") {
1325
+ historyIndicator.classList.remove("hidden");
1326
+ }
1327
+
1328
+ if (historyToggle) {
1329
+ historyToggle.style.background = "var(--ono-v-red-orange)";
1330
+ historyToggle.style.color = "white";
1331
+ }
1332
+
1333
+ if (historyLayerDepth && typeof historyLayerDepth.classList?.add === "function") {
1334
+ historyLayerDepth.classList.remove("opacity-0");
1335
+ historyLayerDepth.classList.add("opacity-100");
1336
+ }
1337
+
1338
+ this._updateHistoryIndicator();
1339
+ this._updateMainOverlayTimestamp();
1340
+ } else {
1341
+ // Reset to newest error when disabling history mode
1342
+ this.__v_oCurrentHistoryIndex = 0;
1343
+ const newestError = this.__v_oHistory[0];
1344
+
1345
+ if (newestError) {
1346
+ this.__v_oPayload = newestError.payload;
1347
+ }
1348
+
1349
+ // Re-render the main overlay with the newest error
1350
+ this._updateOverlayWithHistoryError();
1351
+
1352
+ if (root && typeof root.classList?.remove === "function")
1353
+ root.classList.remove("scrolling-history");
1354
+
1355
+ if (historyIndicator && typeof historyIndicator.classList?.add === "function")
1356
+ historyIndicator.classList.add("hidden");
1357
+
1358
+ if (historyToggle) {
1359
+ historyToggle.style.background = "";
1360
+ historyToggle.style.color = "";
1361
+ }
1362
+
1363
+ if (historyLayerDepth && typeof historyLayerDepth.classList?.add === "function") {
1364
+ historyLayerDepth.classList.remove("opacity-100");
1365
+ historyLayerDepth.classList.add("opacity-0");
1366
+ }
1367
+
1368
+ const timeElement = this.__elements.historyTimestamp;
1369
+
1370
+ if (timeElement) {
1371
+ timeElement.classList.add("hidden");
1372
+ }
1373
+ }
1374
+ }
1375
+
1376
+ /**
1377
+ * Updates the history indicator in the navigation.
1378
+ * @private
1379
+ */
1380
+ _updateHistoryIndicator() {
1381
+ const indicator = this.__elements?.historyIndicator;
1382
+
1383
+ if (!indicator) {
1384
+ return;
1385
+ }
1386
+
1387
+ const countElement = indicator.querySelector("#__v_o__history_count");
1388
+ const totalElement = indicator.querySelector("#__v_o__history_total");
1389
+
1390
+ if (!countElement || !totalElement)
1391
+ return;
1392
+
1393
+ if (this.__v_oHistory.length <= 1) {
1394
+ indicator.classList.add("hidden");
1395
+
1396
+ return;
1397
+ }
1398
+
1399
+ countElement.textContent = (this.__v_oCurrentHistoryIndex + 1).toString();
1400
+ totalElement.textContent = this.__v_oHistory.length.toString();
1401
+
1402
+ indicator.classList.remove("hidden");
1403
+ }
1404
+
1405
+ /**
1406
+ * Updates the visibility of the history toggle button based on history length.
1407
+ * @private
1408
+ */
1409
+ _updateHistoryToggleVisibility() {
1410
+ const toggleButton = this.__elements?.historyToggle;
1411
+
1412
+ if (!toggleButton) {
1413
+ return;
1414
+ }
1415
+
1416
+ toggleButton.style.display = this.__v_oHistory.length <= 1 ? "none" : "";
1417
+ }
1418
+
1419
+ /**
1420
+ * Updates the main overlay's timestamp on the right notch when in history mode.
1421
+ * @private
1422
+ */
1423
+ _updateMainOverlayTimestamp() {
1424
+ const historyEntry = this.__v_oHistory[this.__v_oCurrentHistoryIndex];
1425
+
1426
+ // Update timestamp on right notch
1427
+ const timeElement = this.__elements.historyTimestamp;
1428
+
1429
+ if (timeElement && historyEntry) {
1430
+ timeElement.classList.remove("hidden");
1431
+ // the span inside the time element
1432
+ const span = timeElement.querySelector("span");
1433
+
1434
+ if (span) {
1435
+ span.textContent = new Date(historyEntry.timestamp).toLocaleString("en-US", {
1436
+ day: "2-digit",
1437
+ hour: "2-digit",
1438
+ minute: "2-digit",
1439
+ month: "2-digit",
1440
+ second: "2-digit",
1441
+ timeZone: "UTC",
1442
+ year: "numeric",
1443
+ });
1444
+ }
1445
+ }
1446
+ }
1447
+
1448
+ /**
1449
+ * Updates the overlay content with a historical error.
1450
+ * @private
1451
+ */
1452
+ _updateOverlayWithHistoryError() {
1453
+ // Reset current error index to first error when switching to historical error
1454
+ this.__v_oCurrentErrorIndex = 0;
1455
+
1456
+ // Trigger pagination update to refresh the overlay (reset to first cause error)
1457
+ // This will call updateOverlayContent() which updates all the UI elements
1458
+ if (typeof this._updatePagination === "function") {
1459
+ this._updatePagination(0);
1460
+ }
1461
+ }
1462
+
1463
+ /**
1464
+ * Closes the error overlay dialog (hides it).
957
1465
  */
958
1466
  close() {
959
1467
  if (this.parentNode) {
960
- const balloon = this.root.querySelector("#__v_o__balloon");
961
-
962
- if (balloon) {
963
- const rootElement = this.root.querySelector("#__v_o__root");
1468
+ const root = this.__elements?.root;
964
1469
 
965
- rootElement.classList.add("hidden");
1470
+ if (root && typeof root.classList?.add === "function") {
1471
+ root.classList.add("hidden");
966
1472
 
967
1473
  this._saveBalloonState("overlay", "closed");
968
- } else {
969
- this.remove();
970
1474
  }
1475
+
1476
+ // Don't remove the overlay - just hide it so it can be reopened
971
1477
  }
972
1478
  }
973
1479
 
@@ -975,64 +1481,134 @@ class ErrorOverlay extends HTMLElement {
975
1481
  * Updates the overlay content with the current error's code frame.
976
1482
  */
977
1483
  updateOverlay() {
978
- const currentIndex = 0;
1484
+ const currentError = this.__v_oPayload?.errors?.[0];
979
1485
 
980
- const currentError = this.__v_oPayload && this.__v_oPayload.errors && this.__v_oPayload.errors[currentIndex];
1486
+ if (!currentError)
1487
+ return;
981
1488
 
982
- if (currentError) {
983
- const flameOverlay = this.root.querySelector("#__v_o__overlay");
1489
+ // Reopen overlay if it's hidden when new errors occur
1490
+ if (this.root && this.root.classList.contains("hidden")) {
1491
+ this.root.classList.remove("hidden");
984
1492
 
985
- if (flameOverlay) {
986
- const html = currentError.originalCodeFrameContent || currentError.compiledCodeFrameContent || "";
1493
+ this._saveBalloonState("overlay", "open");
1494
+ }
987
1495
 
988
- flameOverlay.innerHTML = html;
989
- }
1496
+ // Update code frame
1497
+ const overlay = this.__elements?.overlay;
1498
+
1499
+ if (overlay) {
1500
+ overlay.innerHTML = currentError.originalCodeFrameContent || currentError.compiledCodeFrameContent || "";
1501
+ }
1502
+
1503
+ // Always add errors to history (no deduplication) to show error frequency
1504
+ const currentErrorId = this._generateErrorId(currentError);
1505
+ const historyEntry = {
1506
+ column: currentError.originalFileColumn || 0,
1507
+ errorType: this.__v_oPayload.errorType || "client",
1508
+ file: currentError.originalFilePath || "",
1509
+ id: currentErrorId,
1510
+ line: currentError.originalFileLine || 0,
1511
+ message: currentError.message || "",
1512
+ name: currentError.name || "Error",
1513
+ payload: { ...this.__v_oPayload }, // Preserve full payload including all cause errors
1514
+ stack: currentError.stack || currentError.originalStack || "",
1515
+ timestamp: Date.now(),
1516
+ };
1517
+
1518
+ // Always add new error to history (no deduplication to show frequency)
1519
+ this.__v_oHistory.unshift(historyEntry);
1520
+ this.__v_oCurrentHistoryIndex = 0;
1521
+
1522
+ // Update current payload to the newest error
1523
+ this.__v_oPayload = historyEntry.payload;
1524
+
1525
+ // Limit history to prevent memory issues
1526
+ if (this.__v_oHistory.length > ErrorOverlay.HISTORY_LIMIT) {
1527
+ this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
990
1528
  }
1529
+
1530
+ this._updateHistoryToggleVisibility();
991
1531
  }
992
1532
  }
993
- `;var Vn=Object.defineProperty,Et=x((t,e)=>Vn(t,"name",{value:e,configurable:!0}),"a$7");const Qt='<option value="">Auto-detected Editor</option>',Nn="class ErrorOverlay",Un="var ErrorOverlay = ",Wn="window.ErrorOverlay = ErrorOverlay;",Gn=Et(()=>{try{const t=Object.keys(ht);return[Qt,...t.map(e=>`<option value="${String(e)}">${String(ht[e])}</option>`)].join("")}catch{return Qt}},"generateEditorOptions"),Xn=Et(t=>{const e=Gn();return`<style>${Zn}</style>
994
- <div id="__v_o__root" class="fixed inset-0 z-[2147483647] flex flex-col items-center pt-[10vh] px-[15px] hidden">
1533
+ `;var No=Object.defineProperty,et=x((t,e)=>No(t,"name",{value:e,configurable:!0}),"a$7");const Xt='<option value="">Auto-detected Editor</option>',Wo="class ErrorOverlay",Go="var ErrorOverlay = ",Yo="window.ErrorOverlay = ErrorOverlay;",Xo=et(()=>{try{const t=Object.keys(ut);return[Xt,...t.map(e=>`<option value="${String(e)}">${String(ut[e])}</option>`)].join("")}catch{return Xt}},"generateEditorOptions"),Qt=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] right-[-54px] pointer-events-none" preserveAspectRatio="none">
1534
+ <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1535
+ <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1536
+ <rect fill="white" y="-1" width="60" height="43"></rect>
1537
+ <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1538
+ </mask>
1539
+ <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1540
+ <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1541
+ </mask>
1542
+ <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1543
+ <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1544
+ <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1545
+ <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1546
+ </mask>
1547
+ <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1548
+ <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1549
+ </g>
1550
+ </svg>`,Jt=`<svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-1 h-[calc(100%+var(--ono-v-dialog-border-width))] left-[-54px] pointer-events-none [transform:rotateY(180deg)]" preserveAspectRatio="none">
1551
+ <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1552
+ <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1553
+ <rect fill="white" y="-1" width="60" height="43"></rect>
1554
+ <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1555
+ </mask>
1556
+ <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1557
+ <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1558
+ </mask>
1559
+ <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1560
+ <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1561
+ <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1562
+ <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1563
+ </mask>
1564
+ <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1565
+ <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1566
+ </g>
1567
+ </svg>`,Qo=et((t,e,r=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483647] flex flex-col items-center pt-[10vh] px-[15px] shadow-[var(--ono-v-elevation-2)] hidden">
995
1568
  <div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/60 backdrop-blur-sm md:backdrop-blur pointer-events-auto"></div>
996
- <div id="__v_o__notch" class="relative z-[2] flex w-full max-w-[var(--ono-v-dialog-max-width)] items-center justify-between outline-none translate-x-[var(--ono-v-dialog-border-width)] translate-y-[var(--ono-v-dialog-border-width)]" style="--stroke-color: var(--ono-v-border); --background-color: var(--ono-v-surface);">
1569
+ <div id="__v_o__notch" class="relative z-2 flex w-full max-w-[var(--ono-v-dialog-max-width)] items-end justify-between outline-none translate-x-[var(--ono-v-dialog-border-width)] translate-y-[var(--ono-v-dialog-border-width)]" style="--stroke-color: var(--ono-v-border); --background-color: var(--ono-v-surface);">
997
1570
  <div class="error-overlay-notch relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-[var(--ono-v-dialog-notch-height)] p-3 pr-0 bg-[var(--background-color)] border border-[var(--stroke-color)] border-b-0 rounded-tl-[var(--ono-v-dialog-radius)]" data-side="left">
998
1571
  <nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex justify-center items-center gap-2 w-fit">
999
- <button type="button" aria-disabled="true" data-flame-dialog-error-previous="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1572
+ <button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1000
1573
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="previous" class="error-overlay-pagination-button-icon">
1001
1574
  <path fill-rule="evenodd" clip-rule="evenodd" d="M9.24996 12.0608L8.71963 11.5304L5.89641 8.70722C5.50588 8.3167 5.50588 7.68353 5.89641 7.29301L8.71963 4.46978L9.24996 3.93945L10.3106 5.00011L9.78029 5.53044L7.31062 8.00011L9.78029 10.4698L10.3106 11.0001L9.24996 12.0608Z" fill="currentColor"></path>
1002
1575
  </svg>
1003
1576
  </button>
1004
- <div class="error-overlay-pagination-count inline-flex justify-center items-center min-w-8 h-5 gap-1 text-[var(--ono-v-text)] text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
1005
- <span data-flame-dialog-error-index="0">1</span>
1577
+ <div id="__v_o__error-overlay_pagination_count" class="inline-flex justify-center items-center min-w-8 h-5 gap-1 text-[var(--ono-v-text)] text-center text-[11px] font-medium leading-4 rounded-full px-1.5">
1578
+ <span id="__v_o__pagination_current">1</span>
1006
1579
  <span class="text-[var(--ono-v-text-muted)]">/</span>
1007
- <span data-flame-dialog-header-total-count="true">1</span>
1580
+ <span id="__v_o__pagination_total">1</span>
1008
1581
  </div>
1009
- <button type="button" aria-disabled="true" data-flame-dialog-error-next="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1582
+ <button type="button" id="__v_o__error-overlay-pagination-next" aria-disabled="true" class="error-overlay-pagination-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] hover:bg-[var(--ono-v-hover-overlay)] transition-colors" disabled>
1010
1583
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-pagination-button-icon" aria-label="next">
1011
1584
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6.75011 3.93945L7.28044 4.46978L10.1037 7.29301C10.4942 7.68353 10.4942 8.3167 10.1037 8.70722L7.28044 11.5304L6.75011 12.0608L5.68945 11.0001L6.21978 10.4698L8.68945 8.00011L6.21978 5.53044L5.68945 5.00011L6.75011 3.93945Z" fill="currentColor"></path>
1012
1585
  </svg>
1013
1586
  </button>
1587
+ <div class="flex items-center gap-1">
1588
+ <button type="button" id="__v_o__history_toggle" title="Toggle Error History" aria-label="Toggle Error History" class="error-overlay-history-button flex justify-center items-center w-6 h-6 bg-[var(--ono-v-chip-bg)] rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus-visible:outline focus-visible:outline-[var(--ono-v-red-orange)] transition-colors">
1589
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="history">
1590
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM2.5 8a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0ZM8 4a.5.5 0 0 1 .5.5v3.5a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4Z" fill="currentColor"></path>
1591
+ </svg>
1592
+ </button>
1593
+ <div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-[var(--ono-v-text-muted)] hidden">
1594
+ <span id="__v_o__history_count">0</span>
1595
+ <span>/</span>
1596
+ <span id="__v_o__history_total">0</span>
1597
+ <span class="text-[10px]">scroll to navigate</span>
1598
+ </div>
1599
+ </div>
1014
1600
  </nav>
1015
- <svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-[1] h-[calc(100%+var(--ono-v-dialog-border-width))] right-[-54px] pointer-events-none" preserveAspectRatio="none">
1016
- <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1017
- <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1018
- <rect fill="white" y="-1" width="60" height="43"></rect>
1019
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1020
- </mask>
1021
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1022
- <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1023
- </mask>
1024
- <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1025
- <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1026
- <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1027
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1028
- </mask>
1029
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1030
- <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1031
- </g>
1032
- </svg>
1601
+ ${Qt}
1602
+ </div>
1603
+ <div class="grow flex justify-center items-end">
1604
+ <div id="__v_o__history_timestamp" class="bg-[var(--ono-v-surface)] text-sm text-[var(--ono-v-text-muted)] flex items-end justify-center relative w-42 border-t border-[var(--stroke-color)] hidden">
1605
+ ${Jt}
1606
+ <span></span>
1607
+ ${Qt}
1608
+ </div>
1033
1609
  </div>
1034
1610
  <div class="error-overlay-notch flex gap-1 relative translate-x-[calc(var(--ono-v-dialog-border-width)*-1)] h-[var(--ono-v-dialog-notch-height)] p-3 pl-0 bg-[var(--background-color)] border border-[var(--stroke-color)] border-b-0 rounded-tr-[var(--ono-v-dialog-radius)]" data-side="right">
1035
- <div id="__v_o__editor" class="hidden sm:flex items-center gap-1">
1611
+ ${r?"":`<div id="__v_o__editor" class="hidden sm:flex items-center gap-1">
1036
1612
  <label for="editor-selector" class="sr-only">Editor</label>
1037
1613
  <select id="editor-selector" class="py-1 cursor-pointer px-2 pe-6 block w-44 bg-[var(--ono-v-surface)] border border-[var(--ono-v-border)] rounded-[var(--ono-v-radius-md)] text-xs text-[var(--ono-v-text)] shadow-[var(--ono-v-elevation-1)] hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:ring-1 focus:ring-[var(--ono-v-red-orange)]">${e}</select>
1038
1614
  </div>
@@ -1040,7 +1616,7 @@ class ErrorOverlay extends HTMLElement {
1040
1616
  <div id="v-o-theme-switch" class="flex items-center gap-1">
1041
1617
  <button type="button" title="Switch to dark mode" aria-label="Switch to dark mode" class="font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]" data-v-o-theme-click-value="dark">
1042
1618
  <span class="inline-flex shrink-0 justify-center items-center size-8">
1043
- <span class="dui size-5" style="-webkit-mask-image: url('${Ut}'); mask-image: url('${Ut}')"></span>
1619
+ <span class="dui size-5" style="-webkit-mask-image: url('${Nt}'); mask-image: url('${Nt}')"></span>
1044
1620
  </span>
1045
1621
  </button>
1046
1622
  <button type="button" title="Switch to light mode" aria-label="Switch to light mode" class="hidden font-medium rounded-full hover:bg-[var(--ono-v-hover-overlay)] focus:outline-hidden focus:bg-[var(--ono-v-hover-overlay)] text-[var(--ono-v-text)]" data-v-o-theme-click-value="light">
@@ -1056,26 +1632,8 @@ class ErrorOverlay extends HTMLElement {
1056
1632
  <span class="dui size-5" style="-webkit-mask-image: url('${Gt}'); mask-image: url('${Gt}')"></span>
1057
1633
  </span>
1058
1634
  </button>
1059
- </div>
1060
-
1061
- <svg width="60" height="42" viewBox="0 0 60 42" fill="none" xmlns="http://www.w3.org/2000/svg" class="error-overlay-notch-tail absolute top-[calc(var(--ono-v-dialog-border-width)*-1)] -z-[1] h-[calc(100%+var(--ono-v-dialog-border-width))] left-[-54px] pointer-events-none [transform:rotateY(180deg)]" preserveAspectRatio="none">
1062
- <mask id="error_overlay_nav_mask0_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" style="mask-type: alpha;">
1063
- <mask id="error_overlay_nav_path_1_outside_1_2667_14687" maskUnits="userSpaceOnUse" x="0" y="-1" width="60" height="43" fill="black">
1064
- <rect fill="white" y="-1" width="60" height="43"></rect>
1065
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z"></path>
1066
- </mask>
1067
- <path d="M1 0L8.0783 0C15.772 0 22.7836 4.41324 26.111 11.3501L34.8889 29.6498C38.2164 36.5868 45.228 41 52.9217 41H60H1L1 0Z" fill="white"></path>
1068
- <path d="M1 0V-1H0V0L1 0ZM1 41H0V42H1V41ZM34.8889 29.6498L33.9873 30.0823L34.8889 29.6498ZM26.111 11.3501L27.0127 10.9177L26.111 11.3501ZM1 1H8.0783V-1H1V1ZM60 40H1V42H60V40ZM2 41V0L0 0L0 41H2ZM25.2094 11.7826L33.9873 30.0823L35.7906 29.2174L27.0127 10.9177L25.2094 11.7826ZM52.9217 42H60V40H52.9217V42ZM33.9873 30.0823C37.4811 37.3661 44.8433 42 52.9217 42V40C45.6127 40 38.9517 35.8074 35.7906 29.2174L33.9873 30.0823ZM8.0783 1C15.3873 1 22.0483 5.19257 25.2094 11.7826L27.0127 10.9177C23.5188 3.6339 16.1567 -1 8.0783 -1V1Z" fill="black" mask="url(#error_overlay_nav_path_1_outside_1_2667_14687)"></path>
1069
- </mask>
1070
- <g mask="url(#error_overlay_nav_mask0_2667_14687)">
1071
- <mask id="error_overlay_nav_path_3_outside_2_2667_14687" maskUnits="userSpaceOnUse" x="-1" y="0.0244141" width="60" height="43" fill="black">
1072
- <rect fill="white" x="-1" y="0.0244141" width="60" height="43"></rect>
1073
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z"></path>
1074
- </mask>
1075
- <path d="M0 1.02441H7.0783C14.772 1.02441 21.7836 5.43765 25.111 12.3746L33.8889 30.6743C37.2164 37.6112 44.228 42.0244 51.9217 42.0244H59H0L0 1.02441Z" fill="var(--background-color)"></path>
1076
- <path d="M0 1.02441L0 0.0244141H-1V1.02441H0ZM0 42.0244H-1V43.0244H0L0 42.0244ZM33.8889 30.6743L32.9873 31.1068L33.8889 30.6743ZM25.111 12.3746L26.0127 11.9421L25.111 12.3746ZM0 2.02441H7.0783V0.0244141H0L0 2.02441ZM59 41.0244H0L0 43.0244H59V41.0244ZM1 42.0244L1 1.02441H-1L-1 42.0244H1ZM24.2094 12.8071L32.9873 31.1068L34.7906 30.2418L26.0127 11.9421L24.2094 12.8071ZM51.9217 43.0244H59V41.0244H51.9217V43.0244ZM32.9873 31.1068C36.4811 38.3905 43.8433 43.0244 51.9217 43.0244V41.0244C44.6127 41.0244 37.9517 36.8318 34.7906 30.2418L32.9873 31.1068ZM7.0783 2.02441C14.3873 2.02441 21.0483 6.21699 24.2094 12.8071L26.0127 11.9421C22.5188 4.65831 15.1567 0.0244141 7.0783 0.0244141V2.02441Z" fill="var(--stroke-color)" mask="url(#error_overlay_nav_path_3_outside_2_2667_14687)"></path>
1077
- </g>
1078
- </svg>
1635
+ </div>`}
1636
+ ${Jt}
1079
1637
  </div>
1080
1638
  </div>
1081
1639
 
@@ -1103,7 +1661,7 @@ class ErrorOverlay extends HTMLElement {
1103
1661
  <div id="__v_o__message" class="px-4 py-2 text-sm text-[var(--ono-v-red-orange)] font-mono bg-[var(--ono-v-surface-muted)] border-b border-[var(--ono-v-border)] font-medium hidden"></div>
1104
1662
  <div id="__v_o__solutions" class="relative hidden">
1105
1663
  <div title="Possible Solution" class="bg-[#b0c8aa] dark:bg-lime-800 rounded-[var(--ono-v-radius-md)] absolute top-4 right-6 z-10 size-6.5 flex items-center justify-center shadow-[var(--ono-v-elevation-1)]">
1106
- <span class="dui size-5" style="-webkit-mask-image: url('${Nt}'); mask-image: url('${Nt}')"></span>
1664
+ <span class="dui size-5" style="-webkit-mask-image: url('${Ut}'); mask-image: url('${Ut}')"></span>
1107
1665
  </div>
1108
1666
  <div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-[var(--ono-v-success-bg)] m-1 mb-0 prose prose-sm max-w-full prose-headings:text-white prose-ul:list-none prose-hr:my-6 prose-hr:border dark:prose-invert"></div>
1109
1667
  </div>
@@ -1131,45 +1689,50 @@ class ErrorOverlay extends HTMLElement {
1131
1689
  </summary>
1132
1690
  <div class="px-4 py-3 text-[var(--ono-v-text)] text-xs rounded-b-[var(--ono-v-dialog-radius)] font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-[var(--ono-v-surface)] border-t border-[var(--ono-v-border)]"></div>
1133
1691
  </details>
1134
- </div>
1692
+ <div id="__v_o__history_layer_depth" class="relative flex items-center flex-col -z-1 w-full max-w-[calc(var(--ono-v-dialog-max-width)-24px)] h-10 opacity-0 transition-opacity duration-200 pointer-events-none">
1693
+ <div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 shadow-md"></div>
1694
+ <div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-[var(--ono-v-dialog-radius)] h-5 bg-[var(--ono-v-surface-muted)] inset-shadow-[var(--ono-v-elevation-2)] -mt-3 -z-1"></div>
1695
+ </div>
1696
+ </div>`,"rootElement"),Jo=et(t=>{const e=Xo();return`<style>${Uo}</style>
1697
+ ${Qo("__v_o__root",e)}
1135
1698
 
1136
1699
  ${t?`
1137
1700
  <button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay" class="fixed z-[2147483647] inline-flex items-center gap-2 px-2.5 py-1.5 rounded-full bg-[var(--ono-v-red-orange)] text-white font-sans text-xs leading-none shadow-lg cursor-pointer transition-all duration-200 hover:brightness-105" style="bottom: 8px; right: 8px;">
1138
1701
  <span id="__v_o__balloon_count" class="inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-full bg-white/20 text-white font-bold">0</span>
1139
1702
  <span id="__v_o__balloon_text">Errors</span>
1140
- </button>`:""}`},"generateOverlayTemplate"),Qn=Et((t,e)=>{const r=Xn(e),o=`const overlayTemplate = ${JSON.stringify(r)};`;let n=t.replace(Nn,`${o}
1141
- ${Xt}
1142
- class ViteErrorOverlay`);return n=n.replace(Un,`${o}
1143
- ${Xt}
1144
- var ViteErrorOverlay = `),n=`${n}
1145
-
1146
- ${Wn};`,n},"patchOverlay");var Yn=Object.defineProperty,j=x((t,e)=>Yn(t,"name",{value:e,configurable:!0}),"n$2");const Jn=4,Yt=1e3,Kn=5,ei=.5,ti=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],ri=[".css",".scss",".sass",".less"],Mr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],oi=new Set([...Mr,...ti,...ri]),O=j((t,...e)=>{const r=t.toLowerCase();return e.some(o=>r.includes(o.toLowerCase()))},"has"),ni=j((t,e)=>{const r=J.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),ii=j(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),ai=j((t,e)=>{try{const r=J.relative(t,e).split(J.sep).filter(n=>n&&n!==".");let o=0;for(const n of r)o+=n===".."?2:1;return o}catch{return 10}},"calculatePathDistance"),si=j((t,e,r,o)=>{if(e&&o===e){const i=Ze(t,r);return i<=Math.max(3,Math.floor(t.length*ei))?10-i:0}if(!e){const i=Ze(t,r);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&oi.has(o)?7-i:0}const n=Ze(t,r);return n<=Math.max(2,Math.floor(t.length*.4))?5-n:0},"calculateRelevanceScore"),li=j((t,e,r)=>{const o=[],n=j((i,a=0)=>{if(!(a>Jn||o.length>Yt))try{const s=Zo.readdirSync(i,{withFileTypes:!0});for(const l of s){if(o.length>Yt)break;const c=J.join(i,l.name);if(l.isDirectory()&&!l.name.startsWith(".")&&l.name!=="node_modules")n(c,a+1);else if(l.isFile()){const p=J.extname(l.name),g=J.basename(l.name,p),m=si(e,r,g,p);m>0&&o.push({baseName:g,extension:p,fullPath:c,path:c,relevanceScore:m})}}}catch{}},"walk");return n(t),o},"collectFileCandidates"),Jt=j((t,e,r)=>{const o=J.basename(t),n=J.extname(o),i=J.basename(o,n),a=J.dirname(e),s=li(r,i,n).map(m=>{const v=Ze(i,m.baseName),f=ai(a,J.dirname(m.fullPath)),h=m.relevanceScore*.7+f*.2+v*.1;return{...m,nameDistance:v,pathDistance:f,score:h}});s.sort((m,v)=>m.score-v.score);const l=[],c=s.slice(0,8);let p=!1;for(const m of c){const v=ni(a,m.fullPath);if(!l.includes(v)){const f=ii(m.pathDistance);l.push(v+f);const h=m.fullPath.replaceAll("\\","/").split("/"),b=h.indexOf("public");b!==-1&&b<h.length-1&&(p=!0)}}let g=`<ul>${[...new Set(l)].slice(0,Kn).map(m=>`<li>\`${m}\`</li>`).join(`
1147
- `)}</ul>`;if(p){const m=o;[...Mr].some(v=>m.includes(v))&&(g+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${m}\`.`)}return g},"findSimilarFiles"),ci=[{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:j(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:j(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:j(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(`
1148
- `),header:"Environment Variables"},test:j(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:j(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:j(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:j(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:j((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:j(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:j(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:j(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:j(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:j(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(`
1149
- `)},test:j(t=>O(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],di=j(t=>({async handle(e,r){const{file:o,language:n}=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&&o){const c=Jt(l,o,t);if(c)return{body:`The import path \`${l}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(n)||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(n==="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")&&(n==="typescript"||n==="javascript")){const a=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(a){const s=a[1];if(s&&o){const l=Jt(s,o,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 ci)if(a.test(i,o))return a.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var pi=Object.defineProperty,xe=x((t,e)=>pi(t,"name",{value:e,configurable:!0}),"r$2");let ze,Fe;const hi=xe(async(t=[])=>{try{const[e,r]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:o}=e,{createJavaScriptRegexEngine:n}=r,i=await o({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:n()}),a=i;return Fe=xe(()=>{try{i?.dispose?.()}catch{}ze=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 Fe=xe(()=>{try{r?.dispose?.()}catch{}ze=void 0},"disposeFn"),r}},"createSingletonHighlighter"),Pr=xe(async(t=[])=>(ze||(ze=hi(t)),ze),"getHighlighter");xe(async()=>{try{Fe&&(Fe(),Fe=void 0)}catch{}},"disposeHighlighter");const Kt=xe((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,r){const o=t.find(n=>n.line===r);return o?.classes&&this.addClassToHast(e,o.classes),e}}),"transformerCompactLineOptions");var ui=Object.defineProperty,zr=x((t,e)=>ui(t,"name",{value:e,configurable:!0}),"s$2");const gi=zr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),mi=zr(t=>t.map((e,r)=>{const{location:o,pluginName:n,text:i}=e,a={message:i||`ESBuild error #${r+1}`};return o&&(a.file=o.file,a.line=o.line,a.column=o.column),n&&(a.plugin=n),a.name=e.name||"Error",a.stack=e.stack||"",a}),"processESBuildErrors");var fi=Object.defineProperty,Fr=x((t,e)=>fi(t,"name",{value:e,configurable:!0}),"c$5");const vi=Fr((t,e)=>{for(const[r,o]of t.moduleGraph.idToModuleMap){if(!o)continue;const n=o,i=[String(n.file||"").replaceAll("\\","/"),String(r||"").replaceAll("\\","/"),String(n.url||"").replaceAll("\\","/")];for(const a of e)if(i.some(s=>s===a||s.includes(a)||a.includes(s)))return o}},"findBestModuleMatch"),Re=Fr((t,e)=>{const r=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let o,n=0;for(const i of r)try{const a=t.moduleGraph.getModuleById(i);if(a){const l=Object.keys(a).length>0,c=!!a.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>n&&(o=a,n=p),c))return a}const s=t.moduleGraph.getModuleByUrl?.(i);if(s){const l=Object.keys(s).length>0,c=!!s.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>n&&(o=s,n=p),c))return s}}catch{}return o||vi(t,e)||void 0},"findModuleForPath");var wi=Object.defineProperty,Ct=x((t,e)=>wi(t,"name",{value:e,configurable:!0}),"r$1");const bi=/^https?:\/\//,ki=Ct(t=>{const e=new URL(t),{pathname:r}=e,o=e.search||"",n=[r+o,r,r.replace(/^\/@fs\//,""),decodeURIComponent(r+o),decodeURIComponent(r)];return[...new Set(n)].filter(Boolean)},"generateUrlCandidates"),Rr=Ct(t=>bi.test(t),"isHttpUrl"),ge=Ct(t=>{if(!t)return[];try{if(Rr(t))return ki(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 yi=Object.defineProperty,pe=x((t,e)=>yi(t,"name",{value:e,configurable:!0}),"o$3");const xi=pe((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),er=pe(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),_i=pe((t,e)=>{if(e<=0||e>t.length)return"";const r=Math.max(0,e-1),o=t.slice(r,r+64),n=/[A-Z_$][\w$]{2,}/i.exec(o);if(n?.[0])return n[0];let i=o.trim();return i.length<4&&(i=t.slice(Math.max(0,r-16),r+16).trim()),i},"extractCandidateToken"),$i=pe((t,e)=>{if(!t||t.length<3)return null;for(const[r,o]of e.entries()){if(!o)continue;const n=o.indexOf(t);if(n!==-1)return{column:n+1,line:r+1}}return null},"tryTokenBasedSearch"),Si=pe((t,e)=>{if(!t)return null;for(const[r,o]of e.entries()){if(!o)continue;const n=o.indexOf(t);if(n!==-1)return{column:n+1,line:r+1}}return null},"tryLineSubstringSearch"),Ei=pe((t,e)=>{if(!t)return null;const r=er(t);if(!r)return null;for(const[o,n]of e.entries()){if(!n)continue;const i=er(n).indexOf(r);if(i!==-1){const a=Ci(n,i);if(a!==-1)return{column:a,line:o+1}}}return null},"tryWhitespaceInsensitiveSearch"),Ci=pe((t,e)=>{let r=0;for(const[o,n]of[...t].entries())if(typeof n=="string"){if(r===e)return o+1;/\s/.test(n)||r++}return-1},"mapNormalizedToOriginalPosition"),Li=pe((t,e,r,o)=>{const n=xi(t,e);if(!n)return null;const i=o.split(/\n/g),a=_i(n,r);return $i(a,i)||Si(n.trim(),i)||Ei(n.trim(),i)},"realignOriginalPosition");var Mi=Object.defineProperty,G=x((t,e)=>Mi(t,"name",{value:e,configurable:!0}),"u$2");const Pi=/`((?:[^`$]|\$\{[^}]+\})*)`/g,tr=/\$\{[^}]+\}/g,zi=/[.*+?^${}()|[\]\\]/g,Tr=[/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*`/],me=G(t=>t.replaceAll(zi,String.raw`\$&`),"escapeRegex"),Fi=G(t=>{const e=me(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${me(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${me(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),rr=G((t,e)=>{const r=[...t.matchAll(Pi)];for(const o of r){const n=o[1];if(!n)continue;const i=n.split(tr);if(i.every(s=>s===""||e.includes(s))&&i.length>1)return!0;if(!n)continue;const a=n.replaceAll(tr,"(.+?)");try{if(new RegExp(`^${me(a)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Ri=[/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 (.+?)\)/],Ti=G(t=>{for(const e of Ri){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),or=G(t=>{let e=null,r=null;for(const o of Tr){const n=t.match(o);n&&(!e||o.source.includes("throw")&&!r?.source.includes("throw"))&&(e=n,r=o)}return{bestMatch:e,bestPattern:r}},"findBestErrorConstructor"),nr=G((t,e)=>{let r=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const o=t[0].indexOf("new");o!==-1&&(r+=o)}return r+1},"calculateActualColumn"),Ai=G((t,e,r=0)=>{if(!t||!e)return null;const o=t.split(`
1150
- `),n=Ti(e),i=Fi(e),a=G((g,m,v)=>{let f=0;for(const[h,b]of g.entries()){if(!b)continue;const C=b.includes(m)||rr(b,m),F=Tr.some(S=>S.test(b));if(C&&F){const{bestMatch:S,bestPattern:A}=or(b);if(S&&A&&(f++,f>v))return{column:nr(S,A),line:h+1}}}return null},"processErrorConstructorLines")(o,e,r);if(a)return a;n&&G((g,m,v)=>{if(g[0].includes("Failed to resolve import")){const f=g[1];if(!f)return;const h=me(f);v.unshift(`import.*from ["']${h}["']`,`import.*["']${h}["']`,f)}else if(g[0].includes("is not defined")){const f=g[1];if(!f)return;v.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(g[0].includes("Cannot read properties")){const f=g[1],h=g[2];if(!h)return;v.unshift(h,`${f}.${h}`,`${f}?.${h}`,`${f}[${h}]`)}else{const f=g[1];if(!f)return;const h=me(m),b=me(f);v.unshift(`new Error(\`${b}`,`throw new Error(\`${b}`,`new Error("${b}`,`new Error('${b}`,`throw new Error("${b}`,`throw new Error('${b}`,`new Error("${h}")`,`new Error('${h}')`,`throw new Error("${h}")`,`throw new Error('${h}')`,`new Error(\`${h}\`)`,`throw new Error(\`${h}\`)`)}},"addDynamicPatterns")(n,e,i);const s=G((g,m,v)=>{let f=0;for(const[h,b]of g.entries()){if(!b||!rr(b,m))continue;const{bestMatch:C,bestPattern:F}=or(b);if(C&&F&&(f++,f>v))return{column:nr(C,F),line:h+1}}return null},"processTemplateLiteralLines"),l=G((g,m,v,f)=>{let h=0;for(const[b,C]of g.entries()){if(!C)continue;let F=-1,S=null;for(const A of m){const ee=C.indexOf(A);ee!==-1&&(F===-1||ee<F)&&(F=ee,S=A)}if(F!==-1&&S&&(h++,h>f))return{column:c(F,S,C,v),line:b+1}}return null},"processPatternLines"),c=G((g,m,v,f)=>{if(!f)return g+1;if(f[0].includes("Failed to resolve import")){const h=f[1];if(v.includes(`"${h}"`)||v.includes(`'${h}'`)){const b=v.includes(`"${h}"`)?'"':"'";return v.indexOf(`${b}${h}${b}`)+1}}else if(f[0].includes("is not defined")){const h=f[1];if(h&&m===h)return g+1;if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(f[0].includes("Cannot read properties")){const h=f[2];if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(m.includes("new Error("))return v.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return s(o,e,r)||l(o,i,n,r)},"findErrorInSourceCode");var Bi=Object.defineProperty,Be=x((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"m$3");const ji=1,ir=Be((t,e)=>{let r=t,o=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?o=Math.max(0,e-1):e>5&&(o=Math.max(0,e)),{estimatedColumn:o,estimatedLine:r}},"estimateOriginalPosition"),Di=Be((t,e,r)=>{try{const o=new Vo(t),n=[{column:r,desc:"original",line:e},{column:Math.max(0,r-ji),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 n){const a=No(o,{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(o){console.warn("Source map processing failed:",o)}return null},"resolveSourceMapPosition"),Ii=Be((t,e)=>e?Rr(t)?Oi(t,e):e:t,"resolveSourcePath"),Oi=Be((t,e)=>{try{const r=new URL(t),o=(r.pathname||"").replace(/^\//,""),n=o.includes("/")?o.slice(0,Math.max(0,o.lastIndexOf("/"))):"";return`${r.origin}/${n?`${n}/`:""}${e}`}catch(r){return console.warn("URL parsing failed for source path resolution:",r),t}},"resolveHttpSourcePath"),ut=Be(async(t,e,r,o,n,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 c=e.id||e.url;if(c)try{const p=await t.transformRequest(c);p?.map&&"sourcesContent"in p.map&&p.map.sourcesContent?.[0]?l=p.map.sourcesContent[0]:p?.code&&(l=p.code)}catch(p){console.warn("Failed to get fresh source for error search:",p)}}if(!l&&r)try{const c=await import("node:fs/promises");let p=r;if(r.includes("://"))try{p=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(p=r.slice(g+3))}p.startsWith("/")||(p=`${t.config.root||process.cwd()}/${p}`),l=await c.readFile(p,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=Ai(l,i,a);if(c)return{originalFileColumn:c.column,originalFileLine:c.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 c=await t.transformRequest(l);c?.map&&(s=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!s){const{estimatedColumn:l,estimatedLine:c}=ir(o,n);return{originalFileColumn:l,originalFileLine:c,originalFilePath:r}}try{const l=Di(s,o,n);if(!l){const{estimatedColumn:p,estimatedLine:g}=ir(o,n);return{originalFileColumn:p,originalFileLine:g,originalFilePath:r}}const c=Ii(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:n,originalFileLine:o,originalFilePath:r}}},"resolveOriginalLocation");var Hi=Object.defineProperty,Lt=x((t,e)=>Hi(t,"name",{value:e,configurable:!0}),"I"),qi=Object.defineProperty,$=Lt((t,e)=>qi(t,"name",{value:e,configurable:!0}),"__name$2");let ar=$(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i=$((d,u)=>{for(var w in u)e(d,w,{get:u[w],enumerable:!0})},"J"),a=$((d,u,w,y)=>{if(u&&typeof u=="object"||typeof u=="function")for(let k of o(u))!n.call(d,k)&&k!==w&&e(d,k,{get:$(()=>u[k],"get"),enumerable:!(y=r(u,k))||y.enumerable});return d},"T"),s=$(d=>a(e({},"__esModule",{value:!0}),d),"W"),l={};i(l,{zeptomatch:$(()=>Fo,"zeptomatch")});var c=$(d=>Array.isArray(d),"k"),p=$(d=>typeof d=="function","x"),g=$(d=>d.length===0,"K"),m=(()=>{const{toString:d}=Function.prototype,u=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&u.test(d.call(w))})(),v=$(d=>typeof d=="number","Y"),f=$(d=>typeof d=="object"&&d!==null,"rr"),h=$(d=>d instanceof RegExp,"er"),b=(()=>{const d=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return u=>d.test(u.source)})(),C=(()=>{const d=/^[a-zA-Z0-9_-]+$/;return u=>d.test(u.source)&&!u.flags.includes("i")})(),F=$(d=>typeof d=="string","M"),S=$(d=>d===void 0,"f"),A=$(d=>{const u=new Map;return w=>{const y=u.get(w);if(y!==void 0)return y;const k=d(w);return u.set(w,k),k}},"ar"),ee=$((d,u,w={})=>{const y={cache:{},input:d,index:0,indexBacktrackMax:0,options:w,output:[]},k=X(u)(y),M=Math.max(y.index,y.indexBacktrackMax);if(k&&y.index===d.length)return y.output;throw new Error(`Failed to parse at index ${M}`)},"or"),_=$((d,u)=>c(d)?te(d,u):F(d)?Ie(d,u):D(d,u),"o"),te=$((d,u)=>{const w={};for(const y of d){if(y.length!==1)throw new Error(`Invalid character: "${y}"`);const k=y.charCodeAt(0);w[k]=!0}return y=>{const k=y.input;let M=y.index,P=M;for(;P<k.length&&k.charCodeAt(P)in w;)P+=1;if(P>M){if(!S(u)&&!y.options.silent){const I=k.slice(M,P),U=p(u)?u(I,k,`${M}`):u;S(U)||y.output.push(U)}y.index=P}return!0}},"ir"),D=$((d,u)=>{if(C(d))return Ie(d.source,u);{const w=d.source,y=d.flags.replace(/y|$/,"y"),k=new RegExp(w,y);return b(d)&&p(u)&&!m(u)?q(k,u):tt(k,u)}},"ur"),q=$((d,u)=>w=>{const y=w.index,k=w.input;d.lastIndex=y;const M=d.exec(k);if(M){const P=d.lastIndex;if(!w.options.silent){const I=u(...M,k,`${y}`);S(I)||w.output.push(I)}return w.index=P,!0}else return!1},"sr"),tt=$((d,u)=>w=>{const y=w.index,k=w.input;if(d.lastIndex=y,d.test(k)){const M=d.lastIndex;if(!S(u)&&!w.options.silent){const P=p(u)?u(k.slice(y,M),k,`${y}`):u;S(P)||w.output.push(P)}return w.index=M,!0}else return!1},"cr"),Ie=$((d,u)=>w=>{const y=w.index,k=w.input;if(k.startsWith(d,y)){if(!S(u)&&!w.options.silent){const M=p(u)?u(d,k,`${y}`):u;S(M)||w.output.push(M)}return w.index+=d.length,!0}else return!1},"R"),se=$((d,u,w,y)=>{const k=X(d),M=u>1;return re(le(ne(P=>{let I=0;for(;I<w;){const U=P.index;if(!k(P)||(I+=1,P.index===U))break}return I>=u},M),y))},"O"),rt=$((d,u)=>se(d,0,1,u),"lr"),L=$((d,u)=>se(d,0,1/0,u),"m"),R=$((d,u)=>{const w=d.map(X);return re(le(ne(y=>{for(let k=0,M=w.length;k<M;k++)if(!w[k](y))return!1;return!0}),u))},"_"),B=$((d,u)=>{const w=d.map(X);return re(le(y=>{for(let k=0,M=w.length;k<M;k++)if(w[k](y))return!0;return!1},u))},"p"),ne=$((d,u=!0,w=!1)=>{const y=X(d);return u?k=>{const M=k.index,P=k.output.length,I=y(k);return!I&&!w&&(k.indexBacktrackMax=Math.max(k.indexBacktrackMax,k.index)),(!I||w)&&(k.index=M,k.output.length!==P&&(k.output.length=P)),I}:y},"P"),le=$((d,u)=>{const w=X(d);return u?y=>{if(y.options.silent)return w(y);const k=y.output.length;if(w(y)){const M=y.output.splice(k,1/0),P=u(M);return S(P)||y.output.push(P),!0}else return!1}:w},"C"),re=(()=>{let d=0;return u=>{const w=X(u),y=d+=1;return k=>{var M;if(k.options.memoization===!1)return w(k);const P=k.index,I=(M=k.cache)[y]||(M[y]={indexMax:-1,queue:[]}),U=I.queue;if(P<=I.indexMax){const Ce=I.store||(I.store=new Map);if(U.length){for(let be=0,To=U.length;be<To;be+=2){const Ao=U[be*2],Bo=U[be*2+1];Ce.set(Ao,Bo)}U.length=0}const oe=Ce.get(P);if(oe===!1)return!1;if(v(oe))return k.index=oe,!0;if(oe)return k.index=oe.index,oe.output?.length&&k.output.push(...oe.output),!0}const Dt=k.output.length,Ro=w(k);if(I.indexMax=Math.max(I.indexMax,P),Ro){const Ce=k.index,oe=k.output.length;if(oe>Dt){const be=k.output.slice(Dt,oe);U.push(P,{index:Ce,output:be})}else U.push(P,Ce);return!0}else return U.push(P,!1),!1}}})(),Se=$(d=>{let u;return w=>(u||(u=X(d())),u(w))},"A"),X=A(d=>{if(p(d))return g(d)?Se(d):d;if(F(d)||h(d))return _(d);if(c(d))return R(d);if(f(d))return B(Object.values(d));throw new Error("Invalid rule")}),Q=$(d=>d,"v"),he=$(d=>u=>ee(u,d,{memoization:!1}).join(""),"z"),Z=$(d=>{const u={};return w=>u[w]??(u[w]=d(w))},"pr"),W="abcdefghijklmnopqrstuvwxyz",ue=$(d=>{let u="";for(;d>0;){const w=(d-1)%26;u=W[w]+u,d=Math.floor((d-1)/26)}return u},"vr"),ie=$(d=>{let u=0;for(let w=0,y=d.length;w<y;w++)u=u*26+W.indexOf(d[w])+1;return u},"N"),Ee=$((d,u)=>{if(u<d)return Ee(u,d);const w=[];for(;d<=u;)w.push(d++);return w},"$"),Hr=$((d,u,w)=>Ee(d,u).map(y=>String(y).padStart(w,"0")),"fr"),Pt=$((d,u)=>Ee(ie(d),ie(u)).map(ue),"j"),ot=_(/\\./,Q),qr=_(/[$.*+?^(){}[\]\|]/,d=>`\\${d}`),Zr=_(/./,Q),Vr=_(/^(?:!!)*!(.*)$/,(d,u)=>`(?!^${jt(u)}$).*?`),Nr=_(/^(!!)+/,""),Ur=B([Vr,Nr]),Wr=_(/\/(\*\*\/)+/,"(?:[\\\\/].+[\\\\/]|[\\\\/])"),Gr=_(/^(\*\*\/)+/,"(?:^|.*[\\\\/])"),Xr=_(/\/(\*\*)$/,"(?:[\\\\/].*|$)"),Qr=_(/\*\*/,".*"),zt=B([Wr,Gr,Xr,Qr]),Yr=_(/\*\/(?!\*\*\/|\*$)/,"[^\\\\/]*[\\\\/]"),Jr=_(/\*/,"[^\\\\/]*"),Ft=B([Yr,Jr]),Rt=_("?","[^\\\\/]"),Kr=_("[",Q),eo=_("]",Q),to=_(/[!^]/,"^\\\\/"),ro=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,Q),oo=_(/[$.*+?^(){}[\|]/,d=>`\\${d}`),no=_(/[^\]]/,Q),io=B([ot,oo,ro,no]),Tt=R([Kr,rt(to),L(io),eo]),ao=_("{","(?:"),so=_("}",")"),lo=_(/(\d+)\.\.(\d+)/,(d,u,w)=>Hr(+u,+w,Math.min(u.length,w.length)).join("|")),co=_(/([a-z]+)\.\.([a-z]+)/,(d,u,w)=>Pt(u,w).join("|")),po=_(/([A-Z]+)\.\.([A-Z]+)/,(d,u,w)=>Pt(u.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),ho=B([lo,co,po]),At=R([ao,ho,so]),uo=_("{","(?:"),go=_("}",")"),mo=_(",","|"),fo=_(/[$.*+?^(){[\]\|]/,d=>`\\${d}`),vo=_(/[^}]/,Q),wo=Se(()=>Bt),bo=B([zt,Ft,Rt,Tt,At,wo,ot,fo,mo,vo]),Bt=R([uo,L(bo),go]),ko=L(B([Ur,zt,Ft,Rt,Tt,At,Bt,ot,qr,Zr])),yo=ko,xo=he(yo),jt=xo,_o=_(/\\./,Q),$o=_(/./,Q),So=_(/\*\*\*+/,"*"),Eo=_(/([^/{[(!])\*\*/,(d,u)=>`${u}*`),Co=_(/(^|.)\*\*(?=[^*/)\]}])/,(d,u)=>`${u}*`),Lo=L(B([_o,So,Eo,Co,$o])),Mo=Lo,Po=he(Mo),zo=Po,Oe=$((d,u)=>Array.isArray(d)?d.map(Oe.compile).some(w=>w.test(u)):Oe.compile(d).test(u),"S");Oe.compile=Z(d=>new RegExp(`^${jt(zo(d))}[\\\\/]?$`,"s"));var Fo=Oe;return s(l)})();return t.default||t},"_lazyMatch"),nt;const Zi=$((t,e)=>(nt||(nt=ar(),ar=null),nt(t,e)),"default");var Vi=Object.defineProperty,Ni=Lt((t,e)=>Vi(t,"name",{value:e,configurable:!0}),"__name$1");const Ui=/^[A-Z]:\//i,we=Ni((t="")=>t&&t.replaceAll("\\","/").replace(Ui,e=>e.toUpperCase()),"normalizeWindowsPath");var Wi=Object.defineProperty,N=Lt((t,e)=>Wi(t,"name",{value:e,configurable:!0}),"__name");const Gi=/^[/\\]{2}/,Xi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ar=/^[A-Z]:$/i,sr=/^\/([A-Z]:)?$/i,Qi=/.(\.[^./]+)$/,Yi=/^[/\\]|^[a-z]:[/\\]/i,Ji=N(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Br=N((t,e)=>{let r="",o=0,n=-1,i=0,a=null;for(let s=0;s<=t.length;++s){if(s<t.length)a=t[s];else{if(a==="/")break;a="/"}if(a==="/"){if(!(n===s-1||i===1))if(i===2){if(r.length<2||o!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",o=0):(r=r.slice(0,l),o=r.length-1-r.lastIndexOf("/")),n=s,i=0;continue}else if(r.length>0){r="",o=0,n=s,i=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(n+1,s)}`:r=t.slice(n+1,s),o=s-n-1;n=s,i=0}else a==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Te=N(t=>Xi.test(t),"isAbsolute"),We=N(function(t){if(t.length===0)return".";t=we(t);const e=Gi.exec(t),r=Te(t),o=t.at(-1)==="/";return t=Br(t,!r),t.length===0?r?"/":o?"./":".":(o&&(t+="/"),Ar.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Te(t)?`/${t}`:t)},"normalize");N((...t)=>{let e="";for(const r of t)if(r)if(e.length>0){const o=e[e.length-1]==="/",n=r[0]==="/";o&&n?e+=r.slice(1):e+=o||n?r:`/${r}`}else e+=r;return We(e)},"join");const Ge=N(function(...t){t=t.map(o=>we(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const n=o>=0?t[o]:Ji();!n||n.length===0||(e=`${n}/${e}`,r=Te(n))}return e=Br(e,!r),r&&!Te(e)?`/${e}`:e.length>0?e:"."},"resolve");N(function(t){return we(t)},"toNamespacedPath");const Ki=N(function(t){return Qi.exec(we(t))?.[1]??""},"extname");N(function(t,e){const r=Ge(t).replace(sr,"$1").split("/"),o=Ge(e).replace(sr,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const n=[...r];for(const i of n){if(o[0]!==i)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")},"relative");const ea=N(t=>{const e=we(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ar.test(e[0])&&(e[0]+="/"),e.join("/")||(Te(t)?"/":".")},"dirname");N(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return we(t.root?Ge(...e):e.join("/"))},"format");const ta=N((t,e)=>{const r=we(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");N(function(t){const e=Yi.exec(t)?.[0]?.replace(/\\/g,"/")??"",r=ta(t),o=Ki(r);return{base:r,dir:ea(t),ext:o,name:r.slice(0,r.length-o.length),root:e}},"parse");N((t,e)=>Zi(e,We(t)),"matchesGlob");var ra=Object.defineProperty,K=x((t,e)=>ra(t,"name",{value:e,configurable:!0}),"e$1");const gt="/",lr=":",oa="at ",na=/https?:\/\/[^\s)]+/g,ia=/file:\/\//g,jr=/\/@fs\//g,aa=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),sa=new Set(["<anonymous>","<unknown>","native"]),la=K(t=>{const e=t.trim();return!e.startsWith(oa)||!([...aa].some(r=>e.includes(r))||[...sa].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"),ca=K(t=>(t=t.replaceAll(jr,gt),t=t.replaceAll(ia,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!la(t)?"":t),"cleanStackLine"),da=K((t,e)=>{try{const{baseUrl:r,col:o,line:n}=pa(t),i=ha(r,e);return ua(i,n,o)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),pa=K(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),r=e?.[1],o=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:o,line:r}},"parseUrlWithLocation"),ha=K((t,e)=>{const r=new URL(t);let o=decodeURIComponent(r.pathname||"");return o=o.replaceAll(jr,gt),Ge(e,o.startsWith(gt)?o.slice(1):o)},"urlToAbsolutePath"),ua=K((t,e,r)=>{if(!e)return t;const o=r?`${lr}${r}`:"";return`${t}${lr}${e}${o}`},"formatAbsolutePath"),et=K(t=>t&&t.replaceAll(`\r
1703
+ </button>`:""}`},"generateOverlayTemplate"),Ko=et((t,e)=>{const r=Jo(e),n=`const overlayTemplate = ${JSON.stringify(r)};`;let o=t.replace(Wo,`${n}
1704
+ ${Yt}
1705
+ class ViteErrorOverlay`);return o=o.replace(Go,`${n}
1706
+ ${Yt}
1707
+ var ViteErrorOverlay = `),o=`${o}
1708
+
1709
+ ${Yo};`,o},"patchOverlay");var ei=Object.defineProperty,I=x((t,e)=>ei(t,"name",{value:e,configurable:!0}),"n$2");const ti=4,Kt=1e3,ri=5,ni=.5,oi=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],ii=[".css",".scss",".sass",".less"],Mr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],si=new Set([...Mr,...oi,...ii]),j=I((t,...e)=>{const r=t.toLowerCase();return e.some(n=>r.includes(n.toLowerCase()))},"has"),ai=I((t,e)=>{const r=J.relative(t,e);return r.startsWith(".")?r:`./${r}`},"getRelativePath"),li=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=J.relative(t,e).split(J.sep).filter(o=>o&&o!==".");let n=0;for(const o of r)n+=o===".."?2:1;return n}catch{return 10}},"calculatePathDistance"),di=I((t,e,r,n)=>{if(e&&n===e){const i=Ze(t,r);return i<=Math.max(3,Math.floor(t.length*ni))?10-i:0}if(!e){const i=Ze(t,r);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&si.has(n)?7-i:0}const o=Ze(t,r);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),pi=I((t,e,r)=>{const n=[],o=I((i,s=0)=>{if(!(s>ti||n.length>Kt))try{const a=Un.readdirSync(i,{withFileTypes:!0});for(const l of a){if(n.length>Kt)break;const c=J.join(i,l.name);if(l.isDirectory()&&!l.name.startsWith(".")&&l.name!=="node_modules")o(c,s+1);else if(l.isFile()){const p=J.extname(l.name),g=J.basename(l.name,p),m=di(e,r,g,p);m>0&&n.push({baseName:g,extension:p,fullPath:c,path:c,relevanceScore:m})}}}catch{}},"walk");return o(t),n},"collectFileCandidates"),er=I((t,e,r)=>{const n=J.basename(t),o=J.extname(n),i=J.basename(n,o),s=J.dirname(e),a=pi(r,i,o).map(m=>{const v=Ze(i,m.baseName),f=ci(s,J.dirname(m.fullPath)),h=m.relevanceScore*.7+f*.2+v*.1;return{...m,nameDistance:v,pathDistance:f,score:h}});a.sort((m,v)=>m.score-v.score);const l=[],c=a.slice(0,8);let p=!1;for(const m of c){const v=ai(s,m.fullPath);if(!l.includes(v)){const f=li(m.pathDistance);l.push(v+f);const h=m.fullPath.replaceAll("\\","/").split("/"),b=h.indexOf("public");b!==-1&&b<h.length-1&&(p=!0)}}let g=`<ul>${[...new Set(l)].slice(0,ri).map(m=>`<li>\`${m}\`</li>`).join(`
1710
+ `)}</ul>`;if(p){const m=n;[...Mr].some(v=>m.includes(v))&&(g+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${m}\`.`)}return g},"findSimilarFiles"),hi=[{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")}],ui=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 s=i.match(/Failed to resolve import ["']([^"']+)["']/),a=i.match(/Cannot resolve module ["']([^"']+)["']/),l=s?.[1]||a?.[1];if(l&&n){const c=er(l,n,t);if(c)return{body:`The import path \`${l}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};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 s=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(s){const a=s[1];if(a&&n){const l=er(a,n,t);if(l)return{body:`Cannot resolve \`${a}\`. 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 s of hi)if(s.test(i,n))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var gi=Object.defineProperty,xe=x((t,e)=>gi(t,"name",{value:e,configurable:!0}),"r$2");let Me,ze;const mi=xe(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()}),s=i;return ze=xe(()=>{try{i?.dispose?.()}catch{}Me=void 0},"disposeFn"),s}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 ze=xe(()=>{try{r?.dispose?.()}catch{}Me=void 0},"disposeFn"),r}},"createSingletonHighlighter"),zr=xe(async(t=[])=>(Me||(Me=mi(t)),Me),"getHighlighter");xe(async()=>{try{ze&&(ze(),ze=void 0)}catch{}},"disposeHighlighter");const tr=xe((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 fi=Object.defineProperty,Fr=x((t,e)=>fi(t,"name",{value:e,configurable:!0}),"s$2");const vi=Fr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),wi=Fr(t=>t.map((e,r)=>{const{location:n,pluginName:o,text:i}=e,s={message:i||`ESBuild error #${r+1}`};return n&&(s.file=n.file,s.line=n.line,s.column=n.column),o&&(s.plugin=o),s.name=e.name||"Error",s.stack=e.stack||"",s}),"processESBuildErrors");var bi=Object.defineProperty,Rr=x((t,e)=>bi(t,"name",{value:e,configurable:!0}),"c$5");const yi=Rr((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 s of e)if(i.some(a=>a===s||a.includes(s)||s.includes(a)))return n}},"findBestModuleMatch"),Fe=Rr((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 s=t.moduleGraph.getModuleById(i);if(s){const l=Object.keys(s).length>0,c=!!s.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>o&&(n=s,o=p),c))return s}const a=t.moduleGraph.getModuleByUrl?.(i);if(a){const l=Object.keys(a).length>0,c=!!a.transformResult;let p=0;if(l&&c?p=2:l&&(p=1),l&&(p>o&&(n=a,o=p),c))return a}}catch{}return n||yi(t,e)||void 0},"findModuleForPath");var ki=Object.defineProperty,Ct=x((t,e)=>ki(t,"name",{value:e,configurable:!0}),"r$1");const xi=/^https?:\/\//,_i=Ct(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"),Ar=Ct(t=>xi.test(t),"isHttpUrl"),ge=Ct(t=>{if(!t)return[];try{if(Ar(t))return _i(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 $i=Object.defineProperty,pe=x((t,e)=>$i(t,"name",{value:e,configurable:!0}),"o$3");const Ei=pe((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),rr=pe(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Si=pe((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"),Ci=pe((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"),Li=pe((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"),Ti=pe((t,e)=>{if(!t)return null;const r=rr(t);if(!r)return null;for(const[n,o]of e.entries()){if(!o)continue;const i=rr(o).indexOf(r);if(i!==-1){const s=Pi(o,i);if(s!==-1)return{column:s,line:n+1}}}return null},"tryWhitespaceInsensitiveSearch"),Pi=pe((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"),Mi=pe((t,e,r,n)=>{const o=Ei(t,e);if(!o)return null;const i=n.split(/\n/g),s=Si(o,r);return Ci(s,i)||Li(o.trim(),i)||Ti(o.trim(),i)},"realignOriginalPosition");var zi=Object.defineProperty,G=x((t,e)=>zi(t,"name",{value:e,configurable:!0}),"u$2");const Fi=/`((?:[^`$]|\$\{[^}]+\})*)`/g,nr=/\$\{[^}]+\}/g,Ri=/[.*+?^${}()|[\]\\]/g,Hr=[/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*`/],me=G(t=>t.replaceAll(Ri,String.raw`\$&`),"escapeRegex"),Ai=G(t=>{const e=me(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${me(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${me(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),or=G((t,e)=>{const r=[...t.matchAll(Fi)];for(const n of r){const o=n[1];if(!o)continue;const i=o.split(nr);if(i.every(a=>a===""||e.includes(a))&&i.length>1)return!0;if(!o)continue;const s=o.replaceAll(nr,"(.+?)");try{if(new RegExp(`^${me(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),Hi=[/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 (.+?)\)/],Ii=G(t=>{for(const e of Hi){const r=t.match(e);if(r)return r}return null},"findDynamicErrorMatch"),ir=G(t=>{let e=null,r=null;for(const n of Hr){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"),sr=G((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"),Di=G((t,e,r=0)=>{if(!t||!e)return null;const n=t.split(`
1713
+ `),o=Ii(e),i=Ai(e),s=G((g,m,v)=>{let f=0;for(const[h,b]of g.entries()){if(!b)continue;const C=b.includes(m)||or(b,m),z=Hr.some(E=>E.test(b));if(C&&z){const{bestMatch:E,bestPattern:A}=ir(b);if(E&&A&&(f++,f>v))return{column:sr(E,A),line:h+1}}}return null},"processErrorConstructorLines")(n,e,r);if(s)return s;o&&G((g,m,v)=>{if(g[0].includes("Failed to resolve import")){const f=g[1];if(!f)return;const h=me(f);v.unshift(`import.*from ["']${h}["']`,`import.*["']${h}["']`,f)}else if(g[0].includes("is not defined")){const f=g[1];if(!f)return;v.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(g[0].includes("Cannot read properties")){const f=g[1],h=g[2];if(!h)return;v.unshift(h,`${f}.${h}`,`${f}?.${h}`,`${f}[${h}]`)}else{const f=g[1];if(!f)return;const h=me(m),b=me(f);v.unshift(`new Error(\`${b}`,`throw new Error(\`${b}`,`new Error("${b}`,`new Error('${b}`,`throw new Error("${b}`,`throw new Error('${b}`,`new Error("${h}")`,`new Error('${h}')`,`throw new Error("${h}")`,`throw new Error('${h}')`,`new Error(\`${h}\`)`,`throw new Error(\`${h}\`)`)}},"addDynamicPatterns")(o,e,i);const a=G((g,m,v)=>{let f=0;for(const[h,b]of g.entries()){if(!b||!or(b,m))continue;const{bestMatch:C,bestPattern:z}=ir(b);if(C&&z&&(f++,f>v))return{column:sr(C,z),line:h+1}}return null},"processTemplateLiteralLines"),l=G((g,m,v,f)=>{let h=0;for(const[b,C]of g.entries()){if(!C)continue;let z=-1,E=null;for(const A of m){const ee=C.indexOf(A);ee!==-1&&(z===-1||ee<z)&&(z=ee,E=A)}if(z!==-1&&E&&(h++,h>f))return{column:c(z,E,C,v),line:b+1}}return null},"processPatternLines"),c=G((g,m,v,f)=>{if(!f)return g+1;if(f[0].includes("Failed to resolve import")){const h=f[1];if(v.includes(`"${h}"`)||v.includes(`'${h}'`)){const b=v.includes(`"${h}"`)?'"':"'";return v.indexOf(`${b}${h}${b}`)+1}}else if(f[0].includes("is not defined")){const h=f[1];if(h&&m===h)return g+1;if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(f[0].includes("Cannot read properties")){const h=f[2];if(h&&m.includes(h))return g+m.indexOf(h)+1}else if(m.includes("new Error("))return v.indexOf("new Error(")+1;return g+1},"calculatePatternColumn");return a(n,e,r)||l(n,i,o,r)},"findErrorInSourceCode");var Bi=Object.defineProperty,He=x((t,e)=>Bi(t,"name",{value:e,configurable:!0}),"m$3");const ji=1,ar=He((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"),Oi=He((t,e,r)=>{try{const n=new Nn(t),o=[{column:r,desc:"original",line:e},{column:Math.max(0,r-ji),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,s)=>({column:Math.max(0,r-2+s),desc:`col ${r-2+s}`,line:e}))];for(const i of o){const s=Wn(n,{column:i.column,line:i.line});if(s.source&&s.line!==void 0&&s.column!==void 0&&s.line>0&&s.column>=0)return{column:s.column,line:s.line,source:s.source}}}catch(n){console.warn("Source map processing failed:",n)}return null},"resolveSourceMapPosition"),qi=He((t,e)=>e?Ar(t)?Zi(t,e):e:t,"resolveSourcePath"),Zi=He((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"),gt=He(async(t,e,r,n,o,i,s=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 c=e.id||e.url;if(c)try{const p=await t.transformRequest(c);p?.map&&"sourcesContent"in p.map&&p.map.sourcesContent?.[0]?l=p.map.sourcesContent[0]:p?.code&&(l=p.code)}catch(p){console.warn("Failed to get fresh source for error search:",p)}}if(!l&&r)try{const c=await import("node:fs/promises");let p=r;if(r.includes("://"))try{p=new URL(r).pathname}catch{const g=r.indexOf("://");g!==-1&&(p=r.slice(g+3))}p.startsWith("/")||(p=`${t.config.root||process.cwd()}/${p}`),l=await c.readFile(p,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(l){const c=Di(l,i,s);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:r}}}catch(l){console.warn("Source code search failed:",l)}let a=e?.transformResult?.map;if(!a&&(e?.id||e?.url)){const l=e.id||e.url;if(l)try{const c=await t.transformRequest(l);c?.map&&(a=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!a){const{estimatedColumn:l,estimatedLine:c}=ar(n,o);return{originalFileColumn:l,originalFileLine:c,originalFilePath:r}}try{const l=Oi(a,n,o);if(!l){const{estimatedColumn:p,estimatedLine:g}=ar(n,o);return{originalFileColumn:p,originalFileLine:g,originalFilePath:r}}const c=qi(r,l.source);return{originalFileColumn:l.column,originalFileLine:l.line,originalFilePath:c}}catch(l){return console.warn("Source map resolution failed:",l),{originalFileColumn:o,originalFileLine:n,originalFilePath:r}}},"resolveOriginalLocation");var Vi=Object.defineProperty,Lt=x((t,e)=>Vi(t,"name",{value:e,configurable:!0}),"I"),Ui=Object.defineProperty,$=Lt((t,e)=>Ui(t,"name",{value:e,configurable:!0}),"__name$2");let lr=$(()=>{var t=(()=>{var e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=$((d,u)=>{for(var w in u)e(d,w,{get:u[w],enumerable:!0})},"J"),s=$((d,u,w,k)=>{if(u&&typeof u=="object"||typeof u=="function")for(let y of n(u))!o.call(d,y)&&y!==w&&e(d,y,{get:$(()=>u[y],"get"),enumerable:!(k=r(u,y))||k.enumerable});return d},"T"),a=$(d=>s(e({},"__esModule",{value:!0}),d),"W"),l={};i(l,{zeptomatch:$(()=>Rn,"zeptomatch")});var c=$(d=>Array.isArray(d),"k"),p=$(d=>typeof d=="function","x"),g=$(d=>d.length===0,"K"),m=(()=>{const{toString:d}=Function.prototype,u=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&u.test(d.call(w))})(),v=$(d=>typeof d=="number","Y"),f=$(d=>typeof d=="object"&&d!==null,"rr"),h=$(d=>d instanceof RegExp,"er"),b=(()=>{const d=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return u=>d.test(u.source)})(),C=(()=>{const d=/^[a-zA-Z0-9_-]+$/;return u=>d.test(u.source)&&!u.flags.includes("i")})(),z=$(d=>typeof d=="string","M"),E=$(d=>d===void 0,"f"),A=$(d=>{const u=new Map;return w=>{const k=u.get(w);if(k!==void 0)return k;const y=d(w);return u.set(w,y),y}},"ar"),ee=$((d,u,w={})=>{const k={cache:{},input:d,index:0,indexBacktrackMax:0,options:w,output:[]},y=Y(u)(k),T=Math.max(k.index,k.indexBacktrackMax);if(y&&k.index===d.length)return k.output;throw new Error(`Failed to parse at index ${T}`)},"or"),_=$((d,u)=>c(d)?te(d,u):z(d)?Be(d,u):D(d,u),"o"),te=$((d,u)=>{const w={};for(const k of d){if(k.length!==1)throw new Error(`Invalid character: "${k}"`);const y=k.charCodeAt(0);w[y]=!0}return k=>{const y=k.input;let T=k.index,P=T;for(;P<y.length&&y.charCodeAt(P)in w;)P+=1;if(P>T){if(!E(u)&&!k.options.silent){const B=y.slice(T,P),N=p(u)?u(B,y,`${T}`):u;E(N)||k.output.push(N)}k.index=P}return!0}},"ir"),D=$((d,u)=>{if(C(d))return Be(d.source,u);{const w=d.source,k=d.flags.replace(/y|$/,"y"),y=new RegExp(w,k);return b(d)&&p(u)&&!m(u)?q(y,u):rt(y,u)}},"ur"),q=$((d,u)=>w=>{const k=w.index,y=w.input;d.lastIndex=k;const T=d.exec(y);if(T){const P=d.lastIndex;if(!w.options.silent){const B=u(...T,y,`${k}`);E(B)||w.output.push(B)}return w.index=P,!0}else return!1},"sr"),rt=$((d,u)=>w=>{const k=w.index,y=w.input;if(d.lastIndex=k,d.test(y)){const T=d.lastIndex;if(!E(u)&&!w.options.silent){const P=p(u)?u(y.slice(k,T),y,`${k}`):u;E(P)||w.output.push(P)}return w.index=T,!0}else return!1},"cr"),Be=$((d,u)=>w=>{const k=w.index,y=w.input;if(y.startsWith(d,k)){if(!E(u)&&!w.options.silent){const T=p(u)?u(d,y,`${k}`):u;E(T)||w.output.push(T)}return w.index+=d.length,!0}else return!1},"R"),ae=$((d,u,w,k)=>{const y=Y(d),T=u>1;return re(le(oe(P=>{let B=0;for(;B<w;){const N=P.index;if(!y(P)||(B+=1,P.index===N))break}return B>=u},T),k))},"O"),nt=$((d,u)=>ae(d,0,1,u),"lr"),L=$((d,u)=>ae(d,0,1/0,u),"m"),F=$((d,u)=>{const w=d.map(Y);return re(le(oe(k=>{for(let y=0,T=w.length;y<T;y++)if(!w[y](k))return!1;return!0}),u))},"_"),H=$((d,u)=>{const w=d.map(Y);return re(le(k=>{for(let y=0,T=w.length;y<T;y++)if(w[y](k))return!0;return!1},u))},"p"),oe=$((d,u=!0,w=!1)=>{const k=Y(d);return u?y=>{const T=y.index,P=y.output.length,B=k(y);return!B&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!B||w)&&(y.index=T,y.output.length!==P&&(y.output.length=P)),B}:k},"P"),le=$((d,u)=>{const w=Y(d);return u?k=>{if(k.options.silent)return w(k);const y=k.output.length;if(w(k)){const T=k.output.splice(y,1/0),P=u(T);return E(P)||k.output.push(P),!0}else return!1}:w},"C"),re=(()=>{let d=0;return u=>{const w=Y(u),k=d+=1;return y=>{var T;if(y.options.memoization===!1)return w(y);const P=y.index,B=(T=y.cache)[k]||(T[k]={indexMax:-1,queue:[]}),N=B.queue;if(P<=B.indexMax){const Ce=B.store||(B.store=new Map);if(N.length){for(let be=0,Hn=N.length;be<Hn;be+=2){const In=N[be*2],Dn=N[be*2+1];Ce.set(In,Dn)}N.length=0}const ne=Ce.get(P);if(ne===!1)return!1;if(v(ne))return y.index=ne,!0;if(ne)return y.index=ne.index,ne.output?.length&&y.output.push(...ne.output),!0}const Dt=y.output.length,An=w(y);if(B.indexMax=Math.max(B.indexMax,P),An){const Ce=y.index,ne=y.output.length;if(ne>Dt){const be=y.output.slice(Dt,ne);N.push(P,{index:Ce,output:be})}else N.push(P,Ce);return!0}else return N.push(P,!1),!1}}})(),Ee=$(d=>{let u;return w=>(u||(u=Y(d())),u(w))},"A"),Y=A(d=>{if(p(d))return g(d)?Ee(d):d;if(z(d)||h(d))return _(d);if(c(d))return F(d);if(f(d))return H(Object.values(d));throw new Error("Invalid rule")}),X=$(d=>d,"v"),he=$(d=>u=>ee(u,d,{memoization:!1}).join(""),"z"),Z=$(d=>{const u={};return w=>u[w]??(u[w]=d(w))},"pr"),W="abcdefghijklmnopqrstuvwxyz",ue=$(d=>{let u="";for(;d>0;){const w=(d-1)%26;u=W[w]+u,d=Math.floor((d-1)/26)}return u},"vr"),ie=$(d=>{let u=0;for(let w=0,k=d.length;w<k;w++)u=u*26+W.indexOf(d[w])+1;return u},"N"),Se=$((d,u)=>{if(u<d)return Se(u,d);const w=[];for(;d<=u;)w.push(d++);return w},"$"),Zr=$((d,u,w)=>Se(d,u).map(k=>String(k).padStart(w,"0")),"fr"),Pt=$((d,u)=>Se(ie(d),ie(u)).map(ue),"j"),ot=_(/\\./,X),Vr=_(/[$.*+?^(){}[\]\|]/,d=>`\\${d}`),Ur=_(/./,X),Nr=_(/^(?:!!)*!(.*)$/,(d,u)=>`(?!^${It(u)}$).*?`),Wr=_(/^(!!)+/,""),Gr=H([Nr,Wr]),Yr=_(/\/(\*\*\/)+/,"(?:[\\\\/].+[\\\\/]|[\\\\/])"),Xr=_(/^(\*\*\/)+/,"(?:^|.*[\\\\/])"),Qr=_(/\/(\*\*)$/,"(?:[\\\\/].*|$)"),Jr=_(/\*\*/,".*"),Mt=H([Yr,Xr,Qr,Jr]),Kr=_(/\*\/(?!\*\*\/|\*$)/,"[^\\\\/]*[\\\\/]"),en=_(/\*/,"[^\\\\/]*"),zt=H([Kr,en]),Ft=_("?","[^\\\\/]"),tn=_("[",X),rn=_("]",X),nn=_(/[!^]/,"^\\\\/"),on=_(/[a-z]-[a-z]|[0-9]-[0-9]/i,X),sn=_(/[$.*+?^(){}[\|]/,d=>`\\${d}`),an=_(/[^\]]/,X),ln=H([ot,sn,on,an]),Rt=F([tn,nt(nn),L(ln),rn]),cn=_("{","(?:"),dn=_("}",")"),pn=_(/(\d+)\.\.(\d+)/,(d,u,w)=>Zr(+u,+w,Math.min(u.length,w.length)).join("|")),hn=_(/([a-z]+)\.\.([a-z]+)/,(d,u,w)=>Pt(u,w).join("|")),un=_(/([A-Z]+)\.\.([A-Z]+)/,(d,u,w)=>Pt(u.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),gn=H([pn,hn,un]),At=F([cn,gn,dn]),mn=_("{","(?:"),fn=_("}",")"),vn=_(",","|"),wn=_(/[$.*+?^(){[\]\|]/,d=>`\\${d}`),bn=_(/[^}]/,X),yn=Ee(()=>Ht),kn=H([Mt,zt,Ft,Rt,At,yn,ot,wn,vn,bn]),Ht=F([mn,L(kn),fn]),xn=L(H([Gr,Mt,zt,Ft,Rt,At,Ht,ot,Vr,Ur])),_n=xn,$n=he(_n),It=$n,En=_(/\\./,X),Sn=_(/./,X),Cn=_(/\*\*\*+/,"*"),Ln=_(/([^/{[(!])\*\*/,(d,u)=>`${u}*`),Tn=_(/(^|.)\*\*(?=[^*/)\]}])/,(d,u)=>`${u}*`),Pn=L(H([En,Cn,Ln,Tn,Sn])),Mn=Pn,zn=he(Mn),Fn=zn,je=$((d,u)=>Array.isArray(d)?d.map(je.compile).some(w=>w.test(u)):je.compile(d).test(u),"S");je.compile=Z(d=>new RegExp(`^${It(Fn(d))}[\\\\/]?$`,"s"));var Rn=je;return a(l)})();return t.default||t},"_lazyMatch"),it;const Ni=$((t,e)=>(it||(it=lr(),lr=null),it(t,e)),"default");var Wi=Object.defineProperty,Gi=Lt((t,e)=>Wi(t,"name",{value:e,configurable:!0}),"__name$1");const Yi=/^[A-Z]:\//i,we=Gi((t="")=>t&&t.replaceAll("\\","/").replace(Yi,e=>e.toUpperCase()),"normalizeWindowsPath");var Xi=Object.defineProperty,U=Lt((t,e)=>Xi(t,"name",{value:e,configurable:!0}),"__name");const Qi=/^[/\\]{2}/,Ji=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ir=/^[A-Z]:$/i,cr=/^\/([A-Z]:)?$/i,Ki=/.(\.[^./]+)$/,es=/^[/\\]|^[a-z]:[/\\]/i,ts=U(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Dr=U((t,e)=>{let r="",n=0,o=-1,i=0,s=null;for(let a=0;a<=t.length;++a){if(a<t.length)s=t[a];else{if(s==="/")break;s="/"}if(s==="/"){if(!(o===a-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=a,i=0;continue}else if(r.length>0){r="",n=0,o=a,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(o+1,a)}`:r=t.slice(o+1,a),n=a-o-1;o=a,i=0}else s==="."&&i!==-1?++i:i=-1}return r},"normalizeString"),Re=U(t=>Ji.test(t),"isAbsolute"),We=U(function(t){if(t.length===0)return".";t=we(t);const e=Qi.exec(t),r=Re(t),n=t.at(-1)==="/";return t=Dr(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),Ir.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!Re(t)?`/${t}`:t)},"normalize");U((...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 We(e)},"join");const Ge=U(function(...t){t=t.map(n=>we(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){const o=n>=0?t[n]:ts();!o||o.length===0||(e=`${o}/${e}`,r=Re(o))}return e=Dr(e,!r),r&&!Re(e)?`/${e}`:e.length>0?e:"."},"resolve");U(function(t){return we(t)},"toNamespacedPath");const rs=U(function(t){return Ki.exec(we(t))?.[1]??""},"extname");U(function(t,e){const r=Ge(t).replace(cr,"$1").split("/"),n=Ge(e).replace(cr,"$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 ns=U(t=>{const e=we(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Ir.test(e[0])&&(e[0]+="/"),e.join("/")||(Re(t)?"/":".")},"dirname");U(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return we(t.root?Ge(...e):e.join("/"))},"format");const os=U((t,e)=>{const r=we(t).split("/").pop();return e&&r.endsWith(e)?r.slice(0,-e.length):r},"basename");U(function(t){const e=es.exec(t)?.[0]?.replace(/\\/g,"/")??"",r=os(t),n=rs(r);return{base:r,dir:ns(t),ext:n,name:r.slice(0,r.length-n.length),root:e}},"parse");U((t,e)=>Ni(e,We(t)),"matchesGlob");var is=Object.defineProperty,K=x((t,e)=>is(t,"name",{value:e,configurable:!0}),"e$1");const mt="/",dr=":",ss="at ",as=/https?:\/\/[^\s)]+/g,ls=/file:\/\//g,Br=/\/@fs\//g,cs=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),ds=new Set(["<anonymous>","<unknown>","native"]),ps=K(t=>{const e=t.trim();return!e.startsWith(ss)||!([...cs].some(r=>e.includes(r))||[...ds].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"),hs=K(t=>(t=t.replaceAll(Br,mt),t=t.replaceAll(ls,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!ps(t)?"":t),"cleanStackLine"),us=K((t,e)=>{try{const{baseUrl:r,col:n,line:o}=gs(t),i=ms(r,e);return fs(i,o,n)}catch(r){return console.warn("Failed to absolutize URL:",t,r),t}},"absolutizeUrl"),gs=K(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"),ms=K((t,e)=>{const r=new URL(t);let n=decodeURIComponent(r.pathname||"");return n=n.replaceAll(Br,mt),Ge(e,n.startsWith(mt)?n.slice(1):n)},"urlToAbsolutePath"),fs=K((t,e,r)=>{if(!e)return t;const n=r?`${dr}${r}`:"";return`${t}${dr}${e}${n}`},"formatAbsolutePath"),tt=K(t=>t&&t.replaceAll(`\r
1151
1714
  `,`
1152
1715
  `).replaceAll("\r",`
1153
- `).split(/\n/).map(ca).filter(e=>e.trim()!=="").join(`
1154
- `),"cleanErrorStack"),ga=K(t=>{const e=typeof t=="string"?t:t.message||String(t);return Uo(e)},"cleanErrorMessage"),ma=K(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),fa=K(t=>ma(t)?t.errors:[t],"extractErrors"),je=K((t,e)=>t&&String(t).replaceAll(na,r=>da(r,e)),"absolutizeStackUrls");var va=Object.defineProperty,wa=x((t,e)=>va(t,"name",{value:e,configurable:!0}),"a$3");const ba=wa(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",r=0,o=0;const n=/\((\d+):(\d+)\)/,i=t.match(n);i&&i[1]&&i[2]&&(r=Number.parseInt(i[1],10),o=Number.parseInt(i[2],10));const a=/(\S+\.vue)/,s=t.match(a);s&&s[1]&&(e=s[1]||"");const l=t.split(`
1155
- `)[0]||t;if(e&&r>0&&o>0)return{column:o,line:r,message:l,originalFilePath:e}},"parseVueCompilationError");var ka=Object.defineProperty,Dr=x((t,e)=>ka(t,"name",{value:e,configurable:!0}),"a$2");const ya=Dr(t=>{const e=/<style\b[^>]*>[\s\S]*?<\/style>/gi,r=/<script\b[^>]*>[\s\S]*?<\/script>/gi,o=/<template\b[^>]*>[\s\S]*?<\/template>/gi,n=/style="([^"]*)"/g;let i=t.replaceAll(e,"").replaceAll(r,"").replaceAll(o,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return i=i.replaceAll(n,(a,s)=>`style="${(s.trim().endsWith(";")?s:`${s};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),xa="https://react.dev/link/hydration-mismatch",_a=Dr(t=>{const[e,r]=t.message.split(xa);if(e){const[i]=e?.split(`
1156
-
1157
- `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const o=[];for(const i of ya(r?.trim()||"").split(`
1158
- `)||[])i.startsWith("+ ")?o.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?o.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||o.push(i);let n=o.findIndex(i=>i.startsWith("[!code ++]"));if(n===-1&&(n=o.findIndex(i=>i.startsWith("[!code --]"))),n!==-1)return o.slice(Math.max(0,n-5)).join(`
1159
- `)},"processHydrationDiff");var $a=Object.defineProperty,Sa=x((t,e)=>$a(t,"name",{value:e,configurable:!0}),"m$1");const Ea=Sa(async(t,e,r)=>{let o=e;if(e.includes("at ")&&!e.includes(`
1160
- at `)&&(o=e.replace(/^(Error:.*?)at /,`$1
1716
+ `).split(/\n/).map(hs).filter(e=>e.trim()!=="").join(`
1717
+ `),"cleanErrorStack"),vs=K(t=>{const e=typeof t=="string"?t:t.message||String(t);return Gn(e)},"cleanErrorMessage"),ws=K(t=>t instanceof AggregateError||t&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),bs=K(t=>ws(t)?t.errors:[t],"extractErrors"),Ie=K((t,e)=>t&&String(t).replaceAll(as,r=>us(r,e)),"absolutizeStackUrls");var ys=Object.defineProperty,ks=x((t,e)=>ys(t,"name",{value:e,configurable:!0}),"a$3");const xs=ks(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 s=/(\S+\.vue)/,a=t.match(s);a&&a[1]&&(e=a[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 _s=Object.defineProperty,jr=x((t,e)=>_s(t,"name",{value:e,configurable:!0}),"a$2");const $s=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,(s,a)=>`style="${(a.trim().endsWith(";")?a:`${a};`).replaceAll(" ","")}"`),i},"removeStyleAndDataAttributes"),Es="https://react.dev/link/hydration-mismatch",Ss=jr(t=>{const[e,r]=t.message.split(Es);if(e){const[i]=e?.split(`
1719
+
1720
+ `);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const n=[];for(const i of $s(r?.trim()||"").split(`
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(`
1722
+ `)},"processHydrationDiff");var Cs=Object.defineProperty,Ls=x((t,e)=>Cs(t,"name",{value:e,configurable:!0}),"m$1");const Ts=Ls(async(t,e,r)=>{let n=e;if(e.includes("at ")&&!e.includes(`
1723
+ at `)&&(n=e.replace(/^(Error:.*?)at /,`$1
1161
1724
  at `).replaceAll(/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,`
1162
1725
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,`
1163
1726
  at $1 $2`).replaceAll(/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,`
1164
- at $1 <$2>:d+:d+`),o=o.replaceAll(/at ([^<\s]+)(?=\s*at|$)/g,`
1165
- at $1 <unknown>:0:0`)),!o.includes("<unknown>")&&!o.includes("react-dom")&&!o.includes("react"))return o;const n=ye({stack:o}),i=await Promise.all(n.map(async a=>{const{file:s}=a,l=a.line??0,c=a.column??0;if(s&&s!=="<unknown>"&&l>0&&c>0&&!s.includes("react-dom")&&!s.includes("react"))return a;if(!s||l<=0||c<=0){if((s==="<unknown>"||s&&(s.includes("react-dom")||s.includes("react")))&&a.methodName){const{methodName:p}=a,g={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[m,v]of Object.entries(g))if(p.includes(m))return{...a,column:0,file:`[React] ${v}`,line:0};if(!p.includes("$")&&!p.includes("anonymous")){const m=ge(p),v=Re(t,m);if(v){const f=await ut(t,v,"",1,1);if(f.originalFilePath)return{...a,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return a}try{const p=ge(s),g=Re(t,p);if(!g)return a;const m=await ut(t,g,s,l,c);return{...a,column:m.originalFileColumn,file:m.originalFilePath,line:m.originalFileLine}}catch{return a}}));return ur(i,{header:r})},"remapStackToOriginal");var Ca=Object.defineProperty,De=x((t,e)=>Ca(t,"name",{value:e,configurable:!0}),"t");const La=De(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),it=De(t=>typeof t=="string"?t:void 0,"getSourceContent"),Ma=De((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Pa=De((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 o=We(e),n=t.indexOf(o);if(n!==-1)return n;for(const[i,a]of t.entries()){if(!a||typeof a!="string")continue;const s=We(a);if(Ma(s,o))return i}return-1},"findSourceIndex"),cr=De((t,e)=>{if(!La(t))return;if(!e&&t.sourcesContent?.[0])return it(t.sourcesContent[0]);const r=Pa(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?it(t.sourcesContent[r]):t.sourcesContent?.[0]?it(t.sourcesContent[0]):void 0},"getSourceFromMap");var za=Object.defineProperty,Fa=x((t,e)=>za(t,"name",{value:e,configurable:!0}),"f");const dr=Fa(async(t,e,r,o)=>{let n,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const s=e.transformResult;s.code&&!i&&(i=s.code),s.map&&!n&&(n=cr(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:o[0];if(a&&(!n||!i))try{const s=await t.transformRequest(a);if(s?.code&&!i&&(i=s.code),s?.map&&!n){const{map:l}=s;typeof l=="object"&&l!==null&&"mappings"in l&&l.mappings!==""&&(n=cr(l,r))}}catch{}if(!n&&e&&typeof e=="object"&&"file"in e&&e.file)try{n=await ft(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:n}},"retrieveSourceTexts");var Ra=Object.defineProperty,Ta=x((t,e)=>Ra(t,"name",{value:e,configurable:!0}),"a");const Aa=Ta((t={})=>{const{classActivePre:e="has-diff",classLineAdd:r="diff add",classLineRemove:o="diff remove"}=t;return{code(n){this.addClassToHast(this.pre,e),n.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,o)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var Ba=Object.defineProperty,ja=x((t,e)=>Ba(t,"name",{value:e,configurable:!0}),"r");const Da=ja((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var Ia=Object.defineProperty,Oa=x((t,e)=>Ia(t,"name",{value:e,configurable:!0}),"e");const Ha=Oa(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var qa=Object.defineProperty,$e=x((t,e)=>qa(t,"name",{value:e,configurable:!0}),"E$1");const Za=$e(t=>Array.isArray(t)&&gi(t)?mi(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):fa(t),"extractIndividualErrors"),Va=$e(t=>{const e=ye(t,{frameLimit:10}),r=e?.find(o=>o?.file?.startsWith("http"))||e?.[0];return{compiledColumn:r?.column??0,compiledFilePath:r?.file??"",compiledLine:r?.line??0}},"extractLocationFromStack"),Na=$e(async(t,e,r,o,n,i,a=0,s)=>{const l=n?.originalFilePath||e,c=n?.line??o,p=n?.column??r;if(l){let g=l,m=l;if(l.startsWith("http://")||l.startsWith("https://"))try{g=new URL(l).pathname,g.startsWith("/")&&(g=g.slice(1));const C=t.config.root||process.cwd();m=g.startsWith("/")?g:`${C}/${g}`}catch{console.warn("Failed to parse HTTP URL:",l)}const v=ge(g),f=Re(t,v);if(f)try{const C=await ut(t,f,e||s||g,c,p,i,a),F=m||C.originalFilePath;return{originalFileColumn:C.originalFileColumn,originalFileLine:C.originalFileLine,originalFilePath:F}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let h,b=p;return c>=20?h=Math.max(1,Math.round(c*.5)):c>15?h=Math.max(1,Math.round(c*.6)):c>10?h=Math.max(1,c-8):h=Math.max(1,c-3),p>=10||p>7?b=Math.max(0,p-1):p>5&&(b=Math.max(0,p)),{originalFileColumn:b,originalFileLine:h,originalFilePath:m||l}}return{originalFileColumn:p,originalFileLine:c,originalFilePath:l}},"resolveOriginalLocationInfo"),Ua=$e((t,e,r,o,n,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:r,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:o,originalFileLine:n,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),Wa=$e(async(t,e,r,o,n,i)=>{let a,s;const l=_e(r)||"text",c=_e(o)||l,p=[],g=new Set([c,l]);g.has("svelte")&&p.push(import("@shikijs/langs/svelte")),g.has("vue")&&p.push(import("@shikijs/langs/vue"));const m=await Pr(p),v={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{a=m.codeToHtml(t,{...v,lang:l,transformers:[Kt([{classes:["error-line"],line:n}])]})}catch{}if(e&&e.trim())try{s=m.codeToHtml(e,{...v,lang:c,transformers:[Kt([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:s,originalCodeFrameContent:a}},"generateSyntaxHighlightedFrames"),Ga=$e(async(t,e,r=0,o,n,i)=>{const a=o==="vue"&&t?.message?ba(t.message):void 0,s=Za(t),l=s[0]||t,c=o==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let p="";if(i&&i.length>1)for(const L of i.slice(1)){const R=L.stack||"",B=ye({stack:R},{frameLimit:10})?.find(ne=>ne?.file?.startsWith("http"));if(B?.file&&(p=Ha(B.file),p))break}const g=ga(l),m=et(l.stack||""),v=await Ea(e,m,{message:g,name:l.name});let f,h,b;if(n?.file&&n?.line&&n?.column)f=n.column,h=n.file,b=n.line;else{const L=Va(l);if(f=L.compiledColumn,h=L.compiledFilePath,b=L.compiledLine,h&&!h.startsWith("http")){const R=e.config.root;let B=h;h.startsWith(R)&&(B=h.slice(R.length)),B.startsWith("/")||(B=`/${B}`);const ne=e.config.server.port||e.config.preview?.port||5173,le=e.config.server.host||e.config.preview?.host||"localhost";let re=`${e.config.server.https?"https":"http"}://${le}:${ne}${B}`;p&&(re=Da(re,p)),h=re}}if(c){const L=_a(t);if(L){const R=await Pr();return{errorCount:1,fixPrompt:Ot({applicationType:void 0,error:l,file:{file:h,language:"jsx",line:b,snippet:L}}),message:l.message,originalCodeFrameContent:R.codeToHtml(L,{lang:h?_e(h):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[Aa()]}),originalFileColumn:f,originalFileLine:b,originalFilePath:h,originalSnippet:L,originalStack:l.stack||""}}}let C=n?.file||h;if(!n?.file&&l.stack){const L=ye(l,{frameLimit:10})?.find(R=>R?.file&&!R.file.startsWith("http")&&!R.file.includes("node_modules")&&!R.file.includes(".vite")&&R.file.includes(".tsx"));L?.file&&(C=L.file)}let{originalFileColumn:F,originalFileLine:S,originalFilePath:A}=await Na(e,C,f,b,a,l.message,r,h);const ee=n?.plugin;let _="",te="",D,q;try{const[L,R]=await Promise.all([Re(e,ge(h)),Re(e,ge(A))]);if(!L&&!R)return Ua(f,h,b,F,S,A);const B=h.startsWith("http")?h.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):h,ne=A.startsWith("http")?A.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):A,le=L||R;if(le?.transformResult?.code&&(q=le.transformResult.code),R?.transformResult?.map&&!D){const Z=R.transformResult.map;try{const W=Z.sourcesContent?.[0];W&&(D=W)}catch(W){console.warn("Failed to get original source from source map:",W)}}const[re,Se]=await Promise.all([!q&&L?dr(e,L,B,ge(B)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!D&&R?dr(e,R,ne,ge(ne)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!q&&re.compiledSourceText&&({compiledSourceText:q}=re),!D&&Se.originalSourceText&&({originalSourceText:D}=Se),D){if(q&&S<=0&&b>0){const Z=Li(q,b,f,D);Z&&(S=Z.line,F=Z.column)}try{_=It(D,{start:{column:Math.max(1,F),line:Math.max(1,S)}},{showGutter:!1})}catch{_=D?.slice(0,500)||""}}const X=q&&b>0,Q=S>0&&F>0;let he=!1;if(X&&b>0&&l.message&&q){const Z=q.split(`
1166
- `)[b-1];if(Z&&f<=Z.length){const W=l.message,ue=Math.max(0,f-1),ie=new Set(Z.slice(Math.max(0,ue)));he=ie.has("new Error(")||ie.has("throw new Error")||ie.has("throw ")||ie.has(W.slice(0,20)),!he&&Q&&(A.includes(".svelte")||A.includes(".vue")||A.includes(".astro")||h.includes(".js")||h.includes(".ts"))&&(he=!0)}}if(X&&he&&q){const Z=q.split(`
1167
- `),W=Z.length,ue=Math.min(b,W)||Math.max(1,W-2),ie=Z[ue-1]?Math.min(f||1,Z[ue-1]?.length||1):1;try{te=It(q,{start:{column:ie,line:ue}},{showGutter:!1})}catch(Ee){console.warn("Compiled codeFrame failed:",Ee),te=q?.slice(0,500)||""}}}catch(L){console.warn("Source retrieval failed:",L)}const{compiledCodeFrameContent:tt,originalCodeFrameContent:Ie}=await Wa(_,te,A,h,S,b);let se=_;if(!se&&D){const L=D.split(`
1168
- `),R=Math.max(0,S-3),B=Math.min(L.length,S+2);se=L.slice(R,B).join(`
1169
- `)}se||(se=te||`Error at line ${S} in ${A}`);const rt=Ot({applicationType:void 0,error:t,file:{file:A,language:_e(A),line:S,snippet:se}});return{compiledCodeFrameContent:tt,compiledColumn:f,compiledFilePath:h,compiledLine:b,compiledStack:ur(ye({message:g,name:l.name,stack:m}),{header:{message:g,name:l.name}}),errorCount:s.length,fixPrompt:rt,originalCodeFrameContent:Ie,originalFileColumn:F,originalFileLine:S,originalFilePath:A,originalSnippet:_,originalStack:v||m,plugin:ee}},"buildExtendedErrorData");var Xa=Object.defineProperty,ae=x((t,e)=>Xa(t,"name",{value:e,configurable:!0}),"o");const Qa=/\.mdx$/i,Ya=1,Ja=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Ka=/glob:\s*"(.+)"\s*\(/i,es=ae(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),ts=ae((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),rs=ae(t=>{try{const e=ye(t,{frameLimit:Ya})?.[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"),os=ae(async t=>{try{return await ft(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),ns=ae((t,e)=>{const r=t.id||t.loc?.file||e;r&&Qa.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"),Ir=ae((t,e)=>{const r=t.split(`
1170
- `),o=r.findIndex(i=>i.includes(e));if(o===-1)return;const n=r[o]||"";return{column:Math.max(0,n.indexOf(e))+1,line:o+1}},"findImportLocation"),is=ae(async(t,e,r)=>{const o=Ja.exec(t.message)?.[1];if(o&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${o}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",r&&e)){const n=Ir(r,o);n&&(t.loc={...n,file:e})}},"enhanceFailedLoadError"),as=ae(async(t,e,r)=>{const o=Ka.exec(t.message)?.[1];if(o&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${o}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",r&&e)){const n=Ir(r,o);n&&(t.loc={...n,file:e})}},"enhanceGlobError"),ss=ae(async(t,e)=>{const r=es(t);ts(e,r);const o=rs(r),n=o?await os(o):void 0;return await is(r,o,n),ns(r,o),await as(r,o,n),r},"enhanceViteSsrError");var ls=Object.defineProperty,H=x((t,e)=>ls(t,"name",{value:e,configurable:!0}),"l");const Xe=H((t,e,r)=>{try{const o=r instanceof Error?r.message:String(r);t.config.logger.error(`${e}: ${o}`,{clear:!0,timestamp:!0})}catch{}},"logError"),cs=H(t=>({error:H(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:H(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),ds=H(()=>{const t=new Map;return{recentErrors:t,shouldSkip:H(e=>{const r=Date.now(),o=t.get(e)||0;return r-o<On?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),Or=H(t=>`${String(t?.message||"")}
1171
- ${String(t?.stack||"")}`,"createErrorSignature"),ps=H(async(t,e,r)=>{try{t.stack=je(et(String(t.stack||"")),e)}catch{}await Er(t,{logger:r})},"processRuntimeError"),hs=H((t,e,r)=>async o=>{const n=o instanceof Error?o:new Error(String(o?.stack||o));try{t.ssrFixStacktrace(n)}catch(i){Xe(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await ss(n,t);Object.assign(n,i)}catch(i){Xe(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{n.stack=je(et(String(n.stack||"")),e)}catch{}await Er(n,{logger:r}),t.ws.send({err:n,type:"error"})},"createUnhandledRejectionHandler"),us=H(async(t,e,r)=>{let o;e.push(hr,di(r),pr);for await(const n of e.toSorted((i,a)=>a.priority-i.priority)){const{handle:i,name:a}=n;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:_e(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(s===void 0)continue;const l=await Zt(s.header??"");o={body:await Zt(s.body??""),header:l};break}catch{continue}}return o},"findSolution"),mt=H(async(t,e,r,o,n,i,a)=>{const s=Io(t);if(s.length===0)throw new Error("No errors found in the error stack");const l=await Promise.all(s.map(async(p,g)=>{let m=o;if(g>0){const h=(p?.stack?.split(`
1172
- `)||[]).find(b=>b.includes("at ")&&!b.includes("node_modules"));if(h){const b=h.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||h.match(/at\s+([^:)]+):(\d+):(\d+)/);if(b){const[,C,F,S]=b;m={column:Number.parseInt(S||"0",10),file:C,line:Number.parseInt(F||"0",10),plugin:o?.plugin}}}}let v=m;g===0&&p?.sourceFile&&(v={...m,file:p.sourceFile});const f=await Ga(p,e,g,a,v,s);return{hint:p?.hint,message:p?.message||"",name:p?.name||Lr,stack:je(et(p?.stack||""),r),...f}})),c=await us(l[0],i,r);return{errors:l,errorType:n,rootPath:r,solution:c}},"buildExtendedError"),gs=H((t,e)=>{const r=String.raw`var orig = console.error;
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=ke({stack:n}),i=await Promise.all(o.map(async s=>{const{file:a}=s,l=s.line??0,c=s.column??0;if(a&&a!=="<unknown>"&&l>0&&c>0&&!a.includes("react-dom")&&!a.includes("react"))return s;if(!a||l<=0||c<=0){if((a==="<unknown>"||a&&(a.includes("react-dom")||a.includes("react")))&&s.methodName){const{methodName:p}=s,g={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[m,v]of Object.entries(g))if(p.includes(m))return{...s,column:0,file:`[React] ${v}`,line:0};if(!p.includes("$")&&!p.includes("anonymous")){const m=ge(p),v=Fe(t,m);if(v){const f=await gt(t,v,"",1,1);if(f.originalFilePath)return{...s,column:f.originalFileColumn||1,file:f.originalFilePath,line:f.originalFileLine||1}}}}return s}try{const p=ge(a),g=Fe(t,p);if(!g)return s;const m=await gt(t,g,a,l,c);return{...s,column:m.originalFileColumn,file:m.originalFilePath,line:m.originalFileLine}}catch{return s}}));return mr(i,{header:r})},"remapStackToOriginal");var Ps=Object.defineProperty,De=x((t,e)=>Ps(t,"name",{value:e,configurable:!0}),"t");const Ms=De(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),st=De(t=>typeof t=="string"?t:void 0,"getSourceContent"),zs=De((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Fs=De((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=We(e),o=t.indexOf(n);if(o!==-1)return o;for(const[i,s]of t.entries()){if(!s||typeof s!="string")continue;const a=We(s);if(zs(a,n))return i}return-1},"findSourceIndex"),pr=De((t,e)=>{if(!Ms(t))return;if(!e&&t.sourcesContent?.[0])return st(t.sourcesContent[0]);const r=Fs(t.sources,e||"");return r>=0&&t.sourcesContent?.[r]?st(t.sourcesContent[r]):t.sourcesContent?.[0]?st(t.sourcesContent[0]):void 0},"getSourceFromMap");var Rs=Object.defineProperty,As=x((t,e)=>Rs(t,"name",{value:e,configurable:!0}),"f");const hr=As(async(t,e,r,n)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const a=e.transformResult;a.code&&!i&&(i=a.code),a.map&&!o&&(o=pr(a.map,r))}const s=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(s&&(!o||!i))try{const a=await t.transformRequest(s);if(a?.code&&!i&&(i=a.code),a?.map&&!o){const{map:l}=a;typeof l=="object"&&l!==null&&"mappings"in l&&l.mappings!==""&&(o=pr(l,r))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await vt(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var Hs=Object.defineProperty,Is=x((t,e)=>Hs(t,"name",{value:e,configurable:!0}),"a");const Ds=Is((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 s of i.children){if(s.type!=="element")continue;const a=s.children[0];a.type==="text"&&(a.value.startsWith("[!code ++]")&&(a.value=a.value.slice(10),this.addClassToHast(i,r)),a.value.startsWith("[!code --]")&&(a.value=a.value.slice(10),this.addClassToHast(i,n)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var Bs=Object.defineProperty,js=x((t,e)=>Bs(t,"name",{value:e,configurable:!0}),"r");const Os=js((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var qs=Object.defineProperty,Zs=x((t,e)=>qs(t,"name",{value:e,configurable:!0}),"e");const Vs=Zs(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var Us=Object.defineProperty,$e=x((t,e)=>Us(t,"name",{value:e,configurable:!0}),"E$1");const Ns=$e(t=>Array.isArray(t)&&vi(t)?wi(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):bs(t),"extractIndividualErrors"),Ws=$e(t=>{const e=ke(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=$e(async(t,e,r,n,o,i,s=0,a)=>{const l=o?.originalFilePath||e,c=o?.line??n,p=o?.column??r;if(l){let g=l,m=l;if(l.startsWith("http://")||l.startsWith("https://"))try{g=new URL(l).pathname,g.startsWith("/")&&(g=g.slice(1));const C=t.config.root||process.cwd();m=g.startsWith("/")?g:`${C}/${g}`}catch{console.warn("Failed to parse HTTP URL:",l)}const v=ge(g),f=Fe(t,v);if(f)try{const C=await gt(t,f,e||a||g,c,p,i,s),z=m||C.originalFilePath;return{originalFileColumn:C.originalFileColumn,originalFileLine:C.originalFileLine,originalFilePath:z}}catch{console.warn("⚠️ Source map resolution failed, using estimation")}let h,b=p;return c>=20?h=Math.max(1,Math.round(c*.5)):c>15?h=Math.max(1,Math.round(c*.6)):c>10?h=Math.max(1,c-8):h=Math.max(1,c-3),p>=10||p>7?b=Math.max(0,p-1):p>5&&(b=Math.max(0,p)),{originalFileColumn:b,originalFileLine:h,originalFilePath:m||l}}return{originalFileColumn:p,originalFileLine:c,originalFilePath:l}},"resolveOriginalLocationInfo"),Ys=$e((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"),Xs=$e(async(t,e,r,n,o,i)=>{let s,a;const l=_e(r)||"text",c=_e(n)||l,p=[],g=new Set([c,l]);g.has("svelte")&&p.push(import("@shikijs/langs/svelte")),g.has("vue")&&p.push(import("@shikijs/langs/vue"));const m=await zr(p),v={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{s=m.codeToHtml(t,{...v,lang:l,transformers:[tr([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{a=m.codeToHtml(e,{...v,lang:c,transformers:[tr([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:a,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),Qs=$e(async(t,e,r=0,n,o,i)=>{const s=n==="vue"&&t?.message?xs(t.message):void 0,a=Ns(t),l=a[0]||t,c=n==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let p="";if(i&&i.length>1)for(const L of i.slice(1)){const F=L.stack||"",H=ke({stack:F},{frameLimit:10})?.find(oe=>oe?.file?.startsWith("http"));if(H?.file&&(p=Vs(H.file),p))break}const g=vs(l),m=tt(l.stack||""),v=await Ts(e,m,{message:g,name:l.name});let f,h,b;if(o?.file&&o?.line&&o?.column)f=o.column,h=o.file,b=o.line;else{const L=Ws(l);if(f=L.compiledColumn,h=L.compiledFilePath,b=L.compiledLine,h&&!h.startsWith("http")){const F=e.config.root;let H=h;h.startsWith(F)&&(H=h.slice(F.length)),H.startsWith("/")||(H=`/${H}`);const oe=e.config.server.port||e.config.preview?.port||5173,le=e.config.server.host||e.config.preview?.host||"localhost";let re=`${e.config.server.https?"https":"http"}://${le}:${oe}${H}`;p&&(re=Os(re,p)),h=re}}if(c){const L=Ss(t);if(L){const F=await zr();return{errorCount:1,fixPrompt:jt({applicationType:void 0,error:l,file:{file:h,language:"jsx",line:b,snippet:L}}),message:l.message,originalCodeFrameContent:F.codeToHtml(L,{lang:h?_e(h):"text",themes:{dark:"github-dark-default",light:"github-light"},transformers:[Ds()]}),originalFileColumn:f,originalFileLine:b,originalFilePath:h,originalSnippet:L,originalStack:l.stack||""}}}let C=o?.file||h;if(!o?.file&&l.stack){const L=ke(l,{frameLimit:10})?.find(F=>F?.file&&!F.file.startsWith("http")&&!F.file.includes("node_modules")&&!F.file.includes(".vite")&&F.file.includes(".tsx"));L?.file&&(C=L.file)}let{originalFileColumn:z,originalFileLine:E,originalFilePath:A}=await Gs(e,C,f,b,s,l.message,r,h);const ee=o?.plugin;let _="",te="",D,q;try{const[L,F]=await Promise.all([Fe(e,ge(h)),Fe(e,ge(A))]);if(!L&&!F)return Ys(f,h,b,z,E,A);const H=h.startsWith("http")?h.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):h,oe=A.startsWith("http")?A.replace(/^https?:\/\/[^/]+/,"").replace(/^\//,""):A,le=L||F;if(le?.transformResult?.code&&(q=le.transformResult.code),F?.transformResult?.map&&!D){const Z=F.transformResult.map;try{const W=Z.sourcesContent?.[0];W&&(D=W)}catch(W){console.warn("Failed to get original source from source map:",W)}}const[re,Ee]=await Promise.all([!q&&L?hr(e,L,H,ge(H)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0}),!D&&F?hr(e,F,oe,ge(oe)):Promise.resolve({compiledSourceText:void 0,originalSourceText:void 0})]);if(!q&&re.compiledSourceText&&({compiledSourceText:q}=re),!D&&Ee.originalSourceText&&({originalSourceText:D}=Ee),D){if(q&&E<=0&&b>0){const Z=Mi(q,b,f,D);Z&&(E=Z.line,z=Z.column)}try{_=Bt(D,{start:{column:Math.max(1,z),line:Math.max(1,E)}},{showGutter:!1})}catch{_=D?.slice(0,500)||""}}const Y=q&&b>0,X=E>0&&z>0;let he=!1;if(Y&&b>0&&l.message&&q){const Z=q.split(`
1729
+ `)[b-1];if(Z&&f<=Z.length){const W=l.message,ue=Math.max(0,f-1),ie=new Set(Z.slice(Math.max(0,ue)));he=ie.has("new Error(")||ie.has("throw new Error")||ie.has("throw ")||ie.has(W.slice(0,20)),!he&&X&&(A.includes(".svelte")||A.includes(".vue")||A.includes(".astro")||h.includes(".js")||h.includes(".ts"))&&(he=!0)}}if(Y&&he&&q){const Z=q.split(`
1730
+ `),W=Z.length,ue=Math.min(b,W)||Math.max(1,W-2),ie=Z[ue-1]?Math.min(f||1,Z[ue-1]?.length||1):1;try{te=Bt(q,{start:{column:ie,line:ue}},{showGutter:!1})}catch(Se){console.warn("Compiled codeFrame failed:",Se),te=q?.slice(0,500)||""}}}catch(L){console.warn("Source retrieval failed:",L)}const{compiledCodeFrameContent:rt,originalCodeFrameContent:Be}=await Xs(_,te,A,h,E,b);let ae=_;if(!ae&&D){const L=D.split(`
1731
+ `),F=Math.max(0,E-3),H=Math.min(L.length,E+2);ae=L.slice(F,H).join(`
1732
+ `)}ae||(ae=te||`Error at line ${E} in ${A}`);const nt=jt({applicationType:void 0,error:t,file:{file:A,language:_e(A),line:E,snippet:ae}});return{compiledCodeFrameContent:rt,compiledColumn:f,compiledFilePath:h,compiledLine:b,compiledStack:mr(ke({message:g,name:l.name,stack:m}),{header:{message:g,name:l.name}}),errorCount:a.length,fixPrompt:nt,originalCodeFrameContent:Be,originalFileColumn:z,originalFileLine:E,originalFilePath:A,originalSnippet:_,originalStack:v||m,plugin:ee}},"buildExtendedErrorData");var Js=Object.defineProperty,se=x((t,e)=>Js(t,"name",{value:e,configurable:!0}),"o");const Ks=/\.mdx$/i,ea=1,ta=/Failed to load url\s+(.*?)\s+\(resolved id:/i,ra=/glob:\s*"(.+)"\s*\(/i,na=se(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),oa=se((t,e)=>{try{t.ssrFixStacktrace(e)}catch(r){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",r)}},"safeSsrFixStacktrace"),ia=se(t=>{try{const e=ke(t,{frameLimit:ea})?.[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"),sa=se(async t=>{try{return await vt(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),aa=se((t,e)=>{const r=t.id||t.loc?.file||e;r&&Ks.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"),Or=se((t,e)=>{const r=t.split(`
1733
+ `),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"),la=se(async(t,e,r)=>{const n=ta.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=Or(r,n);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),ca=se(async(t,e,r)=>{const n=ra.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=Or(r,n);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),da=se(async(t,e)=>{const r=na(t);oa(e,r);const n=ia(r),o=n?await sa(n):void 0;return await la(r,n,o),aa(r,n),await ca(r,n,o),r},"enhanceViteSsrError");var pa=Object.defineProperty,O=x((t,e)=>pa(t,"name",{value:e,configurable:!0}),"l");const Ye=O((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"),ha=O(t=>({error:O(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:O(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),ua=O(()=>{const t=new Map;return{recentErrors:t,shouldSkip:O(e=>{const r=Date.now(),n=t.get(e)||0;return r-n<qo?!0:(t.set(e,r),!1)},"shouldSkip")}},"createRecentErrorTracker"),qr=O(t=>`${String(t?.message||"")}
1734
+ ${String(t?.stack||"")}`,"createErrorSignature"),ga=O(async(t,e,r)=>{try{t.stack=Ie(tt(String(t.stack||"")),e)}catch{}await Lr(t,{logger:r})},"processRuntimeError"),ma=O((t,e,r)=>async n=>{const o=n instanceof Error?n:new Error(String(n?.stack||n));try{t.ssrFixStacktrace(o)}catch(i){Ye(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await da(o,t);Object.assign(o,i)}catch(i){Ye(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=Ie(tt(String(o.stack||"")),e)}catch{}await Lr(o,{logger:r}),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),fa=O(async(t,e,r)=>{let n;e.push(gr,ui(r),ur);for await(const o of e.toSorted((i,s)=>s.priority-i.priority)){const{handle:i,name:s}=o;if(process.env.DEBUG&&console.debug(`Running solution finder: ${s}`),typeof i=="function")try{const a=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:_e(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(a===void 0)continue;const l=await Zt(a.header??"");n={body:await Zt(a.body??""),header:l};break}catch{continue}}return n},"findSolution"),ft=O(async(t,e,r,n,o,i,s)=>{const a=On(t);if(a.length===0)throw new Error("No errors found in the error stack");const l=await Promise.all(a.map(async(p,g)=>{let m=n;if(g>0){const h=(p?.stack?.split(`
1735
+ `)||[]).find(b=>b.includes("at ")&&!b.includes("node_modules"));if(h){const b=h.match(/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/)||h.match(/at\s+([^:)]+):(\d+):(\d+)/);if(b){const[,C,z,E]=b;m={column:Number.parseInt(E||"0",10),file:C,line:Number.parseInt(z||"0",10),plugin:n?.plugin}}}}let v=m;g===0&&p?.sourceFile&&(v={...m,file:p.sourceFile});const f=await Qs(p,e,g,s,v,a);return{hint:p?.hint,message:p?.message||"",name:p?.name||Pr,stack:Ie(tt(p?.stack||""),r),...f}})),c=await fa(l[0],i,r);return{errors:l,errorType:o,rootPath:r,solution:c}},"buildExtendedError"),va=O((t,e)=>{const r=String.raw`var orig = console.error;
1173
1736
 
1174
1737
  console.error = function() {
1175
1738
  function parseConsoleArgs(args) {
@@ -1263,7 +1826,7 @@ async function sendError(error, loc) {
1263
1826
 
1264
1827
  var causeChain = extractCauseChain(error);
1265
1828
 
1266
- hot.send('${Cr}', {
1829
+ hot.send('${Tr}', {
1267
1830
  name: error?.name || null,
1268
1831
  message: error.message,
1269
1832
  stack: error.stack,
@@ -1310,6 +1873,6 @@ window.addEventListener("unhandledrejection", function (evt) {
1310
1873
  window.__flameSendError = sendError;
1311
1874
 
1312
1875
  ${e?r:""}
1313
- `},"generateClientScript"),Mt=H(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=Mt(t.cause)),e},"reconstructCauseChain"),ms=H((t,e,r,o,n,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:c}=s,p=Or(c);if(e(p))return;if(c.message?.includes("Failed to resolve import")){const g=c.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(g){const m=g[2],v=new Error(c.message);v.name="ImportResolutionError",v.stack=c.stack;const f=await mt(v,t,o,{column:c.loc?.column||1,file:m,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",n,i);s.err=f,r.set(JSON.stringify(f),Date.now())}}else{const g=String(c?.name||"Error"),m=String(c.message),v=String(c.stack),f=new Error(m);f.name=g,f.stack=`${g}: ${m}
1314
- ${je(v,o)}`,c.cause&&(f.cause=Mt(c.cause));const h=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,b=await mt(f,t,o,h,"server",n,i);s.err=b,r.set(JSON.stringify(b),Date.now())}}a(s,l)}catch(c){Xe(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),l.send(s,l)}}},"setupWebSocketInterception"),fs=H((t,e,r,o,n,i,a,s)=>{t.ws.on(Cr,async(l,c)=>{if(!a)return;const p=l&&typeof l=="object"?l:{message:qn,stack:""},g=Or(p);if(r(g))return;const m=String(p?.name||"Error"),v=String(p.message),f=String(p.stack),h=new Error(v);h.name=m,h.stack=`${m}: ${v}
1315
- ${je(f,n)}`,p.cause&&(h.cause=Mt(p.cause));try{await ps(h,n,e);const b=await mt(h,t,n,{column:p?.column,file:p?.file,line:p?.line,plugin:p?.plugin},"client",i,s);o.set(JSON.stringify(b),Date.now());const C={err:b,type:"error"};b.solution&&(C.solutions=b.solution),c.send(C)}catch(b){Xe(t,"[visulima:vite-overlay:server] failed to build extended client error",b),c.send({err:{message:b.message,name:String(b.name||Lr),stack:b.stack},type:"error"})}})},"setupHMRHandler"),vs=H((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"),ws=H((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"),Ds=H(t=>{let e,r,o;return{apply:"serve",config(n,i){return n.plugins&&(r=vs(n.plugins,t?.reactPluginName),o=ws(n.plugins,t?.vuePluginName)),e=i.mode||"development",n},configureServer(n){const i=n.config.root||process.cwd(),a=cs(n),{recentErrors:s,shouldSkip:l}=ds(),c=n.transformRequest.bind(n);n.transformRequest=async(m,v)=>{try{return await c(m,v)}catch(f){if(f?.message?.includes("Failed to resolve import")){const h=f.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(h){const[,b,C]=h;f.sourceFile=C,f.importPath=b}}throw f}};let p;r?p="react":o&&(p="vue"),ms(n,l,s,i,t?.solutionFinders??[],p),fs(n,a,l,s,i,t?.solutionFinders??[],t?.logClientRuntimeError??!0,p);const g=hs(n,i,a);process.on("unhandledRejection",g),n.httpServer?.on("close",()=>{process.off("unhandledRejection",g)})},enforce:"pre",name:Hn,transform(n,i,a){return a?.ssr||!(i.includes("vite/dist/client/client.mjs")||i.includes("/@vite/client"))?null:Qn(n,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:gs(e,r),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Ds as default};
1876
+ `},"generateClientScript"),Tt=O(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=Tt(t.cause)),e},"reconstructCauseChain"),wa=O((t,e,r,n,o,i)=>{const s=t.ws.send.bind(t.ws);t.ws.send=async(a,l)=>{try{if(a&&typeof a=="object"&&a.type==="error"&&a.err){const{err:c}=a,p=qr(c);if(e(p))return;if(c.message?.includes("Failed to resolve import")){const g=c.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(g){const m=g[2],v=new Error(c.message);v.name="ImportResolutionError",v.stack=c.stack;const f=await ft(v,t,n,{column:c.loc?.column||1,file:m,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",o,i);a.err=f,r.set(JSON.stringify(f),Date.now())}}else{const g=String(c?.name||"Error"),m=String(c.message),v=String(c.stack),f=new Error(m);f.name=g,f.stack=`${g}: ${m}
1877
+ ${Ie(v,n)}`,c.cause&&(f.cause=Tt(c.cause));const h=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,b=await ft(f,t,n,h,"server",o,i);a.err=b,r.set(JSON.stringify(b),Date.now())}}s(a,l)}catch(c){Ye(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),l.send(a,l)}}},"setupWebSocketInterception"),ba=O((t,e,r,n,o,i,s,a)=>{t.ws.on(Tr,async(l,c)=>{if(!s)return;const p=l&&typeof l=="object"?l:{message:Vo,stack:""},g=qr(p);if(r(g))return;const m=String(p?.name||"Error"),v=String(p.message),f=String(p.stack),h=new Error(v);h.name=m,h.stack=`${m}: ${v}
1878
+ ${Ie(f,o)}`,p.cause&&(h.cause=Tt(p.cause));try{await ga(h,o,e);const b=await ft(h,t,o,{column:p?.column,file:p?.file,line:p?.line,plugin:p?.plugin},"client",i,a);n.set(JSON.stringify(b),Date.now());const C={err:b,type:"error"};b.solution&&(C.solutions=b.solution),c.send(C)}catch(b){Ye(t,"[visulima:vite-overlay:server] failed to build extended client error",b),c.send({err:{message:b.message,name:String(b.name||Pr),stack:b.stack},type:"error"})}})},"setupHMRHandler"),ya=O((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"),ka=O((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"),Oa=O((t={})=>{let e,r,n;return{apply:"serve",config(o,i){return o.plugins&&(r=ya(o.plugins,t?.reactPluginName),n=ka(o.plugins,t?.vuePluginName)),e=i.mode||"development",o},configureServer(o){const i=o.config.root||process.cwd(),s=ha(o),{recentErrors:a,shouldSkip:l}=ua(),c=o.transformRequest.bind(o);o.transformRequest=async(m,v)=>{try{return await c(m,v)}catch(f){if(f?.message?.includes("Failed to resolve import")){const h=f.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(h){const[,b,C]=h;f.sourceFile=C,f.importPath=b}}throw f}};let p;r?p="react":n&&(p="vue"),wa(o,l,a,i,t?.solutionFinders??[],p),ba(o,s,l,a,i,t?.solutionFinders??[],t?.logClientRuntimeError??!0,p);const g=ma(o,i,s);process.on("unhandledRejection",g),o.httpServer?.on("close",()=>{process.off("unhandledRejection",g)})},enforce:"pre",name:Zo,transform(o,i,s){return s?.ssr||!(i.includes("vite/dist/client/client.mjs")||i.includes("/@vite/client"))?null:Ko(o,t?.showBallonButton??!0)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:va(e,r),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Oa as default};