@visulima/vite-overlay 2.0.0-alpha.6 → 2.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/index.js +418 -330
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
]`).replace("lheading",
|
|
1
|
+
var Ui=Object.defineProperty;var b=(t,e)=>Ui(t,"name",{value:e,configurable:!0});import{createRequire as Gi}from"node:module";import{codeToANSI as Zi}from"@shikijs/cli";import{renderError as Yi,getErrorCauses as Xi}from"@visulima/error/error";import{errorHintFinder as Qi,ruleBasedFinder as Ji}from"@visulima/error/solution";import{distance as pt}from"fastest-levenshtein";import{parseStacktrace as Ne,formatStacktrace as $r,codeFrame as Gn}from"@visulima/error";import It from"@visulima/error/solution/ai/prompt";const Wi=Gi(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$t=b(t=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[e,n]=Ke.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return Ke.getBuiltinModule(t)}return Wi(t)},"__cjs_getBuiltinModule"),{stripVTControlCharacters:Vi,styleText:Un}=$t("node:util"),Ki=$t("node:fs"),se=$t("node:path"),{readFile:_r}=$t("node:fs/promises");var es=Object.defineProperty,M=b((t,e)=>es(t,"name",{value:e,configurable:!0}),"k$4");function Et(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}b(Et,"v$7");M(Et,"M");var Pe=Et();function tn(t){Pe=t}b(tn,"le");M(tn,"H");var Ee={exec:M(()=>null,"exec")};function z(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:M((o,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(te.caret,"$1"),n=n.replace(o,s),r},"replace"),getRegex:M(()=>new RegExp(n,e),"getRegex")};return r}b(z,"p$6");M(z,"k");var ts=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),te={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\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"),blockquoteBeginRegex:M(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`),"blockquoteBeginRegex")},ns=/^(?:[ \t]*(?:\n|$))+/,rs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,os=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,st=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,is=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Er=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Sr=z(Er).replace(/bull/g,nn).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(),ss=z(Er).replace(/bull/g,nn).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(),rn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,as=/^[^\n]+/,on=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ls=z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",on).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cs=z(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nn).getRegex(),St="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",sn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ds=z("^ {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",sn).replace("tag",St).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Cr=z(rn).replace("hr",st).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex(),us=z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Cr).getRegex(),an={blockquote:us,code:rs,def:ls,fences:os,heading:is,hr:st,html:ds,lheading:Sr,list:cs,newline:ns,paragraph:Cr,table:Ee,text:as},Wn=z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",st).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex(),ps={...an,lheading:ss,table:Wn,paragraph:z(rn).replace("hr",st).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex()},hs={...an,html:z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sn).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:Ee,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:z(rn).replace("hr",st).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",Sr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ms=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lr=/^( {2,}|\\)\n(?!\s*$)/,fs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ct=/[\p{P}\p{S}]/u,ln=/[\s\p{P}\p{S}]/u,Tr=/[^\s\p{P}\p{S}]/u,vs=z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ln).getRegex(),Pr=/(?!~)[\p{P}\p{S}]/u,ws=/(?!~)[\s\p{P}\p{S}]/u,bs=/(?:[^\s\p{P}\p{S}]|~)/u,Rr=/(?![*_])[\p{P}\p{S}]/u,ys=/(?![*_])[\s\p{P}\p{S}]/u,xs=/(?:[^\s\p{P}\p{S}]|[*_])/u,ks=z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ts?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_s=z(Fr,"u").replace(/punct/g,Ct).getRegex(),$s=z(Fr,"u").replace(/punct/g,Pr).getRegex(),zr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Es=z(zr,"gu").replace(/notPunctSpace/g,Tr).replace(/punctSpace/g,ln).replace(/punct/g,Ct).getRegex(),Ss=z(zr,"gu").replace(/notPunctSpace/g,bs).replace(/punctSpace/g,ws).replace(/punct/g,Pr).getRegex(),Cs=z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tr).replace(/punctSpace/g,ln).replace(/punct/g,Ct).getRegex(),Ls=z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Rr).getRegex(),Ts="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ps=z(Ts,"gu").replace(/notPunctSpace/g,xs).replace(/punctSpace/g,ys).replace(/punct/g,Rr).getRegex(),Rs=z(/\\(punct)/,"gu").replace(/punct/g,Ct).getRegex(),Fs=z(/^<(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(),zs=z(sn).replace("(?:-->|$)","-->").getRegex(),Ds=z("^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",zs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ft=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ms=z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ft).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dr=z(/^!?\[(label)\]\[(ref)\]/).replace("label",ft).replace("ref",on).getRegex(),Mr=z(/^!?\[(ref)\](?:\[\])?/).replace("ref",on).getRegex(),As=z("reflink|nolink(?!\\()","g").replace("reflink",Dr).replace("nolink",Mr).getRegex(),Vn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cn={_backpedal:Ee,anyPunctuation:Rs,autolink:Fs,blockSkip:ks,br:Lr,code:ms,del:Ee,delLDelim:Ee,delRDelim:Ee,emStrongLDelim:_s,emStrongRDelimAst:Es,emStrongRDelimUnd:Cs,escape:gs,link:Ms,nolink:Mr,punctuation:vs,reflink:Dr,reflinkSearch:As,tag:Ds,text:fs,url:Ee},Is={...cn,link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",ft).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ft).getRegex()},Ot={...cn,emStrongRDelimAst:Ss,emStrongLDelim:$s,delLDelim:Ls,delRDelim:Ps,url:z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Vn).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:z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Vn).getRegex()},Bs={...Ot,br:z(Lr).replace("{2,}","*").getRegex(),text:z(Ot.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},dt={normal:an,gfm:ps,pedantic:hs},et={normal:cn,gfm:Ot,breaks:Bs,pedantic:Is},js={"&":"&","<":"<",">":">",'"':""","'":"'"},Zn=M(t=>js[t],"de");function ie(t,e){if(e){if(te.escapeTest.test(t))return t.replace(te.escapeReplace,Zn)}else if(te.escapeTestNoEncode.test(t))return t.replace(te.escapeReplaceNoEncode,Zn);return t}b(ie,"y$7");M(ie,"O");function Ht(t){try{t=encodeURI(t).replace(te.percentDecode,"%")}catch{return null}return t}b(Ht,"re$2");M(Ht,"X");function qt(t,e){let n=t.replace(te.findPipe,(i,s,l)=>{let a=!1,c=s;for(;--c>=0&&l[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(te.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(te.slashPipe,"|");return r}b(qt,"ne$2");M(qt,"J");function He(t,e,n){let r=t.length;if(r===0)return"";let o=0;for(;o<r;){let i=t.charAt(r-o-1);if(i===e&&!n)o++;else if(i!==e&&n)o++;else break}return t.slice(0,r-o)}b(He,"_$5");M(He,"C");function Ar(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}b(Ar,"it");M(Ar,"ge");function Ir(t,e=0){let n=e,r="";for(let o of t)if(o===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=o,n++;return r}b(Ir,"at");M(Ir,"fe");function Nt(t,e,n,r,o){let i=e.href,s=e.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}b(Nt,"se$2");M(Nt,"me");function Br(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let o=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let s=i.match(n.other.beginningSpace);if(s===null)return i;let[l]=s;return l.length>=o.length?i.slice(o.length):i}).join(`
|
|
4
|
-
`)}b(
|
|
5
|
-
`)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],o=
|
|
6
|
-
`)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=
|
|
4
|
+
`)}b(Br,"ot");M(Br,"it");var vt=class{static{b(this,"I")}static{M(this,"w")}options;rules;lexer;constructor(e){this.options=e||Pe}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:He(r,`
|
|
5
|
+
`)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],o=Br(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let o=He(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:He(n[0],`
|
|
6
|
+
`)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=He(n[0],`
|
|
7
7
|
`).split(`
|
|
8
8
|
`),o="",i="",s=[];for(;r.length>0;){let l=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),l=!0;else if(!l)a.push(r[c]);else break;r=r.slice(c);let d=a.join(`
|
|
9
|
-
`),
|
|
9
|
+
`),p=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
10
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
11
11
|
${d}`:d,i=i?`${i}
|
|
12
|
-
${
|
|
12
|
+
${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,s,!0),this.lexer.state.top=g,r.length===0)break;let f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let v=f,m=v.raw+`
|
|
13
13
|
`+r.join(`
|
|
14
|
-
`),k=this.blockquote(m);s[s.length-1]=k,o=o.substring(0,o.length-
|
|
14
|
+
`),k=this.blockquote(m);s[s.length-1]=k,o=o.substring(0,o.length-v.raw.length)+k.raw,i=i.substring(0,i.length-v.text.length)+k.text;break}else if(f?.type==="list"){let v=f,m=v.raw+`
|
|
15
15
|
`+r.join(`
|
|
16
|
-
`),k=this.list(m);s[s.length-1]=k,o=o.substring(0,o.length-
|
|
17
|
-
`);continue}}return{type:"blockquote",raw:o,tokens:s,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let s=this.rules.other.listItemRegex(r),l=!1;for(;e;){let c=!1,d="",
|
|
18
|
-
`,1)[0],n[1].length),
|
|
19
|
-
`,1)[0],
|
|
20
|
-
`,e=e.substring(
|
|
21
|
-
`,1)[0],
|
|
22
|
-
`+
|
|
23
|
-
`+v
|
|
24
|
-
`,e=e.substring(A.length+1),
|
|
25
|
-
`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(
|
|
26
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=
|
|
27
|
-
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(
|
|
16
|
+
`),k=this.list(m);s[s.length-1]=k,o=o.substring(0,o.length-f.raw.length)+k.raw,i=i.substring(0,i.length-v.raw.length)+k.raw,r=m.substring(s.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:o,tokens:s,text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let s=this.rules.other.listItemRegex(r),l=!1;for(;e;){let c=!1,d="",p="";if(!(n=s.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let g=Ir(n[2].split(`
|
|
18
|
+
`,1)[0],n[1].length),f=e.split(`
|
|
19
|
+
`,1)[0],v=!g.trim(),m=0;if(this.options.pedantic?(m=2,p=g.trimStart()):v?m=n[1].length+1:(m=g.search(this.rules.other.nonSpaceChar),m=m>4?1:m,p=g.slice(m),m+=n[1].length),v&&this.rules.other.blankLine.test(f)&&(d+=f+`
|
|
20
|
+
`,e=e.substring(f.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),L=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),$=this.rules.other.headingBeginRegex(m),R=this.rules.other.htmlBeginRegex(m),D=this.rules.other.blockquoteBeginRegex(m);for(;e;){let A=e.split(`
|
|
21
|
+
`,1)[0],j;if(f=A,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),j=f):j=f.replace(this.rules.other.tabCharGlobal," "),T.test(f)||$.test(f)||R.test(f)||D.test(f)||k.test(f)||L.test(f))break;if(j.search(this.rules.other.nonSpaceChar)>=m||!f.trim())p+=`
|
|
22
|
+
`+j.slice(m);else{if(v||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(g)||$.test(g)||L.test(g))break;p+=`
|
|
23
|
+
`+f}v=!f.trim(),d+=A+`
|
|
24
|
+
`,e=e.substring(A.length+1),g=j.slice(m)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),i.raw+=d}let a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c of i.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(c.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=p.checked,i.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=p.raw+c.tokens[0].raw,c.tokens[0].text=p.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(p)):c.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):c.tokens.unshift(p)}}if(!i.loose){let d=c.tokens.filter(g=>g.type==="space"),p=d.length>0&&d.some(g=>this.rules.other.anyLine.test(g.raw));i.loose=p}}if(i.loose)for(let c of i.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(e){let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=qt(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let l of o)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(qt(l,s.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:s.align[c]})));return s}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
|
|
26
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=He(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=Ar(n[2],"()");if(s===-2)return;if(s>-1){let l=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(o);s&&(o=s[1],i=s[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),Nt(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Nt(r,i,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,s,l,a=i,c=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+i);(o=d.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=[...s].length,o[3]||o[4]){a+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let p=[...o[0]][0].length,g=e.slice(0,i+o.index+p+l);if(Math.min(i,l)%2){let v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}let f=g.slice(2,-2);return{type:"strong",raw:g,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e,n,r=""){let o=this.rules.inline.delLDelim.exec(e);if(o&&(!o[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,s,l,a=i,c=this.rules.inline.delRDelim;for(c.lastIndex=0,n=n.slice(-1*e.length+i);(o=c.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s||(l=[...s].length,l!==i))continue;if(o[3]||o[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let d=[...o[0]][0].length,p=e.slice(0,i+o.index+d+l),g=p.slice(i,-i);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},he=class Ut{static{b(this,"H")}static{M(this,"u")}tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Pe,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:te,block:dt.normal,inline:et.normal};this.options.pedantic?(n.block=dt.pedantic,n.inline=et.pedantic):this.options.gfm&&(n.block=dt.gfm,this.options.breaks?n.inline=et.breaks:n.inline=et.gfm),this.tokenizer.rules=n}static get rules(){return{block:dt,inline:et}}static lex(e,n){return new Ut(n).lex(e)}static lexInline(e,n){return new Ut(n).inlineTokens(e)}lex(e){e=e.replace(te.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(te.tabCharGlobal," ").replace(te.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(s=>(o=s.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let s=n.at(-1);o.raw.length===1&&s!==void 0?s.raw+=`
|
|
28
28
|
`:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
29
29
|
`)?"":`
|
|
30
30
|
`)+o.raw,s.text+=`
|
|
@@ -37,9 +37,9 @@ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
37
37
|
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(o),r=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=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
38
38
|
`)?"":`
|
|
39
39
|
`)+o.raw,s.text+=`
|
|
40
|
-
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.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,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=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(r))!=null;)a.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=o[2]?o[2].length:0,r=r.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,l="";for(;e;){s||(l=""),s=!1;let a;if(this.options.extensions?.inline?.some(d=>(a=d.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let d=n.at(-1);a.type==="text"&&d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,
|
|
41
|
-
`;return o?'<pre><code class="language-'+
|
|
42
|
-
`:"<pre><code>"+(r?i:
|
|
40
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.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,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=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(r))!=null;)a.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=o[2]?o[2].length:0,r=r.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,l="";for(;e;){s||(l=""),s=!1;let a;if(this.options.extensions?.inline?.some(d=>(a=d.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let d=n.at(-1);a.type==="text"&&d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let c=e;if(this.options.extensions?.startInline){let d=1/0,p=e.slice(1),g;this.options.extensions.startInline.forEach(f=>{g=f.call({lexer:this},p),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(c=e.substring(0,d+1))}if(a=this.tokenizer.inlineText(c)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(l=a.raw.slice(-1)),s=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):n.push(a);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},wt=class{static{b(this,"L")}static{M(this,"y")}options;parser;constructor(e){this.options=e||Pe}space(e){return""}code({text:e,lang:n,escaped:r}){let o=(n||"").match(te.notSpaceStart)?.[0],i=e.replace(te.endingNewline,"")+`
|
|
41
|
+
`;return o?'<pre><code class="language-'+ie(o)+'">'+(r?i:ie(i,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(r?i:ie(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:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
|
|
@@ -55,9 +55,9 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
55
55
|
`}tablerow({text:e}){return`<tr>
|
|
56
56
|
${e}</tr>
|
|
57
57
|
`}tablecell(e){let n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
|
|
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>${
|
|
59
|
-
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+
|
|
60
|
-
@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;--num:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-lime-800:oklch(45.3% .124 130.933);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--radius-md:.375rem;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button:not(:disabled),[role=button]:not(:disabled){cursor:pointer}body{background-color:var(--ono-v-bg);color:var(--ono-v-text)}pre,code{color:var(--ono-v-text)}.text-muted{color:var(--ono-v-text-muted)}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-red-orange)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-v-red-orange) 20%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:.375rem;padding:.125rem .375rem;font:.75rem ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}hr{border-color:var(--ono-v-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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{-webkit-print-color-adjust:exact;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}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;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}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([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}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([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){input:where([type=checkbox]):checked{appearance:auto}}input:where([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){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([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){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([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)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.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-2147483646,.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing) * 1)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-auto{margin-inline:auto}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-3{margin-top:calc(var(--spacing) * -3)}.-mt-5{margin-top:calc(var(--spacing) * -5)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.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-\\(--ono-v-dialog-notch-height\\){height:var(--ono-v-dialog-notch-height)}.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))}.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\\/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-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.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-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-\\(--ono-v-dialog-border-width\\){--tw-translate-x:var(--ono-v-dialog-border-width);translate:var(--tw-translate-x) var(--tw-translate-y)}.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-y-\\(--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-\\(--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-\\(--ono-v-dialog-radius\\){border-top-left-radius:var(--ono-v-dialog-radius)}.rounded-tr-\\(--ono-v-dialog-radius\\){border-top-right-radius:var(--ono-v-dialog-radius)}.rounded-b-\\(--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-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.border-\\(--stroke-color\\){border-color:var(--stroke-color)}.bg-\\(--background-color\\){background-color:var(--background-color)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[\\#b0c8aa\\]{background-color:#b0c8aa}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\\/60{background-color:color-mix(in oklab, var(--color-black) 60%, transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[15px\\]{padding-inline:15px}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pe-6{padding-inline-end:calc(var(--spacing) * 6)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-\\[10vh\\]{padding-top:10vh}.pr-0{padding-right:calc(var(--spacing) * 0)}.pl-0{padding-left:calc(var(--spacing) * 0)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[11px\\]{font-size:11px}.text-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-none{--tw-leading:1;line-height:1}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.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-\\(--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-\\(--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-\\[--ono-v-elevation-2\\]{--tw-shadow:--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-\\(--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-\\(--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-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:brightness-105:hover{--tw-brightness:brightness(105%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.focus\\:bg-\\(--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-\\(--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-\\(--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 --num{syntax:"<integer>";inherits:false;initial-value:0}#__v_o__balloon_count{counter-reset:num var(--num);justify-content:center;align-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;font-weight:700;display:inline-flex;position:relative}#__v_o__balloon_count:after{content:counter(num)}#__v_o__balloon_count.animate-count-up{animation:.6s cubic-bezier(.34,1.56,.64,1) forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}@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 tr=`/* eslint-disable no-bitwise */
|
|
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>${ie(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){let o=this.parser.parseInline(r),i=Ht(e);if(i===null)return o;e=i;let s='<a href="'+e+'"';return n&&(s+=' title="'+ie(n)+'"'),s+=">"+o+"</a>",s}image({href:e,title:n,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=Ht(e);if(i===null)return ie(r);e=i;let s=`<img src="${e}" alt="${ie(r)}"`;return n&&(s+=` title="${ie(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ie(e.text)}},dn=class{static{b(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""}checkbox({raw:e}){return e}},ge=class Gt{static{b(this,"O")}static{M(this,"u")}options;renderer;textRenderer;constructor(e){this.options=e||Pe,this.options.renderer=this.options.renderer||new wt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new dn}static parse(e,n){return new Gt(n).parse(e)}static parseInline(e,n){return new Gt(n).parseInline(e)}parse(e){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let s=o,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=l||"";continue}}let i=o;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,n=this.renderer){let r="";for(let o=0;o<e.length;o++){let i=e[o];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},tt=class{static{b(this,"z")}static{M(this,"P")}options;block;constructor(e){this.options=e||Pe}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?he.lex:he.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},Os=class{static{b(this,"xe")}static{M(this,"B")}defaults=Et();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ge;Renderer=wt;TextRenderer=dn;Lexer=he;Tokenizer=vt;Hooks=tt;constructor(...e){this.use(...e)}walkTokens(e,n){let r=[];for(let o of e)switch(r=r.concat(n.call(this,o)),o.type){case"table":{let i=o;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,n));for(let s of i.rows)for(let l of s)r=r.concat(this.walkTokens(l.tokens,n));break}case"list":{let i=o;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let l=i[s].flat(1/0);r=r.concat(this.walkTokens(l,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=n.renderers[i.name];s?n.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:n.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=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){let i=this.defaults.renderer||new wt(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,a=r.renderer[l],c=i[l];i[l]=(...d)=>{let p=a.apply(i,d);return p===!1&&(p=c.apply(i,d)),p||""}}o.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new vt(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,a=r.tokenizer[l],c=i[l];i[l]=(...d)=>{let p=a.apply(i,d);return p===!1&&(p=c.apply(i,d)),p}}o.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new tt;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let l=s,a=r.hooks[l],c=i[l];tt.passThroughHooks.has(s)?i[l]=d=>{if(this.defaults.async&&tt.passThroughHooksRespectAsync.has(s))return(async()=>{let g=await a.call(i,d);return c.call(i,g)})();let p=a.call(i,d);return c.call(i,p)}:i[l]=(...d)=>{if(this.defaults.async)return(async()=>{let g=await a.apply(i,d);return g===!1&&(g=await c.apply(i,d)),g})();let p=a.apply(i,d);return p===!1&&(p=c.apply(i,d)),p}}o.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;o.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),i&&(a=a.concat(i.call(this,l))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return he.lex(e,n??this.defaults)}parser(e,n){return ge.parse(e,n??this.defaults)}parseMarkdown(e){return(n,r)=>{let o={...r},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 n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let l=i.hooks?await i.hooks.preprocess(n):n,a=await(i.hooks?await i.hooks.provideLexer():e?he.lex:he.lexInline)(l,i),c=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(c,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():e?ge.parse:ge.parseInline)(c,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(n=i.hooks.preprocess(n));let l=(i.hooks?i.hooks.provideLexer():e?he.lex:he.lexInline)(n,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let a=(i.hooks?i.hooks.provideParser():e?ge.parse:ge.parseInline)(l,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(l){return s(l)}}}onError(e,n){return r=>{if(r.message+=`
|
|
59
|
+
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+ie(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}},Te=new Os;function q(t,e){return Te.parse(t,e)}b(q,"d$b");M(q,"g");q.options=q.setOptions=function(t){return Te.setOptions(t),q.defaults=Te.defaults,tn(q.defaults),q};q.getDefaults=Et;q.defaults=Pe;q.use=function(...t){return Te.use(...t),q.defaults=Te.defaults,tn(q.defaults),q};q.walkTokens=function(t,e){return Te.walkTokens(t,e)};q.parseInline=Te.parseInline;q.Parser=ge;q.parser=ge.parse;q.Renderer=wt;q.TextRenderer=dn;q.Lexer=he;q.lexer=he.lex;q.Tokenizer=vt;q.Hooks=tt;q.parse=q;var Yn=q,Hs=Object.defineProperty,qs=b((t,e)=>Hs(t,"name",{value:e,configurable:!0}),"r$4");const Ns=["cjs","mjs"],Us=["mdoc"],Ue=qs(t=>{const e=(t.split("?")[0]??t).split(".").pop()?.toLowerCase();if(!e||Ns.includes(e))return"javascript";if(Us.includes(e))return"markdown";switch(e){case"js":case"cjs":case"mjs":return"javascript";case"json":return"json";case"json5":return"json5";case"jsonc":return"jsonc";case"jsx":return"jsx";case"sql":return"sql";case"ts":case"cts":case"mts":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";case"txt":return"text";default:return"javascript"}},"findLanguageBasedOnExtension"),Gs=500,jr="visulima:vite-overlay:error",Ws="visulima-vite-overlay",Or="Error",Vs="Runtime error",Xn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-left%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%22m15%2018-6-6%206-6%22%20%2F%3E%20%3C%2Fsvg%3E",ut="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-chevron-right%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%22m9%2018%206-6-6-6%22%20%2F%3E%20%3C%2Fsvg%3E",Qn="data:image/svg+xml;charset=utf-8,%3Csvg%20class%3D%22lucide%20lucide-clock%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%206v6l4%202%22%20%2F%3E%20%3C%2Fsvg%3E",Jn="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",Kn="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",er="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",tr="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",bt="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 Wt=(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))(Wt||{}),Zs=`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
60
|
+
@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-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-tracking: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-duration:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--num:0}}}@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-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-widest:.1em;--radius-lg:.5rem;--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,:host{color:var(--ono-v-text);font-feature-settings:"kern" 1, "liga" 1, "calt" 1, "zero" 1;-webkit-font-smoothing:antialiased;box-sizing:border-box;background-color:#0000;font-family:JetBrains Mono,Geist Mono,ui-monospace,Cascadia Code,Fira Code,monospace;font-size:13px;line-height:1.6}pre,code{font-feature-settings:"kern" 1, "liga" 1, "calt" 1, "zero" 1;font-family:JetBrains Mono,Geist Mono,ui-monospace,Cascadia Code,Fira Code,monospace}a{color:var(--ono-v-link)}a:hover{text-decoration:underline}::selection{background:var(--ono-v-primary)}@supports (color:color-mix(in lab, red, red)){::selection{background:color-mix(in srgb, var(--ono-v-primary) 20%, transparent)}}kbd{background-color:var(--ono-v-chip-bg);color:var(--ono-v-chip-text);border-radius:0;padding:.125rem .375rem;font-family:inherit;font-size:.75rem}hr{border-color:var(--ono-v-border)}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([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{-webkit-print-color-adjust:exact;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}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;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}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([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}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([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){input:where([type=checkbox]):checked{appearance:auto}}input:where([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){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([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){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([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)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-4{top:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.left-1\\/2{left:50%}.-z-1{z-index:calc(1 * -1)}.z-1{z-index:1}.z-10{z-index:10}.z-2147483646,.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-1{margin: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-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-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.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-10{height:calc(var(--spacing) * 10)}.h-\\[40vmin\\]{height:40vmin}.max-h-50{max-height:calc(var(--spacing) * 50)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[160px\\]{max-height:160px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.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\\/5{width:80%}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-44{width:calc(var(--spacing) * 44)}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-full{width:100%}.max-w-\\(--ono-v-dialog-max-width\\){max-width:var(--ono-v-dialog-max-width)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.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}.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-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-6{gap:calc(var(--spacing) * 6)}: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-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-\\(--ono-v-border\\){border-color:var(--ono-v-border)}.bg-\\(--ono-v-chip-bg\\){background-color:var(--ono-v-chip-bg)}.bg-\\(--ono-v-red-orange\\){background-color:var(--ono-v-red-orange)}.bg-\\(--ono-v-success-bg\\){background-color:var(--ono-v-success-bg)}.bg-\\(--ono-v-surface\\){background-color:var(--ono-v-surface)}.bg-\\(--ono-v-surface-muted\\){background-color:var(--ono-v-surface-muted)}.bg-\\[\\#282c34\\]{background-color:#282c34}.bg-\\[var\\(--ono-v-surface-muted\\)\\]{background-color:var(--ono-v-surface-muted)}.bg-black\\/65{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.bg-black\\/65{background-color:color-mix(in oklab, var(--color-black) 65%, 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-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.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-\\[8vh\\]{padding-top:8vh}.pr-1{padding-right:calc(var(--spacing) * 1)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.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-\\[calc\\(10px\\+2vmin\\)\\]{font-size:calc(10px + 2vmin)}.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)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\(--ono-v-red-orange\\){color:var(--ono-v-red-orange)}.text-\\(--ono-v-text\\){color:var(--ono-v-text)}.text-\\(--ono-v-text-muted\\){color:var(--ono-v-text-muted)}.text-\\[\\#61dafb\\]{color:#61dafb}.text-\\[var\\(--ono-v-red-orange\\)\\]{color:var(--ono-v-red-orange)}.text-\\[var\\(--ono-v-text\\)\\]{color:var(--ono-v-text)}.text-\\[var\\(--ono-v-text-muted\\)\\]{color:var(--ono-v-text-muted)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-90{opacity:.9}.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-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);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)}.shadow-sm{--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)}.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,)}.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-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))}.transition-transform{transition-property:transform,translate,scale,rotate;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}.\\[vite\\:legacy\\]{vite:legacy}.\\[vite\\:react-babel\\]{vite:react-babel}.\\[vite\\:vue\\]{vite:vue}.hover\\:bg-\\(--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-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-\\(--ono-v-text\\):hover{color:var(--ono-v-text)}.hover\\:text-\\[var\\(--ono-v-text-muted\\)\\]:hover{color:var(--ono-v-text-muted)}.hover\\:underline:hover{text-decoration-line:underline}.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-\\(--ono-v-primary\\):focus{--tw-ring-color:var(--ono-v-primary)}.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-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\(--ono-v-primary\\):focus-visible{outline-color:var(--ono-v-primary)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:bg-white\\/15:active{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/15:active{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.active\\:bg-white\\/20:active{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/20:active{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\\:flex{display:flex}}@media (min-width:48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.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)}}: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:;--brand-violet:#7c3aed;--brand-violet-light:#c4b5fd;--brand-white:#fff;--brand-frost:#f2f2f2;--brand-silver:#d8d8d8;--brand-graphite:#6b6b6b;--brand-iron:#3c3c3c;--brand-charcoal:#212121;--brand-black:#000;--color-background:#f2f2f2;--color-foreground:#18181b;--color-card:#fff;--color-accent:#e4e4e7;--color-muted:#e4e4e7;--color-muted-foreground:#52525b;--color-primary:#7c3aed;--color-primary-foreground:#fff;--color-border:#d4d4d8;--color-ring:#71717a;--color-destructive:oklch(55% .22 25);--color-destructive-foreground:oklch(98% .01 25);--color-success:oklch(48% .18 155);--color-success-foreground:oklch(38% .17 155);--color-warning:oklch(58% .18 65);--color-info:oklch(45% .2 240);--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-primary);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-hover-overlay:color-mix(in srgb, var(--color-foreground) 6%, transparent)}}:host{--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){:host{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}.dark{--color-background:#212121;--color-foreground:#fafafa;--color-card:#18181b;--color-accent:#18181b;--color-muted:#27272a;--color-muted-foreground:#a1a1aa;--color-primary:#c4b5fd;--color-primary-foreground:#09090b;--color-border:oklch(100% 0 0/.1);--color-ring:#71717a;--color-destructive:oklch(65% .2 25);--color-destructive-foreground:oklch(98% .01 25);--color-success:oklch(65% .17 155);--color-success-foreground:oklch(78% .15 155);--color-warning:oklch(78% .16 65);--color-info:oklch(62% .2 240);--ono-v-bg:var(--color-background);--ono-v-surface:var(--color-card);--ono-v-surface-muted:var(--color-accent);--ono-v-border:var(--color-border);--ono-v-text:var(--color-foreground);--ono-v-text-muted:var(--color-muted-foreground);--ono-v-primary:var(--color-primary);--ono-v-red-orange:var(--color-destructive);--ono-v-link:var(--color-primary);--ono-v-chip-bg:var(--color-muted);--ono-v-chip-text:var(--color-foreground);--ono-v-hover-overlay:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-hover-overlay:color-mix(in srgb, var(--color-primary) 8%, transparent)}}.dark{--ono-v-on-accent:var(--color-primary-foreground);--ono-v-neutral:var(--color-muted-foreground);--ono-v-neutral-bg:var(--color-muted);--ono-v-success:var(--color-success);--ono-v-success-bg:var(--color-success)}@supports (color:color-mix(in lab, red, red)){.dark{--ono-v-success-bg:color-mix(in srgb, var(--color-success) 12%, transparent)}}@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}}: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:1px solid var(--ono-v-primary);outline-offset:2px}.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;flex-shrink:0;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}select#editor-selector{background-color:var(--ono-v-surface);color:var(--ono-v-text);border-color:var(--ono-v-border);color-scheme:light}.dark select#editor-selector{color-scheme:dark;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='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")}.v-o-skeleton{background:linear-gradient(90deg, var(--color-muted) 25%, var(--color-muted) 50%, var(--color-muted) 75%)}@supports (color:color-mix(in lab, red, red)){.v-o-skeleton{background:linear-gradient(90deg, var(--color-muted) 25%, color-mix(in srgb, var(--color-muted) 40%, transparent) 50%, var(--color-muted) 75%)}}.v-o-skeleton{background-size:200% 100%;animation:1.8s ease-in-out infinite v-o-skeleton-sweep}@keyframes v-o-skeleton-sweep{0%{background-position:200% 0}to{background-position:-200% 0}}#__v_o__stacktrace summary .dui{transition:transform .2s}#__v_o__stacktrace[open] summary .dui{transform:rotate(90deg)}:has(#__v_o__root){overflow:hidden}#__v_o__root:not(.hidden)~#__v_o__balloon_group{display:none!important}.devtools-content-scroll{scrollbar-width:thin;scrollbar-color:var(--color-border) transparent}.devtools-content-scroll::-webkit-scrollbar{width:5px;height:5px}.devtools-content-scroll::-webkit-scrollbar-track{background:0 0}.devtools-content-scroll::-webkit-scrollbar-thumb{background:var(--color-border)}.devtools-content-scroll::-webkit-scrollbar-thumb:hover{background:var(--color-muted-foreground)}#__v_o__root.scrolling-history{-webkit-user-select:none;user-select:none;cursor:grab}#__v_o__root.scrolling-history:active{cursor:grabbing}@property --num{syntax:"<integer>";inherits:false;initial-value:0}#__v_o__balloon_count{counter-reset:num var(--num);font-variant-numeric:tabular-nums;color:#fff;font-size:13px;font-weight:700;line-height:1}#__v_o__balloon_count:after{content:counter(num)}#__v_o__balloon_count.animate-count-up{animation:.6s cubic-bezier(.34,1.56,.64,1) forwards counter-animate}@keyframes counter-animate{0%{--num:var(--num-start)}to{--num:var(--num-end)}}.v-o-signal-dot{background:#fffffff2;border-radius:50%;flex-shrink:0;width:5px;height:5px;animation:2.6s ease-in-out infinite v-o-signal-dot;display:block;position:relative}.v-o-signal-dot:before{content:"";pointer-events:none;border:1.5px solid #ffffff8c;border-radius:50%;animation:2.6s ease-out infinite v-o-signal-ring;position:absolute;inset:-5px}@keyframes v-o-signal-dot{0%,to{opacity:1;transform:scale(1)}45%{opacity:.4;transform:scale(.65)}}@keyframes v-o-signal-ring{0%{opacity:.8;transform:scale(1)}65%{opacity:0;transform:scale(2.8)}to{opacity:0;transform:scale(2.8)}}@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-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-tracking{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-duration{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@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}@keyframes spin{to{transform:rotate(360deg)}}`;const nr=`/* eslint-disable no-bitwise */
|
|
61
61
|
/* eslint-disable class-methods-use-this */
|
|
62
62
|
/* eslint-disable sonarjs/cognitive-complexity */
|
|
63
63
|
/* eslint-disable no-param-reassign */
|
|
@@ -66,10 +66,20 @@ Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error
|
|
|
66
66
|
/* eslint-disable no-underscore-dangle */
|
|
67
67
|
/* eslint-disable func-names */
|
|
68
68
|
/* eslint-disable no-plusplus */
|
|
69
|
+
/* eslint-disable unused-imports/no-unused-vars */
|
|
70
|
+
/* eslint-disable sonarjs/no-nested-functions */
|
|
71
|
+
/* eslint-disable no-console */
|
|
69
72
|
|
|
70
73
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
71
74
|
// @ts-nocheck
|
|
72
75
|
|
|
76
|
+
// Module-scope static regexes
|
|
77
|
+
const RE_LEADING_SLASH = /^\\//;
|
|
78
|
+
const RE_HTTP_LINK = /^https?:\\/\\//i;
|
|
79
|
+
const RE_FS_PREFIX = /^\\/@fs\\//;
|
|
80
|
+
// eslint-disable-next-line sonarjs/slow-regex, regexp/no-super-linear-backtracking
|
|
81
|
+
const RE_STACK_AT_FRAME = /\\s*at\\s+(?:(.+?)\\s+\\()?(.*?):(\\d+):(\\d+)\\)?/;
|
|
82
|
+
|
|
73
83
|
/**
|
|
74
84
|
* Custom HTML element that displays error overlays in the browser.
|
|
75
85
|
* Provides interactive error display with theme switching, code frames, and navigation.
|
|
@@ -91,8 +101,6 @@ class ErrorOverlay extends HTMLElement {
|
|
|
91
101
|
|
|
92
102
|
static SCROLL_PADDING = 8;
|
|
93
103
|
|
|
94
|
-
static WHEEL_TIMEOUT = 100;
|
|
95
|
-
|
|
96
104
|
// Cached DOM elements for performance
|
|
97
105
|
__elements = {};
|
|
98
106
|
|
|
@@ -170,6 +178,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
170
178
|
errors: error.errors,
|
|
171
179
|
errorType: error.errorType || "server",
|
|
172
180
|
rootPath: error.rootPath || "",
|
|
181
|
+
solution: error.solution,
|
|
173
182
|
};
|
|
174
183
|
|
|
175
184
|
this.__v_oPayload = payload;
|
|
@@ -184,6 +193,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
184
193
|
this._initializeCopyError();
|
|
185
194
|
this._initializePagination();
|
|
186
195
|
this._initializeHistory();
|
|
196
|
+
this._initializeFocusTrap();
|
|
187
197
|
|
|
188
198
|
if (this.__v_oPayload.solution) {
|
|
189
199
|
this._injectSolution(this.__v_oPayload.solution);
|
|
@@ -295,7 +305,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
295
305
|
|
|
296
306
|
// Limit history to prevent memory issues
|
|
297
307
|
if (this.__v_oHistory.length > ErrorOverlay.HISTORY_LIMIT) {
|
|
298
|
-
this.__v_oHistory =
|
|
308
|
+
this.__v_oHistory.length = ErrorOverlay.HISTORY_LIMIT;
|
|
299
309
|
}
|
|
300
310
|
|
|
301
311
|
// Update balloon count with animation
|
|
@@ -307,7 +317,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
307
317
|
* @private
|
|
308
318
|
* @param {Element} element - The element to add the listener to
|
|
309
319
|
* @param {string} event - The event type
|
|
310
|
-
* @param {
|
|
320
|
+
* @param {(event: Event) => void} handler - The event handler
|
|
311
321
|
* @param {object} options - Event listener options
|
|
312
322
|
*/
|
|
313
323
|
_addEventListener(element, event, handler, options = {}) {
|
|
@@ -403,7 +413,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
403
413
|
const rootPath = this.__v_oPayload?.rootPath || "";
|
|
404
414
|
|
|
405
415
|
if (rootPath && filePath.startsWith(rootPath)) {
|
|
406
|
-
return filePath.slice(rootPath.length).replace(
|
|
416
|
+
return filePath.slice(rootPath.length).replace(RE_LEADING_SLASH, "");
|
|
407
417
|
}
|
|
408
418
|
|
|
409
419
|
return filePath;
|
|
@@ -440,68 +450,6 @@ class ErrorOverlay extends HTMLElement {
|
|
|
440
450
|
}, ErrorOverlay.LOADING_DELAY);
|
|
441
451
|
}
|
|
442
452
|
|
|
443
|
-
/**
|
|
444
|
-
* Updates the balloon count to show the total number of errors in history.
|
|
445
|
-
* @private
|
|
446
|
-
* @param {boolean} animate - Whether to animate the count change
|
|
447
|
-
*/
|
|
448
|
-
_updateBalloonCount(animate = false) {
|
|
449
|
-
const { balloonCount, balloonText, balloonGroup } = this.__elements || {};
|
|
450
|
-
|
|
451
|
-
if (!balloonCount) {
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
const totalErrors = this.__v_oHistory.length;
|
|
456
|
-
const currentNum = Number.parseInt(balloonCount.style.getPropertyValue("--num") || "0", 10);
|
|
457
|
-
|
|
458
|
-
// Animate if count increased and animation is requested
|
|
459
|
-
if (animate && totalErrors > currentNum && currentNum > 0) {
|
|
460
|
-
// Set start and end values for animation
|
|
461
|
-
balloonCount.style.setProperty("--num-start", currentNum.toString());
|
|
462
|
-
balloonCount.style.setProperty("--num-end", totalErrors.toString());
|
|
463
|
-
|
|
464
|
-
// Remove animation class to reset
|
|
465
|
-
balloonCount.classList.remove("animate-count-up");
|
|
466
|
-
|
|
467
|
-
// Force reflow to ensure animation restarts
|
|
468
|
-
void balloonCount.offsetWidth;
|
|
469
|
-
|
|
470
|
-
// Trigger animation
|
|
471
|
-
balloonCount.classList.add("animate-count-up");
|
|
472
|
-
|
|
473
|
-
// Clean up after animation completes
|
|
474
|
-
balloonCount.addEventListener(
|
|
475
|
-
"animationend",
|
|
476
|
-
() => {
|
|
477
|
-
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
478
|
-
balloonCount.style.removeProperty("--num-start");
|
|
479
|
-
balloonCount.style.removeProperty("--num-end");
|
|
480
|
-
balloonCount.classList.remove("animate-count-up");
|
|
481
|
-
},
|
|
482
|
-
{ once: true },
|
|
483
|
-
);
|
|
484
|
-
} else {
|
|
485
|
-
// No animation, just update the number directly
|
|
486
|
-
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
if (balloonText) {
|
|
490
|
-
balloonText.textContent = totalErrors === 1 ? "Error" : "Errors";
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
// Show balloon if there are errors and it's not dismissed
|
|
494
|
-
if (balloonGroup) {
|
|
495
|
-
if (totalErrors > 0 && !this.__v_oBalloonDismissed) {
|
|
496
|
-
balloonGroup.classList.add("inline-flex");
|
|
497
|
-
balloonGroup.classList.remove("hidden");
|
|
498
|
-
} else {
|
|
499
|
-
balloonGroup.classList.remove("inline-flex");
|
|
500
|
-
balloonGroup.classList.add("hidden");
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
453
|
/**
|
|
506
454
|
* Initializes the floating balloon button that shows the error count
|
|
507
455
|
* and toggles the overlay open/close when clicked.
|
|
@@ -544,10 +492,11 @@ class ErrorOverlay extends HTMLElement {
|
|
|
544
492
|
event.preventDefault();
|
|
545
493
|
event.stopPropagation();
|
|
546
494
|
|
|
547
|
-
// Hide the balloon and mark as dismissed
|
|
495
|
+
// Hide the balloon and mark as dismissed (persisted across hard reloads)
|
|
548
496
|
balloonGroup.classList.add("hidden");
|
|
549
497
|
balloonGroup.classList.remove("inline-flex");
|
|
550
498
|
this.__v_oBalloonDismissed = true;
|
|
499
|
+
this._saveBalloonState("dismissed", "true");
|
|
551
500
|
};
|
|
552
501
|
|
|
553
502
|
// Remove existing listener if any
|
|
@@ -643,6 +592,45 @@ class ErrorOverlay extends HTMLElement {
|
|
|
643
592
|
});
|
|
644
593
|
}
|
|
645
594
|
|
|
595
|
+
/**
|
|
596
|
+
* Traps keyboard focus within the overlay when it is open (WCAG 2.1 – 2.1.2 No Keyboard Trap).
|
|
597
|
+
* Tab cycles forward through focusable elements; Shift+Tab cycles backward.
|
|
598
|
+
* @private
|
|
599
|
+
*/
|
|
600
|
+
_initializeFocusTrap() {
|
|
601
|
+
const FOCUSABLE_SELECTORS
|
|
602
|
+
= "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\\"-1\\"])";
|
|
603
|
+
|
|
604
|
+
this._addEventListener(this.root, "keydown", (event) => {
|
|
605
|
+
if (event.key !== "Tab")
|
|
606
|
+
return;
|
|
607
|
+
|
|
608
|
+
const root = this.__elements?.root;
|
|
609
|
+
|
|
610
|
+
if (!root || root.classList.contains("hidden"))
|
|
611
|
+
return;
|
|
612
|
+
|
|
613
|
+
const focusable = [...this.root.querySelectorAll(FOCUSABLE_SELECTORS)];
|
|
614
|
+
|
|
615
|
+
if (focusable.length === 0)
|
|
616
|
+
return;
|
|
617
|
+
|
|
618
|
+
const first = focusable[0];
|
|
619
|
+
const last = focusable.at(-1);
|
|
620
|
+
const active = this.root.activeElement;
|
|
621
|
+
|
|
622
|
+
if (event.shiftKey) {
|
|
623
|
+
if (active === first || !active) {
|
|
624
|
+
event.preventDefault();
|
|
625
|
+
last.focus();
|
|
626
|
+
}
|
|
627
|
+
} else if (active === last || !active) {
|
|
628
|
+
event.preventDefault();
|
|
629
|
+
first.focus();
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
|
|
646
634
|
/**
|
|
647
635
|
* Initializes the layered error history functionality with Mac Time Machine-like scrolling.
|
|
648
636
|
* @private
|
|
@@ -707,7 +695,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
707
695
|
const column = currentError && currentError.originalFileColumn;
|
|
708
696
|
|
|
709
697
|
if (fullPath) {
|
|
710
|
-
const isHttpLink =
|
|
698
|
+
const isHttpLink = RE_HTTP_LINK.test(fullPath);
|
|
711
699
|
let displayPath = fullPath;
|
|
712
700
|
|
|
713
701
|
if (!isHttpLink && this.__v_oPayload.rootPath && fullPath.startsWith(this.__v_oPayload.rootPath)) {
|
|
@@ -718,7 +706,10 @@ class ErrorOverlay extends HTMLElement {
|
|
|
718
706
|
}
|
|
719
707
|
}
|
|
720
708
|
|
|
721
|
-
|
|
709
|
+
const linesSuffix = line ? \`:\${line}\` : "";
|
|
710
|
+
|
|
711
|
+
fileElement.textContent = isHttpLink ? fullPath : \`.\${displayPath}\${linesSuffix}\`;
|
|
712
|
+
|
|
722
713
|
const editor = localStorage.getItem("__v-o__editor");
|
|
723
714
|
|
|
724
715
|
// Remove any existing event listeners
|
|
@@ -732,13 +723,17 @@ class ErrorOverlay extends HTMLElement {
|
|
|
732
723
|
if (isHttpLink) {
|
|
733
724
|
globalThis.open(fullPath, "_blank");
|
|
734
725
|
} else {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
726
|
+
try {
|
|
727
|
+
// injected by the hmr plugin when served
|
|
728
|
+
// eslint-disable-next-line no-undef
|
|
729
|
+
const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(fullPath)}\${
|
|
730
|
+
line ? \`&line=\${line}\` : ""
|
|
731
|
+
}\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
|
|
732
|
+
|
|
733
|
+
fetch(url).catch(() => {});
|
|
734
|
+
} catch {
|
|
735
|
+
// base may not be defined outside Vite HMR context
|
|
736
|
+
}
|
|
742
737
|
}
|
|
743
738
|
});
|
|
744
739
|
|
|
@@ -767,20 +762,20 @@ class ErrorOverlay extends HTMLElement {
|
|
|
767
762
|
.replaceAll(">", ">");
|
|
768
763
|
|
|
769
764
|
const normalizePath = (path) => {
|
|
770
|
-
if (
|
|
765
|
+
if (RE_HTTP_LINK.test(path)) {
|
|
771
766
|
const u = new URL(path);
|
|
772
767
|
|
|
773
768
|
path = u.pathname || "";
|
|
774
769
|
}
|
|
775
770
|
|
|
776
771
|
path = decodeURIComponent(path);
|
|
777
|
-
path = String(path || "").replace(
|
|
772
|
+
path = String(path || "").replace(RE_FS_PREFIX, "/");
|
|
778
773
|
|
|
779
774
|
return path;
|
|
780
775
|
};
|
|
781
776
|
|
|
782
777
|
const fmt = (line) => {
|
|
783
|
-
const m =
|
|
778
|
+
const m = RE_STACK_AT_FRAME.exec(line);
|
|
784
779
|
|
|
785
780
|
if (!m) {
|
|
786
781
|
return \`<div class="frame">\${escape(line)}</div>\`;
|
|
@@ -796,7 +791,10 @@ class ErrorOverlay extends HTMLElement {
|
|
|
796
791
|
|
|
797
792
|
return \`<div class="frame"><span class="muted">at</span> \${functionHtml}<button type="button" class="stack-link text-left underline bg-transparent border-none cursor-pointer text-[var(--ono-v-text)] hover:text-[var(--ono-v-text-muted)]" data-file="\${escape(displayPath)}" data-line="\${ln}" data-column="\${col}">\${escape(display)}</button></div>\`;
|
|
798
793
|
};
|
|
799
|
-
const html = stackText
|
|
794
|
+
const html = stackText
|
|
795
|
+
.split("\\n")
|
|
796
|
+
.map((l) => fmt(l))
|
|
797
|
+
.join("");
|
|
800
798
|
|
|
801
799
|
stackElement.innerHTML = html;
|
|
802
800
|
stackElement.querySelectorAll(".stack-link").forEach((button) => {
|
|
@@ -816,13 +814,17 @@ class ErrorOverlay extends HTMLElement {
|
|
|
816
814
|
|
|
817
815
|
const editor = localStorage.getItem("__v-o__editor");
|
|
818
816
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
817
|
+
try {
|
|
818
|
+
// injected by the hmr plugin when served
|
|
819
|
+
// eslint-disable-next-line no-undef
|
|
820
|
+
const url = \`\${base}__open-in-editor?file=\${encodeURIComponent(resolved)}\${
|
|
821
|
+
line ? \`&line=\${line}\` : ""
|
|
822
|
+
}\${column ? \`&column=\${column}\` : ""}\${editor ? \`&editor=\${editor}\` : ""}\`;
|
|
824
823
|
|
|
825
|
-
|
|
824
|
+
fetch(url).catch(() => {});
|
|
825
|
+
} catch {
|
|
826
|
+
// base may not be defined outside Vite HMR context
|
|
827
|
+
}
|
|
826
828
|
});
|
|
827
829
|
});
|
|
828
830
|
}
|
|
@@ -914,11 +916,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
914
916
|
renderCode("original");
|
|
915
917
|
updateRawStack("original");
|
|
916
918
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
if (compiledButton)
|
|
921
|
-
compiledButton.classList.remove("active");
|
|
919
|
+
originalButton.classList.add("active");
|
|
920
|
+
compiledButton?.classList.remove("active");
|
|
922
921
|
});
|
|
923
922
|
}
|
|
924
923
|
|
|
@@ -931,11 +930,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
931
930
|
renderCode("compiled");
|
|
932
931
|
updateRawStack("compiled");
|
|
933
932
|
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
if (originalButton)
|
|
938
|
-
originalButton.classList.remove("active");
|
|
933
|
+
compiledButton.classList.add("active");
|
|
934
|
+
originalButton?.classList.remove("active");
|
|
939
935
|
});
|
|
940
936
|
}
|
|
941
937
|
};
|
|
@@ -1047,18 +1043,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1047
1043
|
this._navigateHistoryByScroll(scrollDirection);
|
|
1048
1044
|
};
|
|
1049
1045
|
|
|
1050
|
-
//
|
|
1051
|
-
this._addEventListener(this.root, "wheel", handleWheel, { passive: false });
|
|
1052
|
-
|
|
1053
|
-
// Also add to the main overlay element
|
|
1046
|
+
// Single wheel event listener — events from children bubble up to rootElement
|
|
1054
1047
|
this._addEventListener(rootElement, "wheel", handleWheel, { passive: false });
|
|
1055
|
-
|
|
1056
|
-
// Also add to the backdrop for better coverage
|
|
1057
|
-
const backdrop = this.root.querySelector("#__v_o__backdrop");
|
|
1058
|
-
|
|
1059
|
-
if (backdrop) {
|
|
1060
|
-
this._addEventListener(backdrop, "wheel", handleWheel, { passive: false });
|
|
1061
|
-
}
|
|
1062
1048
|
}
|
|
1063
1049
|
|
|
1064
1050
|
/**
|
|
@@ -1110,7 +1096,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1110
1096
|
const themeButtons = this.root.querySelectorAll("[data-v-o-theme-click-value]");
|
|
1111
1097
|
|
|
1112
1098
|
themeButtons.forEach((button) => {
|
|
1113
|
-
|
|
1099
|
+
this._addEventListener(button, "click", (event) => {
|
|
1114
1100
|
event.preventDefault();
|
|
1115
1101
|
|
|
1116
1102
|
const theme = event.currentTarget.dataset.vOThemeClickValue;
|
|
@@ -1335,9 +1321,18 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1335
1321
|
_restoreBalloonState() {
|
|
1336
1322
|
try {
|
|
1337
1323
|
const balloonStates = JSON.parse(localStorage.getItem("__v-o__balloon") || "{}");
|
|
1338
|
-
const { balloon, root: rootElement } = this.__elements || {};
|
|
1324
|
+
const { balloon, balloonGroup, root: rootElement } = this.__elements || {};
|
|
1339
1325
|
|
|
1340
1326
|
if (balloon && rootElement) {
|
|
1327
|
+
if (balloonStates.dismissed === "true") {
|
|
1328
|
+
this.__v_oBalloonDismissed = true;
|
|
1329
|
+
|
|
1330
|
+
if (balloonGroup) {
|
|
1331
|
+
balloonGroup.classList.add("hidden");
|
|
1332
|
+
balloonGroup.classList.remove("inline-flex");
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1341
1336
|
if (balloonStates.overlay === "open") {
|
|
1342
1337
|
rootElement.classList.remove("hidden");
|
|
1343
1338
|
} else if (balloonStates.overlay === "closed") {
|
|
@@ -1374,13 +1369,6 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1374
1369
|
}
|
|
1375
1370
|
}
|
|
1376
1371
|
|
|
1377
|
-
/**
|
|
1378
|
-
* Saves balloon state and position to localStorage
|
|
1379
|
-
* @private
|
|
1380
|
-
* @param {string} key - The state key ('overlay' or 'position')
|
|
1381
|
-
* @param {string} value - The state value
|
|
1382
|
-
*/
|
|
1383
|
-
|
|
1384
1372
|
_saveBalloonState(key, value) {
|
|
1385
1373
|
try {
|
|
1386
1374
|
const item = localStorage.getItem("__v-o__balloon");
|
|
@@ -1394,6 +1382,13 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1394
1382
|
}
|
|
1395
1383
|
}
|
|
1396
1384
|
|
|
1385
|
+
/**
|
|
1386
|
+
* Saves balloon state and position to localStorage
|
|
1387
|
+
* @private
|
|
1388
|
+
* @param {string} key - The state key ('overlay' or 'position')
|
|
1389
|
+
* @param {string} value - The state value
|
|
1390
|
+
*/
|
|
1391
|
+
|
|
1397
1392
|
/**
|
|
1398
1393
|
* Toggles the history mode on/off.
|
|
1399
1394
|
* @private
|
|
@@ -1459,6 +1454,69 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1459
1454
|
}
|
|
1460
1455
|
}
|
|
1461
1456
|
|
|
1457
|
+
/**
|
|
1458
|
+
* Updates the balloon count to show the total number of errors in history.
|
|
1459
|
+
* @private
|
|
1460
|
+
* @param {boolean} animate - Whether to animate the count change
|
|
1461
|
+
*/
|
|
1462
|
+
_updateBalloonCount(animate = false) {
|
|
1463
|
+
const { balloonCount, balloonGroup, balloonText } = this.__elements || {};
|
|
1464
|
+
|
|
1465
|
+
if (!balloonCount) {
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
const totalErrors = this.__v_oHistory.length;
|
|
1470
|
+
const currentNumber = Number.parseInt(balloonCount.style.getPropertyValue("--num") || "0", 10);
|
|
1471
|
+
|
|
1472
|
+
// Animate if count increased and animation is requested
|
|
1473
|
+
if (animate && totalErrors > currentNumber && currentNumber > 0) {
|
|
1474
|
+
// Set start and end values for animation
|
|
1475
|
+
balloonCount.style.setProperty("--num-start", currentNumber.toString());
|
|
1476
|
+
balloonCount.style.setProperty("--num-end", totalErrors.toString());
|
|
1477
|
+
|
|
1478
|
+
// Remove animation class to reset
|
|
1479
|
+
balloonCount.classList.remove("animate-count-up");
|
|
1480
|
+
|
|
1481
|
+
// Force reflow to ensure animation restarts
|
|
1482
|
+
// eslint-disable-next-line no-void, sonarjs/void-use
|
|
1483
|
+
void balloonCount.offsetWidth;
|
|
1484
|
+
|
|
1485
|
+
// Trigger animation
|
|
1486
|
+
balloonCount.classList.add("animate-count-up");
|
|
1487
|
+
|
|
1488
|
+
// Clean up after animation completes
|
|
1489
|
+
balloonCount.addEventListener(
|
|
1490
|
+
"animationend",
|
|
1491
|
+
() => {
|
|
1492
|
+
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
1493
|
+
balloonCount.style.removeProperty("--num-start");
|
|
1494
|
+
balloonCount.style.removeProperty("--num-end");
|
|
1495
|
+
balloonCount.classList.remove("animate-count-up");
|
|
1496
|
+
},
|
|
1497
|
+
{ once: true },
|
|
1498
|
+
);
|
|
1499
|
+
} else {
|
|
1500
|
+
// No animation, just update the number directly
|
|
1501
|
+
balloonCount.style.setProperty("--num", totalErrors.toString());
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if (balloonText) {
|
|
1505
|
+
balloonText.textContent = totalErrors === 1 ? "Error" : "Errors";
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
// Show balloon if there are errors and it's not dismissed
|
|
1509
|
+
if (balloonGroup) {
|
|
1510
|
+
if (totalErrors > 0 && !this.__v_oBalloonDismissed) {
|
|
1511
|
+
balloonGroup.classList.add("inline-flex");
|
|
1512
|
+
balloonGroup.classList.remove("hidden");
|
|
1513
|
+
} else {
|
|
1514
|
+
balloonGroup.classList.remove("inline-flex");
|
|
1515
|
+
balloonGroup.classList.add("hidden");
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1462
1520
|
/**
|
|
1463
1521
|
* Updates the history indicator in the navigation.
|
|
1464
1522
|
* @private
|
|
@@ -1518,13 +1576,12 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1518
1576
|
const span = timeElement.querySelector("span");
|
|
1519
1577
|
|
|
1520
1578
|
if (span) {
|
|
1521
|
-
span.textContent = new Date(historyEntry.timestamp).toLocaleString(
|
|
1579
|
+
span.textContent = new Date(historyEntry.timestamp).toLocaleString(undefined, {
|
|
1522
1580
|
day: "2-digit",
|
|
1523
1581
|
hour: "2-digit",
|
|
1524
1582
|
minute: "2-digit",
|
|
1525
1583
|
month: "2-digit",
|
|
1526
1584
|
second: "2-digit",
|
|
1527
|
-
timeZone: "UTC",
|
|
1528
1585
|
year: "numeric",
|
|
1529
1586
|
});
|
|
1530
1587
|
}
|
|
@@ -1583,6 +1640,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1583
1640
|
if (balloonGroup) {
|
|
1584
1641
|
// Clear dismissed state and show balloon for new errors
|
|
1585
1642
|
this.__v_oBalloonDismissed = false;
|
|
1643
|
+
this._saveBalloonState("dismissed", "false");
|
|
1586
1644
|
balloonGroup.classList.add("inline-flex");
|
|
1587
1645
|
balloonGroup.classList.remove("hidden");
|
|
1588
1646
|
}
|
|
@@ -1627,205 +1685,205 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1627
1685
|
this._updateHistoryToggleVisibility();
|
|
1628
1686
|
}
|
|
1629
1687
|
}
|
|
1630
|
-
`;var
|
|
1631
|
-
<
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
<
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
<span id="__v_o__pagination_current">1</span>
|
|
1674
|
-
<span class="text-(--ono-v-text-muted)">/</span>
|
|
1675
|
-
<span id="__v_o__pagination_total">1</span>
|
|
1676
|
-
</div>
|
|
1677
|
-
<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-(--ono-v-chip-bg) rounded-full disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-(--ono-v-red-orange) hover:bg-(--ono-v-hover-overlay) transition-colors" disabled>
|
|
1678
|
-
<span class="dui size-4" style="-webkit-mask-image: url('${dt}'); mask-image: url('${dt}')" aria-label="next"></span>
|
|
1679
|
-
</button>
|
|
1680
|
-
<div class="flex items-center gap-1">
|
|
1681
|
-
<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-(--ono-v-chip-bg) rounded-full hover:bg-(--ono-v-hover-overlay) focus-visible:outline focus-visible:outline-(--ono-v-red-orange) transition-colors">
|
|
1682
|
-
<span class="dui size-4" style="-webkit-mask-image: url('${Xn}'); mask-image: url('${Xn}')"></span>
|
|
1683
|
-
</button>
|
|
1684
|
-
<div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
|
|
1685
|
-
<span id="__v_o__history_count">0</span>
|
|
1686
|
-
<span>/</span>
|
|
1687
|
-
<span id="__v_o__history_total">0</span>
|
|
1688
|
-
<span class="text-[10px]">scroll to navigate</span>
|
|
1688
|
+
`;var Ys=Object.defineProperty,fe=b((t,e)=>Ys(t,"name",{value:e,configurable:!0}),"r$3");const Xs=/([A-Z])/g,rr='<option value="">Auto-detected Editor</option>',Qs="class ErrorOverlay",Js="var ErrorOverlay = ",Ks="window.ErrorOverlay = ErrorOverlay;",ea=fe(()=>{try{const t=Object.keys(Wt);return[rr,...t.map(e=>`<option value="${String(e)}">${String(Wt[e])}</option>`)].join("")}catch{return rr}},"generateEditorOptions"),ta=fe((t,e,n=!1)=>`<div id="${t}" class="fixed inset-0 z-[2147483646] flex flex-col items-center pt-[8vh] px-4 pb-4 hidden">
|
|
1689
|
+
<div id="__v_o__backdrop" class="fixed inset-0 -z-1 bg-black/65 pointer-events-auto"></div>
|
|
1690
|
+
<div class="relative z-1 w-full max-w-(--ono-v-dialog-max-width) mx-auto flex flex-col">
|
|
1691
|
+
|
|
1692
|
+
<div id="__v_o__panel" role="dialog" aria-modal="true" aria-label="Runtime Error Overlay"
|
|
1693
|
+
class="w-full max-h-[80vh] flex flex-col bg-(--ono-v-surface) border border-(--ono-v-border) shadow-2xl overflow-hidden">
|
|
1694
|
+
|
|
1695
|
+
<!-- ── Header bar ── replaces old SVG notch tabs ─────────────────────── -->
|
|
1696
|
+
<div id="__v_o__notch"
|
|
1697
|
+
class="dialog-exclude-closing-from-outside-click relative flex items-center gap-2 min-h-12 shrink-0 border-b border-(--ono-v-border) bg-(--ono-v-surface-muted)">
|
|
1698
|
+
|
|
1699
|
+
<!-- Left: error dot · label · pagination -->
|
|
1700
|
+
<div class="flex items-center gap-2 px-3 flex-1 min-w-0">
|
|
1701
|
+
<span class="size-1.5 rounded-full bg-(--ono-v-red-orange) shrink-0"></span>
|
|
1702
|
+
<span class="text-xs font-bold uppercase tracking-widest text-(--ono-v-text-muted) shrink-0 whitespace-nowrap">
|
|
1703
|
+
<span style="color: color-mix(in srgb, var(--ono-v-primary) 50%, transparent)">// </span>Runtime Error
|
|
1704
|
+
</span>
|
|
1705
|
+
|
|
1706
|
+
<nav class="error-overlay-pagination dialog-exclude-closing-from-outside-click flex items-center gap-1 ml-1">
|
|
1707
|
+
<button id="__v_o__error-overlay-pagination-previous" type="button" aria-disabled="true"
|
|
1708
|
+
class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)" disabled>
|
|
1709
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Xn}'); mask-image: url('${Xn}')" aria-label="previous"></span>
|
|
1710
|
+
</button>
|
|
1711
|
+
<div id="__v_o__error-overlay_pagination_count"
|
|
1712
|
+
class="inline-flex justify-center items-center min-w-8 gap-1 text-(--ono-v-text-muted) text-center text-xs font-medium px-1">
|
|
1713
|
+
<span id="__v_o__pagination_current">1</span>
|
|
1714
|
+
<span>/</span>
|
|
1715
|
+
<span id="__v_o__pagination_total">1</span>
|
|
1716
|
+
</div>
|
|
1717
|
+
<button id="__v_o__error-overlay-pagination-next" type="button" aria-disabled="true"
|
|
1718
|
+
class="error-overlay-pagination-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)" disabled>
|
|
1719
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${ut}'); mask-image: url('${ut}')" aria-label="next"></span>
|
|
1720
|
+
</button>
|
|
1721
|
+
<button id="__v_o__history_toggle" type="button" title="Toggle Error History" aria-label="Toggle Error History"
|
|
1722
|
+
class="error-overlay-history-button inline-flex items-center justify-center size-7 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform focus-visible:outline-1 focus-visible:outline-(--ono-v-primary)">
|
|
1723
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Qn}'); mask-image: url('${Qn}')"></span>
|
|
1724
|
+
</button>
|
|
1725
|
+
<div id="__v_o__history_indicator" class="flex items-center gap-1 text-xs text-(--ono-v-text-muted) hidden">
|
|
1726
|
+
<span id="__v_o__history_count">0</span>
|
|
1727
|
+
<span>/</span>
|
|
1728
|
+
<span id="__v_o__history_total">0</span>
|
|
1729
|
+
</div>
|
|
1730
|
+
</nav>
|
|
1689
1731
|
</div>
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
${
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1732
|
+
|
|
1733
|
+
<!-- Center: history timestamp (absolutely centered) -->
|
|
1734
|
+
<div id="__v_o__history_timestamp"
|
|
1735
|
+
class="absolute left-1/2 -translate-x-1/2 text-xs text-(--ono-v-text-muted) pointer-events-none hidden">
|
|
1736
|
+
<span></span>
|
|
1737
|
+
</div>
|
|
1738
|
+
|
|
1739
|
+
<!-- Right: editor select · theme · copy · close -->
|
|
1740
|
+
${n?"":`<div class="flex items-center gap-0.5 pr-1 shrink-0">
|
|
1741
|
+
<div id="__v_o__editor" class="hidden sm:flex items-center">
|
|
1742
|
+
<label for="editor-selector" class="sr-only">Editor</label>
|
|
1743
|
+
<select id="editor-selector"
|
|
1744
|
+
class="py-1 cursor-pointer px-2 pe-6 w-44 bg-(--ono-v-surface) border border-(--ono-v-border) text-xs text-(--ono-v-text) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:ring-1 focus:ring-(--ono-v-primary)">${e}</select>
|
|
1745
|
+
</div>
|
|
1746
|
+
<div id="v-o-theme-switch" class="flex items-center">
|
|
1747
|
+
<button type="button" title="Switch to dark mode" aria-label="Switch to dark mode"
|
|
1748
|
+
class="hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)" data-v-o-theme-click-value="dark">
|
|
1749
|
+
<span class="inline-flex items-center justify-center size-8">
|
|
1750
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${er}'); mask-image: url('${er}')"></span>
|
|
1751
|
+
</span>
|
|
1752
|
+
</button>
|
|
1753
|
+
<button type="button" title="Switch to light mode" aria-label="Switch to light mode"
|
|
1754
|
+
class="hidden hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)" data-v-o-theme-click-value="light">
|
|
1755
|
+
<span class="inline-flex items-center justify-center size-8">
|
|
1756
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${tr}'); mask-image: url('${tr}')"></span>
|
|
1757
|
+
</span>
|
|
1758
|
+
</button>
|
|
1759
|
+
</div>
|
|
1760
|
+
<button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info"
|
|
1761
|
+
class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)">
|
|
1762
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Jn}'); mask-image: url('${Jn}')"></span>
|
|
1763
|
+
</button>
|
|
1764
|
+
<button type="button" id="__v_o__close" aria-label="Close error overlay"
|
|
1765
|
+
class="inline-flex items-center justify-center size-8 hover:bg-(--ono-v-hover-overlay) active:scale-95 transition-transform text-(--ono-v-text)">
|
|
1766
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${bt}'); mask-image: url('${bt}')"></span>
|
|
1767
|
+
</button>
|
|
1768
|
+
</div>`}
|
|
1705
1769
|
</div>
|
|
1706
1770
|
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1771
|
+
<!-- ── File / error title ──────────────────────────────────────────────── -->
|
|
1772
|
+
<div id="__v_o__header" class="flex items-center gap-2 justify-between border-b border-(--ono-v-border) bg-(--ono-v-surface) px-4 py-2 min-h-10">
|
|
1773
|
+
<div id="__v_o__header_loader" class="v-o-skeleton h-5 w-3/5"></div>
|
|
1774
|
+
<div id="__v_o__title" class="flex items-center gap-2 w-full hidden">
|
|
1775
|
+
<span id="__v_o__heading" class="leading-none text-(--ono-v-red-orange) font-mono text-sm font-semibold"></span>
|
|
1776
|
+
<button type="button" id="__v_o__filelink"
|
|
1777
|
+
class="ml-1 text-xs font-normal font-mono underline text-(--ono-v-text-muted) hover:text-(--ono-v-text) bg-transparent border-none cursor-pointer transition-colors"></button>
|
|
1778
|
+
</div>
|
|
1779
|
+
<div id="__v_o__mode" class="flex items-center gap-1 shrink-0">
|
|
1780
|
+
<button type="button" data-flame-mode="original"
|
|
1781
|
+
class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden" style="display:none">Original</button>
|
|
1782
|
+
<button type="button" data-flame-mode="compiled"
|
|
1783
|
+
class="inline-flex items-center gap-1 px-2 py-1 text-xs font-medium text-(--ono-v-text) bg-(--ono-v-chip-bg) hover:bg-(--ono-v-hover-overlay) focus:outline-hidden" style="display:none">Compiled</button>
|
|
1784
|
+
</div>
|
|
1718
1785
|
</div>
|
|
1719
1786
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1787
|
+
<!-- ── Scrollable content ─────────────────────────────────────────────── -->
|
|
1788
|
+
<div class="flex-1 min-h-0 overflow-y-auto devtools-content-scroll">
|
|
1789
|
+
<div id="__v_o__message_loader" class="px-4 py-2 bg-(--ono-v-surface-muted) border-b border-(--ono-v-border)">
|
|
1790
|
+
<div class="v-o-skeleton h-4 w-full"></div>
|
|
1791
|
+
</div>
|
|
1792
|
+
<!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
|
|
1793
|
+
<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-(--ono-v-border) font-medium hidden"></div>
|
|
1794
|
+
|
|
1795
|
+
<div id="__v_o__solutions" class="relative hidden">
|
|
1796
|
+
<div title="Possible Solution" class="absolute top-4 right-6 z-10 size-6 flex items-center justify-center" style="background-color: var(--ono-v-success);">
|
|
1797
|
+
<span class="dui size-4" style="-webkit-mask-image: url('${Kn}'); mask-image: url('${Kn}')"></span>
|
|
1798
|
+
</div>
|
|
1799
|
+
<div id="__v_o__solutions_container" class="max-h-50 overflow-y-auto px-4 py-2 bg-(--ono-v-success-bg) m-1 mb-0 prose prose-sm max-w-full dark:prose-invert"></div>
|
|
1800
|
+
</div>
|
|
1730
1801
|
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1802
|
+
<div id="__v_o__body" class="relative flex min-h-0 bg-(--ono-v-surface)">
|
|
1803
|
+
<div id="__v_o__body_loader" class="w-full p-4 space-y-1.5">
|
|
1804
|
+
<div class="v-o-skeleton h-4 w-full"></div>
|
|
1805
|
+
<div class="v-o-skeleton h-4 w-3/4"></div>
|
|
1806
|
+
<div class="v-o-skeleton h-4 w-1/2"></div>
|
|
1807
|
+
<div class="v-o-skeleton h-4 w-2/3"></div>
|
|
1808
|
+
<div class="v-o-skeleton h-4 w-4/5"></div>
|
|
1809
|
+
<div class="v-o-skeleton h-4 w-1/3"></div>
|
|
1810
|
+
<div class="v-o-skeleton h-4 w-2/5"></div>
|
|
1811
|
+
<div class="v-o-skeleton h-4 w-3/5"></div>
|
|
1812
|
+
</div>
|
|
1813
|
+
<div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
|
|
1814
|
+
</div>
|
|
1741
1815
|
</div>
|
|
1742
|
-
<button type="button" id="__v_o__copy_error" title="Copy Error Info" aria-label="Copy Error Info" class="font-medium rounded-full hover:bg-(--ono-v-hover-overlay) focus:outline-hidden focus:bg-(--ono-v-hover-overlay) text-(--ono-v-text)">
|
|
1743
|
-
<span class="inline-flex shrink-0 justify-center items-center size-8">
|
|
1744
|
-
<span class="dui size-5" style="-webkit-mask-image: url('${Qn}'); mask-image: url('${Qn}')"></span>
|
|
1745
|
-
</span>
|
|
1746
|
-
</button>
|
|
1747
|
-
</div>
|
|
1748
1816
|
|
|
1749
|
-
|
|
1750
|
-
<
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1817
|
+
<!-- ── Stack trace footer (collapsible) ──────────────────────────────── -->
|
|
1818
|
+
<details id="__v_o__stacktrace" class="shrink-0 border-t border-(--ono-v-border) bg-(--ono-v-surface-muted)">
|
|
1819
|
+
<summary class="cursor-pointer px-4 py-3 list-none flex items-center gap-2 text-xs font-bold uppercase tracking-widest text-(--ono-v-text-muted) hover:text-(--ono-v-text) transition-colors duration-200">
|
|
1820
|
+
<span class="dui size-3" style="-webkit-mask-image: url('${ut}'); mask-image: url('${ut}')"></span>
|
|
1821
|
+
Stack Trace
|
|
1822
|
+
</summary>
|
|
1823
|
+
<!-- CRITICAL: class selector used by runtime.js querySelector — do not change -->
|
|
1824
|
+
<div class="px-4 py-3 text-xs font-mono text-[var(--ono-v-text-muted)] whitespace-pre-wrap leading-5 overflow-auto max-h-[160px] bg-(--ono-v-surface) border-t border-(--ono-v-border)"></div>
|
|
1825
|
+
</details>
|
|
1758
1826
|
</div>
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
<div class="v-o-skeleton h-4 w-4/5 rounded animate-pulse"></div>
|
|
1766
|
-
<div class="v-o-skeleton h-4 w-1/3 rounded animate-pulse"></div>
|
|
1767
|
-
<div class="v-o-skeleton h-4 w-2/5 rounded animate-pulse"></div>
|
|
1768
|
-
<div class="v-o-skeleton h-4 w-3/5 rounded animate-pulse"></div>
|
|
1769
|
-
</div>
|
|
1770
|
-
<div id="__v_o__overlay" class="overflow-auto w-full hidden"></div>
|
|
1827
|
+
|
|
1828
|
+
<!-- ── History depth visual layers ───────────────────────────────────────── -->
|
|
1829
|
+
<div id="__v_o__history_layer_depth"
|
|
1830
|
+
class="relative flex items-center flex-col -z-1 w-[calc(100%-24px)] mx-auto h-10 opacity-0 transition-opacity duration-200 pointer-events-none">
|
|
1831
|
+
<div id="__v_o__history_layer_depth_1" class="relative w-full h-5 bg-(--ono-v-surface-muted) border border-(--ono-v-border) border-t-0 -mt-3 shadow-sm"></div>
|
|
1832
|
+
<div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] h-5 bg-(--ono-v-surface-muted) border border-(--ono-v-border) border-t-0 -mt-3 -z-1"></div>
|
|
1771
1833
|
</div>
|
|
1772
1834
|
</div>
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
Raw stack trace
|
|
1778
|
-
</summary>
|
|
1779
|
-
<div class="px-4 py-3 text-(--ono-v-text) text-xs rounded-b-(--ono-v-dialog-radius) font-mono leading-5 overflow-auto space-y-0.5 max-h-[140px] bg-(--ono-v-surface) border-t border-(--ono-v-border)"></div>
|
|
1780
|
-
</details>
|
|
1781
|
-
<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">
|
|
1782
|
-
<div id="__v_o__history_layer_depth_1" class="relative w-full rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 shadow-md"></div>
|
|
1783
|
-
<div id="__v_o__history_layer_depth_2" class="relative w-[calc(100%-24px)] rounded-b-(--ono-v-dialog-radius) h-5 bg-(--ono-v-surface-muted) inset-shadow-(--ono-v-elevation-2) -mt-3 -z-1"></div>
|
|
1835
|
+
</div>`,"rootElement"),na=fe((t="bottom-right")=>({"bottom-left":"bottom: 8px; left: 8px;","bottom-right":"bottom: 8px; right: 8px;","top-left":"top: 8px; left: 8px;","top-right":"top: 8px; right: 8px;"})[t],"getPositionStyles"),Hr=fe(t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{if(r!=null){const o=n.replaceAll(Xs,"-$1").toLowerCase();e.push(`${o}: ${String(r)};`)}}),e.join(" ")},"cssPropertiesToString"),ra=fe(t=>t?typeof t=="string"?t:Hr(t):"","generateStyles"),oa=fe(t=>{if(t?.enabled===!1)return"";const e=t?.position||"bottom-right",n=ra(t?.style),r=na(e),o=t?.icon?`<img src="${t.icon}" alt="" class="size-4" />`:"";return`<div id="__v_o__balloon_group" class="fixed z-2147483646 inline-flex font-mono" data-balloon-position="${e}" style="${n} ${r} box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.07);">
|
|
1836
|
+
<!-- Signal zone — animated pulse dot on darker red strip -->
|
|
1837
|
+
<div class="flex items-center justify-center w-8 shrink-0 pointer-events-none" style="background: color-mix(in srgb, var(--ono-v-red-orange) 55%, black); border-right: 1px solid rgba(255,255,255,0.1);">
|
|
1838
|
+
<span class="v-o-signal-dot"></span>
|
|
1784
1839
|
</div>
|
|
1785
|
-
|
|
1786
|
-
<
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1840
|
+
<!-- Toggle button: count + label -->
|
|
1841
|
+
<button type="button" id="__v_o__balloon" title="Toggle error overlay" aria-label="Toggle error overlay"
|
|
1842
|
+
class="flex items-center gap-1.5 px-2.5 py-2 text-white cursor-pointer hover:bg-white/10 active:bg-white/15 transition-colors" style="background: var(--ono-v-red-orange);">
|
|
1843
|
+
${o?`<img src="${o}" alt="" class="size-3.5 opacity-90 shrink-0" />`:""}
|
|
1844
|
+
<span id="__v_o__balloon_count" style="--num: 0"></span>
|
|
1845
|
+
<span id="__v_o__balloon_text" class="text-xs font-bold uppercase tracking-widest leading-none" style="color: rgba(255,255,255,0.65)">Errors</span>
|
|
1791
1846
|
</button>
|
|
1792
|
-
|
|
1793
|
-
|
|
1847
|
+
<!-- Dismiss button -->
|
|
1848
|
+
<button type="button" id="__v_o__balloon_close" title="Dismiss balloon" aria-label="Dismiss balloon"
|
|
1849
|
+
class="flex items-center justify-center w-7 shrink-0 text-white cursor-pointer hover:bg-white/15 active:bg-white/20 transition-colors" style="background: var(--ono-v-red-orange); border-left: 1px solid rgba(255,255,255,0.1);">
|
|
1850
|
+
<span class="dui size-3" style="-webkit-mask-image: url('${bt}'); mask-image: url('${bt}')"></span>
|
|
1794
1851
|
</button>
|
|
1795
|
-
</div>`},"generateBalloonButton"),
|
|
1852
|
+
</div>`},"generateBalloonButton"),ia=fe(t=>t?typeof t=="string"?t:Hr(t):"","customCSSToString"),sa=fe((t,e,n)=>{const r=ea(),o=ia(n),i=o?`<style>${o}</style>`:"";return`<style>${Zs}</style>
|
|
1796
1853
|
${i}
|
|
1797
|
-
${
|
|
1854
|
+
${ta("__v_o__root",r)}
|
|
1798
1855
|
|
|
1799
|
-
${t?
|
|
1800
|
-
${
|
|
1801
|
-
class ViteErrorOverlay`);return s=s.replace(
|
|
1802
|
-
${
|
|
1856
|
+
${t?oa(e):""}`},"generateOverlayTemplate"),aa=fe((t,e,n,r)=>{const o=sa(e,n,r),i=`const overlayTemplate = ${JSON.stringify(o)};`;let s=t.replace(Qs,`${i}
|
|
1857
|
+
${nr}
|
|
1858
|
+
class ViteErrorOverlay`);return s=s.replace(Js,`${i}
|
|
1859
|
+
${nr}
|
|
1803
1860
|
var ViteErrorOverlay = `),s=`${s}
|
|
1804
1861
|
|
|
1805
|
-
${
|
|
1806
|
-
`)}</ul>`;if(d){const
|
|
1807
|
-
`),header:"Environment Variables"},test:
|
|
1808
|
-
`)},test:Z(t=>Y(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],va=Z(t=>({async handle(e,n){const{file:r,language:o}=n,i=e.message??"";if(Y(i,"Failed to resolve import","Cannot resolve module")){const s=i.match(/Failed to resolve import ["']([^"']+)["']/),l=i.match(/Cannot resolve module ["']([^"']+)["']/),a=s?.[1]||l?.[1];if(a&&r){const c=sr(a,r,t);if(c)return{body:`The import path \`${a}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(o)||Y(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(Y(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const s=i.match(/Cannot resolve ["'](\.\.?\/[^"']*)["']/);if(s){const l=s[1];if(l&&r){const a=sr(l,r,t);if(a)return{body:`Cannot resolve \`${l}\`. Did you mean one of these files?${a}`,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 fa)if(s.test(i,r))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var wa=Object.defineProperty,V=b((t,e)=>wa(t,"name",{value:e,configurable:!0}),"t$1");const qr={javascript:V(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:V(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:V(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:V(()=>import("@shikijs/langs/tsx"),"tsx"),json:V(()=>import("@shikijs/langs/json"),"json"),jsonc:V(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:V(()=>import("@shikijs/langs/xml"),"xml"),sql:V(()=>import("@shikijs/langs/sql"),"sql"),markdown:V(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:V(()=>import("@shikijs/langs/mdx"),"mdx"),html:V(()=>import("@shikijs/langs/html"),"html"),css:V(()=>import("@shikijs/langs/css"),"css"),scss:V(()=>import("@shikijs/langs/scss"),"scss"),less:V(()=>import("@shikijs/langs/less"),"less"),sass:V(()=>import("@shikijs/langs/sass"),"sass"),stylus:V(()=>import("@shikijs/langs/stylus"),"stylus"),styl:V(()=>import("@shikijs/langs/styl"),"styl"),svelte:V(()=>import("@shikijs/langs/svelte"),"svelte"),vue:V(()=>import("@shikijs/langs/vue"),"vue"),bash:V(()=>import("@shikijs/langs/bash"),"bash"),shell:V(()=>import("@shikijs/langs/shell"),"shell"),text:V(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text"}),"text")};V(async t=>{if(typeof t!="string"||!t)return;const e=qr[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var ba=Object.defineProperty,Ne=b((t,e)=>ba(t,"name",{value:e,configurable:!0}),"r$2");let ut,ht;const ya=Ne(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:r}=e,o=await n({themes:[import("./packem_chunks/github-dark-default.js"),import("./packem_chunks/github-light.js")],langs:[],engine:r()}),i=o;return ht=Ne(()=>{try{o?.dispose?.()}catch{}ut=void 0},"disposeFn"),i},"createSingletonHighlighter"),xa=Ne(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLanguages?.()||[]).includes(n)){const r=qr[n];r&&await t.loadLanguage?.(r())}},"ensureLanguageLoaded"),Ur=Ne(async(t=[])=>{ut||(ut=ya());const e=await ut,n=[];for(const r of t)if(typeof r=="string")n.push(r.toLowerCase());else{const o=r.name;o&&n.push(o.toLowerCase())}return await Promise.all(n.map(r=>xa(e,r))),e},"getHighlighter");Ne(async()=>{try{ht&&(ht(),ht=void 0)}catch{}},"disposeHighlighter");const ar=Ne((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const r=t.find(o=>o.line===n);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");var ka=Object.defineProperty,Nr=b((t,e)=>ka(t,"name",{value:e,configurable:!0}),"s$4");const _a=Nr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&(e.location||e.pluginName||e.text)),"isESBuildErrorArray"),$a=Nr(t=>t.map((e,n)=>{const{location:r,pluginName:o,text:i}=e,s={message:i||`ESBuild error #${n+1}`};return r&&(s.file=r.file,s.line=r.line,s.column=r.column),o&&(s.plugin=o),s.name=e.name||"Error",s.stack=e.stack||"",s}),"processESBuildErrors");var Ea=Object.defineProperty,Vr=b((t,e)=>Ea(t,"name",{value:e,configurable:!0}),"c$6");const Sa=Vr((t,e)=>{for(const[n,r]of t.moduleGraph.idToModuleMap){if(!r)continue;const o=r,i=[String(o.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const s of e)if(i.some(l=>l===s||l.includes(s)||s.includes(l)))return r}},"findBestModuleMatch"),et=Vr((t,e)=>{const n=[...e,...e.map(i=>i.replace(/^\/@fs\//,"")),...e.map(i=>i.replace(/^[./]*/,""))];let r,o=0;for(const i of n)try{const s=t.moduleGraph.getModuleById(i);if(s){const a=Object.keys(s).length>0,c=!!s.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=s,o=d),c))return s}const l=t.moduleGraph.getModuleByUrl?.(i);if(l){const a=Object.keys(l).length>0,c=!!l.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=l,o=d),c))return l}}catch{}return r||Sa(t,e)||void 0},"findModuleForPath");var Ca=Object.defineProperty,cn=b((t,e)=>Ca(t,"name",{value:e,configurable:!0}),"r$1");const La=/^https?:\/\//,Pa=cn(t=>{const e=new URL(t),{pathname:n}=e,r=e.search||"",o=[n+r,n,n.replace(/^\/@fs\//,""),decodeURIComponent(n+r),decodeURIComponent(n)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Zr=cn(t=>La.test(t),"isHttpUrl"),Te=cn(t=>{if(!t)return[];try{if(Zr(t))return Pa(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const n=t.split("?")[0];n&&e.push(n)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var Ta=Object.defineProperty,Ee=b((t,e)=>Ta(t,"name",{value:e,configurable:!0}),"o$4");const Ma=Ee((t,e)=>t.split(/\n/g)[e-1]??"","getLine"),lr=Ee(t=>t.replaceAll(/\s+/g,""),"removeWhitespace"),Fa=Ee((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),r=t.slice(n,n+64),o=/[A-Z_$][\w$]{2,}/i.exec(r);if(o?.[0])return o[0];let i=r.trim();return i.length<4&&(i=t.slice(Math.max(0,n-16),n+16).trim()),i},"extractCandidateToken"),Ra=Ee((t,e)=>{if(!t||t.length<3)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryTokenBasedSearch"),za=Ee((t,e)=>{if(!t)return null;for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}return null},"tryLineSubstringSearch"),Da=Ee((t,e)=>{if(!t)return null;const n=lr(t);if(!n)return null;for(const[r,o]of e.entries()){if(!o)continue;const i=lr(o).indexOf(n);if(i!==-1){const s=Aa(o,i);if(s!==-1)return{column:s,line:r+1}}}return null},"tryWhitespaceInsensitiveSearch"),Aa=Ee((t,e)=>{let n=0;for(const[r,o]of[...t].entries())if(typeof o=="string"){if(n===e)return r+1;/\s/.test(o)||n++}return-1},"mapNormalizedToOriginalPosition"),Ia=Ee((t,e,n,r)=>{const o=Ma(t,e);if(!o)return null;const i=r.split(/\n/g),s=Fa(o,n);return Ra(s,i)||za(o.trim(),i)||Da(o.trim(),i)},"realignOriginalPosition");var Ha=Object.defineProperty,K=b((t,e)=>Ha(t,"name",{value:e,configurable:!0}),"C$5"),Ve=44,Wr=59,cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gr=new Uint8Array(64),Yr=new Uint8Array(128);for(let t=0;t<cr.length;t++){const e=cr.charCodeAt(t);Gr[t]=e,Yr[e]=t}function U(t,e){let n=0,r=0,o=0;do{const s=t.next();o=Yr[s],n|=(o&31)<<r,r+=5}while(o&32);const i=n&1;return n>>>=1,i&&(n=-2147483648|-n),e+n}b(U,"h$2");K(U,"decodeInteger");function H(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),t.write(Gr[o])}while(r>0);return e}b(H,"i$4");K(H,"encodeInteger");function ve(t,e){return t.pos>=e?!1:t.peek()!==Ve}b(ve,"S$4");K(ve,"hasMoreVlq");var dr=1024*16,pr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},dn=class{static{b(this,"T")}static{K(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(dr)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===dr&&(this.out+=pr.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:r}=this;return r>0?n+pr.decode(e.subarray(0,r)):n}},pn=class{static{b(this,"w")}static{K(this,"StringReader")}constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:r}=this,o=n.indexOf(e,r);return o===-1?n.length:o}},Xr=[];function Ba(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0;for(;n.pos<e;n.pos++){i=U(n,i);const s=U(n,0);if(!ve(n,e)){const d=o.pop();d[2]=i,d[3]=s;continue}const l=U(n,0),a=U(n,0)&1?[i,s,0,0,l,U(n,0)]:[i,s,0,0,l];let c=Xr;if(ve(n,e)){c=[];do{const d=U(n,0);c.push(d)}while(ve(n,e))}a.vars=c,r.push(a),o.push(a)}return r}b(Ba,"z");K(Ba,"decodeOriginalScopes");function ja(t){const e=new dn;for(let n=0;n<t.length;)n=un(t,n,e,[0]);return e.flush()}b(ja,"F$4");K(ja,"encodeOriginalScopes");function un(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,4:c,vars:d}=o;e>0&&n.write(Ve),r[0]=H(n,i,r[0]),H(n,s,0),H(n,c,0);const u=o.length===6?1:0;H(n,u,0),o.length===6&&H(n,o[5],0);for(const h of d)H(n,h,0);for(e++;e<t.length;){const h=t[e],{0:v,1:f}=h;if(v>l||v===l&&f>=a)break;e=un(t,e,n,r)}return n.write(Ve),r[0]=H(n,l,r[0]),H(n,a,0),e}b(un,"P$4");K(un,"_encodeOriginalScopes");function Oa(t){const{length:e}=t,n=new pn(t),r=[],o=[];let i=0,s=0,l=0,a=0,c=0,d=0,u=0,h=0;do{const v=n.indexOf(";");let f=0;for(;n.pos<v;n.pos++){if(f=U(n,f),!ve(n,v)){const A=o.pop();A[2]=i,A[3]=f;continue}const m=U(n,0),k=m&1,L=m&2,P=m&4;let $=null,M=Xr,z;if(k){const A=U(n,s);l=U(n,s===A?l:0),s=A,z=[i,f,0,0,A,l]}else z=[i,f,0,0];if(z.isScope=!!P,L){const A=a,B=c;a=U(n,a);const N=A===a;c=U(n,N?c:0),d=U(n,N&&B===c?d:0),$=[a,c,d]}if(z.callsite=$,ve(n,v)){M=[];do{u=i,h=f;const A=U(n,0);let B;if(A<-1){B=[[U(n,0)]];for(let N=-1;N>A;N--){const j=u;u=U(n,u),h=U(n,u===j?h:0);const pe=U(n,0);B.push([pe,u,h])}}else B=[[A]];M.push(B)}while(ve(n,v))}z.bindings=M,r.push(z),o.push(z)}i++,n.pos=v+1}while(n.pos<e);return r}b(Oa,"H$2");K(Oa,"decodeGeneratedRanges");function qa(t){if(t.length===0)return"";const e=new dn;for(let n=0;n<t.length;)n=hn(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(qa,"J$1");K(qa,"encodeGeneratedRanges");function hn(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,isScope:c,callsite:d,bindings:u}=o;r[0]<i?(Zt(n,r[0],i),r[0]=i,r[1]=0):e>0&&n.write(Ve),r[1]=H(n,o[1],r[1]);const h=(o.length===6?1:0)|(d?2:0)|(c?4:0);if(H(n,h,0),o.length===6){const{4:v,5:f}=o;v!==r[2]&&(r[3]=0),r[2]=H(n,v,r[2]),r[3]=H(n,f,r[3])}if(d){const{0:v,1:f,2:m}=o.callsite;v!==r[4]?(r[5]=0,r[6]=0):f!==r[5]&&(r[6]=0),r[4]=H(n,v,r[4]),r[5]=H(n,f,r[5]),r[6]=H(n,m,r[6])}if(u)for(const v of u){v.length>1&&H(n,-v.length,0);const f=v[0][0];H(n,f,0);let m=i,k=s;for(let L=1;L<v.length;L++){const P=v[L];m=H(n,P[1],m),k=H(n,P[2],k),H(n,P[0],0)}}for(e++;e<t.length;){const v=t[e],{0:f,1:m}=v;if(f>l||f===l&&m>=a)break;e=hn(t,e,n,r)}return r[0]<l?(Zt(n,r[0],l),r[0]=l,r[1]=0):n.write(Ve),r[1]=H(n,a,r[1]),e}b(hn,"V$1");K(hn,"_encodeGeneratedRanges");function Zt(t,e,n){do t.write(Wr);while(++e<n)}b(Zt,"U$1");K(Zt,"catchupLine");function Qr(t){const{length:e}=t,n=new pn(t),r=[];let o=0,i=0,s=0,l=0,a=0;do{const c=n.indexOf(";"),d=[];let u=!0,h=0;for(o=0;n.pos<c;){let v;o=U(n,o),o<h&&(u=!1),h=o,ve(n,c)?(i=U(n,i),s=U(n,s),l=U(n,l),ve(n,c)?(a=U(n,a),v=[o,i,s,l,a]):v=[o,i,s,l]):v=[o],d.push(v),n.pos++}u||Jr(d),r.push(d),n.pos=c+1}while(n.pos<=e);return r}b(Qr,"K$2");K(Qr,"decode");function Jr(t){t.sort(Kr)}b(Jr,"Q$3");K(Jr,"sort");function Kr(t,e){return t[0]-e[0]}b(Kr,"X$3");K(Kr,"sortComparator");function eo(t){const e=new dn;let n=0,r=0,o=0,i=0;for(let s=0;s<t.length;s++){const l=t[s];if(s>0&&e.write(Wr),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){const d=l[c];c>0&&e.write(Ve),a=H(e,d[0],a),d.length!==1&&(n=H(e,d[1],n),r=H(e,d[2],r),o=H(e,d[3],o),d.length!==4&&(i=H(e,d[4],i)))}}return e.flush()}b(eo,"Z$2");K(eo,"encode");var Ua=Object.defineProperty,oe=b((t,e)=>Ua(t,"name",{value:e,configurable:!0}),"c$4");const Na=/^[\w+.-]+:\/\//,Va=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Za=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function to(t){return Na.test(t)}b(to,"R$3");oe(to,"isAbsoluteUrl");function no(t){return t.startsWith("//")}b(no,"q$2");oe(no,"isSchemeRelativeUrl");function gn(t){return t.startsWith("/")}b(gn,"m$5");oe(gn,"isAbsolutePath");function ro(t){return t.startsWith("file:")}b(ro,"v$4");oe(ro,"isFileUrl");function Wt(t){return/^[.?#]/.test(t)}b(Wt,"u$2");oe(Wt,"isRelative");function Je(t){const e=Va.exec(t);return mn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(Je,"f$4");oe(Je,"parseAbsoluteUrl");function oo(t){const e=Za.exec(t),n=e[2];return mn("file:","",e[1]||"","",gn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(oo,"w$2");oe(oo,"parseFileUrl");function mn(t,e,n,r,o,i,s){return{scheme:t,user:e,host:n,port:r,path:o,query:i,hash:s,type:7}}b(mn,"y$5");oe(mn,"makeUrl");function Gt(t){if(no(t)){const n=Je("http:"+t);return n.scheme="",n.type=6,n}if(gn(t)){const n=Je("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(ro(t))return oo(t);if(to(t))return Je(t);const e=Je("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}b(Gt,"p$2");oe(Gt,"parseUrl");function io(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(io,"P$3");oe(io,"stripPathFilename");function so(t,e){fn(e,e.type),t.path==="/"?t.path=e.path:t.path=io(e.path)+t.path}b(so,"A$1");oe(so,"mergePaths");function fn(t,e){const n=e<=4,r=t.path.split("/");let o=1,i=0,s=!1;for(let a=1;a<r.length;a++){const c=r[a];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,o--):n&&(r[o++]=c);continue}r[o++]=c,i++}}let l="";for(let a=1;a<o;a++)l+="/"+r[a];(!l||s&&!l.endsWith("/.."))&&(l+="/"),t.path=l}b(fn,"d$7");oe(fn,"normalizePath");function ao(t,e){if(!t&&!e)return"";const n=Gt(t);let r=n.type;if(e&&r!==7){const i=Gt(e),s=i.type;switch(r){case 1:n.hash=i.hash;case 2:n.query=i.query;case 3:case 4:so(n,i);case 5:n.user=i.user,n.host=i.host,n.port=i.port;case 6:n.scheme=i.scheme}s>r&&(r=s)}fn(n,r);const o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{const i=n.path.slice(1);return i?Wt(e||t)&&!Wt(i)?"./"+i+o:i+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}b(ao,"F$3");oe(ao,"resolve");var Wa=Object.defineProperty,T=b((t,e)=>Wa(t,"name",{value:e,configurable:!0}),"i$3");function lo(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(lo,"ae");T(lo,"stripFilename");function co(t,e){const n=lo(t),r=e?e+"/":"";return o=>ao(r+(o||""),n)}b(co,"ge");T(co,"resolver");var ce=0,vn=1,wn=2,bn=3,po=4,uo=1,ho=2;function go(t,e){const n=Yt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Yt(t,r+1))t[r]=fo(t[r],e);return t}b(go,"he$1");T(go,"maybeSort");function Yt(t,e){for(let n=e;n<t.length;n++)if(!mo(t[n]))return n;return t.length}b(Yt,"X$2");T(Yt,"nextUnsortedSegmentLine");function mo(t){for(let e=1;e<t.length;e++)if(t[e][ce]<t[e-1][ce])return!1;return!0}b(mo,"_e");T(mo,"isSorted");function fo(t,e){return e||(t=t.slice()),t.sort(yn)}b(fo,"ve$1");T(fo,"sortSegments");function yn(t,e){return t[ce]-e[ce]}b(yn,"$");T(yn,"sortComparator");function vo(t,e){const n=e.map(()=>[]);for(let r=0;r<t.length;r++){const o=t[r];for(let i=0;i<o.length;i++){const s=o[i];if(s.length===1)continue;const l=s[vn],a=s[wn],c=s[bn],d=n[l];(d[a]||(d[a]=[])).push([c,r,s[ce]])}}for(let r=0;r<n.length;r++){const o=n[r];for(let i=0;i<o.length;i++){const s=o[i];s&&s.sort(yn)}}return n}b(vo,"Se");T(vo,"buildBySources");var Me=!1;function wo(t,e,n,r){for(;n<=r;){const o=n+(r-n>>1),i=t[o][ce]-e;if(i===0)return Me=!0,o;i<0?n=o+1:r=o-1}return Me=!1,n-1}b(wo,"Ee");T(wo,"binarySearch");function xn(t,e,n){for(let r=n+1;r<t.length&&t[r][ce]===e;n=r++);return n}b(xn,"H$1");T(xn,"upperBound");function kn(t,e,n){for(let r=n-1;r>=0&&t[r][ce]===e;n=r--);return n}b(kn,"Y");T(kn,"lowerBound");function _n(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(_n,"k$1");T(_n,"memoizedState");function bo(t,e,n,r){const{lastKey:o,lastNeedle:i,lastIndex:s}=n;let l=0,a=t.length-1;if(r===o){if(e===i)return Me=s!==-1&&t[s][ce]===e,s;e>=i?l=s===-1?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=wo(t,e,l,a)}b(bo,"Me");T(bo,"memoizedBinarySearch");function Ct(t){return typeof t=="string"?JSON.parse(t):t}b(Ct,"j$1");T(Ct,"parse");T(function(t,e){const n=Ct(t);if(!("sections"in n))return new Pt(n,e);const r=[],o=[],i=[],s=[],l=[];$n(n,e,r,o,i,s,l,0,0,1/0,1/0);const a={version:3,file:n.file,names:s,sources:o,sourcesContent:i,mappings:r,ignoreList:l};return So(a)},"FlattenMap");function $n(t,e,n,r,o,i,s,l,a,c,d){const{sections:u}=t;for(let h=0;h<u.length;h++){const{map:v,offset:f}=u[h];let m=c,k=d;if(h+1<u.length){const L=u[h+1].offset;m=Math.min(c,l+L.line),m===c?k=Math.min(d,a+L.column):m<c&&(k=a+L.column)}yo(v,e,n,r,o,i,s,l+f.line,a+f.column,m,k)}}b($n,"ee$1");T($n,"recurse");function yo(t,e,n,r,o,i,s,l,a,c,d){const u=Ct(t);if("sections"in u)return $n(...arguments);const h=new Pt(u,e),v=r.length,f=i.length,m=De(h),{resolvedSources:k,sourcesContent:L,ignoreList:P}=h;if(gt(r,k),gt(i,h.names),L)gt(o,L);else for(let $=0;$<k.length;$++)o.push(null);if(P)for(let $=0;$<P.length;$++)s.push(P[$]+v);for(let $=0;$<m.length;$++){const M=l+$;if(M>c)return;const z=xo(n,M),A=$===0?a:0,B=m[$];for(let N=0;N<B.length;N++){const j=B[N],pe=A+j[ce];if(M===c&&pe>=d)return;if(j.length===1){z.push([pe]);continue}const Ie=v+j[vn],ue=j[wn],Se=j[bn];z.push(j.length===4?[pe,Ie,ue,Se]:[pe,Ie,ue,Se,f+j[po]])}}}b(yo,"me");T(yo,"addSection");function gt(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}b(gt,"G$1");T(gt,"append");function xo(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}b(xo,"xe$1");T(xo,"getLine");var ko="`line` must be greater than 0 (lines start at line 1)",_o="`column` must be greater than or equal to 0 (columns start at column 0)",bt=-1,Lt=1,Pt=class{static{b(this,"R")}static{T(this,"TraceMap")}constructor(e,n){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const o=Ct(e),{version:i,file:s,names:l,sourceRoot:a,sources:c,sourcesContent:d}=o;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=a,this.sources=c,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const u=co(n,a);this.resolvedSources=c.map(u);const{mappings:h}=o;if(typeof h=="string")this._encoded=h,this._decoded=void 0;else if(Array.isArray(h))this._encoded=void 0,this._decoded=go(h,r);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=_n(),this._bySources=void 0,this._bySourceMemos=void 0}};function $o(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=eo(t._decoded)}b($o,"oe$1");T($o,"encodedMappings");function De(t){var e;return(e=t)._decoded||(e._decoded=Qr(t._encoded))}b(De,"O$1");T(De,"decodedMappings");function Ga(t,e,n){const r=De(t);if(e>=r.length)return null;const o=r[e],i=rt(o,t._decodedMemo,e,n,Lt);return i===-1?null:o[i]}b(Ga,"Oe");T(Ga,"traceSegment");function Eo(t,e){let{line:n,column:r,bias:o}=e;if(n--,n<0)throw new Error(ko);if(r<0)throw new Error(_o);const i=De(t);if(n>=i.length)return Ke(null,null,null,null);const s=i[n],l=rt(s,t._decodedMemo,n,r,o||Lt);if(l===-1)return Ke(null,null,null,null);const a=s[l];if(a.length===1)return Ke(null,null,null,null);const{names:c,resolvedSources:d}=t;return Ke(d[a[vn]],a[wn]+1,a[bn],a.length===5?c[a[po]]:null)}b(Eo,"Le");T(Eo,"originalPositionFor");function Ya(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||Lt,!1)}b(Ya,"ye$1");T(Ya,"generatedPositionFor");function Xa(t,e){const{source:n,line:r,column:o,bias:i}=e;return Sn(t,n,r,o,i||bt,!0)}b(Xa,"Ce$1");T(Xa,"allGeneratedPositionsFor");function Qa(t,e){const n=De(t),{names:r,resolvedSources:o}=t;for(let i=0;i<n.length;i++){const s=n[i];for(let l=0;l<s.length;l++){const a=s[l],c=i+1,d=a[0];let u=null,h=null,v=null,f=null;a.length!==1&&(u=o[a[1]],h=a[2]+1,v=a[3]),a.length===5&&(f=r[a[4]]),e({generatedLine:c,generatedColumn:d,source:u,originalLine:h,originalColumn:v,name:f})}}}b(Qa,"Ie");T(Qa,"eachMapping");function En(t,e){const{sources:n,resolvedSources:r}=t;let o=n.indexOf(e);return o===-1&&(o=r.indexOf(e)),o}b(En,"re$1");T(En,"sourceIndex");function Ja(t,e){const{sourcesContent:n}=t;if(n==null)return null;const r=En(t,e);return r===-1?null:n[r]}b(Ja,"Ne");T(Ja,"sourceContentFor");function Ka(t,e){const{ignoreList:n}=t;if(n==null)return!1;const r=En(t,e);return r===-1?!1:n.includes(r)}b(Ka,"be$1");T(Ka,"isIgnored");function So(t,e){const n=new Pt(Tt(t,[]),e);return n._decoded=t.mappings,n}b(So,"se");T(So,"presortedDecodedMap");function el(t){return Tt(t,De(t))}b(el,"Re");T(el,"decodedMap");function tl(t){return Tt(t,$o(t))}b(tl,"we$1");T(tl,"encodedMap");function Tt(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}b(Tt,"B");T(Tt,"clone");function Ke(t,e,n,r){return{source:t,line:e,column:n,name:r}}b(Ke,"b$2");T(Ke,"OMapping");function Oe(t,e){return{line:t,column:e}}b(Oe,"y$4");T(Oe,"GMapping");function rt(t,e,n,r,o){let i=bo(t,r,e,n);return Me?i=(o===bt?xn:kn)(t,r,i):o===bt&&i++,i===-1||i===t.length?-1:i}b(rt,"w$1");T(rt,"traceSegmentInternal");function Co(t,e,n,r,o){let i=rt(t,e,n,r,Lt);if(!Me&&o===bt&&i++,i===-1||i===t.length)return[];const s=Me?r:t[i][ce];Me||(i=kn(t,s,i));const l=xn(t,s,i),a=[];for(;i<=l;i++){const c=t[i];a.push(Oe(c[uo]+1,c[ho]))}return a}b(Co,"Ue");T(Co,"sliceGeneratedPositions");function Sn(t,e,n,r,o,i){var s,l;if(n--,n<0)throw new Error(ko);if(r<0)throw new Error(_o);const{sources:a,resolvedSources:c}=t;let d=a.indexOf(e);if(d===-1&&(d=c.indexOf(e)),d===-1)return i?[]:Oe(null,null);const u=(s=t)._bySourceMemos||(s._bySourceMemos=a.map(_n)),h=((l=t)._bySources||(l._bySources=vo(De(t),u)))[d][n];if(h==null)return i?[]:Oe(null,null);const v=u[d];if(i)return Co(h,v,n,r,o);const f=rt(h,v,n,r,o);if(f===-1)return Oe(null,null);const m=h[f];return Oe(m[uo]+1,m[ho])}b(Sn,"ie");T(Sn,"generatedPosition");var nl=Object.defineProperty,se=b((t,e)=>nl(t,"name",{value:e,configurable:!0}),"u$1");const rl=/`((?:[^`$]|\$\{[^}]+\})*)`/g,ur=/\$\{[^}]+\}/g,ol=/[.*+?^${}()|[\]\\]/g,Lo=[/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*`/],Fe=se(t=>t.replaceAll(ol,String.raw`\$&`),"escapeRegex"),il=se(t=>{const e=Fe(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Fe(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Fe(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),hr=se((t,e)=>{const n=[...t.matchAll(rl)];for(const r of n){const o=r[1];if(!o)continue;const i=o.split(ur);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!o)continue;const s=o.replaceAll(ur,"(.+?)");try{if(new RegExp(`^${Fe(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),sl=[/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 (.+?)\)/],al=se(t=>{for(const e of sl){const n=t.match(e);if(n)return n}return null},"findDynamicErrorMatch"),gr=se(t=>{let e=null,n=null;for(const r of Lo){const o=t.match(r);o&&(!e||r.source.includes("throw")&&!n?.source.includes("throw"))&&(e=o,n=r)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),mr=se((t,e)=>{let n=t.index;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const r=t[0].indexOf("new");r!==-1&&(n+=r)}return n+1},"calculateActualColumn"),ll=se((t,e,n=0)=>{if(!t||!e)return null;const r=t.split(`
|
|
1809
|
-
`),o=al(e),i=il(e),s=se((u,h,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k)continue;const L=k.includes(h)||hr(k,h),P=Lo.some($=>$.test(k));if(L&&P){const{bestMatch:$,bestPattern:M}=gr(k);if($&&M&&(f++,f>v))return{column:mr($,M),line:m+1}}}return null},"processErrorConstructorLines")(r,e,n);if(s)return s;o&&se((u,h,v)=>{if(u[0].includes("Failed to resolve import")){const f=u[1];if(!f)return;const m=Fe(f);v.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,f)}else if(u[0].includes("is not defined")){const f=u[1];if(!f)return;v.unshift(f,`{${f}}`,`src={${f}}`,`${f}.`,`=${f}`)}else if(u[0].includes("Cannot read properties")){const f=u[1],m=u[2];if(!m)return;v.unshift(m,`${f}.${m}`,`${f}?.${m}`,`${f}[${m}]`)}else{const f=u[1];if(!f)return;const m=Fe(h),k=Fe(f);v.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(o,e,i);const l=se((u,h,v)=>{let f=0;for(const[m,k]of u.entries()){if(!k||!hr(k,h))continue;const{bestMatch:L,bestPattern:P}=gr(k);if(L&&P&&(f++,f>v))return{column:mr(L,P),line:m+1}}return null},"processTemplateLiteralLines"),a=se((u,h,v,f)=>{let m=0;for(const[k,L]of u.entries()){if(!L)continue;let P=-1,$=null;for(const M of h){const z=L.indexOf(M);z!==-1&&(P===-1||z<P)&&(P=z,$=M)}if(P!==-1&&$&&(m++,m>f))return{column:c(P,$,L,v),line:k+1}}return null},"processPatternLines"),c=se((u,h,v,f)=>{if(!f)return u+1;if(f[0].includes("Failed to resolve import")){const m=f[1];if(v.includes(`"${m}"`)||v.includes(`'${m}'`)){const k=v.includes(`"${m}"`)?'"':"'";return v.indexOf(`${k}${m}${k}`)+1}}else if(f[0].includes("is not defined")){const m=f[1];if(m&&h===m)return u+1;if(m&&h.includes(m))return u+h.indexOf(m)+1}else if(f[0].includes("Cannot read properties")){const m=f[2];if(m&&h.includes(m))return u+h.indexOf(m)+1}else if(h.includes("new Error("))return v.indexOf("new Error(")+1;return u+1},"calculatePatternColumn");return l(r,e,n)||a(r,i,o,n)},"findErrorInSourceCode");var cl=Object.defineProperty,ot=b((t,e)=>cl(t,"name",{value:e,configurable:!0}),"m$4");const dl=1,fr=ot((t,e)=>{const n=Math.max(1,t),r=Math.max(0,e);let o=n,i=r;return n>=20?o=Math.max(1,Math.round(n*.5)):n>15?o=Math.max(1,Math.round(n*.6)):n>10?o=Math.max(1,n-8):o=Math.max(1,n-3),r>=10||r>7?i=Math.max(0,r-1):r>5&&(i=Math.max(0,r)),{estimatedColumn:i,estimatedLine:o}},"estimateOriginalPosition"),pl=ot((t,e,n)=>{try{const r=new Pt(t);if(e<=0)return;const o=[{column:n,desc:"original",line:e},{column:Math.max(0,n-dl),desc:"offset",line:e},{column:n,desc:"line above",line:e-1},{column:n,desc:"line below",line:e+1},...Array.from({length:5},(i,s)=>({column:Math.max(0,n-2+s),desc:`col ${n-2+s}`,line:e}))].filter(i=>i.line>0);for(const i of o){const s=Eo(r,{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(r){console.warn("Source map processing failed:",r)}},"resolveSourceMapPosition"),ul=ot((t,e)=>e?Zr(t)?hl(t,e):e:t,"resolveSourcePath"),hl=ot((t,e)=>{try{const n=new URL(t),r=(n.pathname||"").replace(/^\//,""),o=r.includes("/")?r.slice(0,Math.max(0,r.lastIndexOf("/"))):"";return`${n.origin}/${o?`${o}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Xt=ot(async(t,e,n,r,o,i,s=0)=>{if(i&&e)try{let a=null;if(e.transformResult?.map?.sourcesContent?.[0]?a=e.transformResult.map.sourcesContent[0]:e.transformResult?.code&&(a=e.transformResult.code),!a&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const d=await t.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?a=d.map.sourcesContent[0]:d?.code&&(a=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!a&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const u=n.indexOf("://");u!==-1&&(d=n.slice(u+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),a=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(a){const c=ll(a,i,s);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(a){console.warn("Source code search failed:",a)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const a=e.id||e.url;if(a)try{const c=await t.transformRequest(a);c?.map&&(l=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!l){const{estimatedColumn:a,estimatedLine:c}=fr(r,o);return{originalFileColumn:a,originalFileLine:c,originalFilePath:n}}try{const a=pl(l,r,o);if(!a){const{estimatedColumn:d,estimatedLine:u}=fr(r,o);return{originalFileColumn:d,originalFileLine:u,originalFilePath:n}}const c=ul(n,a.source);return{originalFileColumn:a.column,originalFileLine:a.line,originalFilePath:c}}catch(a){return console.warn("Source map resolution failed:",a),{originalFileColumn:o,originalFileLine:r,originalFilePath:n}}},"resolveOriginalLocation");var gl=Object.defineProperty,ml=b((t,e)=>gl(t,"name",{value:e,configurable:!0}),"$e"),fl=Object.defineProperty,Cn=ml((t,e)=>fl(t,"name",{value:e,configurable:!0}),"W"),vl=Object.defineProperty,E=Cn((t,e)=>vl(t,"name",{value:e,configurable:!0}),"u$1");let vr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=E((p,g)=>{for(var w in g)e(p,w,{get:g[w],enumerable:!0})},"ne"),s=E((p,g,w,x)=>{if(g&&typeof g=="object"||typeof g=="function")for(let y of r(g))!o.call(p,y)&&y!==w&&e(p,y,{get:E(()=>g[y],"get"),enumerable:!(x=n(g,y))||x.enumerable});return p},"ae"),l=E(p=>s(e({},"__esModule",{value:!0}),p),"oe"),a={};i(a,{zeptomatch:E(()=>qn,"zeptomatch")});var c=E(p=>{const g=new Set,w=[p];for(let x=0;x<w.length;x++){const y=w[x];if(g.has(y))continue;g.add(y);const{children:_}=y;if(_?.length)for(let C=0,I=_.length;C<I;C++)w.push(_[C])}return Array.from(g)},"M"),d=E(p=>{let g="";const w=c(p);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(g||(g=C),g!==C)throw new Error(`Inconsistent RegExp flags used: "${g}" and "${C}"`)}return g},"se"),u=E((p,g,w)=>{const x=w.get(p);if(x!==void 0)return x;const y=p.partial??g;let _="";if(p.regex&&(_+=y?"(?:$|":"",_+=p.regex.source),p.children?.length){const C=v(p.children.map(I=>u(I,g,w)).filter(Boolean));if(C?.length){const I=p.children.some(We=>!We.regex||!(We.partial??g)),Q=C.length>1||y&&(!_.length||I);_+=Q?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=Q?")":""}}return p.regex&&(_+=y?")":""),w.set(p,_),_},"O"),h=E((p,g)=>{const w=new Map,x=c(p);for(let y=x.length-1;y>=0;y--){const _=u(x[y],g,w);if(!(y>0))return _}return""},"ie"),v=E(p=>Array.from(new Set(p)),"ue"),f=E((p,g,w)=>f.compile(p,w).test(g),"R");f.compile=(p,g)=>{const w=g?.partial??!1,x=h(p,w),y=d(p);return new RegExp(`^(?:${x})$`,y)};var m=f,k=E((p,g)=>{const w=m.compile(p,g),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,P=E(p=>{const g=p.map(x=>x.source).join("|")||"$^",w=p[0]?.flags;return new RegExp(g,w)},"ve"),$=P,M=E(p=>Array.isArray(p),"j"),z=E(p=>typeof p=="function","_"),A=E(p=>p.length===0,"he"),B=(()=>{const{toString:p}=Function.prototype,g=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&g.test(p.call(w))})(),N=E(p=>typeof p=="number","de"),j=E(p=>typeof p=="object"&&p!==null,"xe"),pe=E(p=>p instanceof RegExp,"me"),Ie=(()=>{const p=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return g=>p.test(g.source)})(),ue=(()=>{const p=/^[a-zA-Z0-9_-]+$/;return g=>p.test(g.source)&&!g.flags.includes("i")})(),Se=E(p=>typeof p=="string","A"),F=E(p=>p===void 0,"f"),O=E(p=>{const g=new Map;return w=>{const x=g.get(w);if(x!==void 0)return x;const y=p(w);return g.set(w,y),y}},"ye"),G=E((p,g,w={})=>{const x={cache:{},input:p,index:0,indexBacktrackMax:0,options:w,output:[]},y=ke(g)(x),_=Math.max(x.index,x.indexBacktrackMax);if(y&&x.index===p.length)return x.output;throw new Error(`Failed to parse at index ${_}`)},"I"),S=E((p,g)=>M(p)?ye(p,g):Se(p)?lt(p,g):ae(p,g),"i"),ye=E((p,g)=>{const w={};for(const x of p){if(x.length!==1)throw new Error(`Invalid character: "${x}"`);const y=x.charCodeAt(0);w[y]=!0}return x=>{const y=x.input;let _=x.index,C=_;for(;C<y.length&&y.charCodeAt(C)in w;)C+=1;if(C>_){if(!F(g)&&!x.options.silent){const I=y.slice(_,C),Q=z(g)?g(I,y,`${_}`):g;F(Q)||x.output.push(Q)}x.index=C}return!0}},"we"),ae=E((p,g)=>{if(ue(p))return lt(p.source,g);{const w=p.source,x=p.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return Ie(p)&&z(g)&&!B(g)?st(y,g):at(y,g)}},"$e"),st=E((p,g)=>w=>{const x=w.index,y=w.input;p.lastIndex=x;const _=p.exec(y);if(_){const C=p.lastIndex;if(!w.options.silent){const I=g(..._,y,`${x}`);F(I)||w.output.push(I)}return w.index=C,!0}else return!1},"Ee"),at=E((p,g)=>w=>{const x=w.index,y=w.input;if(p.lastIndex=x,p.test(y)){const _=p.lastIndex;if(!F(g)&&!w.options.silent){const C=z(g)?g(y.slice(x,_),y,`${x}`):g;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),lt=E((p,g)=>w=>{const x=w.index,y=w.input;if(y.startsWith(p,x)){if(!F(g)&&!w.options.silent){const _=z(g)?g(p,y,`${x}`):g;F(_)||w.output.push(_)}return w.index+=p.length,!0}else return!1},"F"),xe=E((p,g,w,x)=>{const y=ke(p),_=g>1;return Rt(Ft(Tn(C=>{let I=0;for(;I<w;){const Q=C.index;if(!y(C)||(I+=1,C.index===Q))break}return I>=g},_),x))},"k"),X=E((p,g)=>xe(p,0,1,g),"L"),te=E((p,g)=>xe(p,0,1/0,g),"$"),Ce=E((p,g)=>xe(p,1,1/0,g),"Re"),re=E((p,g)=>{const w=p.map(ke);return Rt(Ft(Tn(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),g))},"x"),ie=E((p,g)=>{const w=p.map(ke);return Rt(Ft(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},g))},"p"),Tn=E((p,g=!0,w=!1)=>{const x=ke(p);return g?y=>{const _=y.index,C=y.output.length,I=x(y);return!I&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!I||w)&&(y.index=_,y.output.length!==C&&(y.output.length=C)),I}:x},"q"),Ft=E((p,g)=>{const w=ke(p);return g?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=g(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Rt=(()=>{let p=0;return g=>{const w=ke(g),x=p+=1;return y=>{var _;if(y.options.memoization===!1)return w(y);const C=y.index,I=(_=y.cache)[x]||(_[x]={indexMax:-1,queue:[]}),Q=I.queue;if(C<=I.indexMax){const Ge=I.store||(I.store=new Map);if(Q.length){for(let Be=0,Hi=Q.length;Be<Hi;Be+=2){const Bi=Q[Be*2],ji=Q[Be*2+1];Ge.set(Bi,ji)}Q.length=0}const he=Ge.get(C);if(he===!1)return!1;if(N(he))return y.index=he,!0;if(he)return y.index=he.index,he.output?.length&&y.output.push(...he.output),!0}const We=y.output.length,Ii=w(y);if(I.indexMax=Math.max(I.indexMax,C),Ii){const Ge=y.index,he=y.output.length;if(he>We){const Be=y.output.slice(We,he);Q.push(C,{index:Ge,output:Be})}else Q.push(C,Ge);return!0}else return Q.push(C,!1),!1}}})(),Mn=E(p=>{let g;return w=>(g||(g=ke(p())),g(w))},"G"),ke=O(p=>{if(z(p))return A(p)?Mn(p):p;if(Se(p)||pe(p))return S(p);if(M(p))return re(p);if(j(p))return ie(Object.values(p));throw new Error("Invalid rule")}),Le=E(p=>p,"d"),Do=E(p=>typeof p=="string","ke"),Ao=E(p=>{const g=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:g,C=_.get(x);if(C!==void 0)return C;const I=p(x,y);return _.set(x,I),I}},"Be"),Io=E(p=>{const g={},w={};return(x,y)=>{const _=y?.partial?w:g;return _[x]??(_[x]=p(x,y))}},"Pe"),Ho=S(/\\./,Le),Bo=S(/./,Le),jo=S(/\*\*\*+/,"*"),Oo=S(/([^/{[(!])\*\*/,(p,g)=>`${g}*`),qo=S(/(^|.)\*\*(?=[^*/)\]}])/,(p,g)=>`${g}*`),Uo=te(ie([Ho,jo,Oo,qo,Bo])),No=Uo,Vo=E(p=>G(p,No,{memoization:!1}).join(""),"Ie"),Zo=Vo,Fn="abcdefghijklmnopqrstuvwxyz",Wo=E(p=>{let g="";for(;p>0;){const w=(p-1)%26;g=Fn[w]+g,p=Math.floor((p-1)/26)}return g},"Le"),Rn=E(p=>{let g=0;for(let w=0,x=p.length;w<x;w++)g=g*26+Fn.indexOf(p[w])+1;return g},"V"),zt=E((p,g)=>{if(g<p)return zt(g,p);const w=[];for(;p<=g;)w.push(p++);return w},"b"),Go=E((p,g,w)=>zt(p,g).map(x=>String(x).padStart(w,"0")),"qe"),zn=E((p,g)=>zt(Rn(p),Rn(g)).map(Wo),"W"),W=E(p=>({partial:!1,regex:new RegExp(p,"s"),children:[]}),"c"),Ze=E(p=>({children:p}),"y"),He=(()=>{const p=E((g,w,x)=>{if(x.has(g))return;x.add(g);const{children:y}=g;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)p(y[_],w,x)},"e");return g=>{if(!g.length)return Ze([]);for(let w=g.length-1;w>=1;w--){const x=new Set,y=g[w-1],_=g[w];p(y,_,x)}return g[0]}})(),_e=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Yo=S(/\\./,W),Xo=S(/[$.*+?^(){}[\]\|]/,p=>W(`\\${p}`)),Qo=S(/[\\\/]/,_e),Jo=S(/[^$.*+?^(){}[\]\|\\\/]+/,W),Ko=S(/^(?:!!)*!(.*)$/,(p,g)=>W(`(?!^${qn.compile(g).source}$).*?`)),ei=S(/^(!!)+/),ti=ie([Ko,ei]),ni=S(/\/(\*\*\/)+/,()=>Ze([He([_e(),W(".+?"),_e()]),_e()])),ri=S(/^(\*\*\/)+/,()=>Ze([W("^"),He([W(".*?"),_e()])])),oi=S(/\/(\*\*)$/,()=>Ze([He([_e(),W(".*?")]),W("$")])),ii=S(/\*\*/,()=>W(".*?")),Dn=ie([ni,ri,oi,ii]),si=S(/\*\/(?!\*\*\/|\*$)/,()=>He([W("[^\\\\/]*?"),_e()])),ai=S(/\*/,()=>W("[^\\\\/]*")),An=ie([si,ai]),In=S("?",()=>W("[^\\\\/]")),li=S("[",Le),ci=S("]",Le),di=S(/[!^]/,"^\\\\/"),pi=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,Le),ui=S(/\\./,Le),hi=S(/[$.*+?^(){}[\|]/,p=>`\\${p}`),gi=S(/[\\\/]/,"\\\\/"),mi=S(/[^$.*+?^(){}[\]\|\\\/]+/,Le),fi=ie([ui,hi,gi,pi,mi]),Hn=re([li,X(di),te(fi),ci],p=>W(p.join(""))),vi=S("{","(?:"),wi=S("}",")"),bi=S(/(\d+)\.\.(\d+)/,(p,g,w)=>Go(+g,+w,Math.min(g.length,w.length)).join("|")),yi=S(/([a-z]+)\.\.([a-z]+)/,(p,g,w)=>zn(g,w).join("|")),xi=S(/([A-Z]+)\.\.([A-Z]+)/,(p,g,w)=>zn(g.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),ki=ie([bi,yi,xi]),Bn=re([vi,ki,wi],p=>W(p.join(""))),_i=S("{"),$i=S("}"),Ei=S(","),Si=S(/\\./,W),Ci=S(/[$.*+?^(){[\]\|]/,p=>W(`\\${p}`)),Li=S(/[\\\/]/,_e),Pi=S(/[^$.*+?^(){}[\]\|\\\/,]+/,W),Ti=Mn(()=>On),Mi=S("",()=>W("(?:)")),Fi=Ce(ie([Dn,An,In,Hn,Bn,Ti,Si,Ci,Li,Pi]),He),jn=ie([Fi,Mi]),On=re([_i,X(re([jn,te(re([Ei,jn]))])),$i],Ze),Ri=te(ie([ti,Dn,An,In,Hn,Bn,On,Yo,Xo,Qo,Jo]),He),zi=Ri,Di=E(p=>G(p,zi,{memoization:!1})[0],"kr"),Ai=Di,Dt=E((p,g,w)=>Dt.compile(p,w).test(g),"N");Dt.compile=(()=>{const p=Io((w,x)=>L(Ai(Zo(w)),x)),g=Ao((w,x)=>$(w.map(y=>p(y,x))));return(w,x)=>Do(w)?p(w,x):g(w,x)})();var qn=Dt;return l(a)})();return t.default||t},"_lazyMatch"),It;const wl=E((t,e)=>(It||(It=vr(),vr=null),It(t,e)),"default");var bl=Object.defineProperty,yl=Cn((t,e)=>bl(t,"name",{value:e,configurable:!0}),"t$1");const xl=/^[A-Z]:\//i,Ae=yl((t="")=>t&&t.replaceAll("\\","/").replace(xl,e=>e.toUpperCase()),"normalizeWindowsPath");var kl=Object.defineProperty,ne=Cn((t,e)=>kl(t,"name",{value:e,configurable:!0}),"r");const _l=/^[/\\]{2}/,$l=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Po=/^[A-Z]:$/i,wr=/^\/([A-Z]:)?$/i,El=/.(\.[^./]+)$/,Sl=/^[/\\]|^[a-z]:[/\\]/i,Cl=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),To=ne((t,e)=>{let n="",r=0,o=-1,i=0,s;for(let l=0;l<=t.length;++l){if(l<t.length)s=t[l];else{if(s==="/")break;s="/"}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const a=n.lastIndexOf("/");a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,l)}`:n=t.slice(o+1,l),r=l-o-1;o=l,i=0}else s==="."&&i!==-1?++i:i=-1}return n},"normalizeString"),tt=ne(t=>$l.test(t),"isAbsolute"),yt=ne(function(t){if(t.length===0)return".";t=Ae(t);const e=_l.exec(t),n=tt(t),r=t.at(-1)==="/";return t=To(t,!n),t.length===0?n?"/":r?"./":".":(r&&(t+="/"),Po.test(t)&&(t+="/"),e?n?`//${t}`:`//./${t}`:n&&!tt(t)?`/${t}`:t)},"normalize");ne((...t)=>{let e="";for(const n of t)if(n)if(e.length>0){const r=e[e.length-1]==="/",o=n[0]==="/";r&&o?e+=n.slice(1):e+=r||o?n:`/${n}`}else e+=n;return yt(e)},"join");const xt=ne(function(...t){t=t.map(r=>Ae(r));let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:Cl();!o||o.length===0||(e=`${o}/${e}`,n=tt(o))}return e=To(e,!n),n&&!tt(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return Ae(t)},"toNamespacedPath");const Ll=ne(function(t){return El.exec(Ae(t))?.[1]??""},"extname");ne(function(t,e){const n=xt(t).replace(wr,"$1").split("/"),r=xt(e).replace(wr,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const o=[...n];for(const i of o){if(r[0]!==i)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},"relative");const Pl=ne(t=>{const e=Ae(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Po.test(e[0])&&(e[0]+="/"),e.join("/")||(tt(t)?"/":".")},"dirname");ne(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return Ae(t.root?xt(...e):e.join("/"))},"format");const Tl=ne((t,e)=>{const n=Ae(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=Sl.exec(t)?.[0]?.replaceAll("\\","/")??"",n=Tl(t),r=Ll(n);return{base:n,dir:Pl(t),ext:r,name:n.slice(0,n.length-r.length),root:e}},"parse");ne((t,e)=>wl(e,yt(t)),"matchesGlob");var Ml=Object.defineProperty,de=b((t,e)=>Ml(t,"name",{value:e,configurable:!0}),"e$1");const Qt="/",br=":",Fl="at ",Rl=/https?:\/\/[^\s)]+/g,zl=/file:\/\//g,Mo=/\/@fs\//g,Dl=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),Al=new Set(["<anonymous>","<unknown>","native"]),Il=de(t=>{const e=t.trim();return!e.startsWith(Fl)||!([...Dl].some(n=>e.includes(n))||[...Al].some(n=>e.includes(n)))?!1:/\([^)]*:\d+:\d+\)/.test(e)||/\([^)]*:\d+\)/.test(e)||/[^(\s][^:]*:\d+:\d+/.test(e)||/[^(\s][^:]*:\d+/.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),Hl=de(t=>(t=t.replaceAll(Mo,Qt),t=t.replaceAll(zl,""),t.includes("<unknown>")?t.trim()||"":t.trim()&&!Il(t)?"":t),"cleanStackLine"),Bl=de((t,e)=>{try{const{baseUrl:n,col:r,line:o}=jl(t),i=Ol(n,e);return ql(i,o,r)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),jl=de(t=>{const e=t.match(/:(\d+)(?::(\d+))?$/),n=e?.[1],r=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:r,line:n}},"parseUrlWithLocation"),Ol=de((t,e)=>{const n=new URL(t);let r=decodeURIComponent(n.pathname||"");return r=r.replaceAll(Mo,Qt),xt(e,r.startsWith(Qt)?r.slice(1):r)},"urlToAbsolutePath"),ql=de((t,e,n)=>{if(!e)return t;const r=n?`${br}${n}`:"";return`${t}${br}${e}${r}`},"formatAbsolutePath"),Ln=de(t=>t&&t.replaceAll(`\r
|
|
1862
|
+
${Ks};`,s},"patchOverlay");var la=Object.defineProperty,W=b((t,e)=>la(t,"name",{value:e,configurable:!0}),"n$2");const ca=/Failed to resolve import ["']([^"']+)["']/,da=/Cannot resolve module ["']([^"']+)["']/,ua=/Cannot resolve ["'](\.\.?\/[^"']*)["']/,pa=4,or=1e3,ha=5,ga=.5,ma=[".js",".ts",".jsx",".tsx",".mjs",".cjs"],fa=[".css",".scss",".sass",".less"],qr=[".svg",".png",".jpg",".jpeg",".gif",".webp",".ico"],va=new Set([...qr,...ma,...fa]),Q=W((t,...e)=>{const n=t.toLowerCase();return e.some(r=>n.includes(r.toLowerCase()))},"has"),wa=W((t,e)=>{const n=se.relative(t,e);return n.startsWith(".")?n:`./${n}`},"getRelativePath"),ba=W(t=>t===0?"":t===1?" (in parent directory)":t===2?" (in grandparent directory)":` (${t} directories away)`,"getPathContext"),ya=W((t,e)=>{try{const n=se.relative(t,e).split(se.sep).filter(o=>o&&o!==".");let r=0;for(const o of n)r+=o===".."?2:1;return r}catch{return 10}},"calculatePathDistance"),xa=W((t,e,n,r)=>{if(e&&r===e){const i=pt(t,n);return i<=Math.max(3,Math.floor(t.length*ga))?10-i:0}if(!e){const i=pt(t,n);return i===0?9:i<=Math.max(2,Math.floor(t.length*.3))&&va.has(r)?7-i:0}const o=pt(t,n);return o<=Math.max(2,Math.floor(t.length*.4))?5-o:0},"calculateRelevanceScore"),ka=W((t,e,n)=>{const r=[],o=W((i,s=0)=>{if(!(s>pa||r.length>or))try{const l=Ki.readdirSync(i,{withFileTypes:!0});for(const a of l){if(r.length>or)break;const c=se.join(i,a.name);if(a.isDirectory()&&!a.name.startsWith(".")&&a.name!=="node_modules")o(c,s+1);else if(a.isFile()){const d=se.extname(a.name),p=se.basename(a.name,d),g=xa(e,n,p,d);g>0&&r.push({baseName:p,extension:d,fullPath:c,path:c,relevanceScore:g})}}}catch{}},"walk");return o(t),r},"collectFileCandidates"),ir=W((t,e,n)=>{const r=se.basename(t),o=se.extname(r),i=se.basename(r,o),s=se.dirname(e),l=ka(n,i,o).map(g=>{const f=pt(i,g.baseName),v=ya(s,se.dirname(g.fullPath)),m=g.relevanceScore*.7+v*.2+f*.1;return{...g,nameDistance:f,pathDistance:v,score:m}});l.sort((g,f)=>g.score-f.score);const a=[],c=l.slice(0,8);let d=!1;for(const g of c){const f=wa(s,g.fullPath);if(!a.includes(f)){const v=ba(g.pathDistance);a.push(f+v);const m=g.fullPath.replaceAll("\\","/").split("/"),k=m.indexOf("public");k!==-1&&k<m.length-1&&(d=!0)}}let p=`<ul>${[...new Set(a)].slice(0,ha).map(g=>`<li>\`${g}\`</li>`).join(`
|
|
1863
|
+
`)}</ul>`;if(d){const g=r;[...qr].some(f=>g.includes(f))&&(p+=`Files in the \`public\` folder should be accessed via absolute URLs like \`/${g}\`.`)}return p},"findSimilarFiles"),_a=[{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:W(t=>Q(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:W(t=>Q(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:W(t=>Q(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(`
|
|
1864
|
+
`),header:"Environment Variables"},test:W(t=>Q(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:W(t=>Q(t,"Failed to load")&&Q(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:W(t=>Q(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:W(t=>Q(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:W((t,e)=>Q(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:W(t=>Q(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:W(t=>Q(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:W(t=>Q(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:W(t=>Q(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:W(t=>Q(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(`
|
|
1865
|
+
`)},test:W(t=>Q(t,"hydration failed","did not match","expected server html","text content does not match"),"test")}],$a=W(t=>({async handle(e,n){const{file:r,language:o}=n,i=e.message??"";if(Q(i,"Failed to resolve import","Cannot resolve module")){const s=i.match(ca),l=i.match(da),a=s?.[1]||l?.[1];if(a&&r){const c=ir(a,r,t);if(c)return{body:`The import path \`${a}\` could not be resolved.<br/><br/>Did you mean one of these files?<br/>${c}`};if([".jsx",".tsx"].includes(o)||Q(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(Q(i,"Cannot resolve")&&(o==="typescript"||o==="javascript")){const s=i.match(ua);if(s){const l=s[1];if(l&&r){const a=ir(l,r,t);if(a)return{body:`Cannot resolve \`${l}\`. Did you mean one of these files?${a}`,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 _a)if(s.test(i,r))return s.solution},name:"vite-solution-finder",priority:20}),"createViteSolutionFinder");var Ea=Object.defineProperty,ve=b((t,e)=>Ea(t,"name",{value:e,configurable:!0}),"o$4");const Sa=/\.mdx$/i,Ca=1,La=/syntax error/i,Ta=/Failed to load url\s+(.*?)\s+\(resolved id:/i,Pa=/glob:\s*"(.+)"\s*\(/i,Ra=ve(t=>t instanceof Error?t:new Error(String(t)),"createEnhancedError"),Fa=ve((t,e)=>{try{t.ssrFixStacktrace(e)}catch(n){console.warn("[visulima:vite-overlay:server] SSR stack trace fix failed:",n)}},"safeSsrFixStacktrace"),za=ve(t=>{try{const e=Ne(t,{frameLimit:Ca})?.[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"),Da=ve(async t=>{try{return await _r(t,"utf8")}catch(e){console.warn(`[visulima:vite-overlay:server] Failed to read file ${t}:`,e);return}},"safeReadFile"),Ma=ve((t,e)=>{const n=t.id||t.loc?.file||e;n&&Sa.test(String(n))&&La.test(t.message)&&(t.hint=t.hint||"MDX detected without an appropriate integration. Install and configure the MDX plugin for Vite/your framework.")},"enhanceMdxError"),Nr=ve((t,e)=>{const n=t.split(`
|
|
1866
|
+
`),r=n.findIndex(i=>i.includes(e));if(r===-1)return;const o=n[r]||"";return{column:Math.max(0,o.indexOf(e))+1,line:r+1}},"findImportLocation"),Aa=ve(async(t,e,n)=>{const r=Ta.exec(t.message)?.[1];if(r&&(t.title="Failed to Load Module (SSR)",t.name="FailedToLoadModuleSSR",t.message=`Failed to load module: ${r}`,t.hint="Verify import path, ensure a plugin handles this file type during SSR, and check for typos or missing files.",n&&e)){const o=Nr(n,r);o&&(t.loc={...o,file:e})}},"enhanceFailedLoadError"),Ia=ve(async(t,e,n)=>{const r=Pa.exec(t.message)?.[1];if(r&&(t.name="InvalidGlob",t.title="Invalid Glob Pattern",t.message=`Invalid glob pattern: ${r}`,t.hint=t.hint||"Ensure your glob follows the expected syntax and matches existing files. Avoid unintended special characters.",n&&e)){const o=Nr(n,r);o&&(t.loc={...o,file:e})}},"enhanceGlobError"),Ba=ve(async(t,e)=>{const n=Ra(t);Fa(e,n);const r=za(n),o=r?await Da(r):void 0;return await Aa(n,r,o),Ma(n,r),await Ia(n,r,o),n},"enhanceViteSsrError");var ja=Object.defineProperty,G=b((t,e)=>ja(t,"name",{value:e,configurable:!0}),"t$1");const Ur={javascript:G(()=>import("@shikijs/langs/javascript"),"javascript"),typescript:G(()=>import("@shikijs/langs/typescript"),"typescript"),jsx:G(()=>import("@shikijs/langs/jsx"),"jsx"),tsx:G(()=>import("@shikijs/langs/tsx"),"tsx"),json:G(()=>import("@shikijs/langs/json"),"json"),jsonc:G(()=>import("@shikijs/langs/jsonc"),"jsonc"),xml:G(()=>import("@shikijs/langs/xml"),"xml"),sql:G(()=>import("@shikijs/langs/sql"),"sql"),markdown:G(()=>import("@shikijs/langs/markdown"),"markdown"),mdx:G(()=>import("@shikijs/langs/mdx"),"mdx"),html:G(()=>import("@shikijs/langs/html"),"html"),css:G(()=>import("@shikijs/langs/css"),"css"),scss:G(()=>import("@shikijs/langs/scss"),"scss"),less:G(()=>import("@shikijs/langs/less"),"less"),sass:G(()=>import("@shikijs/langs/sass"),"sass"),stylus:G(()=>import("@shikijs/langs/stylus"),"stylus"),styl:G(()=>import("@shikijs/langs/styl"),"styl"),svelte:G(()=>import("@shikijs/langs/svelte"),"svelte"),vue:G(()=>import("@shikijs/langs/vue"),"vue"),bash:G(()=>import("@shikijs/langs/bash"),"bash"),shell:G(()=>import("@shikijs/langs/shell"),"shell"),text:G(()=>Promise.resolve({name:"text",patterns:[],scopeName:"source.text",repository:{}}),"text")};G(async t=>{if(typeof t!="string"||!t)return;const e=Ur[t.toLowerCase()];if(e)return await e()},"getLanguageImport");var Oa=Object.defineProperty,Ge=b((t,e)=>Oa(t,"name",{value:e,configurable:!0}),"a$7");let ht,gt;const Ha=Ge(async()=>{const[t,e]=await Promise.all([import("shiki/core"),import("shiki/engine/javascript")]),{createHighlighterCore:n}=t,{createJavaScriptRegexEngine:r}=e,o=await n({themes:[import("./packem_chunks/github-dark-default.js"),import("./packem_chunks/github-light.js")],langs:[],engine:r()}),i=o;return gt=Ge(()=>{try{o?.dispose?.()}catch{}ht=void 0},"disposeFn"),i},"createSingletonHighlighter"),qa=Ge(async(t,e)=>{if(e==="text")return;const n=e.toLowerCase();if(!(t.getLoadedLanguages?.()??t.getLanguages?.()??[]).includes(n)){const r=Ur[n];r&&await t.loadLanguage?.(await r())}},"ensureLanguageLoaded"),Gr=Ge(async(t=[])=>{ht||(ht=Ha());const e=await ht,n=[];for(const r of t)if(typeof r=="string")n.push(r.toLowerCase());else{const o=r.name;o&&n.push(o.toLowerCase())}return await Promise.all(n.map(r=>qa(e,r))),e},"getHighlighter");Ge(async()=>{try{gt&&(gt(),gt=void 0)}catch{}},"disposeHighlighter");const sr=Ge((t=[])=>({name:"@shikijs/transformers:compact-line-options",line(e,n){const r=t.find(o=>o.line===n);return r?.classes&&this.addClassToHast(e,r.classes),e}}),"transformerCompactLineOptions");var Na=Object.defineProperty,Wr=b((t,e)=>Na(t,"name",{value:e,configurable:!0}),"s$2");const Ua=Wr(t=>!Array.isArray(t)||t.length===0?!1:t.some(e=>e&&typeof e=="object"&&("location"in e||"pluginName"in e||"text"in e)),"isESBuildErrorArray"),Ga=Wr(t=>t.map((e,n)=>{const{location:r,pluginName:o,text:i}=e,s={message:i||`ESBuild error #${n+1}`,name:e.name||"Error",stack:e.stack||""};return r&&(s.file=r.file,s.line=r.line,s.column=r.column),o&&(s.plugin=o),s}),"processESBuildErrors");var Wa=Object.defineProperty,Vr=b((t,e)=>Wa(t,"name",{value:e,configurable:!0}),"c$7");const Va=/^\/@fs\//,Za=/^[./]*/,Ya=Vr((t,e)=>{for(const[n,r]of t.moduleGraph.idToModuleMap){if(!r)continue;const o=r,i=[String(o.file||"").replaceAll("\\","/"),String(n||"").replaceAll("\\","/"),String(o.url||"").replaceAll("\\","/")];for(const s of e)if(i.some(l=>l===s||l.includes(s)||s.includes(l)))return r}},"findBestModuleMatch"),ot=Vr((t,e)=>{const n=[...e,...e.map(i=>i.replace(Va,"")),...e.map(i=>i.replace(Za,""))];let r,o=0;for(const i of n)try{const s=t.moduleGraph.getModuleById(i);if(s){const a=Object.keys(s).length>0,c=!!s.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=s,o=d),c))return s}const l=t.moduleGraph.getModuleByUrl?.(i);if(l){const a=Object.keys(l).length>0,c=!!l.transformResult;let d=0;if(a&&c?d=2:a&&(d=1),a&&(d>o&&(r=l,o=d),c))return l}}catch{}return r||Ya(t,e)||void 0},"findModuleForPath");var Xa=Object.defineProperty,un=b((t,e)=>Xa(t,"name",{value:e,configurable:!0}),"r$1");const Qa=/^https?:\/\//,Ja=/^\/@fs\//,Ka=un(t=>{const e=new URL(t),{pathname:n}=e,r=e.search||"",o=[n+r,n,n.replace(Ja,""),decodeURIComponent(n+r),decodeURIComponent(n)];return[...new Set(o)].filter(Boolean)},"generateUrlCandidates"),Zr=un(t=>Qa.test(t),"isHttpUrl"),Se=un(t=>{if(!t)return[];try{if(Zr(t))return Ka(t);const e=[t];if(t.startsWith("/")&&e.push(t.slice(1)),t.includes("?")){const n=t.split("?")[0];n&&e.push(n)}return[...new Set(e)].filter(Boolean)}catch(e){return console.warn(`Failed to normalize path "${t}":`,e),[]}},"normalizeIdCandidates");var el=Object.defineProperty,ke=b((t,e)=>el(t,"name",{value:e,configurable:!0}),"o$2");const Yr=/\n/g,tl=/\s+/g,nl=/[A-Z_$][\w$]{2,}/i,rl=/\s/,ol=ke((t,e)=>t.split(Yr)[e-1]??"","getLine"),ar=ke(t=>t.replaceAll(tl,""),"removeWhitespace"),il=ke((t,e)=>{if(e<=0||e>t.length)return"";const n=Math.max(0,e-1),r=t.slice(n,n+64),o=nl.exec(r);if(o?.[0])return o[0];let i=r.trim();return i.length<4&&(i=t.slice(Math.max(0,n-16),n+16).trim()),i},"extractCandidateToken"),sl=ke((t,e)=>{let n=0;for(const[r,o]of[...t].entries())if(typeof o=="string"){if(n===e)return r+1;rl.test(o)||(n+=1)}return-1},"mapNormalizedToOriginalPosition"),al=ke((t,e)=>{if(!(!t||t.length<3))for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}},"tryTokenBasedSearch"),ll=ke((t,e)=>{if(t)for(const[n,r]of e.entries()){if(!r)continue;const o=r.indexOf(t);if(o!==-1)return{column:o+1,line:n+1}}},"tryLineSubstringSearch"),cl=ke((t,e)=>{if(!t)return;const n=ar(t);if(n)for(const[r,o]of e.entries()){if(!o)continue;const i=ar(o).indexOf(n);if(i!==-1){const s=sl(o,i);if(s!==-1)return{column:s,line:r+1}}}},"tryWhitespaceInsensitiveSearch"),dl=ke((t,e,n,r)=>{const o=ol(t,e);if(!o)return;const i=r.split(Yr),s=il(o,n);return al(s,i)||ll(o.trim(),i)||cl(o.trim(),i)},"realignOriginalPosition");var ul=Object.defineProperty,ee=b((t,e)=>ul(t,"name",{value:e,configurable:!0}),"C$6"),We=44,Xr=59,lr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr=new Uint8Array(64),Jr=new Uint8Array(128);for(let t=0;t<lr.length;t++){const e=lr.charCodeAt(t);Qr[t]=e,Jr[e]=t}function N(t,e){let n=0,r=0,o=0;do{const s=t.next();o=Jr[s],n|=(o&31)<<r,r+=5}while(o&32);const i=n&1;return n>>>=1,i&&(n=-2147483648|-n),e+n}b(N,"h$1");ee(N,"decodeInteger");function B(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),t.write(Qr[o])}while(r>0);return e}b(B,"i$4");ee(B,"encodeInteger");function me(t,e){return t.pos>=e?!1:t.peek()!==We}b(me,"S$2");ee(me,"hasMoreVlq");var cr=1024*16,dr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},pn=class{static{b(this,"T")}static{ee(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(cr)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===cr&&(this.out+=dr.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:r}=this;return r>0?n+dr.decode(e.subarray(0,r)):n}},hn=class{static{b(this,"w")}static{ee(this,"StringReader")}constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:r}=this,o=n.indexOf(e,r);return o===-1?n.length:o}},Kr=[];function pl(t){const{length:e}=t,n=new hn(t),r=[],o=[];let i=0;for(;n.pos<e;n.pos++){i=N(n,i);const s=N(n,0);if(!me(n,e)){const d=o.pop();d[2]=i,d[3]=s;continue}const l=N(n,0),a=N(n,0)&1?[i,s,0,0,l,N(n,0)]:[i,s,0,0,l];let c=Kr;if(me(n,e)){c=[];do{const d=N(n,0);c.push(d)}while(me(n,e))}a.vars=c,r.push(a),o.push(a)}return r}b(pl,"z");ee(pl,"decodeOriginalScopes");function hl(t){const e=new pn;for(let n=0;n<t.length;)n=gn(t,n,e,[0]);return e.flush()}b(hl,"F$4");ee(hl,"encodeOriginalScopes");function gn(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,4:c,vars:d}=o;e>0&&n.write(We),r[0]=B(n,i,r[0]),B(n,s,0),B(n,c,0);const p=o.length===6?1:0;B(n,p,0),o.length===6&&B(n,o[5],0);for(const g of d)B(n,g,0);for(e++;e<t.length;){const g=t[e],{0:f,1:v}=g;if(f>l||f===l&&v>=a)break;e=gn(t,e,n,r)}return n.write(We),r[0]=B(n,l,r[0]),B(n,a,0),e}b(gn,"P$4");ee(gn,"_encodeOriginalScopes");function gl(t){const{length:e}=t,n=new hn(t),r=[],o=[];let i=0,s=0,l=0,a=0,c=0,d=0,p=0,g=0;do{const f=n.indexOf(";");let v=0;for(;n.pos<f;n.pos++){if(v=N(n,v),!me(n,f)){const A=o.pop();A[2]=i,A[3]=v;continue}const m=N(n,0),k=m&1,L=m&2,T=m&4;let $=null,R=Kr,D;if(k){const A=N(n,s);l=N(n,s===A?l:0),s=A,D=[i,v,0,0,A,l]}else D=[i,v,0,0];if(D.isScope=!!T,L){const A=a,j=c;a=N(n,a);const U=A===a;c=N(n,U?c:0),d=N(n,U&&j===c?d:0),$=[a,c,d]}if(D.callsite=$,me(n,f)){R=[];do{p=i,g=v;const A=N(n,0);let j;if(A<-1){j=[[N(n,0)]];for(let U=-1;U>A;U--){const O=p;p=N(n,p),g=N(n,p===O?g:0);const ce=N(n,0);j.push([ce,p,g])}}else j=[[A]];R.push(j)}while(me(n,f))}D.bindings=R,r.push(D),o.push(D)}i++,n.pos=f+1}while(n.pos<e);return r}b(gl,"H$2");ee(gl,"decodeGeneratedRanges");function ml(t){if(t.length===0)return"";const e=new pn;for(let n=0;n<t.length;)n=mn(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}b(ml,"J$1");ee(ml,"encodeGeneratedRanges");function mn(t,e,n,r){const o=t[e],{0:i,1:s,2:l,3:a,isScope:c,callsite:d,bindings:p}=o;r[0]<i?(Vt(n,r[0],i),r[0]=i,r[1]=0):e>0&&n.write(We),r[1]=B(n,o[1],r[1]);const g=(o.length===6?1:0)|(d?2:0)|(c?4:0);if(B(n,g,0),o.length===6){const{4:f,5:v}=o;f!==r[2]&&(r[3]=0),r[2]=B(n,f,r[2]),r[3]=B(n,v,r[3])}if(d){const{0:f,1:v,2:m}=o.callsite;f!==r[4]?(r[5]=0,r[6]=0):v!==r[5]&&(r[6]=0),r[4]=B(n,f,r[4]),r[5]=B(n,v,r[5]),r[6]=B(n,m,r[6])}if(p)for(const f of p){f.length>1&&B(n,-f.length,0);const v=f[0][0];B(n,v,0);let m=i,k=s;for(let L=1;L<f.length;L++){const T=f[L];m=B(n,T[1],m),k=B(n,T[2],k),B(n,T[0],0)}}for(e++;e<t.length;){const f=t[e],{0:v,1:m}=f;if(v>l||v===l&&m>=a)break;e=mn(t,e,n,r)}return r[0]<l?(Vt(n,r[0],l),r[0]=l,r[1]=0):n.write(We),r[1]=B(n,a,r[1]),e}b(mn,"V$1");ee(mn,"_encodeGeneratedRanges");function Vt(t,e,n){do t.write(Xr);while(++e<n)}b(Vt,"U$2");ee(Vt,"catchupLine");function eo(t){const{length:e}=t,n=new hn(t),r=[];let o=0,i=0,s=0,l=0,a=0;do{const c=n.indexOf(";"),d=[];let p=!0,g=0;for(o=0;n.pos<c;){let f;o=N(n,o),o<g&&(p=!1),g=o,me(n,c)?(i=N(n,i),s=N(n,s),l=N(n,l),me(n,c)?(a=N(n,a),f=[o,i,s,l,a]):f=[o,i,s,l]):f=[o],d.push(f),n.pos++}p||to(d),r.push(d),n.pos=c+1}while(n.pos<=e);return r}b(eo,"K$1");ee(eo,"decode");function to(t){t.sort(no)}b(to,"Q$4");ee(to,"sort");function no(t,e){return t[0]-e[0]}b(no,"X$3");ee(no,"sortComparator");function ro(t){const e=new pn;let n=0,r=0,o=0,i=0;for(let s=0;s<t.length;s++){const l=t[s];if(s>0&&e.write(Xr),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){const d=l[c];c>0&&e.write(We),a=B(e,d[0],a),d.length!==1&&(n=B(e,d[1],n),r=B(e,d[2],r),o=B(e,d[3],o),d.length!==4&&(i=B(e,d[4],i)))}}return e.flush()}b(ro,"Z$3");ee(ro,"encode");var fl=Object.defineProperty,re=b((t,e)=>fl(t,"name",{value:e,configurable:!0}),"c$5");const vl=/^[\w+.-]+:\/\//,wl=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,bl=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function oo(t){return vl.test(t)}b(oo,"R$4");re(oo,"isAbsoluteUrl");function io(t){return t.startsWith("//")}b(io,"q$2");re(io,"isSchemeRelativeUrl");function fn(t){return t.startsWith("/")}b(fn,"m$5");re(fn,"isAbsolutePath");function so(t){return t.startsWith("file:")}b(so,"v$4");re(so,"isFileUrl");function Zt(t){return/^[.?#]/.test(t)}b(Zt,"u$1");re(Zt,"isRelative");function nt(t){const e=wl.exec(t);return vn(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}b(nt,"f$6");re(nt,"parseAbsoluteUrl");function ao(t){const e=bl.exec(t),n=e[2];return vn("file:","",e[1]||"","",fn(n)?n:"/"+n,e[3]||"",e[4]||"")}b(ao,"w$5");re(ao,"parseFileUrl");function vn(t,e,n,r,o,i,s){return{scheme:t,user:e,host:n,port:r,path:o,query:i,hash:s,type:7}}b(vn,"y$4");re(vn,"makeUrl");function Yt(t){if(io(t)){const n=nt("http:"+t);return n.scheme="",n.type=6,n}if(fn(t)){const n=nt("http://foo.com"+t);return n.scheme="",n.host="",n.type=5,n}if(so(t))return ao(t);if(oo(t))return nt(t);const e=nt("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}b(Yt,"p$2");re(Yt,"parseUrl");function lo(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(lo,"P$3");re(lo,"stripPathFilename");function co(t,e){wn(e,e.type),t.path==="/"?t.path=e.path:t.path=lo(e.path)+t.path}b(co,"A$2");re(co,"mergePaths");function wn(t,e){const n=e<=4,r=t.path.split("/");let o=1,i=0,s=!1;for(let a=1;a<r.length;a++){const c=r[a];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,o--):n&&(r[o++]=c);continue}r[o++]=c,i++}}let l="";for(let a=1;a<o;a++)l+="/"+r[a];(!l||s&&!l.endsWith("/.."))&&(l+="/"),t.path=l}b(wn,"d$5");re(wn,"normalizePath");function uo(t,e){if(!t&&!e)return"";const n=Yt(t);let r=n.type;if(e&&r!==7){const i=Yt(e),s=i.type;switch(r){case 1:n.hash=i.hash;case 2:n.query=i.query;case 3:case 4:co(n,i);case 5:n.user=i.user,n.host=i.host,n.port=i.port;case 6:n.scheme=i.scheme}s>r&&(r=s)}wn(n,r);const o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{const i=n.path.slice(1);return i?Zt(e||t)&&!Zt(i)?"./"+i+o:i+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}b(uo,"F$3");re(uo,"resolve");var yl=Object.defineProperty,P=b((t,e)=>yl(t,"name",{value:e,configurable:!0}),"i$3");function po(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}b(po,"ae$2");P(po,"stripFilename");function ho(t,e){const n=po(t),r=e?e+"/":"";return o=>uo(r+(o||""),n)}b(ho,"ge");P(ho,"resolver");var ae=0,bn=1,yn=2,xn=3,go=4,mo=1,fo=2;function vo(t,e){const n=Xt(t,0);if(n===t.length)return t;e||(t=t.slice());for(let r=n;r<t.length;r=Xt(t,r+1))t[r]=bo(t[r],e);return t}b(vo,"he");P(vo,"maybeSort");function Xt(t,e){for(let n=e;n<t.length;n++)if(!wo(t[n]))return n;return t.length}b(Xt,"X$2");P(Xt,"nextUnsortedSegmentLine");function wo(t){for(let e=1;e<t.length;e++)if(t[e][ae]<t[e-1][ae])return!1;return!0}b(wo,"_e");P(wo,"isSorted");function bo(t,e){return e||(t=t.slice()),t.sort(kn)}b(bo,"ve$1");P(bo,"sortSegments");function kn(t,e){return t[ae]-e[ae]}b(kn,"$$2");P(kn,"sortComparator");function yo(t,e){const n=e.map(()=>[]);for(let r=0;r<t.length;r++){const o=t[r];for(let i=0;i<o.length;i++){const s=o[i];if(s.length===1)continue;const l=s[bn],a=s[yn],c=s[xn],d=n[l];(d[a]||(d[a]=[])).push([c,r,s[ae]])}}for(let r=0;r<n.length;r++){const o=n[r];for(let i=0;i<o.length;i++){const s=o[i];s&&s.sort(kn)}}return n}b(yo,"Se$1");P(yo,"buildBySources");var Ce=!1;function xo(t,e,n,r){for(;n<=r;){const o=n+(r-n>>1),i=t[o][ae]-e;if(i===0)return Ce=!0,o;i<0?n=o+1:r=o-1}return Ce=!1,n-1}b(xo,"Ee$1");P(xo,"binarySearch");function _n(t,e,n){for(let r=n+1;r<t.length&&t[r][ae]===e;n=r++);return n}b(_n,"H$1");P(_n,"upperBound");function $n(t,e,n){for(let r=n-1;r>=0&&t[r][ae]===e;n=r--);return n}b($n,"Y$1");P($n,"lowerBound");function En(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}b(En,"k$2");P(En,"memoizedState");function ko(t,e,n,r){const{lastKey:o,lastNeedle:i,lastIndex:s}=n;let l=0,a=t.length-1;if(r===o){if(e===i)return Ce=s!==-1&&t[s][ae]===e,s;e>=i?l=s===-1?0:s:a=s}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=xo(t,e,l,a)}b(ko,"Me$1");P(ko,"memoizedBinarySearch");function Lt(t){return typeof t=="string"?JSON.parse(t):t}b(Lt,"j");P(Lt,"parse");P(function(t,e){const n=Lt(t);if(!("sections"in n))return new Pt(n,e);const r=[],o=[],i=[],s=[],l=[];Sn(n,e,r,o,i,s,l,0,0,1/0,1/0);const a={version:3,file:n.file,names:s,sources:o,sourcesContent:i,mappings:r,ignoreList:l};return To(a)},"FlattenMap");function Sn(t,e,n,r,o,i,s,l,a,c,d){const{sections:p}=t;for(let g=0;g<p.length;g++){const{map:f,offset:v}=p[g];let m=c,k=d;if(g+1<p.length){const L=p[g+1].offset;m=Math.min(c,l+L.line),m===c?k=Math.min(d,a+L.column):m<c&&(k=a+L.column)}_o(f,e,n,r,o,i,s,l+v.line,a+v.column,m,k)}}b(Sn,"ee$1");P(Sn,"recurse");function _o(t,e,n,r,o,i,s,l,a,c,d){const p=Lt(t);if("sections"in p)return Sn(...arguments);const g=new Pt(p,e),f=r.length,v=i.length,m=Re(g),{resolvedSources:k,sourcesContent:L,ignoreList:T}=g;if(mt(r,k),mt(i,g.names),L)mt(o,L);else for(let $=0;$<k.length;$++)o.push(null);if(T)for(let $=0;$<T.length;$++)s.push(T[$]+f);for(let $=0;$<m.length;$++){const R=l+$;if(R>c)return;const D=$o(n,R),A=$===0?a:0,j=m[$];for(let U=0;U<j.length;U++){const O=j[U],ce=A+O[ae];if(R===c&&ce>=d)return;if(O.length===1){D.push([ce]);continue}const De=f+O[bn],de=O[yn],_e=O[xn];D.push(O.length===4?[ce,De,de,_e]:[ce,De,de,_e,v+O[go]])}}}b(_o,"me");P(_o,"addSection");function mt(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}b(mt,"G$1");P(mt,"append");function $o(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}b($o,"xe");P($o,"getLine");var Eo="`line` must be greater than 0 (lines start at line 1)",So="`column` must be greater than or equal to 0 (columns start at column 0)",yt=-1,Tt=1,Pt=class{static{b(this,"R")}static{P(this,"TraceMap")}constructor(e,n){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const o=Lt(e),{version:i,file:s,names:l,sourceRoot:a,sources:c,sourcesContent:d}=o;this.version=i,this.file=s,this.names=l||[],this.sourceRoot=a,this.sources=c,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const p=ho(n,a);this.resolvedSources=c.map(p);const{mappings:g}=o;if(typeof g=="string")this._encoded=g,this._decoded=void 0;else if(Array.isArray(g))this._encoded=void 0,this._decoded=vo(g,r);else throw o.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(o)}`);this._decodedMemo=En(),this._bySources=void 0,this._bySourceMemos=void 0}};function Co(t){var e,n;return(n=(e=t)._encoded)!=null?n:e._encoded=ro(t._decoded)}b(Co,"oe$1");P(Co,"encodedMappings");function Re(t){var e;return(e=t)._decoded||(e._decoded=eo(t._encoded))}b(Re,"O$3");P(Re,"decodedMappings");function xl(t,e,n){const r=Re(t);if(e>=r.length)return null;const o=r[e],i=at(o,t._decodedMemo,e,n,Tt);return i===-1?null:o[i]}b(xl,"Oe");P(xl,"traceSegment");function Lo(t,e){let{line:n,column:r,bias:o}=e;if(n--,n<0)throw new Error(Eo);if(r<0)throw new Error(So);const i=Re(t);if(n>=i.length)return rt(null,null,null,null);const s=i[n],l=at(s,t._decodedMemo,n,r,o||Tt);if(l===-1)return rt(null,null,null,null);const a=s[l];if(a.length===1)return rt(null,null,null,null);const{names:c,resolvedSources:d}=t;return rt(d[a[bn]],a[yn]+1,a[xn],a.length===5?c[a[go]]:null)}b(Lo,"Le");P(Lo,"originalPositionFor");function kl(t,e){const{source:n,line:r,column:o,bias:i}=e;return Ln(t,n,r,o,i||Tt,!1)}b(kl,"ye$1");P(kl,"generatedPositionFor");function _l(t,e){const{source:n,line:r,column:o,bias:i}=e;return Ln(t,n,r,o,i||yt,!0)}b(_l,"Ce");P(_l,"allGeneratedPositionsFor");function $l(t,e){const n=Re(t),{names:r,resolvedSources:o}=t;for(let i=0;i<n.length;i++){const s=n[i];for(let l=0;l<s.length;l++){const a=s[l],c=i+1,d=a[0];let p=null,g=null,f=null,v=null;a.length!==1&&(p=o[a[1]],g=a[2]+1,f=a[3]),a.length===5&&(v=r[a[4]]),e({generatedLine:c,generatedColumn:d,source:p,originalLine:g,originalColumn:f,name:v})}}}b($l,"Ie");P($l,"eachMapping");function Cn(t,e){const{sources:n,resolvedSources:r}=t;let o=n.indexOf(e);return o===-1&&(o=r.indexOf(e)),o}b(Cn,"re$1");P(Cn,"sourceIndex");function El(t,e){const{sourcesContent:n}=t;if(n==null)return null;const r=Cn(t,e);return r===-1?null:n[r]}b(El,"Ne");P(El,"sourceContentFor");function Sl(t,e){const{ignoreList:n}=t;if(n==null)return!1;const r=Cn(t,e);return r===-1?!1:n.includes(r)}b(Sl,"be$1");P(Sl,"isIgnored");function To(t,e){const n=new Pt(Rt(t,[]),e);return n._decoded=t.mappings,n}b(To,"se$1");P(To,"presortedDecodedMap");function Cl(t){return Rt(t,Re(t))}b(Cl,"Re$1");P(Cl,"decodedMap");function Ll(t){return Rt(t,Co(t))}b(Ll,"we$2");P(Ll,"encodedMap");function Rt(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}b(Rt,"B");P(Rt,"clone");function rt(t,e,n,r){return{source:t,line:e,column:n,name:r}}b(rt,"b$3");P(rt,"OMapping");function qe(t,e){return{line:t,column:e}}b(qe,"y$3");P(qe,"GMapping");function at(t,e,n,r,o){let i=ko(t,r,e,n);return Ce?i=(o===yt?_n:$n)(t,r,i):o===yt&&i++,i===-1||i===t.length?-1:i}b(at,"w$4");P(at,"traceSegmentInternal");function Po(t,e,n,r,o){let i=at(t,e,n,r,Tt);if(!Ce&&o===yt&&i++,i===-1||i===t.length)return[];const s=Ce?r:t[i][ae];Ce||(i=$n(t,s,i));const l=_n(t,s,i),a=[];for(;i<=l;i++){const c=t[i];a.push(qe(c[mo]+1,c[fo]))}return a}b(Po,"Ue");P(Po,"sliceGeneratedPositions");function Ln(t,e,n,r,o,i){var s,l;if(n--,n<0)throw new Error(Eo);if(r<0)throw new Error(So);const{sources:a,resolvedSources:c}=t;let d=a.indexOf(e);if(d===-1&&(d=c.indexOf(e)),d===-1)return i?[]:qe(null,null);const p=(s=t)._bySourceMemos||(s._bySourceMemos=a.map(En)),g=((l=t)._bySources||(l._bySources=yo(Re(t),p)))[d][n];if(g==null)return i?[]:qe(null,null);const f=p[d];if(i)return Po(g,f,n,r,o);const v=at(g,f,n,r,o);if(v===-1)return qe(null,null);const m=g[v];return qe(m[mo]+1,m[fo])}b(Ln,"ie$1");P(Ln,"generatedPosition");var Tl=Object.defineProperty,oe=b((t,e)=>Tl(t,"name",{value:e,configurable:!0}),"f$5");const Pl=/`((?:[^`$]|\$\{[^}]+\})*)`/g,ur=/\$\{[^}]+\}/g,Rl=/[.*+?^${}()|[\]\\]/g,Ro=[/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*`/],Le=oe(t=>t.replaceAll(Rl,String.raw`\$&`),"escapeRegex"),Fl=oe(t=>{const e=Le(t);return[t,`new Error("${e}")`,`new Error('${e}')`,`new Error(\`${Le(t)}\`)`,`throw new Error("${e}")`,`throw new Error('${e}')`,`throw new Error(\`${Le(t)}\`)`,`Error("${e}")`,`Error('${e}')`]},"createErrorPatterns"),pr=oe((t,e)=>{const n=[...t.matchAll(Pl)];for(const r of n){const o=r[1];if(!o)continue;const i=o.split(ur);if(i.every(l=>l===""||e.includes(l))&&i.length>1)return!0;if(!o)continue;const s=o.replaceAll(ur,"(.+?)");try{if(new RegExp(`^${Le(s)}$`).test(e))return!0}catch{}}return!1},"checkTemplateLiteralMatch"),zl=[/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 (.+?)\)/],Dl=oe(t=>{for(const e of zl){const n=t.match(e);if(n)return n}},"findDynamicErrorMatch"),hr=oe(t=>{let e,n;for(const r of Ro){const o=t.match(r);o&&(!e||r.source.includes("throw")&&!n?.source.includes("throw"))&&(e=o,n=r)}return{bestMatch:e,bestPattern:n}},"findBestErrorConstructor"),gr=oe((t,e)=>{let n=t.index??0;if(e.source.includes("throw new")&&t[0].startsWith("throw new")){const r=t[0].indexOf("new");r!==-1&&(n+=r)}return n+1},"calculateActualColumn"),Ml=oe((t,e,n=0)=>{if(!t||!e)return;const r=t.split(`
|
|
1867
|
+
`),o=Dl(e),i=Fl(e),s=oe((p,g,f)=>{let v=0;for(const[m,k]of p.entries()){if(!k)continue;const L=k.includes(g)||pr(k,g),T=Ro.some($=>$.test(k));if(L&&T){const{bestMatch:$,bestPattern:R}=hr(k);if($&&R&&(v+=1,v>f))return{column:gr($,R),line:m+1}}}},"processErrorConstructorLines")(r,e,n);if(s)return s;o&&oe((p,g,f)=>{if(p[0].includes("Failed to resolve import")){const v=p[1];if(!v)return;const m=Le(v);f.unshift(`import.*from ["']${m}["']`,`import.*["']${m}["']`,v)}else if(p[0].includes("is not defined")){const v=p[1];if(!v)return;f.unshift(v,`{${v}}`,`src={${v}}`,`${v}.`,`=${v}`)}else if(p[0].includes("Cannot read properties")){const v=p[1],m=p[2];if(!m)return;f.unshift(m,`${v}.${m}`,`${v}?.${m}`,`${v}[${m}]`)}else{const v=p[1];if(!v)return;const m=Le(g),k=Le(v);f.unshift(`new Error(\`${k}`,`throw new Error(\`${k}`,`new Error("${k}`,`new Error('${k}`,`throw new Error("${k}`,`throw new Error('${k}`,`new Error("${m}")`,`new Error('${m}')`,`throw new Error("${m}")`,`throw new Error('${m}')`,`new Error(\`${m}\`)`,`throw new Error(\`${m}\`)`)}},"addDynamicPatterns")(o,e,i);const l=oe((p,g,f)=>{let v=0;for(const[m,k]of p.entries()){if(!k||!pr(k,g))continue;const{bestMatch:L,bestPattern:T}=hr(k);if(L&&T&&(v+=1,v>f))return{column:gr(L,T),line:m+1}}},"processTemplateLiteralLines"),a=oe((p,g,f,v)=>{if(!v)return p+1;if(v[0].includes("Failed to resolve import")){const m=v[1];if(f.includes(`"${m}"`)||f.includes(`'${m}'`)){const k=f.includes(`"${m}"`)?'"':"'";return f.indexOf(`${k}${m}${k}`)+1}}else if(v[0].includes("is not defined")){const m=v[1];if(m&&g===m)return p+1;if(m&&g.includes(m))return p+g.indexOf(m)+1}else if(v[0].includes("Cannot read properties")){const m=v[2];if(m&&g.includes(m))return p+g.indexOf(m)+1}else if(g.includes("new Error("))return f.indexOf("new Error(")+1;return p+1},"calculatePatternColumn"),c=oe((p,g,f,v)=>{let m=0;for(const[k,L]of p.entries()){if(!L)continue;let T=-1,$;for(const R of g){const D=L.indexOf(R);D!==-1&&(T===-1||D<T)&&(T=D,$=R)}if(T!==-1&&$&&(m+=1,m>v))return{column:a(T,$,L,f),line:k+1}}},"processPatternLines");return l(r,e,n)||c(r,i,o,n)},"findErrorInSourceCode");var Al=Object.defineProperty,lt=b((t,e)=>Al(t,"name",{value:e,configurable:!0}),"m$4");const Il=1,Bl=/^\//,mr=lt((t,e)=>{const n=Math.max(1,t),r=Math.max(0,e);let o,i;return n>=20?o=Math.max(1,Math.round(n*.5)):n>15?o=Math.max(1,Math.round(n*.6)):n>10?o=Math.max(1,n-8):o=Math.max(1,n-3),r>=10||r>7?i=Math.max(0,r-1):r>5?i=Math.max(0,r):i=r,{estimatedColumn:i,estimatedLine:o}},"estimateOriginalPosition"),jl=lt((t,e,n)=>{try{const r=new Pt(t);if(e<=0)return;const o=[{column:n,desc:"original",line:e},{column:Math.max(0,n-Il),desc:"offset",line:e},{column:n,desc:"line above",line:e-1},{column:n,desc:"line below",line:e+1},...Array.from({length:5},(i,s)=>({column:Math.max(0,n-2+s),desc:`col ${n-2+s}`,line:e}))].filter(i=>i.line>0);for(const i of o){const s=Lo(r,{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(r){console.warn("Source map processing failed:",r)}},"resolveSourceMapPosition"),Ol=lt((t,e)=>e?Zr(t)?Hl(t,e):e:t,"resolveSourcePath"),Hl=lt((t,e)=>{try{const n=new URL(t),r=(n.pathname||"").replace(Bl,""),o=r.includes("/")?r.slice(0,Math.max(0,r.lastIndexOf("/"))):"";return`${n.origin}/${o?`${o}/`:""}${e}`}catch(n){return console.warn("URL parsing failed for source path resolution:",n),t}},"resolveHttpSourcePath"),Qt=lt(async(t,e,n,r,o,i,s=0)=>{if(i&&e)try{let a;if(e.transformResult?.map?.sourcesContent?.[0]?[a]=e.transformResult.map.sourcesContent:e.transformResult?.code&&(a=e.transformResult.code),!a&&(e.id||e.url)){const c=e.id||e.url;if(c)try{const d=await t.transformRequest(c);d?.map&&"sourcesContent"in d.map&&d.map.sourcesContent?.[0]?[a]=d.map.sourcesContent:d?.code&&(a=d.code)}catch(d){console.warn("Failed to get fresh source for error search:",d)}}if(!a&&n)try{const c=await import("node:fs/promises");let d=n;if(n.includes("://"))try{d=new URL(n).pathname}catch{const p=n.indexOf("://");p!==-1&&(d=n.slice(p+3))}d.startsWith("/")||(d=`${t.config.root||process.cwd()}/${d}`),a=await c.readFile(d,"utf8")}catch(c){console.warn("Failed to read source file from disk:",c)}if(a){const c=Ml(a,i,s);if(c)return{originalFileColumn:c.column,originalFileLine:c.line,originalFilePath:n}}}catch(a){console.warn("Source code search failed:",a)}let l=e?.transformResult?.map;if(!l&&(e?.id||e?.url)){const a=e.id||e.url;if(a)try{const c=await t.transformRequest(a);c?.map&&(l=c.map)}catch(c){console.warn("Failed to get fresh source map:",c)}}if(!l){const{estimatedColumn:a,estimatedLine:c}=mr(r,o);return{originalFileColumn:a,originalFileLine:c,originalFilePath:n}}try{const a=jl(l,r,o);if(!a){const{estimatedColumn:d,estimatedLine:p}=mr(r,o);return{originalFileColumn:d,originalFileLine:p,originalFilePath:n}}const c=Ol(n,a.source);return{originalFileColumn:a.column,originalFileLine:a.line,originalFilePath:c}}catch(a){return console.warn("Source map resolution failed:",a),{originalFileColumn:o,originalFileLine:r,originalFilePath:n}}},"resolveOriginalLocation");var ql=Object.defineProperty,Nl=b((t,e)=>ql(t,"name",{value:e,configurable:!0}),"$e"),Ul=Object.defineProperty,Tn=Nl((t,e)=>Ul(t,"name",{value:e,configurable:!0}),"W"),Gl=Object.defineProperty,E=Tn((t,e)=>Gl(t,"name",{value:e,configurable:!0}),"u$1");let fr=E(()=>{var t=(()=>{var e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=E((u,h)=>{for(var w in h)e(u,w,{get:h[w],enumerable:!0})},"ne"),s=E((u,h,w,x)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of r(h))!o.call(u,y)&&y!==w&&e(u,y,{get:E(()=>h[y],"get"),enumerable:!(x=n(h,y))||x.enumerable});return u},"ae"),l=E(u=>s(e({},"__esModule",{value:!0}),u),"oe"),a={};i(a,{zeptomatch:E(()=>Nn,"zeptomatch")});var c=E(u=>{const h=new Set,w=[u];for(let x=0;x<w.length;x++){const y=w[x];if(h.has(y))continue;h.add(y);const{children:_}=y;if(_?.length)for(let C=0,I=_.length;C<I;C++)w.push(_[C])}return Array.from(h)},"M"),d=E(u=>{let h="";const w=c(u);for(let x=0,y=w.length;x<y;x++){const _=w[x];if(!_.regex)continue;const C=_.regex.flags;if(h||(h=C),h!==C)throw new Error(`Inconsistent RegExp flags used: "${h}" and "${C}"`)}return h},"se"),p=E((u,h,w)=>{const x=w.get(u);if(x!==void 0)return x;const y=u.partial??h;let _="";if(u.regex&&(_+=y?"(?:$|":"",_+=u.regex.source),u.children?.length){const C=f(u.children.map(I=>p(I,h,w)).filter(Boolean));if(C?.length){const I=u.children.some(Qe=>!Qe.regex||!(Qe.partial??h)),J=C.length>1||y&&(!_.length||I);_+=J?y?"(?:$|":"(?:":"",_+=C.join("|"),_+=J?")":""}}return u.regex&&(_+=y?")":""),w.set(u,_),_},"O"),g=E((u,h)=>{const w=new Map,x=c(u);for(let y=x.length-1;y>=0;y--){const _=p(x[y],h,w);if(!(y>0))return _}return""},"ie"),f=E(u=>Array.from(new Set(u)),"ue"),v=E((u,h,w)=>v.compile(u,w).test(h),"R");v.compile=(u,h)=>{const w=h?.partial??!1,x=g(u,w),y=d(u);return new RegExp(`^(?:${x})$`,y)};var m=v,k=E((u,h)=>{const w=m.compile(u,h),x=`${w.source.slice(0,-1)}[\\\\/]?$`,y=w.flags;return new RegExp(x,y)},"le"),L=k,T=E(u=>{const h=u.map(x=>x.source).join("|")||"$^",w=u[0]?.flags;return new RegExp(h,w)},"ve"),$=T,R=E(u=>Array.isArray(u),"j"),D=E(u=>typeof u=="function","_"),A=E(u=>u.length===0,"he"),j=(()=>{const{toString:u}=Function.prototype,h=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return w=>(w.length===0||w.length===1)&&h.test(u.call(w))})(),U=E(u=>typeof u=="number","de"),O=E(u=>typeof u=="object"&&u!==null,"xe"),ce=E(u=>u instanceof RegExp,"me"),De=(()=>{const u=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return h=>u.test(h.source)})(),de=(()=>{const u=/^[a-zA-Z0-9_-]+$/;return h=>u.test(h.source)&&!h.flags.includes("i")})(),_e=E(u=>typeof u=="string","A"),F=E(u=>u===void 0,"f"),H=E(u=>{const h=new Map;return w=>{const x=h.get(w);if(x!==void 0)return x;const y=u(w);return h.set(w,y),y}},"ye"),X=E((u,h,w={})=>{const x={cache:{},input:u,index:0,indexBacktrackMax:0,options:w,output:[]},y=ye(h)(x),_=Math.max(x.index,x.indexBacktrackMax);if(y&&x.index===u.length)return x.output;throw new Error(`Failed to parse at index ${_}`)},"I"),S=E((u,h)=>R(u)?Me(u,h):_e(u)?Ve(u,h):we(u,h),"i"),Me=E((u,h)=>{const w={};for(const x of u){if(x.length!==1)throw new Error(`Invalid character: "${x}"`);const y=x.charCodeAt(0);w[y]=!0}return x=>{const y=x.input;let _=x.index,C=_;for(;C<y.length&&y.charCodeAt(C)in w;)C+=1;if(C>_){if(!F(h)&&!x.options.silent){const I=y.slice(_,C),J=D(h)?h(I,y,`${_}`):h;F(J)||x.output.push(J)}x.index=C}return!0}},"we"),we=E((u,h)=>{if(de(u))return Ve(u.source,h);{const w=u.source,x=u.flags.replace(/y|$/,"y"),y=new RegExp(w,x);return De(u)&&D(h)&&!j(h)?zt(y,h):Dt(y,h)}},"$e"),zt=E((u,h)=>w=>{const x=w.index,y=w.input;u.lastIndex=x;const _=u.exec(y);if(_){const C=u.lastIndex;if(!w.options.silent){const I=h(..._,y,`${x}`);F(I)||w.output.push(I)}return w.index=C,!0}else return!1},"Ee"),Dt=E((u,h)=>w=>{const x=w.index,y=w.input;if(u.lastIndex=x,u.test(y)){const _=u.lastIndex;if(!F(h)&&!w.options.silent){const C=D(h)?h(y.slice(x,_),y,`${x}`):h;F(C)||w.output.push(C)}return w.index=_,!0}else return!1},"Ce"),Ve=E((u,h)=>w=>{const x=w.index,y=w.input;if(y.startsWith(u,x)){if(!F(h)&&!w.options.silent){const _=D(h)?h(u,y,`${x}`):h;F(_)||w.output.push(_)}return w.index+=u.length,!0}else return!1},"F"),Ae=E((u,h,w,x)=>{const y=ye(u),_=h>1;return Ye(ue(be(C=>{let I=0;for(;I<w;){const J=C.index;if(!y(C)||(I+=1,C.index===J))break}return I>=h},_),x))},"k"),Ze=E((u,h)=>Ae(u,0,1,h),"L"),Ie=E((u,h)=>Ae(u,0,1/0,h),"$"),Be=E((u,h)=>Ae(u,1,1/0,h),"Re"),V=E((u,h)=>{const w=u.map(ye);return Ye(ue(be(x=>{for(let y=0,_=w.length;y<_;y++)if(!w[y](x))return!1;return!0}),h))},"x"),Z=E((u,h)=>{const w=u.map(ye);return Ye(ue(x=>{for(let y=0,_=w.length;y<_;y++)if(w[y](x))return!0;return!1},h))},"p"),be=E((u,h=!0,w=!1)=>{const x=ye(u);return h?y=>{const _=y.index,C=y.output.length,I=x(y);return!I&&!w&&(y.indexBacktrackMax=Math.max(y.indexBacktrackMax,y.index)),(!I||w)&&(y.index=_,y.output.length!==C&&(y.output.length=C)),I}:x},"q"),ue=E((u,h)=>{const w=ye(u);return h?x=>{if(x.options.silent)return w(x);const y=x.output.length;if(w(x)){const _=x.output.splice(y,1/0),C=h(_);return F(C)||x.output.push(C),!0}else return!1}:w},"B"),Ye=(()=>{let u=0;return h=>{const w=ye(h),x=u+=1;return y=>{var _;if(y.options.memoization===!1)return w(y);const C=y.index,I=(_=y.cache)[x]||(_[x]={indexMax:-1,queue:[]}),J=I.queue;if(C<=I.indexMax){const Je=I.store||(I.store=new Map);if(J.length){for(let Oe=0,Hi=J.length;Oe<Hi;Oe+=2){const qi=J[Oe*2],Ni=J[Oe*2+1];Je.set(qi,Ni)}J.length=0}const pe=Je.get(C);if(pe===!1)return!1;if(U(pe))return y.index=pe,!0;if(pe)return y.index=pe.index,pe.output?.length&&y.output.push(...pe.output),!0}const Qe=y.output.length,Oi=w(y);if(I.indexMax=Math.max(I.indexMax,C),Oi){const Je=y.index,pe=y.output.length;if(pe>Qe){const Oe=y.output.slice(Qe,pe);J.push(C,{index:Je,output:Oe})}else J.push(C,Je);return!0}else return J.push(C,!1),!1}}})(),Fn=E(u=>{let h;return w=>(h||(h=ye(u())),h(w))},"G"),ye=H(u=>{if(D(u))return A(u)?Fn(u):u;if(_e(u)||ce(u))return S(u);if(R(u))return V(u);if(O(u))return Z(Object.values(u));throw new Error("Invalid rule")}),$e=E(u=>u,"d"),Bo=E(u=>typeof u=="string","ke"),jo=E(u=>{const h=new WeakMap,w=new WeakMap;return(x,y)=>{const _=y?.partial?w:h,C=_.get(x);if(C!==void 0)return C;const I=u(x,y);return _.set(x,I),I}},"Be"),Oo=E(u=>{const h={},w={};return(x,y)=>{const _=y?.partial?w:h;return _[x]??(_[x]=u(x,y))}},"Pe"),Ho=S(/\\./,$e),qo=S(/./,$e),No=S(/\*\*\*+/,"*"),Uo=S(/([^/{[(!])\*\*/,(u,h)=>`${h}*`),Go=S(/(^|.)\*\*(?=[^*/)\]}])/,(u,h)=>`${h}*`),Wo=Ie(Z([Ho,No,Uo,Go,qo])),Vo=Wo,Zo=E(u=>X(u,Vo,{memoization:!1}).join(""),"Ie"),Yo=Zo,zn="abcdefghijklmnopqrstuvwxyz",Xo=E(u=>{let h="";for(;u>0;){const w=(u-1)%26;h=zn[w]+h,u=Math.floor((u-1)/26)}return h},"Le"),Dn=E(u=>{let h=0;for(let w=0,x=u.length;w<x;w++)h=h*26+zn.indexOf(u[w])+1;return h},"V"),Mt=E((u,h)=>{if(h<u)return Mt(h,u);const w=[];for(;u<=h;)w.push(u++);return w},"b"),Qo=E((u,h,w)=>Mt(u,h).map(x=>String(x).padStart(w,"0")),"qe"),Mn=E((u,h)=>Mt(Dn(u),Dn(h)).map(Xo),"W"),Y=E(u=>({partial:!1,regex:new RegExp(u,"s"),children:[]}),"c"),Xe=E(u=>({children:u}),"y"),je=(()=>{const u=E((h,w,x)=>{if(x.has(h))return;x.add(h);const{children:y}=h;if(!y.length)y.push(w);else for(let _=0,C=y.length;_<C;_++)u(y[_],w,x)},"e");return h=>{if(!h.length)return Xe([]);for(let w=h.length-1;w>=1;w--){const x=new Set,y=h[w-1],_=h[w];u(y,_,x)}return h[0]}})(),xe=E(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Jo=S(/\\./,Y),Ko=S(/[$.*+?^(){}[\]\|]/,u=>Y(`\\${u}`)),ei=S(/[\\\/]/,xe),ti=S(/[^$.*+?^(){}[\]\|\\\/]+/,Y),ni=S(/^(?:!!)*!(.*)$/,(u,h)=>Y(`(?!^${Nn.compile(h).source}$).*?`)),ri=S(/^(!!)+/),oi=Z([ni,ri]),ii=S(/\/(\*\*\/)+/,()=>Xe([je([xe(),Y(".+?"),xe()]),xe()])),si=S(/^(\*\*\/)+/,()=>Xe([Y("^"),je([Y(".*?"),xe()])])),ai=S(/\/(\*\*)$/,()=>Xe([je([xe(),Y(".*?")]),Y("$")])),li=S(/\*\*/,()=>Y(".*?")),An=Z([ii,si,ai,li]),ci=S(/\*\/(?!\*\*\/|\*$)/,()=>je([Y("[^\\\\/]*?"),xe()])),di=S(/\*/,()=>Y("[^\\\\/]*")),In=Z([ci,di]),Bn=S("?",()=>Y("[^\\\\/]")),ui=S("[",$e),pi=S("]",$e),hi=S(/[!^]/,"^\\\\/"),gi=S(/[a-z]-[a-z]|[0-9]-[0-9]/i,$e),mi=S(/\\./,$e),fi=S(/[$.*+?^(){}[\|]/,u=>`\\${u}`),vi=S(/[\\\/]/,"\\\\/"),wi=S(/[^$.*+?^(){}[\]\|\\\/]+/,$e),bi=Z([mi,fi,vi,gi,wi]),jn=V([ui,Ze(hi),Ie(bi),pi],u=>Y(u.join(""))),yi=S("{","(?:"),xi=S("}",")"),ki=S(/(\d+)\.\.(\d+)/,(u,h,w)=>Qo(+h,+w,Math.min(h.length,w.length)).join("|")),_i=S(/([a-z]+)\.\.([a-z]+)/,(u,h,w)=>Mn(h,w).join("|")),$i=S(/([A-Z]+)\.\.([A-Z]+)/,(u,h,w)=>Mn(h.toLowerCase(),w.toLowerCase()).join("|").toUpperCase()),Ei=Z([ki,_i,$i]),On=V([yi,Ei,xi],u=>Y(u.join(""))),Si=S("{"),Ci=S("}"),Li=S(","),Ti=S(/\\./,Y),Pi=S(/[$.*+?^(){[\]\|]/,u=>Y(`\\${u}`)),Ri=S(/[\\\/]/,xe),Fi=S(/[^$.*+?^(){}[\]\|\\\/,]+/,Y),zi=Fn(()=>qn),Di=S("",()=>Y("(?:)")),Mi=Be(Z([An,In,Bn,jn,On,zi,Ti,Pi,Ri,Fi]),je),Hn=Z([Mi,Di]),qn=V([Si,Ze(V([Hn,Ie(V([Li,Hn]))])),Ci],Xe),Ai=Ie(Z([oi,An,In,Bn,jn,On,qn,Jo,Ko,ei,ti]),je),Ii=Ai,Bi=E(u=>X(u,Ii,{memoization:!1})[0],"kr"),ji=Bi,At=E((u,h,w)=>At.compile(u,w).test(h),"N");At.compile=(()=>{const u=Oo((w,x)=>L(ji(Yo(w)),x)),h=jo((w,x)=>$(w.map(y=>u(y,x))));return(w,x)=>Bo(w)?u(w,x):h(w,x)})();var Nn=At;return l(a)})();return t.default||t},"_lazyMatch"),Bt;const Wl=E((t,e)=>(Bt||(Bt=fr(),fr=null),Bt(t,e)),"default");var Vl=Object.defineProperty,Zl=Tn((t,e)=>Vl(t,"name",{value:e,configurable:!0}),"t$1");const Yl=/^[A-Z]:\//i,Fe=Zl((t="")=>t&&t.replaceAll("\\","/").replace(Yl,e=>e.toUpperCase()),"normalizeWindowsPath");var Xl=Object.defineProperty,ne=Tn((t,e)=>Xl(t,"name",{value:e,configurable:!0}),"r");const Ql=/^[/\\]{2}/,Jl=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Fo=/^[A-Z]:$/i,vr=/^\/([A-Z]:)?$/i,Kl=/.(\.[^./]+)$/,ec=/^[/\\]|^[a-z]:[/\\]/i,tc=ne(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),zo=ne((t,e)=>{let n="",r=0,o=-1,i=0,s;for(let l=0;l<=t.length;++l){if(l<t.length)s=t[l];else{if(s==="/")break;s="/"}if(s==="/"){if(!(o===l-1||i===1))if(i===2){if(n.length<2||r!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const a=n.lastIndexOf("/");a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}else if(n.length>0){n="",r=0,o=l,i=0;continue}}e&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${t.slice(o+1,l)}`:n=t.slice(o+1,l),r=l-o-1;o=l,i=0}else s==="."&&i!==-1?++i:i=-1}return n},"normalizeString"),it=ne(t=>Jl.test(t),"isAbsolute"),xt=ne(function(t){if(t.length===0)return".";t=Fe(t);const e=Ql.exec(t),n=it(t),r=t.at(-1)==="/";return t=zo(t,!n),t.length===0?n?"/":r?"./":".":(r&&(t+="/"),Fo.test(t)&&(t+="/"),e?n?`//${t}`:`//./${t}`:n&&!it(t)?`/${t}`:t)},"normalize");ne((...t)=>{let e="";for(const n of t)if(n)if(e.length>0){const r=e[e.length-1]==="/",o=n[0]==="/";r&&o?e+=n.slice(1):e+=r||o?n:`/${n}`}else e+=n;return xt(e)},"join");const kt=ne(function(...t){t=t.map(r=>Fe(r));let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const o=r>=0?t[r]:tc();!o||o.length===0||(e=`${o}/${e}`,n=it(o))}return e=zo(e,!n),n&&!it(e)?`/${e}`:e.length>0?e:"."},"resolve");ne(function(t){return Fe(t)},"toNamespacedPath");const nc=ne(function(t){return Kl.exec(Fe(t))?.[1]??""},"extname");ne(function(t,e){const n=kt(t).replace(vr,"$1").split("/"),r=kt(e).replace(vr,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const o=[...n];for(const i of o){if(r[0]!==i)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},"relative");const rc=ne(t=>{const e=Fe(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Fo.test(e[0])&&(e[0]+="/"),e.join("/")||(it(t)?"/":".")},"dirname");ne(function(t){const e=[t.root,t.dir,t.base??t.name+t.ext].filter(Boolean);return Fe(t.root?kt(...e):e.join("/"))},"format");const oc=ne((t,e)=>{const n=Fe(t).split("/").pop();return e&&n.endsWith(e)?n.slice(0,-e.length):n},"basename");ne(function(t){const e=ec.exec(t)?.[0]?.replaceAll("\\","/")??"",n=oc(t),r=nc(n);return{base:n,dir:rc(t),ext:r,name:n.slice(0,n.length-r.length),root:e}},"parse");ne((t,e)=>Wl(e,xt(t)),"matchesGlob");var ic=Object.defineProperty,le=b((t,e)=>ic(t,"name",{value:e,configurable:!0}),"e$1");const Jt="/",wr=":",sc="at ",ac=/https?:\/\/[^\s)]+/g,lc=/file:\/\//g,Do=/\/@fs\//g,cc=/\([^)]*:\d+:\d+\)/,dc=/\([^)]*:\d+\)/,uc=/[^(\s][^:]*:\d+:\d+/,pc=/[^(\s][^:]*:\d+/,hc=/:(\d+)(?::(\d+))?$/,gc=/\n/,mc=new Set([".cjs",".js",".jsx",".mjs",".svelte",".ts",".tsx",".vue"]),fc=new Set(["<anonymous>","<unknown>","native"]),vc=le(t=>{const e=t.match(hc),n=e?.[1],r=e?.[2];return{baseUrl:e?t.slice(0,-e[0].length):t,col:r,line:n}},"parseUrlWithLocation"),wc=le((t,e)=>{const n=new URL(t);let r=decodeURIComponent(n.pathname||"");return r=r.replaceAll(Do,Jt),kt(e,r.startsWith(Jt)?r.slice(1):r)},"urlToAbsolutePath"),bc=le((t,e,n)=>{if(!e)return t;const r=n?`${wr}${n}`:"";return`${t}${wr}${e}${r}`},"formatAbsolutePath"),yc=le(t=>{const e=t.trim();return!e.startsWith(sc)||!([...mc].some(n=>e.includes(n))||[...fc].some(n=>e.includes(n)))?!1:cc.test(e)||dc.test(e)||uc.test(e)||pc.test(e)||e.includes("native")||e.includes("<unknown>")},"isValidStackFrame"),xc=le(t=>{let e=t.replaceAll(Do,Jt);return e=e.replaceAll(lc,""),e.includes("<unknown>")?e.trim()||"":e.trim()&&!yc(e)?"":e},"cleanStackLine"),kc=le((t,e)=>{try{const{baseUrl:n,col:r,line:o}=vc(t),i=wc(n,e);return bc(i,o,r)}catch(n){return console.warn("Failed to absolutize URL:",t,n),t}},"absolutizeUrl"),Pn=le(t=>t&&t.replaceAll(`\r
|
|
1810
1868
|
`,`
|
|
1811
1869
|
`).replaceAll("\r",`
|
|
1812
|
-
`).split(
|
|
1813
|
-
`),"cleanErrorStack"),
|
|
1814
|
-
`)[0]||t;if(e&&n>0&&r>0)return{column:r,line:n,message:
|
|
1870
|
+
`).split(gc).map(e=>xc(e)).filter(e=>e.trim()!=="").join(`
|
|
1871
|
+
`),"cleanErrorStack"),_c=le(t=>{const e=typeof t=="string"?t:t.message||String(t);return Vi(e)},"cleanErrorMessage"),$c=le(t=>t instanceof AggregateError||t!==null&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors),"isAggregateError"),Ec=le(t=>$c(t)?t.errors:[t],"extractErrors"),Ft=le((t,e)=>t&&String(t).replaceAll(ac,n=>kc(n,e)),"absolutizeStackUrls");var Sc=Object.defineProperty,Cc=b((t,e)=>Sc(t,"name",{value:e,configurable:!0}),"c$3");const Lc=/\((\d+):(\d+)\)/,Tc=/(\S+\.vue)/,Pc=Cc(t=>{if(!t.includes("[vue/compiler-sfc]"))return;let e="",n=0,r=0;const o=t.match(Lc);o&&o[1]&&o[2]&&(n=Number.parseInt(o[1],10),r=Number.parseInt(o[2],10));const i=t.match(Tc);i&&i[1]&&(e=i[1]||"");const s=t.split(`
|
|
1872
|
+
`)[0]||t;if(e&&n>0&&r>0)return{column:r,line:n,message:s,originalFilePath:e}},"parseVueCompilationError");var Rc=Object.defineProperty,Mo=b((t,e)=>Rc(t,"name",{value:e,configurable:!0}),"l$2");const Fc=/<style\b[^>]*>[\s\S]*?<\/style>/gi,zc=/<script\b[^>]*>[\s\S]*?<\/script>/gi,Dc=/<template\b[^>]*>[\s\S]*?<\/template>/gi,Mc=/style="([^"]*)"/g,Ac=Mo(t=>{let e=t.replaceAll(Fc,"").replaceAll(zc,"").replaceAll(Dc,"").replaceAll("<!--$?-->","").replaceAll("<!--/$-->","");return e=e.replaceAll(Mc,(n,r)=>`style="${(r.trim().endsWith(";")?r:`${r};`).replaceAll(" ","")}"`),e},"removeStyleAndDataAttributes"),Ic="https://react.dev/link/hydration-mismatch",Bc=Mo(t=>{const[e,n]=t.message.split(Ic);if(e){const[i]=e?.split(`
|
|
1815
1873
|
|
|
1816
|
-
`);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const r=[];for(const i of
|
|
1874
|
+
`);t.message=i.replace(" This can happen if a SSR-ed Client Component used:","")}const r=[];for(const i of Ac(n?.trim()||"").split(`
|
|
1817
1875
|
`)||[])i.startsWith("+ ")?r.push(`[!code ++] ${i.slice(1)}`):i.startsWith("- ")?r.push(`[!code --] ${i.slice(1)}`):i.includes(" ...")||r.push(i);let o=r.findIndex(i=>i.startsWith("[!code ++]"));if(o===-1&&(o=r.findIndex(i=>i.startsWith("[!code --]"))),o!==-1)return r.slice(Math.max(0,o-5)).join(`
|
|
1818
|
-
`)},"processHydrationDiff");var
|
|
1819
|
-
at `)&&(r=e.replace(
|
|
1820
|
-
at `).replaceAll(
|
|
1821
|
-
at $1 $2`).replaceAll(
|
|
1822
|
-
at $1 $2`).replaceAll(
|
|
1823
|
-
at $1 <$2>:
|
|
1824
|
-
at $1 <unknown>:0:0`)),!r.includes("<unknown>")&&!r.includes("react-dom")&&!r.includes("react"))return r;const o=
|
|
1825
|
-
`)[k-1];if(
|
|
1826
|
-
`),
|
|
1827
|
-
`),
|
|
1828
|
-
`)}
|
|
1876
|
+
`)},"processHydrationDiff");var jc=Object.defineProperty,Oc=b((t,e)=>jc(t,"name",{value:e,configurable:!0}),"m");const Hc=/^(Error:.*?)at /,qc=/at ([^<\s]+)\s*(<[^>]+>:\d+:\d+)/g,Nc=/at ([^<\s]+)\s*(<unknown>:\d+:\d+)/g,Uc=/at ([^<\s]+)\s*<([^>]+)>:\d+:\d+/g,Gc=/at ([^<\s]+)(?=\s*at|$)/g,Wc=Oc(async(t,e,n)=>{let r=e;if(e.includes("at ")&&!e.includes(`
|
|
1877
|
+
at `)&&(r=e.replace(Hc,`$1
|
|
1878
|
+
at `).replaceAll(qc,`
|
|
1879
|
+
at $1 $2`).replaceAll(Nc,`
|
|
1880
|
+
at $1 $2`).replaceAll(Uc,`
|
|
1881
|
+
at $1 <$2>:0:0`),r=r.replaceAll(Gc,`
|
|
1882
|
+
at $1 <unknown>:0:0`)),!r.includes("<unknown>")&&!r.includes("react-dom")&&!r.includes("react"))return r;const o=Ne({stack:r}),i=await Promise.all(o.map(async s=>{const{file:l}=s,a=s.line??0,c=s.column??0;if(l&&l!=="<unknown>"&&a>0&&c>0&&!l.includes("react-dom")&&!l.includes("react"))return s;if(!l||a<=0||c<=0){if((l==="<unknown>"||l&&(l.includes("react-dom")||l.includes("react")))&&s.methodName){const{methodName:d}=s,p={batchedUpdates:"Batch Updates",dispatchEvent:"Event System",executeDispatch:"Event Dispatcher",processDispatchQueue:"Event Queue",runWithFiber:"Fiber Reconciliation"};for(const[g,f]of Object.entries(p))if(d.includes(g))return{...s,column:0,file:`[React] ${f}`,line:0};if(!d.includes("$")&&!d.includes("anonymous")){const g=Se(d),f=ot(t,g);if(f){const v=await Qt(t,f,"",1,1);if(v.originalFilePath)return{...s,column:v.originalFileColumn||1,file:v.originalFilePath,line:v.originalFileLine||1}}}}return s}try{const d=Se(l),p=ot(t,d);if(!p)return s;const g=await Qt(t,p,l,a,c);return{...s,column:g.originalFileColumn,file:g.originalFilePath,line:g.originalFileLine}}catch{return s}}));return $r(i,{header:n})},"remapStackToOriginal");var Vc=Object.defineProperty,ct=b((t,e)=>Vc(t,"name",{value:e,configurable:!0}),"t");const Zc=ct(t=>!!(t&&Array.isArray(t.sources)&&Array.isArray(t.sourcesContent)),"isValidSourceMap"),jt=ct(t=>typeof t=="string"?t:void 0,"getSourceContent"),Yc=ct((t,e)=>t===e||t.endsWith(e)||e.endsWith(t),"isPartialMatch"),Xc=ct((t,e)=>{if(!t||t.length===0)return-1;const n=t.indexOf(e);if(n!==-1)return n;if(!(e.includes("\\")||e.includes("/")))return-1;const r=xt(e),o=t.indexOf(r);if(o!==-1)return o;for(const[i,s]of t.entries()){if(!s||typeof s!="string")continue;const l=xt(s);if(Yc(l,r))return i}return-1},"findSourceIndex"),br=ct((t,e)=>{if(!Zc(t))return;if(!e&&t.sourcesContent?.[0])return jt(t.sourcesContent[0]);const n=Xc(t.sources,e||"");return n>=0&&t.sourcesContent?.[n]?jt(t.sourcesContent[n]):t.sourcesContent?.[0]?jt(t.sourcesContent[0]):void 0},"getSourceFromMap");var Qc=Object.defineProperty,Jc=b((t,e)=>Qc(t,"name",{value:e,configurable:!0}),"f");const yr=Jc(async(t,e,n,r)=>{let o,i;if(e&&typeof e=="object"&&"transformResult"in e&&e.transformResult){const l=e.transformResult;l.code&&!i&&(i=l.code),l.map&&!o&&(o=br(l.map,n))}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:r[0];if(s&&(!o||!i))try{const l=await t.transformRequest(s);if(l?.code&&!i&&(i=l.code),l?.map&&!o){const{map:a}=l,c=a;typeof a=="object"&&a!==null&&"mappings"in a&&c.mappings!==""&&(o=br(c,n))}}catch{}if(!o&&e&&typeof e=="object"&&"file"in e&&e.file)try{o=await _r(e.file,"utf8")}catch{}return{compiledSourceText:i,originalSourceText:o}},"retrieveSourceTexts");var Kc=Object.defineProperty,ed=b((t,e)=>Kc(t,"name",{value:e,configurable:!0}),"a");const td=ed((t={})=>{const{classActivePre:e="has-diff",classLineAdd:n="diff add",classLineRemove:r="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 l=s.children[0];l.type==="text"&&(l.value.startsWith("[!code ++]")&&(l.value=l.value.slice(10),this.addClassToHast(i,n)),l.value.startsWith("[!code --]")&&(l.value=l.value.slice(10),this.addClassToHast(i,r)))}})},name:"shiki-diff"}},"shikiDiffTransformer");var nd=Object.defineProperty,rd=b((t,e)=>nd(t,"name",{value:e,configurable:!0}),"r");const od=rd((t,e)=>!e||t.includes("?")?t:t+e,"addQueryToUrl");var id=Object.defineProperty,sd=b((t,e)=>id(t,"name",{value:e,configurable:!0}),"e");const ad=sd(t=>{try{return new URL(t).search}catch{return""}},"extractQueryFromHttpUrl");var ld=Object.defineProperty,ze=b((t,e)=>ld(t,"name",{value:e,configurable:!0}),"w");const cd=/[&<>"']/g,xr=/^https?:\/\/[^/]+/,kr=/^\//,dd={'"':""","&":"&","'":"'","<":"<",">":">"},Kt=ze(t=>t.replaceAll(cd,e=>dd[e]||e),"escapeHtml"),ud=ze(t=>Array.isArray(t)&&Ua(t)?Ga(t).map(e=>({message:e.message||"ESBuild error",name:e.name||"Error",stack:e.stack||""})):Ec(t),"extractIndividualErrors"),pd=ze(t=>{const e=Ne(t,{frameLimit:10}),n=e?.find(r=>r?.file?.startsWith("http"))||e?.[0];return{compiledColumn:n?.column??0,compiledFilePath:n?.file??"",compiledLine:n?.line??0}},"extractLocationFromStack"),hd=ze(async(t,e,n,r,o,i,s=0,l)=>{const a=o?.originalFilePath||e,c=o?.line??r,d=o?.column??n;if(a){let p=a,g=a;if(a.startsWith("http://")||a.startsWith("https://"))try{p=new URL(a).pathname,p.startsWith("/")&&(p=p.slice(1));const L=t.config.root||process.cwd();g=p.startsWith("/")?p:`${L}/${p}`}catch{console.warn("Failed to parse HTTP URL:",a)}const f=Se(p),v=ot(t,f);if(v)try{const L=await Qt(t,v,e||l||p,c,d,i,s),T=g||L.originalFilePath;return{originalFileColumn:L.originalFileColumn,originalFileLine:L.originalFileLine,originalFilePath:T}}catch{console.warn("Source map resolution failed, using estimation")}let m,k=d;return c>=20?m=Math.max(1,Math.round(c*.5)):c>15?m=Math.max(1,Math.round(c*.6)):c>10?m=Math.max(1,c-8):m=Math.max(1,c-3),d>=10||d>7?k=Math.max(0,d-1):d>5&&(k=Math.max(0,d)),{originalFileColumn:k,originalFileLine:m,originalFilePath:g||a}}return{originalFileColumn:d,originalFileLine:c,originalFilePath:a}},"resolveOriginalLocationInfo"),gd=ze((t,e,n,r,o,i)=>({compiledCodeFrameContent:void 0,compiledColumn:t,compiledFilePath:e,compiledLine:n,fixPrompt:"",originalCodeFrameContent:void 0,originalFileColumn:r,originalFileLine:o,originalFilePath:i,originalSnippet:""}),"createEmptyResult"),md=ze(async(t,e,n,r,o,i)=>{let s,l;const a=Ue(n),c=Ue(r)||a;if(a==="text"&&t&&t.trim()&&(s=`<pre class="shiki"><code>${Kt(t)}</code></pre>`),c==="text"&&e&&e.trim()&&(l=`<pre class="shiki"><code>${Kt(e)}</code></pre>`),a==="text"&&c==="text")return{compiledCodeFrameContent:l,originalCodeFrameContent:s};const d=await Gr([c,a]),p={themes:{dark:"github-dark-default",light:"github-light"}};if(t&&t.trim())try{s=d.codeToHtml(t,{...p,lang:a,transformers:[sr([{classes:["error-line"],line:o}])]})}catch{}if(e&&e.trim())try{l=d.codeToHtml(e,{...p,lang:c,transformers:[sr([{classes:["error-line"],line:i}])]})}catch{}return{compiledCodeFrameContent:l,originalCodeFrameContent:s}},"generateSyntaxHighlightedFrames"),fd=ze(async(t,e,n=0,r,o,i)=>{const s=r==="vue"&&t?.message?Pc(t.message):void 0,l=ud(t),a=l[0]||t,c=r==="react"&&t.message&&(t.message.toLowerCase().includes("hydration")||t.message.toLowerCase().includes("hydrating"));let d="";if(i&&i.length>1)for(const F of i.slice(1)){const H=F.stack||"",X=Ne({stack:H},{frameLimit:10})?.find(S=>S?.file?.startsWith("http"));if(X?.file&&(d=ad(X.file),d))break}const p=_c(a),g=Pn(a.stack||""),f=await Wc(e,g,{message:p,name:a.name});let v,m,k;if(o?.file&&o?.line&&o?.column)v=o.column,m=o.file,k=o.line;else{const F=pd(a);if(v=F.compiledColumn,m=F.compiledFilePath,k=F.compiledLine,m&&!m.startsWith("http")){const H=e.config.root;let X=m;m.startsWith(H)&&(X=m.slice(H.length)),X.startsWith("/")||(X=`/${X}`);const S=e.config.server.port||e.config.preview?.port||5173,Me=e.config.server.host||e.config.preview?.host||"localhost";let we=`${e.config.server.https?"https":"http"}://${Me}:${S}${X}`;d&&(we=od(we,d)),m=we}}if(c){const F=Bc(t);if(F){const H=m?Ue(m):"javascript";if(H==="text")return{errorCount:1,fixPrompt:It({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:`<pre class="shiki"><code>${Kt(F)}</code></pre>`,originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""};const X=await Gr([H]);return{errorCount:1,fixPrompt:It({applicationType:void 0,error:a,file:{file:m,language:"jsx",line:k,snippet:F}}),message:a.message,originalCodeFrameContent:X.codeToHtml(F,{lang:H,themes:{dark:"github-dark-default",light:"github-light"},transformers:[td()]}),originalFileColumn:v,originalFileLine:k,originalFilePath:m,originalSnippet:F,originalStack:a.stack||""}}}let L=o?.file||m;if(!o?.file&&a.stack){const F=Ne(a,{frameLimit:10})?.find(H=>H?.file&&!H.file.startsWith("http")&&!H.file.includes("node_modules")&&!H.file.includes(".vite")&&H.file.includes(".tsx"));F?.file&&(L=F.file)}let{originalFileColumn:T,originalFileLine:$,originalFilePath:R}=await hd(e,L,v,k,s,a.message,n,m);const D=o?.plugin;let A="",j="",U,O;try{const[F,H]=await Promise.all([ot(e,Se(m)),ot(e,Se(R))]);if(!F&&!H)return gd(v,m,k,T,$,R);const X=m.startsWith("http")?m.replace(xr,"").replace(kr,""):m,S=R.startsWith("http")?R.replace(xr,"").replace(kr,""):R,Me=F||H;if(Me?.transformResult?.code&&(O=Me.transformResult.code),H?.transformResult?.map&&!U){const V=H.transformResult.map;try{const Z=V.sourcesContent?.[0];Z&&(U=Z)}catch(Z){console.warn("Failed to get original source from source map:",Z)}}const we={compiledSourceText:void 0,originalSourceText:void 0},zt=!O&&F?yr(e,F,X,Se(X)):Promise.resolve(we),Dt=!U&&H?yr(e,H,S,Se(S)):Promise.resolve(we),[Ve,Ae]=await Promise.all([zt,Dt]);if(!O&&Ve.compiledSourceText&&({compiledSourceText:O}=Ve),!U&&Ae.originalSourceText&&({originalSourceText:U}=Ae),U){if(O&&$<=0&&k>0){const V=dl(O,k,v,U);V&&($=V.line,T=V.column)}try{A=Gn(U,{start:{column:Math.max(1,T),line:Math.max(1,$)}},{showGutter:!1})}catch{A=U?.slice(0,500)||""}}const Ze=O&&k>0,Ie=$>0&&T>0;let Be=!1;if(Ze&&k>0&&a.message&&O){const V=O.split(`
|
|
1883
|
+
`)[k-1];if(V&&v<=V.length){const Z=a.message,be=Math.max(0,v-1),ue=new Set(V.slice(Math.max(0,be)));Be=ue.has("new Error(")||ue.has("throw new Error")||ue.has("throw ")||ue.has(Z.slice(0,20)),!Be&&Ie&&(R.includes(".svelte")||R.includes(".vue")||R.includes(".astro")||m.includes(".js")||m.includes(".ts"))&&(Be=!0)}}if(Ze&&Be&&O){const V=O.split(`
|
|
1884
|
+
`),Z=V.length,be=Math.min(k,Z)||Math.max(1,Z-2),ue=V[be-1]?Math.min(v||1,V[be-1]?.length||1):1;try{j=Gn(O,{start:{column:ue,line:be}},{showGutter:!1})}catch(Ye){console.warn("Compiled codeFrame failed:",Ye),j=O?.slice(0,500)||""}}}catch(F){console.warn("Source retrieval failed:",F)}const{compiledCodeFrameContent:ce,originalCodeFrameContent:De}=await md(A,j,R,m,$,k);let de=A;if(!de&&U){const F=U.split(`
|
|
1885
|
+
`),H=Math.max(0,$-3),X=Math.min(F.length,$+2);de=F.slice(H,X).join(`
|
|
1886
|
+
`)}de||(de=j||`Error at line ${$} in ${R}`);const _e=It({applicationType:void 0,error:t,file:{file:R,language:Ue(R),line:$,snippet:de}});return{compiledCodeFrameContent:ce,compiledColumn:v,compiledFilePath:m,compiledLine:k,compiledStack:$r(Ne({message:p,name:a.name,stack:g}),{header:{message:p,name:a.name}}),errorCount:l.length,fixPrompt:_e,originalCodeFrameContent:De,originalFileColumn:T,originalFileLine:$,originalFilePath:R,originalSnippet:A,originalStack:f||g,plugin:D}},"buildExtendedErrorData");var vd=Object.defineProperty,wd=b((t,e)=>vd(t,"name",{value:e,configurable:!0}),"n");const bd=wd((t,e,n)=>{const r=e.map(o=>{const i=o.charAt(0).toUpperCase()+o.slice(1);return`
|
|
1829
1887
|
var orig${i} = console.${o};
|
|
1830
1888
|
|
|
1831
1889
|
console.${o} = function(...args) {
|
|
@@ -1923,7 +1981,7 @@ async function sendError(error, loc) {
|
|
|
1923
1981
|
|
|
1924
1982
|
var causeChain = extractCauseChain(error);
|
|
1925
1983
|
|
|
1926
|
-
hot.send('${
|
|
1984
|
+
hot.send('${jr}', {
|
|
1927
1985
|
name: error?.name || null,
|
|
1928
1986
|
message: error.message,
|
|
1929
1987
|
stack: error.stack,
|
|
@@ -1967,6 +2025,37 @@ window.addEventListener("unhandledrejection", function (evt) {
|
|
|
1967
2025
|
sendError(evt.reason);
|
|
1968
2026
|
});
|
|
1969
2027
|
|
|
2028
|
+
// Clears all error state when an HMR update is successfully applied (i.e. the error was fixed).
|
|
2029
|
+
// vite:beforeUpdate fires after successful compilation, before module replacement.
|
|
2030
|
+
// vite:beforeFullReload fires before a full-page reload (server restart / config change).
|
|
2031
|
+
function clearErrorState() {
|
|
2032
|
+
globalThis.__v_o_error_history = [];
|
|
2033
|
+
|
|
2034
|
+
var overlay = globalThis.__v_o__current;
|
|
2035
|
+
if (!overlay) return;
|
|
2036
|
+
|
|
2037
|
+
var root = overlay.__elements && overlay.__elements.root;
|
|
2038
|
+
if (root) root.classList.add('hidden');
|
|
2039
|
+
|
|
2040
|
+
var balloonGroup = overlay.__elements && overlay.__elements.balloonGroup;
|
|
2041
|
+
if (balloonGroup) {
|
|
2042
|
+
balloonGroup.classList.add('hidden');
|
|
2043
|
+
balloonGroup.classList.remove('inline-flex');
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
var balloonCount = overlay.__elements && overlay.__elements.balloonCount;
|
|
2047
|
+
if (balloonCount) balloonCount.style.setProperty('--num', '0');
|
|
2048
|
+
|
|
2049
|
+
// Reset dismissed flag so the next error shows the balloon again
|
|
2050
|
+
overlay.__v_oBalloonDismissed = false;
|
|
2051
|
+
if (typeof overlay._saveBalloonState === 'function') {
|
|
2052
|
+
overlay._saveBalloonState('dismissed', 'false');
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
hot.on('vite:beforeUpdate', function() { clearErrorState(); });
|
|
2057
|
+
hot.on('vite:beforeFullReload', function() { clearErrorState(); });
|
|
2058
|
+
|
|
1970
2059
|
// Expose overlay API for manual control
|
|
1971
2060
|
window.__visulima_overlay__ = {
|
|
1972
2061
|
open: function() {
|
|
@@ -1993,10 +2082,9 @@ window.__visulima_overlay__ = {
|
|
|
1993
2082
|
};
|
|
1994
2083
|
|
|
1995
2084
|
${r}
|
|
1996
|
-
`},"generateClientScript");var
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
${
|
|
2001
|
-
|
|
2002
|
-
`)),c.send(L)}catch(k){kt(t,"[visulima:vite-overlay:server] failed to build extended client error",k),c.send({err:{message:k.message,name:String(k.name||Br),stack:k.stack},type:"error"})}})},"setupHMRHandler"),Wc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),"hasReactPlugin"),Gc=J((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),"hasVuePlugin"),pd=J((t={})=>{let e,n,r;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(s,l){return s.plugins&&(n=Wc(s.plugins,t?.reactPluginName),r=Gc(s.plugins,t?.vuePluginName)),e=l.mode||"development",s},configureServer(s){const l=s.config.root||process.cwd(),a=Oc(s),{recentErrors:c,shouldSkip:d}=qc(),u=s.transformRequest.bind(s);s.transformRequest=async(f,m)=>{try{return await u(f,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const L=k.message.match(/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/);if(L){const[,P,$]=L;k.sourceFile=$,k.importPath=P}}throw k}};let h;n?h="react":r&&(h="vue"),Vc(s,d,c,l,t?.solutionFinders??[],h),Zc(s,a,d,c,l,t?.solutionFinders??[],o,h);const v=Uc(s,l,a);process.on("unhandledRejection",v),s.httpServer?.on("close",()=>{process.off("unhandledRejection",v)})},enforce:"pre",name:Us,transform(s,l,a){if(a?.ssr||!(l.includes("vite/dist/client/client.mjs")||l.includes("/@vite/client")))return null;const c=t?.showBallonButton===void 0?t?.overlay?.balloon?.enabled??!0:t.showBallonButton;return ra(s,c,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:Sc(e,i,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{pd as default};
|
|
2085
|
+
`},"generateClientScript");var yd=Object.defineProperty,K=b((t,e)=>yd(t,"name",{value:e,configurable:!0}),"d");const xd=/at\s+[^(\s]+\s*\(([^:)]+):(\d+):(\d+)\)/,kd=/at\s+([^:)]+):(\d+):(\d+)/,Ao=/Failed to resolve import ["']([^"']+)["'] from ["']([^"']+)["']/,_t=K((t,e,n)=>{try{const r=n instanceof Error?n.message:String(n);t.config.logger.error(`${e}: ${r}`,{clear:!0,timestamp:!0})}catch{}},"logError"),_d=K(t=>({error:K(e=>t.config.logger.error(String(e??""),{clear:!0,timestamp:!0}),"error"),log:K(e=>t.config.logger.info(String(e??"")),"log")}),"createDevelopmentLogger"),$d=K(()=>{const t=new Map;return{recentErrors:t,shouldSkip:K(e=>{const n=Date.now(),r=t.get(e)||0;return n-r<Gs?!0:(t.set(e,n),!1)},"shouldSkip")}},"createRecentErrorTracker"),Io=K(t=>`${String(t?.message||"")}
|
|
2086
|
+
${String(t?.stack||"")}`,"createErrorSignature"),Ed=K((t,e,n)=>async r=>{const o=r instanceof Error?r:new Error(String(r?.stack||r));try{t.ssrFixStacktrace(o)}catch(i){_t(t,"[visulima:vite-overlay:server] ssrFixStacktrace failed",i)}try{const i=await Ba(o,t);Object.assign(o,i)}catch(i){_t(t,"[visulima:vite-overlay:server] enhanceViteSsrError failed",i)}try{o.stack=Ft(Pn(String(o.stack||"")),e)}catch{}await n.error(Yi(o)),t.ws.send({err:o,type:"error"})},"createUnhandledRejectionHandler"),Sd=K(async(t,e,n)=>{let r;e.push(Qi,$a(n),Ji);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 l=await i({hint:t?.hint??"",message:t.message,name:t.name,stack:t?.stack},{file:t?.originalFilePath??"",language:Ue(t?.originalFilePath??""),line:t?.originalFileLine??0,snippet:t?.originalSnippet??""});if(l===void 0)continue;const a=await Yn(l.header??"");r={body:await Yn(l.body??""),header:a};break}catch{continue}}return r},"findSolution"),en=K(async(t,e,n,r,o,i,s)=>{const l=Xi(t);if(l.length===0)throw new Error("No errors found in the error stack");const a=await Promise.all(l.map(async(d,p)=>{let g=r;if(p>0){const m=(d?.stack?.split(`
|
|
2087
|
+
`)||[]).find(k=>k.includes("at ")&&!k.includes("node_modules"));if(m){const k=m.match(xd)||m.match(kd);if(k){const[,L,T,$]=k;g={column:Number.parseInt($||"0",10),file:L,line:Number.parseInt(T||"0",10),plugin:r?.plugin}}}}let f=g;p===0&&d?.sourceFile&&(f={...g,file:d.sourceFile});const v=await fd(d,e,p,s,f,l);return{hint:d?.hint,message:d?.message||"",name:d?.name||Or,stack:Ft(Pn(d?.stack||""),n),...v}})),c=await Sd(a[0],i,n);return{errors:a,errorType:o,rootPath:n,solution:c}},"buildExtendedError"),Rn=K(t=>{if(!t)return;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=Rn(t.cause)),e},"reconstructCauseChain"),Cd=K((t,e,n,r,o,i)=>{const s=t.ws.send.bind(t.ws);t.ws.send=async(l,a)=>{try{if(l&&typeof l=="object"&&l.type==="error"&&l.err){const{err:c}=l,d=Io(c);if(e(d))return;if(c.message?.includes("Failed to resolve import")){const p=c.message.match(Ao);if(p){const g=p[2],f=new Error(c.message);f.name="ImportResolutionError",f.stack=c.stack;const v=await en(f,t,r,{column:c.loc?.column||1,file:g,line:c.loc?.line||1,plugin:c.plugin||"vite:import-analysis"},"server",o,i);l.err=v,n.set(JSON.stringify(v),Date.now())}}else{const p=String(c?.name||"Error"),g=String(c.message),f=String(c.stack),v=new Error(g);v.name=p,v.stack=`${p}: ${g}
|
|
2088
|
+
${Ft(f,r)}`,c.cause&&(v.cause=Rn(c.cause));const m=c.sourceFile?{column:c.column,file:c.sourceFile,line:c.line,plugin:c.plugin}:void 0,k=await en(v,t,r,m,"server",o,i);l.err=k,n.set(JSON.stringify(k),Date.now())}}s(l,a)}catch(c){_t(t,"[visulima:vite-overlay:server] ws.send intercept failed",c),a&&typeof a.send=="function"?a.send(l,a):s(l,a)}}},"setupWebSocketInterception"),Ld=K((t,e,n,r,o,i,s,l)=>{t.ws.on(jr,async(a,c)=>{if(!s)return;const d=a&&typeof a=="object"?a:{message:Vs,stack:""},p=Io(d);if(n(p))return;const g=String(d?.name||"Error"),f=String(d.message),v=String(d.stack),m=new Error(f);m.name=g,m.stack=`${g}: ${f}
|
|
2089
|
+
${Ft(v,o)}`,d.cause&&(m.cause=Rn(d.cause));try{const k=await en(m,t,o,{column:d?.column,file:d?.file,line:d?.line,plugin:d?.plugin},"client",i,l);r.set(JSON.stringify(k),Date.now());const L={err:{...k},type:"error"};k.solution&&(L.solution=k.solution);const T=[...k.errors],$=T.shift();if(!$){await e.error("No error information available"),c.send(L);return}const R=[`${Un("red","[client]")} ${$.name}: ${$.message}`,...$.originalFilePath.includes("-extension://")?[]:["",Un("blue",`${$.originalFilePath}:${$.originalFileLine}:${$.originalFileColumn}`),"",await Zi($.originalSnippet,Ue($.originalFilePath),"nord"),"","Raw stack trace:","",$.originalStack]];T.forEach((D,A)=>{const j=" ".repeat(2*A);R.push("",`${j}Caused by: `,"",`${j}${D.name}: ${D.message}`,`${j}at ${D.originalFilePath}:${D.originalFileLine}:${D.originalFileColumn}`)}),await e.error(R.join(`
|
|
2090
|
+
`)),c.send(L)}catch(k){_t(t,"[visulima:vite-overlay:server] failed to build extended client error",k),c.send({err:{message:k.message,name:String(k.name||Or),stack:k.stack},type:"error"})}})},"setupHMRHandler"),Td=K((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:react-swc"||n.name==="vite:react-refresh"||n.name==="vite:react-babel"||n.name==="@vitejs/plugin-react"||typeof n=="function"&&n.name?.includes("react")||n.constructor&&n.constructor.name?.includes("React"))),"hasReactPlugin"),Pd=K((t,e)=>t.flat().some(n=>n&&(e&&n.name===e||n.name==="vite:vue"||n.name==="@vitejs/plugin-vue"||typeof n=="function"&&n.name?.includes("vue")||n.constructor&&n.constructor.name?.includes("Vue"))),"hasVuePlugin"),Vd=K((t={})=>{let e,n,r;const o=(t.logClientRuntimeError===void 0?t.forwardConsole:t.logClientRuntimeError)??!0,i=t.forwardedConsoleMethods??["error"];if(t.logClientRuntimeError!==void 0&&console.warn("[vite-overlay] The 'logClientRuntimeError' option is deprecated. Please use 'forwardConsole' instead."),i.length===0)throw new Error("forwardedConsoleMethods must be an array of console method names");return{apply:"serve",config(s,l){return s.plugins&&(n=Td(s.plugins,t?.reactPluginName),r=Pd(s.plugins,t?.vuePluginName)),e=l.mode||"development",s},configureServer(s){const l=s.config.root||process.cwd(),a=_d(s),{recentErrors:c,shouldSkip:d}=$d(),p=s.transformRequest.bind(s);s.transformRequest=async(v,m)=>{try{return await p(v,m)}catch(k){if(k?.message?.includes("Failed to resolve import")){const L=k.message.match(Ao);if(L){const[,T,$]=L;k.sourceFile=$,k.importPath=T}}throw k}};let g;n?g="react":r&&(g="vue"),Cd(s,d,c,l,t?.solutionFinders??[],g),Ld(s,a,d,c,l,t?.solutionFinders??[],o,g);const f=Ed(s,l,a);process.on("unhandledRejection",f),s.httpServer?.on("close",()=>{process.off("unhandledRejection",f)})},enforce:"pre",name:Ws,transform(s,l,a){if(a?.ssr||!(l.includes("vite/dist/client/client.mjs")||l.includes("/@vite/client")))return null;const c=t?.showBallonButton===void 0?t?.overlay?.balloon?.enabled??!0:t.showBallonButton;return aa(s,c,t?.overlay?.balloon,t?.overlay?.customCSS)},transformIndexHtml(){return{html:"",tags:[{attrs:{type:"module"},children:bd(e,i,t?.overlay?.balloon),injectTo:"head",tag:"script"}]}}}},"errorOverlayPlugin");export{Vd as default};
|