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)}))}))}kt(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=It.sync(e.command,{path:r[Mt({env:r})],pathExt:t?st.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=st.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){returnZt&&1===e&&!t.file?o(t.original,"spawn"):null}functions(e,t,r){constn=Rt(e,t,r),o=mt.spawn(n.command,n.args,n.options);returnKt.hookChildProcess(o,n),o}asyncfunctiona(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Wr(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=Kr.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitJr(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newQr)}))})),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)}))}))}Kn(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=Xn.sync(e.command,{path:r[io({env:r})],pathExt:t?st.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=(0,st.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){returnyo&&1===e&&!t.file?p(t.original,"spawn"):null}functionf(e,t,r){constn=oo(e,t,r),o=(0,mt.spawn)(n.command,n.args,n.options);returnvo.hookChildProcess(o,n),o}asyncfunctionm(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=fi(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=gi.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaityi(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newxi)}))})),n.getBufferedValue()}functiong(){returnnull!==c(Xn).sync("sudo",{nothrow:!0})}functionv(){return0===process.getuid?.()||!!process.env.CI}functiony(){returnv()&&g()}functionx(e){returny()?"sudo "+e:e}functionw(e,t=[],r={stdio:"inherit",shell:!0}){returny()?c(ro).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(ro).sync(e,t,r)}functionb(e,t=[],r={stdio:"inherit",shell:!0}){returny()?c(ro).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):c(ro)(e,t,r)}functionE(){return"win32"===process.platform?Vi():v()}functionS(e){returny()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,st.join)("/Users/",process.env.SUDO_USER,e):(0,st.join)("/home/",process.env.SUDO_USER,e):t(Un)("~/"+e)}functionO(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){returnt($t)((()=>{if(void0===Wi){conste=t(It).sync("pwsh",{nothrow:!0});null!==e&&(Wi=e);constr=t(It).sync("powershell",{nothrow:!0});null!==r&&(Wi=r)}if(void0===Wi)throwError("Could not find powershell");returnWi})(),[...r,"-c",e],n)}function_(e){"linux"!==process.platform&&