const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/internal-editor-store-CuhCMFlj.js","assets/use-ws-BIe6kKa2.js","assets/createLucideIcon-CsWFljth.js","assets/markdown-9_JKOUHQ.js","assets/index-Z_QI94Zg.js","assets/mermaid-C0IQv4mH.js","assets/index-zxpgGDAW.css","assets/button-D8qrc3hb.js","assets/terminal-CuAYwdh-.js"])))=>i.map(i=>d[i]);
import{_ as g}from"./mermaid-C0IQv4mH.js";import{a,e as m,b as d}from"./index-Z_QI94Zg.js";const f={vscode:"vscode",cursor:"cursor",windsurf:"windsurf",zed:"zed",sublime:null,vim:null};function E(t,e){const{defaultEditor:i,useInternalEditor:n}=a.getState();if(n)return null;const o=f[e??i];if(!o)return null;const r=t.replace(/\\/g,"/"),c=r.startsWith("/")?r:"/"+r;return`${o}://file${c}`}function _(t,e){const{defaultEditor:i,useInternalEditor:n}=a.getState();if(n)return null;const o=f[e??i];if(!o)return null;const r=t.match(/^(.+):(\d+)$/),c=r?r[1]:t,u=r?r[2]:null,l=c.replace(/\\/g,"/"),p=l.startsWith("/")?l:"/"+l;return`${o}://file${p}${u?":"+u:""}`}function w(t){const e=t??a.getState().defaultEditor;return m[e]}function L(t,e){const{defaultEditor:i,useInternalEditor:n}=a.getState();if(n){I(t);return}const s=e??i,o=E(t,s);o?window.location.href=o:d.openInEditor(t,s)}function $(t,e){const{defaultEditor:i}=a.getState(),n=e??i,s=E(t,n);s?window.location.href=s:d.openInEditor(t,n)}function I(t){g(async()=>{const{useInternalEditorStore:e}=await import("./internal-editor-store-CuhCMFlj.js");return{useInternalEditorStore:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])).then(({useInternalEditorStore:e})=>{e.getState().openFile(t)})}export{$ as a,E as b,w as g,L as o,_ as t};
