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,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`IDtokenurlis${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Errormessage:${e.message}`);}});}}e.exports.OidcClient=s;}),G.register("5RWAl",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(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(function(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}=p.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,p.constants.R_OK|p.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(u.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;}),G.register("c93T5",function(e,t){"usestrict";varr=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){returnt[r];}});}:function(e,t,r,n){void0===n&&(n=r),e[n]=t[r];}
${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),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;};var e5={};const e8=["stdin","stdout","stderr"],e9=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return e8.map(t=>e[t]);if(e8.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+e8.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,e8.length)},(e,r)=>t[r]);};(e5=e9).node=e=>{lett=e9(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};vare7,te={},tt=eu.process;consttr=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(tr(tt)){vartn,ti=ef("4c98W"),to=/^win/i.test(tt.platform),ts=g;"function"!=typeofts&&(ts=ts.EventEmitter),tt.__signal_exit_emitter__?tn=tt.__signal_exit_emitter__:((tn=tt.__signal_exit_emitter__=newts()).count=0,tn.emitted={}),tn.infinite||(tn.setMaxListeners(1/0),tn.infinite=!0);varta=()=>{tu&&tr(eu.process)&&(tu=!1,ti.forEach(e=>{try{tt.removeListener(e,tc[e]);}catch(e){}}),tt.emit=th,tt.reallyExit=tp,tn.count-=1);};(te=(e,t)=>{if(!tr(eu.process))return()=>{};E.equal(typeofe,"function","a callback must be provided for exit handler"),!1===tu&&td();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),tn.on(r,e),()=>{tn.removeListener(r,e),0===tn.listeners("exit").length&&0===tn.listeners("afterexit").length&&ta();};}).unload=ta;vartl=(e,t,r)=>{tn.emitted[e]||(tn.emitted[e]=!0,tn.emit(e,t,r));},tc={};ti.forEach(e=>{tc[e]=()=>{tr(eu.process)&&tt.listeners(e).length===tn.count&&(ta(),tl("exit",null,e),tl("afterexit",null,e),to&&"SIGHUP"===e&&(e="SIGINT"),tt.kill(tt.pid,e));};}),te.signals=()=>ti;vartu=!1,td=()=>{!tu&&tr(eu.process)&&(tu=!0,tn.count+=1,ti=ti.filter(e=>{try{returntt.on(e,tc[e]),!0;}catch(e){return!1;}}),tt.emit=tm,tt.reallyExit=tf);};te.load=td;vartp=tt.reallyExit,tf=e=>{tr(eu.process)&&(tt.exitCode=e||0,tl("exit",tt.exitCode,null),tl("afterexit",tt.exitCode,null),tp.call(tt,tt.exitCode));},th=tt.emit,tm=function(e,t){if("exit"===e&&tr(eu.process)){void0!==t&&(tt.exitCode=t);varr=th.apply(this,arguments);returntl("exit",tt.exitCode,null),tl("afterexit",tt.exitCode,null),r;}returnth.apply(this,arguments);};}elsete=()=>()=>{};consttv=e=>e===u.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase();vartg,tE=(e7={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>tv(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=te(()=>{e.kill();});returnn.finally(()=>{i();});}}).spawnedKill,ty=e7.spawnedCancel,tw=e7.setupTimeout,tx=e7.validateTimeout,tb=e7.setExitHandler,tS={};consttI=e=>n
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),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;};var no={};"use strict";const ns=["stdin","stdout","stderr"],na=e=>ns.some(t=>void 0!==e[t]),nl=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return ns.map(t=>e[t]);if(na(e))throw Error(`It'snotpossibletoprovide\`stdio\` in combination with one of ${ns.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,ns.length);returnArray.from({length:r},(e,r)=>t[r]);};(no=nl).node=e=>{lett=nl(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};varnc={},nu={},nd=k.process;constnp=function(e){returne&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;};if(np(nd)){varnf,nh,nm=G("ghkQS"),nv=/^win/i.test(nd.platform),ng=g;"function"!=typeofng&&(ng=ng.EventEmitter),nd.__signal_exit_emitter__?nh=nd.__signal_exit_emitter__:((nh=nd.__signal_exit_emitter__=newng()).count=0,nh.emitted={}),nh.infinite||(nh.setMaxListeners(1/0),nh.infinite=!0);varnE=function(){nx&&np(k.process)&&(nx=!1,nm.forEach(function(e){try{nd.removeListener(e,nw[e]);}catch(e){}}),nd.emit=nO,nd.reallyExit=nS,nh.count-=1);};(nu=function(e,t){if(!np(k.process))returnfunction(){};E.equal(typeofe,"function","a callback must be provided for exit handler"),!1===nx&&nb();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),nh.on(r,e),function(){nh.removeListener(r,e),0===nh.listeners("exit").length&&0===nh.listeners("afterexit").length&&nE();};}).unload=nE;varny=function(e,t,r){nh.emitted[e]||(nh.emitted[e]=!0,nh.emit(e,t,r));},nw={};nm.forEach(function(e){nw[e]=function(){np(k.process)&&nd.listeners(e).length===nh.count&&(nE(),ny("exit",null,e),ny("afterexit",null,e),nv&&"SIGHUP"===e&&(e="SIGINT"),nd.kill(nd.pid,e));};}),nu.signals=function(){returnnm;};varnx=!1,nb=function(){!nx&&np(k.process)&&(nx=!0,nh.count+=1,nm=nm.filter(function(e){try{returnnd.on(e,nw[e]),!0;}catch(e){return!1;}}),nd.emit=nR,nd.reallyExit=nI);};nu.load=nb;varnS=nd.reallyExit,nI=function(e){np(k.process)&&(nd.exitCode=e||0,ny("exit",nd.exitCode,null),ny("afterexit",nd.exitCode,null),nS.call(nd,nd.exitCode));},nO=nd.emit,nR=function(e,t){if(!("exit"===e&&np(k.process)))returnnO.apply(this,arguments);void0!==t&&(nd.exitCode=t);varr=nO.apply(this,arguments);returnny("exit",nd.exitCode,null),ny("afterexit",nd.exitCode,null),r;};}elsenu=function(){returnfunction(){};};"use strict";"use strict";constnT=(e,t,r,n)=>{if(!nC(t,r,n))return;leti=n_(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},nC=(e,{forceKillAfterTimeout:t},r)=>n$(e)&&!1!==t&&r,n$=e=>e===u.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),n_=({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;},nP=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},nA=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=nu(()=>{e.kill();});returnn.finally(()=>{i();});};varnN=(nc={spawnedKill:(e,t="SIGTERM",r={})=>{letn=e(t);returnnT(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(()=>{nP(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},validateTimeout:({timeout:e})=>{if(void0!==e&&(!Number.isFin
${t}`,iP=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iA=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iN=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=i_.bind(null,n,t.toString());Object.defineProperty(i,"name",iA),Object.defineProperty(e,"toString",{...iP,value:i});},iL=new WeakMap(),ij=(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(iL.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;};returnfunction(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(letnofReflect.ownKeys(t))iT(e,t,n,r);i$(e,t),iN(e,t,n);}(o,e),iL.set(o,n),o;};ij.callCount=e=>{if(!iL.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returniL.get(e);};constiD=()=>Array.from({length:iM-iU+1},ik),ik=(e,t)=>({name:`SIGRT${t+1}`,number:iU+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iU=34,iM=64,iG=[{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:"termina
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),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;},iK=["stdin","stdout","stderr"],iY=e=>iK.some(t=>void 0!==e[t]),iQ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iK.map(t=>e[t]);if(iY(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${iK.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,iK.length);return Array.from({length:r},(e,r)=>t[r]);},iZ=(e,t="SIGTERM",r={})=>{let n=e(t);return iJ(e,t,r,n),n;},iJ=(e,t,r,n)=>{if(!i0(t,r,n))return;let i=i2(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},i0=(e,{forceKillAfterTimeout:t},r)=>i1(e)&&!1!==t&&r,i1=e=>e===D(A).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),i2=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},i3=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},i4=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},i6=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{i4(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},i5=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},i8=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=D(nu)(()=>{e.kill();});return n.finally(()=>{i();});};function i9(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function i7(e){return i9(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}const oe=e=>e instanceof $.ChildProcess&&"function"==typeof e.then,ot=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,w.createWriteStream)(r)),e;if(i7(r))return e[t].pipe(r),e;if(!oe(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!i7(r.stdin))throw TypeError("The target child process'sstdinmustbeavailable.");return e[t].pipe(r.stdin),r;},or=e=>{null!==e.stdout&&(e.pipeStdout=ot.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ot.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ot.bind(void 0,e,"all"));},on=e=>{if(void 0!==e)throw TypeError("The`input`and`inputFile`optionscannotbebothset.");},oi=({input:e,inputFile:t})=>"string"!=typeof t?e:(on(e),(0,w.readFileSync)(t)),oo=e=>{let t=oi(e);if(i9(t))throw TypeError("The`input`optioncannotbeastreaminsyncmode");return t;},os=({input:e,inputFile:t})=>"string"!=typeof t?e:(on(e),(0,w.createReadStream)(t)),oa=(e,t)=>{let r=os(t);void 0!==r&&(i9(r)?r.pipe(e.stdin):e.stdin.end(r));},ol=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=D(nK)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},oc=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},ou=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?D(nF)(e,{encoding:t,maxBuffer:n}):D(nF).buffer(e,{maxBuffer:n});},od=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=ou(e,{encoding:n,buffer:i,maxBuffer:o}),l=ou(t,{encoding:n,buffer:i,maxBuffer:o}),c=ou(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},oc(e,a),oc(t,l),oc(r,c)]);}},op=(async()=>{})().constructor.prototype,of=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(op,e)]),oh=(e,t)=>{for(let[r,n]of of){let i="function"==typ
`),(0,rm.info)(`${e}="${n}"wasaddedto"${oY}`));return;}process.env[e]=n;}async function oZ(e){switch(process.platform){case"win32":await oU(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rm.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaito0(),(0,p.appendFileSync)(oY,`
`;try{let e=t4(".profile");(0,p.appendFileSync)(e,t),(0,rm.info)(`${t}wasaddedto${e}`);let r=t4(".bashrc");(0,p.appendFileSync)(r,t),(0,rm.info)(`${t}wasaddedto${r}`);}catch(e){(0,B.warning)(`Failedtoadd${t}to.profileor.bashrc.Youshouldadditmanually:${e}`);}oJ=!0;}async function o1(){if(await(0,oX.pathExists)(oY)){let e=(0,p.readFileSync)(oY,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,p.writeFileSync)(oY,t.join("\n"));try{oV(oY);}catch{}}}var o2={},o3=d.join,o4=d.delimiter,o6=d.sep,o5=d.posix;const o8="win32"===process.platform,o9=new RegExp(`[${o5.sep}${o6===o5.sep?"":o6}]`.replace(/(\\)/g,"\\$1")),o7=RegExp(`^\\.${o9.source}`),se=e=>Object.assign(Error(`notfound:${e}`),{code:"ENOENT"}),st=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=o4})=>{let i=e.match(o9)?[""]:[...(o8?[process.cwd()]:[]),...(t||"").split(n)];if(o8){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:[""]};},sr=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&o7.test(t)?t.slice(0,2):"";return n+o3(r,t);},sn=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=st(e,t),o=[];for(let s of r){let r=sr(s,e);for(let e of n){let n=r+e,s=await rx(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 se(e);};o2=sn,sn.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=st(e,t),o=[];for(let s of r){let r=sr(s,e);for(let e of n){let n=r+e,s=rx.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 se(e);};var oX=G("29Jta"),si=G("7uIRZ"),B=G("6QCNj");const{appendFile:so}=p.promises;let ss=!1,sa=!1;async function sl(e,t=!1){var r;let n=null!==D(o2).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:r}of e)(0,B.info)(`Installing${t}${null!=r?r:""}via${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!ss||t)&&(su(n),ss=!0),sa||(await sd(n),sa=!0);let i=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==i.length){for(let e of i)iy("add-apt-repository",["-y",e]);su(n);}let o=await Promise.all(e.map(e=>sc(e.name,e.version)));return iy(n,["install","--fix-broken","-y",...o]),{binDir:"/usr/bin/"};}async function sc(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await oL("apt-cache",["search","--names-only",`^${(0,si.default)(e)}-${(0,si.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await oL("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`;}catch{}(0,B.warning)(`Failedtoinstall${e}${t}viaapt,tryingwithoutversion`);}return e;}function su(e){iy(e,"nala"!==e?["update","-y"]:["update"]);}async function sd(e){iy(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[sf(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),sf(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(oW("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),oW("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function sp(){iy("gpg",["-k"]);}async function sf(e,t,r="keyserver.ubuntu.com"){try{let n=`/etc/apt/trusted.gpg.d/${t}`;return(await(0,oX.pathExists)(n))||(sp(),await Promise.all(e.map(async e=>{await iw("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${n}`,"--keyserver",r,"--recv-keys",e]),await iw("chmod",["644",n]);}))),n;}catch(e){(0,B.warning)(`Failedtoaddaptkeyviaserver${r}:${e}`);return;}}async function sh(e,t){let r=`/etc/apt/trusted.gpg.d/${e}`;return(await(0,oX.pathExists)(r))||(sp(),await sl([{name:"curl"}],void 0),iy("bash",["-c",`curl-s${t}|gpg--no-default-keyring--keyringgnupg-ring:${r}--import`]),iy("chmod",["644",r])),r;}async function sm(e,t){return F.GITHUB_ACTIONS?iw("update-alternatives",["--install",`/usr/bin/${e}`,e,t,"40"]):(await o0(),so(oY,`
`),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:t4(""),c=[],u=[],d=q.create({autoloadLocales:!0});q.addLocale(D(X)),H.addLocale(D(V));let p=await a5();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!a2(e[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,B.error)("The same version must be used for llvm, clangformat and clangtidy"),1;sI()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,B.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await sP("python-pygments"));let f=!1;for(let e of cS){let t=s[e];void 0!==t&&(n=Date.now(),f=await cx(e,t,p,a,l,c,u),i=Date.now(),(0,B.info)(`took${d.format(n,i)||"0 seconds"}`));}let h=s.compiler;if(void 0!==h){let e=Date.now();await cR(h,p,l,a,c,f,u);let t=Date.now();(0,B.info)(`took${d.format(e,t)||"0 seconds"}`);}if(await o1(),0===c.length&&0===u.length)return(0,B.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,B.success)(e)),u.forEach(e=>(0,B.error)(e)),(0,B.info)("setup-cpp finished"),!F.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,B.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,B.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaito,0===u.length?0:1;})(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,B.error)("main()panicked!"),(0,B.error)(e),process.exitCode=1;});