import{d as u,A,M as O,B as b,C,r as c,c as _,a as v,b as a,o as m,p as W,e as k,f as S,g as D,h as N}from"./vendor.9d29c495.js";const B=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function i(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerpolicy&&(o.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?o.credentials="include":e.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(e){if(e.ep)return;e.ep=!0;const o=i(e);fetch(e.href,o)}};B();var f=(n,t)=>{for(const[i,r]of t)n[i]=r;return n};const l=require("electron").ipcRenderer,P=u({name:"AppHeader",components:{ArrowDownOutlined:A,MinusOutlined:O,BorderOutlined:b,CloseOutlined:C},methods:{trayWin(){l.send("window-tray")},minimizeWin(){l.send("window-min")},maximizeWin(){l.send("window-max")},closeWin(){l.send("window-close")}}}),x=n=>(W("data-v-18edc3e4"),n=n(),k(),n),I={class:"app-header"},q=x(()=>v("div",{class:"header-drag"},null,-1)),H={class:"header-icon"};function K(n,t,i,r,e,o){const s=c("ArrowDownOutlined"),p=c("MinusOutlined"),$=c("BorderOutlined"),g=c("CloseOutlined");return m(),_("div",I,[q,v("div",H,[a(s,{class:"icon",onClick:n.trayWin},null,8,["onClick"]),a(p,{class:"icon",onClick:n.minimizeWin},null,8,["onClick"]),a($,{class:"icon",onClick:n.maximizeWin},null,8,["onClick"]),a(g,{class:"icon",onClick:n.closeWin},null,8,["onClick"])])])}var L=f(P,[["render",K],["__scopeId","data-v-18edc3e4"]]);const M=u({name:"App",components:{AppHeader:L}}),z={id:"app"};function E(n,t,i,r,e,o){const s=c("app-header"),p=c("router-view");return m(),_("div",z,[a(s),a(p)])}var j=f(M,[["render",E]]);const R=require("yaml"),F=require("fs"),h=require("path"),w=process.cwd(),V=F.readFileSync(h.join(w,"./config/deploy.yaml"),"utf8"),d=R.parse(V),y=d.Deploy.Python.PythonExecutable,U=d.Deploy.Webui.WebuiPort.toString();h.isAbsolute(y)||h.join(w,y);const G=`http://127.0.0.1:${U}`;Boolean(d.Deploy.Webui.DpiScaling)||d.Deploy.Webui.DpiScaling;const J=u({name:"NKAS",computed:{url:function(){return G}}}),Q=["src"];function T(n,t,i,r,e,o){return m(),_("iframe",{class:"nkas",src:n.url},null,8,Q)}var X=f(J,[["render",T],["__scopeId","data-v-5b7ca354"]]);const Y=[{path:"/",name:"NKAS",component:X}];var Z=S({routes:Y,history:D()});N(j).use(Z).mount("#app");
//# sourceMappingURL=index.3863e92e.js.map
