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,r){consto=newFe(e,t,r);process.stdout.write(""+o+ke.EOL)}functiono(e,t){constr=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throwError("Input required and not supplied: "+e);returnt&&!1===t.trimWhitespace?r:r.trim()}functionn(e,t={}){Ne.issueCommand("error",Me.toCommandProperties(t),einstanceofError?""+e:e)}functions(e){Ne.issue("group",e)}functioni(){Ne.issue("endgroup")}functiona(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,o)=>{a(e,t||{},((e,t)=>{e?o(e):r(t)}))}))}nt(e,t||{},((e,o)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,o=!1),r(e,o)}))}functionc(t,r,o){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeoflt)return{binDir:lt};constn=e(tt).sync("brew",{nothrow:!0});returnnull!==n?(lt=ce.dirname(n),{binDir:lt}):(ge.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),lt="/usr/local/bin/",{binDir:lt})}functionl(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=tt.sync(e.command,{path:r[ft({env:r})],pathExt:t?ce.delimiter:void0})}catch(e){}finally{s&&process.chdir(o)}returni&&(i=ce.resolve(n?e.options.cwd:"",i)),i}functionu(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionp(e,t){returnPt&&1===e&&!t.file?u(t.original,"spawn"):null}functiond(e,t,r){consto=ht(e,t,r),n=ge.spawn(o.command,o.args,o.options);returnSt.hookChildProcess(n,o),n}functionh(){rr&&(rr=!1,Jt.forEach((e=>{try{process.removeListener(e,tr[e])}catch(e){}})),process.emit=nr,process.reallyExit=or,Zt.count-=1)}functionf(e,t,r){Zt.emitted[e]||(Zt.emitted[e]=!0,Zt.emit(e,t,r))}functionm(){rr||(rr=!0,Zt.count+=1,Jt=Jt.filter((e=>{try{returnprocess.on(e,tr[e]),!0}catch(e){return!1}})),process.emit=g,process.reallyExit=v)}functionv(e){process.exitCode=e||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),or.call(process,process.exitCode)}functiong(e,t){if("exit"===e){void0!==t&&(process.exitCode=t);varr=nr.apply(this,arguments);returnf("exit",process.exitCode,null),f("afterexit",process.exitCode,null),r}returnnr.apply(this,arguments)}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,o=fr(t);returnawaitnewPromise(((t,n)=>{consts=e=>{e&&o.getBufferedLength()<=vr.MAX_LENGTH&&(e.bufferedData=o.getBufferedValue()),n(e)};(async()=>{try{awaityr(e,o),t()}catch(e){s(e)}})(),o.on("data",(()=>{o.getBufferedLength()>r&&s(newxr)}))})),o.getBufferedValue()}functionx(t,r){returnvoid0!==Ur||(Ur=(!!process.env.CI||0===(null===(o=process.getuid)||void0===o?void0:o.call(process)))&&null!==e(tt).sync("sudo",{nothrow:!0})),Ur?e(pt).command("sudo "+[t,...r].join(" "),{shell:!0}):e(pt)(t,r);varo}asyncfunctionw(e,t,r=!0){consto="apt-get";if("string"==typeofr&&awaitx("add-apt-repository",["--update","-y",r]),Br&&!0!==r||(awaitx(o,["update","-y"]),Br=!0),void0!==t&&""!==t)try{awaitx(o,["install","-y",`${e}=${t}`])}catch{awaitx(o,["install","-y",`${e}-${t}`])}elseawaitx(o,["install","-y",e]);return{binDir:"/usr/bin/"}}functionE(t,r){returnqr&&null!==e(tt).sync("brew",{nothrow:!0})||(c(0,0,process),qr=!0),e(pt).sync("brew",["install",void0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}functionb(t){try{Te.addPath(t)}catch(r){try{switch(Te.error(r),process.platform){case"win32":returnvoide(pt).sync(`setx PATH=${t};%PATH%`);case"linux":case"darwin":returne(pt).commandSync(`echo "export PATH=${t}:$PATH" >> ~/.profile`),e(pt).commandSync("source ~/.profile"),voidTe.info(t+" was added to ~/.profile")}}catch(