lete,t,r,n,i,o,s,a,l,c;functionu(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functiond(e){returne&&e.__esModule?e.default:e}functionp(e){returne&&e.__esModule?e.default:e}functionf(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionm(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise((r,n)=>{m(e,t||{},(e,t)=>{e?n(e):r(t)})})}rx(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}functionh(e,t){letr;letn=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}try{r=rw.sync(e.command,{path:n[rT({env:n})],pathExt:t?of.delimiter:void0})}catch(e){}finally{s&&process.chdir(i)}returnr&&(r=(0,of.resolve)(o?e.options.cwd:"",r)),r}functiong(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionv(e,t){returnoR&&1===e&&!t.file?g(t.original,"spawn"):null}functionE(e,t,r){letn=rR(e,t,r),i=(0,t0.spawn)(n.command,n.args,n.options);returnrN.hookChildProcess(i,n),i}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r0(t);returnawaitnewPromise((t,i)=>{leto=e=>{e&&n.getBufferedLength()<=r2.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{awaito2(e,n),t()}catch(e){o(e)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(newo3)})}),n.getBufferedValue()}functionw(){returnnull!==p(rw).sync("sudo",{nothrow:!0})}functionx(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI}functionb(){returnx()&&w()}functionS(e){returnb()?"sudo "+e:e}functionI(e,t=[],r={stdio:"inherit",shell:!0}){returnb()?p(rI).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI).sync(e,t,r)}functionO(e,t=[],r={stdio:"inherit",shell:!0}){returnb()?p(rI).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI)(e,t,r)}functionR(){return"win32"===process.platform?sr():x()}functionT(e){returnb()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,of.join)("/Users/",process.env.SUDO_USER,e):(0,of.join)("/home/",process.env.SUDO_USER,e):d(rm)("~/"+e)}functionC(e){returne&&"object"==typeofe&&"default"ine?e:{default:e}}function_(e,t,r,n){returnnew(r||(r=Promise))((i,o)=>{functions(e){try{l(n.next(e))}catch(e){o(e)}}functiona(e){try{l(n.throw(e))}catch(e){o(e)}}functionl(e){vart;e.done?i(e.value):((t=e.value)instanceofr?t:newr(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}functionP(e,t){functionr(r){returns=>(r=>{if(n)throwTypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)returno;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case0:case1:o=r;break;case4:returna.label++,{value:r[1],done:!1};case5:a.label++,i=r[1],r=[0];continue;case7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throwr[1];return{value:r[0]?r[1]:void0,done:!0}})([r,s])}varn,i,o,s,a={label:0,sent(){if(1&o[0])throwo[1];returno[1]},trys:[],ops:[]};returns={next:r(0),throw:r(1),return:r(2)},"function"==typeofSymbol&&(s[Symbol.iterator]=function(){returnthis}),s}asyncfunctionA(){try{awaitd(nl)({pkg:d(nA)})}catch(e){(0,rc.warning)("Failed to check for updates: "+(einstanceofError?e.message+e.stack:e))}}functionN(e){returnnull==e?[]:Array.isArray(e)?e:[e]}function$(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError(
export${e}="${r}"
`),(0,nN.info)(`${e}="${r}"wasaddedto"${lp}`);return}process.env[e]=r}async function en(e){switch(process.platform){case"win32":await J(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nN.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitei(),(0,om.appendFileSync)(lp,`
exportPATH="${e}:$PATH"
`),(0,nN.info)(`"${e}"wasaddedto"${lp}"`);return;default:return}}async function ei(){if(lf)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await (0,iP.pathExists)(lp)){let t=(0,om.readFileSync)(lp,"utf8");if(t.includes(e))return}(0,om.appendFileSync)(lp,`
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(t=s.architecture)&&void 0!==t?t:process.arch,l=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:T(""),c=[],u=[],p=rp.create({autoloadLocales:!0});rp.addLocale(d(rf)),ru.addLocale(d(rd));let f=await tb();if(!((e,t)=>{let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eJ(e[t],t)),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i}),!0)})(s,["llvm","clangtidy","clangformat"]))return(0,rc.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ey()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,rc.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eI("python-pygments"));let m=!1;for(let e of cl){let t=s[e];void 0!==t&&(n=Date.now(),m=await tV(e,t,f,a,l,c,u),i=Date.now(),(0,rc.info)("took "+(p.format(n,i)||"0 seconds")))}let h=s.compiler;if(void 0!==h){let e=Date.now();await tW(h,f,l,a,c,m,u);let t=Date.now();(0,rc.info)("took "+(p.format(e,t)||"0 seconds"))}if(await eo(),0===c.length&&0===u.length)return(0,rc.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,rc.success)(e)),u.forEach(e=>(0,rc.error)(e)),(0,rc.info)("setup-cpp finished"),!rl.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rc.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rc.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.")}returnawaito,0===u.length?0:1}"usestrict";vartK,tY,tQ,tJ,tZ,t0,t1,t2,t3,t4,t6,t8,t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rm,rh,rg,rv,rE,ry,rw,rx,rb,rS,rI,rO,rR,rT,rC,r_,rP,rA,rN,r$,rL,rD,rk,rU,rj,rM,rG,rF,rB,rH,rq,rV,rX,rW,rz,rK,rY,rQ,rJ,rZ,r0,r1,r2,r3,r4,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nm,nh,ng,nv,nE,ny,nw,nx,nb,nS,nI,nO,nR,nT,nC,n_,nP,nA,nN,n$,nL,nD,nk,nU,nj,nM,nG,nF,nB,nH,nq,nV,nX,nW,nz,nK,nY,nQ,nJ,nZ,n0,n1,n2,n3,n4,n6,n8,n5,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,im,ih,ig,iv,iE,iy,iw,ix,ib,iS,iI,iO,iR,iT,iC,i_,iP,iA,iN,i$,iL,iD,ik,iU,ij,iM,iG,iF,iB,iH,iq,iV,iX,iW,iz,iK,iY,iQ,iJ,iZ,i0,i1,i2,i3,i4,i6,i8,i5,i9,i7,oe,ot,or,on,oi,oo,os,oa,ol,oc,ou,od,op=require("os"),of=require("path"),om=require("fs"),oh=require("crypto"),og=require("http"),ov=require("https");require("net"),tK=require("tls"),tY=require("events"),tQ=require("assert"),tJ=require("util"),tZ=require("node:fs"),t0=require("child_process"),t1=require("string_decoder"),t2=require("timers"),t3=require("buffer"),t4=require("stream"),t6=require("process"),t8=require("node:buffer"),t5=require("node:path"),t9=require("node:child_process"),t7=require("node:process"),re=require("node:url"),rt=require("node:os"),rr=require("node:util"),rn=require("url"),ri="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},ro={},rs={},null==(ra=ri.parcelRequire810d)&&((ra=e=>{if(einro)returnro[e].exports;if(einrs){vart=rs[e];deleters[e];varr={id:e,exports:{}};returnro[e]=r,t.call(r.exports,r,r.exports),r.exports}varn=Error("Cannotfindmodule'"+e+"'");thrown.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{rs[e]=t},ri.parcelRequire810d=ra),ra.register("cLprm",(e,t)=>{varr;functionn(e){return"string"==typeofe?!!i[e]:"env"ine?i[e.env]&&i[e.env].includes(e.includes):"any"ine?e.any.some(e=>!!i[e]):Object.keys(e).every(t=>i[t]===e[t])}"usestrict";r=ra("iQYeD");leti=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(e=>e.constant)}),e.exports.name=null,e.exports.isPR=null,r.forEach(t=>{letr=Array.isArray(t.env
ErrorMessage:${e.result.message}`)}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return r(this,void 0,void 0,*()=>{try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}})}}e.exports.OidcClient=s}),ra.register("a9gnA",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=om.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unabletofindenvironmentvariablefor$${e.exports.SUMMARY_ENV_VAR}.Checkifyourruntimeenvironmentsupportsjobsummaries.`);try{yield n(t,om.constants.R_OK|om.constants.W_OK)}catch(e){throw Error(`Unabletoaccesssummaryfile:'${t}'.Checkifthefilehascorrectread/writepermissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>`${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){returnr(this,void0,void0,function*(){lett=!!(null==e?void0:e.overwrite),r=yieldthis.filePath();returnyield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnr(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){return0===this._buffer.length}emptyBuffer(){returnthis._buffer="",this}addRaw(e,t=!1){returnthis._buffer+=e,t?this.addEOL():this}addEOL(){returnthis.addRaw(op.EOL)}addCodeBlock(e,t){letr=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);returnthis.addRaw(n).addEOL()}addList(e,t=!1){letr=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);returnthis.addRaw(n).addEOL()}addTable(e){lett=e.map(e=>{lett=e.map(e=>{if("string"==typeofe)returnthis.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});returnthis.wrap(t?"th":"td",r,o)}).join("");returnthis.wrap("tr",t)}).join(""),r=this.wrap("table",t);returnthis.addRaw(r).addEOL()}addDetails(e,t){letr=this.wrap("details",this.wrap("summary",e)+t);returnthis.addRaw(r).addEOL()}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));returnthis.addRaw(s).addEOL()}addHeading(e,t){letr="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);returnthis.addRaw(i).addEOL()}addSeparator(){lete=this.wrap("hr",null);returnthis.addRaw(e).addEOL()}addBreak(){lete=this.wrap("br",null);returnthis.addRaw(e).addEOL()}addQuote(e,t){letr=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);returnthis.addRaw(n).addEOL()}addLink(e,t){letr=this.wrap("a",e,{href:t});returnthis.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s}),ra.register("3zXsD",(e,t)=>{varr,n,i;"usestrict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!
${n.message}`:m,v=[g,t,e].filter(Boolean).join("\n");return h?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},rH={};const oU=["stdin","stdout","stderr"],oj=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oU.map(t=>e[t]);if(oU.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+oU.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);returnArray.from({length:Math.max(t.length,oU.length)},(e,r)=>t[r])};(rH=oj).node=e=>{lett=oj(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},rV={},rX=rh.process;constoM=e=>e&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;if(oM(rX)){varoG,oF=tQ,oB=rE("4c98W"),oH=/^win/i.test(rX.platform),oq=tY;"function"!=typeofoq&&(oq=oq.EventEmitter),rX.__signal_exit_emitter__?oG=rX.__signal_exit_emitter__:((oG=rX.__signal_exit_emitter__=newoq).count=0,oG.emitted={}),oG.infinite||(oG.setMaxListeners(1/0),oG.infinite=!0);varoV=()=>{oz&&oM(rh.process)&&(oz=!1,oB.forEach(e=>{try{rX.removeListener(e,oW[e])}catch(e){}}),rX.emit=oJ,rX.reallyExit=oY,oG.count-=1)};(rV=(e,t)=>{if(!oM(rh.process))return()=>{};oF.equal(typeofe,"function","a callback must be provided for exit handler"),!1===oz&&oK();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),oG.on(r,e),()=>{oG.removeListener(r,e),0===oG.listeners("exit").length&&0===oG.listeners("afterexit").length&&oV()}}).unload=oV;varoX=(e,t,r)=>{oG.emitted[e]||(oG.emitted[e]=!0,oG.emit(e,t,r))},oW={};oB.forEach(e=>{oW[e]=()=>{oM(rh.process)&&rX.listeners(e).length===oG.count&&(oV(),oX("exit",null,e),oX("afterexit",null,e),oH&&"SIGHUP"===e&&(e="SIGINT"),rX.kill(rX.pid,e))}}),rV.signals=()=>oB;varoz=!1,oK=()=>{!oz&&oM(rh.process)&&(oz=!0,oG.count+=1,oB=oB.filter(e=>{try{returnrX.on(e,oW[e]),!0}catch(e){return!1}}),rX.emit=oZ,rX.reallyExit=oQ)};rV.load=oK;varoY=rX.reallyExit,oQ=e=>{oM(rh.process)&&(rX.exitCode=e||0,oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),oY.call(rX,rX.exitCode))},oJ=rX.emit,oZ=function(e,t){if("exit"===e&&oM(rh.process)){void0!==t&&(rX.exitCode=t);varr=oJ.apply(this,arguments);returnoX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),r}returnoJ.apply(this,arguments)}}elserV=()=>()=>{};consto0=e=>e===op.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase();rz=(rq={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>o0(e)&&!1!==t&&r)(t,r,n))return;leti=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||0>e)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne})(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}))},t)}),s=n.finally(()=>{clearTimeout(i)});returnPromise.race([o,s])},validateTimeout({timeout:e}){if(void0!==e&&(!Number.isFinite(e)||0>e))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},asyncsetExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)returnn;leti=rV(()=>{e.kill()});returnn.finally(()=>{i()})}}).spawnedKill,rK=rq.spawnedCancel,rY=rq.setupTimeout,rQ=rq.validateTimeout,rJ=rq.setExitHandler,rZ={};consto1=e=>null!==e&&"object"==typeofe&&"function"==
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},n4={};const s_=["stdin","stdout","stderr"],sP=e=>s_.some(t=>void 0!==e[t]),sA=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return s_.map(t=>e[t]);if(sP(e))throw Error("It's not possible to provide `stdio` in combination with one of "+s_.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);letr=Math.max(t.length,s_.length);returnArray.from({length:r},(e,r)=>t[r])};(n4=sA).node=e=>{lett=sA(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},n6={},n8={},n5=ri.process;constsN=e=>e&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;if(sN(n5)){vars$,sL=tQ,sD=ra("2dWxz"),sk=/^win/i.test(n5.platform),sU=tY;"function"!=typeofsU&&(sU=sU.EventEmitter),n5.__signal_exit_emitter__?s$=n5.__signal_exit_emitter__:((s$=n5.__signal_exit_emitter__=newsU).count=0,s$.emitted={}),s$.infinite||(s$.setMaxListeners(1/0),s$.infinite=!0);varsj=()=>{sF&&sN(ri.process)&&(sF=!1,sD.forEach(e=>{try{n5.removeListener(e,sG[e])}catch(e){}}),n5.emit=sV,n5.reallyExit=sH,s$.count-=1)};(n8=(e,t)=>{if(!sN(ri.process))return()=>{};sL.equal(typeofe,"function","a callback must be provided for exit handler"),!1===sF&&sB();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),s$.on(r,e),()=>{s$.removeListener(r,e),0===s$.listeners("exit").length&&0===s$.listeners("afterexit").length&&sj()}}).unload=sj;varsM=(e,t,r)=>{s$.emitted[e]||(s$.emitted[e]=!0,s$.emit(e,t,r))},sG={};sD.forEach(e=>{sG[e]=()=>{sN(ri.process)&&n5.listeners(e).length===s$.count&&(sj(),sM("exit",null,e),sM("afterexit",null,e),sk&&"SIGHUP"===e&&(e="SIGINT"),n5.kill(n5.pid,e))}}),n8.signals=()=>sD;varsF=!1,sB=()=>{!sF&&sN(ri.process)&&(sF=!0,s$.count+=1,sD=sD.filter(e=>{try{returnn5.on(e,sG[e]),!0}catch(e){return!1}}),n5.emit=sX,n5.reallyExit=sq)};n8.load=sB;varsH=n5.reallyExit,sq=e=>{sN(ri.process)&&(n5.exitCode=e||0,sM("exit",n5.exitCode,null),sM("afterexit",n5.exitCode,null),sH.call(n5,n5.exitCode))},sV=n5.emit,sX=function(e,t){if(!("exit"===e&&sN(ri.process)))returnsV.apply(this,arguments);void0!==t&&(n5.exitCode=t);varr=sV.apply(this,arguments);returnsM("exit",n5.exitCode,null),sM("afterexit",n5.exitCode,null),r}}elsen8=()=>()=>{};"use strict";"use strict";constsW=(e,t,r,n)=>{if(!sz(t,r,n))return;leti=sY(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},sz=(e,{forceKillAfterTimeout:t},r)=>sK(e)&&!1!==t&&r,sK=e=>e===op.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),sY=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne},sQ=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},sJ=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=n8(()=>{e.kill()});returnn.finally(()=>{i()})};"use strict";"use strict";n9=(n6={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);returnsW(e,t,r,n),n},spawnedCancel(e,t){letr=e.kill();r&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{sQ(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});returnPromise.race([o,s])},validateTimeout({timeout:e}){if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},setExitHandler:sJ}).spawnedKill,n7=n6.spa
${t}`,ac=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),au=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ad=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=al.bind(null,n,t.toString());Object.defineProperty(i,"name",au),Object.defineProperty(e,"toString",{...ac,value:i})},ap=new WeakMap,af=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(ap.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function\`${i}\` can only be called once`);returnr};return((e,t,{ignoreNonConfigurable:r=!1}={})=>{let{name:n}=e;for(letnofReflect.ownKeys(t))ao(e,t,n,r);returnaa(e,t),ad(e,t,n)})(o,e),ap.set(o,n),o};af.callCount=e=>{if(!ap.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnap.get(e)},iT=af;constam=()=>Array.from({length:av-ag+1},ah),ah=(e,t)=>({name:"SIGRT"+(t+1),number:ag+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ag=34,av=64,aE=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"termin
${n.message}`:h,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},aT=["stdin","stdout","stderr"],aC=e=>aT.some(t=>void 0!==e[t]),a_=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return aT.map(t=>e[t]);if(aC(e))throw Error("It's not possible to provide `stdio` in combination with one of "+aT.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);letr=Math.max(t.length,aT.length);returnArray.from({length:r},(e,r)=>t[r])},aP=(e,t="SIGTERM",r={})=>{letn=e(t);returnaA(e,t,r,n),n},aA=(e,t,r,n)=>{if(!aN(t,r,n))return;leti=aL(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},aN=(e,{forceKillAfterTimeout:t},r)=>a$(e)&&!1!==t&&r,a$=e=>e===d(rt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),aL=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne},aD=(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0)},ak=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},aU=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{ak(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});returnPromise.race([o,s])},aj=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},aM=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=d(n8)(()=>{e.kill()});returnn.finally(()=>{i()})},aG=e=>einstanceoft9.ChildProcess&&"function"==typeofe.then,aF=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,tZ.createWriteStream)(r)),e;if(K(r))returne[t].pipe(r),e;if(!aG(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!K(r.stdin))throwTypeError("The target child process's stdin must be available.");returne[t].pipe(r.stdin),r},aB=e=>{null!==e.stdout&&(e.pipeStdout=aF.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aF.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=aF.bind(void0,e,"all"))},aH=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.")},aq=({input:e,inputFile:t})=>"string"!=typeoft?e:(aH(e),(0,tZ.readFileSync)(t)),aV=e=>{lett=aq(e);if(z(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt},aX=({input:e,inputFile:t})=>"string"!=typeoft?e:(aH(e),(0,tZ.createReadStream)(t)),aW=(e,t)=>{letr=aX(t);void0!==r&&(z(r)?r.pipe(e.stdin):e.stdin.end(r))},az=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=d(id)();returne.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},aK=async(e,t)=>{if(e&&void0!==t){e.destroy();try{returnawaitt}catch(e){returne.bufferedData}}},aY=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)returnt?d(is)(e,{encoding:t,maxBuffer:n}):d(is).buffer(e,{maxBuffer:n})},aQ=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{leta=aY(e,{encoding:n,buffer:i,maxBuffer:o}),l=aY(t,{encoding:n,buffer:i,maxBuffer:o}),c=aY(r,{encoding:n,buffer:i,maxBuffer:2*o});try{returnawaitPromise.all([s,a,l,c])}catch(n){returnPromise.all([{error:n,signal:n.signal,timedOut:n.timedOut},aK(e,a),aK(t,l),aK(r,c)])}},aJ=(async()=>{})().constructor.prototype,aZ=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(aJ,e)]),a0=(e,t)=>{for(let[r,n]ofaZ){leti="function"==typeoft?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},a1=e=>newPromise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("err
`)},li=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...d(t7).env,...e}:e;return r?(({env:e=d(t7).env,...t}={})=>{e={...e};let r=W({env:e});return t.path=e[r],e[r]=((e={})=>{let t;let{cwd:r=d(t7).cwd(),path:n=d(t7).env[W()],execPath:i=d(t7).execPath}=e,o=r instanceof URL?d(re).fileURLToPath(r):r,s=d(t5).resolve(o),a=[];for(;t!==s;)a.push(d(t5).join(s,"node_modules/.bin")),t=s,s=d(t5).resolve(s,"..");return a.push(d(t5).resolve(o,i,"..")),[...a,n].join(d(t5).delimiter)})(t),e})({env:o,cwd:n,execPath:i}):o},lo=(e,t,r={})=>{let n=d(nj)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||d(t7).cwd(),execPath:d(t7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:le,...r}).env=li(r),r.stdio=a_(r),"win32"===d(t7).platform&&"cmd"===d(t5).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},ls=(e,t,r)=>"string"==typeof t||(0,t8.Buffer).isBuffer(t)?e.stripFinalNewline?(e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e})(t):t:void 0===r?void 0:"",la=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ll=(e={})=>({preferLocal:!0,...la(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=a7(n,i);return Y(o,s,ll(t))}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=a7(e,r);return Q(n,i,ll(t))},r}(),iC={};const lc="win32"!==op.platform(),lu=op.release(),ld=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;iC=e=>lc?e.replace(/(\s+)/g,"\\$1"):ld(.../(\d+\.\d+)\.(\d+)/.exec(lu).splice(1))?e:e.replace(/(\s+)/g,"%20"),(()=>{var e,t;e=ra("eaZtc"),t=e=>e.split("").reverse().join(""),i_=(r,n,i)=>{var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)))}}).call(i_={}),iP=ra("3WkGD");const lp=T(".cpprc");let lf=!1;iA={},iN=of.join,i$=of.delimiter,iL=of.sep,iD=of.posix;const lm="win32"===process.platform,lh=new RegExp(`[${iD.sep}${iL===iD.sep?"":iL}]`.replace(/(\\)/g,"\\$1")),lg=RegExp("^\\."+lh.source),lv=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),lE=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=i$})=>{let i=e.match(lh)?[""]:[...lm?[process.cwd()]:[],...(t||"").split(n)];if(lm){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t}}return{pathEnv:i,pathExt:[""]}},ly=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&lg.test(t)?t.slice(0,2):"";return n+iN(r,t)},lw=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lE(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=await nD(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lv(e)};iA=lw,lw.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lE(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=nD.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lv(e)},iP=ra("3WkGD"),ik=ra("9O4vc"),rc=ra("hHq4F");const{appendFile:lx}=om.promises;let lb=!1,lS=!1;nN=ra("2heqc"),n$=ra("A8hFE"),n$=ra("A8hFE"),iU=ra("kSdX3");let lI=!1;iP=ra("3WkGD"),n$=ra("A8hFE"),nN=ra("2heqc"),rc=ra("hHq4F");let lO=!1;rc=ra("hHq4F"),rc=ra("hHq4F");let lR=!1,lT=!1;"use strict";const lC=/Version\s*:\s*(.*)/g;"use strict";ij={},iM=of.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),iG=ij&&ij.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),iF