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)}))}))}Ae(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"==typeofDe)return{binDir:De};constn=e(Ce).sync("brew",{nothrow:!0});returnnull!==n?(De=ce.dirname(n),{binDir:De}):(ue.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),De="/usr/local/bin/",{binDir:De})}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[Ue({env:r})],pathExt:t?ce.delimiter:void0})}catch(e){}finally{s&&process.chdir(o)}returni&&(i=ce.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){returnJe&&1===e&&!t.file?s(t.original,"spawn"):null}functiona(e,t,r){consto=Ge(e,t,r),n=ue.spawn(o.command,o.args,o.options);returnze.hookChildProcess(n,o),n}functionc(){Rt&&(Rt=!1,Ot.forEach((e=>{try{process.removeListener(e,Ct[e])}catch(e){}})),process.emit=At,process.reallyExit=Tt,Pt.count-=1)}functionl(e,t,r){Pt.emitted[e]||(Pt.emitted[e]=!0,Pt.emit(e,t,r))}functionu(){Rt||(Rt=!0,Pt.count+=1,Ot=Ot.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),Tt.call(process,process.exitCode)}functiond(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=At.apply(this,arguments);returnl("exit",process.exitCode,null),l("afterexit",process.exitCode,null),r}returnAt.apply(this,arguments)}asyncfunctionh(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=Ut(t);returnawaitnewPromise(((t,n)=>{consts=e=>{e&&o.getBufferedLength()<=Vt.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{awaitHt(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(newXt)}))})),o.getBufferedValue()}asyncfunctionf(t,r,o=!0){constn="apt-get";if("string"==typeofo&&awaite(Me)("add-apt-repository",["--update","-y",o]),mr&&!0!==o||(awaite(Me)(n,["update","-y"]),mr=!0),void0!==r&&""!==r)try{awaite(Me)(n,["install","-y",`${t}=${r}`])}catch{awaite(Me)(n,["install","-y",`${t}-${r}`])}elseawaite(Me)(n,["install","-y",t]);return{binDir:"/usr/bin/"}}functionm(t,r){returnvr&&null!==e(Ce).sync("brew",{nothrow:!0})||(o(0,0,process),vr=!0),e(Me).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}asyncfunctionv(t){try{$e.addPath(t)}catch(r){switch($e.error(r),process.platform){case"win32":awaite(Me)(`setx PATH=${t};%PATH%`);break;case"linux":case"darwin":awaite(Me).command(`echo "export PATH=${t}:$PATH" >> ~/.profile`),awaite(Me).command("source ~/.profile"),$e.info(t+" was added to ~/.profile");break;default:$e.error(`Failed to add ${t} to the percistent PATH. You should add it manually.`),process.env.PATH=`${t}${ce.delimiter}${process.env.PATH}`}}}functiong(t,r,o){if("win32"!==process.platform)return;if("string"==typeofgr)return{binDir:gr};constn=e(Ce).sync("choco",{nothrow:!0});if(null!==n)returngr=ce.dirname(n),{binDir:gr};e(Me).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%;