functione(e){returne&&e.__esModule?e.default:e}functiont(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}functionr(e,t,o){if("function"==typeoft&&(o=t,t={}),!o){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((o,n)=>{r(e,t||{},((e,t)=>{e?n(e):o(t)}))}))}Ie(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),o(e,r)}))}functiono(t,r,o){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofke)return{binDir:ke};constn=e(Ce).sync("brew",{nothrow:!0});returnnull!==n?(ke=le.dirname(n),{binDir:ke}):(pe.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),ke="/usr/local/bin/",{binDir:ke})}functionn(e,t){constr=e.options.env||process.env,o=process.cwd(),n=null!=e.options.cwd,s=n&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}leti;try{i=Ce.sync(e.command,{path:r[Be({env:r})],pathExt:t?le.delimiter:void0})}catch(e){}finally{s&&process.chdir(o)}returni&&(i=le.resolve(n?e.options.cwd:"",i)),i}functions(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){returnKe&&1===e&&!t.file?s(t.original,"spawn"):null}functiona(e,t,r){consto=Ue(e,t,r),n=pe.spawn(o.command,o.args,o.options);returnJe.hookChildProcess(n,o),n}functionc(){Tt&&(Tt=!1,_t.forEach((e=>{try{process.removeListener(e,Ct[e])}catch(e){}})),process.emit=It,process.reallyExit=At,Ot.count-=1)}functionl(e,t,r){Ot.emitted[e]||(Ot.emitted[e]=!0,Ot.emit(e,t,r))}functionu(){Tt||(Tt=!0,Ot.count+=1,_t=_t.filter((e=>{try{returnprocess.on(e,Ct[e]),!0}catch(e){return!1}})),process.emit=d,process.reallyExit=p)}functionp(e){process.exitCode=e||0,l("exit",process.exitCode,null),l("afterexit",process.exitCode,null),At.call(process,process.exitCode)}functiond(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=It.apply(this,arguments);returnl("exit",process.exitCode,null),l("afterexit",process.exitCode,null),r}returnIt.apply(this,arguments)}asyncfunctionh(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=Bt(t);returnawaitnewPromise(((t,n)=>{consts=e=>{e&&o.getBufferedLength()<=qt.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{awaitXt(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(newWt)}))})),o.getBufferedValue()}asyncfunctionf(t,r,o=!0){constn="apt-get";if("string"==typeofo&&awaite(Fe)("add-apt-repository",["--update","-y",o]),vr&&!0!==o||(awaite(Fe)(n,["update","-y"]),vr=!0),void0!==r&&""!==r)try{awaite(Fe)(n,["install","-y",`${t}=${r}`])}catch{awaite(Fe)(n,["install","-y",`${t}-${r}`])}elseawaite(Fe)(n,["install","-y",t]);return{binDir:"/usr/bin/"}}functionm(t,r){returngr&&null!==e(Ce).sync("brew",{nothrow:!0})||(o(0,0,process),gr=!0),e(Fe).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}asyncfunctionv(t){try{Re.addPath(t)}catch(r){switch(Re.error(r),process.platform){case"win32":awaite(Fe)(`setx PATH=${t};%PATH%`);break;case"linux":case"darwin":awaite(Fe).command(`echo "export PATH=${t}:$PATH" >> ~/.profile`),awaite(Fe).command("source ~/.profile"),Re.info(t+" was added to ~/.profile");break;default:Re.error(`Failed to add ${t} to the percistent PATH. You should add it manually.`),process.env.PATH=`${t}${le.delimiter}${process.env.PATH}`}}}functiong(t,r,o){if("win32"!==process.platform)return;if("string"==typeofyr)return{binDir:yr};constn=e(Ce).sync("choco",{nothrow:!0});if(null!==n)returnyr=le.dirname(n),{binDir:yr};e(Fe).commandSync('@"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString(\'https://community.chocolatey.org/install.ps1\'))" && SET "PATH=%PATH%;