import{_ as m}from"./filepath-item.vue-oo6zkdxa.js";import{H as p}from"./howhlbef.js";import{k as f,U as r,F as s,ac as _,R as n,V as o,a6 as h,N as d,X as k}from"./vendor/json-editor-vue-gplv2x2n.js";const N={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},g={"text-right":""},x={"ws-nowrap":""},B=f({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=p();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=m;return n(),r("div",N,[(n(!0),r(s,null,_(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",g,h(e.functionName||"(anonymous)"),1),o("div",x,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{B as _};
