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)}))}))}Ot(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}functionn(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofIt)return{binDir:It};consto=t(bt).sync("brew",{nothrow:!0});returnnull!==o?(It=(0,xt.dirname)(o),{binDir:It}):((0,ct.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),It="/usr/local/bin/",{binDir:It})}functiono(e){returne&&e.__esModule?e.default:e}functioni(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functions(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{s(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Ut(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functiona(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=Lt.sync(e.command,{path:r[Xt({env:r})],pathExt:t?Qe.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=(0,Qe.resolve)(o?e.options.cwd:"",s)),s}functionc(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionl(e,t){returnir&&1===e&&!t.file?c(t.original,"spawn"):null}functionu(e,t,r){constn=Vt(e,t,r),o=(0,ct.spawn)(n.command,n.args,n.options);returnor.hookChildProcess(o,n),o}asyncfunctiond(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=tn(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=nn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitsn(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newan)}))})),n.getBufferedValue()}functionp(){returnnull!==o(Lt).sync("sudo",{nothrow:!0})}functionh(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI}functionf(){returnh()&&p()}functionm(e){returnf()?"sudo "+e:e}functiong(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(Ht).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(Ht).sync(e,t,r)}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(Ht).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(Ht)(e,t,r)}functiony(){return"win32"===process.platform?Nn():h()}functionw(e){returnf()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,Qe.join)("/Users/",process.env.SUDO_USER,e):(0,Qe.join)("/home/",process.env.SUDO_USER,e):t(Ln)("~/"+e)}functionx(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=bt.sync(e.command,{path:r[zn({env:r})],pathExt:t?Qe.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=Qe.resolve(o?e.options.cwd:"",s)),s}functionb(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionE(e,t){returnto&&1===e&&!t.file?b(t.original,"spawn"):null}functionS(e,t,r){constn=Bn(e,t,r),o=ct.spawn(n.command,n.args,n.options);returneo.hookChildProcess(o,n),o}asyncfunctionO(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Qo(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=ti.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitni(e,n),t()}catch(e){i(e)}})(),n.on("data",((