#!/usr/bin/env node let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rV(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rH.sync(e.command,{path:n[rX({env:n})],pathExt:t?iX.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=iX.resolve(o?e.options.cwd:"",r)),r;}function f(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function d(e,t){return i3&&1===e&&!t.file?f(t.original,"spawn"):null;}function h(e,t,r){let n=rG(e,t,r),i=rg.spawn(n.command,n.args,n.options);return rQ.hookChildProcess(i,n),i;}function m(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function v(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function g(e){return v(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function y(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r6(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r4.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await oJ(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new oQ());});}),n.getBufferedValue();}function E(e,t,r){let n;let i=sv(e,t,r),o=si(e,t),s=so(e,t);sh(s,i.options),oX(i.options);try{n=c(rb).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rb).ChildProcess)();return se(e,Promise.reject(oE({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=st(n),l=oV(n,i.options,a),u=oz(n,i.options,l),p={isCanceled:!1};n.kill=oU.bind(null,n.kill.bind(n)),n.cancel=oH.bind(null,n,p);let f=rZ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,f]=await o7(n,i.options,u),d=sg(i.options,l),h=sg(i.options,c),m=sg(i.options,f);if(e||0!==t||null!==r){let l=oE({error:e,exitCode:t,signal:r,stdout:d,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:d,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return o4(n,i.options),n.all=o3(n,i.options),oY(n),se(n,f),n;}function w(e,t,r){let n;let i=sv(e,t,r),o=si(e,t),s=so(e,t);sh(s,i.options);let a=o1(i.options);try{n=c(rb).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oE({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sg(i.options,n.stdout,n.error),u=sg(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oE({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function _(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return E(function(){if(void 0===e){let t=c(r9).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r9).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}function b(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(r9).sync("sudo",{nothrow:!0});}function x(e,t=[],r=sU){return b()?function(e,t){let[r,...n]=ss(e);return w(r,n,t);}(O(e,t),r):w(e,S(t),r);}function R(e,t=[],r=sU){return b()?function(e,t){let[r,...n]=ss(e);return E(r,n,t);}(O(e,t),r):E(e,S(t),r);}function O(e,t){return"sudo "+S([e,...t]).join(" ");}function S(e){return e.map(e=>`'${e}'`);}async function I(e){if(("linux"===process.platform||"darwin"===process.platform)&&b()&&void 0!==process.env.SUDO_USER){let t=c(iz).statSync(e).isDirectory();await R("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],sU);}}function T(e){let t=function(){if(b()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,iX.join)("/Users/",process.env.SUDO_USER):(0,iX.join)("/home/",process.env.SUDO_USER);{let e=(0,iV.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(sF,t);}async function P(e){let t=void 0===e.guard?` source "${e.rcPath}" `:` # ${e.guard} if [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi `;try{await Promise.all([N(e),A(t,T("~/.bashrc")),A(t,T("~/.profile"))]);}catch(e){(0,rU.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}}async function N(e){let t=void 0===e.guard?"\n# Automatically Generated by envosman\n":` # Automatically Generated by envosman ${e.guard} export SOURCE_${e.guard.toUpperCase()}RC=0 `;(await(0,nU.pathExists)(e.rcPath))&&!(await sG(e.rcPath,"utf8")).includes(t)&&(await sM(e.rcPath,` ${t} `),(0,rU.info)(`Added ${t} to ${e.rcPath}`));}async function A(e,t){(await(0,nU.pathExists)(t))&&!(await sG(t,"utf-8")).includes(e)&&(await sM(t,e),(0,rU.info)(`${e} was added to ${t}`));}async function $(e){if(await(0,nU.pathExists)(e.rcPath)){let t=[...new Set((await sG(e.rcPath,"utf-8")).split("\n").reverse())].reverse();await sB(e.rcPath,t.join("\n")),await I(e.rcPath);}}async function C(e,t,r={}){let n={escapeSpace:!1,overwrite:!0,rcPath:sH,...r},i=function(e,t=!1){let r=t?c(nF)(e):e;return c(nM)(r,'"',"\\");}(t??"",n.escapeSpace);try{if(rj.GITHUB_ACTIONS)try{if(!n.overwrite&&void 0!==process.env[e]){(0,rU.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,rF.exportVariable)(e,i);}catch(t){(0,rU.error)(t),await L(e,i,n);}else await L(e,i,n);}catch(t){(0,rU.error)(`${t} Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function L(e,t,r){let n=t??"";switch(process.platform){case"win32":if(!r.overwrite&&void 0!==process.env[e]){(0,rU.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await _(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,rU.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await sq(r),r.overwrite?(await sW(r.rcPath,` export ${e}="${n}" `),(0,rU.info)(`${e}="${n}" was added to "${r.rcPath}`)):(await sW(r.rcPath,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi `),(0,rU.info)(`if not defined ${e} then ${e}="${n}" was added to "${r.rcPath}`));return;}process.env[e]=n;}async function k(e,t={}){var r;let n={rcPath:sH,...t};if(r=e,!(sY.some(e=>e.test(r))&&(process.env.PATH?.split(iX.delimiter)??[]).includes(r))){process.env.PATH=`${e}${iX.delimiter}${process.env.PATH}`;try{if(rj.GITHUB_ACTIONS)try{(0,rF.addPath)(e);}catch(t){(0,rU.error)(t),await D(e,n);}else await D(e,n);}catch(t){(0,rU.error)(`${t} Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function D(e,t){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rU.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await sq(t),await sK(t.rcPath,` export PATH="${e}:$PATH" `),(0,rU.info)(`"${e}" was added to "${t.rcPath}"`);return;default:return;}}function j(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());});}function U(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),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)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7: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]e.startsWith("Status: install ok installed"));}catch{return!1;}}async function K(e){try{let{stdout:t}=await E("dpkg",["-l",e],{env:V("apt-get"),stdio:"pipe"});if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function Y(e,t){return(await Promise.all(t.map(t=>J(e,t)))).filter(e=>void 0!==e);}async function J(e,t){let r=await Z(e,t.name,t.version);return(await W(r))?void 0:r;}async function Q(e,t,r){if(void 0!==r&&""!==r){let{stdout:n}=await E("apt-cache",["search","--names-only",`^${(0,ic.default)(t)}-${(0,ic.default)(r)}$`],{env:V(e),stdio:"pipe"});if(""!==n.trim())return 0;try{let{stdout:n}=await E("apt-cache",["show",`${t}=${r}`],{env:V(e)});if(""===n.trim())return 1;}catch{}}try{let{stdout:r}=await E("apt-cache",["show",t],{env:V(e),stdio:"pipe"});if(""!==r.trim())return 2;}catch{}return sZ?3:(s0(e),Q(e,t,r));}async function Z(e,t,r){switch(await Q(e,t,r)){case 0:return`${t}-${r}`;case 1:return`${t}=${r}`;case 2:return void 0!==r&&""!==r&&(0,rU.warning)(`Could not find package ${t} with version ${r}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${r??""}`);}}async function ee(e){s0(e);let t=await Y(e,[{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}]);0!==t.length&&x(e,["install","-y","--fix-broken","-o",sQ,...t],{...sU,env:V(e)});}async function et(e,t=z()){await s1(t),await er(t),x("add-apt-repository",["-y","--no-update",e],{...sU,env:V(t)}),s0.clear(),s0(t);}async function er(e){(await W("software-properties-common"))||x(e,["install","-y","--fix-broken","-o",sQ,"software-properties-common"],{...sU,env:V(e)});}async function en(e,t=!1){let r=z();for(let{name:t,version:n}of e)(0,rU.info)(`Installing ${t} ${n??""} via ${r}`);t&&s0(r),await ei(r,e);let n=await Y(r,e);if(0===n.length)return(0,rU.info)("All packages are already installed"),{binDir:"/usr/bin/"};await s1(r);try{await eo(e),x(r,["install","--fix-broken","-y",...n],{...sU,env:V(r)});}catch(e){if("string"==typeof e.stderr)s2.some(t=>e.stderr.includes(t))&&((0,rU.warning)(`Failed to install packages ${n}. Retrying...`),x(r,["install","--fix-broken","-y","-o",sQ,...n],{...sU,env:V(r)}));else throw e;}return{binDir:"/usr/bin/"};}async function ei(e,t){let r=[...new Set(t.flatMap(e=>e.repository??[]))];await Promise.all(r.map(t=>et(t,e)));}async function eo(e){await Promise.all(e.map(async e=>{var t;void 0!==e.key&&(await("keyUrl"in(t=e.key)?ea(t):es(t)));}));}async function es({key:e,keyServer:t=s3,fileName:r,keyStorePath:n=s3}){try{ec(r);let i=(0,iX.join)(n,r);return(await(0,nU.pathExists)(i))||(el(),await R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",t,"--recv-keys",e]),await R("chmod",["644",i])),i;}catch(e){(0,rU.warning)(`Failed to add apt key via server ${t}: ${e}`);return;}}async function ea({keyUrl:e,fileName:t,keyStorePath:r=s4}){try{ec(t);let n=(0,iX.join)(r,t);if(!(await(0,nU.pathExists)(n))){el(),await en([{name:"ca-certificates"}]);let r=(0,iX.join)((0,iV.tmpdir)(),t),i=new ie.DownloaderHelper(e,(0,iV.tmpdir)(),{fileName:t});i.on("error",t=>{throw Error(`Failed to download ${e}: ${t}`);}),await i.start(),x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--import",r]),x("chmod",["644",n]);}return n;}catch(t){(0,rU.warning)(`Failed to add apt key via download ${e}: ${t}`);return;}}function el(){x("gpg",["-k"]);}function ec(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e);}async function eu(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let r=await c(r9)("brew",{nothrow:!0});if(null!==r)return{binDir:t=(0,iX.dirname)(r)};await en([{name:"ca-certificates"}]);let n=new ie.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",(0,iV.tmpdir)(),{fileName:"install-brew.sh"});return n.on("error",e=>{throw Error("Failed to download the brew installer script: "+e);}),await n.start(),w("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=ep(),await k(t,e.rcOptions),{binDir:t};}function ep(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew/bin/":"/usr/local/bin/";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew/bin/";throw Error("Unsupported platform for brew");}async function ef(e,t,r={}){let n={overwrite:!0,cask:!1,args:[],...r};(0,rU.info)(`Installing ${e} ${t??""} via brew`),s6&&null!==c(r9).sync("brew",{nothrow:!0})||(await eu(),s6=!0);let i=ep(),o=(0,iX.join)(i,"brew"),s=["install",void 0!==t&&""!==t?`${e}@${t}`:e];return n.overwrite&&s.push("--overwrite"),n.cask&&s.push("--cask"),w(o,s,{stdio:"inherit"}),{binDir:i};}function ed(){return"linux"===process.platform&&(void 0===o&&(o=null!==c(r9).sync("dnf",{nothrow:!0})),o);}function eh(){return"linux"===process.platform&&(void 0===s&&(s=null!==c(r9).sync("pacman",{nothrow:!0})),s);}function em(){return"linux"===process.platform&&(void 0===a&&(a=null!==c(r9).sync("apt-get",{nothrow:!0})),a);}async function ev(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(r9).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,ip.dirname)(i)};let o="powershell.exe",s=c(r9).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),w(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await k(a,ln);let l=c(r9).sync("choco",{nothrow:!0});if(r=null!==l?(0,ip.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nU.pathExists)(r))return{binDir:r};}async function eg(e,t,r=[]){(0,rU.info)(`Installing ${e} ${t??""} via chocolatey`),s8&&null!==c(r9).sync("choco",{nothrow:!0})||(await ev("","",process.arch),s8=!0);let n=process.env.PATH,i={...process.env};if(i.TMP=void 0,i.TEMP=void 0,i.Path=void 0,i.PATH=n,void 0!==t&&""!==t)w("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{w("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rU.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await k(o,ln),{binDir:o};}async function ey(e){for(let{name:t,version:r}of e)(0,rU.info)(`Installing ${t} ${r??""} via dnf`);return x("dnf",["-y","install",...(await Promise.all(e.map(e=>eE(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eE(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await E("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await E("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rU.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ew(e,t,r){switch(process.platform){case"win32":return eg("bazelisk",e);case"darwin":return ef("bazelisk",e);case"linux":if(eh())throw Error("installing bazel on Arch linux is not supported yet");if(ed())return await ey([{name:"dnf-plugins-core"}]),x("dnf",["copr","enable","vbatts/bazel"]),ey([{name:"bazel4"}]);if(em()){let t=await ea({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"});return x("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),en([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function e_(e,t,r){(0,rU.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(r9).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);s7||"yay"===r||(x(n,["-Sy","--noconfirm"]),s7=!0),s5||"yay"===r||(x(n,["-S","--noconfirm","base-devel"]),s5=!0);let i=e=>"yay"===r?w(r,["-S","--noconfirm",e]):x(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eb(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rU.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eb(e,t){let r=[];try{let{stdout:n}=await E(e,["-Si",t]);for(let e of n.matchAll(s9))r.push(e[1]);}catch(e){(0,rU.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ex(e,t){let r=[];t=t||ai.arch();let n=ao.join(eP(),e);if(ar.existsSync(n)){for(let e of ar.readdirSync(n))if(eI(e)){let i=ao.join(n,e,t||"");ar.existsSync(i)&&ar.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function eR(e){return iw(this,void 0,void 0,function*(){return e||(e=ao.join(eN(),au.default())),yield at.mkdirP(e),e;});}function eO(e,t,r){return iw(this,void 0,void 0,function*(){let n=ao.join(eP(),e,aa.clean(t)||t,r||"");ae.debug("destination "+n);let i=`${n}.complete`;return yield at.rmRF(n),yield at.rmRF(i),yield at.mkdirP(n),n;});}function eS(e,t,r){let n=ao.join(eP(),e,aa.clean(t)||t,r||""),i=`${n}.complete`;ar.writeFileSync(i,""),ae.debug("finished caching tool");}function eI(e){let t=aa.clean(e)||"";ae.debug("isExplicit: "+t);let r=null!=aa.valid(t);return ae.debug("explicit? "+r),r;}function eT(e,t){let r="";ae.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(aa.satisfies(i,t)){r=i;break;}}return r?ae.debug("matched: "+r):ae.debug("match not found"),r;}function eP(){let e=process.env.RUNNER_TOOL_CACHE||"";return rh.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eN(){let e=process.env.RUNNER_TEMP||"";return rh.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eA(e,t){let r=r$[e];return void 0!==r?r:t;}function e$(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new am(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current{let e=(0,ip.join)(process.env.RUNNER_TEMP??(0,iV.tmpdir)(),`${Date.now()}-${(0,iX.basename)(r)}`);return(0,im.downloadTool)(r,e);},{name:r,max:4,backoffBase:2e3,report:e=>(0,rU.info)(e)});}async function eq(e,t,r){rj.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"===ro("cache-tools")||"true"===process.env.CACHE_TOOLS)&&(await(0,im.cacheDir)(e,t,r));}function eV(e,t,r){let n=c(id)(e)??e;switch(t){case"win32":{let t;let i=c(ih)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(ih)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:r,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(ih)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eX(e,t,r){return eG("cmake",e,eV,t,r);}function ez(e,t){return new Promise(r=>{try{let n=(0,iY.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eW(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(iC)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eK(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await i$(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eW(e,r)){let e=await n(t,o);if(null!==e){if(await i$(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function eY(e,t=aA){try{let r=await(0,ib.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(id)(i)??void 0;}catch(e){console.error(e);return;}}async function eJ(e,t,r=aA){let n=await eY(e,r);return void 0!==n&&""!==t&&-1!==c(iC)(n,t);}function eQ(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eZ(e,t,r){let n=await e2(e,t,r);c(rh)(void 0!==n.bin);let i=n.bin;if(void 0===(await e8(i)))throw Error("pip was not installed correctly");return await e0(i),await e1(i),n;}async function e0(e){try{if(!(await tc(e)))try{await tl(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===tm("pipx",!1))throw Error("pipx was not installed correctly "+e);}await E(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await tl(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rU.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function e1(e){try{await tl(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await tl(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rU.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function e2(e,t,r){let n;let i=await e3(t);if(void 0!==i){let e=(0,ip.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rj.GITHUB_ACTIONS)try{(0,rU.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rk("jMBnm");if(await o(e,t,r),i=await e3(t),void 0===i)throw Error("Python binary could not be found");let s=(0,ip.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rU.warning)(e.toString());}void 0===n&&(n=await e4(t,e));}if(void 0===i||void 0===n.bin){if(void 0===(i=await e3(t)))throw Error("Python binary could not be found");n={bin:i,installDir:(0,ip.dirname)(i),binDir:(0,ip.dirname)(i)};}return n;}async function e4(e,t){let r;switch(process.platform){case"win32":{e?await eg("python3",t,["--params=/InstallDir:"+e]):await eg("python3",t);let n=await e3(e);if(void 0===n)throw Error("Python binary could not be found");let i=(0,ip.dirname)(n);await k(i,ln),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ef("python3",t);let e=await E("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,ip.join)(e.stdout,"libexec","bin");await k(n,ln);break;}case"linux":if(eh())r=await e_("python",t);else if(ed())r=await ey([{name:"python3",version:t}]);else if(em())r=await en([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function e3(e){for(let t of["python3","python"]){let r=await e6(t,e);if(void 0!==r)return r;}if("win32"===process.platform){let e=(0,iX.parse)((0,iV.homedir)()).root;for(let t of(await(0,nt.readdir)(e)).filter(e=>e.startsWith("Python")))for(let r of["python3","python"]){let n=await e6(r,(0,ip.join)(e,t));if(void 0!==n)return n;}}}async function e6(e,t){try{if(void 0!==t){let r=(0,ip.join)(t,(0,ip.addExeExt)(e));if((await(0,nU.pathExists)(r))&&(await eJ(r,aC.python)))return r;}for(let t of(await c(r9)(e,{nothrow:!0,all:!0}))??[])if(await eJ(t,aC.python))return t;}catch{}}async function e8(e){let t=await e7();return void 0===t?((0,rU.info)("pip was not found. Installing pip"),await e9(e),e7()):t;}async function e7(){for(let e of["pip3","pip"]){let t=await e5(e);if(void 0!==t)return t;}}async function e5(e){try{for(let t of(await c(r9)(e,{nothrow:!0,all:!0}))??[])if(await eJ(t,aC.pip))return t;}catch{}}async function e9(e){(await te(e))||(await tm("pip"),await te(e));}async function te(e){try{return await E(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rU.info)(t.toString());try{return await E(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rU.info)(e.toString());}}return!1;}async function tt(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,ib.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,ip.join)(r,"Scripts"),(0,ip.join)(r,"Scripts","bin"),(0,ip.join)(r,"bin")),[...new Set(t)];}function tr(e,t,r=null){return tn(t)&&"linux"===process.platform&&null!==r&&e in aL?function(e,t){let r=e[0],n=Object.keys(t).map(e=>Number.parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aL[e]):tn(t)&&e in a$?a$[e]:"true"===t?"":t??"";}function tn(e){return"true"===e||void 0===e;}async function ti(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rg.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function to(){try{if(!em())return null;{try{null===c(r9).sync("lsb_release",{nothrow:!0})&&(await en([{name:"lsb-release"}]));}catch{return ts();}let e=await(0,ik.getUbuntuVersion)();if(0===e.length)return ts();return e;}}catch(e){return(0,rU.warning)(e.toString()),null;}}function ts(){if(!("version"in c(iV)&&"function"==typeof c(iV).version))return null;let e=c(iV).version().split("."),t=Number.parseInt(e[0].replace("#",""),10);return[t,Number.parseInt(e[1].replace("~",""),10),Number.parseInt(e[2].split("-")[0],10)];}async function ta(e,t,r={}){return tl(await aF(),e,t,r);}async function tl(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await tc(e)),c=l?"pipx":"pip";if(await td(e,t))try{(0,rF.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aj(),i.PIPX_BIN_DIR=await aU()),w(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,rF.info)(`Failed to install ${t} via ${c}: ${e}.`),(await tm(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await tm(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ak(e),p=await th(u,t);return await k(p,ln),{binDir:p};}async function tc(e){return 0===(await E(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tu(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=T("~/.local/pipx");if(await(0,nU.pathExists)(t))return t;switch(process.platform){case"win32":e=T("~/AppData/Local/pipx");break;case"darwin":e=T("~/Library/Application Support/pipx");break;default:e=T("~/.local/share/pipx");}return await aN(e),await aN((0,ip.join)(e,"trash")),await aN((0,ip.join)(e,"shared")),await aN((0,ip.join)(e,"venv")),e;}async function tp(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=T("~/.local/bin");return await k(e,ln),await aN(e),e;}async function tf(){let e=(await eZ(tr("python",void 0,await aD()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function td(e,t){return 0===(await E(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function th(e,t){let r=(await Promise.all(e.map(e=>(0,nU.pathExists)((0,ip.join)(e,(0,ip.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(r9).sync((0,ip.addExeExt)(t),{nothrow:!0});return null!==n?(0,ip.dirname)(n):e[e.length-1];}function tm(e,t=!0){if("linux"===process.platform){if((0,rF.info)(`Installing ${e} via the system package manager`),eh())return e_(t?"python-"+e:e);if(ed())return ey([{name:t?"python3-"+e:e}]);if(em())return en([{name:t?"python3-"+e:e}]);}return null;}async function tv(e,t,r){switch(process.platform){case"win32":return await eg("cppcheck",e),{binDir:await tg()};case"darwin":return ef("cppcheck",e);case"linux":if(eh())return e_("cppcheck",e);if(ed())return ey([{name:"ccache",version:e}]);if(em())return en([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tg(){let e="C:/Program Files/Cppcheck";return await k(e,ln),e;}async function ty(e,t,r){switch(process.platform){case"win32":return await eg("graphviz",e),tE();case"darwin":return ef("graphviz",e);case"linux":if(eh())return e_("graphviz",e);if(ed())return ey([{name:"graphviz",version:e}]);if(em())return en([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tE(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await k(e,ln),{binDir:e};}throw Error("Unsupported platform");}async function tw(e,t){let{ArchiveHdi:r}=await rk("kUjMH"),n=new r(e);await n.read(async e=>{await e.extract((0,iX.join)(t,e.path));});}function t_(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tw,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tb(e,t,r){switch(process.platform){case"win32":{await c(iT)(()=>eg("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rU.info)(e)});let t=await tx();return await ty(tr("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ef("doxygen",void 0);return aG()[0]>11&&(await ty(tr("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||eh()||ed()){if(eh())n=await e_("doxygen",e);else if(ed())return ey([{name:"doxygen",version:e}]);else if(em())n=await en([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(em())try{n=await eG("doxygen",e,t_,t,r);try{await en([{name:"libclang-cpp9"}]);}catch(e){(0,rU.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rU.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await en([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await ty(tr("graphviz",void 0,await aD()),"",r),n;}default:throw Error("Unsupported platform");}}async function tx(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nU.pathExists)((0,ip.join)(e,"doxygen.exe")))return await k(e,ln),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tR(){if("darwin"===process.platform)try{let e=await(0,ib.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await C("SDKROOT",t.trim(),ln):(0,rU.error)("SDKROOT not set");}catch(e){(0,rU.error)(e);}}function tO(e,t,r){if("win32"===t){let t=aB[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:ek,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tS(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await eg("gcc-arm-embedded",e));try{i=await eG("g++",e,tO,t,r);}catch(t){(0,rU.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tT(e,r);}break;case"darwin":i=await ef("gcc",e);break;case"linux":"x64"===r?eh()?i=await e_("gcc",e):ed()?i=await ey([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):em()&&(i=await en([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])):((0,rU.info)(`Install g++-multilib because gcc for ${r} was requested`),eh()?await e_("gcc-multilib",e):em()&&(await en([{name:"gcc-multilib",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tP(e,i.binDir,n),i;}async function tI(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tS(e,t,r);case"linux":eh()?n=await e_("mingw-w64-gcc",e):ed()?n=await ey([{name:"mingw64-gcc",version:e}]):em()&&(n=await en([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tT(e,t){let r;if(await eg("mingw",e),"x64"===t&&(await(0,nU.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await k(r,ln)):"ia32"===t&&(await(0,nU.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await k(r,ln)):(await(0,nU.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tP(e,t,r=40){let n=[];if("win32"===process.platform)n.push(C("CC",(0,ip.addExeExt)(`${t}/gcc`),ln),C("CXX",(0,ip.addExeExt)(`${t}/g++`),ln));else{let i=c(iD)(c(id)(e)??e);i>=5?(n.push(C("CC",`${t}/gcc-${i}`,ln),C("CXX",`${t}/g++-${i}`,ln)),em()&&n.push(q("cc",`${t}/gcc-${i}`,ln,r),q("cxx",`${t}/g++-${i}`,ln,r),q("gcc",`${t}/gcc-${i}`,ln,r),q("g++",`${t}/g++-${i}`,ln,r))):(n.push(C("CC",`${t}/gcc-${e}`,ln),C("CXX",`${t}/g++-${e}`,ln)),em()&&n.push(q("cc",`${t}/gcc-${e}`,ln,r),q("cxx",`${t}/g++-${e}`,ln,r),q("gcc",`${t}/gcc-${e}`,ln,r),q("g++",`${t}/g++-${e}`,ln,r)));}n.push(tR()),rj.GITHUB_ACTIONS&&(await tN()),await Promise.all(n);}async function tN(){let e=(0,ip.join)(ij,"gcc_matcher.json");if(!(await(0,nU.pathExists)(e)))return(0,rU.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rU.info)("::add-matcher::"+e);}function tA(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function t$(e,t,r){return eG("ninja",e,tA,t,r);}function tC(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ip.addExeExt)("kcov")};}function tL(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ip.addExeExt)("kcov"),extractFunction:tk};}async function tk(e,t){let r=await eF(e,t,1),n=await tD();"linux"===process.platform&&(eh()?await Promise.all([e_("libdwarf"),e_("libcurl-openssl")]):ed()?await ey([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):em()&&(await en([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(r9).sync("patch",{nothrow:!0})){let e=(0,ip.join)(iU,"gcc13.patch");await E("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rU.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,ip.join)(r,"build");return await E(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await E(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tD(){let e=c(r9).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eX(tr("cmake",void 0,await aD()),(0,ip.join)(T("~"),"cmake"),"");e=(0,ip.join)(t,"cmake");}return null===c(r9).sync("ninja",{nothrow:!0})&&(await t$(tr("ninja",void 0,await aD()),(0,ip.join)(T("~"),"ninja"),"")),e;}async function tj(e,t,r){var n;let i;if("linux"!==process.platform){(0,rU.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=Number.parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await eG("kcov",s,tC,t,r),eh()?await e_("binutils"):ed()?await ey([{name:"binutils"}]):em()&&(await en([{name:"libbinutils"}]))):i=await eG("kcov",s,tL,t,r),i;}function tU(e){if(Object.values(aJ).includes(e));else if(e in aJ)return aJ[e];return e;}function tF(e){let t;let r=tU(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rg.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){rF.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&iz.existsSync(n))return rF.info("Found with vswhere: "+n),n;rF.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aJ).includes(e));else for(let[t,r]of Object.entries(aJ))if(r===e)return t;return e;}(e)]:aY;for(let e of aW)for(let t of i)for(let r of aK)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,rF.info("Trying standard location: "+n),iz.existsSync(n))return rF.info("Found standard location: "+n),n;if(rF.info("Not found in standard locations"),n=`${az}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,iz.existsSync(n))return rF.info("Found VS 2015: "+n),n;throw rF.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tM(e,t,r,n,i,o,s){void 0!==t&&(await(0,nU.pathExists)(t))&&((0,rU.info)(`Adding ${t} to PATH`),await C("VCTargetsPath",t,ln)),await iG(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tG(e,t,r,n,i,o,s,a=aZ){(0,rF.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aX(e)),e.addEventListener("abort",()=>{l(aX(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aH();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tB(e,t,r,n,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rU.error)(t),t instanceof Error&&void 0!==t.stack&&(0,rU.error)(t.stack),s.push(`${e} failed to install`);}return(0,rF.endGroup)(),l;}async function tB(e,t,r,n,i,o){let s;let a=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await tM(tr(e,t,r),void 0,n,void 0,void 0,!1,!1);else if("brew"===e)s=await eu({rcOptions:ln});else{let o=(0,ip.join)(i,a?"llvm":e),l=tr(e,t,r),c=le[e];s=await c(l,o,n);}return o.push(rs(e,s)),a;}async function tH(e,t=0){let r="/usr/lib/llvm-"+e;await en([{name:"ca-certificates"}]);let n=new ie.DownloaderHelper("https://apt.llvm.org/llvm.sh",(0,iV.tmpdir)(),{fileName:"llvm.sh"});n.on("error",e=>{throw Error("Failed to download the LLVM installer script: "+e);}),await n.start();let i=await(0,nt.readFile)(n.getDownloadPath(),"utf-8"),o=(0,iX.join)((0,iV.tmpdir)(),"llvm-setup-cpp.sh"),s=await tq(i,o,e,t);return await en(s),await(0,nt.chmod)(o,"755"),await R("bash",[o,""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aZ}),await k(`${r}/bin`,ln),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tq(e,t,r,n){var i,o,s,a,l;let c=(i=e,"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?i.replace(/set -eux/g,"set -eu"):i);return o=n,s=c=c.replace(/add-apt-repository "\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}" apt-get update -o ${sQ} -y`),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tV(c),c=X()?l.replace(/apt-get/g,"nala"):l,await(0,nt.writeFile)(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tV(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${sQ} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await K(r))&&((0,rA.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tX(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tz(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tW(e){let t;if(a1.has(e))return null;let r="LLVM-",n=c(ih)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(ih)(e,"9.0.1"),o=!1;return i&&(t=tz(e,r,n),(await i$(t))||(o=!0)),(o||!i)&&(t=tX(e,r,n)),t;}function tK(e,t){switch(e){case"darwin":return function(e){if(a2.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(ih)(e,"9.0.1")?tz(e,r,n):tX(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=a4.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!a0.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eW(a0,e)[0];}else""!==n&&n in a3?t=a3[n]:(t=a3[a6],(0,rU.warning)(`Falling back to LLVM version ${a6} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,c(ih)(n,"9.0.1"))?tz(n,o,r):tX(n,o,r);}(t);case"win32":return tW(t);default:return null;}}async function tY(e,t,r){let[n,i]=await eK(a0,t,e,tK);return(0,rU.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ip.addExeExt)("clang"),extractFunction:"win32"===t?ej:(e,t)=>eF(e,t,1)};}async function tJ(e,t,r){let n=await a8(e,t,r);return await t2(n.installDir??t),n;}async function tQ(e,t,r){let[n,i]=await Promise.all([tZ(e,t,r),t4()]);return await a5(r),n;}async function tZ(e,t,r,n=iB.All){let i=Number.parseInt(function(e){if(null===c(iL)(e))try{let t=c(id)(e);if(null!==t)return(0,rU.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(em())return await tH(i,n);}catch(e){(0,rU.info)("Failed to install llvm via system package manager "+e);}let o=await eG("llvm",e,tY,t,r);return await a7(i),o;}async function t0(e){em()&&(e<=10?await en([{name:"libtinfo5"}]):await en([{name:"libtinfo-dev"}]));}async function t1(e){"linux"===process.platform&&(await tS(tr("gcc",void 0,await aD()),"",e,40));}async function t2(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[C("LLVM_PATH",e,ln),C("LD_LIBRARY_PATH",`${e}/lib${iX.delimiter}${t}`,ln),C("DYLD_LIBRARY_PATH",`${e}/lib${iX.delimiter}${r}`,ln),C("LDFLAGS",`-L"${e}/lib"`,ln),C("CPPFLAGS",`-I"${e}/include"`,ln),C("CC",(0,ip.addExeExt)(`${e}/bin/clang`),ln),C("CXX",(0,ip.addExeExt)(`${e}/bin/clang++`),ln),C("LIBRARY_PATH",`${e}/lib`,ln),tR()];em()&&n.push(q("cc",`${e}/bin/clang`,ln,60),q("cxx",`${e}/bin/clang++`,ln,60),q("clang",`${e}/bin/clang`,ln),q("clang++",`${e}/bin/clang++`,ln),q("lld",`${e}/bin/lld`,ln),q("ld.lld",`${e}/bin/ld.lld`,ln),q("llvm-ar",`${e}/bin/llvm-ar`,ln)),await Promise.all(n);}async function t4(){if(rj.GITHUB_ACTIONS){let e=(0,ip.join)(iH,"llvm_matcher.json");if(!(await(0,nU.pathExists)(e)))return(0,rU.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rU.info)("::add-matcher::"+e);}}async function t3(e,t,r){switch(process.platform){case"win32":return eg("make",e);case"darwin":return await ef("make",e),await k("/usr/local/opt/make/libexec/gnubin",ln),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(eh())return e_("make",e);if(ed())return ey([{name:"make",version:e}]);if(em())return en([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function t6(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=iF(e);(0,rU.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=iM(l);c=!0,(0,rU.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await eg("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await eg("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await eg("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await eg("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rU.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rU.error)(e);}await tM(l,a,r,s,n,i,o),rj.GITHUB_ACTIONS&&(await t8());}async function t8(){let e=(0,ip.join)(iq,"msvc_matcher.json");if(!(await(0,nU.pathExists)(e)))return(0,rU.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rU.info)("::add-matcher::"+e);}async function t7(e,t,r){if(!em())return;if("string"==typeof i)return{binDir:i};let n=c(r9).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,ip.dirname)(n)};await en([{name:"python3-apt"}]);let o=await ea({fileName:"volian-archive-nala.gpg",keyUrl:"https://deb.volian.org/volian/nala.key"});x("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ nala main" | tee /etc/apt/sources.list.d/volian-archive-nala.list`]);try{"legacy"!==e?await en([{name:"nala"}],!0):await en([{name:"nala-legacy"}],!0);}catch(e){await en([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function t5(e,t,r){if("win32"===process.platform)return await eg("opencppcoverage",e),{binDir:await t9()};}async function t9(){let e="C:/Program Files/OpenCppCoverage";return await k(e,ln),e;}function re(e,t,r){return{url:function(e,t,r){switch(e){case"win32":{let e=["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/PowerShell-${r}-${e}.zip`;}case"darwin":{let e=["arm","arm64"].includes(t)?"osx-arm64":"osx-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/powershell-${r}-${e}.tar.gz`;}case"linux":{let e={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t]??"linux-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/powershell-${r}-${e}.tar.gz`;}default:throw Error(`Unsupported platform '${e}'`);}}(t,r,e),binRelativeDir:"",binFileName:(0,ip.addExeExt)("pwsh"),extractedFolderName:""};}async function rt(e,t,r){try{return await eG("pwsh",e,re,t,r);}catch(n){return(0,rU.error)(`Failed to setup pwsh via download: ${n}. Trying package managers...`),rr(e,t,r);}}async function rr(e,t,r){switch(process.platform){case"win32":{await eg("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await k(t,ln),{binDir:t};}case"darwin":return ef("powershell",e,{cask:!0,overwrite:!1});case"linux":if(eh())return e_("powershell-bin",e,"yay");if(ed())return await ey([{name:"curl"}]),x("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ey([{name:"powershell",version:e}]);if(em()){await en([{name:"curl"}]);let t=await aD(),r=`${t[0]}.0${t[1]}`;return x("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),x("dpkg",["-i","packages-microsoft-prod.deb"]),en([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function rn(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s}`};}async function ri(e,t,r){return a9&&null!==c(r9).sync("vcpkg",{nothrow:!0})?{binDir:(0,ip.dirname)(c(r9).sync("vcpkg"))}:("linux"===process.platform&&(eh()?await Promise.all([e_("curl"),e_("zip"),e_("unzip"),e_("tar"),e_("git"),e_("pkg-config")]):ed()?await ey([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):em()&&(await en([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nU.pathExists)((0,ip.join)(t,(0,ip.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rU.notice)(`Vcpkg folder already exists at ${t}. Skipping the clone`):w("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ip.dirname)(t),stdio:"inherit"}),""!==e&&"true"!==e&&((0,rU.info)("Checking out vcpkg version "+e),w("git",["checkout",e],{cwd:t,stdio:"inherit"})),w((0,ip.addShExt)((0,ip.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await I(t),await k(t,ln),a9=!0,{binDir:t});}function ro(e){let t=(0,rF.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}function rs(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function ra(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(iL)(e)||(0,rU.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,rF.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tJ(tr("llvm",l,t),(0,iX.join)(r,"llvm"),n);await C("GCOV","llvm-cov gcov",ln),i.push(rs("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?tr("mingw",l,t):tr("gcc",l,t),s="mingw"===a?await tI(e,(0,iX.join)(r,"gcc"),n):await tS(e,(0,iX.join)(r,"gcc"),n);o&&(await C("CPPFLAGS","",ln)),await function(e){let t=c(iL)(e),r=null!==t?c(iD)(t):e;return C("GCOV",""!==r?"gcov-"+r:"gcov",ln);}(e),i.push(rs("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await t6(tr("msvc",l,t),(0,iX.join)(r,"msvc"),n);o&&(await C("CPPFLAGS","",ln)),i.push(rs("msvc",e));break;}case"appleclang":case"applellvm":(0,rF.notice)("Assuming apple-clang is already installed"),await Promise.all([C("CC","clang",ln),C("CXX","clang++",ln)]),i.push(rs("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rU.error)(t),s.push("Failed to install the "+e);}(0,rF.endGroup)();}async function rl(e){let t,r,n=Promise.resolve();rj.GITHUB_ACTIONS||(n=F(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let f=void 0!==t.alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=M(t.string),t.boolean=M(t.boolean),f)for(r in t.alias)for(l=0,n=t.alias[r]=M(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...lr,"timeout"],default:Object.fromEntries(lr.map(e=>[e,ro(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rU.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true Install all the tools required for building and testing C++/C projects. --architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture. --timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes. --compiler the to install. You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0' --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: `),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:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??T("~"),a=[],l=[],u=nH.create({autoloadLocales:!0});nH.addLocale(c(nq)),nG.addLocale(c(nB));let p=await aD();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!tn(e[t])),i=n.length>=1?e[n[0]]:"true";if(n.some(t=>e[t]!==i))return!1;for(let t of r)e[t]=i;return!0;}(i,["llvm","clangtidy","clangformat"]))return(0,rU.error)("The same version must be used for llvm, clangformat and clangtidy"),1;eh()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rU.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await e_("python-pygments"));let f=!1,d=!1;for(let e of lt){if(rj.isCI&&0!==l.length){d=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),f=await tG(e,n,p,o,s,a,l,6e4*Number.parseFloat(i.timeout??"20")),r=Date.now(),(0,rU.info)("took "+(u.format(t,r)||"0 seconds")));}if(!d){let e=i.compiler;if(void 0!==e){let t=Date.now();await ra(e,p,s,o,a,f,l);let r=Date.now();(0,rU.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await $(ln),0===a.length&&0===l.length)return(0,rU.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of a)(0,rU.success)(e);for(let e of l)(0,rU.error)(e);if((0,rU.info)("setup-cpp finished"),!rj.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rU.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rU.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var rc,ru,rp,rf,rd,rh,rm,rv,rg,ry,rE,rw,r_,rb,rx,rR,rO,rS,rI,rT,rP,rN,rA,r$,rC,rL,rk,rD,rj,rU,rF,rM,rG,rB,rH,rq,rV,rX,rz,rW,rK,rY,rJ,rQ,rZ,r0,r1,r2,r4,r3,r6,r8,r7,r5,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nf,nd,nh,nm,nv,ng,ny,nE,nw,n_,nb,nx,nR,nO,nS,nI,nT,nP,nN,nA,n$,nC,nL,nk,nD,nj,nU,nF,nM,nG,nB,nH,nq,nV,nX,nz,nW,nK,nY,nJ,nQ,nZ,n0,n1,n2,n4,n3,n6,n8,n7,n5,n9,ie,it,ir,ii,io,is,ia,il,ic,iu,ip,id,ih,im,iv,ig,iy,iE,iw,i_,ib,ix,iR,iO,iS,iI,iT,iP,iN,iA,i$,iC,iL,ik,iD,ij,iU,iF,iM,iG,iB,iH,iq,iV=require("os"),iX=require("path"),iz=require("fs"),iW=require("crypto"),iK=require("http"),iY=require("https");require("net"),rf=require("tls"),rd=require("events"),rh=require("assert"),rm=require("util"),rv=require("fs"),rg=require("child_process"),ry=require("string_decoder"),rE=require("timers"),rw=require("buffer"),r_=require("path"),rb=require("child_process"),rx=require("process"),rR=require("url"),rO=require("os"),rS=require("buffer"),rI=require("stream"),rT=require("util"),rP=require("process"),rN=require("url"),rA=require("console"),rC={},rL={},null==(rk=(r$=globalThis).parcelRequire94c2)&&((rk=function(e){if(e in rC)return rC[e].exports;if(e in rL){var t=rL[e];delete rL[e];var r={id:e,exports:{}};return rC[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rL[e]=t;},r$.parcelRequire94c2=rk),(rD=rk.register)("9ne19",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rk("elk84");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rD("elk84",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rD("ER74K",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rk("9yJgU"),n=rk("9ne19");}),rD("9yJgU",function(e,t){var r,n,i,o,s,a,l,c,u,p,f,d;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=rk("lffbf"),a=rk("60EQk"),l=rk("h6Xqd");let y=i(iV),E=i(iX);c=rk("cxnRr"),(d=u=e.exports.ExitCode||(e.exports.ExitCode={}))[d.Success=0]="Success",d[d.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${E.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+y.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=rk("kPBPC"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rk("kPBPC"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),f=rk("fv8Nn"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return f.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return f.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return f.toPlatformPath;}});}),rD("lffbf",function(e,t){var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(iV);o=rk("h6Xqd"),e.exports.issueCommand=s,e.exports.issue=function(e,t=""){s(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rD("h6Xqd",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rD("60EQk",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(iz),l=i(iV);o=rk("4dndm"),s=rk("h6Xqd"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rD("4dndm",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rk("5SVBN"),n=rk("38Etc"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rD("5SVBN",function(e,t){function r(){return i>n.length-16&&(c(iW).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rD("38Etc",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rk("f9HAa");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rD("f9HAa",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rk("bpRYF"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rD("bpRYF",function(e,t){l(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rD("cxnRr",function(e,t){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.OidcClient=void 0;var n=rk("fuJUV"),i=rk("7xsu4"),o=rk("9yJgU");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}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("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;}),rD("fuJUV",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(iK),f=i(iY),d=i(rk("4wvDK")),h=i(rk("eYDoL"));(c=s||(e.exports.HttpCodes=s={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a||(e.exports.Headers=a={})).Accept="accept",u.ContentType="content-type",(l||(e.exports.MediaTypes=l={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=d.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype);}}e.exports.HttpClientError=y;class E{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=[];this.message.on("data",e=>{t.push(e);}),this.message.on("end",()=>{e(Buffer.concat(t));});}));});}}e.exports.HttpClientResponse=E,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--;}if(!i.message.statusCode||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{i(void 0,new E(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}getAgentDispatcher(e){return o(this,void 0,void 0,function*(){let t=new URL(e),r=d.getProxyUrl(t);if(r&&r.hostname)return yield this._getProxyAgentDispatcher(t,r);});}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?f:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=d.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),n||(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new f.Agent(e):new p.Agent(e),this._agent=t;}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_getProxyAgentDispatcher(e,t){return o(this,void 0,void 0,function*(){let r;if(this._keepAlive&&(r=this._proxyAgentDispatcher),r)return r;let n="https:"===e.protocol;return r=new(yield Promise.resolve().then(function(){return rk("5Tl3T");}).then(e=>i(e)))(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:`${t.username}:${t.password}`})),this._proxyAgentDispatcher=r,n&&this._ignoreSslError&&(r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:!1})),r;});}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(a>299){let e;let t=new y(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rD("4wvDK",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new URL(n);}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new URL("http://"+n);}},e.exports.checkBypass=r;}),rD("eYDoL",function(e,t){e.exports=rk("gBbBa");}),rD("gBbBa",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||iK.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=f({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=rf.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function f(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a]);}}return e;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=iK.request,t;},n=function(e){var t=new c(e);return t.request=iK.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=iY.request,t;},o=function(e){var t=new c(e);return t.request=iY.request,t.createSocket=u,t.defaultPort=443,t;},rm.inherits(c,rd.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=f({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return;}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n);}var n,i,o=this,s={};o.sockets.push(s),n=f({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s);}),i.end();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rD("5Tl3T",function(e,t){e.exports=Promise.resolve(require("./proxy-agent.de32b662.js")).then(()=>rk("3z4gn"));}),rD("7xsu4",function(e,t){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.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rD("kPBPC",function(e,t){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}=iz.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(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,iz.constants.R_OK|iz.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}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}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(iV.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.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));return this.addRaw(s).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),rD("fv8Nn",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(iX);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rD("a3PNV",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;ni),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>f),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>_),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>O),l(e.exports,"writeFile",()=>S),l(e.exports,"rm",()=>I),iz.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:f,mkdtemp:d,open:h,readdir:m,readFile:v,readlink:g,realpath:y,rename:E,rmdir:w,stat:_,symlink:b,truncate:x,unlink:R,utimes:O,writeFile:S}=iz.promises,I="rm"in iz.promises?iz.promises.rm:(0,rm.promisify)(iz.unlink);}),rD("7Ubzm",function(e,t){e.exports=function(){};}),rD("8tETt",function(e,t){e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20);};}),rD("hGADy",function(e,t){e.exports=function(e){return isNaN(e=+e)||0===e?e:e>0?1:-1;};}),rD("9KLFQ",function(e,t){var r=rk("dxkoV"),n=rk("gGM7W"),i=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,a=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(l,c){var u,p=arguments[2],f=arguments[3];return l=Object(n(l)),r(c),u=s(l),f&&u.sort("function"==typeof f?i.call(f,l):void 0),"function"!=typeof e&&(e=u[e]),o.call(e,u,function(e,r){return a.call(l,e)?o.call(c,p,l[e],e,l,r):t;});};};}),rD("dxkoV",function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e;};}),rD("gGM7W",function(e,t){var r=rk("8uHBt");e.exports=function(e){if(!r(e))throw TypeError("Cannot use null or undefined");return e;};}),rD("8uHBt",function(e,t){var r=rk("7Ubzm")();e.exports=function(e){return e!==r&&null!==e;};}),rD("5twQR",function(e,t){}),rD("63IW4",function(e,t){e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy");};}),rD("11hhf",function(e,t){var r=rk("4bgzK"),n=rk("gGM7W"),i=Math.max;e.exports=function(e,t){var o,s,a,l=i(arguments.length,2);for(s=1,e=Object(n(e)),a=function(r){try{e[r]=t[r];}catch(e){o||(o=e);}};l>s;++s)t=arguments[s],r(t).forEach(a);if(void 0!==o)throw o;return e;};}),rD("4bgzK",function(e,t){e.exports=rk("h6Tco")()?Object.keys:rk("jSHqR");}),rD("h6Tco",function(e,t){e.exports=function(){try{return Object.keys("primitive"),!0;}catch(e){return!1;}};}),rD("jSHqR",function(e,t){var r=rk("8uHBt"),n=Object.keys;e.exports=function(e){return n(r(e)?Object(e):e);};}),rD("4P0KV",function(e,t){var r=rk("gGM7W"),n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e.exports=function(e,t){var a,l=Object(r(t));if(e=Object(r(e)),o(l).forEach(function(r){try{n(e,r,i(t,r));}catch(e){a=e;}}),"function"==typeof s&&s(l).forEach(function(r){try{n(e,r,i(t,r));}catch(e){a=e;}}),void 0!==a)throw a;return e;};}),rD("lQbJp",function(e,t){var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo");};}),rD("ffXEK",function(e,t){var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1;};}),rD("4SFhS",function(e,t){var r,n,i,o,s,a,l,c=rk("eXmen"),u=rk("dxkoV"),p=Function.prototype.apply,f=Function.prototype.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r;return u(t),v.call(this,"__ee__")?r=this.__ee__:(r=g.value=d(null),h(this,"__ee__",g),g.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this;},n=function(e,t){var n,o;return u(t),o=this,r.call(this,e,n=function(){i.call(o,e,n),p.call(t,this,arguments);}),n.__eeOnceListener__=t,this;},s={on:r,once:n,off:i=function(e,t){var r,n,i,o;if(u(t),!v.call(this,"__ee__")||!(r=this.__ee__)[e])return this;if("object"==typeof(n=r[e]))for(o=0;i=n[o];++o)(i===t||i.__eeOnceListener__===t)&&(2===n.length?r[e]=n[o?0:1]:n.splice(o,1));else(n===t||n.__eeOnceListener__===t)&&delete r[e];return this;},emit:o=function(e){var t,r,n,i,o;if(v.call(this,"__ee__")&&(i=this.__ee__[e])){if("object"==typeof i){for(t=1,r=arguments.length,o=Array(r-1);r>t;++t)o[t-1]=arguments[t];for(t=0,i=i.slice();n=i[t];++t)p.call(n,this,o);}else switch(arguments.length){case 1:f.call(i,this);break;case 2:f.call(i,this,arguments[1]);break;case 3:f.call(i,this,arguments[1],arguments[2]);break;default:for(t=1,r=arguments.length,o=Array(r-1);r>t;++t)o[t-1]=arguments[t];p.call(i,this,o);}}}},l=m({},a={on:c(r),once:c(n),off:c(i),emit:c(o)}),e.exports=t=function(e){return null==e?d(l):m(Object(e),a);},t.methods=s;}),rD("eXmen",function(e,t){var r=rk("eAnMX"),n=rk("bDk1X"),i=rk("6XGJc"),o=rk("3a7Qq"),s=rk("iiFLO");(e.exports=function(e,t){var n,a,l,c,u;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],r(e)?(n=s.call(e,"c"),a=s.call(e,"e"),l=s.call(e,"w")):(n=l=!0,a=!1),u={value:t,configurable:n,enumerable:a,writable:l},c?i(o(c),u):u;}).gs=function(e,t,a){var l,c,u,p;return"string"!=typeof e?(u=a,a=t,t=e,e=null):u=arguments[3],r(t)?n(t)?r(a)?n(a)||(u=a,a=void 0):a=void 0:(u=t,t=a=void 0):t=void 0,r(e)?(l=s.call(e,"c"),c=s.call(e,"e")):(l=!0,c=!1),p={get:t,set:a,configurable:l,enumerable:c},u?i(o(u),p):p;};}),rD("eAnMX",function(e,t){var r=void 0;e.exports=function(e){return e!==r&&null!==e;};}),rD("bDk1X",function(e,t){var r=rk("lrn5l"),n=Function.prototype.toString;e.exports=function(e){return!(!r(e)||/^\s*class[\s{/}]/.test(n.call(e)));};}),rD("lrn5l",function(e,t){var r=rk("89yT1");e.exports=function(e){if("function"!=typeof e||!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length||"function"!=typeof e.call||"function"!=typeof e.apply)return!1;}catch(e){return!1;}return!r(e);};}),rD("89yT1",function(e,t){var r=rk("dZcwn");e.exports=function(e){if(!r(e))return!1;try{if(!e.constructor)return!1;return e.constructor.prototype===e;}catch(e){return!1;}};}),rD("dZcwn",function(e,t){var r=rk("eAnMX"),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(n,typeof e);};}),rD("6XGJc",function(e,t){e.exports=rk("63IW4")()?Object.assign:rk("11hhf");}),rD("3a7Qq",function(e,t){var r=rk("8uHBt"),n=Array.prototype.forEach,i=Object.create,o=function(e,t){var r;for(r in e)t[r]=e[r];};e.exports=function(e){var t=i(null);return n.call(arguments,function(e){r(e)&&o(Object(e),t);}),t;};}),rD("iiFLO",function(e,t){e.exports=rk("lQbJp")()?String.prototype.contains:rk("ffXEK");}),rD("jgVAQ",function(e,t){e.exports=function(){var e,t,r=Array.from;return"function"==typeof r&&!!((t=r(e=["raz","dwa"]))&&t!==e&&"dwa"===t[1]);};}),rD("hQqTa",function(e,t){var r=rk("hXtQe").iterator,n=rk("iAtFO"),i=rk("lTrIc"),o=rk("6u4nl"),s=rk("dxkoV"),a=rk("gGM7W"),l=rk("8uHBt"),c=rk("8bWuC"),u=Array.isArray,p=Function.prototype.call,f={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(e){var t,h,m,v,g,y,E,w,_,b,x=arguments[1],R=arguments[2];if(e=Object(a(e)),l(x)&&s(x),this&&this!==Array&&i(this))t=this;else{if(!x){if(n(e))return 1!==(g=e.length)?Array.apply(null,e):((v=[,])[0]=e[0],v);if(u(e)){for(h=0,v=Array(g=e.length);g>h;++h)v[h]=e[h];return v;}}v=[];}if(!u(e)){if(void 0!==(_=e[r])){for(E=s(_).call(e),t&&(v=new t()),w=E.next(),h=0;!w.done;)b=x?p.call(x,R,w.value,h):w.value,t?(f.value=b,d(v,h,f)):v[h]=b,w=E.next(),++h;g=h;}else if(c(e)){for(g=e.length,t&&(v=new t()),h=0,m=0;g>h;++h)b=e[h],h+1=55296&&y<=56319&&(b+=e[++h]),b=x?p.call(x,R,b,m):b,t?(f.value=b,d(v,m,f)):v[m]=b,++m;g=m;}}if(void 0===g)for(g=o(e.length),t&&(v=new t(g)),h=0;g>h;++h)b=x?p.call(x,R,e[h],h):e[h],t?(f.value=b,d(v,h,f)):v[h]=b;return t&&(f.value=null,v.length=g),v;};}),rD("hXtQe",function(e,t){e.exports=rk("asjyI")()?rk("kld7H").Symbol:rk("8ZJMO");}),rD("asjyI",function(e,t){var r=rk("kld7H"),n={object:!0,symbol:!0};e.exports=function(){var e=r.Symbol;return"function"==typeof e&&(e("test symbol"),!!n[typeof e.iterator]&&!!n[typeof e.toPrimitive]&&!!n[typeof e.toStringTag]);};}),rD("kld7H",function(e,t){e.exports=rk("gOf4U")()?globalThis:rk("atP66");}),rD("gOf4U",function(e,t){e.exports=function(){return!!("object"==typeof globalThis&&globalThis)&&globalThis.Array===Array;};}),rD("atP66",function(e,t){var r=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`");};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this;},configurable:!0});}catch(e){return r();}try{if(!__global__)return r();return __global__;}finally{delete Object.prototype.__global__;}}();}),rD("8ZJMO",function(e,t){var r,n,i,o=rk("eXmen"),s=rk("93JRo"),a=rk("kld7H").Symbol,l=rk("7pvFa"),c=rk("5aDJl"),u=rk("kuJ4U"),p=Object.create,f=Object.defineProperties,d=Object.defineProperty;if("function"==typeof a)try{a(),i=!0;}catch(e){}else a=null;n=function(e){if(this instanceof n)throw TypeError("Symbol is not a constructor");return r(e);},e.exports=r=function e(t){if(this instanceof e)throw TypeError("Symbol is not a constructor");return i?a(t):f(p(n.prototype),{__description__:o("",t=void 0===t?"":t+""),__name__:o("",l(t))});},c(r),u(r),f(n.prototype,{constructor:o(r),toString:o("",function(){return this.__name__;})}),f(r.prototype,{toString:o(function(){return"Symbol ("+s(this).__description__+")";}),valueOf:o(function(){return s(this);})}),d(r.prototype,r.toPrimitive,o("",function(){var e=s(this);return"symbol"==typeof e?e:e.toString();})),d(r.prototype,r.toStringTag,o("c","Symbol")),d(n.prototype,r.toStringTag,o("c",r.prototype[r.toStringTag])),d(n.prototype,r.toPrimitive,o("c",r.prototype[r.toPrimitive]));}),rD("93JRo",function(e,t){var r=rk("8cqlP");e.exports=function(e){if(!r(e))throw TypeError(e+" is not a symbol");return e;};}),rD("8cqlP",function(e,t){e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]);};}),rD("7pvFa",function(e,t){var r=rk("eXmen"),n=Object.defineProperty,i=Object.prototype,o=(0,Object.create)(null);e.exports=function(e){for(var t,s,a=0;o[e+(a||"")];)++a;return o[e+=a||""]=!0,n(i,t="@@"+e,r.gs(null,function(e){s||(s=!0,n(this,t,r(e)),s=!1);})),t;};}),rD("5aDJl",function(e,t){var r=rk("eXmen"),n=rk("kld7H").Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:r("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",n&&n.iterator||e("iterator")),match:r("",n&&n.match||e("match")),replace:r("",n&&n.replace||e("replace")),search:r("",n&&n.search||e("search")),species:r("",n&&n.species||e("species")),split:r("",n&&n.split||e("split")),toPrimitive:r("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:r("",n&&n.toStringTag||e("toStringTag")),unscopables:r("",n&&n.unscopables||e("unscopables"))});};}),rD("kuJ4U",function(e,t){var r=rk("eXmen"),n=rk("93JRo"),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:r(function(t){return i[t]?i[t]:i[t]=e(t+"");}),keyFor:r(function(e){var t;for(t in n(e),i)if(i[t]===e)return t;})});};}),rD("iAtFO",function(e,t){var r=Object.prototype.toString,n=r.call(function(){return arguments;}());e.exports=function(e){return r.call(e)===n;};}),rD("lTrIc",function(e,t){var r=Object.prototype.toString,n=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"==typeof e&&n(r.call(e));};}),rD("6u4nl",function(e,t){var r=rk("bq2jW"),n=Math.max;e.exports=function(e){return n(0,r(e));};}),rD("bq2jW",function(e,t){var r=rk("3lVkV"),n=Math.abs,i=Math.floor;e.exports=function(e){return isNaN(e)?0:0!=(e=+e)&&isFinite(e)?r(e)*i(n(e)):e;};}),rD("3lVkV",function(e,t){e.exports=rk("8tETt")()?Math.sign:rk("hGADy");}),rD("8bWuC",function(e,t){var r=Object.prototype.toString,n=r.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===n)||!1;};}),rD("7o7h2",function(e,t){e.exports=function(e){var t,r,n=e.length;if(!n)return"\x02";for(t=e[r=0]+"";--n;)t+="\x01"+e[++r];return t;};}),rD("jdXxe",function(e,t){e.exports=function(e){return e?function(t){for(var r=t[0]+"",n=0,i=e;--i;)r+="\x01"+t[++n];return r;}:function(){return"";};};}),rD("1DZyI",function(e,t){var r=rk("1vsyN"),n=Object.create;e.exports=function(){var e=0,t=[],i=n(null);return{get:function(e){var n,i=0,o=t,s=e.length;if(0===s)return o[s]||null;if(o=o[s]){for(;i=0?l(u):n(this.length)-l(a(u));c>t;++t)if(s.call(this,t)&&r(this[t]))return t;return-1;};}),rD("hrboG",function(e,t){e.exports=rk("iT9FP")()?Number.isNaN:rk("z7ebn");}),rD("iT9FP",function(e,t){e.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34);};}),rD("z7ebn",function(e,t){e.exports=function(e){return e!=e;};}),rD("loqvW",function(e,t){var r=rk("1vsyN");e.exports=function(){var e=0,t=[],n=[];return{get:function(e){var i=r.call(t,e[0]);return-1===i?null:n[i];},set:function(r){return t.push(r[0]),n.push(++e),e;},delete:function(e){var i=r.call(n,e);-1!==i&&(t.splice(i,1),n.splice(i,1));},clear:function(){t=[],n=[];}};};}),rD("f097S",function(e,t){var r=rk("1vsyN"),n=Object.create;e.exports=function(e){var t=0,i=[[],[]],o=n(null);return{get:function(t){for(var n,o=0,s=i;o100&&(t=t.slice(0,99)+"…"),t=t.replace(/[\n\r\u2028\u2029]/g,function(e){return JSON.stringify(e).slice(1,-1);});};}),rD("aRFop",function(e,t){var r=rk("bEnef");e.exports=function(e){try{if(e&&r(e.toString))return e.toString();return e+"";}catch(e){return"";}};}),rD("8worn",function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then;}e.exports=r,e.exports.default=r;}),rD("1EtHk",function(e,t){var r=rk("dxkoV"),n=rk("5RsFi"),i=rk("5twQR"),o=Function.prototype.apply;i.dispose=function(e,t,s){var a;if(r(e),s.async&&i.async||s.promise&&i.promise){t.on("deleteasync",a=function(t,r){o.call(e,null,r);}),t.on("clearasync",function(e){n(e,function(e,t){a(t,e);});});return;}t.on("delete",a=function(t,r){e(r);}),t.on("clear",function(e){n(e,function(e,t){a(t,e);});});};}),rD("6VQvb",function(e,t){var r=rk("8Vysl"),n=rk("5RsFi"),i=rk("hRqDS"),o=rk("8worn"),s=rk("jWpXq"),a=rk("5twQR"),l=Function.prototype,c=Math.max,u=Math.min,p=Object.create;a.maxAge=function(e,t,f){var d,h,m,v;(e=s(e))&&(d=p(null),h=f.async&&a.async||f.promise&&a.promise?"async":"",t.on("set"+h,function(r){d[r]=setTimeout(function(){t.delete(r);},e),"function"==typeof d[r].unref&&d[r].unref(),v&&(v[r]&&"nextTick"!==v[r]&&clearTimeout(v[r]),v[r]=setTimeout(function(){delete v[r];},m),"function"==typeof v[r].unref&&v[r].unref());}),t.on("delete"+h,function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e]);}),f.preFetch&&(m=!0===f.preFetch||isNaN(f.preFetch)?.333:c(u(+f.preFetch,1),0))&&(v={},m=(1-m)*e,t.on("get"+h,function(e,n,s){v[e]||(v[e]="nextTick",i(function(){var i;"nextTick"===v[e]&&(delete v[e],t.delete(e),f.async&&(n=r(n)).push(l),i=t.memoized.apply(s,n),f.promise&&o(i)&&("function"==typeof i.done?i.done(l,l):i.then(l,l)));}));})),t.on("clear"+h,function(){n(d,function(e){clearTimeout(e);}),d={},v&&(n(v,function(e){"nextTick"!==e&&clearTimeout(e);}),v={});}));};}),rD("jWpXq",function(e,t){var r=rk("6u4nl"),n=rk("3yRn0");e.exports=function(e){if((e=r(e))>n)throw TypeError(e+" exceeds maximum possible timeout");return e;};}),rD("3yRn0",function(e,t){e.exports=2147483647;}),rD("jT7Ur",function(e,t){var r=rk("6u4nl"),n=rk("kzv77"),i=rk("5twQR");i.max=function(e,t,o){var s,a,l;(e=r(e))&&(a=n(e),s=o.async&&i.async||o.promise&&i.promise?"async":"",t.on("set"+s,l=function(e){void 0!==(e=a.hit(e))&&t.delete(e);}),t.on("get"+s,l),t.on("delete"+s,a.delete),t.on("clear"+s,a.clear));};}),rD("kzv77",function(e,t){var r=rk("6u4nl"),n=Object.create,i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,o=0,s=1,a=n(null),l=n(null),c=0;return e=r(e),{hit:function(r){var n=l[r],u=++c;if(a[u]=r,l[r]=u,!n){if(++o<=e)return;return r=a[s],t(r),r;}if(delete a[n],s===n)for(;!i.call(a,++s);)continue;},delete:t=function(e){var t=l[e];if(t&&(delete a[t],delete l[e],--o,s===t)){if(!o){c=0,s=1;return;}for(;!i.call(a,++s);)continue;}},clear:function(){o=0,s=1,a=n(null),l=n(null),c=0;}};};}),rD("6ZksK",function(e,t){var r=rk("eXmen"),n=rk("5twQR"),i=Object.create,o=Object.defineProperties;n.refCounter=function(e,t,s){var a,l;a=i(null),l=s.async&&n.async||s.promise&&n.promise?"async":"",t.on("set"+l,function(e,t){a[e]=t||1;}),t.on("get"+l,function(e){++a[e];}),t.on("delete"+l,function(e){delete a[e];}),t.on("clear"+l,function(){a={};}),o(t.memoized,{deleteRef:r(function(){var e=t.get(arguments);return null!==e&&a[e]?! --a[e]&&(t.delete(e),!0):null;}),getRefCount:r(function(){var e=t.get(arguments);return null!==e&&a[e]?a[e]:0;})});};}),rD("dOmbL",function(e,t){async function r(e){try{return await(0,rv.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rD("awj79",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rD("fXZh0",function(e,t){var r=iX.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rD("elyHp",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r;}}var n=rk("ggaxg"),i=rk("crMMK");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,s)),c.length>=s.span)break;}return c.join(s.delimiter);}(t,s,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:s};}),rD("ggaxg",function(e,t){e.exports=rk("fXZh0");}),rD("crMMK",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rD("jrMr3",function(e,t){var r=rk("6UUXQ"),n=rk("4ojkK"),i=rk("lbpWb"),o=rk("5Kc3o"),s=rk("3uxBW"),a=rk("cdjlt"),l=rk("edMUL"),c=rk("4QHs5"),u=rk("b7ZNe"),p=rk("3tcGr"),f=rk("29YTh"),d=rk("5HQiF"),h=rk("eKr8E"),m=rk("5tbf8"),v=rk("k02ZJ"),g=rk("jSJWo"),y=rk("3tYTc"),E=rk("lXqm9"),w=rk("7opda"),_=rk("e12Rv"),b=rk("hb18N"),x=rk("hcLkw"),R=rk("8qYh8"),O=rk("1MItZ"),S=rk("ekDr6"),I=rk("dnnKg"),T=rk("4F3T1"),P=rk("6K3XU"),N=rk("ggJh3"),A=rk("fta4V"),$=rk("9xXeH"),C=rk("8CAg3"),L=rk("cigJ0"),k=rk("5uMTr"),D=rk("jlFkD"),j=rk("bCYTf"),U=rk("jXojG"),F=rk("gpcZS"),M=rk("1U8CF"),G=rk("cilv0"),B=rk("a04bU");e.exports={parse:s,valid:a,clean:l,inc:c,diff:u,major:p,minor:f,patch:d,prerelease:h,compare:m,rcompare:v,compareLoose:g,compareBuild:y,sort:E,rsort:w,gt:_,lt:b,eq:x,neq:R,gte:O,lte:S,cmp:I,coerce:T,Comparator:P,Range:N,satisfies:A,toComparators:$,maxSatisfying:C,minSatisfying:L,minVersion:k,validRange:D,outside:j,gtr:U,ltr:F,intersects:M,simplifyRange:G,subset:B,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),rD("6UUXQ",function(e,t){var r=rk("4ojkK"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,s=rk("eCCPy");let a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={},p=0,f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[f,i]],h=e=>{for(let[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rD("4ojkK",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rD("eCCPy",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rD("lbpWb",function(e,t){var r=rk("eCCPy"),n=rk("4ojkK"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rk("6UUXQ"),a=s.safeRe,l=s.t,c=rk("fnN7l"),u=rk("5Kc3o").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rD("fnN7l",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rD("5Kc3o",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rD("3uxBW",function(e,t){var r=rk("lbpWb");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rD("cdjlt",function(e,t){var r=rk("3uxBW");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rD("edMUL",function(e,t){var r=rk("3uxBW");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rD("4QHs5",function(e,t){var r=rk("lbpWb");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rD("b7ZNe",function(e,t){var r=rk("3uxBW");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rD("3tcGr",function(e,t){var r=rk("lbpWb");e.exports=(e,t)=>new r(e,t).major;}),rD("29YTh",function(e,t){var r=rk("lbpWb");e.exports=(e,t)=>new r(e,t).minor;}),rD("5HQiF",function(e,t){var r=rk("lbpWb");e.exports=(e,t)=>new r(e,t).patch;}),rD("eKr8E",function(e,t){var r=rk("3uxBW");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rD("5tbf8",function(e,t){var r=rk("lbpWb");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rD("k02ZJ",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>r(t,e,n);}),rD("jSJWo",function(e,t){var r=rk("5tbf8");e.exports=(e,t)=>r(e,t,!0);}),rD("3tYTc",function(e,t){var r=rk("lbpWb");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rD("lXqm9",function(e,t){var r=rk("3tYTc");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rD("7opda",function(e,t){var r=rk("3tYTc");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rD("e12Rv",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>r(e,t,n)>0;}),rD("hb18N",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>0>r(e,t,n);}),rD("hcLkw",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>0===r(e,t,n);}),rD("8qYh8",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>0!==r(e,t,n);}),rD("1MItZ",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rD("ekDr6",function(e,t){var r=rk("5tbf8");e.exports=(e,t,n)=>0>=r(e,t,n);}),rD("dnnKg",function(e,t){var r=rk("hcLkw"),n=rk("8qYh8"),i=rk("e12Rv"),o=rk("1MItZ"),s=rk("hb18N"),a=rk("ekDr6");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rD("4F3T1",function(e,t){var r=rk("lbpWb"),n=rk("3uxBW"),i=rk("6UUXQ"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rD("6K3XU",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rk("fnN7l"),o=rk("6UUXQ"),s=o.safeRe,a=o.t,l=rk("dnnKg"),c=rk("eCCPy"),u=rk("lbpWb"),p=rk("ggJh3");}),rD("ggJh3",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(/\s+/g," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break;}}}this.formatted=void 0;}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim();}}return this.formatted;}format(){return this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,N(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],f)),s("caret trim",e=e.replace(c[u.CARETTRIM],d));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>P(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let y=[...h.values()];return n.set(t,y),y;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>E(r,t)&&e.set.some(e=>E(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,E=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=R(e,t)),s("tildes",e=b(e,t)),s("xrange",e=S(e,t)),s("stars",e=T(e,t)),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(" "),x=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),_(r)?a="":_(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},R=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),_(r)?l="":_(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>I(e,t)).join(" ")),I=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=_(i),u=c||_(o),p=u||_(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},T=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),P=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=e=>(t,r,n,i,o,s,a,l,c,u,p,f)=>(r=_(n)?"":_(i)?`>=${n}.0.0${e?"-0":""}`:_(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${p}-${f}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),A=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rD("KrBiD",function(e,t){e.exports=class{constructor(){this.max=1e3,this.map=new Map();}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t;}delete(e){return this.map.delete(e);}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e);}this.map.set(e,t);}return this;}};}),rD("fta4V",function(e,t){var r=rk("ggJh3");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rD("9xXeH",function(e,t){var r=rk("ggJh3");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rD("8CAg3",function(e,t){var r=rk("lbpWb"),n=rk("ggJh3");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rD("cigJ0",function(e,t){var r=rk("lbpWb"),n=rk("ggJh3");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rD("5uMTr",function(e,t){var r=rk("lbpWb"),n=rk("ggJh3"),i=rk("e12Rv");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rD("jlFkD",function(e,t){var r=rk("ggJh3");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rD("bCYTf",function(e,t){var r=rk("lbpWb"),n=rk("6K3XU");let{ANY:i}=n;var o=rk("ggJh3"),s=rk("fta4V"),a=rk("e12Rv"),l=rk("hb18N"),c=rk("ekDr6"),u=rk("1MItZ");e.exports=(e,t,p,f)=>{let d,h,m,v,g;switch(e=new r(e,f),t=new o(t,f),p){case">":d=a,h=c,m=l,v=">",g=">=";break;case"<":d=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,f))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,d(e.semver,s.semver,f)?s=e:m(e.semver,a.semver,f)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rD("jXojG",function(e,t){var r=rk("bCYTf");e.exports=(e,t,n)=>r(e,t,">",n);}),rD("gpcZS",function(e,t){var r=rk("bCYTf");e.exports=(e,t,n)=>r(e,t,"<",n);}),rD("1U8CF",function(e,t){var r=rk("ggJh3");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rD("cilv0",function(e,t){var r=rk("fta4V"),n=rk("5tbf8");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,f,d,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((f=s(n.semver,c.semver,r))>0||0===f&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let y=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,E=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===c.operator&&0===y.prerelease[0]&&(y=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if((d=u(n,e,r))===e&&d!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==f)return!1;}return(!n||!m||!!c||0===f)&&(!c||!v||!!n||0===f)&&!E&&!y;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rD("ceI0e",function(e,t){var r,n,i,o,s,a,u,p,f,d,h,m,v;function g(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function y(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function E(e,t=!0){return t?(0,iX.basename)(e):(0,iX.basename)(e,(0,iX.extname)(e));}function w(e){return(0,iX.normalize)(e).replace(RegExp((0,r.default)(iX.sep)+"$"),"");}function _(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,iX.extname)(e),n=`${t}${(0,iX.basename)(e,r)}${r}`;return(0,iX.join)((0,iX.dirname)(e),n);}function x(e,t){let r=(0,iX.extname)(e),n=`${(0,iX.basename)(e,r)}${t}${r}`;return(0,iX.join)((0,iX.dirname)(e),n);}function R(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function O(e){return"win32"===process.platform?e:"./"+e;}function S(e){let t=(0,iX.extname)(e).length;return e.slice(0,-t);}function I(e,t){return c(n)(e,t);}function T(e,t){let r=(0,iX.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+iX.sep)||r===(0,iX.resolve)(e));}l(e.exports,"addExeExt",()=>_),l(e.exports,"addShExt",()=>R),l(e.exports,"addShRelativePrefix",()=>O),l(e.exports,"dirname",()=>iX.dirname),l(e.exports,"join",()=>iX.join),r=rk("9ag04"),n=rk("923E2"),i={},y(o={},"name",()=>E),y(s={},"normalizeTrim",()=>w),y(a={},"addExeExt",()=>_),y(u={},"addNamePrefix",()=>b),y(p={},"addNameSuffix",()=>x),y(f={},"addShExt",()=>R),y(d={},"addShRelativePrefix",()=>O),y(h={},"removeExt",()=>S),y(m={},"replaceExt",()=>I),y(v={},"isPathInside",()=>T),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,f),g(i,d),g(i,h),g(i,m),g(i,v);}),rD("9ag04",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rD("923E2",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=iX.basename(e,iX.extname(e))+t,i=iX.join(iX.dirname(e),n);return(r=e.slice(0,2))==="."+iX.sep||"./"===r?"."+iX.sep+i:i;};}),rD("fcBgE",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){rh.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(iX),p=i(rk("ejt9m"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let f=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,f,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,f))throw Error(`'${f}' and '${e}' are the same file`);yield c(e,f,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);}return r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rD("ejt9m",function(e,t){var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(iz),c=i(iX);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(a(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(a(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rD("ktIRP",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rk("aNgTs"));s=rk("9yJgU"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=iV.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version);}return r;}))){s.debug("matched "+o.version),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=iV.platform(),r="";if("darwin"===t)r=rg.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return iz.existsSync(e)?r=iz.readFileSync(e).toString():iz.existsSync(t)&&(r=iz.readFileSync(t).toString()),r;};}),rD("aNgTs",function(e,t){function r(e){P[e]=N++;}function n(e){for(var t=0;t<$.length;t++){var r=$[t][0],n=$[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e;}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e||e.length>x||!(t.loose?I[P.LOOSE]:I[P.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>x)throw TypeError("version is longer than "+x+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?I[P.LOOSE]:I[P.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>R||this.major<0)throw TypeError("Invalid major version");if(this.minor>R||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>R||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function f(e,t,r){return a(e,t,r)>=0;}function d(e,t,r){return 0>=a(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return f(e,r,n);case"<":return c(e,r,n);case"<=":return d(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===k?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function y(e){return!e||"x"===e.toLowerCase()||"*"===e;}function E(e,t,r,n,i,o,s,a,l,c,u,p,f){return((t=y(r)?"":y(n)?">="+r+".0.0":y(i)?">="+r+"."+n+".0":">="+t)+" "+(a=y(l)?"":y(c)?"<"+(+l+1)+".0.0":y(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function _(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=d,a=c,u=">",p=">=";break;case"<":i=c,s=f,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),y=y||e,E=E||e,i(e.semver,y.semver,n)?y=e:a(e.semver,E.semver,n)&&(E=e);}),y.operator===u||y.operator===p||(!E.operator||E.operator===u)&&s(e,E.semver)||E.operator===p&&a(e,E.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",x=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,O=x-6,S=t.re=[],I=t.safeRe=[],T=t.src=[],P=t.tokens={},N=0,$=[["\\s",1],["\\d",x],[A="[a-zA-Z0-9-]",O]],r("NUMERICIDENTIFIER"),T[P.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),T[P.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),T[P.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+A+"*",r("MAINVERSION"),T[P.MAINVERSION]="("+T[P.NUMERICIDENTIFIER]+")\\.("+T[P.NUMERICIDENTIFIER]+")\\.("+T[P.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),T[P.MAINVERSIONLOOSE]="("+T[P.NUMERICIDENTIFIERLOOSE]+")\\.("+T[P.NUMERICIDENTIFIERLOOSE]+")\\.("+T[P.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),T[P.PRERELEASEIDENTIFIER]="(?:"+T[P.NUMERICIDENTIFIER]+"|"+T[P.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),T[P.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[P.NUMERICIDENTIFIERLOOSE]+"|"+T[P.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),T[P.PRERELEASE]="(?:-("+T[P.PRERELEASEIDENTIFIER]+"(?:\\."+T[P.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),T[P.PRERELEASELOOSE]="(?:-?("+T[P.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[P.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),T[P.BUILDIDENTIFIER]=A+"+",r("BUILD"),T[P.BUILD]="(?:\\+("+T[P.BUILDIDENTIFIER]+"(?:\\."+T[P.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),T[P.FULLPLAIN]="v?"+T[P.MAINVERSION]+T[P.PRERELEASE]+"?"+T[P.BUILD]+"?",T[P.FULL]="^"+T[P.FULLPLAIN]+"$",r("LOOSEPLAIN"),T[P.LOOSEPLAIN]="[v=\\s]*"+T[P.MAINVERSIONLOOSE]+T[P.PRERELEASELOOSE]+"?"+T[P.BUILD]+"?",r("LOOSE"),T[P.LOOSE]="^"+T[P.LOOSEPLAIN]+"$",r("GTLT"),T[P.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),T[P.XRANGEIDENTIFIERLOOSE]=T[P.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),T[P.XRANGEIDENTIFIER]=T[P.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),T[P.XRANGEPLAIN]="[v=\\s]*("+T[P.XRANGEIDENTIFIER]+")(?:\\.("+T[P.XRANGEIDENTIFIER]+")(?:\\.("+T[P.XRANGEIDENTIFIER]+")(?:"+T[P.PRERELEASE]+")?"+T[P.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),T[P.XRANGEPLAINLOOSE]="[v=\\s]*("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:"+T[P.PRERELEASELOOSE]+")?"+T[P.BUILD]+"?)?)?",r("XRANGE"),T[P.XRANGE]="^"+T[P.GTLT]+"\\s*"+T[P.XRANGEPLAIN]+"$",r("XRANGELOOSE"),T[P.XRANGELOOSE]="^"+T[P.GTLT]+"\\s*"+T[P.XRANGEPLAINLOOSE]+"$",r("COERCE"),T[P.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),S[P.COERCERTL]=RegExp(T[P.COERCE],"g"),I[P.COERCERTL]=RegExp(n(T[P.COERCE]),"g"),r("LONETILDE"),T[P.LONETILDE]="(?:~>?)",r("TILDETRIM"),T[P.TILDETRIM]="(\\s*)"+T[P.LONETILDE]+"\\s+",S[P.TILDETRIM]=RegExp(T[P.TILDETRIM],"g"),I[P.TILDETRIM]=RegExp(n(T[P.TILDETRIM]),"g"),r("TILDE"),T[P.TILDE]="^"+T[P.LONETILDE]+T[P.XRANGEPLAIN]+"$",r("TILDELOOSE"),T[P.TILDELOOSE]="^"+T[P.LONETILDE]+T[P.XRANGEPLAINLOOSE]+"$",r("LONECARET"),T[P.LONECARET]="(?:\\^)",r("CARETTRIM"),T[P.CARETTRIM]="(\\s*)"+T[P.LONECARET]+"\\s+",S[P.CARETTRIM]=RegExp(T[P.CARETTRIM],"g"),I[P.CARETTRIM]=RegExp(n(T[P.CARETTRIM]),"g"),r("CARET"),T[P.CARET]="^"+T[P.LONECARET]+T[P.XRANGEPLAIN]+"$",r("CARETLOOSE"),T[P.CARETLOOSE]="^"+T[P.LONECARET]+T[P.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),T[P.COMPARATORLOOSE]="^"+T[P.GTLT]+"\\s*("+T[P.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),T[P.COMPARATOR]="^"+T[P.GTLT]+"\\s*("+T[P.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),T[P.COMPARATORTRIM]="(\\s*)"+T[P.GTLT]+"\\s*("+T[P.LOOSEPLAIN]+"|"+T[P.XRANGEPLAIN]+")",S[P.COMPARATORTRIM]=RegExp(T[P.COMPARATORTRIM],"g"),I[P.COMPARATORTRIM]=RegExp(n(T[P.COMPARATORTRIM]),"g"),C="$1$2$3",r("HYPHENRANGE"),T[P.HYPHENRANGE]="^\\s*("+T[P.XRANGEPLAIN]+")\\s+-\\s+("+T[P.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),T[P.HYPHENRANGELOOSE]="^\\s*("+T[P.XRANGEPLAINLOOSE]+")\\s+-\\s+("+T[P.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),T[P.STAR]="(<|>)?=?\\s*\\*";for(var b,x,R,O,S,I,T,P,N,A,$,C,L,k,D=0;D=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=f,t.lte=d,t.cmp=h,t.Comparator=m,k={},m.prototype.parse=function(e){var t=this.options.loose?I[P.COMPARATORLOOSE]:I[P.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=k;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?I[P.HYPHENRANGELOOSE]:I[P.HYPHENRANGE];e=e.replace(r,E),b("hyphen replace",e),e=e.replace(I[P.COMPARATORTRIM],C),b("comparator trim",e,I[P.COMPARATORTRIM]),e=(e=(e=e.replace(I[P.TILDETRIM],"$1~")).replace(I[P.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?I[P.COMPARATORLOOSE]:I[P.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?I[P.CARETLOOSE]:I[P.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),y(r)?s="":y(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":y(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(b("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?I[P.TILDELOOSE]:I[P.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),y(r)?s="":y(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":y(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?I[P.XRANGELOOSE]:I[P.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=y(i),c=l||y(o),u=c||y(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(I[P.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return _(e,t,"<",r);},t.gtr=function(e,t,r){return _(e,t,">",r);},t.outside=_,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=I[P.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),I[P.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;I[P.COERCERTL].lastIndex=-1;}else n=e.match(I[P.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rD("dGCqI",function(e,t){var r=rk("fVQSr"),n=rk("3MZit");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rD("fVQSr",function(e,t){e.exports=function(){return iW.randomBytes(16);};}),rD("3MZit",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rD("jlr6Q",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.getExecOutput=e.exports.exec=void 0;let a=i(rk("jbxr5"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new ry.StringDecoder("utf8"),c=new ry.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,f=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),d=yield s(e,t,Object.assign(Object.assign({},r),{listeners:f}));return o+=l.end(),a+=c.end(),{exitCode:d,stdout:o,stderr:a};});};}),rD("jbxr5",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=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.argStringToArray=e.exports.ToolRunner=void 0;let s=i(iV),a=i(rd),l=i(rg),c=i(iX),u=i(rk("fcBgE")),p=i(rk("ejt9m")),f="win32"===process.platform;class d extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(f){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT");}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=d,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=rE.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t);}e._setResult();}}}}),rD("jMBnm",function(e,t){e.exports=Promise.resolve(require("./actions_python.efec3a8c.js")).then(()=>rk("4kQHk"));}),rD("kUjMH",function(e,t){e.exports=Promise.resolve(require("./hdi.7a328924.js")).then(()=>rk("4YYb2"));}),rj=rk("9ne19"),rU=rk("ER74K"),rF=rk("9yJgU"),rj=rk("9ne19"),rU=rk("ER74K"),rM={},rG={},rB={},rH={};const iJ="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iQ=iJ?";":":";rq={},"win32"===process.platform||r$.TESTING_WINDOWS?rV=rk("a3PNV"):rV=rk("7gw6J"),rq=u,u.sync=function(e,t){try{return rV.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iZ=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i0=(e,t)=>{let r=t.colon||iQ,n=e.match(/\//)||iJ&&e.match(/\\/)?[""]:[...(iJ?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iJ?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iJ?i.split(r):[""];return iJ&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},i1=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=i0(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iZ(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=iX.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rq(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rH=i1,i1.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i0(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rX=i2).default=i2,rB=function(e){return p(e)||p(e,!0);};rz=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rW=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rK={},rY={},rJ={},rJ=/^#!(.*)/,rY=(e="")=>{let t=e.match(rJ);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rK=function(e){let t;let r=Buffer.alloc(150);try{t=iz.openSync(e,"r"),iz.readSync(t,r,0,150,0),iz.closeSync(t);}catch(e){}return rY(r.toString());};const i4="win32"===process.platform;rG=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!i4)return e;let t=function(e){e.file=rB(e);let t=e.file&&rK(e.file);return t?(e.args.unshift(e.file),e.command=t,rB(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=iX.normalize(e.command),e.command=rz(e.command),e.args=e.args.map(e=>rW(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rQ={};const i3="win32"===process.platform;rQ={hookChildProcess:function(e,t){if(!i3)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=d(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:d,verifyENOENTSync:function(e,t){return i3&&1===e&&!t.file?f(t.original,"spawnSync"):null;},notFoundError:f},(rM=h).spawn=h,rM.sync=function(e,t,r){let n=rG(e,t,r),i=rg.spawnSync(n.command,n.args,n.options);return i.error=i.error||rQ.verifyENOENTSync(i.status,n),i;},rM._parse=rG,rM._enoent=rQ;const i6=({cwd:e=c(rx).cwd(),path:t=c(rx).env[m()],preferLocal:r=!0,execPath:n=c(rx).execPath,addExecPath:i=!0}={})=>{let o=e instanceof URL?(0,rR.fileURLToPath)(e):e,s=c(r_).resolve(o),a=[];return r&&i8(a,s),i&&i7(a,n,s),[...a,t].join(c(r_).delimiter);},i8=(e,t)=>{let r;for(;r!==t;)e.push(c(r_).join(t,"node_modules/.bin")),r=t,t=c(r_).resolve(t,"..");},i7=(e,t,r)=>{let n=t instanceof URL?(0,rR.fileURLToPath)(t):t;e.push(c(r_).resolve(r,n,".."));},i5=({env:e=c(rx).env,...t}={})=>{let r=m({env:e={...e}});return t.path=e[r],e[r]=i6(t),e;},i9=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(oe(i,o)||!n)&&Object.defineProperty(e,r,o);},oe=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},ot=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},or=(e,t)=>`/* Wrapped ${e}*/ ${t}`,on=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oi=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oo=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=or.bind(null,n,t.toString());Object.defineProperty(i,"name",oi),Object.defineProperty(e,"toString",{...on,value:i});},os=new WeakMap(),oa=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(os.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`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))i9(e,t,n,r);ot(e,t),oo(e,t,n);}(o,e),os.set(o,n),o;};oa.callCount=e=>{if(!os.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return os.get(e);},rZ=oa;const ol=()=>Array.from({length:op-ou+1},oc),oc=(e,t)=>({name:"SIGRT"+(t+1),number:ou+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ou=34,op=64,of=[{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:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],od=()=>[...of,...ol()].map(oh),oh=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rO.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},om=Object.fromEntries(od().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}])),ov=(e,t)=>{let r=og(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},og=(e,t)=>{let r=t.find(({name:t})=>rO.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=od();return Object.assign({},...Array.from({length:op+1},(t,r)=>ov(r,e)));})();const oy=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oE=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:f,cwd:d=c(rx).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:om[i].description,m=oy({timedOut:l,timeout:f,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),y=g?`${v} ${n.message}`:v,E=[y,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=y,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=d,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},ow=["stdin","stdout","stderr"],o_=e=>ow.some(t=>void 0!==e[t]),ob=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return ow.map(t=>e[t]);if(o_(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ow.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}\``);return Array.from({length:Math.max(t.length,ow.length)},(e,r)=>t[r]);};r0={};const ox=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(ox(r1=r$.process)){var oR,oO=rh,oS=rk("1YMV0"),oI=/^win/i.test(r1.platform),oT=rd;"function"!=typeof oT&&(oT=oT.EventEmitter),r1.__signal_exit_emitter__?oR=r1.__signal_exit_emitter__:((oR=r1.__signal_exit_emitter__=new oT()).count=0,oR.emitted={}),oR.infinite||(oR.setMaxListeners(1/0),oR.infinite=!0);var oP=function(){o$&&ox(r$.process)&&(o$=!1,oS.forEach(function(e){try{r1.removeListener(e,oA[e]);}catch(e){}}),r1.emit=oD,r1.reallyExit=oL,oR.count-=1);};(r0=function(e,t){if(!ox(r$.process))return function(){};oO.equal(typeof e,"function","a callback must be provided for exit handler"),!1===o$&&oC();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),oR.on(r,e),function(){oR.removeListener(r,e),0===oR.listeners("exit").length&&0===oR.listeners("afterexit").length&&oP();};}).unload=oP;var oN=function(e,t,r){oR.emitted[e]||(oR.emitted[e]=!0,oR.emit(e,t,r));},oA={};oS.forEach(function(e){oA[e]=function(){ox(r$.process)&&r1.listeners(e).length===oR.count&&(oP(),oN("exit",null,e),oN("afterexit",null,e),oI&&"SIGHUP"===e&&(e="SIGINT"),r1.kill(r1.pid,e));};}),r0.signals=function(){return oS;};var o$=!1,oC=function(){!o$&&ox(r$.process)&&(o$=!0,oR.count+=1,oS=oS.filter(function(e){try{return r1.on(e,oA[e]),!0;}catch(e){return!1;}}),r1.emit=oj,r1.reallyExit=ok);};r0.load=oC;var oL=r1.reallyExit,ok=function(e){ox(r$.process)&&(r1.exitCode=e||0,oN("exit",r1.exitCode,null),oN("afterexit",r1.exitCode,null),oL.call(r1,r1.exitCode));},oD=r1.emit,oj=function(e,t){if(!("exit"===e&&ox(r$.process)))return oD.apply(this,arguments);void 0!==t&&(r1.exitCode=t);var r=oD.apply(this,arguments);return oN("exit",r1.exitCode,null),oN("afterexit",r1.exitCode,null),r;};}else r0=function(){return function(){};};const oU=(e,t="SIGTERM",r={})=>{let n=e(t);return oF(e,t,r,n),n;},oF=(e,t,r,n)=>{if(!oM(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},oB(r));i.unref&&i.unref();},oM=(e,{forceKillAfterTimeout:t},r)=>oG(e)&&!1!==t&&r,oG=e=>e===c(rO).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oB=({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;},oH=(e,t)=>{e.kill()&&(t.isCanceled=!0);},oq=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oV=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{oq(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oX=({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})`);},oz=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(r0)(()=>{e.kill();});return n.finally(()=>{i();});},oW=e=>e instanceof rb.ChildProcess&&"function"==typeof e.then,oK=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rv.createWriteStream)(r)),e;if(g(r))return e[t].pipe(r),e;if(!oW(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!g(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oY=e=>{null!==e.stdout&&(e.pipeStdout=oK.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=oK.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=oK.bind(void 0,e,"all"));};r2={},r4=rS.constants,r3=rm.promisify,r6={},r8=rI.PassThrough,r6=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r8({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const oJ=r3(rI.pipeline);class oQ extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r2=y).buffer=(e,t)=>y(e,{...t,encoding:"buffer"}),r2.array=(e,t)=>y(e,{...t,array:!0}),r2.MaxBufferError=oQ,r7={},r5=rI.PassThrough,r7=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r5({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const oZ=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},o0=({input:e,inputFile:t})=>"string"!=typeof t?e:(oZ(e),(0,rv.readFileSync)(t)),o1=e=>{let t=o0(e);if(v(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},o2=({input:e,inputFile:t})=>"string"!=typeof t?e:(oZ(e),(0,rv.createReadStream)(t)),o4=(e,t)=>{let r=o2(t);void 0!==r&&(v(r)?r.pipe(e.stdin):e.stdin.end(r));},o3=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r7)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},o6=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},o8=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r2)(e,{encoding:t,maxBuffer:n}):c(r2).buffer(e,{maxBuffer:n});},o7=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=o8(e,{encoding:n,buffer:i,maxBuffer:o}),l=o8(t,{encoding:n,buffer:i,maxBuffer:o}),c=o8(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},o6(e,a),o6(t,l),o6(r,c)]);}},o5=(async()=>{})().constructor.prototype,o9=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(o5,e)]),se=(e,t)=>{for(let[r,n]of o9){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},st=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),sr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sn=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,si=(e,t)=>sr(e,t).join(" "),so=(e,t)=>sr(e,t).map(e=>sn(e)).join(" "),ss=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},sa=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rb.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rw.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sl=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sc=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sl(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sl(s,Array.isArray(a)?a.map(e=>sa(e)):[sa(a)],o.endsWith(" "));},su=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sc({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sp=(0,rT.debuglog)("execa").enabled,sf=(e,t)=>(e+"").padStart(t,"0"),sd=()=>{let e=new Date();return`${sf(e.getHours(),2)}:${sf(e.getMinutes(),2)}:${sf(e.getSeconds(),2)}.${sf(e.getMilliseconds(),3)}`;},sh=(e,{verbose:t})=>{t&&c(rx).stderr.write(`[${sd()}] ${e} `);},sm=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(rx).env,...e}:e;return r?i5({env:o,cwd:n,execPath:i}):o;},sv=(e,t,r={})=>{let n=c(rM)._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||c(rx).cwd(),execPath:c(rx).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sp,...r}).env=sm(r),r.stdio=ob(r),"win32"===c(rx).platform&&"cmd"===c(r_).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sg=(e,t,r)=>"string"==typeof t||(0,rw.Buffer).isBuffer(t)?e.stripFinalNewline?function(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:"",sy=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sE=(e={})=>({preferLocal:!0,...sy(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=su(n,i);return E(o,s,sE(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]=su(e,r);return w(n,i,sE(t));},r;}(),r9={},l(ne={},"isexe",()=>sw),l(ne,"sync",()=>s_),nt=rk("4oHc1");const sw=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sb(await(0,nt.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},s_=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sb((0,iz.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sb=(e,t)=>e.isFile()&&sx(e,t),sx=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(nr={},"isexe",()=>sR),l(nr,"sync",()=>sO),nt=rk("4oHc1");const sR=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sI(await(0,nt.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sO=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sI((0,iz.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sS=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&sS(t,r),sT="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?nr:ne,sP=sT.isexe,sN=sT.sync;nn=iX.join,ni=iX.delimiter,no=iX.sep,ns=iX.posix;const sA="win32"===process.platform,s$=new RegExp(`[${ns.sep}${no===ns.sep?"":no}]`.replace(/(\\)/g,"\\$1")),sC=RegExp("^\\."+s$.source),sL=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),sk=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=ni})=>{let i=e.match(s$)?[""]:[...(sA?[process.cwd()]:[]),...(t||"").split(n)];if(sA){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sD=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&sC.test(t)?t.slice(0,2):"")+nn(r,t);},sj=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sk(e,t),o=[];for(let s of r){let r=sD(s,e);for(let e of n){let n=r+e;if(await sP(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sL(e);};r9=sj,sj.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sk(e,t),o=[];for(let s of r){let r=sD(s,e);for(let e of n){let n=r+e;if(sN(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sL(e);};const sU={stdio:"inherit",shell:!0};rU=rk("ER74K"),na={},nl=rk("3a7Qq"),nc={},nu=rk("6u4nl"),nc=function(e,t,r){return isNaN(e)?t>=0?r&&t?t-1:t:1:!1!==e&&nu(e);},np={},nf=rk("dxkoV"),nd=rk("5RsFi"),nh=rk("5twQR"),nm={},nv={},ng=rk("6XGJc"),ny={},nE=rk("8uHBt"),nw={function:!0,object:!0},ny=function(e){return nE(e)&&nw[typeof e]||!1;},nE=rk("8uHBt"),n_=Error.captureStackTrace,nv=function(e){var t=Error(e),r=arguments[1],n=arguments[2];return!nE(n)&&ny(r)&&(n=r,r=null),nE(n)&&ng(t,n),nE(r)&&(t.code=r),n_&&n_(t,nv),t;},nb=rk("bP3iK"),nx=rk("eXmen"),nR=rk("4SFhS").methods,nO={},nS={},nI=rk("8Vysl"),nT=Array.isArray,nS=function(e){return nT(e)?e:nI(e);},nE=rk("8uHBt"),nf=rk("dxkoV"),nP=Array.prototype.slice,nN=function(e){return this.map(function(t,r){return t?t(e[r]):e[r];}).concat(nP.call(e,this.length));},nO=function(e){return(e=nS(e)).forEach(function(e){nE(e)&&nf(e);}),nN.bind(e);},nA={},nf=rk("dxkoV"),nA=function(e){var t;return"function"==typeof e?{set:e,get:e}:((t={get:nf(e.get)},void 0!==e.set)?(t.set=nf(e.set),e.delete&&(t.delete=nf(e.delete)),e.clear&&(t.clear=nf(e.clear))):t.set=t.get,t);},n$=Function.prototype.apply,nC=Function.prototype.call,nL=Object.create,nk=Object.defineProperties,nD=nR.on,nj=nR.emit,nm=function(e,t,r){var n,i,o,s,a,l,c,u,p,f,d,h,m,v,g,y=nL(null);return i=!1!==t?t:isNaN(e.length)?1:e.length,r.normalizer&&(o=(f=nA(r.normalizer)).get,s=f.set,a=f.delete,l=f.clear),null!=r.resolvers&&(g=nO(r.resolvers)),v=o?nb(function(t){var r,i,a=arguments;if(g&&(a=g(a)),null!==(r=o(a))&&hasOwnProperty.call(y,r))return d&&n.emit("get",r,a,this),y[r];if(i=1===a.length?nC.call(e,this,a[0]):n$.call(e,this,a),null===r){if(null!==(r=o(a)))throw nv("Circular invocation","CIRCULAR_INVOCATION");r=s(a);}else if(hasOwnProperty.call(y,r))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y[r]=i,h&&n.emit("set",r,null,i),i;},i):0===t?function(){var t;if(hasOwnProperty.call(y,"data"))return d&&n.emit("get","data",arguments,this),y.data;if(t=arguments.length?n$.call(e,this,arguments):nC.call(e,this),hasOwnProperty.call(y,"data"))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y.data=t,h&&n.emit("set","data",null,t),t;}:function(t){var r,i,o=arguments;if(g&&(o=g(arguments)),i=o[0]+"",hasOwnProperty.call(y,i))return d&&n.emit("get",i,o,this),y[i];if(r=1===o.length?nC.call(e,this,o[0]):n$.call(e,this,o),hasOwnProperty.call(y,i))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y[i]=r,h&&n.emit("set",i,null,r),r;},n={original:e,memoized:v,profileName:r.profileName,get:function(e){return(g&&(e=g(e)),o)?o(e):e[0]+"";},has:function(e){return hasOwnProperty.call(y,e);},delete:function(e){var t;hasOwnProperty.call(y,e)&&(a&&a(e),t=y[e],delete y[e],m&&n.emit("delete",e,t));},clear:function(){var e=y;l&&l(),y=nL(null),n.emit("clear",e);},on:function(e,t){return"get"===e?d=!0:"set"===e?h=!0:"delete"===e&&(m=!0),nD.call(this,e,t);},emit:nj,updateEnv:function(){e=n.original;}},c=o?nb(function(e){var t,r=arguments;g&&(r=g(r)),null!==(t=o(r))&&n.delete(t);},i):0===t?function(){return n.delete("data");}:function(e){return g&&(e=g(arguments)[0]),n.delete(e);},u=nb(function(){var e,r=arguments;return 0===t?y.data:(g&&(r=g(r)),y[o?o(r):r[0]+""]);}),p=nb(function(){var e,r=arguments;return 0===t?n.has("data"):(g&&(r=g(r)),null!==(e=o?o(r):r[0]+"")&&n.has(e));}),nk(v,{__memoized__:nx(!0),delete:nx(c),clear:nx(n.clear),_get:nx(u),_has:nx(p)}),n;},np=function e(t){var r,n,i;if(nf(t),r=Object(arguments[1]),r.async&&r.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=nc(r.length,t.length,r.async&&nh.async),i=nm(t,n,r),nd(nh,function(e,t){r[t]&&e(r[t],i,r);}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized);},na=function(e){var t,r=nl(arguments[1]);return!r.normalizer&&0!==(t=r.length=nc(r.length,e.length,r.async))&&(r.primitive?!1===t?r.normalizer=rk("7o7h2"):t>1&&(r.normalizer=rk("jdXxe")(t)):!1===t?r.normalizer=rk("1DZyI")():1===t?r.normalizer=rk("loqvW")():r.normalizer=rk("f097S")(t)),r.async&&rk("7PnxH"),r.promise&&rk("fCNrK"),r.dispose&&rk("1EtHk"),r.maxAge&&rk("6VQvb"),r.max&&rk("jT7Ur"),r.refCounter&&rk("6ZksK"),np(e,r);},nU=rk("dOmbL");const sF=/^~(?=$|\/|\\)/,{appendFile:sM,readFile:sG,writeFile:sB}=iz.promises,sH=T("~/.bashrc"),sq=c(na)(P,{promise:!0});nF={};const sV="win32"!==iV.platform(),sX=iV.release(),sz=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nF=function(e){return sV?e.replace(/(\s+)/g,"\\$1"):sz(.../(\d+\.\d+)\.(\d+)/.exec(sX).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rk("awj79"),t=function(e){return e.split("").reverse().join("");},nM=function(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(nM={});const{appendFile:sW}=iz.promises;rF=rk("9yJgU"),rj=rk("9ne19"),rU=rk("ER74K");const{appendFile:sK}=iz.promises,sY=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];nG=rk("ggaxg"),function(){rk("fXZh0").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(nB={}),nH={},nH=rk("elyHp"),nq={},nq={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rU=rk("ER74K"),nV={},nX=rk("jrMr3"),nz=rP.env.npm_package_json,nK=!!((nW=rP.env.npm_config_user_agent)&&nW.startsWith("npm")),nY=!!(nz&&nz.endsWith("package.json")),nJ=nK||nY,nQ=!!(nW&&nW.startsWith("yarn")),nZ=nJ||nQ,n0=iV.homedir(),n1=process.env.XDG_CONFIG_HOME||iX.join(n0,".config","simple-update-notifier"),n2=function(e){return iX.join(n1,"".concat(e.replace("@","").replace("/","__"),".json"));},n4=function(){iz.existsSync(n1)||iz.mkdirSync(n1,{recursive:!0});},n3=function(e){var t=n2(e);try{if(!iz.existsSync(t))return;return JSON.parse(iz.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},n6=function(e){var t=n2(e);iz.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},n8=function(e,t){return j(void 0,void 0,void 0,function(){var r;return U(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){iY.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},n7=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return j(void 0,void 0,void 0,function(){var e,r;return U(this,function(i){switch(i.label){case 0:if(n4(),e=n3(t.name),!(s||!e||ethis.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url);}},{key:"getOptions",value:function(){return this.__opts;}},{key:"getMetadata",value:function(){return this.__opts.metadata;}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes};}},{key:"getTotalSize",value:function(){var e=this;return new Promise(function(t,r){var n=function(t){e.__initProtocol(t);var r=Object.assign({},e.__headers);r.hasOwnProperty("range")&&delete r.range;var n=e.__getReqOptions("HEAD",t,r);return Object.assign({},e.__reqOptions,n);},i=function(o,s){var a=e.__protocol.request(s,function(s){if(e.__isRequireRedirect(s)){var a=/^https?:\/\//.test(s.headers.location)?s.headers.location:new rN.URL(s.headers.location,o).href;return e.emit("redirected",a,o),i(a,n(a));}return 200===s.statusCode?void t({name:e.__getFileNameFromHeaders(s.headers,s),total:parseInt(s.headers["content-length"])||null}):r(Error("Response status was "+s.statusCode));});a.on("error",function(e){return r(e);}),a.on("timeout",function(){return r(Error("timeout"));}),a.on("uncaughtException",function(e){return r(e);}),a.end();};i(e.url,n(e.url));});}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total};}},{key:"resumeFromFile",value:function(e){var t=this,r=1=a))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:s}),this.__setState(this.__states.SKIPPED),t(!0);}this.__fileStream=ii.createWriteStream(this.__filePath,{});}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date(),this.__statsEstimate.throttleTime=new Date(),i.on("data",function(e){return n.__calculateStats(e.length);}),this.__pipes.forEach(function(e){i.pipe(e.stream,e.options),i=e.stream;}),i.pipe(this.__fileStream),i.on("error",this.__onError(t,r)),this.__fileStream.on("finish",this.__onFinished(t,r)),this.__fileStream.on("error",this.__onError(t,r));}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state);}},{key:"__isRequireRedirect",value:function(e){return 300e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location;}},{key:"__onFinished",value:function(e,t){var r=this;return function(){r.__fileStream.close(function(n){if(n)return t(n);if(r.__hasFinished()){var i=!!r.__total&&r.__downloaded!==r.__total;if(i&&r.__isResumable&&r.__opts.resumeOnIncomplete&&r.__resumeRetryCount<=r.__opts.resumeOnIncompleteMaxRetry)return r.__resumeRetryCount++,r.emit("warning",Error("uncomplete download, retrying")),r.resume();r.__setState(r.__states.FINISHED),r.__pipes=[],r.emit("end",{fileName:r.__fileName,filePath:r.__filePath,totalSize:r.__total,incomplete:i,onDiskSize:r.__getFilesizeInBytes(r.__filePath),downloadedSize:r.__downloaded});}return e(r.__downloaded===r.__total);});};}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise(function(t,r){e.__fileStream.close(function(e){return e?r(e):t(!0);});}):Promise.resolve(!0);}},{key:"__onError",value:function(e,t){var r=this,n=!!(2=(void 0===o?999:o)?Promise.reject(t||Error("reached the maximum retries")):(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach(function(e){return e.stream.unpipe();})),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then(function(){return new Promise(function(t){return e.__retryTimeout=setTimeout(function(){return t(0this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()));}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state);}},{key:"__getReqOptions",value:function(e,t){var r=2this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return iI(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class af extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}im.HTTPError=af;const ad="win32"===process.platform,ah="darwin"===process.platform;im.downloadTool=function(e,t,r,n){return iw(this,void 0,void 0,function*(){t=t||ao.join(eN(),au.default()),yield at.mkdirP(ao.dirname(t)),ae.debug("Downloading "+e),ae.debug("Destination "+t);let i=eA("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eA("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new ix.RetryHelper(3,i,o);return yield s.execute(()=>iw(this,void 0,void 0,function*(){return yield function(e,t,r,n){return iw(this,void 0,void 0,function*(){if(ar.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new as.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(ae.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new af(o.message.statusCode);throw ae.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=ac.promisify(al.pipeline),a=eA("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,ar.createWriteStream(t)),ae.debug("download complete"),l=!0,t;}finally{if(!l){ae.debug("download failed");try{yield at.rmRF(t);}catch(e){ae.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof af)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},im.extract7z=function(e,t,r){return iw(this,void 0,void 0,function*(){rh.ok(ad,"extract7z() not supported on current OS"),rh.ok(e,'parameter "file" is required'),t=yield eR(t);let n=process.cwd();if(process.chdir(t),r)try{let t=ae.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield ib.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=ao.join(iv,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield at.which("powershell",!0);yield ib.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},im.extractTar=function(e,t,r="xz"){return iw(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield eR(t),ae.debug("Checking tar --version");let i="";yield ib.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),ae.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],ae.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return ad&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield ib.exec("tar",n),t;});},im.extractXar=function(e,t,r=[]){return iw(this,void 0,void 0,function*(){let n;rh.ok(ah,"extractXar() not supported on current OS"),rh.ok(e,'parameter "file" is required'),t=yield eR(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),ae.isDebug()&&n.push("-v");let i=yield at.which("xar",!0);return yield ib.exec(`"${i}"`,Array.from(new Set(n))),t;});},im.extractZip=function(e,t){return iw(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield eR(t),ad?yield function(e,t){return iw(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield at.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;ae.debug("Using pwsh at path: "+i),yield ib.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield at.which("powershell",!0);ae.debug("Using powershell at path: "+t),yield ib.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return iw(this,void 0,void 0,function*(){let r=yield at.which("unzip",!0),n=[e];ae.isDebug()||n.unshift("-q"),n.unshift("-o"),yield ib.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},im.cacheDir=function(e,t,r,n){return iw(this,void 0,void 0,function*(){if(r=aa.clean(r)||r,n=n||ai.arch(),ae.debug(`Caching tool ${t} ${r} ${n}`),ae.debug("source dir: "+e),!ar.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eO(t,r,n);for(let t of ar.readdirSync(e)){let r=ao.join(e,t);yield at.cp(r,i,{recursive:!0});}return eS(t,r,n),i;});},im.cacheFile=function(e,t,r,n,i){return iw(this,void 0,void 0,function*(){if(n=aa.clean(n)||n,i=i||ai.arch(),ae.debug(`Caching tool ${r} ${n} ${i}`),ae.debug("source file: "+e),!ar.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eO(r,n,i),s=ao.join(o,t);return ae.debug("destination file "+s),yield at.cp(e,s),eS(r,n,i),o;});},im.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||ai.arch(),eI(t)||(t=eT(ex(e,r),t));let n="";if(t){t=aa.clean(t)||"";let i=ao.join(eP(),e,t,r);ae.debug("checking cache: "+i),ar.existsSync(i)&&ar.existsSync(`${i}.complete`)?(ae.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):ae.debug("not found");}return n;},im.findAllVersions=ex,im.getManifestFromRepo=function(e,t,r,n="master"){return iw(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new as.HttpClient("tool-cache"),a={};r&&(ae.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){ae.debug("Invalid json");}}return i;});},im.findFromManifest=function(e,t,r,n=ai.arch()){return iw(this,void 0,void 0,function*(){return yield an._findMatch(e,t,r,n);});},im.isExplicitVersion=eI,im.evaluateVersions=eT,rj=rk("9ne19"),rU=rk("ER74K"),nt=rk("4oHc1"),nU=rk("dOmbL"),ip=rk("ceI0e"),Object.defineProperty(iT={},"__esModule",{value:!0}),iT.retryAsPromised=iT.TimeoutError=void 0;class am extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}iT.TimeoutError=am,iT.retryAsPromised=e$,iT.default=e$,iP=rk("fcBgE"),rU=rk("ER74K"),(ru=iN||(iN={}))[ru.Tar=0]="Tar",ru[ru.TarGz=1]="TarGz",ru[ru.TarXz=2]="TarXz",ru[ru.Zip=3]="Zip",ru[ru.SevenZip=4]="SevenZip",rF=rk("9yJgU");const av=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||iz.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||iz.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||iz.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||iz.mkdirSync,t;},ag=(e,t,r)=>{let n=(0,iX.dirname)(e),i={...av(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return ag(e,i,ag(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ay=Object.assign(async(e,t,r)=>{let n=av(t);n.recursive=!1;let i=(0,iX.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ay(i,n).then(t=>ay(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:ag}),aE=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?aE(e,(0,iX.dirname)(t),t):void 0);},aw=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?aw(e,(0,iX.dirname)(t),t):void 0;}},a_=(e,t)=>{let r=av(t);if(r.recursive=!0,(0,iX.dirname)(e)===e)return r.mkdirSync(e,r);let n=aw(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return ag(e,r);throw t;}},ab=Object.assign(async(e,t)=>{let r={...av(t),recursive:!0};return(0,iX.dirname)(e)===e?await r.mkdirAsync(e,r):aE(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ay(e,r);throw t;}));},{sync:a_}),ax=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,aR=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,iX.resolve)(e),"win32"===ax){let{root:t}=(0,iX.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},aO=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),aS=+aO[0]>10||10==+aO[0]&&+aO[1]>=12,aI=aS?e=>av(e).mkdirSync===iz.mkdirSync:()=>!1,aT=Object.assign(aS?e=>av(e).mkdir===iz.mkdir:()=>!1,{sync:aI}),aP=(e,t)=>{e=aR(e);let r=av(t);return aI(r)?a_(e,r):ag(e,r);},aN=Object.assign(async(e,t)=>{e=aR(e);let r=av(t);return aT(r)?ab(e,r):ay(e,r);},{mkdirpSync:aP,mkdirpNative:ab,mkdirpNativeSync:a_,mkdirpManual:ay,mkdirpManualSync:ag,sync:aP,native:ab,nativeSync:a_,manual:ay,manualSync:ag,useNative:aT,useNativeSync:aI});nU=rk("dOmbL"),ip=rk("ceI0e"),ib=rk("jlr6Q"),rj=rk("9ne19"),rU=rk("ER74K"),nt=rk("4oHc1"),nU=rk("dOmbL"),ip=rk("ceI0e"),ib=rk("jlr6Q"),rU=rk("ER74K"),iA=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rN.URL(t),!0;}catch{return!1;}},i$=async e=>{if(!iA(e))return!1;let t=await ez(e,"HEAD");return!!t||!!(t=await ez(e,"GET"));},id=rk("4F3T1"),iC=rk("5tbf8"),iL=rk("cdjlt");const aA=/v?(\d\S*)/,a$={llvm:eQ(),clangtidy:eQ(),clangformat:eQ(),ninja:"1.12.1",cmake:"3.30.2",gcovr:"5.2",conan:"1.64.1",meson:"1.5.1",kcov:"42",task:"3.38.0",doxygen:eh()?"1.11.0-4":"1.11.0",gcc:eh()?"13.2.1-3":"13",powershell:"7.4.5"},aC={pip:"22.2.0",python:"3.7.9"},aL={gcc:{24:"13",22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{24:"8.0.0-1",22:"8.0.0-1",20:"7.0.0-2"},llvm:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{24:"6.0",22:"6.0",20:"6.0",18:"5.0"},meson:{24:"1.0.0",22:"1.0.0",20:"1.0.0",18:"0.61.4"},nala:{24:"",22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{24:"42-binary",22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"},doxygen:{24:"1.11.0",22:"1.11.0",20:"1.10.0",18:"1.10.0"}},ak=c(na)(tt,{promise:!0});rU=rk("ER74K"),Object.defineProperty(ik={},"__esModule",{value:!0}),ik.getUbuntuVersion=void 0,ik.getUbuntuVersion=ti;const aD=c(na)(to,{promise:!0}),aj=c(na)(tu,{promise:!0}),aU=c(na)(tp,{promise:!0}),aF=c(na)(tf,{promise:!0});rU=rk("ER74K"),ip=rk("ceI0e"),nU=rk("dOmbL");const aM=new Map([[24,["Sequoia","15"]],[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]),aG=c(na)(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rO).release()).split(".")[0];let[t,r]=aM.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>Number.parseInt(e,10));});rj=rk("9ne19"),rU=rk("ER74K"),nU=rk("dOmbL"),ip=rk("ceI0e"),id=rk("4F3T1"),iD=rk("3tcGr"),ib=rk("jlr6Q"),rU=rk("ER74K"),ij=iX.resolve(__dirname,"../../src/gcc");const aB={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};iD=rk("3tcGr"),iL=rk("cdjlt"),rU=rk("ER74K"),ip=rk("ceI0e"),ip=rk("ceI0e"),iU=iX.resolve(__dirname,"../../src/kcov"),rj=rk("9ne19"),rU=rk("ER74K"),nU=rk("dOmbL"),ip=rk("ceI0e"),nt=rk("4oHc1"),rF=rk("9yJgU"),rU=rk("ER74K");class aH extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aq extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aV=e=>void 0===globalThis.DOMException?new aq(e):new DOMException(e),aX=e=>{let t=void 0===e.reason?aV("This operation was aborted."):e.reason;return t instanceof Error?t:aV(t);};ip=rk("ceI0e"),rU=rk("ER74K"),rF=rk("9yJgU");const az=rP.env["ProgramFiles(x86)"],aW=[rP.env["ProgramFiles(x86)"],rP.env.ProgramFiles],aK=["Enterprise","Professional","Community","BuildTools"],aY=["2022","2019","2017"],aJ={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};iF=tU;const aQ=`${az}\\Microsoft Visual Studio\\Installer`;iM=tF,iG=function(e,t,r,n,i,o){if("win32"!=rP.platform){rF.info("This is not a Windows virtual environment, bye!");return;}rP.env.PATH+=iX.delimiter+aQ;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tF(o)}" ${a.join(" ")}`;rF.debug("vcvars command-line: "+l);let c=rg.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),f=c[2].split("\r\n"),d=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(d.length>0)throw Error("invalid parameters\r\n"+d.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(rF.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(rF.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),rF.exportVariable(t,r));}rF.endGroup(),rF.info("Configured Developer Command Prompt");},nU=rk("dOmbL");const aZ=12e5;(rp=iB||(iB={}))[rp.All=0]="All",rp[rp.ClangFormat=1]="ClangFormat",rp[rp.Core=2]="Core",rU=rk("ER74K"),ip=rk("ceI0e"),ih=rk("ekDr6");const a0=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),a1=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),a2=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),a4=new Map(),a3={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04","18.1.4":"-ubuntu-18.04","18.1.7":"-ubuntu-18.04","18.1.8":"-ubuntu-18.04"},a6="18.1.8";iH=iX.resolve(__dirname,"../../src/llvm");const a8=c(na)(tQ,{promise:!0}),a7=c(na)(t0,{promise:!0}),a5=c(na)(t1,{promise:!0});rj=rk("9ne19"),ip=rk("ceI0e"),rU=rk("ER74K"),nU=rk("dOmbL"),iq=iX.resolve(__dirname,"../../src/msvc"),ip=rk("ceI0e"),rU=rk("ER74K"),ip=rk("ceI0e"),ip=rk("ceI0e"),rU=rk("ER74K"),nU=rk("dOmbL"),ip=rk("ceI0e");let a9=!1;const le={nala:t7,cmake:eX,ninja:t$,python:eZ,vcpkg:ri,bazel:ew,conan:function(e,t,r){return ta("conan",e);},meson:function(e,t,r){return ta("meson",e);},gcovr:function(e,t,r){return ta("gcovr",e);},opencppcoverage:t5,llvm:tJ,gcc:tS,choco:ev,brew:eu,powershell:rt,ccache:function(e,t,r){switch(process.platform){case"win32":return eg("ccache",e);case"darwin":return ef("ccache",e);case"linux":if(eh())return e_("ccache",e);if(ed())return ey([{name:"ccache",version:e}]);if(em())return en([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return eg("sccache",e);case"linux":case"darwin":return ef("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tb,graphviz:ty,cppcheck:tv,clangtidy:function(e,t,r){return tZ(e,t,r);},clangformat:function(e,t,r){return tZ(e,t,r,iB.ClangFormat);},msvc:t6,vcvarsall:tM,kcov:tj,make:t3,task:function(e,t,r){return eG("task",e,rn,t,r);},sevenzip:eC},lt=Object.keys(le),lr=["compiler","architecture","timeout",...lt],ln={rcPath:T("~/.cpprc"),guard:"cpp"};rF=rk("9yJgU"),rU=rk("ER74K"),iL=rk("cdjlt"),rl(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rU.error)("main() panicked!"),(0,rU.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map