import{a as e,o as t,t as n}from"./chunk-C94x7I9S.mjs";import{n as r,t as i}from"./esm-BS2W3Uzl.mjs";import{t as a}from"./execAsync-Chx_LJuI.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=e(`process`),s=a(),c=(r(),t(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
//# sourceMappingURL=getMachineId-win-DQ2s9Z1n.mjs.map