functione(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e,t,n){if("function"==typeoft&&(n=t,t={}),!n){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((n,o)=>{r(e,t||{},((e,t)=>{e?o(e):n(t)}))}))}Mt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}functionn(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}lets;try{s=Nt.sync(e.command,{path:r[Bt({env:r})],pathExt:t?lt.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=lt.resolve(o?e.options.cwd:"",s)),s}functiono(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functioni(e,t){returner&&1===e&&!t.file?o(t.original,"spawn"):null}functions(e,t,r){constn=kt(e,t,r),o=yt.spawn(n.command,n.args,n.options);returnZt.hookChildProcess(o,n),o}asyncfunctiona(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Jr(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=Zr.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaittn(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newrn)}))})),n.getBufferedValue()}functionc(e){returne&&e.__esModule?e.default:e}functionl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionu(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{u(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Zn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functiond(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch(e){}lets;try{s=Yn.sync(e.command,{path:r[co({env:r})],pathExt:t?lt.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=(0,lt.resolve)(o?e.options.cwd:"",s)),s}functionp(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionh(e,t){returnbo&&1===e&&!t.file?p(t.original,"spawn"):null}functionf(e,t,r){constn=ao(e,t,r),o=(0,yt.spawn)(n.command,n.args,n.options);returnxo.hookChildProcess(o,n),o}asyncfunctionm(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=vi(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=wi.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitbi(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newEi)}))})),n.getBufferedValue()}functiong(){returnnull!==c(Yn).sync("sudo",{nothrow:!0})}functionv(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI}functiony(){returnv()&&g()}functionw(e){returny()?"sudo "+e:e}functionx(e,t=[],r={stdio:"inherit",shell:!0}){returny()?c(io).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(io).sync(e,t,r)}functionb(e,t=[],r={stdio:"inherit",shell:!0}){returny()?c(io).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(io)(e,t,r)}functionE(){return"win32"===process.platform?Wi():v()}functionS(e){returny()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,lt.join)("/Users/",process.env.SUDO_USER,e):(0,lt.join)("/home/",process.env.SUDO_USER,e):t(Gn)("~/"+e)}function_(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){returnt(Rt)((()=>{if(void0===Ji){conste=t(Nt).sync("pwsh",{nothrow:!0});null!==e&&(Ji=e);constr=t(Nt).sync("powershell",{nothrow:!0});null!==r&&(Ji=r)}if(void0===Ji)throwError("Could not find powershell");returnJi})(),[...r,"-c