functione(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e,t,s){if("function"==typeoft&&(s=t,t={}),!s){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((s,o)=>{r(e,t||{},((e,t)=>{e?o(e):s(t)}))}))}ze(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),s(e,r)}))}functions(e,r,s){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofYe)return{binDir:Ye};consto=t(Ue).sync("brew",{nothrow:!0});returnnull!==o?(Ye=we.dirname(o),{binDir:Ye}):(Ce.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),Ye="/usr/local/bin/",{binDir:Ye})}functiono(e,t){constr=e.options.env||process.env,s=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){}letn;try{n=Ue.sync(e.command,{path:r[Qe({env:r})],pathExt:t?we.delimiter:void0})}catch(e){}finally{i&&process.chdir(s)}returnn&&(n=we.resolve(o?e.options.cwd:"",n)),n}functioni(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionn(e,t){returnlt&&1===e&&!t.file?i(t.original,"spawn"):null}functiona(e,t,r){consts=Ze(e,t,r),o=Ce.spawn(s.command,s.args,s.options);returnct.hookChildProcess(o,s),o}asyncfunctionc(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,s=nr(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&s.getBufferedLength()<=cr.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),o(e)};(async()=>{try{awaitur(e,s),t()}catch(e){i(e)}})(),s.on("data",(()=>{s.getBufferedLength()>r&&i(newdr)}))})),s.getBufferedValue()}functionl(){vare;returnvoid0!==Nr||(Nr=(!!process.env.CI||0===(null===(e=process.getuid)||void0===e?void0:e.call(process)))&&null!==t(Ue).sync("sudo",{nothrow:!0})),Nr}functionu(e,r,s){returnl()?t(Je).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:s,stdio:"inherit"}):t(Je).sync(e,r,{stdio:"inherit"})}functiond(e){returnl()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?we.join("/Users/",process.env.SUDO_USER,e):we.join("/home/",process.env.SUDO_USER,e):t(Lr)("~/"+e)}functionp(e){if(void0===Fr){conste=t(Ue).sync("pwsh",{nothrow:!0});null!==e&&(Fr=e);constr=t(Ue).sync("powershell",{nothrow:!0});null!==r&&(Fr=r)}if(void0===Fr)throwError("Could not find powershell");t(Je).sync(Fr,["-c",e],{stdio:"inherit"})}functionh(e,t){try{jr.isGitHubCI()?Fe.exportVariable(e,t):m(e,t)}catch(r){try{returnDr.error(r),m(e,t)}catch(e){Dr.error(e)}Fe.setFailed(`Failed to export environment variable ${e}=${t}. You should add it manually.`)}}functionf(e){process.env.PATH=`${e}${we.delimiter}${process.env.PATH}`;try{jr.isGitHubCI()?Fe.addPath(e):g(e)}catch(t){try{returnDr.error(t),g(e)}catch(e){Dr.error(e)}Fe.setFailed(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}functionm(e,t){constr=null!=t?t:"";switch(process.platform){case"win32":returnp(`[Environment]::SetEnvironmentVariable("${e}", "${r}", "User")`),voidFe.info(`${e}="${r} was set in the environment."`);case"linux":case"darwin":returnv(),be.appendFileSync(Ur,`\nexport ${e}="${r}"\n`),voidFe.info(`${e}="${r} was added to "${Ur}"`)}process.env[e]=r}functiong(e){switch(process.platform){case"win32":returnp(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),voidFe.info(e+" was added to the PATH.");case"linux":case"darwin":returnv(),be.appendFileSync(Ur,`\nexport PATH=${e}:$PATH\n`),voidFe.info(`${e} was added to "${Ur}"`);default:return}}functionv(){if(Gr)return;conste="export SOURCE_CPPRC=0";if(be.existsSync(Ur)&&be.readFileSync(Ur,"utf8").includes(e))return;be.appendFileSync(Ur,`\n${e}\n`),Fe.info(`Added ${e} to ${Ur}`);constt=`\n# source .cpprc if SOURCE_