!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n){e.exports=require("electron")},function(e,n){e.exports=require("ws")},function(e,n,t){"use strict";t.r(n);var r=t(0),o=t(1),s=t.n(o);const i=()=>{};let c=[];r.app.allowRendererProcessReuse=!0,r.app.whenReady().then(()=>{(()=>{i("Creating websocket server");const e=Number(process.env.port||7700);new s.a.Server({port:e}).on("connection",e=>{i("WebSocket connection established"),r.ipcMain.on("message",(n,t)=>{i("Extension message:",t),e.send(JSON.stringify(t))}),e.on("message",e=>{if("string"==typeof e){i("WebSocket message:",e);try{c.forEach(n=>n.webContents.send("message",JSON.parse(e)))}catch(e){}}else console.warn("Unsupported webSocket message:",e)})})})(),(()=>{const e=new r.BrowserWindow({width:800,height:600,webPreferences:{nodeIntegration:!0}});c=[...c,e],e.loadFile("./shell/panel.html")})()})}]);
//# sourceMappingURL=main.js.map