setup-cpp/dist/legacy/setup-cpp.js

40 lines
247 KiB
JavaScript

#!/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);});});}rI(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=rb.sync(e.command,{path:n[rA({env:n})],pathExt:t?ip.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=ip.resolve(o?e.options.cwd:"",r)),r;}function d(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 f(e,t){return iO&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rT(e,t,r),i=t8.spawn(n.command,n.args,n.options);return rN.hookChildProcess(i,n),i;}async function m(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r4(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r2.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await ot(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new or());});}),n.getBufferedValue();}function g(){var e;return((null===(e=process.getuid)||void 0===e?void 0:e.call(process))===0||!!process.env.CI)&&null!==c(rb).sync("sudo",{nothrow:!0});}function v(e,t=[],r=oh){return g()?rO.commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):rO.sync(e,t,r);}function E(e,t=[],r=oh){return g()?rO.command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rO)(e,t,r);}async function y(e){if(("linux"===c(rt).platform||"darwin"===c(rt).platform)&&g()&&void 0!==c(rt).env.SUDO_USER){let t=(0,id.statSync)(e).isDirectory();await E("chown",[...(t?["-R"]:[]),c(rt).env.SUDO_USER,e],oh);}}function w(e){return g()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,ip.join)("/Users/",process.env.SUDO_USER,e):(0,ip.join)("/home/",process.env.SUDO_USER,e):c(rx)("~/"+e);}function x(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 b(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]<o[3])){a.label=r[1];break;}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break;}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break;}o[2]&&a.ops.pop(),a.trys.pop();continue;}r=t.call(e,a);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,l]);};}var n,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this;}),s;}async function S(){try{await c(nc)({pkg:c(nO)});}catch(e){(0,rg.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e));}}function I(e){return null==e?[]:Array.isArray(e)?e:[e];}function O(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;}function R(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 T({env:e=c(ro).env,...t}={}){e={...e};let r=R({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ro).cwd(),path:n=c(ro).env[R()],execPath:i=c(ro).execPath}=e,o=r instanceof URL?c(rs).fileURLToPath(r):r,s=c(rn).resolve(o),a=[];for(;t!==s;)a.push(c(rn).join(s,"node_modules/.bin")),t=s,s=c(rn).resolve(s,"..");return a.push(c(rn).resolve(o,i,"..")),[...a,n].join(c(rn).delimiter);}(t),e;}function C(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function A(e){return C(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}function $(e,t,r){let n;let i=sm(e,t,r),o=si(e,t),s=so(e,t);sf(s,i.options),oW(i.options);try{n=c(ri).spawn(i.file,i.args,i.options);}catch(r){let e=new(c(ri).ChildProcess)(),t=Promise.reject(ok({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return se(e,t),e;}let a=st(n),l=oz(n,i.options,a),u=oK(n,i.options,l),p={isCanceled:!1};n.kill=oM.bind(null,n.kill.bind(n)),n.cancel=oV.bind(null,n,p);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await o5(n,i.options,u),f=sg(i.options,l),h=sg(i.options,c),m=sg(i.options,d);if(e||0!==t||null!==r){let l=ok({error:e,exitCode:t,signal:r,stdout:f,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:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},f=nT(d);return o3(n,i.options),n.all=o4(n,i.options),oJ(n),se(n,f),n;}function _(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return $(function(){if(void 0===e){let t=c(rb).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(rb).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function P(e,t,r=sb){let n=function(e,t=!1){let r=t?c(nC)(e):e;return c(nA)(r,'"',"\\");}(null!=t?t:"",r.shouldEscapeSpace);try{if(rm.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nR.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nR.exportVariable)(e,n);}catch(t){(0,rg.error)(t),await L(e,n,r);}else await L(e,n,r);}catch(t){(0,rg.error)(t),(0,nR.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function N(e){if(!function(e){if(sS.some(t=>t.test(e))){var t,r;let n=null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(ip.delimiter))&&void 0!==r?r:[];return n.includes(e);}return!1;}(e)){process.env.PATH=`${e}${ip.delimiter}${process.env.PATH}`;try{if(rm.GITHUB_ACTIONS)try{(0,nR.addPath)(e);}catch(t){(0,rg.error)(t),await D(e);}else await D(e);}catch(t){(0,rg.error)(t),(0,nR.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function L(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nR.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await _(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nR.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await k(),r.shouldAddOnlyIfNotDefined?((0,id.appendFileSync)(sI,`
if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi
`),(0,nR.info)(`if not defined ${e} then ${e}="${n}" was added to "${sI}`)):((0,id.appendFileSync)(sI,`
export ${e}="${n}"
`),(0,nR.info)(`${e}="${n}" was added to "${sI}`));return;}process.env[e]=n;}async function D(e){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nR.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await k(),(0,id.appendFileSync)(sI,`
export PATH="${e}:$PATH"
`),(0,nR.info)(`"${e}" was added to "${sI}"`);return;default:return;}}async function k(){if(sO)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,n$.pathExists)(sI)){let t=(0,id.readFileSync)(sI,"utf8");if(t.includes(e))return;}(0,id.appendFileSync)(sI,`
${e}
`),(0,nR.info)(`Added ${e} to ${sI}`);let t=`
# source .cpprc if SOURCE_CPPRC is not set to 0
if [[ "$SOURCE_CPPRC" != 0 && -f "${sI}" ]]; then source "${sI}"; fi
`;try{let e=w(".profile");(0,id.appendFileSync)(e,t),(0,nR.info)(`${t} was added to ${e}`);let r=w(".bashrc");(0,id.appendFileSync)(r,t),(0,nR.info)(`${t} was added to ${r}`);}catch(e){(0,rg.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sO=!0;}async function U(){if(await(0,n$.pathExists)(sI)){let e=(0,id.readFileSync)(sI,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,id.writeFileSync)(sI,t.join("\n")),await y(sI);}}function j(e,t,r){let n;let i=as(e,t,r),o=s6(e,t),s=s8(e,t);ai(s,i.options),sF(i.options);try{n=c(ri).spawn(i.file,i.args,i.options);}catch(r){let e=new(c(ri).ChildProcess)(),t=Promise.reject(sT({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return s1(e,t),e;}let a=s2(n),l=sj(n,i.options,a),u=sM(n,i.options,l),p={isCanceled:!1};n.kill=s_.bind(null,n.kill.bind(n)),n.cancel=sk.bind(null,n,p);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sJ(n,i.options,u),f=aa(i.options,l),h=aa(i.options,c),m=aa(i.options,d);if(e||0!==t||null!==r){let l=sT({error:e,exitCode:t,signal:r,stdout:f,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:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},f=nT(d);return sW(n,i.options),n.all=sK(n,i.options),sH(n),s1(n,f),n;}function F(e,t,r){let n;let i=as(e,t,r),o=s6(e,t),s=s8(e,t);ai(s,i.options);let a=sX(i.options);try{n=c(ri).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw sT({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=aa(i.options,n.stdout,n.error),u=aa(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=sT({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};}async function M(e,t=!1){var r;let n;let i=H()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rg.info)(`Installing ${t} ${null!=r?r:""} via ${i}`);process.env.DEBIAN_FRONTEND="noninteractive",(!aE||t)&&(q(i),aE=!0),ay||(await V(i),ay=!0);let o=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==o.length){for(let e of o)v("add-apt-repository",["-y",e]);q(i);}let s=await Promise.all(e.map(e=>B(e.name,e.version)));try{v(i,["install","--fix-broken","-y",...s]);}catch(e){if("stderr"in e){let t=e.stderr;aw.some(e=>t.includes(e))&&((0,rg.warning)(`Failed to install packages ${s}. Retrying...`),v(i,["install","--fix-broken","-y",...s]));}else throw e;}return{binDir:"/usr/bin/"};}async function G(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await j("apt-cache",["search","--names-only",`^${(0,n_.default)(e)}-${(0,n_.default)(t)}$`]);if(""!==r.trim())return nU.NameDashVersion;try{let{stdout:r}=await j("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return nU.NameEqualsVersion;}catch{}}try{let{stdout:t}=await j("apt-cache",["show",e]);if(""!==t.trim())return nU.Name;}catch{}return nU.None;}async function B(e,t){let r=await G(e,t);switch(r){case nU.NameDashVersion:return`${e}-${t}`;case nU.NameEqualsVersion:return`${e}=${t}`;case nU.Name:return e;case nU.None:default:throw Error(`Could not find package ${e} ${null!=t?t:""}`);}}function H(){return null!==c(nP).sync("nala",{nothrow:!0});}function q(e){v(e,"nala"!==e?["update","-y"]:["update"]);}async function V(e){v(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[z(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),z(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(P("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),P("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function X(){v("gpg",["-k"]);}async function z(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,n$.pathExists)(n))||(X(),await Promise.all(e.map(async e=>{await E("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await E("chmod",["644",n]);}))),n;}catch(e){(0,rg.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function W(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,n$.pathExists)(r))||(X(),await M([{name:"curl"},{name:"ca-certificates"}],void 0),await j("curl",["-s",t,"-o","/tmp/"+e]),v("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),v("chmod",["644",r])),r;}async function K(e,t){return rm.GITHUB_ACTIONS?E("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(await k(),av(sI,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi
`));}async function Y(e){try{let{stdout:t}=await j("dpkg",["-l",e]),r=t.split("\n");return r.some(e=>e.startsWith("ii"));}catch{return!1;}}async function Q(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(nP).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nj.dirname)(i)};let o=c(ip).join((0,iu.tmpdir)(),"setup-cpp","brew");await(0,nF.mkdirP)(o),F("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,ip.join)(o,"install.sh");if("linux"===process.platform){let e=(0,id.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","");}return F("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=J(),await N(t),{binDir:t};}function J(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function Z(e,t,r=[]){(0,nR.info)(`Installing ${e} ${null!=t?t:""} via brew`),ax&&null!==c(nP).sync("brew",{nothrow:!0})||(await Q("","",process.arch),ax=!0);let n=J();return F((0,nj.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function ee(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=c(nP).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,nj.dirname)(o)};let s="powershell.exe",a=c(nP).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),F(s,["-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 l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await N(l);let u=c(nP).sync("choco",{nothrow:!0});if(r=null!==u?(0,nj.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,n$.pathExists)(r))return{binDir:r};}async function et(e,t,r=[]){var n;(0,rg.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),ab&&null!==c(nP).sync("choco",{nothrow:!0})||(await ee("","",process.arch),ab=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)F("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{F("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rg.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await N(s),{binDir:s};}function er(){return"linux"===process.platform&&(void 0===o&&(o=null!==c(nP).sync("pacman",{nothrow:!0})),o);}function en(){return"linux"===process.platform&&(void 0===s&&(s=null!==c(nP).sync("dnf",{nothrow:!0})),s);}async function ei(e){for(let{name:t,version:r}of e)(0,rg.info)(`Installing ${t} ${null!=r?r:""} via dnf`);let t=await Promise.all(e.map(e=>eo(e.name,e.version)));return v("dnf",["-y","install",...t]),{binDir:"/usr/bin/"};}async function eo(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await j("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await j("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rg.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}function es(){return"linux"===process.platform&&(void 0===a&&(a=null!==c(nP).sync("apt-get",{nothrow:!0})),a);}async function ea(e,t,r){switch(process.platform){case"win32":return et("bazelisk",e);case"darwin":return Z("bazelisk",e);case"linux":if(er())throw Error("installing bazel on Arch linux is not supported yet");if(en())return await ei([{name:"dnf-plugins-core"}]),v("dnf",["copr","enable","vbatts/bazel"]),ei([{name:"bazel4"}]);if(es()){let t=await W("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return v("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`]),M([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function el(e,t,r){(0,rg.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===c(nP).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);aS||"yay"===r||(v(n,["-Sy","--noconfirm"]),aS=!0),aI||"yay"===r||(v(n,["-S","--noconfirm","base-devel"]),aI=!0);let i=e=>"yay"===r?F(r,["-S","--noconfirm",e]):v(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await ec(n,e);if(r.includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rg.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ec(e,t){let r=[];try{let{stdout:n}=await j(e,["-Si",t]);for(let e of n.matchAll(aO))r.push(e[1]);}catch(e){(0,rg.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function eu(e,t){let r=[];t=t||a$.arch();let n=a_.join(eg(),e);if(aC.existsSync(n)){let e=aC.readdirSync(n);for(let i of e)if(eh(i)){let e=a_.join(n,i,t||"");aC.existsSync(e)&&aC.existsSync(`${e}.complete`)&&r.push(i);}}return r;}function ep(e){return nV(this,void 0,void 0,function*(){return e||(e=a_.join(ev(),ak.default())),yield aT.mkdirP(e),e;});}function ed(e,t,r){return nV(this,void 0,void 0,function*(){let n=a_.join(eg(),e,aN.clean(t)||t,r||"");aR.debug("destination "+n);let i=`${n}.complete`;return yield aT.rmRF(n),yield aT.rmRF(i),yield aT.mkdirP(n),n;});}function ef(e,t,r){let n=a_.join(eg(),e,aN.clean(t)||t,r||""),i=`${n}.complete`;aC.writeFileSync(i,""),aR.debug("finished caching tool");}function eh(e){let t=aN.clean(e)||"";aR.debug("isExplicit: "+t);let r=null!=aN.valid(t);return aR.debug("explicit? "+r),r;}function em(e,t){let r="";aR.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aN.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=aN.satisfies(i,t);if(o){r=i;break;}}return r?aR.debug("matched: "+r):aR.debug("match not found"),r;}function eg(){let e=process.env.RUNNER_TOOL_CACHE||"";return t3.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ev(){let e=process.env.RUNNER_TEMP||"";return t3.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eE(e,t){let r=rp[e];return void 0!==r?r:t;}function ey(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");t="number"==typeof t?{max:t}:t;let r={$current:"$current"in 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 aG(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<r.max;if(!l||!(l=0===r.match.length||r.match.some(function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0;}catch(r){return!!e(t);}return e===t.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()));}(e,a);})))return n(a);var c=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),c?(r.report&&r.report(`Delaying retry of ${r.name} by ${c}`,r),o=setTimeout(function(){ey(e,r).then(t).catch(n);},c)):ey(e,r).then(t).catch(n);});});}async function ew(e,t,r,n,i){var o,s;(0,rg.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(o=process.env.RUNNER_TEMP)&&void 0!==o?o:(0,iu.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACHE)&&void 0!==s?s:(0,nj.join)((0,iu.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:a,binRelativeDir:l,binFileName:u,extractedFolderName:p,extractFunction:d}=await r(t,process.platform,i);if(rm.GITHUB_ACTIONS)try{let r=(0,nM.find)(e,t);if(r){let n=(0,nj.join)(r,p),i=(0,nj.join)(n,l);if(await(0,n$.pathExists)((0,nj.join)(i,u)))return(0,rg.info)(`${e} ${t} was found in the cache at ${i}.`),await N(i),{installDir:n,binDir:i};}}catch{}let f=(0,nj.join)(n,p),h=(0,nj.join)(f,l),m=(0,nj.join)(h,u);if((await Promise.all([(0,n$.pathExists)(h),(0,n$.pathExists)(m)])).includes(!1))try{(0,rg.info)(`Download ${e} ${t}`);let r=await c(n1)(()=>(0,nM.downloadTool)(a),{name:a,max:4,backoffBase:2e3,report:e=>(0,rg.info)(e)});aB||((0,rg.info)("Installing extraction dependencies"),"linux"===process.platform&&(er()?await Promise.all([el("unzip"),el("tar"),el("xz")]):en()?await ei([{name:"unzip"},{name:"tar"},{name:"xz"}]):es()&&(await M([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),aB=!0),(0,rg.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${a}: ${r}`);}return(0,rg.info)(`Add ${h} to PATH`),await N(h),rm.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nM.cacheDir)(n,e,t)),{installDir:f,binDir:h};}function ex(e,t,r){switch(process.platform){case"win32":return et("7zip",e);case"darwin":return Z("p7zip",e);case"linux":if(er())return el("p7zip",e);if(en())return ei([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(es())return M([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,t){return await j(await eS(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await y(t),t;}async function eS(){return void 0===n&&(null===c(nP).sync("7z",{nothrow:!0})&&(await ex("","",process.arch)),n="7z"),n;}function eI(e,t){return eb(e,t);}function eO(e,t){return eb(e,t);}async function eR(e,t,r=["--strip-components=0"]){try{await(0,nF.mkdirP)(t);}catch{}try{await j("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rg.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return y(t),t;}function eT(e,t,r){var n;let i=null!==(n=c(n0)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=c(nZ)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nj.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eO,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nZ)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nj.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nM.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=c(nZ)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nj.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nM.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eC(e,t,r){return ew("cmake",e,eT,t,r);}function eA(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:n3.call(e,0):[];}function e$(e,t){return e===t||e!=e&&t!=t;}function e_(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eP(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eP(e.fn,e_(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=e_({isEqual:void 0===r?e$:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)n2[r]||(t[r]=e[r]);return t;}(t)),d=new n4(p),f=d.keys,h=d.values,m=d.canTransformKey,g=d.shouldCloneArguments,v=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=g?eA(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=g?t:eA(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),v&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function eN(e,t){return new Promise(r=>{try{let n=(0,ig.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 eL(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(n5)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eD(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await n8(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 eL(e,r)){let e=await n(t,o);if(null!==e){if(await n8(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 ek(e,t=aH){try{var r,n;let i=await(0,nz.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",s=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=c(n0)(s))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eU(e,t,r=aH){let n=await ek(e,r);return void 0!==n&&""!==t&&-1!==c(n5)(n,t);}function ej(){switch(process.platform){case"win32":default:return"16.0.6";case"linux":return"16.0.4-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eF(e,t,r){let n=await eB(e,t,r);c(t3)(void 0!==n.bin);let i=n.bin,o=await eX(i);if(void 0===o)throw Error("pip was not installed correctly");return await eM(i),await eG(i),n;}async function eM(e){try{(await e6(e))||(await e4(e,"pipx",void 0,{upgrade:!0,usePipx:!1})),await j(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e4(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rg.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eG(e){try{await e4(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e4(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rg.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eB(e,t,r){let n;let i=await eq(t);if(void 0!==i){let e=(0,nj.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rm.GITHUB_ACTIONS)try{(0,rg.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rh("dDAlR");await o(e,t,r),i=await eq(t);let s=(0,nj.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rg.warning)(e.toString());}void 0===n&&(n=await eH(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eq(t),n.bin=i),n;}async function eH(e,t){let r;switch(process.platform){case"win32":{e?await et("python3",t,["--params=/InstallDir:"+e]):await et("python3",t);let n=await eq(e),i=(0,nj.dirname)(n);await N(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await Z("python3",t);let e=await j("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nj.join)(e.stdout,"libexec","bin");await N(n);break;}case"linux":if(er())r=await el("python",t);else if(en())r=await ei([{name:"python3",version:t}]);else if(es())r=await M([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eq(e){for(let t of["python3","python"]){let r=await eV(t,e);if(void 0!==r)return r;}}async function eV(e,t){try{var r;if(void 0!==t){let r=(0,nj.join)(t,(0,nj.addExeExt)(e));if((await(0,n$.pathExists)(r))&&(await eU(r,aV.python)))return r;}let n=null!==(r=await c(nP)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[];for(let e of n)if(await eU(e,aV.python))return e;}catch{}}async function eX(e){let t=await ez();return void 0===t?((0,rg.info)("pip was not found. Installing pip"),await eK(e),ez()):t;}async function ez(){for(let e of["pip3","pip"]){let t=await eW(e);if(void 0!==t)return t;}}async function eW(e){try{var t;let r=null!==(t=await c(nP)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[];for(let e of r)if(null!==e&&(await eU(e,aV.pip)))return e;}catch{}}async function eK(e){let t=await eY(e);t||(await e7("pip"),await eY(e));}async function eY(e){try{return await j(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(n){var t,r;(0,rg.info)(null==n?void 0:null===(t=n.toString)||void 0===t?void 0:t.call(n));try{return await j(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rg.info)(null==e?void 0:null===(r=e.toString)||void 0===r?void 0:r.call(e));}}return!1;}async function eQ(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nz.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nj.join)(r,"Scripts"),(0,nj.join)(r,"Scripts","bin"),(0,nj.join)(r,"bin")),[...new Set(t)];}function eJ(e,t,r=null){return eZ(t)&&"linux"===process.platform&&null!==r&&e in aX?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aX[e]):eZ(t)&&e in aq?aq[e]:"true"===t?"":null!=t?t:"";}function eZ(e){return"true"===e||void 0===e;}async function e0(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{t8.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){let e=t[1];if("Ubuntu"!==e)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 e1(){try{if(!es())return null;{try{null===c(nP).sync("lsb_release",{nothrow:!0})&&(await M([{name:"lsb-release"}]));}catch{return e2();}let e=await(0,n7.getUbuntuVersion)();if(0===e.length)return e2();return e;}}catch(e){return(0,rg.warning)(e.toString()),null;}}function e2(){let e=c(iu).version(),t=e.split("."),r=parseInt(t[0].replace("#",""),10),n=parseInt(t[1].replace("~",""),10),i=parseInt(t[2].split("-")[0],10);return[r,n,i];}async function e3(e,t,r={}){return e4(await aK(),e,t,r);}async function e4(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await e6(e)),c=l?"pipx":"pip",u=await e5(e,t);if(u)try{(0,nR.info)(`Installing ${t} ${null!=r?r:""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=!l&&o?["--user"]:[];F(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...i,n],{stdio:"inherit"});}catch(e){if((0,nR.info)(`Failed to install ${t} via ${c}: ${e}.`),(await e7(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await e7(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let p=await az(e),d=await e9(p,t);return await N(d),{binDir:d};}async function e6(e){return 0===(await j(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function e8(){let e=(await eF(eJ("python",void 0,await aW()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function e5(e,t){let r=await j(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1});return 0===r.exitCode;}async function e9(e,t){let r=await Promise.all(e.map(e=>(0,n$.pathExists)((0,nj.join)(e,(0,nj.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t;}let i=c(nP).sync((0,nj.addExeExt)(t),{nothrow:!0});return null!==i?(0,nj.dirname)(i):e[e.length-1];}function e7(e){if("linux"===process.platform){if((0,nR.info)(`Installing ${e} via the system package manager`),er())return el("python-"+e);if(en())return ei([{name:"python3-"+e}]);if(es())return M([{name:"python3-"+e}]);}return null;}async function te(e,t,r){switch(process.platform){case"win32":{await et("cppcheck",e);let t=await tt();return{binDir:t};}case"darwin":return Z("cppcheck",e);case"linux":if(er())return el("cppcheck",e);if(en())return ei([{name:"ccache",version:e}]);if(es())return M([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tt(){let e="C:/Program Files/Cppcheck";return await N(e),e;}async function tr(e,t,r){switch(process.platform){case"win32":return await et("graphviz",e),tn();case"darwin":return Z("graphviz",e);case"linux":if(er())return el("graphviz",e);if(en())return ei([{name:"graphviz",version:e}]);if(es())return M([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tn(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await N(e),{binDir:e};}throw Error("Unsupported platform");}function ti(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nj.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nM.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nj.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eO,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function to(e,t,r){switch(process.platform){case"win32":{await c(n1)(()=>et("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rg.info)(e)});let t=await ts();return await tr(eJ("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await Z("doxygen",void 0);return await tr(eJ("graphviz",void 0),"",r),e;}case"linux":{let n;if(""===e||er()||en()){if(er())n=await el("doxygen",e);else if(en())return ei([{name:"doxygen",version:e}]);else if(es())n=await M([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(es())try{n=await ew("doxygen",e,ti,t,r),await M([{name:"libclang-cpp9"}]);}catch(e){(0,rg.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await M([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tr(eJ("graphviz",void 0,await aW()),"",r),n;}default:throw Error("Unsupported platform");}}async function ts(){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,n$.pathExists)((0,nj.join)(e,"doxygen.exe")))return await N(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function ta(){if("darwin"===process.platform)try{let e=await(0,nz.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await P("SDKROOT",t.trim()):(0,rg.error)("SDKROOT not set");}catch(e){(0,rg.error)(e);}}function tl(e,t,r){if("win32"===t){let t=aY[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nj.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eb,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 tc(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await et("gcc-arm-embedded",e));try{n=await ew("g++",e,tl,t,r);}catch(t){(0,rg.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await tp(e,r);}break;case"darwin":n=await Z("gcc",e);break;case"linux":"x64"===r?er()?n=await el("gcc",e):en()?n=await ei([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):es()&&(n=await M([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rg.info)(`Install g++-multilib because gcc for ${r} was requested`),er()?await el("gcc-multilib",e):es()&&(await M([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return await td(e,n.binDir),n;}async function tu(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tc(e,t,r);case"linux":er()?n=await el("mingw-w64-gcc",e):en()?n=await ei([{name:"mingw64-gcc",version:e}]):es()&&(n=await M([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tp(e,t){var r,n;let i;if(await et("mingw",e),"x64"===t&&(await(0,n$.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await N(i)):"ia32"===t&&(await(0,n$.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await N(i)):(await(0,n$.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function td(e,t){let r=[];if("win32"===process.platform)r.push(P("CC",(0,nj.addExeExt)(`${t}/gcc`)),P("CXX",(0,nj.addExeExt)(`${t}/g++`)));else{var n;let i=c(ie)(null!==(n=c(n0)(e))&&void 0!==n?n:e);i>=5?(r.push(P("CC",`${t}/gcc-${i}`),P("CXX",`${t}/g++-${i}`)),es()&&r.push(K("cc",`${t}/gcc-${i}`),K("cxx",`${t}/g++-${i}`),K("gcc",`${t}/gcc-${i}`),K("g++",`${t}/g++-${i}`))):(r.push(P("CC",`${t}/gcc-${e}`),P("CXX",`${t}/g++-${e}`)),es()&&r.push(K("cc",`${t}/gcc-${e}`),K("cxx",`${t}/g++-${e}`),K("gcc",`${t}/gcc-${e}`),K("g++",`${t}/g++-${e}`)));}r.push(ta()),rm.GITHUB_ACTIONS&&(await tf()),await Promise.all(r);}async function tf(){let e=(0,nj.join)(it,"gcc_matcher.json");if(!(await(0,n$.pathExists)(e)))return(0,rg.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rg.info)("::add-matcher::"+e);}function th(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,nj.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eO,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tm(e,t,r){return ew("ninja",e,th,t,r);}function tg(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nj.addExeExt)("kcov"),extractFunction:eR};}function tv(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nj.addExeExt)("kcov"),extractFunction:tE};}async function tE(e,t){let r=await eR(e,t,["--strip-components=1"]),n=await ty();"linux"===process.platform&&(er()?await Promise.all([el("libdwarf"),el("libcurl-openssl")]):en()?await ei([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):es()&&(await M([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(nP).sync("patch",{nothrow:!0})){let e=(0,nj.join)(ir,"gcc13.patch");await j("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rg.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nj.join)(r,"build");return await j(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await j(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function ty(){let e=c(nP).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eC(eJ("cmake",void 0,await aW()),(0,nj.join)(w(""),"cmake"),"");e=(0,nj.join)(t,"cmake");}let t=c(nP).sync("ninja",{nothrow:!0});return null===t&&(await tm(eJ("ninja",void 0,await aW()),(0,nj.join)(w(""),"ninja"),"")),e;}async function tw(e,t,r){var n;let i;if("linux"!==process.platform){(0,rg.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=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await ew("kcov",s,tg,t,r),er()?await el("binutils"):en()?await ei([{name:"binutils"}]):es()&&(await M([{name:"libbinutils"}]))):i=await ew("kcov",s,tv,t,r),i;}function tx(e){if(Object.values(a1).includes(e));else if(e in a1)return a1[e];return e;}function tb(e){let t;let r=tx(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return t8.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nR.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&id.existsSync(n))return nR.info("Found with vswhere: "+n),n;nR.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(a1).includes(e));else for(let[t,r]of Object.entries(a1))if(r===e)return t;return e;}(e)]:a0;for(let e of aJ)for(let t of i)for(let r of aZ)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nR.info("Trying standard location: "+n),id.existsSync(n))return nR.info("Found standard location: "+n),n;if(nR.info("Not found in standard locations"),n=`${aQ}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,id.existsSync(n))return nR.info("Found VS 2015: "+n),n;throw nR.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tS(e,t,r,n,i,o,s){void 0!==t&&(await(0,n$.pathExists)(t))&&((0,rg.info)(`Adding ${t} to PATH`),await P("VCTargetsPath",t)),is(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 tI(e,t,r,n,i,o,s,a=a5){(0,nR.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(a8(e)),e.addEventListener("abort",()=>{l(a8(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new a3();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=null!=o?o:`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}),l=a.finally(()=>{l.clear();});return l.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},l;}(tO(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rg.error)(t),s.push(`${e} failed to install`);}return(0,nR.endGroup)(),l;}async function tO(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await tS(eJ(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=lp[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nj.join)(o,i?"llvm":e);a=await s(eJ(e,t,r),l,n);}return s.push(tY(e,a)),i;}async function tR(e,t=ia.All){let r="/usr/lib/llvm-"+e;await M([{name:"curl"}]),await j("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tT("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await M(n),await le("/tmp/llvm-setup-cpp.sh","755"),await E("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(t===ia.All?["all"]:[])],{stdio:"inherit",shell:!0,timeout:a5}),await N(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tT(e,t,r,n){var i,o,s,a,l;let c=await a9(e,"utf-8");return c=(i=c,c=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),o=n,s=c,a=r,c=o===ia.ClangFormat?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tC(c),c=H()?l.replace(/apt-get/g,"nala"):l,await a7(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tC(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -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 Y(r))&&((0,ru.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tA(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function t$(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function t_(e){let t;if(lr.has(e))return null;let r="LLVM-",n=c(nZ)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nZ)(e,"9.0.1"),o=!1;return i&&(t=t$(e,r,n),(await n8(t))||(o=!0)),(o||!i)&&(t=tA(e,r,n)),t;}function tP(e,t){switch(e){case"darwin":return function(e){if(ln.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(nZ)(e,"9.0.1")?t$(e,r,n):tA(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=li.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!lt.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eL(lt,e)[0];}else""!==n&&n in lo?t=lo[n]:(t=lo[ls],(0,rg.warning)(`Falling back to LLVM version ${ls} ${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(nZ)(n,"9.0.1"))?t$(n,o,r):tA(n,o,r);}(t);case"win32":return t_(t);default:return null;}}async function tN(e,t,r){let[n,i]=await eD(lt,t,e,tP);return(0,rg.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nj.addExeExt)("clang"),extractFunction:"win32"===t?eI:(e,t)=>eR(e,t,["--strip-components=1"])};}async function tL(e,t,r){var n;let i=await la(e,t,r);return await tF(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function tD(e,t,r){let[n,i,o]=await Promise.all([tk(e,t,r),lc(r),tM()]);return n;}async function tk(e,t,r,n=ia.All){let i=function(e){if(null===c(n9)(e))try{let t=c(n0)(e);if(null!==t)return(0,rg.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e),o=parseInt(i.split(".")[0],10);try{if(es())return await tR(o,n);}catch(e){(0,rg.info)("Failed to install llvm via system package manager "+e);}let s=await ew("llvm",e,tN,t,r);return await ll(o),s;}async function tU(e){es()&&(e<=10?await M([{name:"libtinfo5"}]):await M([{name:"libtinfo-dev"}]));}async function tj(e){"linux"===process.platform&&(await tc(eJ("gcc",void 0,await aW()),"",e));}async function tF(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[P("LLVM_PATH",e),P("LD_LIBRARY_PATH",`${e}/lib${ip.delimiter}${n}`),P("DYLD_LIBRARY_PATH",`${e}/lib${ip.delimiter}${i}`),P("LDFLAGS",`-L"${e}/lib"`),P("CPPFLAGS",`-I"${e}/include"`),P("CC",(0,nj.addExeExt)(`${e}/bin/clang`)),P("CXX",(0,nj.addExeExt)(`${e}/bin/clang++`)),P("LIBRARY_PATH",`${e}/lib`),ta()];es()&&o.push(K("cc",`${e}/bin/clang`),K("cxx",`${e}/bin/clang++`),K("clang",`${e}/bin/clang`),K("clang++",`${e}/bin/clang++`),K("lld",`${e}/bin/lld`),K("ld.lld",`${e}/bin/ld.lld`),K("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function tM(){if(rm.GITHUB_ACTIONS){let e=(0,nj.join)(il,"llvm_matcher.json");if(!(await(0,n$.pathExists)(e)))return(0,rg.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rg.info)("::add-matcher::"+e);}}async function tG(e,t,r){switch(process.platform){case"win32":return et("make",e);case"darwin":return await Z("make",e),await N("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(er())return el("make",e);if(en())return ei([{name:"make",version:e}]);if(es())return M([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tB(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=ii(e);(0,rg.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=io(l);c=!0,(0,rg.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await et("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 et("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 et("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 et("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rg.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rg.error)(e);}await tS(l,a,r,s,n,i,o),rm.GITHUB_ACTIONS&&(await tH());}async function tH(){let e=(0,nj.join)(ic,"msvc_matcher.json");if(!(await(0,n$.pathExists)(e)))return(0,rg.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rg.info)("::add-matcher::"+e);}async function tq(e,t,r){if(!es())return;if("string"==typeof i)return{binDir:i};let n=c(nP).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nj.dirname)(n)};let o=await W("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");v("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await M([{name:"nala"}],!0):await M([{name:"nala-legacy"}],!0);}catch(e){await M([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tV(e,t,r){if("win32"!==process.platform)return;await et("opencppcoverage",e);let n=await tX();return{binDir:n};}async function tX(){let e="C:/Program Files/OpenCppCoverage";return await N(e),e;}async function tz(e,t,r){switch(process.platform){case"win32":{await et("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await N(t),{binDir:t};}case"darwin":return Z("powershell",e,["--cask"]);case"linux":if(er())return el("powershell-bin",e,"yay");if(en())return ei([{name:"curl"}]),v("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ei([{name:"powershell",version:e}]);if(es()){await M([{name:"curl"}]);let t=await aW(),r=`${t[0]}.0${t[1]}`;return v("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),v("dpkg",["-i","packages-microsoft-prod.deb"]),M([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function tW(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;return{binRelativeDir:"",binFileName:(0,nj.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eO:eR,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function tK(e,t,r){return lu&&null!==c(nP).sync("vcpkg",{nothrow:!0})?{binDir:(0,nj.dirname)(c(nP).sync("vcpkg"))}:("linux"===process.platform&&(er()?await Promise.all([el("curl"),el("zip"),el("unzip"),el("tar"),el("git"),el("pkg-config")]):en()?await ei([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):es()&&(await M([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,n$.pathExists)((0,nj.join)(t,(0,nj.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rg.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):F("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nj.dirname)(t),stdio:"inherit"}),F((0,nj.addShExt)((0,nj.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await y(t),await N(t),lu=!0,{binDir:t});}function tY(e,t){let r=`${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 tQ(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(n9)(e)||(0,rg.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nR.startGroup)(`Installing ${a} ${null!=l?l:""}`),a){case"llvm":case"clang":case"clang++":{let e=await tL(eJ("llvm",l,t),(0,ip.join)(r,"llvm"),n);await P("GCOV","llvm-cov gcov"),i.push(tY("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?eJ("mingw",l,t):eJ("gcc",l,t),s="mingw"===a?await tu(e,(0,ip.join)(r,"gcc"),n):await tc(e,(0,ip.join)(r,"gcc"),n);o&&(await P("CPPFLAGS","")),await function(e){let t=c(n9)(e),r=null!==t?c(ie)(t):e;return P("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(tY("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tB(eJ("msvc",l,t),(0,ip.join)(r,"msvc"),n);o&&(await P("CPPFLAGS","")),i.push(tY("msvc",e));break;}case"appleclang":case"applellvm":(0,nR.notice)("Assuming apple-clang is already installed"),await Promise.all([P("CC","clang"),P("CXX","clang++")]),i.push(tY("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rg.error)(t),s.push("Failed to install the "+e);}(0,nR.endGroup)();}async function tJ(e){var t,r,n;let i,o,s=Promise.resolve();rm.GITHUB_ACTIONS||(s=S(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let a=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=I(t.string),t.boolean=I(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=I(t.alias[r]);l<n.length;l++)(t.alias[n[l]]=n.concat(r)).splice(l,1);for(l=t.boolean.length;l-->0;)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;l<n.length;l++)t[o].push(n[l]);}let m=f?Object.keys(t.alias):[];for(l=0;p>l;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c<i.length&&45===i.charCodeAt(c);c++);if(0===c)a._.push(i);else if("no-"===i.substring(c,c+3)){if(o=i.substring(c+3),f&&!~m.indexOf(o))return t.unknown(i);a[o]=!1;}else{for(u=c+1;u<i.length&&61!==i.charCodeAt(u);u++);for(o=i.substring(c,u),s=i.substring(++u)||l+1===p||45===(""+e[l+1]).charCodeAt(0)||e[++l],n=2===c?[o]:o,u=0;u<n.length;u++){if(o=n[u],f&&!~m.indexOf(o))return t.unknown("-".repeat(c)+o);!function(e,t,r,n){var i,o=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s];}(a,o,u+1<n.length||s,t);}}}if(h)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a;}(e,{string:[...lf,"timeout"],default:Object.fromEntries(lf.map(e=>[e,function(e){let t=(0,nR.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});a.help&&((0,rg.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 <compiler> 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 <version> 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:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=a.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:w(""),p=[],d=[],f=ry.create({autoloadLocales:!0});ry.addLocale(c(rw)),rv.addLocale(c(rE));let h=await aW();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eZ(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(a,["llvm","clangtidy","clangformat"]))return(0,rg.error)("The same version must be used for llvm, clangformat and clangtidy"),1;er()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,rg.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await el("python-pygments"));let m=!1,g=!1;for(let e of ld){if(rm.isCI&&0!==d.length){g=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await tI(e,t,h,l,u,p,d,6e4*parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rg.info)("took "+(f.format(i,o)||"0 seconds")));}if(!g){let e=a.compiler;if(void 0!==e){let t=Date.now();await tQ(e,h,u,l,p,m,d);let r=Date.now();(0,rg.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await U(),0===p.length&&0===d.length)return(0,rg.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(p.forEach(e=>(0,rg.success)(e)),d.forEach(e=>(0,rg.error)(e)),(0,rg.info)("setup-cpp finished"),!rm.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rg.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rg.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await s,0===d.length?0:1;}var tZ,t0,t1,t2,t3,t4,t6,t8,t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rg,rv,rE,ry,rw,rx,rb,rS,rI,rO,rR,rT,rC,rA,r$,r_,rP,rN,rL,rD,rk,rU,rj,rF,rM,rG,rB,rH,rq,rV,rX,rz,rW,rK,rY,rQ,rJ,rZ,r0,r1,r2,r3,r4,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,ng,nv,nE,ny,nw,nx,nb,nS,nI,nO,nR,nT,nC,nA,n$,n_,nP,nN,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nq,nV,nX,nz,nW,nK,nY,nQ,nJ,nZ,n0,n1,n2,n3,n4,n6,n8,n5,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu=require("os"),ip=require("path"),id=require("fs"),ih=require("crypto"),im=require("http"),ig=require("https");require("net"),t1=require("tls"),t2=require("events"),t3=require("assert"),t4=require("util"),t6=require("fs"),t8=require("child_process"),t5=require("string_decoder"),t9=require("timers"),t7=require("buffer"),re=require("stream"),rt=require("process"),rr=require("buffer"),rn=require("path"),ri=require("child_process"),ro=require("process"),rs=require("url"),ra=require("os"),rl=require("util"),rc=require("url"),ru=require("console"),rp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},rd={},rf={},null==(rh=rp.parcelRequire810d)&&((rh=function(e){if(e in rd)return rd[e].exports;if(e in rf){var t=rf[e];delete rf[e];var r={id:e,exports:{}};return rd[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){rf[e]=t;},rp.parcelRequire810d=rh),rh.register("cLprm",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=rh("iQYeD");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],o=r.every(function(e){return n(e);});if(e.exports[t.constant]=o,o)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));}),rh.register("iQYeD",function(e,t){e.exports=JSON.parse('[{"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":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"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":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"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":"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":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"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":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]}},{"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"}]');}),rh.register("hHq4F",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=rh("2heqc"),n=rh("cLprm");}),rh.register("2heqc",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;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 g(e){s.issue("group",e);}function v(){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=rh("lxvYw"),a=rh("izMKk"),l=rh("3GPt4");let E=i(iu),y=i(ip);c=rh("cxUw3"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n)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){let t=process.env.GITHUB_PATH||"";t?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.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){let r=process.env.GITHUB_OUTPUT||"";if(r)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.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+E.EOL);},e.exports.startGroup=g,e.exports.endGroup=v,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;g(e);try{r=yield t();}finally{v();}return r;});},e.exports.saveState=function(e,t){let r=process.env.GITHUB_STATE||"";if(r)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=rh("a9gnA"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rh("a9gnA"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rh("3zXsD"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rh.register("lxvYw",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(iu);o=rh("3GPt4"),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")));}}}),rh.register("3GPt4",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}:{};};}),rh.register("izMKk",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(id),l=i(iu);o=rh("21Qsr"),s=rh("3GPt4"),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}`;};}),rh.register("21Qsr",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rh("lr0KB"),n=rh("671Sw"),i=function(e,t,i){e=e||{};let o=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);};}),rh.register("lr0KB",function(e,t){function r(){return i>n.length-16&&(c(ih).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rh.register("671Sw",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rh("bfNI0");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;};}),rh.register("bfNI0",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rh("k4edj"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rh.register("k4edj",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;}),rh.register("cxUw3",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=rh("aPbbM"),i=rh("5UVtg"),o=rh("2heqc");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=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
Error Code : ${e.statusCode}
Error Message: ${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("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;}),rh.register("aPbbM",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),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.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(im),d=i(ig),f=i(rh("dG8Uc")),h=i(rh("j6C2A"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[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||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],g=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{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());});}));});}}e.exports.HttpClientResponse=y,e.exports.isHttps=function(e){let t=new URL(e);return"https:"===t.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&&v.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||!g.includes(i.message.statusCode))break;(c+=1)<l&&(yield i.readBody(),yield this._performExponentialBackoff(c));}while(c<l);return i;});}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0;}requestRaw(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>{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=>{let t=new y(e);i(void 0,t);});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);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d: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=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!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(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*Math.pow(2,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;e=i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`;let t=new E(e,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),{});}),rh.register("dG8Uc",function(e,t){function r(e){let t;if(!e.hostname)return!1;let r=e.hostname;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]");}(r))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||"";if(!n)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&i.push(`${i[0]}:${t}`),n.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||i.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;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rh.register("j6C2A",function(e,t){e.exports=rh("3axfE");}),rh.register("3axfE",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||im.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=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t1.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 d(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=im.request,t;},n=function(e){var t=new c(e);return t.request=im.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=ig.request,t;},o=function(e){var t=new c(e);return t.request=ig.request,t.createSocket=u,t.defaultPort=443,t;},t4.inherits(c,t2.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({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=d({},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);});}},s=a=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?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);}:function(){};}),rh.register("5UVtg",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");});}};}),rh.register("a9gnA",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}=id.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,id.constants.R_OK|id.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}>`:`<${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(iu.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;}),rh.register("3zXsD",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(ip);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);};}),rh.register("ljv3o",function(e,t){var r=ip.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);}),rh.register("kAOmP",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=rh("3abeg"),i=rh("aaJ7t");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){var t;let r=a[e.locale],n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),t=n;let i=null;if((n=Array.from(new Set(t))).some(function(e){if(void 0!==r[e])return i=r[e],!0;}),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i;}(r),o=n.pluralize(r.locale,t,i[e]);return o.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};}),rh.register("3abeg",function(e,t){e.exports=rh("ljv3o");}),rh.register("aaJ7t",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rh.register("gRK0M",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;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;}(t,r);}function n(e,t,n){id.stat(e,function(i,o){n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=function(e,t){return r(id.statSync(e),e,t);};}),rh.register("9ZovO",function(e,t){function r(e,t,r){id.stat(e,function(e,i){r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,s,a,l,c,u;return e.isFile()&&(r=e,n=t,i=r.mode,o=r.uid,s=r.gid,a=void 0!==n.uid?n.uid:process.getuid&&process.getuid(),l=void 0!==n.gid?n.gid:process.getgid&&process.getgid(),c=parseInt("100",8),u=parseInt("010",8),i&parseInt("001",8)||i&u&&s===l||i&c&&o===a||i&(c|u)&&0===a);}e.exports=r,r.sync=function(e,t){return n(id.statSync(e),t);};}),rh.register("2dWxz",function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");}),rh.register("lqN0l",function(e,t){var r=rh("eDlr8"),n=rh("6fF7q"),i=rh("fYigo"),o=rh("hQh8e"),s=rh("5DLUR"),a=rh("eO4vc"),l=rh("5Pwcn"),c=rh("4dfSx"),u=rh("7cpCI"),p=rh("7GceF"),d=rh("k4OKF"),f=rh("lL63q"),h=rh("lhsZL"),m=rh("eSzHt"),g=rh("1yexC"),v=rh("gI1Tk"),E=rh("bn7NB"),y=rh("4yuO6"),w=rh("iea9H"),x=rh("gtqtv"),b=rh("3Nc7w"),S=rh("auc5a"),I=rh("caa1L"),O=rh("1Ucjm"),R=rh("fAXcL"),T=rh("2ImCS"),C=rh("255mi"),A=rh("7BD2X"),$=rh("bGbOH"),_=rh("eLOWZ"),P=rh("lCDwg"),N=rh("iLpkq"),L=rh("gEzC5"),D=rh("kOEjN"),k=rh("lSCGC"),U=rh("kRbmr"),j=rh("jjglH"),F=rh("52D05"),M=rh("3lRwj"),G=rh("ahb6l"),B=rh("bfmht");e.exports={parse:s,valid:a,clean:l,inc:c,diff:u,major:p,minor:d,patch:f,prerelease:h,compare:m,rcompare:g,compareLoose:v,compareBuild:E,sort:y,rsort:w,gt:x,lt:b,eq:S,neq:I,gte:O,lte:R,cmp:T,coerce:C,Comparator:A,Range:$,satisfies:_,toComparators:P,maxSatisfying:N,minSatisfying:L,minVersion:D,validRange:k,outside:U,gtr:j,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};}),rh.register("eDlr8",function(e,t){var r=rh("6fF7q"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,s=rh("23sN8");t=e.exports={};let a=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.t={},p=0,d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=e=>{for(let[t,r]of f)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-]${d}*`),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",`${d}+`),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("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!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*$");}),rh.register("6fF7q",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};}),rh.register("23sN8",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;}),rh.register("fYigo",function(e,t){var r=rh("23sN8"),n=rh("6fF7q"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rh("eDlr8"),a=s.safeRe,l=s.t,c=rh("kR8wQ"),u=rh("hQh8e").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<o)return t;}return e;}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format();}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;}toString(){return this.version;}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e);}compareMain(e){return e instanceof p||(e=new p(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch);}comparePre(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return u(n,i);}while(++t);}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return u(n,i);}while(++t);}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+r?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=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;}),rh.register("kR8wQ",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rh.register("hQh8e",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)};}),rh.register("5DLUR",function(e,t){var r=rh("fYigo");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;}};}),rh.register("eO4vc",function(e,t){var r=rh("5DLUR");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rh.register("5Pwcn",function(e,t){var r=rh("5DLUR");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rh.register("4dfSx",function(e,t){var r=rh("fYigo");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;}};}),rh.register("7cpCI",function(e,t){var r=rh("5DLUR");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,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let p=c?"pre":"";return n.major!==i.major?p+"major":n.minor!==i.minor?p+"minor":n.patch!==i.patch?p+"patch":"prerelease";};}),rh.register("7GceF",function(e,t){var r=rh("fYigo");e.exports=(e,t)=>new r(e,t).major;}),rh.register("k4OKF",function(e,t){var r=rh("fYigo");e.exports=(e,t)=>new r(e,t).minor;}),rh.register("lL63q",function(e,t){var r=rh("fYigo");e.exports=(e,t)=>new r(e,t).patch;}),rh.register("lhsZL",function(e,t){var r=rh("5DLUR");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rh.register("eSzHt",function(e,t){var r=rh("fYigo");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rh.register("1yexC",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>r(t,e,n);}),rh.register("gI1Tk",function(e,t){var r=rh("eSzHt");e.exports=(e,t)=>r(e,t,!0);}),rh.register("bn7NB",function(e,t){var r=rh("fYigo");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rh.register("4yuO6",function(e,t){var r=rh("bn7NB");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rh.register("iea9H",function(e,t){var r=rh("bn7NB");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rh.register("gtqtv",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>r(e,t,n)>0;}),rh.register("3Nc7w",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>0>r(e,t,n);}),rh.register("auc5a",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>0===r(e,t,n);}),rh.register("caa1L",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>0!==r(e,t,n);}),rh.register("1Ucjm",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rh.register("fAXcL",function(e,t){var r=rh("eSzHt");e.exports=(e,t,n)=>0>=r(e,t,n);}),rh.register("2ImCS",function(e,t){var r=rh("auc5a"),n=rh("caa1L"),i=rh("gtqtv"),o=rh("1Ucjm"),s=rh("3Nc7w"),a=rh("fAXcL");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);}};}),rh.register("255mi",function(e,t){var r=rh("fYigo"),n=rh("5DLUR"),i=rh("eDlr8"),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 t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1;}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t);};}),rh.register("7BD2X",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=rh("kR8wQ"),o=rh("eDlr8"),s=o.safeRe,a=o.t,l=rh("2ImCS"),c=rh("23sN8"),u=rh("fYigo"),p=rh("bGbOH");}),rh.register("bGbOH",function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;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(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=>!E(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.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=(this.options.includePrerelease&&g)|(this.options.loose&&v),r=t+":"+e,n=i.get(r);if(n)return n;let o=this.options.loose,l=o?u[p.HYPHENRANGELOOSE]:u[p.HYPHENRANGE];a("hyphen replace",e=e.replace(l,_(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[p.COMPARATORTRIM],d)),a("tilde trim",e=e.replace(u[p.TILDETRIM],f)),a("caret trim",e=e.replace(u[p.CARETTRIM],h));let c=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>$(e,this.options));o&&(c=c.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[p.COMPARATORLOOSE])))),a("range list",c);let m=new Map(),y=c.map(e=>new s(e,this.options));for(let e of y){if(E(e))return[e];m.set(e.value,e);}m.size>1&&m.has("")&&m.delete("");let w=[...m.values()];return i.set(r,w),w;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(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 l(e,this.options);}catch(e){return!1;}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1;}}e.exports=r;var n=rh("kS84i");let i=new n({max:1e3});var o=rh("kR8wQ"),s=rh("7BD2X"),a=rh("23sN8"),l=rh("fYigo"),c=rh("eDlr8"),u=c.safeRe,p=c.t,d=c.comparatorTrimReplace,f=c.tildeTrimReplace,h=c.caretTrimReplace,m=rh("6fF7q"),g=m.FLAG_INCLUDE_PRERELEASE,v=m.FLAG_LOOSE;let E=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(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;},x=(e,t)=>(a("comp",e,t),e=O(e,t),a("caret",e),e=S(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=A(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{let r=t.loose?u[p.TILDELOOSE]:u[p.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},O=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{a("caret",e,t);let r=t.loose?u[p.CARETLOOSE]:u[p.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("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`),a("caret return",l),l;});},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>C(e,t)).join(" ")),C=(e,t)=>{e=e.trim();let r=t.loose?u[p.XRANGELOOSE]:u[p.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let c=b(i),u=c||b(o),p=u||b(s);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),s=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},A=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[p.STAR],"")),$=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),_=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rh.register("kS84i",function(e,t){var r=rh("7o5x0");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},g=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r;}},v=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(v(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,g(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,g(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),g(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return v(this,this[p].get(e)),!1;let o=this[p].get(e),a=o.value;return this[l]&&!this[c]&&this[l](e,a.value),a.now=s,a.maxAge=r,a.value=t,this[i]+=d-a.length,a.length=d,this.get(e),g(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),g(this),!0);}has(e){if(!this[p].has(e))return!1;let t=this[p].get(e).value;return!m(this,t);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null;}del(e){v(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rh.register("7o5x0",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&t>i;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=function(e,t,r){var i=t===e.head?new n(r,null,t,e):new n(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i;}(this,o,r[i]);return s;},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n;}return this.head=t,this.tail=e,this;};try{rh("60rfl")(r);}catch(e){}}),rh.register("60rfl",function(e,t){e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value;};};}),rh.register("eLOWZ",function(e,t){var r=rh("bGbOH");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rh.register("lCDwg",function(e,t){var r=rh("bGbOH");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rh.register("iLpkq",function(e,t){var r=rh("fYigo"),n=rh("bGbOH");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))&&(o=e,s=new r(o,i));}),o;};}),rh.register("gEzC5",function(e,t){var r=rh("fYigo"),n=rh("bGbOH");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))&&(o=e,s=new r(o,i));}),o;};}),rh.register("kOEjN",function(e,t){var r=rh("fYigo"),n=rh("bGbOH"),i=rh("gtqtv");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<e.set.length;++t){let n=e.set[t],s=null;n.forEach(e=>{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;};}),rh.register("lSCGC",function(e,t){var r=rh("bGbOH");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rh.register("kRbmr",function(e,t){var r=rh("fYigo"),n=rh("7BD2X");let{ANY:i}=n;var o=rh("bGbOH"),s=rh("eLOWZ"),a=rh("gtqtv"),l=rh("3Nc7w"),c=rh("fAXcL"),u=rh("1Ucjm");e.exports=(e,t,p,d)=>{let f,h,m,g,v;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,g=">",v=">=";break;case"<":f=l,h=u,m=a,g="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let o=t.set[r],s=null,a=null;if(o.forEach(e=>{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===g||s.operator===v||(!a.operator||a.operator===g)&&h(e,a.semver)||a.operator===v&&m(e,a.semver))return!1;}return!0;};}),rh.register("jjglH",function(e,t){var r=rh("kRbmr");e.exports=(e,t,n)=>r(e,t,">",n);}),rh.register("52D05",function(e,t){var r=rh("kRbmr");e.exports=(e,t,n)=>r(e,t,"<",n);}),rh.register("3lRwj",function(e,t){var r=rh("bGbOH");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rh.register("ahb6l",function(e,t){var r=rh("eLOWZ"),n=rh("eSzHt");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){let n=r(e,t,i);n?(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<p.length?u:t;};}),rh.register("bfmht",function(e,t){var r=rh("bGbOH"),n=rh("7BD2X");let{ANY:i}=n;var o=rh("eLOWZ"),s=rh("eSzHt");let a=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,g;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 v=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):v.add(t.semver);if(v.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of v){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 E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){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((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){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((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!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!g||!!n||0===d)&&!y&&!E;},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;};}),rh.register("eaZtc",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rh.register("3WkGD",function(e,t){async function r(e){try{return await(0,t6.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rh.register("A8hFE",function(e,t){var r,n,i,o,s,a,u,p,d,f,h,m,g;function v(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 E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,ip.basename)(e):(0,ip.basename)(e,(0,ip.extname)(e));}function w(e){return(0,ip.normalize)(e).replace(RegExp((0,r.default)(ip.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,ip.extname)(e),n=`${t}${(0,ip.basename)(e,r)}${r}`;return(0,ip.join)((0,ip.dirname)(e),n);}function S(e,t){let r=(0,ip.extname)(e),n=`${(0,ip.basename)(e,r)}${t}${r}`;return(0,ip.join)((0,ip.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function O(e){return"win32"===process.platform?e:"./"+e;}function R(e){let t=(0,ip.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,ip.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+ip.sep)||r===(0,ip.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>O),l(e.exports,"dirname",()=>ip.dirname),l(e.exports,"join",()=>ip.join),r=rh("9O4vc"),n=rh("eVYO7"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>S),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>O),E(h={},"removeExt",()=>R),E(m={},"replaceExt",()=>T),E(g={},"isPathInside",()=>C),v(i,o),v(i,s),v(i,a),v(i,u),v(i,p),v(i,d),v(i,f),v(i,h),v(i,m),v(i,g);}),rh.register("9O4vc",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);}),rh.register("eVYO7",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=ip.basename(e,ip.extname(e))+t,i=ip.join(ip.dirname(e),n);return(r=e.slice(0,2),r==="."+ip.sep||"./"===r)?"."+ip.sep+i:i;};}),rh.register("kSdX3",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*(){t3.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(ip),p=i(rh("11Ly6"));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,r=!!e.recursive,n=null==e.copySourceDirectory||!!e.copySourceDirectory;return{force:t,recursive:r,copySourceDirectory:n};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);let f=yield p.stat(e);if(f.isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield a(r);let o=yield p.readdir(t);for(let s of o){let o=`${t}/${s}`,a=`${r}/${s}`,l=yield p.lstat(o);l.isDirectory()?yield e(o,a,n,i):yield c(o,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,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;}),rh.register("11Ly6",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(id),c=i(ip);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*(){let n=r?yield e.exports.stat(t):yield e.exports.lstat(t);return n.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";};}),rh.register("8kgpT",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(rh("3BvyU"));s=rh("2heqc"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=iu.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=iu.platform(),r="";if("darwin"===t)r=t8.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t){let e=t.split("\n");for(let t of e){let e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return id.existsSync(e)?r=id.readFileSync(e).toString():id.existsSync(t)&&(r=id.readFileSync(t).toString()),r;};}),rh.register("3BvyU",function(e,t){function r(e){A[e]=$++;}function n(e){for(var t=0;t<P.length;t++){var r=P[t][0],n=P[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>S||!(t.loose?T[A.LOOSE]:T[A.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>S)throw TypeError("version is longer than "+S+" 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?T[A.LOOSE]:T[A.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>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||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&&t<I)return t;}return e;}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format();}function s(e,t){var r=N.test(e),n=N.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-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 d(e,t,r){return a(e,t,r)>=0;}function f(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 d(e,r,n);case"<":return c(e,r,n);case"<=":return f(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);b("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new g(e.raw,t);if(e instanceof m)return new g(e.value,t);if(!(this instanceof g))return new g(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 v(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 E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new g(t,r);}catch(e){return!1;}return t.test(e);}function x(e,t,r,n){switch(e=new o(e,n),t=new g(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,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<t.set.length;++h){var v=t.set[h],E=null,y=null;if(v.forEach(function(e){e.semver===L&&(e=new m(">=0.0.0")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.semver))return!1;}return!0;}t=e.exports=o,b="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0",S=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,O=S-6,R=t.re=[],T=t.safeRe=[],C=t.src=[],A=t.tokens={},$=0,P=[["\\s",1],["\\d",S],[_="[a-zA-Z0-9-]",O]],r("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+_+"*",r("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=_+"+",r("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",r("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",r("GTLT"),C[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),R[A.COERCERTL]=RegExp(C[A.COERCE],"g"),T[A.COERCERTL]=RegExp(n(C[A.COERCE]),"g"),r("LONETILDE"),C[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",R[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),T[A.TILDETRIM]=RegExp(n(C[A.TILDETRIM]),"g"),r("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[A.LONECARET]="(?:\\^)",r("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",R[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),T[A.CARETTRIM]=RegExp(n(C[A.CARETTRIM]),"g"),r("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",R[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),T[A.COMPARATORTRIM]=RegExp(n(C[A.COMPARATORTRIM]),"g"),r("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var b,S,I,O,R,T,C,A,$,_,P,N,L,D=0;D<$;D++)b(D,C[D]),R[D]||(R[D]=new RegExp(C[D]),T[D]=new RegExp(n(C[D])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=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,N=/^[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=d,t.lte=f,t.cmp=h,t.Comparator=m,L={},m.prototype.parse=function(e){var t=this.options.loose?T[A.COMPARATORLOOSE]:T[A.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=L;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===L||e===L)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 g(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new g(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=g,g.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},g.prototype.toString=function(){return this.range;},g.prototype.parseRange=function(e){var t=this.options.loose,r=t?T[A.HYPHENRANGELOOSE]:T[A.HYPHENRANGE];b("hyphen replace",e=e.replace(r,y)),b("comparator trim",e=e.replace(T[A.COMPARATORTRIM],"$1$2$3"),T[A.COMPARATORTRIM]),e=(e=(e=e.replace(T[A.TILDETRIM],"$1~")).replace(T[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[A.COMPARATORLOOSE]:T[A.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return b("comp",t=e,r=this.options),b("caret",(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?T[A.CARETLOOSE]:T[A.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(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("tildes",(o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?T[A.TILDELOOSE]:T[A.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(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("xrange",(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?T[A.XRANGELOOSE]:T[A.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(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("stars",(b("replaceStars",c=t,r),t=c.trim().replace(T[A.STAR],""))),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);},g.prototype.intersects=function(e,t){if(!(e instanceof g))throw TypeError("a Range is required");return this.set.some(function(r){return v(r,t)&&e.set.some(function(e){return v(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new g(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},g.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;t<this.set.length;t++)if(function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(b(e[n].semver),e[n].semver!==L&&e[n].semver.prerelease.length>0){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 g(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(n=e,i=new o(n,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new g(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(n=e,i=new o(n,r));}),n;},t.minVersion=function(e,t){e=new g(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<e.set.length;++n)e.set[n].forEach(function(e){var t=new o(e.semver.version);switch(e.operator){case">":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 g(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,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 g(e,r),t=new g(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=T[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[A.COERCERTL].lastIndex=-1;}else n=e.match(T[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rh.register("bxsAi",function(e,t){var r=rh("lyWSC"),n=rh("2cprb");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);};}),rh.register("lyWSC",function(e,t){e.exports=function(){return ih.randomBytes(16);};}),rh.register("2cprb",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("");};}),rh.register("2mVwa",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];t=n.slice(1).concat(t||[]);let o=new a.ToolRunner(i,t,r);return o.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(rh("19yql"));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 t5.StringDecoder("utf8"),c=new t5.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,d=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);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return{exitCode:f,stdout:o+=l.end(),stderr:a+=c.end()};});};}),rh.register("19yql",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(iu),a=i(t2),l=i(t8),c=i(ip),u=i(rh("kSdX3")),p=i(rh("11Ly6")),d="win32"===process.platform;class f 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(d){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 d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&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){e=e||{};let t={cwd: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("/")||d&&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=>{if(n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream){let t=r.failOnStdErr?r.errStream:r.outStream;t.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=f,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;s<e.length;s++){let a=e.charAt(s);if('"'===a){i?t(a):n=!n;continue;}if("\\"===a&&i){t(a);continue;}if("\\"===a&&n){i=!0;continue;}if(" "===a&&!n){o.length>0&&(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=t9.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();}}}}),rh.register("dDAlR",function(e,t){e.exports=Promise.resolve(require("./actions_python.92140582.js")).then(()=>rh("8L9T2"));}),rm=rh("cLprm"),rg=rh("hHq4F"),rv=rh("3abeg"),function(){rh("ljv3o").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(rE={}),ry={},ry=rh("kAOmP"),rw={},rw={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"}}}},rx={};const iv=iu.homedir();rx=e=>{if("string"!=typeof e)throw TypeError("Expected a string, got "+typeof e);return iv?e.replace(/^~(?=$|\/|\\)/,iv):e;},rb={};const iE="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iy=iE?";":":";rS={},rI="win32"===process.platform||rp.TESTING_WINDOWS?rh("gRK0M"):rh("9ZovO"),rS=u,u.sync=function(e,t){try{return rI.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iw=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ix=(e,t)=>{let r=t.colon||iy,n=e.match(/\//)||iE&&e.match(/\\/)?[""]:[...(iE?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iE?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iE?i.split(r):[""];return iE&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},ib=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ix(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iw(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=ip.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(p,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rS(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);};rb=ib,ib.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=ix(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=ip.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<n.length;e++){let r=u+n[e];try{let e=rS.sync(r,{pathExt:i});if(e){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw iw(e);},rO={},rR={},rT={},rC={},rA={};const iS=(e={})=>{let t=e.env||process.env,r=e.platform||process.platform;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rA=iS).default=iS,rC=function(e){return p(e)||p(e,!0);};r$={},r_={},rP={},rP=/^#!(.*)/,r_=(e="")=>{let t=e.match(rP);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},r$=function(e){let t;let r=Buffer.alloc(150);try{t=id.openSync(e,"r"),id.readSync(t,r,0,150,0),id.closeSync(t);}catch(e){}return r_(r.toString());};const iI="win32"===process.platform;rT=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!iI)return e;let t=function(e){e.file=rC(e);let t=e.file&&r$(e.file);return t?(e.args.unshift(e.file),e.command=t,rC(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){var n;let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=ip.normalize(e.command),e.command=n=(n=e.command).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),e.args=e.args.map(e=>{var t,n;return t=e,n=r,t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),n&&(t=t.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),t;});let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},rN={};const iO="win32"===process.platform;rN={hookChildProcess:function(e,t){if(!iO)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iO&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rR=h).spawn=h,rR.sync=function(e,t,r){let n=rT(e,t,r),i=t8.spawnSync(n.command,n.args,n.options);return i.error=i.error||rN.verifyENOENTSync(i.status,n),i;},rR._parse=rT,rR._enoent=rN,rL={},rL=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,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e;},rD={};const iR=e=>{let t;e={cwd:process.cwd(),path:process.env[rA()],execPath:process.execPath,...e};let r=ip.resolve(e.cwd),n=[];for(;t!==r;)n.push(ip.join(r,"node_modules/.bin")),t=r,r=ip.resolve(r,"..");let i=ip.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(ip.delimiter);};(rD=iR).default=iR,rD.env=e=>{e={env:process.env,...e};let t={...e.env},r=rA({env:t});return e.path=t[r],t[r]=rD(e),t;},rk={},rU={};const iT=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(rU=iT).default=iT;const iC=new WeakMap(),iA=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(iC.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 rU(o,e),iC.set(o,n),o;};(rk=iA).default=iA,rk.callCount=e=>{if(!iC.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iC.get(e);},rj={},Object.defineProperty(rF={},"__esModule",{value:!0}),rF.signalsByNumber=rF.signalsByName=void 0,Object.defineProperty(rM={},"__esModule",{value:!0}),rM.getSignals=void 0,Object.defineProperty(rG={},"__esModule",{value:!0}),rG.SIGNALS=void 0,rG.SIGNALS=[{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"}],Object.defineProperty(rB={},"__esModule",{value:!0}),rB.SIGRTMAX=rB.getRealtimeSignals=void 0,rB.getRealtimeSignals=function(){return Array.from({length:iP-i_+1},i$);};const i$=function(e,t){return{name:"SIGRT"+(t+1),number:i_+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"};},i_=34,iP=64;rB.SIGRTMAX=iP,rM.getSignals=function(){let e=(0,rB.getRealtimeSignals)(),t=[...rG.SIGNALS,...e].map(iN);return t;};const iN=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:o}){let{signals:{[e]:s}}=iu.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iL=function(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}};},iD=function(){let e=(0,rM.getSignals)();return e.reduce(iL,{});}();rF.signalsByName=iD;const ik=function(e,t){let r=iU(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}};},iU=function(e,t){let r=t.find(({name:t})=>iu.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);},ij=function(){let e=(0,rM.getSignals)(),t=rB.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>ik(r,e));return Object.assign({},...r);}();rF.signalsByNumber=ij,rH=rF.signalsByName;const iF=({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";rj=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:rH[i].description,f=n&&n.code,h=iF({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${m}
${n.message}`:m,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},rq={};const iM=["stdin","stdout","stderr"],iG=e=>iM.some(t=>void 0!==e[t]),iB=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iM.map(t=>e[t]);if(iG(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iM.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,iM.length);return Array.from({length:r},(e,r)=>t[r]);};(rq=iB).node=e=>{let t=iB(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];},rV={},rX={},rz=rp.process;const iH=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(iH(rz)){var iq,iV=t3,iX=rh("2dWxz"),iz=/^win/i.test(rz.platform),iW=t2;"function"!=typeof iW&&(iW=iW.EventEmitter),rz.__signal_exit_emitter__?iq=rz.__signal_exit_emitter__:((iq=rz.__signal_exit_emitter__=new iW()).count=0,iq.emitted={}),iq.infinite||(iq.setMaxListeners(1/0),iq.infinite=!0);var iK=function(){iJ&&iH(rp.process)&&(iJ=!1,iX.forEach(function(e){try{rz.removeListener(e,iQ[e]);}catch(e){}}),rz.emit=i2,rz.reallyExit=i0,iq.count-=1);};(rX=function(e,t){if(!iH(rp.process))return function(){};iV.equal(typeof e,"function","a callback must be provided for exit handler"),!1===iJ&&iZ();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iq.on(r,e),function(){iq.removeListener(r,e),0===iq.listeners("exit").length&&0===iq.listeners("afterexit").length&&iK();};}).unload=iK;var iY=function(e,t,r){iq.emitted[e]||(iq.emitted[e]=!0,iq.emit(e,t,r));},iQ={};iX.forEach(function(e){iQ[e]=function(){iH(rp.process)&&rz.listeners(e).length===iq.count&&(iK(),iY("exit",null,e),iY("afterexit",null,e),iz&&"SIGHUP"===e&&(e="SIGINT"),rz.kill(rz.pid,e));};}),rX.signals=function(){return iX;};var iJ=!1,iZ=function(){!iJ&&iH(rp.process)&&(iJ=!0,iq.count+=1,iX=iX.filter(function(e){try{return rz.on(e,iQ[e]),!0;}catch(e){return!1;}}),rz.emit=i3,rz.reallyExit=i1);};rX.load=iZ;var i0=rz.reallyExit,i1=function(e){iH(rp.process)&&(rz.exitCode=e||0,iY("exit",rz.exitCode,null),iY("afterexit",rz.exitCode,null),i0.call(rz,rz.exitCode));},i2=rz.emit,i3=function(e,t){if(!("exit"===e&&iH(rp.process)))return i2.apply(this,arguments);void 0!==t&&(rz.exitCode=t);var r=i2.apply(this,arguments);return iY("exit",rz.exitCode,null),iY("afterexit",rz.exitCode,null),r;};}else rX=function(){return function(){};};const i4=(e,t,r,n)=>{if(!i6(t,r,n))return;let i=i5(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},i6=(e,{forceKillAfterTimeout:t},r)=>i8(e)&&!1!==t&&r,i8=e=>e===iu.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),i5=({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;},i9=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},i7=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=rX(()=>{e.kill();});return n.finally(()=>{i();});};rW=(rV={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return i4(e,t,r,n),n;},spawnedCancel(e,t){let r=e.kill();r&&(t.isCanceled=!0);},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{i9(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},validateTimeout({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})`);},setExitHandler:i7}).spawnedKill,rK=rV.spawnedCancel,rY=rV.setupTimeout,rQ=rV.validateTimeout,rJ=rV.setExitHandler,rZ={},r0={};const oe=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;oe.writable=e=>oe(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,oe.readable=e=>oe(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,oe.duplex=e=>oe.writable(e)&&oe.readable(e),oe.transform=e=>oe.duplex(e)&&"function"==typeof e._transform,r0=oe,r1={},r2=t7.constants,r3=t4.promisify,r4={},r6=re.PassThrough,r4=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r6({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 ot=r3(re.pipeline);class or extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r1=m).buffer=(e,t)=>m(e,{...t,encoding:"buffer"}),r1.array=(e,t)=>m(e,{...t,array:!0}),r1.MaxBufferError=or,r8={},r5=re.PassThrough,r8=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 on=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},oi=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?r1(e,{encoding:t,maxBuffer:n}):r1.buffer(e,{maxBuffer:n});},oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=oi(e,{encoding:n,buffer:i,maxBuffer:o}),l=oi(t,{encoding:n,buffer:i,maxBuffer:o}),c=oi(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},on(e,a),on(t,l),on(r,c)]);}};r9=(rZ={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(r0(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=r8();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},getSpawnedResult:oo,validateInputSync({input:e}){if(r0(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,r7=rZ.getSpawnedResult,ne=rZ.makeAllStream,nt=rZ.validateInputSync,nr={};const os=(async()=>{})().constructor.prototype,oa=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(os,e)]);nn=(nr={mergePromise(e,t){for(let[r,n]of oa){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}return e;},getSpawnedPromise: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);});})}).mergePromise,ni=nr.getSpawnedPromise,no={};const ol=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oc=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`;ns=(no={joinCommand:(e,t)=>ol(e,t).join(" "),getEscapedCommand:(e,t)=>ol(e,t).map(e=>oc(e)).join(" "),parseCommand(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;}}).joinCommand,na=no.parseCommand,nl=no.getEscapedCommand;const ou=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?rD.env({env:o,cwd:n,execPath:i}):o;},op=(e,t,r={})=>{let n=rR._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||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=ou(r),r.stdio=rq(r),"win32"===process.platform&&"cmd"===ip.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},od=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?rL(t):t:void 0===r?void 0:"",of=(e,t,r)=>{let n;let i=op(e,t,r),o=ns(e,t),s=nl(e,t);rQ(i.options);try{n=t8.spawn(i.file,i.args,i.options);}catch(r){let e=new t8.ChildProcess(),t=Promise.reject(rj({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return nn(e,t);}let a=ni(n),l=rY(n,i.options,a),c=rJ(n,i.options,l),u={isCanceled:!1};n.kill=rW.bind(null,n.kill.bind(n)),n.cancel=rK.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await r7(n,i.options,c),f=od(i.options,l),h=od(i.options,p),m=od(i.options,d);if(e||0!==t||null!==r){let l=rj({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=rk(p);return r9(n,i.options.input),n.all=ne(n,i.options),nn(n,d);};(rO=of).sync=(e,t,r)=>{let n;let i=op(e,t,r),o=ns(e,t),s=nl(e,t);nt(i.options);try{n=t8.spawnSync(i.file,i.args,i.options);}catch(e){throw rj({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=od(i.options,n.stdout,n.error),l=od(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=rj({stdout:a,stderr:l,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:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},rO.command=(e,t)=>{let[r,...n]=na(e);return of(r,n,t);},rO.commandSync=(e,t)=>{let[r,...n]=na(e);return of.sync(r,n,t);},rO.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=rq.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return of(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};const oh={stdio:"inherit",shell:!0};rg=rh("hHq4F"),nc={},nu=rh("lqN0l"),np=rt.env.npm_package_json,nf=!!((nd=rt.env.npm_config_user_agent)&&nd.startsWith("npm")),nh=!!(np&&np.endsWith("package.json")),nm=!!(nd&&nd.startsWith("yarn")),ng=nf||nh||nm,nv=iu.homedir(),nE=process.env.XDG_CONFIG_HOME||ip.join(nv,".config","simple-update-notifier"),ny=function(e){return ip.join(nE,"".concat(e.replace("@","").replace("/","__"),".json"));},nw=function(){id.existsSync(nE)||id.mkdirSync(nE,{recursive:!0});},nx=function(e){var t=ny(e);try{if(!id.existsSync(t))return;return JSON.parse(id.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nb=function(e){var t=ny(e);id.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nS=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 x(void 0,void 0,void 0,function(){var e,r;return b(this,function(i){switch(i.label){case 0:var l;if(nw(),e=nx(t.name),!(s||!e||e<new Date().getTime()-n))return[3,2];return[4,(l=t.name,x(void 0,void 0,void 0,function(){var e;return b(this,function(t){return e="https://registry.npmjs.org/-/package/".concat(l,"/dist-tags"),[2,new Promise(function(t,r){ig.get(e,function(e){var n="";e.on("data",function(e){return n+=e;}),e.on("end",function(){try{var e=JSON.parse(n)[o];e||r(Error("Error getting version")),t(e);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});}))];case 1:if(r=i.sent(),nb(t.name),nu.gt(r,t.version))return[2,r];return a&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:a&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1];}});});},nI=function(e){for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(function(e){return e.length;})),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"));}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");},nc=function(e){return x(void 0,void 0,void 0,function(){var t,r;return b(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||ng&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,nS(e)];case 2:return(t=n.sent())&&console.error(nI("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});},nO={},nO=JSON.parse('{"name":"setup-cpp","version":"0.35.7"}'),nR=rh("2heqc"),rg=rh("hHq4F"),rm=rh("cLprm"),nR=rh("2heqc"),rm=rh("cLprm"),rg=rh("hHq4F");const om=(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);(og(i,o)||!n)&&Object.defineProperty(e,r,o);},og=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);},ov=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},oE=(e,t)=>`/* Wrapped ${e}*/
${t}`,oy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ow=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ox=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=oE.bind(null,n,t.toString());Object.defineProperty(i,"name",ow),Object.defineProperty(e,"toString",{...oy,value:i});},ob=new WeakMap(),oS=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(ob.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))om(e,t,n,r);ov(e,t),ox(e,t,n);}(o,e),ob.set(o,n),o;};oS.callCount=e=>{if(!ob.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ob.get(e);},nT=oS;const oI=()=>Array.from({length:oT-oR+1},oO),oO=(e,t)=>({name:"SIGRT"+(t+1),number:oR+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oR=34,oT=64,oC=[{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"}],oA=()=>{let e=oI(),t=[...oC,...e].map(o$);return t;},o$=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=ra.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},o_=({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}],oP=(()=>{let e=oA();return Object.fromEntries(e.map(o_));})(),oN=(e,t)=>{let r=oL(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}};},oL=(e,t)=>{let r=t.find(({name:t})=>ra.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=oA(),t=Array.from({length:oT+1},(t,r)=>oN(r,e));return Object.assign({},...t);})();const oD=({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",ok=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:oP[i].description,f=n&&n.code,h=oD({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${m}
${n.message}`:m,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},oU=["stdin","stdout","stderr"],oj=e=>oU.some(t=>void 0!==e[t]),oF=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oU.map(t=>e[t]);if(oj(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oU.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,oU.length);return Array.from({length:r},(e,r)=>t[r]);},oM=(e,t="SIGTERM",r={})=>{let n=e(t);return oG(e,t,r,n),n;},oG=(e,t,r,n)=>{if(!oB(t,r,n))return;let i=oq(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},oB=(e,{forceKillAfterTimeout:t},r)=>oH(e)&&!1!==t&&r,oH=e=>e===c(ra).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oq=({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;},oV=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},oX=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oz=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{oX(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},oW=({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})`);},oK=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rX)(()=>{e.kill();});return n.finally(()=>{i();});},oY=e=>e instanceof ri.ChildProcess&&"function"==typeof e.then,oQ=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,t6.createWriteStream)(r)),e;if(A(r))return e[t].pipe(r),e;if(!oY(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!A(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oJ=e=>{null!==e.stdout&&(e.pipeStdout=oQ.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=oQ.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=oQ.bind(void 0,e,"all"));},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,t6.readFileSync)(t)),o1=e=>{let t=o0(e);if(C(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,t6.createReadStream)(t)),o3=(e,t)=>{let r=o2(t);void 0!==r&&(C(r)?r.pipe(e.stdin):e.stdin.end(r));},o4=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r8)();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(r1)(e,{encoding:t,maxBuffer:n}):c(r1).buffer(e,{maxBuffer:n});},o5=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)]);}},o9=(async()=>{})().constructor.prototype,o7=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(o9,e)]),se=(e,t)=>{for(let[r,n]of o7){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=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof ri.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rr.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sa=(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)],sl=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=o.split(/ +/g).filter(Boolean),a=sa(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>ss(e)):[ss(l)];return sa(a,c,o.endsWith(" "));},sc=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sl({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},su=(0,rl.debuglog)("execa").enabled,sp=(e,t)=>(e+"").padStart(t,"0"),sd=()=>{let e=new Date();return`${sp(e.getHours(),2)}:${sp(e.getMinutes(),2)}:${sp(e.getSeconds(),2)}.${sp(e.getMilliseconds(),3)}`;},sf=(e,{verbose:t})=>{t&&c(ro).stderr.write(`[${sd()}] ${e}
`);},sh=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ro).env,...e}:e;return r?T({env:o,cwd:n,execPath:i}):o;},sm=(e,t,r={})=>{let n=c(rR)._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(ro).cwd(),execPath:c(ro).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:su,...r}).env=sh(r),r.stdio=oF(r),"win32"===c(ro).platform&&"cmd"===c(rn).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sg=(e,t,r)=>"string"==typeof t||(0,rr.Buffer).isBuffer(t)?e.stripFinalNewline?O(t):t:void 0===r?void 0:"",sv=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sE=(e={})=>({preferLocal:!0,...sv(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sc(n,i);return $(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]=sc(e,r);return function(e,t,r){let n;let i=sm(e,t,r),o=si(e,t),s=so(e,t);sf(s,i.options);let a=o1(i.options);try{n=c(ri).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw ok({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=ok({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};}(n,i,sE(t));},r;}(),nC={};const sy="win32"!==iu.platform(),sw=iu.release(),sx=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nC=function(e){return sy?e.replace(/(\s+)/g,"\\$1"):sx(.../(\d+\.\d+)\.(\d+)/.exec(sw).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rh("eaZtc"),t=function(e){return e.split("").reverse().join("");},nA=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(nA={}),n$=rh("3WkGD");const sb={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sS=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sI=w(".cpprc");let sO=!1;n$=rh("3WkGD");const sR=({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",sT=({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:d,cwd:f=c(ro).cwd()}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let h=void 0===i?void 0:oP[i].description,m=n&&n.code,g=sR({timedOut:l,timeout:d,errorCode:m,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${g}: ${s}`,E="[object Error]"===Object.prototype.toString.call(n),y=E?`${v}
${n.message}`:v,w=[y,t,e].filter(Boolean).join("\n");return E?(n.originalMessage=n.message,n.message=w):n=Error(w),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=f,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;},sC=["stdin","stdout","stderr"],sA=e=>sC.some(t=>void 0!==e[t]),s$=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return sC.map(t=>e[t]);if(sA(e))throw Error("It's not possible to provide `stdio` in combination with one of "+sC.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,sC.length);return Array.from({length:r},(e,r)=>t[r]);},s_=(e,t="SIGTERM",r={})=>{let n=e(t);return sP(e,t,r,n),n;},sP=(e,t,r,n)=>{if(!sN(t,r,n))return;let i=sD(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},sN=(e,{forceKillAfterTimeout:t},r)=>sL(e)&&!1!==t&&r,sL=e=>e===c(ra).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),sD=({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;},sk=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},sU=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},sj=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{sU(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},sF=({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})`);},sM=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rX)(()=>{e.kill();});return n.finally(()=>{i();});},sG=e=>e instanceof ri.ChildProcess&&"function"==typeof e.then,sB=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,t6.createWriteStream)(r)),e;if(A(r))return e[t].pipe(r),e;if(!sG(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!A(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},sH=e=>{null!==e.stdout&&(e.pipeStdout=sB.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=sB.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=sB.bind(void 0,e,"all"));},sq=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sV=({input:e,inputFile:t})=>"string"!=typeof t?e:(sq(e),(0,t6.readFileSync)(t)),sX=e=>{let t=sV(e);if(C(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},sz=({input:e,inputFile:t})=>"string"!=typeof t?e:(sq(e),(0,t6.createReadStream)(t)),sW=(e,t)=>{let r=sz(t);void 0!==r&&(C(r)?r.pipe(e.stdin):e.stdin.end(r));},sK=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r8)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sY=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sQ=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r1)(e,{encoding:t,maxBuffer:n}):c(r1).buffer(e,{maxBuffer:n});},sJ=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sQ(e,{encoding:n,buffer:i,maxBuffer:o}),l=sQ(t,{encoding:n,buffer:i,maxBuffer:o}),c=sQ(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},sY(e,a),sY(t,l),sY(r,c)]);}},sZ=(async()=>{})().constructor.prototype,s0=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sZ,e)]),s1=(e,t)=>{for(let[r,n]of s0){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},s2=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);});}),s3=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],s4=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,s6=(e,t)=>s3(e,t).join(" "),s8=(e,t)=>s3(e,t).map(e=>s4(e)).join(" "),s5=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof ri.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rr.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},s9=(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)],s7=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=o.split(/ +/g).filter(Boolean),a=s9(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>s5(e)):[s5(l)];return s9(a,c,o.endsWith(" "));},ae=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=s7({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},at=(0,rl.debuglog)("execa").enabled,ar=(e,t)=>(e+"").padStart(t,"0"),an=()=>{let e=new Date();return`${ar(e.getHours(),2)}:${ar(e.getMinutes(),2)}:${ar(e.getSeconds(),2)}.${ar(e.getMilliseconds(),3)}`;},ai=(e,{verbose:t})=>{t&&c(ro).stderr.write(`[${an()}] ${e}
`);},ao=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ro).env,...e}:e;return r?T({env:o,cwd:n,execPath:i}):o;},as=(e,t,r={})=>{let n=c(rR)._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(ro).cwd(),execPath:c(ro).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:at,...r}).env=ao(r),r.stdio=s$(r),"win32"===c(ro).platform&&"cmd"===c(rn).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},aa=(e,t,r)=>"string"==typeof t||(0,rr.Buffer).isBuffer(t)?e.stripFinalNewline?O(t):t:void 0===r?void 0:"",al=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ac=(e={})=>({preferLocal:!0,...al(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=ae(n,i);return j(o,s,ac(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]=ae(e,r);return F(n,i,ac(t));},r;}(),n_=rh("9O4vc"),rg=rh("hHq4F"),nP={},nN=ip.join,nL=ip.delimiter,nD=ip.sep,nk=ip.posix;const au="win32"===process.platform,ap=new RegExp(`[${nk.sep}${nD===nk.sep?"":nD}]`.replace(/(\\)/g,"\\$1")),ad=RegExp("^\\."+ap.source),af=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ah=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=nL})=>{let i=e.match(ap)?[""]:[...(au?[process.cwd()]:[]),...(t||"").split(n)];if(au){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},am=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&ad.test(t)?t.slice(0,2):"";return n+nN(r,t);},ag=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ah(e,t),o=[];for(let s of r){let r=am(s,e);for(let e of n){let n=r+e,s=await rS(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw af(e);};nP=ag,ag.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ah(e,t),o=[];for(let s of r){let r=am(s,e);for(let e of n){let n=r+e,s=rS.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw af(e);};const{appendFile:av}=id.promises;let aE=!1,ay=!1;const aw=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(tZ=nU||(nU={}))[tZ.NameDashVersion=0]="NameDashVersion",tZ[tZ.NameEqualsVersion=1]="NameEqualsVersion",tZ[tZ.Name=2]="Name",tZ[tZ.None=3]="None",nR=rh("2heqc"),nj=rh("A8hFE"),nj=rh("A8hFE"),nF=rh("kSdX3");let ax=!1;n$=rh("3WkGD"),nj=rh("A8hFE"),rg=rh("hHq4F");let ab=!1;rg=rh("hHq4F"),rg=rh("hHq4F");let aS=!1,aI=!1;const aO=/Version\s*:\s*(.*)/g;nM={},nG=ip.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),nB=nM&&nM.__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];}),nH=nM&&nM.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nq=nM&&nM.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nB(t,e,r);return nH(t,e),t;},nV=nM&&nM.__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());});},nX=nM&&nM.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nM,"__esModule",{value:!0}),nM.evaluateVersions=nM.isExplicitVersion=nM.findFromManifest=nM.getManifestFromRepo=nM.findAllVersions=nM.find=nM.cacheFile=nM.cacheDir=nM.extractZip=nM.extractXar=nM.extractTar=nM.extract7z=nM.downloadTool=nM.HTTPError=void 0;const aR=nq(rh("2heqc")),aT=nq(rh("kSdX3")),aC=nq(id),aA=nq(rh("8kgpT")),a$=nq(iu),a_=nq(ip),aP=nq(rh("aPbbM")),aN=nq(rh("3BvyU")),aL=nq(re),aD=nq(t4),ak=nX(rh("bxsAi"));nz=rh("2mVwa"),nK=(nW={},nW.__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];})),nY=nW&&nW.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nQ=nW&&nW.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nK(t,e,r);return nY(t,e),t;},nJ=nW&&nW.__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(nW,"__esModule",{value:!0}),nW.RetryHelper=void 0;const aU=nQ(rh("2heqc"));nW.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nJ(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{break;}catch(e){if(t&&!t(e))throw e;aU.info(e.message);}let e=this.getSleepAmount();aU.info(`Waiting ${e} seconds before trying again`),yield this.sleep(e),r++;}return yield e();});}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds;}sleep(e){return nJ(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class aj extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nM.HTTPError=aj;const aF="win32"===process.platform,aM="darwin"===process.platform;nM.downloadTool=function(e,t,r,n){return nV(this,void 0,void 0,function*(){t=t||a_.join(ev(),ak.default()),yield aT.mkdirP(a_.dirname(t)),aR.debug("Downloading "+e),aR.debug("Destination "+t);let i=eE("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eE("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new nW.RetryHelper(3,i,o);return yield s.execute(()=>nV(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nV(this,void 0,void 0,function*(){if(aC.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new aP.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(aR.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 aj(o.message.statusCode);throw aR.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=aD.promisify(aL.pipeline),a=eE("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),l=a(),c=!1;try{return yield s(l,aC.createWriteStream(t)),aR.debug("download complete"),c=!0,t;}finally{if(!c){aR.debug("download failed");try{yield aT.rmRF(t);}catch(e){aR.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof aj)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nM.extract7z=function(e,t,r){return nV(this,void 0,void 0,function*(){t3.ok(aF,"extract7z() not supported on current OS"),t3.ok(e,'parameter "file" is required'),t=yield ep(t);let n=process.cwd();if(process.chdir(t),r)try{let t=aR.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield nz.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=a_.join(nG,"..","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 nz.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nM.extractTar=function(e,t,r="xz"){return nV(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ep(t),aR.debug("Checking tar --version");let i="";yield nz.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),aR.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],aR.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return aF&&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 nz.exec("tar",n),t;});},nM.extractXar=function(e,t,r=[]){return nV(this,void 0,void 0,function*(){var n;let i;t3.ok(aM,"extractXar() not supported on current OS"),t3.ok(e,'parameter "file" is required'),t=yield ep(t),(i=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),aR.isDebug()&&i.push("-v");let o=yield aT.which("xar",!0);return yield nz.exec(`"${o}"`,(n=i,Array.from(new Set(n)))),t;});},nM.extractZip=function(e,t){return nV(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ep(t),aF?yield function(e,t){return nV(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 $_ } } ;`,t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];aR.debug("Using pwsh at path: "+i),yield nz.exec(`"${i}"`,t);}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=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e],i=yield aT.which("powershell",!0);aR.debug("Using powershell at path: "+i),yield nz.exec(`"${i}"`,t);}});}(e,t):yield function(e,t){return nV(this,void 0,void 0,function*(){let r=yield aT.which("unzip",!0),n=[e];aR.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nz.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nM.cacheDir=function(e,t,r,n){return nV(this,void 0,void 0,function*(){if(r=aN.clean(r)||r,n=n||a$.arch(),aR.debug(`Caching tool ${t} ${r} ${n}`),aR.debug("source dir: "+e),!aC.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield ed(t,r,n);for(let t of aC.readdirSync(e)){let r=a_.join(e,t);yield aT.cp(r,i,{recursive:!0});}return ef(t,r,n),i;});},nM.cacheFile=function(e,t,r,n,i){return nV(this,void 0,void 0,function*(){if(n=aN.clean(n)||n,i=i||a$.arch(),aR.debug(`Caching tool ${r} ${n} ${i}`),aR.debug("source file: "+e),!aC.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield ed(r,n,i),s=a_.join(o,t);return aR.debug("destination file "+s),yield aT.cp(e,s),ef(r,n,i),o;});},nM.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||a$.arch(),!eh(t)){let n=eu(e,r),i=em(n,t);t=i;}let n="";if(t){t=aN.clean(t)||"";let i=a_.join(eg(),e,t,r);aR.debug("checking cache: "+i),aC.existsSync(i)&&aC.existsSync(`${i}.complete`)?(aR.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):aR.debug("not found");}return n;},nM.findAllVersions=eu,nM.getManifestFromRepo=function(e,t,r,n="master"){return nV(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new aP.HttpClient("tool-cache"),a={};r&&(aR.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){aR.debug("Invalid json");}}return i;});},nM.findFromManifest=function(e,t,r,n=a$.arch()){return nV(this,void 0,void 0,function*(){let i=yield aA._findMatch(e,t,r,n);return i;});},nM.isExplicitVersion=eh,nM.evaluateVersions=em,nZ=rh("fAXcL"),n0=rh("255mi"),nj=rh("A8hFE"),rg=rh("hHq4F"),rm=rh("cLprm"),n$=rh("3WkGD"),Object.defineProperty(n1={},"__esModule",{value:!0}),n1.retryAsPromised=n1.TimeoutError=void 0;class aG extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}n1.TimeoutError=aG,n1.retryAsPromised=ey,n1.default=ey;let aB=!1;nj=rh("A8hFE"),nF=rh("kSdX3"),rg=rh("hHq4F"),nR=rh("2heqc"),n$=rh("3WkGD"),nj=rh("A8hFE"),nz=rh("2mVwa"),rm=rh("cLprm"),rg=rh("hHq4F"),n2={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},n3=Array.prototype.slice,n4=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eA(this.keys),size:this.size,values:eA(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}(),nj=rh("A8hFE"),n6=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rc.URL(t),!0;}catch{return!1;}},n8=async e=>{let t=n6(e);if(!t)return!1;let r=await eN(e,"HEAD");return!!r||!!(r=await eN(e,"GET"));},n5=rh("eSzHt"),n0=rh("255mi"),n9=rh("eO4vc"),nz=rh("2mVwa"),rg=rh("hHq4F");const aH=/v?(\d\S*)/,aq={llvm:ej(),clangtidy:ej(),clangformat:ej(),ninja:"1.11.1",cmake:"3.27.4",gcovr:"6.0",conan:"1.60.2",meson:"1.2.1",kcov:"42",task:"3.29.1",doxygen:er()?"1.9.8-1":"1.9.8",gcc:er()?"13.2.1-3":"13"},aV={pip:"22.2.0",python:"3.7.9"},aX={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-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:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-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:{22:"16.0.4-ubuntu-22.04",20:"16.0.4-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:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}};n$=rh("3WkGD");const az=eP(eQ,{isPromise:!0});rg=rh("hHq4F"),Object.defineProperty(n7={},"__esModule",{value:!0}),n7.getUbuntuVersion=void 0,n7.getUbuntuVersion=e0;const aW=eP(e1,{isPromise:!0}),aK=eP(e8,{isPromise:!0});nj=rh("A8hFE"),rg=rh("hHq4F"),n$=rh("3WkGD"),ie=rh("7GceF"),n0=rh("255mi"),nz=rh("2mVwa"),rg=rh("hHq4F"),nj=rh("A8hFE"),rg=rh("hHq4F"),rm=rh("cLprm"),n$=rh("3WkGD"),it=ip.resolve(__dirname,"../../src/gcc");const aY={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"}};n9=rh("eO4vc"),ie=rh("7GceF"),nj=rh("A8hFE"),rg=rh("hHq4F"),nj=rh("A8hFE"),ir=ip.resolve(__dirname,"../../src/kcov"),rm=rh("cLprm"),rg=rh("hHq4F"),n$=rh("3WkGD"),nj=rh("A8hFE"),nR=rh("2heqc"),rg=rh("hHq4F"),nj=rh("A8hFE"),nR=rh("2heqc");const aQ=rt.env["ProgramFiles(x86)"],aJ=[rt.env["ProgramFiles(x86)"],rt.env.ProgramFiles],aZ=["Enterprise","Professional","Community","BuildTools"],a0=["2022","2019","2017"],a1={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};ii=tx;const a2=`${aQ}\\Microsoft Visual Studio\\Installer`;io=tb,is=function(e,t,r,n,i,o){if("win32"!=rt.platform){nR.info("This is not a Windows virtual environment, bye!");return;}rt.env.PATH+=ip.delimiter+a2;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==i&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tb(o)}" ${a.join(" ")}`;nR.debug("vcvars command-line: "+l);let c=t8.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString(),u=c.split("\f"),p=u[0].split("\r\n"),d=u[1].split("\r\n"),f=u[2].split("\r\n"),h=d.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let m={};for(let e of p){let[t,r]=e.split("=");m[t]=r;}for(let e of(nR.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==m[t]&&(nR.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(";")),nR.exportVariable(t,r));}nR.endGroup(),nR.info("Configured Developer Command Prompt");},rg=rh("hHq4F"),n$=rh("3WkGD");class a3 extends Error{constructor(e){super(e),this.name="TimeoutError";}}class a4 extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const a6=e=>void 0===globalThis.DOMException?new a4(e):new DOMException(e),a8=e=>{let t=void 0===e.reason?a6("This operation was aborted."):e.reason;return t instanceof Error?t:a6(t);},a5=12e5,{readFile:a9,writeFile:a7,chmod:le}=id.promises;(t0=ia||(ia={}))[t0.All=0]="All",t0[t0.ClangFormat=1]="ClangFormat",t0[t0.Core=2]="Core",nZ=rh("fAXcL"),rg=rh("hHq4F"),nj=rh("A8hFE");const lt=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"]),lr=new Set(["10.0.1","15.0.5","15.0.6"]),ln=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"]),li=new Map(),lo={"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"},ls="16.0.4";il=ip.resolve(__dirname,"../../src/llvm");const la=eP(tD,{isPromise:!0}),ll=eP(tU,{isPromise:!0}),lc=eP(tj,{isPromise:!0});rm=rh("cLprm"),nj=rh("A8hFE"),rg=rh("hHq4F"),n$=rh("3WkGD"),ic=ip.resolve(__dirname,"../../src/msvc"),nj=rh("A8hFE"),nj=rh("A8hFE"),rg=rh("hHq4F"),n$=rh("3WkGD"),nj=rh("A8hFE");let lu=!1;const lp={nala:tq,cmake:eC,ninja:tm,python:eF,vcpkg:tK,bazel:ea,conan:function(e,t,r){return e3("conan",e);},meson:function(e,t,r){return e3("meson",e);},gcovr:function(e,t,r){return e3("gcovr",e);},opencppcoverage:tV,llvm:tL,gcc:tc,choco:ee,brew:Q,powershell:tz,ccache:function(e,t,r){switch(process.platform){case"win32":return et("ccache",e);case"darwin":return Z("ccache",e);case"linux":if(er())return el("ccache",e);if(en())return ei([{name:"ccache",version:e}]);if(es())return M([{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 et("sccache",e);case"linux":case"darwin":return Z("sccache",e);default:throw Error("Unsupported platform");}},doxygen:to,graphviz:tr,cppcheck:te,clangtidy:function(e,t,r){return tk(e,t,r);},clangformat:function(e,t,r){return tk(e,t,r,ia.ClangFormat);},msvc:tB,vcvarsall:tS,kcov:tw,make:tG,task:function(e,t,r){return ew("task",e,tW,t,r);},sevenzip:ex},ld=Object.keys(lp),lf=["compiler","architecture","timeout",...ld];nR=rh("2heqc"),rg=rh("hHq4F"),n9=rh("eO4vc"),tJ(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rg.error)("main() panicked!"),(0,rg.error)(e),process.exitCode=1;});
//# sourceMappingURL=setup-cpp.js.map