var w=Object.create;var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var g=(e,t)=>{for(var a in t)s(e,a,{get:t[a],enumerable:!0})},d=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of h(t))!f.call(e,n)&&n!==a&&s(e,n,{get:()=>t[n],enumerable:!(i=l(t,n))||i.enumerable});return e};var r=(e,t,a)=>(a=e!=null?w(u(e)):{},d(t||!e||!e.__esModule?s(a,"default",{value:e,enumerable:!0}):a,e)),y=e=>d(s({},"__esModule",{value:!0}),e);var v={};g(v,{default:()=>p});module.exports=y(v);var m=require("../modules/error");async function W(e){const[t,a,i]=[import("fs").then(o=>o.existsSync),import("path").then(o=>(...c)=>o.resolve(...c)),import("electron/main")];let n="docs/Readme.md";(await t)((await a)((await i).app.getAppPath(),"docs",(await i).app.getLocale(),"Readme.md"))&&(n="docs/"+(await i).app.getLocale()+"/Readme.md"),(await i).ipcMain.removeHandler("documentation-load"),(await i).ipcMain.removeAllListeners("documentation-show"),(await i).ipcMain.handle("documentation-load",async o=>{if(o.senderFrame?.url===e.webContents.getURL())return(await i).ipcMain.once("documentation-show",c=>{!e.isDestroyed()&&c.senderFrame?.url===e.webContents.getURL()&&e.show()}),(await a)((await i).app.getAppPath(),n)})}async function p(e){const[{initWindow:t},{appInfo:a}]=await Promise.all([import("../modules/parent.js"),import("../../common/modules/client.js")]),i=t("docs",e,{minWidth:a.minWinWidth,minHeight:a.minWinHeight,width:720,height:600});i!==void 0&&W(i).catch(m.commonCatches.throw)}
