mirror of https://github.com/aminya/setup-cpp
3 lines
160 KiB
JavaScript
3 lines
160 KiB
JavaScript
function e(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,s){if("function"==typeof t&&(s=t,t={}),!s){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((s,i)=>{r(e,t||{},((e,t)=>{e?i(e):s(t)}))}))}Be(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),s(e,r)}))}function s(e,r,s){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof We)return{binDir:We};const i=t(Ge).sync("brew",{nothrow:!0});return null!==i?(We=be.dirname(i),{binDir:We}):(Re.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),We="/usr/local/bin/",{binDir:We})}function i(e,t){const r=e.options.env||process.env,s=process.cwd(),i=null!=e.options.cwd,n=i&&void 0!==process.chdir&&!process.chdir.disabled;if(n)try{process.chdir(e.options.cwd)}catch(e){}let o;try{o=Ge.sync(e.command,{path:r[et({env:r})],pathExt:t?be.delimiter:void 0})}catch(e){}finally{n&&process.chdir(s)}return o&&(o=be.resolve(i?e.options.cwd:"",o)),o}function n(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 o(e,t){return ut&&1===e&&!t.file?n(t.original,"spawn"):null}function a(e,t,r){const s=Qe(e,t,r),i=Re.spawn(s.command,s.args,s.options);return lt.hookChildProcess(i,s),i}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,s=ar(t);return await new Promise(((t,i)=>{const n=e=>{e&&s.getBufferedLength()<=lr.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),i(e)};(async()=>{try{await dr(e,s),t()}catch(e){n(e)}})(),s.on("data",(()=>{s.getBufferedLength()>r&&n(new pr)}))})),s.getBufferedValue()}function l(){var e;return void 0!==Lr||(Lr=(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Ge).sync("sudo",{nothrow:!0})),Lr}function u(e,r,s){return l()?t(Ke).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:s,stdio:"inherit"}):t(Ke).sync(e,r,{stdio:"inherit"})}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?be.join("/Users/",process.env.SUDO_USER,e):be.join("/home/",process.env.SUDO_USER,e):t(Dr)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"]){return t(Ke)((()=>{if(void 0===Ur){const e=t(Ge).sync("pwsh",{nothrow:!0});null!==e&&(Ur=e);const r=t(Ge).sync("powershell",{nothrow:!0});null!==r&&(Ur=r)}if(void 0===Ur)throw Error("Could not find powershell");return Ur})(),[...r,"-c",e],{stdio:"inherit"})}async function h(e,r,s=!1){const i=s?void 0===(n=r)?"":t(Gr)(n):r;var n;try{if(Fr.isGitHubCI())try{Ue.exportVariable(e,i)}catch(t){jr.error(t),await m(e,i)}else await m(e,i)}catch(t){jr.error(t),Ue.setFailed(`Failed to export environment variable ${e}=${i}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${be.delimiter}${process.env.PATH}`;try{if(Fr.isGitHubCI())try{Ue.addPath(e)}catch(t){jr.error(t),await g(e)}else await g(e)}catch(t){jr.error(t),Ue.setFailed(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function m(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return await p(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void Ue.info(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return v(),Ee.appendFileSync(qr,`\nexport ${e}="${r}"\n`),void Ue.info(`${e}="${r}" was added to "${qr}`)}process.env[e]=r}async function g(e){switch(process.platform){case"win32":return await p(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void Ue.info(e+" was added to the PATH.");case"linux":case"darwin":return v(),Ee.appendFileSync(qr,`\nexport PATH=${e}:$PATH\n`),void Ue.info(`${e} was added to "${qr}"`);default:return}}function v(){if(Vr)return;const e="export SOURCE_CPPRC=0";if(Ee.existsSync(qr)&&Ee.readFileSync(qr,"utf8").includes(e))return;Ee.appendFileSync(qr,`\n${e}\n`),Ue.info(`Added ${e} to ${qr}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${qr}" ]]; then source "${qr}"; fi\n`;try{const e=d(".profile");Ee.appendFileSync(e,t),Ue.info(`${t} was added to ${e}`);const r=d(".bashrc");Ee.appendFileSync(r,t),Ue.info(`${t} was added to ${r}`)}catch(e){jr.warning(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}Vr=!0}function y(e,t,r=!0){Ue.info(`Installing ${e} ${null!=t?t:""} via apt`);const s="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",Xr||(u(s,["update","-y"]),Xr=!0),!Yr){u(s,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);try{u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","3B4FE6ACC0B21F32"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","40976EAF437D05B5"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","1E9377A2BA9EF27F"])}catch(e){jr.warning("Failed to add keys: "+e)}Yr=!0}if(Array.isArray(r)){for(const e of r)u("add-apt-repository",["--update","-y",e]);u(s,["update","-y"])}if(void 0!==t&&""!==t)try{u(s,["install","--fix-broken","-y",`${e}=${t}`])}catch{u(s,["install","--fix-broken","-y",`${e}-${t}`])}else u(s,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function w(e,t){return Fr.isGitHubCI()?u("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(v(),Ee.appendFileSync(qr,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi\n`))}function x(e,r){return Ue.info(`Installing ${e} ${null!=r?r:""} via brew`),Jr&&null!==t(Ge).sync("brew",{nothrow:!0})||(s(0,0,process),Jr=!0),t(Ke).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function b(e,r,s){if("win32"!==process.platform)return;if("string"==typeof Wr)return{binDir:Wr};const i=t(Ge).sync("choco",{nothrow:!0});if(null!==i)return Wr=be.dirname(i),{binDir:Wr};let n="powershell.exe";const o=t(Ge).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==o&&(n=o),t(Ke).sync(n,["-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"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await f(a);const c=t(Ge).sync("choco",{nothrow:!0});var l;return Wr=null!==c?be.dirname(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",Ee.existsSync(Wr)?{binDir:Wr}:void 0}async function E(e,r,s=[]){Ue.info(`Installing ${e} ${null!=r?r:""} via chocolatey`),Kr&&null!==t(Ge).sync("choco",{nothrow:!0})||(await b(0,0,process),Kr=!0);const i=process.env.PATH,n={...process.env};var o;delete n.TMP,delete n.TEMP,delete n.Path,n.PATH=i,t(Ke).sync("choco",void 0!==r&&""!==r?["install","-y",e,"--version="+r,...s]:["install","-y",e,...s],{env:n,extendEnv:!1,stdio:"inherit"});const a=(null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function S(e){return"win32"===process.platform?e+".exe":e}function O(e){return"win32"===process.platform?e+".bat":e+".sh"}function _(e,t,r){switch(process.platform){case"win32":return E("7zip",e);case"darwin":return x("p7zip",e);case"linux":return y("p7zip-full",e);default:throw Error("Unsupported platform")}}async function $(e,r){return await t(Ke)(await(async()=>(void 0===es&&(null===t(Ge).sync("7z",{nothrow:!0})&&await _("",0,process),es="7z"),es))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),r}function C(e,t){return $(e,t)}function T(e,t){return $(e,t)}async function R(e,r,s=["--strip-components=0"]){try{await Zr.mkdirP(r)}catch{}try{await t(Ke)("tar",["xf",e,"-C",r,...s],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&jr.warning(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return r}async function I(e,t,r,s,i){var n,o;Ue.info(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(n=process.env.RUNNER_TEMP)&&void 0!==n?n:xe.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(o=process.env.RUNNER_TOOL_CACHE)&&void 0!==o?o:be.join(xe.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:l,extractedFolderName:u,extractFunction:d}=await r(t,process.platform,i);if(Fr.isGitHubCI())try{const r=Qr.find(e,t);if(r){const s=be.join(r,u),i=be.join(s,c);if(Ee.existsSync(i)&&Ee.existsSync(be.join(i,l)))return Ue.info(`${e} ${t} was found in the cache at ${i}.`),await f(i),{installDir:s,binDir:i}}}catch{}const p=be.join(s,u),h=be.join(p,c),m=be.join(h,l);if(!Ee.existsSync(h)||!Ee.existsSync(m)){Ue.info(`Download and extract ${e} ${t}`),ts||("linux"===process.platform&&(y("unzip"),y("tar"),y("xz-utils")),ts=!0);try{const e=await Qr.downloadTool(a);await(null==d?void 0:d(e,s))}catch(r){throw Error(`Failed to download ${e} ${t} ${i}: ${r}`)}}return Ue.info(`Add ${h} to PATH`),await f(h),Fr.isGitHubCI()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await Qr.cacheDir(s,e,t),{installDir:p,binDir:h}}function A(e,t,r){const s=(e=>"win32"===e?"windows":e)(t),i=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),n="win32"===t,o=n?"zip":"tar.gz";return{binRelativeDir:"",binFileName:S("task"),extractedFolderName:"",extractFunction:n?T:R,url:`https://github.com/go-task/task/releases/download/v${e}/task_${s}_${i}.${o}`}}function P(e,r,s){var i;const n=null!==(i=t(ss)(e))&&void 0!==i?i:e;switch(r){case"win32":{const r=t(rs)(n,"v3.19.6");let i;i=["ia32","x86","i386","x32"].includes(s)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const o=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:o,extractFunction:T,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{const r=`cmake-${e}-${t(rs)(n,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:S("cmake"),extractedFolderName:r,extractFunction:Qr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(rs)(n,"v3.19.8");let i;i=["aarch64"].includes(s)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const o=`cmake-${e}-${i}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:o,extractFunction:Qr.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function N(e,t,r){return I("cmake",e,P,t,r)}async function k(e,t,r){if(!Fr.isGitHubCI())return L(e,t);try{const{setupActionsPython:s}=await Me("175fe");return s(e,t,r)}catch(r){return jr.warning(""+r),L(e,t)}}async function L(e,t,r){switch(process.platform){case"win32":return t?await E("python3",e,["--params=/InstallDir:"+t]):await E("python3",e),await(async e=>{jr.info(`Add ${e} to PATH`),await f(e)})(t),{installDir:t,binDir:t};case"darwin":return x("python3",e);case"linux":{const t=y("python3",e);return y("python3-pip"),t}default:throw Error("Unsupported platform")}}function D(e){return new Promise((t=>{Oe.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function j(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function F(e,t,r=null){return M(t,e)?"linux"===process.platform&&["llvm","clangtidy","clangformat"].includes(e)&&null!==r&&[20,18,16].includes(r[0])&&4===r[1]?`${18===r[0]?"13.0.1":"13.0.0"}-ubuntu-${r[0]}.0${r[1]}`:as[e]:null!=t?t:""}function M(e,t){return"true"===e||void 0===e&&t in as}async function U(e,r){if(Ue.info(`Installing ${e} ${null!=r?r:""} via pip`),void 0===cs){if(null!==t(Ge).sync("python3",{nothrow:!0}))cs="python3";else{if(null===t(Ge).sync("python",{nothrow:!0})||!await(async(e,r,s=/v?(\d\S*)/)=>{const i=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const s=await is.getExecOutput(e,["--version"]);return null===(r=(s.stdout||s.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,s);return"string"==typeof i&&"string"==typeof r&&""!==i&&""!==r&&-1!==t(ns)(i,r)})("python","3.0.0")){if(Ue.info("python3 was not found. Installing python"),await k(F("python",void 0),"",process.arch),us)throw Error("Failed to install python");return us=!0,U(e,r)}cs="python"}"win32"===process.platform?t(Ke).sync(cs,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&y("python3-pip")}if(t(Ke).sync(cs,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===ls){if("linux"===process.platform)ls="/home/runner/.local/bin/";else if("darwin"===process.platform)ls="/usr/local/bin/";else try{ls=be.join((await is.getExecOutput(cs+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{ls=be.join((await is.getExecOutput(cs+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}Ue.info(ls+" to PATH"),await f(ls)}return{binDir:ls}}async function G(e,t,r){switch(process.platform){case"win32":return await E("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await f(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return x("graphviz",e);case"linux":return y("graphviz",e);default:throw Error("Unsupported platform")}}function H(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:S("doxygen"),extractedFolderName:t,extractFunction:Qr.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:S("doxygen"),extractedFolderName:t,extractFunction:T,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function z(){if("darwin"===process.platform)try{const e=await is.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):jr.error("SDKROOT not set")}catch(e){jr.error(e)}}function B(e,t,r){if("win32"===t){const t=hs[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const s="ia32"===r?"i686":"x86_64",i="seh";return{binRelativeDir:"bin/",binFileName:S("g++"),extractedFolderName:"mingw64",extractFunction:$,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${s}-posix-${i}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function q(e,r,s){let i;switch(process.platform){case"win32":"arm"!==s&&"arm64"!==s||await E("gcc-arm-embedded",e);try{i=await I("g++",e,B,r,s)}catch(t){jr.info(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await(async(e,t)=>{let r;var s,i;return await E("mingw",e),"x64"===t&&Ee.existsSync("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&Ee.existsSync("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):Ee.existsSync((null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,s)}break;case"darwin":i=x("gcc",e);break;case"linux":"x64"===s?(y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),i=y("g++",e,[])):(jr.info(`Install g++-multilib because gcc for ${s} was requested`),y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]),i=y("g++-multilib",e,[]));break;default:throw Error("Unsupported platform for "+s)}if(void 0!==i)return await(async(e,r)=>{const s=[];if("win32"===process.platform)s.push(h("CC",S(r+"/gcc")),h("CXX",S(r+"/g++")));else{var i;const n=t(ds)(null!==(i=t(ss)(e))&&void 0!==i?i:e);5>n?(s.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),"linux"===process.platform&&(w("cc",`${r}/gcc-${e}`),w("cxx",`${r}/g++-${e}`),w("gcc",`${r}/gcc-${e}`),w("g++",`${r}/g++-${e}`))):(s.push(h("CC",`${r}/gcc-${n}`),h("CXX",`${r}/g++-${n}`)),"linux"===process.platform&&(w("cc",`${r}/gcc-${n}`),w("cxx",`${r}/g++-${n}`),w("gcc",`${r}/gcc-${n}`),w("g++",`${r}/g++-${n}`)))}s.push(z()),Fr.isGitHubCI()&&(()=>{const e=t(be).join(ps,"gcc_matcher.json");if(!Ee.existsSync(e))return jr.warning("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");jr.info("::add-matcher::"+e)})(),await Promise.all(s)})(e,i.binDir),i}function V(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function X(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Y(e,r){switch(e){case"darwin":return(e=>{if(gs.has(e))return null;const r="clang+llvm-",s=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(rs)(e,"9.0.1")?X(e,r,s):V(e,r,s)})(r);case"linux":return(e=>{let r=e;const s=vs.get(r);let i;if(void 0!==s&&(r=s),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!ms.has(e))throw Error("Unsupported Ubuntu version: "+e);i=r.replace(e,""),r=j(ms,e)[0]}else""!==r&&r in ys?i=ys[r]:(i=ys["14.0.0"],jr.warning(`Falling back to LLVM version 14.0.0 ${i} for the Ubuntu.`));const n="clang+llvm-",o="5.0.0"===r?`-linux-x86_64${i}.tar.xz`:`-x86_64-linux-gnu${i}.tar.xz`;return t(rs)(r,"9.0.1")?X(r,n,o):V(r,n,o)})(r);case"win32":return(async e=>{if(ws.has(e))return null;const r="LLVM-",s=t(rs)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=t(rs)(e,"9.0.1");let n,o=!1;return i&&(n=X(e,r,s),await D(n)||(o=!0)),!o&&i||(n=V(e,r,s)),n})(r);default:return null}}async function W(e,t,r){const[s,i]=await(async(e,t,r,s)=>{if("linux"===t&&r.includes("ubuntu")){const e=await s(t,r);if(null!==e&&await D(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const i of j(e,r)){const e=await s(t,i);if(null!==e&&await D(e))return[i,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(ms,t,e,Y);return Ue.setOutput("version",s),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:S("clang"),extractFunction:"win32"===t?C:(e,t)=>R(e,t,["--strip-components=1"])}}async function J(e,r,s){const i=await K(e,r,s);var n;return await(async(e,r)=>{const s=(e=>{if(null===t(os)(e))try{const r=t(ss)(e);if(null!==r)return jr.info(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),i=be.join(e,"lib");var n;const o=null!==(n=process.env.LD_LIBRARY_PATH)&&void 0!==n?n:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${i}${be.delimiter}${o}`),h("DYLD_LIBRARY_PATH",`${i}${be.delimiter}${c}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",S(e+"/bin/clang")),h("CXX",S(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),z()];if("win32"!==process.platform){const r=t(ds)(s);Ee.existsSync(`${e}/lib/clang/${s}/include`)?l.push(h("CPATH",`${e}/lib/clang/${s}/include`)):Ee.existsSync(`${e}/lib/clang/${r}/include`)&&l.push(h("CPATH",`${e}/lib/clang/${r}/include`))}"linux"===process.platform&&(w("cc",e+"/bin/clang"),w("cxx",e+"/bin/clang++"),w("clang",e+"/bin/clang"),w("clang++",e+"/bin/clang++"),w("lld",e+"/bin/lld"),w("ld.lld",e+"/bin/ld.lld"),w("llvm-ar",e+"/bin/llvm-ar")),Fr.isGitHubCI()&&Q(),await Promise.all(l)})(null!==(n=i.installDir)&&void 0!==n?n:r,e),i}async function K(e,t,r){const s=await I("llvm",e,W,t,r);return xs||("linux"===process.platform&&(await q(F("gcc",void 0),"",r),y("libtinfo-dev")),xs=!0),s}function Z(e,t,r){return Fr.isGitHubCI()&&Q(),K(e,t,r)}function Q(){const e=be.join(fs,"llvm_matcher.json");if(!Ee.existsSync(e))return jr.warning("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");jr.info("::add-matcher::"+e)}function ee(e,t,r){const s=new As(e,t,r);process.stdout.write(""+s+Rs.EOL)}function te(e){Cs.issue("error",e instanceof Error?""+e:e)}function re(e){Cs.issue("group",e)}function se(){Cs.issue("endgroup")}function ie(e){return Object.values(Bs).includes(e)?e:e in Bs?Bs[e]:e}function ne(e){if(Object.keys(Bs).includes(e))return e;for(const[t,r]of Object.entries(Bs))if(r===e)return t;return e}function oe(e){const t=ie(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let s=((e,t)=>{try{return(""+Re.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Os.warning("vswhere failed: "+e)}return null})(0,r);if(s&&Ee.existsSync(s))return Os.info("Found with vswhere: "+s),s;Os.info("Not found with vswhere");const i=e?[ne(e)]:zs;for(const e of Gs)for(const t of i)for(const r of Hs)if(s=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Os.info("Trying standard location: "+s),Ee.existsSync(s))return Os.info("Found standard location: "+s),s;if(Os.info("Not found in standard locations"),s=Us+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Ee.existsSync(s))return Os.info("Found VS 2015: "+s),s;throw Os.info("Not found in VS 2015 location: "+s),Error("Microsoft Visual Studio not found")}function ae(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function ce(e,t,r,s,i,n,o){void 0!==t&&Ee.existsSync(t)&&(jr.info(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),Ss((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),i,s,n,o,e)}async function le(e,r,s,i,n,o){if("win32"!==process.platform)return;const a=bs(e);jr.info(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=Es(a);u=!0,jr.info("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await E("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await E("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await E("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await E("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):jr.error(`The given MSVC versions ${e} is not supported yet.`)}catch(e){jr.error(e)}await ce(a,l,s,c,i,n,o),Fr.isGitHubCI()&&(()=>{const e=t(be).join(Xs,"msvc_matcher.json");if(!Ee.existsSync(e))return jr.warning("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");jr.info("::add-matcher::"+e)})()}function ue(e,t,r){const s=(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:S("ninja"),extractedFolderName:"",extractFunction:T,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${s}.zip`}}function de(e){return null==e?[]:Array.isArray(e)?e:[e]}function pe(e,t,r,s){var i,n=e[t],o=~s.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~s.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==n?o:Array.isArray(n)?n.concat(o):[n,o]}function he(e){const t=parseInt(e.replace(/^v/,""),10);return 38===t&&(e="v38"),39>t?{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"kcov-"+t,binRelativeDir:"build/",binFileName:S("kcov"),extractFunction:fe}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/v${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:S("kcov"),extractFunction:R}}async function fe(e,r){const s=await R(e,r,["--strip-components=1"]);return null===t(Ge).sync("cmake",{nothrow:!0})&&await N(F("cmake",void 0),be.join(t(Dr)(""),"cmake"),""),"linux"===process.platform&&(y("libdw-dev"),y("libcurl4-openssl-dev")),await t(Ke)("cmake",["-S","./","-B","./build"],{cwd:s,stdio:"inherit"}),await t(Ke)("cmake",["--build","./build","--config","Release"],{cwd:s,stdio:"inherit"}),u("cmake",["--install","./build"],s),s}async function me(e){Fr.isGitHubCI()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=ge(e);var s;r.help&&jr.info('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--meson\n--conan\n--make\n--task\n--ccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n\n--python\n--choco\n--brew\n--sevenzip\n--graphviz\n ');const i=null!==(s=r.architecture)&&void 0!==s?s:process.arch;var n;const o=null!==(n=process.env.SETUP_CPP_DIR)&&void 0!==n?n:d(""),a=[],c=[],l=Ys.create({autoloadLocales:!0});let u,p;Ys.addLocale(t(Vs)),Ws.addLocale(t(Js));let f=null;try{f=await(async()=>{if("linux"===process.platform){const e=await Ks.getUbuntuVersion();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){jr.warning(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const s=t.slice(0,r).concat(t.slice(r+1)),i=t[r];if(!M(e[i],i))for(let t=0;s.length>t;t++){const r=s[t];if(M(e[r],s[t]))e[r]=e[i];else if(e[i]!==e[s[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return jr.error("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of ei){const t=r[e];if(void 0!==t){u=Date.now(),Ue.startGroup(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await ce(F(e,t,f),void 0,i,void 0,void 0,!1,!1);else{const s=Qs[e],n=be.join(o,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await s(F(e,t,f),n,i)}a.push(we(e,r))}catch(t){jr.error(t),c.push(e+" failed to install")}Ue.endGroup(),p=Date.now(),jr.info("took "+(l.format(u,p)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=ve(m);switch(Ue.startGroup(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await J(F("llvm",t,f),be.join(o,"llvm"),i);a.push(we("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await q(F("gcc",t,f),be.join(o,"gcc"),i);a.push(we("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await le(F("msvc",t,f),be.join(o,"msvc"),i);a.push(we("msvc",e));break}case"appleclang":case"applellvm":Ue.notice("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(we("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}Ue.endGroup(),p=Date.now(),jr.info("took "+(l.format(u,p)||"0 seconds"))}}catch(e){jr.error(e),c.push("Failed to install the "+m),Ue.endGroup(),p=Date.now(),jr.info("took "+(l.format(u,p)||"0 seconds"))}if(0===a.length&&0===c.length)return jr.warning("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>jr.success(e))),c.forEach((e=>jr.error(e))),jr.info("setup_cpp finished"),!Fr.isGitHubCI())switch(process.platform){case"win32":jr.warning("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":jr.warning("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function ge(e){return((e,t)=>{var r,s,i,n,o,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=de(t.string),t.boolean=de(t.boolean),p)for(r in t.alias)for(s=t.alias[r]=de(t.alias[r]),c=0;s.length>c;c++)(t.alias[s[c]]=s.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(s=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(s[l]);for(c=t.string.length;c-- >0;)for(l=(s=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(s[l]);if(f)for(r in t.default)if(n=typeof t.default[r],s=t.alias[r]=t.alias[r]||[],void 0!==t[n])for(t[n].push(r),c=0;s.length>c;c++)t[n].push(s[c]);const m=h?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(i=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;i.length>l&&45===i.charCodeAt(l);l++);if(0===l)a._.push(i);else if("no-"===i.substring(l,l+3)){if(n=i.substring(l+3),h&&!~m.indexOf(n))return t.unknown(i);a[n]=!1}else{for(u=l+1;i.length>u&&61!==i.charCodeAt(u);u++);for(n=i.substring(l,u),o=i.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],s=2===l?[n]:n,u=0;s.length>u;u++){if(n=s[u],h&&!~m.indexOf(n))return t.unknown("-".repeat(l)+n);pe(a,n,s.length>u+1||o,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(s=t.alias[r]||[];s.length>0;)a[s.shift()]=a[r];return a})(e,{string:ti,default:Object.fromEntries(ti.map((e=>[e,ye(e)]))),alias:{h:"help"},boolean:"help"})}function ve(e){const r=e.split("-"),s=r[0];if(1 in r){const e=r[1];return null!==t(os)(e)||jr.info(`Invalid semver version ${e} used for the compiler.`),{compiler:s,version:e}}return{compiler:s,version:void 0}}function ye(e){const t=Ue.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function we(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}var xe=require("os"),be=require("path"),Ee=require("fs"),Se=require("http"),Oe=require("https");require("net");var _e=require("tls"),$e=require("events"),Ce=require("assert"),Te=require("util"),Re=require("child_process"),Ie=require("stream"),Ae=require("crypto"),Pe=require("string_decoder"),Ne=require("timers"),ke=require("buffer"),Le=require("process"),De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},je={},Fe={},Me=De.parcelRequire810d;null==Me&&((Me=e=>{if(e in je)return je[e].exports;if(e in Fe){var t=Fe[e];delete Fe[e];var r={id:e,exports:{}};return je[e]=r,t.call(r.exports,r,r.exports),r.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=(e,t)=>{Fe[e]=t},De.parcelRequire810d=Me),Me.register("jdDFH",(function(e,t){"use strict";function r(e,t){const 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 s(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function i(e){u.issue("group",e)}function n(){u.issue("endgroup")}var o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.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;var u=Me("i9XD9"),d=Me("4Oy4H"),p=Me("3lsVI");const h=c(xe),f=c(be);var m,g,v=Me("7ujnv");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";d.issueCommand("ENV",`${e}<<${t}${h.EOL}${r}${h.EOL}${t}`)}else u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const s=r(e,t);if(["true","True","TRUE"].includes(s))return!0;if(["false","False","FALSE"].includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,s(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=s,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=i,e.exports.endGroup=n,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;i(e);try{r=yield t()}finally{n()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))};var y=Me("Kr4hr");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}})})),Me.register("i9XD9",(function(e,t){"use strict";function r(e,t,r){const s=new c(e,t,r);process.stdout.write(""+s+o.EOL)}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const o=n(xe);var a=Me("3lsVI");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${t=i,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Me.register("3lsVI",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Me.register("4Oy4H",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(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 s(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const n=i(Ee),o=i(xe);var a=Me("3lsVI");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!n.existsSync(r))throw Error("Missing file at path: "+r);n.appendFileSync(r,`${a.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}})),Me.register("7ujnv",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var s=Me("ba1Cu"),i=Me("FDzJa"),n=Me("jdDFH");class o{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(o.getRequestToken())],r)}static getRequestToken(){const 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(){const 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*(){const r=o.createHttpClient(),s=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),i=null===(t=s.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=o.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),n.debug("ID token url is "+t);const r=yield o.getCall(t);return n.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=o})),Me.register("ba1Cu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Me("8NGVX");let s;var i,n,o,a,c;(n=i=e.exports.HttpCodes||(e.exports.HttpCodes={}))[n.OK=200]="OK",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.ResourceMoved=302]="ResourceMoved",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.SwitchProxy=306]="SwitchProxy",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.TooManyRequests=429]="TooManyRequests",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",(a=o=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(c=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=r.getProxyUrl(new URL(e));return t?t.href:""};const l=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],u=[i.BadGateway,i.ServiceUnavailable,i.GatewayTimeout],d=["OPTIONS","GET","DELETE","HEAD"];class p extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,p.prototype)}}e.exports.HttpClientError=p;class h{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])})),this.message.on("end",(()=>{e(""+r)}))}))}}e.exports.HttpClientResponse=h,e.exports.isHttps=e=>"https:"===new URL(e).protocol;class f{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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,s){return this.request(e,t,r,s)}async getJson(e,t={}){t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,c.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,c.ApplicationJson);let i=await this.post(e,s,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,c.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,c.ApplicationJson);let i=await this.put(e,s,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let s=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,c.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,c.ApplicationJson);let i=await this.patch(e,s,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,s){if(this._disposed)throw Error("Client has already been disposed.");let n,o=new URL(t),a=this._prepareRequest(e,o,s),c=this._allowRetries&&-1!=d.indexOf(e)?this._maxRetries+1:1,p=0;for(;c>p;){if(n=await this.requestRaw(a,r),n&&n.message&&n.message.statusCode===i.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(n)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):n}let t=this._maxRedirects;for(;-1!=l.indexOf(n.message.statusCode)&&this._allowRedirects&&t>0;){const i=n.message.headers.location;if(!i)break;let c=new URL(i);if("https:"==o.protocol&&o.protocol!=c.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(await n.readBody(),c.hostname!==o.hostname)for(let e in s)"authorization"===e.toLowerCase()&&delete s[e];a=this._prepareRequest(e,c,s),n=await this.requestRaw(a,r),t--}if(-1==u.indexOf(n.message.statusCode))return n;p+=1,c>p&&(await n.readBody(),await this._performExponentialBackoff(p))}return n}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,s)=>{this.requestRawWithCallback(e,t,((e,t)=>{e&&s(e),r(t)}))}))}requestRawWithCallback(e,t,r){let s;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,n=(e,t)=>{i||(i=!0,r(e,t))},o=e.httpModule.request(e.options,(e=>{let t=new h(e);n(null,t)}));o.on("socket",(e=>{s=e})),o.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),n(Error("Request timeout: "+e.options.path),null)})),o.on("error",(e=>{n(e,null)})),t&&"string"==typeof t&&o.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{o.end()})),t.pipe(o)):o.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const s={};s.parsedUrl=t;const i="https:"===s.parsedUrl.protocol;s.httpModule=i?Oe:Se;const n=i?443:80;return s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(s.options)})),s}_mergeHeaders(e){const t=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let s;var i;return this.requestOptions&&this.requestOptions.headers&&(s=(i=this.requestOptions.headers,Object.keys(i).reduce(((e,t)=>(e[t.toLowerCase()]=i[t],e)),{}))[t]),e[t]||s||r}_getAgent(e){let t,i=r.getProxyUrl(e),n=i&&i.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const o="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Se.globalAgent.maxSockets),n){s||(s=Me("bbp3j"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`},host:i.hostname,port:i.port}};let r;const n="https:"===i.protocol;r=o?n?s.httpsOverHttps:s.httpsOverHttp:n?s.httpOverHttps:s.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=o?new Oe.Agent(e):new Se.Agent(e),this._agent=t}return t||(t=o?Oe.globalAgent:Se.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise((async(r,s)=>{const n=e.message.statusCode,o={statusCode:n,result:null,headers:{}};let a,c;n==i.NotFound&&r(o);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),o.result=a),o.headers=e.message.headers}catch(e){}if(n>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+n+")";let t=new p(e,n);t.result=o.result,s(t)}else r(o)}))}}e.exports.HttpClient=f})),Me.register("8NGVX",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let s=[e.hostname.toUpperCase()];"number"==typeof t&&s.push(`${s[0]}:${t}`);for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(s.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getProxyUrl=e=>{let t,s,i="https:"===e.protocol;return r(e)||(s=i?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,s&&(t=new URL(s))),t},e.exports.checkBypass=r})),Me.register("bbp3j",((e,t)=>{e.exports=Me("fNJ5J")})),Me.register("fNJ5J",(function(t,r){function s(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Se.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,s,i)=>{for(var o=n(r,s,i),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===o.host&&l.port===o.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function i(e,t){var r=this;s.prototype.createSocket.call(r,e,(s=>{var i=e.request.getHeader("host"),n=o({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):e.host}),a=_e.connect(0,n);r.sockets[r.sockets.indexOf(s)]=a,t(a)}))}function n(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function o(e){for(var t=1,r=arguments.length;r>t;++t){var s=arguments[t];if("object"==typeof s)for(var i=Object.keys(s),n=0,o=i.length;o>n;++n){var a=i[n];void 0!==s[a]&&(e[a]=s[a])}}return e}var a,c,l,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new s(e);return t.request=Se.request,t},c=e=>{var t=new s(e);return t.request=Se.request,t.createSocket=i,t.defaultPort=443,t},l=e=>{var t=new s(e);return t.request=Oe.request,t},u=e=>{var t=new s(e);return t.request=Oe.request,t.createSocket=i,t.defaultPort=443,t},Te.inherits(s,$e.EventEmitter),s.prototype.addRequest=function(e,t,r,s){var i=this,a=o({request:e},i.options,n(t,r,s));this.maxSockets>i.sockets.length?i.createSocket(a,(t=>{function r(){i.emit("free",t,a)}function s(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",s),t.removeListener("agentRemove",s)}t.on("free",r),t.on("close",s),t.on("agentRemove",s),e.onSocket(t)})):i.requests.push(a)},s.prototype.createSocket=function(e,t){function r(r,n,o){var c;return a.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(i)):o.length>0?(p("got illegal response body from proxy"),n.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void s.removeSocket(i)):(p("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=n,t(n))}var s=this,i={};s.sockets.push(i);var n=o({},s.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")),p("making CONNECT request");var a=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,s)=>{process.nextTick((()=>{r(e,t,s)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),p("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),s.removeSocket(i)})),a.end()},s.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,(e=>{r.request.onSocket(e)}))}},d=p=()=>{}})),Me.register("FDzJa",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}}})),Me.register("Kr4hr",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:s,appendFile:i,writeFile:n}=Ee.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-markdown-summary",e.exports.markdownSummary=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const 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 markdown summaries.`);try{yield s(t,Ee.constants.R_OK|Ee.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={}){const s=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${s}>${t}</${e}>`:`<${e}${s}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),s=t?n:i;return yield s(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(xe.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),s=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(s).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",s=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(r,s);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:s,rowspan:i}=e,n=t?"th":"td",o=Object.assign(Object.assign({},s&&{colspan:s}),i&&{rowspan:i});return this.wrap(n,r,o)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:s,height:i}=r||{},n=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),o=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(o).addEOL()}addHeading(e,t){const r="h"+t,s=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),s=this.wrap("blockquote",e,r);return this.addRaw(s).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}})),Me.register("ftrAD",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var s=0;r.length>s;s++){var i=r[s].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1})(t,r)}function s(e,t,s){Ee.stat(e,((i,n)=>{s(i,!i&&r(n,e,t))}))}e.exports=s,s.sync=(e,t)=>r(Ee.statSync(e),e,t)})),Me.register("9yF3I",((e,t)=>{function r(e,t,r){Ee.stat(e,((e,i)=>{r(e,!e&&s(i,t))}))}function s(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,s=e.uid,i=e.gid,n=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&i===o||r&a&&s===n||r&l&&0===n})(e,t)}e.exports=r,r.sync=(e,t)=>s(Ee.statSync(e),t)})),Me.register("bJALw",((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")})),Me.register("ditiY",((t,r)=>{function s(e){return l.isGitHubCI()?c.error(e):console.log(`[31m${e}[0m`)}function i(e){return console.log(`[32m${e}[0m`)}function n(e){return l.isGitHubCI()?c.warning(e):console.log(`[33m${e}[0m`)}function o(e){return l.isGitHubCI()?c.notice(e):console.log(`[94m${e}[0m`)}function a(e){return l.isGitHubCI()?c.info(e):console.log(e)}e(t.exports,"error",(()=>s)),e(t.exports,"success",(()=>i)),e(t.exports,"warning",(()=>n)),e(t.exports,"notice",(()=>o)),e(t.exports,"info",(()=>a));var c=Me("jdDFH"),l=Me("di6NI")})),Me.register("di6NI",((t,r)=>{function s(){return"true"===process.env.CI&&"true"===process.env.GITHUB_ACTIONS}e(t.exports,"isGitHubCI",(()=>s))})),Me.register("fvrnx",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(h.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=h.getCmdPath();(yield h.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield h.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield h.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield h.unlink(e)}}))}function s(e){return u(this,void 0,void 0,(function*(){Ce.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function i(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(p.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(p.delimiter))e&&r.push(e);const s=[];for(const i of r){const r=yield h.tryGetExecutablePath(p.join(i,e),t);r&&s.push(r)}return s}))}function n(e,t,r,i){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield s(t);const a=yield h.readdir(e);for(const s of a){const a=`${e}/${s}`,c=`${t}/${s}`;(yield h.lstat(a)).isDirectory()?yield n(a,c,r,i):yield o(a,c,i)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function o(e,t,r){return u(this,void 0,void 0,(function*(){if((yield h.lstat(e)).isSymbolicLink()){try{yield h.lstat(t),yield h.unlink(t)}catch(e){"EPERM"===e.code&&(yield h.chmod(t,"0666"),yield h.unlink(t))}const r=yield h.readlink(e);yield h.symlink(r,t,h.IS_WINDOWS?"junction":null)}else(yield h.exists(t))&&!r||(yield h.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.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;const d=l(Re),p=l(be),h=l(Me("2GOko")),f=Te.promisify(d.exec),m=Te.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:s,recursive:i,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!s)return;const l=c&&c.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!i)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield n(e,l,0,s)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield o(e,l,s)}}))},e.exports.mv=function(e,t,i={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let s=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),s=yield h.exists(t)),s){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield r(t)}}yield s(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=s,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(h.IS_WINDOWS?`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.`:`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}const s=yield i(t);return s&&s.length>0?s[0]:""}))},e.exports.findInPath=i})),Me.register("2GOko",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var s,i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.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.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=o(Ee),l=o(be);e.exports.chmod=(s=c.promises).chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,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.exists=function(t){return a(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 a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))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,s){return a(this,void 0,void 0,(function*(){let i;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(s.some((t=>t.toUpperCase()===e)))return t}else if(r(i))return t;const n=t;for(const o of s){t=n+o,i=void 0;try{i=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(i&&i.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),s=l.basename(t).toUpperCase();for(const i of yield e.exports.readdir(r))if(s===i.toUpperCase()){t=l.join(r,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(i))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Me.register("1GQ3N",(function(e,t){function r(e,t){const r=[];t=t||b.arch();const s=E.join(c(),e);if(w.existsSync(s)){const e=w.readdirSync(s);for(const i of e)if(o(i)){const e=E.join(s,i,t||"");w.existsSync(e)&&w.existsSync(e+".complete")&&r.push(i)}}return r}function s(e){return m(this,void 0,void 0,(function*(){return e||(e=E.join(l(),C.default())),yield y.mkdirP(e),e}))}function i(e,t,r){return m(this,void 0,void 0,(function*(){const s=E.join(c(),e,O.clean(t)||t,r||"");v.debug("destination "+s);const i=s+".complete";return yield y.rmRF(s),yield y.rmRF(i),yield y.mkdirP(s),s}))}function n(e,t,r){const s=E.join(c(),e,O.clean(t)||t,r||"");w.writeFileSync(s+".complete",""),v.debug("finished caching tool")}function o(e){const t=O.clean(e)||"";v.debug("isExplicit: "+t);const r=null!=O.valid(t);return v.debug("explicit? "+r),r}function a(e,t){let r="";v.debug(`evaluating ${e.length} versions`);for(let s=(e=e.sort(((e,t)=>O.gt(e,t)?1:-1))).length-1;s>=0;s--){const i=e[s];if(O.satisfies(i,t)){r=i;break}}return v.debug(r?"matched: "+r:"match not found"),r}function c(){const e=process.env.RUNNER_TOOL_CACHE||"";return Ce.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function l(){const e=process.env.RUNNER_TEMP||"";return Ce.ok(e,"Expected RUNNER_TEMP to be defined"),e}function u(e,t){const r=De[e];return void 0!==r?r:t}var d=be.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib"),p=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),h=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),f=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&p(t,e,r);return h(t,e),t}),m=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))),g=e.exports&&e.exports.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.evaluateVersions=e.exports.isExplicitVersion=e.exports.findFromManifest=e.exports.getManifestFromRepo=e.exports.findAllVersions=e.exports.find=e.exports.cacheFile=e.exports.cacheDir=e.exports.extractZip=e.exports.extractXar=e.exports.extractTar=e.exports.extract7z=e.exports.downloadTool=e.exports.HTTPError=void 0;const v=f(Me("jdDFH")),y=f(Me("fvrnx")),w=f(Ee),x=f(Me("2YXUl")),b=f(xe),E=f(be),S=f(Me("ba1Cu")),O=f(Me("4URNm")),_=f(Ie),$=f(Te),C=g(Me("iFKS7"));var T=Me("ca0ts"),R=Me("9g1b2");class I extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}e.exports.HTTPError=I;const A="win32"===process.platform,P="darwin"===process.platform;e.exports.downloadTool=function(e,t,r,s){return m(this,void 0,void 0,(function*(){t=t||E.join(l(),C.default()),yield y.mkdirP(E.dirname(t)),v.debug("Downloading "+e),v.debug("Destination "+t);const i=u("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=u("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new R.RetryHelper(3,i,n);return yield o.execute((()=>m(this,void 0,void 0,(function*(){return yield function(e,t,r,s){return m(this,void 0,void 0,(function*(){if(w.existsSync(t))throw Error(`Destination file path ${t} already exists`);const i=new S.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(v.debug("set auth"),void 0===s&&(s={}),s.authorization=r);const n=yield i.get(e,s);if(200!==n.message.statusCode){const t=new I(n.message.statusCode);throw v.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),t}const o=$.promisify(_.pipeline),a=u("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message))();let c=!1;try{return yield o(a,w.createWriteStream(t)),v.debug("download complete"),c=!0,t}finally{if(!c){v.debug("download failed");try{yield y.rmRF(t)}catch(e){v.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,s)}))),(e=>!(e instanceof I&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},e.exports.extract7z=function(e,t,r){return m(this,void 0,void 0,(function*(){Ce.ok(A,"extract7z() not supported on current OS"),Ce.ok(e,'parameter "file" is required'),t=yield s(t);const i=process.cwd();if(process.chdir(t),r)try{const t=["x",v.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],s={silent:!0};yield T.exec(`"${r}"`,t,s)}finally{process.chdir(i)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${E.join(d,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],s={silent:!0};try{const e=yield y.which("powershell",!0);yield T.exec(`"${e}"`,r,s)}finally{process.chdir(i)}}return t}))},e.exports.extractTar=function(e,t,r="xz"){return m(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield s(t),v.debug("Checking tar --version");let i="";yield T.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return i+=""+e},stderr(e){return i+=""+e}}}),v.debug(i.trim());const n=i.toUpperCase().includes("GNU TAR");let o;o=r instanceof Array?r:[r],v.isDebug()&&!r.includes("v")&&o.push("-v");let a=t,c=e;return A&&n&&(o.push("--force-local"),a=t.replace(/\\/g,"/"),c=e.replace(/\\/g,"/")),n&&(o.push("--warning=no-unknown-keyword"),o.push("--overwrite")),o.push("-C",a,"-f",c),yield T.exec("tar",o),t}))},e.exports.extractXar=function(e,t,r=[]){return m(this,void 0,void 0,(function*(){let i;Ce.ok(P,"extractXar() not supported on current OS"),Ce.ok(e,'parameter "file" is required'),t=yield s(t),i=r instanceof Array?r:[r],i.push("-x","-C",t,"-f",e),v.isDebug()&&i.push("-v");const n=yield y.which("xar",!0);var o;return yield T.exec(`"${n}"`,(o=i,Array.from(new Set(o)))),t}))},e.exports.extractZip=function(e,t){return m(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield s(t),A?yield function(e,t){return m(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield y.which("pwsh",!1);if(i){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $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 '${s}' -Force } else { throw $_ } } ;`].join(" ")];v.debug("Using pwsh at path: "+i),yield T.exec(`"${i}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$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 '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${s}', $true) }`].join(" ")],t=yield y.which("powershell",!0);v.debug("Using powershell at path: "+t),yield T.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return m(this,void 0,void 0,(function*(){const r=yield y.which("unzip",!0),s=[e];v.isDebug()||s.unshift("-q"),s.unshift("-o"),yield T.exec(`"${r}"`,s,{cwd:t})}))}(e,t),t}))},e.exports.cacheDir=function(e,t,r,s){return m(this,void 0,void 0,(function*(){if(r=O.clean(r)||r,s=s||b.arch(),v.debug(`Caching tool ${t} ${r} ${s}`),v.debug("source dir: "+e),!w.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield i(t,r,s);for(const t of w.readdirSync(e)){const r=E.join(e,t);yield y.cp(r,o,{recursive:!0})}return n(t,r,s),o}))},e.exports.cacheFile=function(e,t,r,s,o){return m(this,void 0,void 0,(function*(){if(s=O.clean(s)||s,o=o||b.arch(),v.debug(`Caching tool ${r} ${s} ${o}`),v.debug("source file: "+e),!w.statSync(e).isFile())throw Error("sourceFile is not a file");const a=yield i(r,s,o),c=E.join(a,t);return v.debug("destination file "+c),yield y.cp(e,c),n(r,s,o),a}))},e.exports.find=(e,t,s)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");s=s||b.arch(),o(t)||(t=a(r(e,s),t));let i="";if(t){t=O.clean(t)||"";const r=E.join(c(),e,t,s);v.debug("checking cache: "+r),w.existsSync(r)&&w.existsSync(r+".complete")?(v.debug(`Found tool in cache ${e} ${t} ${s}`),i=r):v.debug("not found")}return i},e.exports.findAllVersions=r,e.exports.getManifestFromRepo=function(e,t,r,s="master"){return m(this,void 0,void 0,(function*(){let i=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`,o=new S.HttpClient("tool-cache"),a={};r&&(v.debug("set auth"),a.authorization=r);const c=yield o.getJson(n,a);if(!c.result)return i;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield o.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u)}catch(e){v.debug("Invalid json")}}return i}))},e.exports.findFromManifest=function(e,t,r,s=b.arch()){return m(this,void 0,void 0,(function*(){return yield x._findMatch(e,t,r,s)}))},e.exports.isExplicitVersion=o,e.exports.evaluateVersions=a})),Me.register("2YXUl",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(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 s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const o=i(Me("4URNm"));var a=Me("jdDFH");e.exports._findMatch=function(t,r,s,i){return n(this,void 0,void 0,(function*(){const n=xe.platform();let c,l,u;for(const c of s){const s=c.version;if(a.debug(`check ${s} satisfies ${t}`),o.satisfies(s,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${n}`);let r=t.arch===i&&t.platform===n;if(r&&t.platform_version){const s=e.exports._getOsVersion();r=s===t.platform_version||o.satisfies(s,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=xe.platform();let r="";if("darwin"===t)r=""+Re.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const 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=()=>{const e="/etc/lsb-release",t="/etc/os-release";let r="";return Ee.existsSync(e)?r=""+Ee.readFileSync(e):Ee.existsSync(t)&&(r=""+Ee.readFileSync(t)),r}})),Me.register("4URNm",((e,t)=>{var r=Me("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Me("bgOMw").SEMVER_SPEC_VERSION,SemVer:Me("7qUJS"),compareIdentifiers:Me("12NXI").compareIdentifiers,rcompareIdentifiers:Me("12NXI").rcompareIdentifiers,parse:Me("gdrva"),valid:Me("fVzwP"),clean:Me("hOYls"),inc:Me("dGcr6"),diff:Me("bBssn"),major:Me("fB2B7"),minor:Me("bye2i"),patch:Me("87ZGF"),prerelease:Me("4agny"),compare:Me("howpO"),rcompare:Me("zcbgY"),compareLoose:Me("iGBo4"),compareBuild:Me("80ezM"),sort:Me("4qmtg"),rsort:Me("4pjXu"),gt:Me("6KPS4"),lt:Me("lr5pz"),eq:Me("jXghC"),neq:Me("fqqGA"),gte:Me("5cRW4"),lte:Me("fwsB7"),cmp:Me("823yM"),coerce:Me("1YYsi"),Comparator:Me("eR6XK"),Range:Me("hvUff"),satisfies:Me("c8FZS"),toComparators:Me("2J2hR"),maxSatisfying:Me("lbfMG"),minSatisfying:Me("5wbuE"),minVersion:Me("hZRNG"),validRange:Me("fqnzG"),outside:Me("77bPN"),gtr:Me("gD8Tz"),ltr:Me("bpPww"),intersects:Me("cHIUn"),simplifyRange:Me("k8aCs"),subset:Me("388OD")}})),Me.register("bikcG",((e,t)=>{var r=Me("bgOMw").MAX_SAFE_COMPONENT_LENGTH,s=Me("jkMsx");const i=(t=e.exports={}).re=[],n=t.src=[],o=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;s(e,c,t),o[e]=c,n[c]=t,i[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})\\.(${n[o.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})\\.(${n[o.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${n[o.NUMERICIDENTIFIER]}|${n[o.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${n[o.NUMERICIDENTIFIERLOOSE]}|${n[o.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${n[o.PRERELEASEIDENTIFIER]}(?:\\.${n[o.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${n[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[o.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${n[o.BUILDIDENTIFIER]}(?:\\.${n[o.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${n[o.MAINVERSION]}${n[o.PRERELEASE]}?${n[o.BUILD]}?`),c("FULL",`^${n[o.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${n[o.MAINVERSIONLOOSE]}${n[o.PRERELEASELOOSE]}?${n[o.BUILD]}?`),c("LOOSE",`^${n[o.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",n[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",n[o.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${n[o.XRANGEIDENTIFIER]})(?:\\.(${n[o.XRANGEIDENTIFIER]})(?:\\.(${n[o.XRANGEIDENTIFIER]})(?:${n[o.PRERELEASE]})?${n[o.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[o.XRANGEIDENTIFIERLOOSE]})(?:${n[o.PRERELEASELOOSE]})?${n[o.BUILD]}?)?)?`),c("XRANGE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${n[o.GTLT]}\\s*${n[o.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",n[o.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${n[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${n[o.LONETILDE]}${n[o.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${n[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${n[o.LONECARET]}${n[o.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${n[o.LONECARET]}${n[o.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${n[o.GTLT]}\\s*(${n[o.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${n[o.GTLT]}\\s*(${n[o.LOOSEPLAIN]}|${n[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${n[o.XRANGEPLAIN]})\\s+-\\s+(${n[o.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${n[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[o.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Me.register("bgOMw",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Me.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Me.register("7qUJS",(function(e,t){var r=Me("jkMsx"),s=Me("bgOMw"),i=s.MAX_LENGTH,n=s.MAX_SAFE_INTEGER,o=Me("bikcG"),a=o.re,c=o.t,l=Me("eUvvN"),u=Me("12NXI").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=s[4]?s[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=s[5]?s[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 d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(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{const s=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,s,i),void 0===s&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===s)return-1;if(s!==i)return u(s,i)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const s=this.build[t],i=e.build[t];if(r("prerelease compare",t,s,i),void 0===s&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===s)return-1;if(s!==i)return u(s,i)}while(++t)}inc(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{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(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}}e.exports=d})),Me.register("eUvvN",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Me.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,s=(e,t)=>{const s=r.test(e),i=r.test(t);return s&&i&&(e=+e,t=+t),e===t?0:s&&!i?-1:i&&!s?1:t>e?-1:1};e.exports={compareIdentifiers:s,rcompareIdentifiers(e,t){return s(t,e)}}})),Me.register("gdrva",((e,t)=>{var r=Me("bgOMw").MAX_LENGTH,s=Me("bikcG"),i=s.re,n=s.t,o=Me("7qUJS"),a=Me("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[n.LOOSE]:i[n.FULL]).test(e))return null;try{return new o(e,t)}catch(e){return null}}})),Me.register("fVzwP",((e,t)=>{var r=Me("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s?s.version:null}})),Me.register("hOYls",((e,t)=>{var r=Me("gdrva");e.exports=(e,t)=>{const s=r(e.trim().replace(/^[=v]+/,""),t);return s?s.version:null}})),Me.register("dGcr6",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t,s,i)=>{"string"==typeof s&&(i=s,s=void 0);try{return new r(e instanceof r?e.version:e,s).inc(t,i).version}catch(e){return null}}})),Me.register("bBssn",((e,t)=>{var r=Me("gdrva"),s=Me("jXghC");e.exports=(e,t)=>{if(s(e,t))return null;{const s=r(e),i=r(t),n=s.prerelease.length||i.prerelease.length,o=n?"pre":"",a=n?"prerelease":"";for(const e in s)if(("major"===e||"minor"===e||"patch"===e)&&s[e]!==i[e])return o+e;return a}}})),Me.register("jXghC",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>0===r(e,t,s)})),Me.register("howpO",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t,s)=>new r(e,s).compare(new r(t,s))})),Me.register("fB2B7",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Me.register("bye2i",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Me.register("87ZGF",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Me.register("4agny",((e,t)=>{var r=Me("gdrva");e.exports=(e,t)=>{const s=r(e,t);return s&&s.prerelease.length?s.prerelease:null}})),Me.register("zcbgY",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>r(t,e,s)})),Me.register("iGBo4",((e,t)=>{var r=Me("howpO");e.exports=(e,t)=>r(e,t,!0)})),Me.register("80ezM",((e,t)=>{var r=Me("7qUJS");e.exports=(e,t,s)=>{const i=new r(e,s),n=new r(t,s);return i.compare(n)||i.compareBuild(n)}})),Me.register("4qmtg",((e,t)=>{var r=Me("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(e,s,t)))})),Me.register("4pjXu",((e,t)=>{var r=Me("80ezM");e.exports=(e,t)=>e.sort(((e,s)=>r(s,e,t)))})),Me.register("6KPS4",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>r(e,t,s)>0})),Me.register("lr5pz",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>0>r(e,t,s)})),Me.register("fqqGA",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>0!==r(e,t,s)})),Me.register("5cRW4",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>r(e,t,s)>=0})),Me.register("fwsB7",((e,t)=>{var r=Me("howpO");e.exports=(e,t,s)=>0>=r(e,t,s)})),Me.register("823yM",((e,t)=>{var r=Me("jXghC"),s=Me("fqqGA"),i=Me("6KPS4"),n=Me("5cRW4"),o=Me("lr5pz"),a=Me("fwsB7");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return s(e,c,l);case">":return i(e,c,l);case">=":return n(e,c,l);case"<":return o(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Me.register("1YYsi",((e,t)=>{var r=Me("7qUJS"),s=Me("gdrva"),i=Me("bikcG"),n=i.re,o=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=n[o.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),n[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;n[o.COERCERTL].lastIndex=-1}else i=e.match(n[o.COERCE]);return null===i?null:s(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)}})),Me.register("eR6XK",(function(e,t){const r=Symbol();class s{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("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 c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||n&&o||a||l}}e.exports=s;var i=Me("eUvvN"),n=Me("bikcG"),o=n.re,a=n.t,c=Me("823yM"),l=Me("jkMsx"),u=Me("7qUJS"),d=Me("hvUff")})),Me.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof n)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,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(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){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=s.get(t);if(r)return r;const i=this.options.loose;e=e.replace(i?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),o("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options)));i&&(a=a.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),o("range list",a);const c=new Map,m=a.map((e=>new n(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return s.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;this.set.length>t;t++)if(T(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const s=new(Me("6MLkQ"))({max:1e3});var i=Me("eUvvN"),n=Me("eR6XK"),o=Me("jkMsx"),a=Me("7qUJS"),c=Me("bikcG"),l=c.re,u=c.t,d=c.comparatorTrimReplace,p=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const s=e.slice();let i=s.pop();for(;r&&s.length;)r=s.every((e=>i.intersects(e,t))),i=s.pop();return r},v=(e,t)=>(o("comp",e,t),e=b(e,t),o("caret",e),e=w(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=_(e,t),o("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,s,i,n)=>{let a;return o("tilde",e,t,r,s,i,n),y(r)?a="":y(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(i)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(o("replaceTilde pr",n),a=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,o("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,s,i,n,a)=>{let c;return o("caret",e,t,s,i,n,a),y(s)?c="":y(i)?c=`>=${s}.0.0${r} <${+s+1}.0.0-0`:y(n)?c="0"===s?`>=${s}.${i}.0${r} <${s}.${+i+1}.0-0`:`>=${s}.${i}.0${r} <${+s+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===s?"0"===i?`>=${s}.${i}.${n}-${a} <${s}.${i}.${+n+1}-0`:`>=${s}.${i}.${n}-${a} <${s}.${+i+1}.0-0`:`>=${s}.${i}.${n}-${a} <${+s+1}.0.0-0`):(o("no pr"),c="0"===s?"0"===i?`>=${s}.${i}.${n}${r} <${s}.${i}.${+n+1}-0`:`>=${s}.${i}.${n}${r} <${s}.${+i+1}.0-0`:`>=${s}.${i}.${n} <${+s+1}.0.0-0`),o("caret return",c),c}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,s,i,n,a,c)=>{o("xRange",e,r,s,i,n,a,c);const l=y(i),u=l||y(n),d=u||y(a);return"="===s&&d&&(s=""),c=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(u&&(n=0),a=0,">"===s?(s=">=",u?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",u?i=+i+1:n=+n+1),"<"===s&&(c="-0"),r=`${s+i}.${n}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${n}.0${c} <${i}.${+n+1}.0-0`),o("xRange return",r),r})),_=(e,t)=>(o("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),$=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,s,i,n,o,a,c,l,u,d,p,h)=>`${r=y(s)?"":y(i)?`>=${s}.0.0${e?"-0":""}`:y(n)?`>=${s}.${i}.0${e?"-0":""}`:o?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),T=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(o(e[r].semver),e[r].semver!==n.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}})),Me.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new s.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),i=new Set,n=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},o=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:s}=f,{get:i}=Object.getOwnPropertyDescriptor(s,e);l(r,e+" method",`cache.${t}()`,i)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!i.has(e),l=(e,t,r,s)=>{i.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,s)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),d=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:p:Uint32Array:Uint16Array:Uint8Array:null;class p extends Array{constructor(e){super(e),this.fill(0)}}class h{constructor(e){if(0===e)return[];const t=d(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:o,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:g,disposeAfter:v,noDisposeOnSet:y,noUpdateTTL:w,maxSize:x=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:O,stale:_}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const $=t?d(t):Array;if(!$)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=x,this.sizeCalculation=b||S,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new $(t),this.prev=new $(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof v?(this.disposeAfter=v,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!w,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!_,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(s)||0===s?s:1,this.ttlAutopurge=!!o,this.ttl=r||O||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(i.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}_&&n("stale","allowStale"),O&&n("maxAge","ttl"),S&&n("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new p(this.max),this.starts=new p(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const s=this.keyMap.get(r);return void 0===s?0:0===this.ttls[s]||0===this.starts[s]?1/0:this.starts[s]+this.ttls[s]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new p(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,s)=>{if(!u(r)){if(!s)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(r=s(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,s)=>{this.sizes[e]=s;const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,s){}requireSize(e,t,r,s){if(r||s)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return o("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],s={value:this.valList[t]};this.ttls&&(s.ttl=this.ttls[t]),this.sizes&&(s.size=this.sizes[t]),e.unshift([r,s])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:i=0,sizeCalculation:n=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){i=this.requireSize(e,t,i,n);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,i),o=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():s||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,i)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),o||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],s=this.valList[t];return this.isBackgroundFetch(s)?s.__abortController.abort():(this.dispose(s,r,"evict"),this.disposeAfter&&this.disposed.push([s,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const i=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;const n=new s,o={signal:n.signal,options:r},a=Promise.resolve(this.fetchMethod(e,i,o)).then((t=>(n.signal.aborted||this.set(e,t,o.options),t)));return a.__abortController=n,a.__staleWhileFetching=i,void 0===t?(this.set(e,a,o.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:s=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:n=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:s,noDisposeOnSet:i,size:n,sizeCalculation:o,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const s=this.valList[l];if(this.isBackgroundFetch(s))return t&&void 0!==s.__staleWhileFetching?s.__staleWhileFetching:s;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),s;const i=this.backgroundFetch(e,l,c);return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const s=this.keyMap.get(e);if(void 0!==s){const i=this.valList[s],n=this.isBackgroundFetch(i);if(this.isStale(s))return n?t?i.__staleWhileFetching:void 0:(this.delete(e),t?i:void 0);if(n)return;return this.moveToTail(s),r&&this.updateItemAge(s),i}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return o("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return o("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Me.register("c8FZS",((e,t)=>{var r=Me("hvUff");e.exports=(e,t,s)=>{try{t=new r(t,s)}catch(e){return!1}return t.test(e)}})),Me.register("2J2hR",((e,t)=>{var r=Me("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Me.register("lbfMG",((e,t)=>{var r=Me("7qUJS"),s=Me("hvUff");e.exports=(e,t,i)=>{let n=null,o=null,a=null;try{a=new s(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==o.compare(e)||(n=e,o=new r(n,i)))})),n}})),Me.register("5wbuE",((e,t)=>{var r=Me("7qUJS"),s=Me("hvUff");e.exports=(e,t,i)=>{let n=null,o=null,a=null;try{a=new s(t,i)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==o.compare(e)||(n=e,o=new r(n,i)))})),n}})),Me.register("hZRNG",((e,t)=>{var r=Me("7qUJS"),s=Me("hvUff"),i=Me("6KPS4");e.exports=(e,t)=>{e=new s(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;e.set.length>t;++t){let s=null;e.set[t].forEach((e=>{const 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||n&&!i(n,s)||(n=s)}return n&&e.test(n)?n:null}})),Me.register("fqnzG",((e,t)=>{var r=Me("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Me.register("77bPN",((e,t)=>{var r=Me("7qUJS"),s=Me("eR6XK");const{ANY:i}=s;var n=Me("hvUff"),o=Me("c8FZS"),a=Me("6KPS4"),c=Me("lr5pz"),l=Me("fwsB7"),u=Me("5cRW4");e.exports=(e,t,d,p)=>{let h,f,m,g,v;switch(e=new r(e,p),t=new n(t,p),d){case">":h=a,f=l,m=c,g=">",v=">=";break;case"<":h=c,f=u,m=a,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let r=0;t.set.length>r;++r){let n=null,o=null;if(t.set[r].forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),n=n||e,o=o||e,h(e.semver,n.semver,p)?n=e:m(e.semver,o.semver,p)&&(o=e)})),n.operator===g||n.operator===v)return!1;if((!o.operator||o.operator===g)&&f(e,o.semver))return!1;if(o.operator===v&&m(e,o.semver))return!1}return!0}})),Me.register("gD8Tz",((e,t)=>{var r=Me("77bPN");e.exports=(e,t,s)=>r(e,t,">",s)})),Me.register("bpPww",((e,t)=>{var r=Me("77bPN");e.exports=(e,t,s)=>r(e,t,"<",s)})),Me.register("cHIUn",((e,t)=>{var r=Me("hvUff");e.exports=(e,t,s)=>(e=new r(e,s),t=new r(t,s),e.intersects(t))})),Me.register("k8aCs",((e,t)=>{var r=Me("c8FZS"),s=Me("howpO");e.exports=(e,t,i)=>{const n=[];let o=null,a=null;const c=e.sort(((e,t)=>s(e,t,i)));for(const e of c)r(e,t,i)?(a=e,o||(o=e)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const l=[];for(const[e,t]of n)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Me.register("388OD",((e,t)=>{var r=Me("hvUff"),s=Me("eR6XK");const{ANY:i}=s;var n=Me("c8FZS"),o=Me("howpO");const a=(e,t,r)=>{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?[new s(">=0.0.0-0")]:[new s(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new s(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=o(u.semver,d.semver,r),p>0)return null;if(0===p&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!n(e,u+"",r))return null;if(d&&!n(e,d+"",r))return null;for(const s of t)if(!n(e,s+"",r))return!1;return!0}let v=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;v&&1===v.prerelease.length&&"<"===d.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!n(u.semver,e+"",r))return!1;if(d)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!n(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==p)return!1}return!(u&&m&&!d&&0!==p||d&&g&&!u&&0!==p||y||v)},c=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s>0?e:0>s||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return 0>s?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,s={})=>{if(e===t)return!0;e=new r(e,s),t=new r(t,s);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,s);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}})),Me.register("iFKS7",((e,t)=>{var r=Me("joDHm"),s=Me("inTPA");e.exports=(e,t,i)=>{var n=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;16>a;++a)t[n+a]=o[a];return t||s(o)}})),Me.register("joDHm",((e,t)=>{e.exports=()=>Ae.randomBytes(16)})),Me.register("inTPA",((e,t)=>{for(var r=[],s=0;256>s;++s)r[s]=(s+256).toString(16).substr(1);e.exports=(e,t)=>{var s=t||0;return""+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+"-"+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]+r[e[s++]]}})),Me.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return o(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(0===s.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=s[0];return t=s.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec()}))}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s(t,e,r);return i(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=n(Me("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,s){var i,n;return o(this,void 0,void 0,(function*(){let o="",a="";const c=new Pe.StringDecoder("utf8"),l=new Pe.StringDecoder("utf8"),u=null===(i=null==s?void 0:s.listeners)||void 0===i?void 0:i.stdout,d=null===(n=null==s?void 0:s.listeners)||void 0===n?void 0:n.stderr,p=Object.assign(Object.assign({},null==s?void 0:s.listeners),{stdout(e){o+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},s),{listeners:p}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}}))}})),Me.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(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 s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const o=i(xe),a=i($e),c=i(Re),l=i(be),u=i(Me("fvrnx")),d=i(Me("2GOko")),p="win32"===process.platform;e.exports.ToolRunner=class 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){const r=this._getSpawnFileName(),s=this._getSpawnArgs(e);let i=t?"":"[command]";if(p)if(this._isCmdFile()){i+=r;for(const e of s)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of s)i+=" "+e}else{i+=this._windowsQuoteCmdArg(r);for(const e of s)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=r;for(const e of s)i+=" "+e}return i}_processLineBuffer(e,t,r){try{let s=t+""+e,i=s.indexOf(o.EOL);for(;i>-1;)r(s.substring(0,i)),s=s.substring(i+o.EOL.length),i=s.indexOf(o.EOL);return s}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return p&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(p&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const s of e)if(t.some((e=>e===s))){r=!0;break}if(!r)return e;let s='"',i=!0;for(let t=e.length;t>0;t--)s+=e[t-1],i&&"\\"===e[t-1]?s+="\\":'"'===e[t-1]?(i=!0,s+='"'):i=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let s=e.length;s>0;s--)t+=e[s-1],r&&"\\"===e[s-1]?t+="\\":'"'===e[s-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return n(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>n(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+o.EOL);const s=new h(r,this.toolPath);if(s.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const i=this._getSpawnFileName(),n=c.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let a="";n.stdout&&n.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 l="";if(n.stderr&&n.stderr.on("data",(e=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),n.on("error",(e=>{s.processError=e.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()})),n.on("exit",(e=>{s.processExitCode=e,s.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),s.CheckComplete()})),n.on("close",(e=>{s.processExitCode=e,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()})),s.on("done",((r,s)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),n.removeAllListeners(),r?t(r):e(s)})),this.options.input){if(!n.stdin)throw Error("child process missing stdin");n.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){i&&'"'!==e&&(n+="\\"),n+=e,i=!1}const r=[];let s=!1,i=!1,n="";for(let o=0;e.length>o;o++){const a=e.charAt(o);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&s?i=!0:" "!==a||s?t(a):n.length>0&&(r.push(n),n=""):i?t(a):s=!s}return n.length>0&&r.push(n.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=Ne.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){e.done||(!e.processClosed&&e.processExited&&e._debug(`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._setResult())}}})),Me.register("9g1b2",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,s)=>{void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get(){return t[r]}})}:(e,t,r,s)=>{void 0===s&&(s=r),e[s]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(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 s(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RetryHelper=void 0;const o=i(Me("jdDFH"));e.exports.RetryHelper=class{constructor(e,t,r){if(1>e)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 n(this,void 0,void 0,(function*(){let r=1;for(;this.maxAttempts>r;){try{return yield e()}catch(e){if(t&&!t(e))throw e;o.info(e.message)}const s=this.getSleepAmount();o.info(`Waiting ${s} seconds before trying again`),yield this.sleep(s),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}}})),Me.register("175fe",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.469b76e6.js")).then((()=>Me("apy8x")))})),Me.register("cReTf",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function s(e,t,r){const s=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let s=null;if(r.some((e=>{if(void 0!==t[e])return s=t[e],!0})),null===s)throw Error("Can not find any unit type data for locale: "+e.locale);return s})(r);return i.pluralize(r.locale,t,s[e]).replace("{0}",t)}var i=Me("5FRs7"),n=Me("3Zbea");const o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,i,a){return((e,t,i)=>{if(((e,t)=>{const{autoload:s}=t;if(!c[e]){if(!n||!s)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(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)}})(i.locale,{autoload:i.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const s=[];return o.some((e=>{const t=e[0],i=e[1],n=Math.floor(r/i);if(r-=n*i,s.push([t,n]),0>=r)return!0})),s})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(s(t,r,i)),l.length>=i.span)break}return l.join(i.delimiter)})(t,i,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Me.register("5FRs7",((e,t)=>{e.exports=Me("j5MHF")})),Me.register("j5MHF",(function(e,t){var r=be.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){function t(e,t,r){if(s(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=i[e](t);return void 0!==r[n]?r[n]:null}function s(e){(e=>void 0!==i[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var i={},n={create(e){return s(e),{pluralize(r,s){return t(e,r,s)}}},addLocale(e,t){i[e]=t},pluralize:t};void 0!==e.exports?e.exports=n:this.numerous=n}).call(e.exports)})),Me.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>me)),e(module.exports,"parseArgs",(()=>ge)),e(module.exports,"getCompilerInfo",(()=>ve));var Ue=Me("jdDFH"),Ge={};const He="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ze=He?";":":";var Be,qe={};Be="win32"===process.platform||De.TESTING_WINDOWS?Me("ftrAD"):Me("9yF3I"),qe=r,r.sync=(e,t)=>{try{return Be.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Ve=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Xe=(e,t)=>{const r=t.colon||ze,s=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=He?i.split(r):[""];return He&&-1!==e.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:s,pathExt:n,pathExtExe:i}},Ye=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:s,pathExt:i,pathExtExe:n}=Xe(e,t),o=[],a=r=>new Promise(((i,n)=>{if(r===s.length)return t.all&&o.length?i(o):n(Ve(e));const a=s[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=be.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(c(d,r,0))})),c=(e,r,s)=>new Promise(((l,u)=>{if(s===i.length)return l(a(r+1));const d=i[s];qe(e+d,{pathExt:n},((i,n)=>{if(!i&&n){if(!t.all)return l(e+d);o.push(e+d)}return l(c(e,r,s+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let We;Ge=Ye,Ye.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:i}=Xe(e,t),n=[];for(let o=0;r.length>o;o++){const a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=be.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;s.length>e;e++){const r=u+s[e];try{if(qe.sync(r,{pathExt:i})){if(!t.all)return r;n.push(r)}}catch(e){}}}if(t.all&&n.length)return n;if(t.nothrow)return null;throw Ve(e)};var Je,Ke={},Ze={},Qe={},et={};const tt=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var rt,st;(et=tt).default=tt,Je=e=>i(e)||i(e,!0),rt=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),st=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var it,nt;it=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,s]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?s:s?`${i} ${s}`:i},nt=e=>{const t=Buffer.alloc(150);let r;try{r=Ee.openSync(e,"r"),Ee.readSync(r,t,0,150,0),Ee.closeSync(r)}catch(e){}return it(""+t)};const ot="win32"===process.platform,at=/\.(?:com|exe)$/i,ct=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Qe=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const s={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?s:(e=>{if(!ot)return e;const t=(e=>{e.file=Je(e);const t=e.file&&nt(e.file);return t?(e.args.unshift(e.file),e.command=t,Je(e)):e.file})(e),r=!at.test(t);if(e.options.forceShell||r){const r=ct.test(t);e.command=be.normalize(e.command),e.command=rt(e.command),e.args=e.args.map((e=>st(e,r)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(s)};var lt={};const ut="win32"===process.platform;var dt;lt={hookChildProcess(e,t){if(!ut)return;const r=e.emit;e.emit=function(s,i){if("exit"===s){const s=o(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}},verifyENOENT:o,verifyENOENTSync(e,t){return ut&&1===e&&!t.file?n(t.original,"spawnSync"):null},notFoundError:n},(Ze=a).spawn=a,Ze.sync=(e,t,r)=>{const s=Qe(e,t,r),i=Re.spawnSync(s.command,s.args,s.options);return i.error=i.error||lt.verifyENOENTSync(i.status,s),i},Ze._parse=Qe,Ze._enoent=lt,dt=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var pt={};const ht=e=>{let t;e={cwd:process.cwd(),path:process.env[et()],execPath:process.execPath,...e};let r=be.resolve(e.cwd);const s=[];for(;t!==r;)s.push(be.join(r,"node_modules/.bin")),t=r,r=be.resolve(r,"..");const i=be.resolve(e.cwd,e.execPath,"..");return s.push(i),s.concat(e.path).join(be.delimiter)};(pt=ht).default=ht,pt.env=e=>{const t={...(e={env:process.env,...e}).env},r=et({env:t});return e.path=t[r],t[r]=pt(e),t};var ft={},mt={};const gt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(mt=gt).default=gt;const vt=new WeakMap,yt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const i=e.displayName||e.name||"<anonymous>",n=function(...o){if(vt.set(n,++s),1===s)r=e.apply(this,o),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return mt(n,e),vt.set(n,s),n};(ft=yt).default=yt,ft.callCount=e=>{if(!vt.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return vt.get(e)};var wt,xt={};Object.defineProperty(xt,"__esModule",{value:!0}),xt.signalsByNumber=xt.signalsByName=void 0;var bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.getSignals=void 0;var Et={};Object.defineProperty(Et,"__esModule",{value:!0}),Et.SIGNALS=void 0,Et.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"}];var St={};Object.defineProperty(St,"__esModule",{value:!0}),St.SIGRTMAX=St.getRealtimeSignals=void 0,St.getRealtimeSignals=()=>Array.from({length:$t-_t+1},Ot);const Ot=(e,t)=>({name:"SIGRT"+(t+1),number:_t+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),_t=34,$t=64;St.SIGRTMAX=$t,bt.getSignals=()=>{const e=(0,St.getRealtimeSignals)();return[...Et.SIGNALS,...e].map(Ct)};const Ct=({name:e,number:t,description:r,action:s,forced:i=!1,standard:n})=>{const{signals:{[e]:o}}=xe.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:s,forced:i,standard:n}},Tt=(0,bt.getSignals)().reduce(((e,{name:t,number:r,description:s,supported:i,action:n,forced:o,standard:a})=>({...e,[t]:{name:t,number:r,description:s,supported:i,action:n,forced:o,standard:a}})),{});xt.signalsByName=Tt;const Rt=(()=>{const e=(0,bt.getSignals)(),t=Array.from({length:St.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>xe.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:s,description:i,supported:n,action:o,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:i,supported:n,action:o,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();xt.signalsByNumber=Rt;var It=xt.signalsByName;wt=({stdout:e,stderr:t,all:r,error:s,signal:i,exitCode:n,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(i=null===i?void 0:i)?void 0:It[i].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:i,exitCode:n,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":void 0!==r?"failed with "+r:void 0!==s?`was killed with ${s} (${i})`:void 0!==n?"failed with exit code "+n:"failed")({timedOut:c,timeout:d,errorCode:s&&s.code,signal:i,signalDescription:p,exitCode:n=null===n?void 0:n,isCanceled:l}),f=`Command ${h}: ${o}`,m="[object Error]"==={}.toString.call(s),g=m?`${f}\n${s.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(s.originalMessage=s.message,s.message=v):s=Error(v),s.shortMessage=g,s.command=o,s.escapedCommand=a,s.exitCode=n,s.signal=i,s.signalDescription=p,s.stdout=e,s.stderr=t,void 0!==r&&(s.all=r),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=!!c,s.isCanceled=l,s.killed=u&&!c,s};var At={};const Pt=["stdin","stdout","stderr"],Nt=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Pt.map((t=>e[t]));if((e=>Pt.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Pt.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Pt.length)},((e,r)=>t[r]))};(At=Nt).node=e=>{const t=Nt(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var kt,Lt={},Dt=De.process;const jt=e=>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(jt(Dt)){var Ft,Mt=Ce,Ut=Me("bJALw"),Gt=/^win/i.test(Dt.platform),Ht=$e;"function"!=typeof Ht&&(Ht=Ht.EventEmitter),Dt.__signal_exit_emitter__?Ft=Dt.__signal_exit_emitter__:((Ft=Dt.__signal_exit_emitter__=new Ht).count=0,Ft.emitted={}),Ft.infinite||(Ft.setMaxListeners(1/0),Ft.infinite=!0),Lt=(e,t)=>{if(!jt(De.process))return()=>{};Mt.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Vt&&Xt();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Ft.on(r,e),()=>{Ft.removeListener(r,e),0===Ft.listeners("exit").length&&0===Ft.listeners("afterexit").length&&zt()}};var zt=()=>{Vt&&jt(De.process)&&(Vt=!1,Ut.forEach((e=>{try{Dt.removeListener(e,qt[e])}catch(e){}})),Dt.emit=Jt,Dt.reallyExit=Yt,Ft.count-=1)};Lt.unload=zt;var Bt=(e,t,r)=>{Ft.emitted[e]||(Ft.emitted[e]=!0,Ft.emit(e,t,r))},qt={};Ut.forEach((e=>{qt[e]=()=>{jt(De.process)&&Dt.listeners(e).length===Ft.count&&(zt(),Bt("exit",null,e),Bt("afterexit",null,e),Gt&&"SIGHUP"===e&&(e="SIGINT"),Dt.kill(Dt.pid,e))}})),Lt.signals=()=>Ut;var Vt=!1,Xt=()=>{!Vt&&jt(De.process)&&(Vt=!0,Ft.count+=1,Ut=Ut.filter((e=>{try{return Dt.on(e,qt[e]),!0}catch(e){return!1}})),Dt.emit=Kt,Dt.reallyExit=Wt)};Lt.load=Xt;var Yt=Dt.reallyExit,Wt=e=>{jt(De.process)&&(Dt.exitCode=e||0,Bt("exit",Dt.exitCode,null),Bt("afterexit",Dt.exitCode,null),Yt.call(Dt,Dt.exitCode))},Jt=Dt.emit,Kt=function(e,t){if("exit"===e&&jt(De.process)){void 0!==t&&(Dt.exitCode=t);var r=Jt.apply(this,arguments);return Bt("exit",Dt.exitCode,null),Bt("afterexit",Dt.exitCode,null),r}return Jt.apply(this,arguments)}}else Lt=()=>()=>{};const Zt=e=>e===xe.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var Qt,er=(kt={spawnedKill(e,t="SIGTERM",r={}){const s=e(t);return((e,t,r,s)=>{if(!((e,{forceKillAfterTimeout:t},r)=>Zt(e)&&!1!==t&&r)(t,r,s))return;const i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),n=setTimeout((()=>{e("SIGKILL")}),i);n.unref&&n.unref()})(e,t,r,s),s},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},s){if(0===t||void 0===t)return s;let i;const n=new Promise(((s,n)=>{i=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,n)}),t)})),o=s.finally((()=>{clearTimeout(i)}));return Promise.race([n,o])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},s){if(!t||r)return s;const i=Lt((()=>{e.kill()}));return s.finally((()=>{i()}))}}).spawnedKill,tr=kt.spawnedCancel,rr=kt.setupTimeout,sr=kt.validateTimeout,ir=kt.setExitHandler,nr={};const or=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;or.writable=e=>or(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,or.readable=e=>or(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,or.duplex=e=>or.writable(e)&&or.readable(e),or.transform=e=>or.duplex(e)&&"function"==typeof e._transform,nr=or;var ar,cr={},lr=ke.constants,ur=Ie.PassThrough;ar=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const s="buffer"===r;let i=!1;t?i=!(r||s):r=r||"utf8",s&&(r=null);const n=new ur({objectMode:i});r&&n.setEncoding(r);let o=0;const a=[];return n.on("data",(e=>{a.push(e),i?o=a.length:o+=e.length})),n.getBufferedValue=()=>t?a:s?Buffer.concat(a,o):a.join(""),n.getBufferedLength=()=>o,n};const dr=(0,Te.promisify)(Ie.pipeline);class pr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(cr=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),cr.array=(e,t)=>c(e,{...t,array:!0}),cr.MaxBufferError=pr;var hr,fr=Ie.PassThrough;hr=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(s.push(t),t.once("end",r.bind(null,t)),t.once("error",i.emit.bind(i,"error")),t.pipe(i,{end:!1}),this)}function t(){return 0==s.length}function r(e){!(s=s.filter((t=>t!==e))).length&&i.readable&&i.end()}var s=[],i=new fr({objectMode:!0});return i.setMaxListeners(0),i.add=e,i.isEmpty=t,i.on("unpipe",r),[].slice.call(arguments).forEach(e),i};const mr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},gr=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(e&&r)return t?cr(e,{encoding:t,maxBuffer:s}):cr.buffer(e,{maxBuffer:s})};var vr,yr=(Qt={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(nr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=hr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:s,buffer:i,maxBuffer:n},o){const a=gr(e,{encoding:s,buffer:i,maxBuffer:n}),c=gr(t,{encoding:s,buffer:i,maxBuffer:n}),l=gr(r,{encoding:s,buffer:i,maxBuffer:2*n});try{return await Promise.all([o,a,c,l])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},mr(e,a),mr(t,c),mr(r,l)])}},validateInputSync({input:e}){if(nr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,wr=Qt.getSpawnedResult,xr=Qt.makeAllStream,br=Qt.validateInputSync;const Er=(async()=>{})().constructor.prototype,Sr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Er,e)]));var Or,_r=(vr={mergePromise(e,t){for(const[r,s]of Sr){const i="function"==typeof t?(...e)=>Reflect.apply(s.value,t(),e):s.value.bind(t);Reflect.defineProperty(e,r,{...s,value:i})}return e},getSpawnedPromise(e){return 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,$r=vr.getSpawnedPromise;const Cr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Tr=/^[\w.-]+$/;var Rr=(Or={joinCommand(e,t){return Cr(e,t).join(" ")},getEscapedCommand(e,t){return Cr(e,t).map((e=>(e=>"string"!=typeof e||Tr.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Ir=Or.parseCommand,Ar=Or.getEscapedCommand;const Pr=(e,t,r={})=>{const s=Ze._parse(e,t,r);return e=s.command,t=s.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=s.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:i})=>{const n=t?{...process.env,...e}:e;return r?pt.env({env:n,cwd:s,execPath:i}):n})(r),r.stdio=At(r),"win32"===process.platform&&"cmd"===be.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:s}},Nr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?dt(t):t:void 0===r?void 0:"",kr=(e,t,r)=>{const s=Pr(e,t,r),i=Rr(e,t),n=Ar(e,t);let o;sr(s.options);try{o=Re.spawn(s.file,s.args,s.options)}catch(e){const t=new Re.ChildProcess,r=Promise.reject(wt({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:n,parsed:s,timedOut:!1,isCanceled:!1,killed:!1}));return _r(t,r)}const a=$r(o),c=rr(o,s.options,a),l=ir(o,s.options,c),u={isCanceled:!1};o.kill=er.bind(null,o.kill.bind(o)),o.cancel=tr.bind(null,o,u);const d=ft((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await wr(o,s.options,l),h=Nr(s.options,c),f=Nr(s.options,d),m=Nr(s.options,p);if(e||0!==t||null!==r){const c=wt({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:i,escapedCommand:n,parsed:s,timedOut:a,isCanceled:u.isCanceled,killed:o.killed});if(!s.options.reject)return c;throw c}return{command:i,escapedCommand:n,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return yr(o,s.options.input),o.all=xr(o,s.options),_r(o,d)};let Lr;(Ke=kr).sync=(e,t,r)=>{const s=Pr(e,t,r),i=Rr(e,t),n=Ar(e,t);let o;br(s.options);try{o=Re.spawnSync(s.file,s.args,s.options)}catch(e){throw wt({error:e,stdout:"",stderr:"",all:"",command:i,escapedCommand:n,parsed:s,timedOut:!1,isCanceled:!1,killed:!1})}const a=Nr(s.options,o.stdout,o.error),c=Nr(s.options,o.stderr,o.error);if(o.error||0!==o.status||null!==o.signal){const e=wt({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:n,parsed:s,timedOut:o.error&&"ETIMEDOUT"===o.error.code,isCanceled:!1,killed:null!==o.signal});if(!s.options.reject)return e;throw e}return{command:i,escapedCommand:n,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Ke.command=(e,t)=>{const[r,...s]=Ir(e);return kr(r,s,t)},Ke.commandSync=(e,t)=>{const[r,...s]=Ir(e);return kr.sync(r,s,t)},Ke.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const s=At.node(r),i=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:n=process.execPath,nodeOptions:o=i}=r;return kr(n,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:s,shell:!1})},Ue=Me("jdDFH");var Dr,jr=Me("ditiY"),Fr=Me("di6NI");Ue=Me("jdDFH"),Fr=Me("di6NI");const Mr=xe.homedir();let Ur;var Gr;Dr=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Mr?e.replace(/^~(?=$|\/|\\)/,Mr):e},jr=Me("ditiY");const Hr="win32"!==xe.platform(),zr=xe.release(),Br=/(\d+\.\d+)\.(\d+)/;Gr=e=>Hr?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Br.exec(zr).splice(1))?e:e.replace(/(\s+)/g,"%20");const qr=d(".cpprc");let Vr=!1,Xr=!1,Yr=!1;Ue=Me("jdDFH");let Wr,Jr=!1;Ue=Me("jdDFH");let Kr=!1;var Zr=Me("fvrnx"),Qr=(jr=Me("ditiY"),Me("1GQ3N"));let es;Qr=Me("1GQ3N"),Ue=Me("jdDFH"),Fr=Me("di6NI");let ts=!1;Qr=Me("1GQ3N");var rs=Me("fwsB7"),ss=Me("1YYsi"),is=Me("ca0ts"),ns=(Ue=Me("jdDFH"),Fr=Me("di6NI"),jr=Me("ditiY"),Me("howpO")),os=(ss=Me("1YYsi"),Me("fVzwP"));is=Me("ca0ts"),jr=Me("ditiY");const as={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.10.2",cmake:"3.23.1",gcovr:"5.1",conan:"1.48.0",meson:"0.62.1",python:"3.8.10",kcov:"40",task:"3.12.1",doxygen:"darwin"===process.platform?"1.9.3":"1.9.4",gcc:"11"};let cs,ls,us=!1;Qr=Me("1GQ3N"),jr=Me("ditiY"),rs=Me("fwsB7");var ds=Me("fB2B7"),ps=(is=Me("ca0ts"),jr=Me("ditiY"),Ue=Me("jdDFH"),jr=Me("ditiY"),Fr=Me("di6NI"),ds=Me("fB2B7"),ss=Me("1YYsi"),jr=Me("ditiY"),Fr=Me("di6NI"),be.resolve(__dirname,"../src/gcc"));const hs={12:{releaseName:"12.1.0-10.0.0-msvcrt-r1",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r1"},"12.1.0-msvcrt":{releaseName:"12.1.0-10.0.0-msvcrt-r1",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r1"},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.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"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"}};var fs=be.resolve(__dirname,"../src/llvm");const ms=(e=>{const t=new Set(e);for(const 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"]),gs=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"]),vs=new Map,ys={"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"},ws=new Set(["10.0.1"]);let xs=!1;var bs,Es,Ss,Os={},_s=Os&&Os.__awaiter||((e,t,r,s)=>new(r||(r=Promise))(((i,n)=>{function o(e){try{c(s.next(e))}catch(e){n(e)}}function a(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((s=s.apply(e,t||[])).next())}))),$s=Os&&Os.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Os,"__esModule",{value:!0});var Cs={},Ts=Cs&&Cs.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Cs,"__esModule",{value:!0});const Rs=Ts(xe);var Is={};Object.defineProperty(Is,"__esModule",{value:!0}),Is.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Cs.issueCommand=ee,Cs.issue=(e,t="")=>{ee(e,{},t)};class As{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const s in this.properties)if(this.properties.hasOwnProperty(s)){const i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${t=i,Is.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Is.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Ps={},Ns=Ps&&Ps.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Ps,"__esModule",{value:!0});const ks=Ns(Ee),Ls=Ns(xe);Ps.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!ks.existsSync(r))throw Error("Missing file at path: "+r);ks.appendFileSync(r,`${Is.toCommandValue(t)}${Ls.EOL}`,{encoding:"utf8"})};const Ds=$s(xe),js=$s(be);var Fs,Ms;(Ms=Fs=Os.ExitCode||(Os.ExitCode={}))[Ms.Success=0]="Success",Ms[Ms.Failure=1]="Failure",Os.exportVariable=(e,t)=>{const r=Is.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Ps.issueCommand("ENV",`${e}<<${t}${Ds.EOL}${r}${Ds.EOL}${t}`)}else Cs.issueCommand("set-env",{name:e},r)},Os.setSecret=e=>{Cs.issueCommand("add-mask",{},e)},Os.addPath=e=>{process.env.GITHUB_PATH?Ps.issueCommand("PATH",e):Cs.issueCommand("add-path",{},e),process.env.PATH=`${e}${js.delimiter}${process.env.PATH}`},Os.getInput=(e,t)=>{const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim()},Os.setOutput=(e,t)=>{Cs.issueCommand("set-output",{name:e},t)},Os.setCommandEcho=e=>{Cs.issue("echo",e?"on":"off")},Os.setFailed=e=>{process.exitCode=Fs.Failure,te(e)},Os.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Os.debug=e=>{Cs.issueCommand("debug",{},e)},Os.error=te,Os.warning=e=>{Cs.issue("warning",e instanceof Error?""+e:e)},Os.info=e=>{process.stdout.write(e+Ds.EOL)},Os.startGroup=re,Os.endGroup=se,Os.group=function(e,t){return _s(this,void 0,void 0,(function*(){let r;re(e);try{r=yield t()}finally{se()}return r}))},Os.saveState=(e,t)=>{Cs.issueCommand("save-state",{name:e},t)},Os.getState=e=>process.env["STATE_"+e]||"";const Us=Le.env["ProgramFiles(x86)"],Gs=[Le.env["ProgramFiles(x86)"],Le.env.ProgramFiles],Hs=["Enterprise","Professional","Community"],zs=["2022","2019","2017"],Bs={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};bs=ie;const qs=Us+"\\Microsoft Visual Studio\\Installer";Es=oe,Ss=(e,t,r,s,i,n)=>{if("win32"!=Le.platform)return void Os.info("This is not a Windows virtual environment, bye!");Le.env.PATH+=be.delimiter+qs;let o={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in o&&(e=o[e.toLowerCase()]);var a=[e];"true"==s&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==i&&a.push("-vcvars_spectre_libs=spectre");const c=`"${oe(n)}" ${a.join(" ")}`;Os.debug("vcvars command-line: "+c);const l=(""+Re.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),p=l[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 f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}Os.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Os.info("Setting "+t),ae(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Os.exportVariable(t,r))}Os.endGroup(),Os.info("Configured Developer Command Prompt")},jr=Me("ditiY"),Fr=Me("di6NI"),jr=Me("ditiY");var Vs,Xs=be.resolve(__dirname,"../src/msvc"),Ys=(Fr=Me("di6NI"),{});Ys=Me("cReTf"),Vs={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"}}}};var Ws=Me("5FRs7"),Js={};Me("j5MHF").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.getUbuntuVersion=void 0,Ks.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,s)=>{Re.execFile(t,r,{encoding:"utf8",shell:!1},((i,n,o)=>{if(i)return"errno"in i&&"ENOENT"===i.code?void e(null):void s(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${i} (stderr=${o})`));e(n)}))})));var t,r;if(null===e)return[];let s=null,i=null,n=!1;for(const t of e.split("\n")){const e=t.match(/^Distributor ID:\s*(.+)$/);if(null!==e){if("Ubuntu"!==e[1])return[];n=!0}const r=t.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(s=r);const o=t.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(o&&(i=o),n&&s&&i)break}if(!n)return[];for(const e of[s,i])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},os=Me("fVzwP"),jr=Me("ditiY"),jr=Me("ditiY");let Zs=!1;const Qs={cmake:N,ninja(e,t,r){return I("ninja",e,ue,t,r)},python:k,async vcpkg(e,r,s){return Zs&&null!==t(Ge).sync("vcpkg",{nothrow:!0})?{binDir:be.dirname(t(Ge).sync("vcpkg"))}:("linux"===process.platform&&(y("curl"),y("zip"),y("unzip"),y("tar"),y("git"),y("pkg-config")),Ee.existsSync(be.join(r,O("bootstrap-vcpkg")))?jr.notice(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(Ke).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:be.dirname(r),stdio:"inherit"}),t(Ke).sync(O((i="bootstrap-vcpkg","win32"===process.platform?i:"./"+i)),{cwd:r,shell:!0,stdio:"inherit"}),"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,r],r),await f(r),Zs=!0,{binDir:r});var i},async conan(e,t,r){return await U("setuptools",""),U("conan",e)},meson(e,t,r){return U("meson",e)},gcovr(e,t,r){return U("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await E("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:J,gcc:q,choco:b,brew:s,ccache(e,t,r){switch(process.platform){case"win32":return E("ccache",e);case"darwin":return x("ccache",e);case"linux":return y("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await E("doxygen.install",e);const t={binDir:await(async()=>{if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(Ee.existsSync(e))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await G(F("graphviz",void 0)),t}case"darwin":{const e=x("doxygen",void 0);return await G(F("graphviz",void 0)),e}case"linux":{let s;try{s=await I("doxygen",e,H,t,r),y("libclang-cpp9")}catch(e){jr.notice(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),s=y("doxygen",void 0)}return await G(F("graphviz",void 0)),s}default:throw Error("Unsupported platform")}},graphviz:G,async cppcheck(e,t,r){switch(process.platform){case"win32":return await E("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return x("cppcheck",e);case"linux":return y("cppcheck",e);default:throw Error("Unsupported platform")}},clangtidy:Z,clangformat:Z,msvc:le,vcvarsall:ce,async kcov(e,t,r){if("linux"===process.platform){const s=await I("kcov",e,he,t,r);return y("libbinutils"),s}throw Error("Unsupported platform for "+r)},async make(e,t,r){switch(process.platform){case"win32":return E("make",e);case"darwin":return x("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":return y("make",e);default:throw Error("Unsupported platform")}},task(e,t,r){return I("task",e,A,t,r)},sevenzip:_},ei=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],ti=["compiler","architecture",...ei];me(process.argv).then((e=>{process.exitCode=e})).catch((e=>{jr.error("main() panicked!"),jr.error(e),process.exitCode=1}));
|
||
//# sourceMappingURL=setup_cpp.js.map
|