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)}))}))}Tt(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"==typeofGt)return{binDir:Gt};consto=t(_t).sync("brew",{nothrow:!0});returnnull!==o?(Gt=(0,$t.dirname)(o),{binDir:Gt}):((0,ft.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),Gt="/usr/local/bin/",{binDir:Gt})}functiono(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[Jt({env:r})],pathExt:t?it.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=it.resolve(o?e.options.cwd:"",s)),s}functioni(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functions(e,t){returnur&&1===e&&!t.file?i(t.original,"spawn"):null}functiona(e,t,r){constn=Zt(e,t,r),o=ft.spawn(n.command,n.args,n.options);returnlr.hookChildProcess(o,n),o}asyncfunctionc(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=cn(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=un.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitpn(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newhn)}))})),n.getBufferedValue()}functionl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionu(){returnnull!==t(Bt).sync("sudo",{nothrow:!0})}functiond(){return0===process.getuid?.()||!!process.env.CI}functionp(){returnd()&&u()}functionh(e){returnp()?"sudo "+e:e}functionf(e,r=[],n={stdio:"inherit",shell:!0}){returnp()?t(Yt).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Yt).sync(e,r,n)}functionm(e,r=[],n={stdio:"inherit",shell:!0}){returnp()?t(Yt).command("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Yt)(e,r,n)}functiong(){return"win32"===process.platform?Fn():d()}functionv(e){returne&&e.__esModule?e.default:e}functiony(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionx(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{x(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Qn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functionw(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=Kn.sync(e.command,{path:r[co({env:r})],pathExt:t?it.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=(0,it.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){returnbo&&1===e&&!t.file?b(t.original,"spawn"):null}functionS(e,t,r){constn=ao(e,t,r),o=(0,ft.spawn)(n.command,n.args,n.options);returnwo.hookChildProcess(o,n),o}asyncfunctionO(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()<=xi.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()}function_(){returnnull!==v(Kn).sync("sudo",{nothrow:!0})}functionT(){return0===process.ge