setup-cpp/dist/setup_cpp.mjs

3 lines
167 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function e(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,i){if("function"==typeof t&&(i=t,t={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((i,o)=>{r(e,t||{},((e,t)=>{e?o(e):i(t)}))}))}st(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),i(e,r)}))}function i(e,r,i){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof dt)return{binDir:dt};const o=t(it).sync("brew",{nothrow:!0});return null!==o?(dt=$gCrli$dirname(o),{binDir:dt}):($gCrli$execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),dt="/usr/local/bin/",{binDir:dt})}function o(e,t){const r=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,n=o&&void 0!==process.chdir&&!process.chdir.disabled;if(n)try{process.chdir(e.options.cwd)}catch(e){}let s;try{s=it.sync(e.command,{path:r[gt({env:r})],pathExt:t?$gCrli$delimiter:void 0})}catch(e){}finally{n&&process.chdir(i)}return s&&(s=$gCrli$resolve(o?e.options.cwd:"",s)),s}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 s(e,t){return _t&&1===e&&!t.file?n(t.original,"spawn"):null}function a(e,t,r){const i=mt(e,t,r),o=$gCrli$spawn(i.command,i.args,i.options);return Ct.hookChildProcess(o,i),o}async function l(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,i=$r(t);return await new Promise(((t,o)=>{const n=e=>{e&&i.getBufferedLength()<=Cr.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),o(e)};(async()=>{try{await Tr(e,i),t()}catch(e){n(e)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&n(new Ir)}))})),i.getBufferedValue()}function c(){var e;return void 0!==Zr||(Zr=(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(it).sync("sudo",{nothrow:!0})),Zr}function u(e,r,i){return c()?t(ht).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:i,stdio:"inherit"}):t(ht).sync(e,r,{stdio:"inherit"})}function d(e){return c()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?$gCrli$join("/Users/",process.env.SUDO_USER,e):$gCrli$join("/home/",process.env.SUDO_USER,e):t(Qr)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"]){return t(ht)((()=>{if(void 0===ii){const e=t(it).sync("pwsh",{nothrow:!0});null!==e&&(ii=e);const r=t(it).sync("powershell",{nothrow:!0});null!==r&&(ii=r)}if(void 0===ii)throw Error("Could not find powershell");return ii})(),[...r,"-c",e],{stdio:"inherit"})}async function h(e,r,i=!1){const o=i?void 0===(n=r)?"":t(oi)(n):r;var n;try{if((0,ti.isGitHubCI)())try{(0,rt.exportVariable)(e,o)}catch(t){(0,ei.error)(t),await m(e,o)}else await m(e,o)}catch(t){(0,ei.error)(t),(0,rt.setFailed)(`Failed to export environment variable ${e}=${o}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${$gCrli$delimiter}${process.env.PATH}`;try{if((0,ti.isGitHubCI)())try{(0,rt.addPath)(e)}catch(t){(0,ei.error)(t),await g(e)}else await g(e)}catch(t){(0,ei.error)(t),(0,rt.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(0,rt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return v(),$gCrli$appendFileSync(li,`\nexport ${e}="${r}"\n`),void(0,rt.info)(`${e}="${r}" was added to "${li}`)}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(0,rt.info)(e+" was added to the PATH.");case"linux":case"darwin":return v(),$gCrli$appendFileSync(li,`\nexport PATH=${e}:$PATH\n`),void(0,rt.info)(`${e} was added to "${li}"`);default:return}}function v(){if(ci)return;const e="export SOURCE_CPPRC=0";if($gCrli$existsSync(li)&&$gCrli$readFileSync(li,"utf8").includes(e))return;$gCrli$appendFileSync(li,`\n${e}\n`),(0,rt.info)(`Added ${e} to ${li}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${li}" ]]; then source "${li}"; fi\n`;try{const e=d(".profile");$gCrli$appendFileSync(e,t),(0,rt.info)(`${t} was added to ${e}`);const r=d(".bashrc");$gCrli$appendFileSync(r,t),(0,rt.info)(`${t} was added to ${r}`)}catch(e){(0,ei.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}ci=!0}function y(e,t,r=!0){(0,rt.info)(`Installing ${e} ${null!=t?t:""} via apt`);const i="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",ui||(u(i,["update","-y"]),ui=!0),!di){u(i,["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){(0,ei.warning)("Failed to add keys: "+e)}di=!0}if(Array.isArray(r)){for(const e of r)u("add-apt-repository",["--update","-y",e]);u(i,["update","-y"])}if(void 0!==t&&""!==t)try{u(i,["install","--fix-broken","-y",`${e}=${t}`])}catch{u(i,["install","--fix-broken","-y",`${e}-${t}`])}else u(i,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function w(e,t){return(0,ti.isGitHubCI)()?u("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(v(),$gCrli$appendFileSync(li,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi\n`))}function x(e,t,r){(0,ei.info)(`Installing ${e} ${null!=t?t:""} via pacman`);const i="pacman";if(pi||(u(i,["-Syuu","--noconfirm"]),pi=!0),hi||(u(i,["-Sy","--noconfirm","base-devel"]),hi=!0),void 0!==t&&""!==t)try{u(null!=r?r:i,["-S","--noconfirm",`${e}=${t}`])}catch{u(null!=r?r:i,["-S","--noconfirm",`${e}${t}`])}else u(null!=r?r:i,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function b(e,r){return(0,rt.info)(`Installing ${e} ${null!=r?r:""} via brew`),mi&&null!==t(it).sync("brew",{nothrow:!0})||(i(0,0,process),mi=!0),t(ht).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function E(e,r,i){if("win32"!==process.platform)return;if("string"==typeof fi)return{binDir:fi};const o=t(it).sync("choco",{nothrow:!0});if(null!==o)return fi=$gCrli$dirname(o),{binDir:fi};let n="powershell.exe";const s=t(it).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==s&&(n=s),t(ht).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 l=t(it).sync("choco",{nothrow:!0});var c;return fi=null!==l?$gCrli$dirname(l):(null!==(c=process.env.ChocolateyInstall)&&void 0!==c?c:"C:/ProgramData/chocolatey")+"/bin",$gCrli$existsSync(fi)?{binDir:fi}:void 0}async function $(e,r,i=[]){(0,rt.info)(`Installing ${e} ${null!=r?r:""} via chocolatey`),yi&&null!==t(it).sync("choco",{nothrow:!0})||(await E(0,0,process),yi=!0);const o=process.env.PATH,n={...process.env};if(delete n.TMP,delete n.TEMP,delete n.Path,n.PATH=o,void 0!==r&&""!==r)t(ht).sync("choco",["install","-y",e,"--version="+r,...i],{env:n,extendEnv:!1,stdio:"inherit"});else try{t(ht).sync("choco",["install","-y",e,...i],{env:n,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,ei.notice)(e+" might require a reboot for the completion of the installation.")}var s;const a=(null!==(s=process.env.ChocolateyInstall)&&void 0!==s?s:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function S(){return"linux"===process.platform&&(void 0===gi&&(gi=null!==t(it).sync("pacman",{nothrow:!0})),gi)}function C(){return"linux"===process.platform&&(void 0===vi&&(vi=null!==t(it).sync("dnf",{nothrow:!0})),vi)}function _(e,t){(0,ei.info)(`Installing ${e} ${null!=t?t:""} via dnf`);const r="dnf";if(wi||(u(r,["-y","check-update"]),wi=!0),void 0!==t&&""!==t)try{u(r,["-y","install",`${e}-${t}`])}catch(t){(0,ei.warning)(t+"\nInstalling the default version available via dnf"),u(r,["-y","install",e])}else u(r,["-y","install",e]);return{binDir:"/usr/bin/"}}function O(e){return"win32"===process.platform?e+".exe":e}function T(e){return"win32"===process.platform?e+".bat":e+".sh"}function I(e,t,r){switch(process.platform){case"win32":return $("7zip",e);case"darwin":return b("p7zip",e);case"linux":return S()?x("p7zip",e):C()?_("p7zip",e):y("p7zip-full",e);default:throw Error("Unsupported platform")}}function A(e,t){const r=[];t=t||Pi.arch();const i=ki.join(j(),e);if(Ai.existsSync(i)){const e=Ai.readdirSync(i);for(const o of e)if(N(o)){const e=ki.join(i,o,t||"");Ai.existsSync(e)&&Ai.existsSync(e+".complete")&&r.push(o)}}return r}function R(e){return _i(this,void 0,void 0,(function*(){return e||(e=ki.join(D(),Mi.default())),yield Ii.mkdirP(e),e}))}function P(e,t,r){return _i(this,void 0,void 0,(function*(){const i=ki.join(j(),e,Li.clean(t)||t,r||"");Ti.debug("destination "+i);const o=i+".complete";return yield Ii.rmRF(i),yield Ii.rmRF(o),yield Ii.mkdirP(i),i}))}function k(e,t,r){const i=ki.join(j(),e,Li.clean(t)||t,r||"");Ai.writeFileSync(i+".complete",""),Ti.debug("finished caching tool")}function N(e){const t=Li.clean(e)||"";Ti.debug("isExplicit: "+t);const r=null!=Li.valid(t);return Ti.debug("explicit? "+r),r}function L(e,t){let r="";Ti.debug(`evaluating ${e.length} versions`);for(let i=(e=e.sort(((e,t)=>Li.gt(e,t)?1:-1))).length-1;i>=0;i--){const o=e[i];if(Li.satisfies(o,t)){r=o;break}}return Ti.debug(r?"matched: "+r:"match not found"),r}function j(){const e=process.env.RUNNER_TOOL_CACHE||"";return $gCrli$ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function D(){const e=process.env.RUNNER_TEMP||"";return $gCrli$ok(e,"Expected RUNNER_TEMP to be defined"),e}function M(e,t){const r=Ze[e];return void 0!==r?r:t}async function F(e,r){return await t(ht)(await(async()=>(void 0===Yi&&(null===t(it).sync("7z",{nothrow:!0})&&await I("",0,process),Yi="7z"),Yi))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),r}function U(e,t){return F(e,t)}function G(e,t){return F(e,t)}async function H(e,r,i=["--strip-components=0"]){try{await(0,xi.mkdirP)(r)}catch{}try{await t(ht)("tar",["xf",e,"-C",r,...i],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,ei.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return r}async function z(e,t,r,i,o){var n,s;(0,rt.info)(`Installing ${e} ${t} ${o} via direct downloading`),process.env.RUNNER_TEMP=null!==(n=process.env.RUNNER_TEMP)&&void 0!==n?n:$gCrli$tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACHE)&&void 0!==s?s:$gCrli$join($gCrli$tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:l,binFileName:c,extractedFolderName:u,extractFunction:d}=await r(t,process.platform,o);if((0,ti.isGitHubCI)())try{const r=(0,bi.find)(e,t);if(r){const i=$gCrli$join(r,u),o=$gCrli$join(i,l);if($gCrli$existsSync(o)&&$gCrli$existsSync($gCrli$join(o,c)))return(0,rt.info)(`${e} ${t} was found in the cache at ${o}.`),await f(o),{installDir:i,binDir:o}}}catch{}const p=$gCrli$join(i,u),h=$gCrli$join(p,l),m=$gCrli$join(h,c);if(!$gCrli$existsSync(h)||!$gCrli$existsSync(m)){(0,rt.info)(`Download and extract ${e} ${t}`),Ki||("linux"===process.platform&&(S()?(x("unzip"),x("tar"),x("xz")):(y("unzip"),y("tar"),y("xz-utils"))),Ki=!0);try{const e=await(0,bi.downloadTool)(a);await(null==d?void 0:d(e,i))}catch(r){throw Error(`Failed to download ${e} ${t} ${o}: ${r}`)}}return(0,rt.info)(`Add ${h} to PATH`),await f(h),(0,ti.isGitHubCI)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,bi.cacheDir)(i,e,t),{installDir:p,binDir:h}}function B(e,t,r){const i=(e=>"win32"===e?"windows":e)(t),o=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),n="win32"===t,s=n?"zip":"tar.gz";return{binRelativeDir:"",binFileName:O("task"),extractedFolderName:"",extractFunction:n?G:H,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s}`}}function q(e,r,i){var o;const n=null!==(o=t(Zi)(e))&&void 0!==o?o:e;switch(r){case"win32":{const r=t(Ji)(n,"v3.19.6");let o;o=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:O("cmake"),extractedFolderName:s,extractFunction:G,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Ji)(n,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:O("cmake"),extractedFolderName:r,extractFunction:bi.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Ji)(n,"v3.19.8");let o;o=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${e}-${o}`;return{binRelativeDir:"bin/",binFileName:O("cmake"),extractedFolderName:s,extractFunction:bi.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function V(e,t,r){return z("cmake",e,q,t,r)}async function W(e,t,r){if(!(0,ti.isGitHubCI)())return X(e,t);try{(0,ei.info)("Installing python in GitHub Actions");const{setupActionsPython:i}=await tt("ddrZ4");return i(e,t,r)}catch(r){return(0,ei.warning)(""+r),X(e,t)}}async function X(e,r,i){switch(process.platform){case"win32":{var o,n;r?await $("python3",e,["--params=/InstallDir:"+r]):await $("python3",e);const i=null!==(n=null!==(o=t(it).sync("python3.exe",{nothrow:!0}))&&void 0!==o?o:t(it).sync("python.exe",{nothrow:!0}))&&void 0!==n?n:$gCrli$join(r,"python.exe"),s=$gCrli$dirname(i);return await(async e=>{(0,ei.info)(`Add ${e} to PATH`),await f(e)})(s),{installDir:s,binDir:s}}case"darwin":return b("python3",e);case"linux":{let t;return S()?(t=x("python",e),x("python-pip")):C()?t=_("python3",e):(t=y("python3",e),y("python3-pip")),t}default:throw Error("Unsupported platform")}}function Y(e){return new Promise((t=>{$gCrli$get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function K(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function J(e,t,r=null){if(Z(t,e)){if("linux"===process.platform&&null!==r&&e in ro){const t=r[0];return parseInt(Object.keys(ro[e])[0],10)>t?"":ro[e][t]}return to[e]}return null!=t?t:""}function Z(e,t){return"true"===e||void 0===e&&t in to}async function Q(e,r){if((0,rt.info)(`Installing ${e} ${null!=r?r:""} via pip`),void 0===io){if(null!==t(it).sync("python3",{nothrow:!0}))io="python3";else{if(null===t(it).sync("python",{nothrow:!0})||!await(async(e,r,i=/v?(\d\S*)/)=>{const o=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const i=await(0,Fi.getExecOutput)(e,["--version"]);return null===(r=(i.stdout||i.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,i);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(Qi)(o,r)})("python","3.0.0")){if((0,rt.info)("python3 was not found. Installing python"),await W(J("python",void 0),"",process.arch),no)throw Error("Failed to install python");return no=!0,Q(e,r)}io="python"}"win32"===process.platform?t(ht).sync(io,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(S()?x("python-pip"):y("python3-pip")),t(ht).sync(io,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(ht).sync(io,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===oo){if("linux"===process.platform)oo="/home/runner/.local/bin/";else if("darwin"===process.platform)oo="/usr/local/bin/";else try{oo=$gCrli$join((await(0,Fi.getExecOutput)(io+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{oo=$gCrli$join((await(0,Fi.getExecOutput)(io+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}(0,rt.info)(oo+" to PATH"),await f(oo)}return{binDir:oo}}async function ee(e,t,r){switch(process.platform){case"win32":return await $("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 b("graphviz",e);case"linux":return S()?x("graphviz",e):C()?_("graphviz",e):y("graphviz",e);default:throw Error("Unsupported platform")}}function te(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:O("doxygen"),extractedFolderName:t,extractFunction:bi.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:O("doxygen"),extractedFolderName:t,extractFunction:G,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function re(){if("darwin"===process.platform)try{const e=await(0,Fi.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):(0,ei.error)("SDKROOT not set")}catch(e){(0,ei.error)(e)}}function ie(){if("linux"!==process.platform)return!1;if(void 0===ao){const e="apt-get";ao=null!==t(it).sync(e,{nothrow:!0})}return ao}function oe(e,t,r){if("win32"===t){const t=co[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const i="ia32"===r?"i686":"x86_64",o="seh";return{binRelativeDir:"bin/",binFileName:O("g++"),extractedFolderName:"mingw64",extractFunction:F,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${i}-posix-${o}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function ne(e,r,i){let o;switch(process.platform){case"win32":"arm"!==i&&"arm64"!==i||await $("gcc-arm-embedded",e);try{o=await z("g++",e,oe,r,i)}catch(t){(0,ei.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),o=await(async(e,t)=>{let r;var i,o;return await $("mingw",e),"x64"===t&&$gCrli$existsSync("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&$gCrli$existsSync("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):$gCrli$existsSync((null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,i)}break;case"darwin":o=b("gcc",e);break;case"linux":"x64"===i?S()?o=x("gcc",e):C()?o=_("gcc",e):(y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),o=y("g++",e,[])):((0,ei.info)(`Install g++-multilib because gcc for ${i} was requested`),S()?x("gcc-multilib",e):y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]));break;default:throw Error("Unsupported platform for "+i)}if(void 0!==o)return await(async(e,r)=>{const i=[];if("win32"===process.platform)i.push(h("CC",O(r+"/gcc")),h("CXX",O(r+"/g++")));else{var o;const n=t(so)(null!==(o=t(Zi)(e))&&void 0!==o?o:e);5>n?(i.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),ie()&&(w("cc",`${r}/gcc-${e}`),w("cxx",`${r}/g++-${e}`),w("gcc",`${r}/gcc-${e}`),w("g++",`${r}/g++-${e}`))):(i.push(h("CC",`${r}/gcc-${n}`),h("CXX",`${r}/g++-${n}`)),ie()&&(w("cc",`${r}/gcc-${n}`),w("cxx",`${r}/g++-${n}`),w("gcc",`${r}/gcc-${n}`),w("g++",`${r}/g++-${n}`)))}i.push(re()),(0,ti.isGitHubCI)()&&(()=>{const e=Le.join(lo,"gcc_matcher.json");if(!$gCrli$existsSync(e))return(0,ei.warning)("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,ei.info)("::add-matcher::"+e)})(),await Promise.all(i)})(e,o.binDir),o}function se(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function ae(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function le(e,r){switch(e){case"darwin":return(e=>{if(ho.has(e))return null;const r="clang+llvm-",i=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Ji)(e,"9.0.1")?ae(e,r,i):se(e,r,i)})(r);case"linux":return(e=>{let r=e;const i=fo.get(r);let o;if(void 0!==i&&(r=i),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!po.has(e))throw Error("Unsupported Ubuntu version: "+e);o=r.replace(e,""),r=K(po,e)[0]}else""!==r&&r in mo?o=mo[r]:(o=mo["14.0.0"],(0,ei.warning)(`Falling back to LLVM version 14.0.0 ${o} for the Ubuntu.`));const n="clang+llvm-",s="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`;return t(Ji)(r,"9.0.1")?ae(r,n,s):se(r,n,s)})(r);case"win32":return(async e=>{if(go.has(e))return null;const r="LLVM-",i=t(Ji)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(Ji)(e,"9.0.1");let n,s=!1;return o&&(n=ae(e,r,i),await Y(n)||(s=!0)),!s&&o||(n=se(e,r,i)),n})(r);default:return null}}async function ce(e,t,r){const[i,o]=await(async(e,t,r,i)=>{if("linux"===t&&r.includes("ubuntu")){const e=await i(t,r);if(null!==e&&await Y(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const o of K(e,r)){const e=await i(t,o);if(null!==e&&await Y(e))return[o,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(po,t,e,le);return(0,rt.setOutput)("version",i),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:O("clang"),extractFunction:"win32"===t?U:(e,t)=>H(e,t,["--strip-components=1"])}}async function ue(e,r,i){const o=await de(e,r,i);var n;return await(async(e,r)=>{const i=(e=>{if(null===t(eo)(e))try{const r=t(Zi)(e);if(null!==r)return(0,ei.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),o=$gCrli$join(e,"lib");var n;const s=null!==(n=process.env.LD_LIBRARY_PATH)&&void 0!==n?n:"";var a;const l=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",c=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${o}${$gCrli$delimiter}${s}`),h("DYLD_LIBRARY_PATH",`${o}${$gCrli$delimiter}${l}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",O(e+"/bin/clang")),h("CXX",O(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),re()];if("win32"!==process.platform){const r=t(so)(i);$gCrli$existsSync(`${e}/lib/clang/${i}/include`)?c.push(h("CPATH",`${e}/lib/clang/${i}/include`)):$gCrli$existsSync(`${e}/lib/clang/${r}/include`)&&c.push(h("CPATH",`${e}/lib/clang/${r}/include`))}ie()&&(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")),(0,ti.isGitHubCI)()&&he(),await Promise.all(c)})(null!==(n=o.installDir)&&void 0!==n?n:r,e),o}async function de(e,t,r){const i=await z("llvm",e,ce,t,r);return vo||("linux"===process.platform&&(await ne(J("gcc",void 0),"",r),S()||y("libtinfo-dev")),vo=!0),i}function pe(e,t,r){return(0,ti.isGitHubCI)()&&he(),de(e,t,r)}function he(){const e=$gCrli$join(uo,"llvm_matcher.json");if(!$gCrli$existsSync(e))return(0,ei.warning)("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");(0,ei.info)("::add-matcher::"+e)}function fe(e,t,r){const i=new To(e,t,r);process.stdout.write(""+i+_o.EOL)}function me(e){So.issue("error",e instanceof Error?""+e:e)}function ge(e){So.issue("group",e)}function ve(){So.issue("endgroup")}function ye(e){return Object.values(Go).includes(e)?e:e in Go?Go[e]:e}function we(e){if(Object.keys(Go).includes(e))return e;for(const[t,r]of Object.entries(Go))if(r===e)return t;return e}function xe(e){const t=ye(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let i=((e,t)=>{try{return(""+$gCrli$execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){bo.warning("vswhere failed: "+e)}return null})(0,r);if(i&&$gCrli$existsSync(i))return bo.info("Found with vswhere: "+i),i;bo.info("Not found with vswhere");const o=e?[we(e)]:Uo;for(const e of Mo)for(const t of o)for(const r of Fo)if(i=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,bo.info("Trying standard location: "+i),$gCrli$existsSync(i))return bo.info("Found standard location: "+i),i;if(bo.info("Not found in standard locations"),i=Do+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",$gCrli$existsSync(i))return bo.info("Found VS 2015: "+i),i;throw bo.info("Not found in VS 2015 location: "+i),Error("Microsoft Visual Studio not found")}function be(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function Ee(e,t,r,i,o,n,s){void 0!==t&&$gCrli$existsSync(t)&&((0,ei.info)(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),xo((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,i,n,s,e)}async function $e(e,t,r,i,o,n){if("win32"!==process.platform)return;const s=yo(e);(0,ei.info)(`Checking if MSVC ${s} is already installed`);let a,l,c=!1;try{const e=wo(s);c=!0,(0,ei.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!c)try{"14.0"===s?(a="14.0",await $("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===s?(a="14.16",await $("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===s?(a="14.29",await $("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===s?(a=void 0,await $("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,ei.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,ei.error)(e)}await Ee(s,l,r,a,i,o,n),(0,ti.isGitHubCI)()&&(()=>{const e=Le.join(Bo,"msvc_matcher.json");if(!$gCrli$existsSync(e))return(0,ei.warning)("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");(0,ei.info)("::add-matcher::"+e)})()}function Se(e,t,r){const i=(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:O("ninja"),extractedFolderName:"",extractFunction:G,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${i}.zip`}}function Ce(e){return null==e?[]:Array.isArray(e)?e:[e]}function _e(e,t,r,i){var o,n=e[t],s=~i.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~i.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==n?s:Array.isArray(n)?n.concat(s):[n,s]}function Oe(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:O("kcov"),extractFunction:Te}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/v${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:O("kcov"),extractFunction:H}}async function Te(e,r){const i=await H(e,r,["--strip-components=1"]);return null===t(it).sync("cmake",{nothrow:!0})&&await V(J("cmake",void 0),$gCrli$join(t(Qr)(""),"cmake"),""),"linux"===process.platform&&(S()?(x("libdwarf"),x("libcurl-openssl")):C()?(_("libdwarf-devel"),_("libcurl-devel")):(y("libdw-dev"),y("libcurl4-openssl-dev"))),await t(ht)("cmake",["-S","./","-B","./build"],{cwd:i,stdio:"inherit"}),await t(ht)("cmake",["--build","./build","--config","Release"],{cwd:i,stdio:"inherit"}),u("cmake",["--install","./build"],i),i}async function Ie(e){(0,ti.isGitHubCI)()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=Ae(e);var i;r.help&&(0,ei.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 o=null!==(i=r.architecture)&&void 0!==i?i:process.arch;var n;const s=null!==(n=process.env.SETUP_CPP_DIR)&&void 0!==n?n:d(""),a=[],l=[],c=qo.create({autoloadLocales:!0});let u,p;qo.addLocale(t(zo)),Vo.addLocale(t(Wo));let f=null;try{f=await(async()=>{if(ie()){const e=await(0,Xo.getUbuntuVersion)();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){(0,ei.warning)(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const i=t.slice(0,r).concat(t.slice(r+1)),o=t[r];if(!Z(e[o],o))for(let t=0;i.length>t;t++){const r=i[t];if(Z(e[r],i[t]))e[r]=e[o];else if(e[o]!==e[i[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return(0,ei.error)("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of Jo){const t=r[e];if(void 0!==t){u=Date.now(),(0,rt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await Ee(J(e,t,f),void 0,o,void 0,void 0,!1,!1);else{const i=Ko[e],n=$gCrli$join(s,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await i(J(e,t,f),n,o)}a.push(ke(e,r))}catch(t){(0,ei.error)(t),l.push(e+" failed to install")}(0,rt.endGroup)(),p=Date.now(),(0,ei.info)("took "+(c.format(u,p)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=Re(m);switch((0,rt.startGroup)(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await ue(J("llvm",t,f),$gCrli$join(s,"llvm"),o);a.push(ke("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await ne(J("gcc",t,f),$gCrli$join(s,"gcc"),o);a.push(ke("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await $e(J("msvc",t,f),$gCrli$join(s,"msvc"),o);a.push(ke("msvc",e));break}case"appleclang":case"applellvm":(0,rt.notice)("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(ke("apple-clang",void 0));break;default:l.push("Unsupported compiler "+e)}(0,rt.endGroup)(),p=Date.now(),(0,ei.info)("took "+(c.format(u,p)||"0 seconds"))}}catch(e){(0,ei.error)(e),l.push("Failed to install the "+m),(0,rt.endGroup)(),p=Date.now(),(0,ei.info)("took "+(c.format(u,p)||"0 seconds"))}if(0===a.length&&0===l.length)return(0,ei.warning)("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,ei.success)(e))),l.forEach((e=>(0,ei.error)(e))),(0,ei.info)("setup_cpp finished"),!(0,ti.isGitHubCI)())switch(process.platform){case"win32":(0,ei.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,ei.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===l.length?0:1}function Ae(e){return((e,t)=>{var r,i,o,n,s,a={_:[]},l=0,c=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=Ce(t.string),t.boolean=Ce(t.boolean),p)for(r in t.alias)for(i=t.alias[r]=Ce(t.alias[r]),l=0;i.length>l;l++)(t.alias[i[l]]=i.concat(r)).splice(l,1);for(l=t.boolean.length;l-- >0;)for(c=(i=t.alias[t.boolean[l]]||[]).length;c-- >0;)t.boolean.push(i[c]);for(l=t.string.length;l-- >0;)for(c=(i=t.alias[t.string[l]]||[]).length;c-- >0;)t.string.push(i[c]);if(f)for(r in t.default)if(n=typeof t.default[r],i=t.alias[r]=t.alias[r]||[],void 0!==t[n])for(t[n].push(r),l=0;i.length>l;l++)t[n].push(i[l]);const m=h?Object.keys(t.alias):[];for(l=0;d>l;l++){if("--"===(o=e[l])){a._=a._.concat(e.slice(++l));break}for(c=0;o.length>c&&45===o.charCodeAt(c);c++);if(0===c)a._.push(o);else if("no-"===o.substring(c,c+3)){if(n=o.substring(c+3),h&&!~m.indexOf(n))return t.unknown(o);a[n]=!1}else{for(u=c+1;o.length>u&&61!==o.charCodeAt(u);u++);for(n=o.substring(c,u),s=o.substring(++u)||l+1===d||45===(""+e[l+1]).charCodeAt(0)||e[++l],i=2===c?[n]:n,u=0;i.length>u;u++){if(n=i[u],h&&!~m.indexOf(n))return t.unknown("-".repeat(c)+n);_e(a,n,i.length>u+1||s,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(i=t.alias[r]||[];i.length>0;)a[i.shift()]=a[r];return a})(e,{string:Zo,default:Object.fromEntries(Zo.map((e=>[e,Pe(e)]))),alias:{h:"help"},boolean:"help"})}function Re(e){const r=e.split("-"),i=r[0];if(1 in r){const e=r[1];return null!==t(eo)(e)||(0,ei.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:i,version:e}}return{compiler:i,version:void 0}}function Pe(e){const t=(0,rt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function ke(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}import*as Ne from"os";import Le,*as je from"path";import*as De from"fs";import*as Me from"http";import*as Fe from"https";import"net";import{connect as Ue}from"tls";import*as Ge from"events";import*as He from"assert";import*as ze from"util";import*as Be from"child_process";import{randomBytes as qe}from"crypto";import{StringDecoder as Ve}from"string_decoder";import{setTimeout as We}from"timers";import{constants as Xe}from"buffer";import*as Ye from"stream";import{env as Ke,platform as Je}from"process";var Ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Qe={},et={},tt=Ze.parcelRequire810d;null==tt&&((tt=e=>{if(e in Qe)return Qe[e].exports;if(e in et){var t=et[e];delete et[e];var r={id:e,exports:{}};return Qe[e]=r,t.call(r.exports,r,r.exports),r.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=(e,t)=>{et[e]=t},Ze.parcelRequire810d=tt),tt.register("gF2Jd",(function(e,t){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 i(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function n(){u.issue("endgroup")}var s=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),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)&&s(t,e,r);return a(t,e),t}),c=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.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=tt("CzUPq"),d=tt("a92Us"),p=tt("7u2Mm");const h=l(Ne),f=l(je);var m,g,v=tt("aKUUy");(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 i=r(e,t);if(["true","True","TRUE"].includes(i))return!0;if(["false","False","FALSE"].includes(i))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,i(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=i,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=o,e.exports.endGroup=n,e.exports.group=function(e,t){return c(this,void 0,void 0,(function*(){let r;o(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 c(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))};var y=tt("f0qw2");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=tt("f0qw2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}});var w=tt("gzMJ3");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return w.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return w.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return w.toPlatformPath}})})),tt.register("CzUPq",(function(e,t){function r(e,t,r){const i=new l(e,t,r);process.stdout.write(""+i+s.EOL)}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),o=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)&&i(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const s=n(Ne);var a=tt("7u2Mm");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class l{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 i in this.properties)if(this.properties.hasOwnProperty(i)){const o=this.properties[i];o&&(r?r=!1:e+=",",e+=`${i}=${t=o,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}}})),tt.register("7u2Mm",((e,t)=>{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}:{}})),tt.register("a92Us",((e,t)=>{var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const n=o(De),s=o(Ne);var a=tt("7u2Mm");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)}${s.EOL}`,{encoding:"utf8"})}})),tt.register("aKUUy",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var i=tt("9kh6d"),o=tt("bynPH"),n=tt("gF2Jd");class s{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(s.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=s.createHttpClient(),i=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}`)})),o=null===(t=i.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=s.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),n.debug("ID token url is "+t);const r=yield s.getCall(t);return n.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=s})),tt.register("9kh6d",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;const s=o(Me),a=o(Fe),l=o(tt("hYqzk")),c=o(tt("ky4Yx"));var u,d,p,h,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(h=p=e.exports.Headers||(e.exports.Headers={})).Accept="accept",h.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=l.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class w{constructor(e){this.message=e}readBody(){return n(this,void 0,void 0,(function*(){return new Promise((e=>n(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])})),this.message.on("end",(()=>{e(""+t)}))}))))}))}}e.exports.HttpClientResponse=w,e.exports.isHttps=e=>"https:"===new URL(e).protocol,e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return n(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return n(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return n(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return n(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return n(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,i){return n(this,void 0,void 0,(function*(){return this.request(e,t,r,i)}))}getJson(e,t={}){return n(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.post(e,i,r);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.put(e,i,r);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,r={}){return n(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.patch(e,i,r);return this._processResponse(o,this.requestOptions)}))}request(e,t,r,i){return n(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let n=this._prepareRequest(e,o,i);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let a,l=0;do{if(a=yield this.requestRaw(n,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,n,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const s=a.message.headers.location;if(!s)break;const l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield a.readBody(),l.hostname!==o.hostname)for(const e in i)"authorization"===e.toLowerCase()&&delete i[e];n=this._prepareRequest(e,l,i),a=yield this.requestRaw(n,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;l+=1,s>l&&(yield a.readBody(),yield this._performExponentialBackoff(l))}while(s>l);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?i(e):t?r(t):i(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function i(e,t){o||(o=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1;const n=e.httpModule.request(e.options,(e=>{i(void 0,new w(e))}));let s;n.on("socket",(e=>{s=e})),n.setTimeout(this._socketTimeout||18e4,(()=>{s&&s.end(),i(Error("Request timeout: "+e.options.path))})),n.on("error",(e=>{i(e)})),t&&"string"==typeof t&&n.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{n.end()})),t.pipe(n)):n.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const o="https:"===i.parsedUrl.protocol;i.httpModule=o?a:s;const n=o?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):n,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;return this.requestOptions&&this.requestOptions.headers&&(i=x(this.requestOptions.headers)[t]),e[t]||i||r}_getAgent(e){let t;const r=l.getProxyUrl(e),i=r&&r.hostname;if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const o="https:"===e.protocol;let n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||s.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let i;const s="https:"===r.protocol;i=o?s?c.httpsOverHttps:c.httpsOverHttp:s?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=o?new a.Agent(e):new s.Agent(e),this._agent=t}return t||(t=o?a.globalAgent:s.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return n(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){const o=e.message.statusCode||0,n={statusCode:o,result:null,headers:{}};let s,a;o===u.NotFound&&r(n);try{a=yield e.readBody(),a&&a.length>0&&(s=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),n.result=s),n.headers=e.message.headers}catch(e){}if(o>299){let e;e=s&&s.message?s.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new y(e,o);t.result=n.result,i(t)}else r(n)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),tt.register("hYqzk",((e,t)=>{function r(e){if(!e.hostname)return!1;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const i=[e.hostname.toUpperCase()];"number"==typeof r&&i.push(`${i[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(i.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{const t="https:"===e.protocol;if(r(e))return;const i=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return i?new URL(i):void 0},e.exports.checkBypass=r})),tt.register("ky4Yx",((e,t)=>{e.exports=tt("48VNE")})),tt.register("48VNE",(function(t,r){function i(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||$gCrli$Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,i,o)=>{for(var s=n(r,i,o),a=0,l=t.requests.length;l>a;++a){var c=t.requests[a];if(c.host===s.host&&c.port===s.port)return t.requests.splice(a,1),void c.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;i.prototype.createSocket.call(r,e,(i=>{var o=e.request.getHeader("host"),n=s({},r.options,{socket:i,servername:o?o.replace(/:.*$/,""):e.host}),a=Ue(0,n);r.sockets[r.sockets.indexOf(i)]=a,t(a)}))}function n(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function s(e){for(var t=1,r=arguments.length;r>t;++t){var i=arguments[t];if("object"==typeof i)for(var o=Object.keys(i),n=0,s=o.length;s>n;++n){var a=o[n];void 0!==i[a]&&(e[a]=i[a])}}return e}var a,l,c,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>l),(e=>l=e)),e(t.exports,"httpOverHttps",(()=>c),(e=>c=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new i(e);return t.request=$gCrli$request,t},l=e=>{var t=new i(e);return t.request=$gCrli$request,t.createSocket=o,t.defaultPort=443,t},c=e=>{var t=new i(e);return t.request=$gCrli$request1,t},u=e=>{var t=new i(e);return t.request=$gCrli$request1,t.createSocket=o,t.defaultPort=443,t},$gCrli$inherits(i,$gCrli$EventEmitter),i.prototype.addRequest=function(e,t,r,i){var o=this,a=s({request:e},o.options,n(t,r,i));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function i(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",i),t.removeListener("agentRemove",i)}t.on("free",r),t.on("close",i),t.on("agentRemove",i),e.onSocket(t)})):o.requests.push(a)},i.prototype.createSocket=function(e,t){function r(r,n,s){var l;return a.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy(),(l=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(o)):s.length>0?(p("got illegal response body from proxy"),n.destroy(),(l=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",l),void i.removeSocket(o)):(p("tunneling connection has established"),i.sockets[i.sockets.indexOf(o)]=n,t(n))}var i=this,o={};i.sockets.push(o);var n=s({},i.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=i.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,i)=>{process.nextTick((()=>{r(e,t,i)}))})),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),i.removeSocket(o)})),a.end()},i.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=()=>{}})),tt.register("bynPH",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw Error("not implemented")}))}}})),tt.register("f0qw2",(function(e,t){var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;const{access:i,appendFile:o,writeFile:n}=$gCrli$promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const s=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 job summaries.`);try{yield i(t,$gCrli$constants.R_OK|$gCrli$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 i=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${i}>${t}</${e}>`:`<${e}${i}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),i=t?n:o;return yield i(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw($gCrli$EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",i=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,i);return this.addRaw(o).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:i,rowspan:o}=e,n=t?"th":"td",s=Object.assign(Object.assign({},i&&{colspan:i}),o&&{rowspan:o});return this.wrap(n,r,s)})).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:i,height:o}=r||{},n=Object.assign(Object.assign({},i&&{width:i}),o&&{height:o}),s=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(s).addEOL()}addHeading(e,t){const r="h"+t,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",o=this.wrap(i,e);return this.addRaw(o).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}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s})),tt.register("gzMJ3",((e,t)=>{var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const n=o(je);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,n.sep)})),tt.register("jUvGx",((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 i=0;r.length>i;i++){var o=r[i].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function i(e,t,i){$gCrli$stat(e,((o,n)=>{i(o,!o&&r(n,e,t))}))}e.exports=i,i.sync=(e,t)=>r($gCrli$statSync(e),e,t)})),tt.register("lNi8N",((e,t)=>{function r(e,t,r){$gCrli$stat(e,((e,o)=>{r(e,!e&&i(o,t))}))}function i(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,i=e.uid,o=e.gid,n=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),c=a|l;return r&parseInt("001",8)||r&l&&o===s||r&a&&i===n||r&c&&0===n})(e,t)}e.exports=r,r.sync=(e,t)=>i($gCrli$statSync(e),t)})),tt.register("3FPvT",((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")})),tt.register("81ovw",((t,r)=>{function i(e){return(0,c.isGitHubCI)()?l.error(e):console.log(`${e}`)}function o(e){return console.log(`${e}`)}function n(e){return(0,c.isGitHubCI)()?l.warning(e):console.log(`${e}`)}function s(e){return(0,c.isGitHubCI)()?l.notice(e):console.log(`${e}`)}function a(e){return(0,c.isGitHubCI)()?l.info(e):console.log(e)}e(t.exports,"error",(()=>i)),e(t.exports,"success",(()=>o)),e(t.exports,"warning",(()=>n)),e(t.exports,"notice",(()=>s)),e(t.exports,"info",(()=>a));var l=tt("gF2Jd"),c=tt("8SW0l")})),tt.register("8SW0l",((t,r)=>{function i(){return"true"===process.env.CI&&"true"===process.env.GITHUB_ACTIONS}e(t.exports,"isGitHubCI",(()=>i))})),tt.register("2fNe7",(function(e,t){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 i(e){return u(this,void 0,void 0,(function*(){$gCrli$ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function o(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 i=[];for(const o of r){const r=yield h.tryGetExecutablePath(p.join(o,e),t);r&&i.push(r)}return i}))}function n(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield i(t);const a=yield h.readdir(e);for(const i of a){const a=`${e}/${i}`,l=`${t}/${i}`;(yield h.lstat(a)).isDirectory()?yield n(a,l,r,o):yield s(a,l,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function s(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,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),l=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)&&a(t,e,r);return l(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.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=c(Be),p=c(je),h=c(tt("0VvfX")),f=$gCrli$promisify(d.exec),m=$gCrli$promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:i,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),l=(yield h.exists(t))?yield h.stat(t):null;if(l&&l.isFile()&&!i)return;const c=l&&l.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(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield n(e,c,0,i)}else{if(""===p.relative(e,c))throw Error(`'${c}' and '${e}' are the same file`);yield s(e,c,i)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let i=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),i=yield h.exists(t)),i){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield i(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=i,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 i=yield o(t);return i&&i.length>0?i[0]:""}))},e.exports.findInPath=o})),tt.register("0VvfX",(function(e,t){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 i,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),s=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 n(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.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 l=s(De),c=s(je);e.exports.chmod=(i=l.promises).chmod,e.exports.copyFile=i.copyFile,e.exports.lstat=i.lstat,e.exports.mkdir=i.mkdir,e.exports.readdir=i.readdir,e.exports.readlink=i.readlink,e.exports.rename=i.rename,e.exports.rmdir=i.rmdir,e.exports.stat=i.stat,e.exports.symlink=i.symlink,e.exports.unlink=i.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,i){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=c.extname(t).toUpperCase();if(i.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const n=t;for(const s of i){t=n+s,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=c.dirname(t),i=c.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(i===o.toUpperCase()){t=c.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),tt.register("biqIc",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const s=o(tt("dsEdn"));var a=tt("gF2Jd");e.exports._findMatch=function(t,r,i,o){return n(this,void 0,void 0,(function*(){const n=$gCrli$platform();let l,c,u;for(const l of i){const i=l.version;if(a.debug(`check ${i} satisfies ${t}`),s.satisfies(i,t)&&(!r||l.stable===r)&&(u=l.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${n}`);let r=t.arch===o&&t.platform===n;if(r&&t.platform_version){const i=e.exports._getOsVersion();r=i===t.platform_version||s.satisfies(i,t.platform_version)}return r})),u)){a.debug("matched "+l.version),c=l;break}}return c&&u&&(l=Object.assign({},c),l.files=[u]),l}))},e.exports._getOsVersion=()=>{const t=$gCrli$platform();let r="";if("darwin"===t)r=""+$gCrli$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 $gCrli$existsSync(e)?r=""+$gCrli$readFileSync(e):$gCrli$existsSync(t)&&(r=""+$gCrli$readFileSync(t)),r}})),tt.register("dsEdn",((e,t)=>{var r=tt("e9hBm");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:tt("4Y6QE").SEMVER_SPEC_VERSION,SemVer:tt("ewE0y"),compareIdentifiers:tt("5niLa").compareIdentifiers,rcompareIdentifiers:tt("5niLa").rcompareIdentifiers,parse:tt("9pDo3"),valid:tt("kULaE"),clean:tt("kVpax"),inc:tt("h6Vge"),diff:tt("3u0pC"),major:tt("ehbTi"),minor:tt("gKZZ5"),patch:tt("aLUuB"),prerelease:tt("janoF"),compare:tt("odmNz"),rcompare:tt("jBQST"),compareLoose:tt("jTcyr"),compareBuild:tt("34MvR"),sort:tt("fGLgH"),rsort:tt("c3rWp"),gt:tt("fMkbf"),lt:tt("KbgdS"),eq:tt("13Au1"),neq:tt("lMg40"),gte:tt("kdktp"),lte:tt("kNWZ7"),cmp:tt("hYtJM"),coerce:tt("3wKw1"),Comparator:tt("9Bceq"),Range:tt("kEeqW"),satisfies:tt("fThUd"),toComparators:tt("kBAIU"),maxSatisfying:tt("9ybja"),minSatisfying:tt("lw7B8"),minVersion:tt("aGCCN"),validRange:tt("asxHW"),outside:tt("5T7ZF"),gtr:tt("8pZ7x"),ltr:tt("jkRb0"),intersects:tt("5obom"),simplifyRange:tt("rDQLp"),subset:tt("3vJJ8")}})),tt.register("e9hBm",((e,t)=>{var r=tt("4Y6QE").MAX_SAFE_COMPONENT_LENGTH,i=tt("36nrx");const o=(t=e.exports={}).re=[],n=t.src=[],s=t.t={};let a=0;const l=(e,t,r)=>{const l=a++;i(e,l,t),s[e]=l,n[l]=t,o[l]=RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})\\.(${n[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})\\.(${n[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${n[s.NUMERICIDENTIFIER]}|${n[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${n[s.NUMERICIDENTIFIERLOOSE]}|${n[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${n[s.PRERELEASEIDENTIFIER]}(?:\\.${n[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${n[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${n[s.BUILDIDENTIFIER]}(?:\\.${n[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${n[s.MAINVERSION]}${n[s.PRERELEASE]}?${n[s.BUILD]}?`),l("FULL",`^${n[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${n[s.MAINVERSIONLOOSE]}${n[s.PRERELEASELOOSE]}?${n[s.BUILD]}?`),l("LOOSE",`^${n[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",n[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",n[s.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:\\.(${n[s.XRANGEIDENTIFIER]})(?:${n[s.PRERELEASE]})?${n[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[s.XRANGEIDENTIFIERLOOSE]})(?:${n[s.PRERELEASELOOSE]})?${n[s.BUILD]}?)?)?`),l("XRANGE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${n[s.GTLT]}\\s*${n[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",n[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${n[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${n[s.LONETILDE]}${n[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${n[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${n[s.LONECARET]}${n[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${n[s.LONECARET]}${n[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${n[s.GTLT]}\\s*(${n[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${n[s.GTLT]}\\s*(${n[s.LOOSEPLAIN]}|${n[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${n[s.XRANGEPLAIN]})\\s+-\\s+(${n[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${n[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),tt.register("4Y6QE",((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}})),tt.register("36nrx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),tt.register("ewE0y",(function(e,t){var r=tt("36nrx"),i=tt("4Y6QE"),o=i.MAX_LENGTH,n=i.MAX_SAFE_INTEGER,s=tt("e9hBm"),a=s.re,l=s.t,c=tt("kQXIc"),u=tt("5niLa").compareIdentifiers;class d{constructor(e,t){if(t=c(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>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const i=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[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=i[4]?i[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=i[5]?i[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 i=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return-1;if(i!==o)return u(i,o)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const i=this.build[t],o=e.build[t];if(r("prerelease compare",t,i,o),void 0===i&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===i)return-1;if(i!==o)return u(i,o)}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})),tt.register("kQXIc",((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)),{}):{}})),tt.register("5niLa",((e,t)=>{const r=/^[0-9]+$/,i=(e,t)=>{const i=r.test(e),o=r.test(t);return i&&o&&(e=+e,t=+t),e===t?0:i&&!o?-1:o&&!i?1:t>e?-1:1};e.exports={compareIdentifiers:i,rcompareIdentifiers(e,t){return i(t,e)}}})),tt.register("9pDo3",((e,t)=>{var r=tt("4Y6QE").MAX_LENGTH,i=tt("e9hBm"),o=i.re,n=i.t,s=tt("ewE0y"),a=tt("kQXIc");e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[n.LOOSE]:o[n.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}})),tt.register("kULaE",((e,t)=>{var r=tt("9pDo3");e.exports=(e,t)=>{const i=r(e,t);return i?i.version:null}})),tt.register("kVpax",((e,t)=>{var r=tt("9pDo3");e.exports=(e,t)=>{const i=r(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null}})),tt.register("h6Vge",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t,i,o)=>{"string"==typeof i&&(o=i,i=void 0);try{return new r(e instanceof r?e.version:e,i).inc(t,o).version}catch(e){return null}}})),tt.register("3u0pC",((e,t)=>{var r=tt("9pDo3"),i=tt("13Au1");e.exports=(e,t)=>{if(i(e,t))return null;{const i=r(e),o=r(t),n=i.prerelease.length||o.prerelease.length,s=n?"pre":"",a=n?"prerelease":"";for(const e in i)if(("major"===e||"minor"===e||"patch"===e)&&i[e]!==o[e])return s+e;return a}}})),tt.register("13Au1",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>0===r(e,t,i)})),tt.register("odmNz",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t,i)=>new r(e,i).compare(new r(t,i))})),tt.register("ehbTi",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t)=>new r(e,t).major})),tt.register("gKZZ5",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t)=>new r(e,t).minor})),tt.register("aLUuB",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t)=>new r(e,t).patch})),tt.register("janoF",((e,t)=>{var r=tt("9pDo3");e.exports=(e,t)=>{const i=r(e,t);return i&&i.prerelease.length?i.prerelease:null}})),tt.register("jBQST",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>r(t,e,i)})),tt.register("jTcyr",((e,t)=>{var r=tt("odmNz");e.exports=(e,t)=>r(e,t,!0)})),tt.register("34MvR",((e,t)=>{var r=tt("ewE0y");e.exports=(e,t,i)=>{const o=new r(e,i),n=new r(t,i);return o.compare(n)||o.compareBuild(n)}})),tt.register("fGLgH",((e,t)=>{var r=tt("34MvR");e.exports=(e,t)=>e.sort(((e,i)=>r(e,i,t)))})),tt.register("c3rWp",((e,t)=>{var r=tt("34MvR");e.exports=(e,t)=>e.sort(((e,i)=>r(i,e,t)))})),tt.register("fMkbf",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>r(e,t,i)>0})),tt.register("KbgdS",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>0>r(e,t,i)})),tt.register("lMg40",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>0!==r(e,t,i)})),tt.register("kdktp",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>r(e,t,i)>=0})),tt.register("kNWZ7",((e,t)=>{var r=tt("odmNz");e.exports=(e,t,i)=>0>=r(e,t,i)})),tt.register("hYtJM",((e,t)=>{var r=tt("13Au1"),i=tt("lMg40"),o=tt("fMkbf"),n=tt("kdktp"),s=tt("KbgdS"),a=tt("kNWZ7");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return i(e,l,c);case">":return o(e,l,c);case">=":return n(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw new TypeError("Invalid operator: "+t)}}})),tt.register("3wKw1",((e,t)=>{var r=tt("ewE0y"),i=tt("9pDo3"),o=tt("e9hBm"),n=o.re,s=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=n[s.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),n[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;n[s.COERCERTL].lastIndex=-1}else o=e.match(n[s.COERCE]);return null===o?null:i(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),tt.register("9Bceq",(function(e,t){const r=Symbol();class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,c("comp",this)}parse(e){const t=e.match(this.options.loose?s[a.COMPARATORLOOSE]:s[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(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))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),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||n&&s||a||c}}e.exports=i;var o=tt("kQXIc"),n=tt("e9hBm"),s=n.re,a=n.t,l=tt("hYtJM"),c=tt("36nrx"),u=tt("ewE0y"),d=tt("kEeqW")})),tt.register("kEeqW",(function(e,t){class r{constructor(e,t){if(t=o(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=i.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE],O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],d),s("comparator trim",e);let a=(e=(e=(e=e.replace(c[u.TILDETRIM],p)).replace(c[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));o&&(a=a.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE]))))),s("range list",a);const l=new Map,m=a.map((e=>new n(e,this.options)));for(const e of m){if(f(e))return[e];l.set(e.value,e)}l.size>1&&l.has("")&&l.delete("");const g=[...l.values()];return i.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 i=new(tt("baiI1"))({max:1e3});var o=tt("kQXIc"),n=tt("9Bceq"),s=tt("36nrx"),a=tt("ewE0y"),l=tt("e9hBm"),c=l.re,u=l.t,d=l.comparatorTrimReplace,p=l.tildeTrimReplace,h=l.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const i=e.slice();let o=i.pop();for(;r&&i.length;)r=i.every((e=>o.intersects(e,t))),o=i.pop();return r},v=(e,t)=>(s("comp",e,t),e=b(e,t),s("caret",e),e=w(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=C(e,t),s("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?c[u.TILDELOOSE]:c[u.TILDE],((t,r,i,o,n)=>{let a;return s("tilde",e,t,r,i,o,n),y(r)?a="":y(i)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(o)?a=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:n?(s("replaceTilde pr",n),a=`>=${r}.${i}.${o}-${n} <${r}.${+i+1}.0-0`):a=`>=${r}.${i}.${o} <${r}.${+i+1}.0-0`,s("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{s("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?c[u.CARETLOOSE]:c[u.CARET],((t,i,o,n,a)=>{let l;return s("caret",e,t,i,o,n,a),y(i)?l="":y(o)?l=`>=${i}.0.0${r} <${+i+1}.0.0-0`:y(n)?l="0"===i?`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===i?"0"===o?`>=${i}.${o}.${n}-${a} <${i}.${o}.${+n+1}-0`:`>=${i}.${o}.${n}-${a} <${i}.${+o+1}.0-0`:`>=${i}.${o}.${n}-${a} <${+i+1}.0.0-0`):(s("no pr"),l="0"===i?"0"===o?`>=${i}.${o}.${n}${r} <${i}.${o}.${+n+1}-0`:`>=${i}.${o}.${n}${r} <${i}.${+o+1}.0-0`:`>=${i}.${o}.${n} <${+i+1}.0.0-0`),s("caret return",l),l}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>(e=e.trim()).replace(t.loose?c[u.XRANGELOOSE]:c[u.XRANGE],((r,i,o,n,a,l)=>{s("xRange",e,r,i,o,n,a,l);const c=y(o),u=c||y(n),d=u||y(a);return"="===i&&d&&(i=""),l=t.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(u&&(n=0),a=0,">"===i?(i=">=",u?(o=+o+1,n=0,a=0):(n=+n+1,a=0)):"<="===i&&(i="<",u?o=+o+1:n=+n+1),"<"===i&&(l="-0"),r=`${i+o}.${n}.${a}${l}`):u?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${n}.0${l} <${o}.${+n+1}.0-0`),s("xRange return",r),r})),C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),_=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=e=>(t,r,i,o,n,s,a,l,c,u,d,p,h)=>`${r=y(i)?"":y(o)?`>=${i}.0.0${e?"-0":""}`:y(n)?`>=${i}.${o}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${l=y(c)?"":y(u)?`<${+c+1}.0.0-0`:y(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:"<="+l}`.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(s(e[r].semver),e[r].semver!==n.ANY&&e[r].semver.prerelease.length>0){const i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}})),tt.register("baiI1",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new i.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),o=new Set,n=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;l(r)&&c(r,e+" option","options."+t,f)},s=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(l(r)){const{prototype:i}=f,{get:o}=Object.getOwnPropertyDescriptor(i,e);c(r,e+" method",`cache.${t}()`,o)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},l=e=>!o.has(e),c=(e,t,r,i)=>{o.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,i)},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:i=1,ttlAutopurge:s,updateAgeOnGet:c,updateAgeOnHas:p,allowStale:m,dispose:g,disposeAfter:v,noDisposeOnSet:y,noUpdateTTL:w,maxSize:x=0,sizeCalculation:b,fetchMethod:E}=e,{length:$,maxAge:S,stale:C}=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||$,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||!!C,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!p,this.ttlResolution=u(i)||0===i?i:1,this.ttlAutopurge=!!s,this.ttl=r||S||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";l(e)&&(o.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}C&&n("stale","allowStale"),S&&n("maxAge","ttl"),$&&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 i=this.keyMap.get(r);return void 0===i?0:0===this.ttls[i]||0===this.starts[i]?1/0:this.starts[i]+this.ttls[i]-(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,i)=>{if(!u(r)){if(!i)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(r=i(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,i)=>{this.sizes[e]=i;const o=this.maxSize-this.sizes[e];for(;this.calculatedSize>o;)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,i){}requireSize(e,t,r,i){if(r||i)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 s("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],i={value:this.valList[t]};this.ttls&&(i.ttl=this.ttls[t]),this.sizes&&(i.size=this.sizes[t]),e.unshift([r,i])}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:i=this.noDisposeOnSet,size:o=0,sizeCalculation:n=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL}={}){o=this.requireSize(e,t,o,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,o),s=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(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,o)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||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],i=this.valList[t];return this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,r,"evict"),this.disposeAfter&&this.disposed.push([i,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 o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;const n=new i,s={signal:n.signal,options:r},a=Promise.resolve(this.fetchMethod(e,o,s)).then((t=>(n.signal.aborted||this.set(e,t,s.options),t)));return a.__abortController=n,a.__staleWhileFetching=o,void 0===t?(this.set(e,a,s.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:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:n=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const l={allowStale:t,updateAgeOnGet:r,ttl:i,noDisposeOnSet:o,size:n,sizeCalculation:s,noUpdateTTL:a};let c=this.keyMap.get(e);if(void 0===c)return this.backgroundFetch(e,c,l);{const i=this.valList[c];if(this.isBackgroundFetch(i))return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i;if(!this.isStale(c))return this.moveToTail(c),r&&this.updateItemAge(c),i;const o=this.backgroundFetch(e,c,l);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const o=this.valList[i],n=this.isBackgroundFetch(o);if(this.isStale(i))return n?t?o.__staleWhileFetching:void 0:(this.delete(e),t?o:void 0);if(n)return;return this.moveToTail(i),r&&this.updateItemAge(i),o}}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 s("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 s("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(l(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");c(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),tt.register("fThUd",((e,t)=>{var r=tt("kEeqW");e.exports=(e,t,i)=>{try{t=new r(t,i)}catch(e){return!1}return t.test(e)}})),tt.register("kBAIU",((e,t)=>{var r=tt("kEeqW");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),tt.register("9ybja",((e,t)=>{var r=tt("ewE0y"),i=tt("kEeqW");e.exports=(e,t,o)=>{let n=null,s=null,a=null;try{a=new i(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==s.compare(e)||(n=e,s=new r(n,o)))})),n}})),tt.register("lw7B8",((e,t)=>{var r=tt("ewE0y"),i=tt("kEeqW");e.exports=(e,t,o)=>{let n=null,s=null,a=null;try{a=new i(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==s.compare(e)||(n=e,s=new r(n,o)))})),n}})),tt.register("aGCCN",((e,t)=>{var r=tt("ewE0y"),i=tt("kEeqW"),o=tt("fMkbf");e.exports=(e,t)=>{e=new i(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 i=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">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!i||n&&!o(n,i)||(n=i)}return n&&e.test(n)?n:null}})),tt.register("asxHW",((e,t)=>{var r=tt("kEeqW");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),tt.register("5T7ZF",((e,t)=>{var r=tt("ewE0y"),i=tt("9Bceq");const{ANY:o}=i;var n=tt("kEeqW"),s=tt("fThUd"),a=tt("fMkbf"),l=tt("KbgdS"),c=tt("kNWZ7"),u=tt("kdktp");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=c,m=l,g=">",v=">=";break;case"<":h=l,f=u,m=a,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let r=0;t.set.length>r;++r){let n=null,s=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),n=n||e,s=s||e,h(e.semver,n.semver,p)?n=e:m(e.semver,s.semver,p)&&(s=e)})),n.operator===g||n.operator===v)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0}})),tt.register("8pZ7x",((e,t)=>{var r=tt("5T7ZF");e.exports=(e,t,i)=>r(e,t,">",i)})),tt.register("jkRb0",((e,t)=>{var r=tt("5T7ZF");e.exports=(e,t,i)=>r(e,t,"<",i)})),tt.register("5obom",((e,t)=>{var r=tt("kEeqW");e.exports=(e,t,i)=>(e=new r(e,i),t=new r(t,i),e.intersects(t))})),tt.register("rDQLp",((e,t)=>{var r=tt("fThUd"),i=tt("odmNz");e.exports=(e,t,o)=>{const n=[];let s=null,a=null;const l=e.sort(((e,t)=>i(e,t,o)));for(const e of l)r(e,t,o)?(a=e,s||(s=e)):(a&&n.push([s,a]),a=null,s=null);s&&n.push([s,null]);const c=[];for(const[e,t]of n)c.push(e===t?e:t||e!==l[0]?t?e===l[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=c.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),tt.register("3vJJ8",((e,t)=>{var r=tt("kEeqW"),i=tt("9Bceq");const{ANY:o}=i;var n=tt("fThUd"),s=tt("odmNz");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new i(">=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=l(u,t,r):"<"===t.operator||"<="===t.operator?d=c(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=s(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 i of t)if(!n(e,i+"",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=l(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=c(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)},l=(e,t,r)=>{if(!e)return t;const i=s(e.semver,t.semver,r);return i>0?e:0>i||">"===t.operator&&">="===e.operator?t:e},c=(e,t,r)=>{if(!e)return t;const i=s(e.semver,t.semver,r);return 0>i?e:i>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,i={})=>{if(e===t)return!0;e=new r(e,i),t=new r(t,i);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,i);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),tt.register("8XxoC",((e,t)=>{var r=tt("7tyCH"),i=tt("cyw4a");e.exports=(e,t,o)=>{var n=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;16>a;++a)t[n+a]=s[a];return t||i(s)}})),tt.register("7tyCH",((e,t)=>{e.exports=()=>qe(16)})),tt.register("cyw4a",((e,t)=>{for(var r=[],i=0;256>i;++i)r[i]=(i+256).toString(16).substr(1);e.exports=(e,t)=>{var i=t||0;return""+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]}})),tt.register("eGKv1",(function(e,t){function r(e,t,r){return s(this,void 0,void 0,(function*(){const i=a.argStringToArray(e);if(0===i.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=i[0];return t=i.slice(1).concat(t||[]),new a.ToolRunner(o,t,r).exec()}))}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),o=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)&&i(t,e,r);return o(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=n(tt("fGrvc"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,i){var o,n;return s(this,void 0,void 0,(function*(){let s="",a="";const l=new Ve("utf8"),c=new Ve("utf8"),u=null===(o=null==i?void 0:i.listeners)||void 0===o?void 0:o.stdout,d=null===(n=null==i?void 0:i.listeners)||void 0===n?void 0:n.stderr,p=Object.assign(Object.assign({},null==i?void 0:i.listeners),{stdout(e){s+=l.write(e),u&&u(e)},stderr(e){a+=c.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},i),{listeners:p}));return s+=l.end(),a+=c.end(),{exitCode:h,stdout:s,stderr:a}}))}})),tt.register("fGrvc",(function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t}),n=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const s=o(Ne),a=o(Ge),l=o(Be),c=o(je),u=o(tt("2fNe7")),d=o(tt("0VvfX")),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(),i=this._getSpawnArgs(e);let o=t?"":"[command]";if(p)if(this._isCmdFile()){o+=r;for(const e of i)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of i)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of i)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of i)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let i=t+""+e,o=i.indexOf(s.EOL);for(;o>-1;)r(i.substring(0,o)),i=i.substring(o+s.EOL.length),o=i.indexOf(s.EOL);return i}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 i of e)if(t.some((e=>e===i))){r=!0;break}if(!r)return e;let i='"',o=!0;for(let t=e.length;t>0;t--)i+=e[t-1],o&&"\\"===e[t-1]?i+="\\":'"'===e[t-1]?(o=!0,i+='"'):o=!1;return i+='"',i.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 i=e.length;i>0;i--)t+=e[i-1],r&&"\\"===e[i-1]?t+="\\":'"'===e[i-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=c.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)+s.EOL);const i=new h(r,this.toolPath);if(i.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 o=this._getSpawnFileName(),n=l.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));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 c="";if(n.stderr&&n.stderr.on("data",(e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),n.on("error",(e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),n.on("exit",(e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()})),n.on("close",(e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()})),i.on("done",((r,i)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),n.removeAllListeners(),r?t(r):e(i)})),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){o&&'"'!==e&&(n+="\\"),n+=e,o=!1}const r=[];let i=!1,o=!1,n="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&i?o=!0:" "!==a||i?t(a):n.length>0&&(r.push(n),n=""):o?t(a):i=!i}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=We(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())}}})),tt.register("ddrZ4",((e,t)=>{e.exports=import("./actions_python.a137bcdc.js").then((()=>tt("doiKQ")))})),tt.register("gGvz1",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;l[e]=r}}function i(e,t,r){const i=(e=>{const t=l[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let i=null;if(r.some((e=>{if(void 0!==t[e])return i=t[e],!0})),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i})(r);return o.pluralize(r.locale,t,i[e]).replace("{0}",t)}var o=tt("xu1bL"),n=tt("7IZzv");const s=[["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},l={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,o,a){return((e,t,o)=>{if(((e,t)=>{const{autoload:i}=t;if(!l[e]){if(!n||!i)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)}})(o.locale,{autoload:o.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 i=[];return s.some((e=>{const t=e[0],o=e[1],n=Math.floor(r/o);if(r-=n*o,i.push([t,n]),0>=r)return!0})),i})(e,t),c=[];for(const e of a){const[t,r]=e;if(r>0&&c.push(i(t,r,o)),c.length>=o.span)break}return c.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),tt.register("xu1bL",((e,t)=>{e.exports=tt("lhBDm")})),tt.register("lhBDm",(function(e,t){var r=$gCrli$resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){function t(e,t,r){if(i(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=o[e](t);return void 0!==r[n]?r[n]:null}function i(e){(e=>void 0!==o[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var o={},n={create(e){return i(e),{pluralize(r,i){return t(e,r,i)}}},addLocale(e,t){o[e]=t},pluralize:t};void 0!==e.exports?e.exports=n:this.numerous=n}).call(e.exports)})),tt.register("7IZzv",((e,t)=>{e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)}));var rt=tt("gF2Jd"),it={};const ot="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,nt=ot?";":":";var st,at={};st="win32"===process.platform||Ze.TESTING_WINDOWS?tt("jUvGx"):tt("lNi8N"),at=r,r.sync=(e,t)=>{try{return st.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const lt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ct=(e,t)=>{const r=t.colon||nt,i=e.match(/\//)||ot&&e.match(/\\/)?[""]:[...ot?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=ot?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=ot?o.split(r):[""];return ot&&-1!==e.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:o}},ut=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:i,pathExt:o,pathExtExe:n}=ct(e,t),s=[],a=r=>new Promise(((o,n)=>{if(r===i.length)return t.all&&s.length?o(s):n(lt(e));const a=i[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=$gCrli$join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(l(d,r,0))})),l=(e,r,i)=>new Promise(((c,u)=>{if(i===o.length)return c(a(r+1));const d=o[i];at(e+d,{pathExt:n},((o,n)=>{if(!o&&n){if(!t.all)return c(e+d);s.push(e+d)}return c(l(e,r,i+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let dt;it=ut,ut.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:i,pathExtExe:o}=ct(e,t),n=[];for(let s=0;r.length>s;s++){const a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=$gCrli$join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;i.length>e;e++){const r=u+i[e];try{if(at.sync(r,{pathExt:o})){if(!t.all)return r;n.push(r)}}catch(e){}}}if(t.all&&n.length)return n;if(t.nothrow)return null;throw lt(e)};var pt,ht={},ft={},mt={},gt={};const vt=(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 yt,wt;(gt=vt).default=vt,pt=e=>o(e)||o(e,!0),yt=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),wt=(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 xt,bt;xt=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o},bt=e=>{const t=Buffer.alloc(150);let r;try{r=$gCrli$openSync(e,"r"),$gCrli$readSync(r,t,0,150,0),$gCrli$closeSync(r)}catch(e){}return xt(""+t)};const Et="win32"===process.platform,$t=/\.(?:com|exe)$/i,St=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;mt=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const i={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?i:(e=>{if(!Et)return e;const t=(e=>{e.file=pt(e);const t=e.file&&bt(e.file);return t?(e.args.unshift(e.file),e.command=t,pt(e)):e.file})(e),r=!$t.test(t);if(e.options.forceShell||r){const r=St.test(t);e.command=$gCrli$normalize(e.command),e.command=yt(e.command),e.args=e.args.map((e=>wt(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(i)};var Ct={};const _t="win32"===process.platform;var Ot;Ct={hookChildProcess(e,t){if(!_t)return;const r=e.emit;e.emit=function(i,o){if("exit"===i){const i=s(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}},verifyENOENT:s,verifyENOENTSync(e,t){return _t&&1===e&&!t.file?n(t.original,"spawnSync"):null},notFoundError:n},(ft=a).spawn=a,ft.sync=(e,t,r)=>{const i=mt(e,t,r),o=$gCrli$spawnSync(i.command,i.args,i.options);return o.error=o.error||Ct.verifyENOENTSync(o.status,i),o},ft._parse=mt,ft._enoent=Ct,Ot=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 Tt={};const It=e=>{let t;e={cwd:process.cwd(),path:process.env[gt()],execPath:process.execPath,...e};let r=$gCrli$resolve(e.cwd);const i=[];for(;t!==r;)i.push($gCrli$join(r,"node_modules/.bin")),t=r,r=$gCrli$resolve(r,"..");const o=$gCrli$resolve(e.cwd,e.execPath,"..");return i.push(o),i.concat(e.path).join($gCrli$delimiter)};(Tt=It).default=It,Tt.env=e=>{const t={...(e={env:process.env,...e}).env},r=gt({env:t});return e.path=t[r],t[r]=Tt(e),t};var At={},Rt={};const Pt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Rt=Pt).default=Pt;const kt=new WeakMap,Nt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,i=0;const o=e.displayName||e.name||"<anonymous>",n=function(...s){if(kt.set(n,++i),1===i)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return Rt(n,e),kt.set(n,i),n};(At=Nt).default=Nt,At.callCount=e=>{if(!kt.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return kt.get(e)};var Lt,jt={};Object.defineProperty(jt,"__esModule",{value:!0}),jt.signalsByNumber=jt.signalsByName=void 0;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.getSignals=void 0;var Mt={};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.SIGNALS=void 0,Mt.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 Ft={};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.SIGRTMAX=Ft.getRealtimeSignals=void 0,Ft.getRealtimeSignals=()=>Array.from({length:Ht-Gt+1},Ut);const Ut=(e,t)=>({name:"SIGRT"+(t+1),number:Gt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Gt=34,Ht=64;Ft.SIGRTMAX=Ht,Dt.getSignals=()=>{const e=(0,Ft.getRealtimeSignals)();return[...Mt.SIGNALS,...e].map(zt)};const zt=({name:e,number:t,description:r,action:i,forced:o=!1,standard:n})=>{const{signals:{[e]:s}}=$gCrli$constants1,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:i,forced:o,standard:n}},Bt=(0,Dt.getSignals)().reduce(((e,{name:t,number:r,description:i,supported:o,action:n,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:i,supported:o,action:n,forced:s,standard:a}})),{});jt.signalsByName=Bt;const qt=(()=>{const e=(0,Dt.getSignals)(),t=Array.from({length:Ft.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>$gCrli$constants1.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:i,description:o,supported:n,action:s,forced:a,standard:l}=r;return{[e]:{name:i,number:e,description:o,supported:n,action:s,forced:a,standard:l}}})(r,e)));return Object.assign({},...t)})();jt.signalsByNumber=qt;var Vt=jt.signalsByName;Lt=({stdout:e,stderr:t,all:r,error:i,signal:o,exitCode:n,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(o=null===o?void 0:o)?void 0:Vt[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:i,signalDescription:o,exitCode:n,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==i?`was killed with ${i} (${o})`:void 0!==n?"failed with exit code "+n:"failed")({timedOut:l,timeout:d,errorCode:i&&i.code,signal:o,signalDescription:p,exitCode:n=null===n?void 0:n,isCanceled:c}),f=`Command ${h}: ${s}`,m="[object Error]"==={}.toString.call(i),g=m?`${f}\n${i.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=v):i=Error(v),i.shortMessage=g,i.command=s,i.escapedCommand=a,i.exitCode=n,i.signal=o,i.signalDescription=p,i.stdout=e,i.stderr=t,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!l,i.isCanceled=c,i.killed=u&&!l,i};var Wt={};const Xt=["stdin","stdout","stderr"],Yt=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Xt.map((t=>e[t]));if((e=>Xt.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Xt.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,Xt.length)},((e,r)=>t[r]))};(Wt=Yt).node=e=>{const t=Yt(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Kt,Jt={},Zt=Ze.process;const Qt=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(Qt(Zt)){var er,tr=He,rr=tt("3FPvT"),ir=/^win/i.test(Zt.platform),or=Ge;"function"!=typeof or&&(or=or.EventEmitter),Zt.__signal_exit_emitter__?er=Zt.__signal_exit_emitter__:((er=Zt.__signal_exit_emitter__=new or).count=0,er.emitted={}),er.infinite||(er.setMaxListeners(1/0),er.infinite=!0),Jt=(e,t)=>{if(!Qt(Ze.process))return()=>{};tr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===lr&&cr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),er.on(r,e),()=>{er.removeListener(r,e),0===er.listeners("exit").length&&0===er.listeners("afterexit").length&&nr()}};var nr=()=>{lr&&Qt(Ze.process)&&(lr=!1,rr.forEach((e=>{try{Zt.removeListener(e,ar[e])}catch(e){}})),Zt.emit=pr,Zt.reallyExit=ur,er.count-=1)};Jt.unload=nr;var sr=(e,t,r)=>{er.emitted[e]||(er.emitted[e]=!0,er.emit(e,t,r))},ar={};rr.forEach((e=>{ar[e]=()=>{Qt(Ze.process)&&Zt.listeners(e).length===er.count&&(nr(),sr("exit",null,e),sr("afterexit",null,e),ir&&"SIGHUP"===e&&(e="SIGINT"),Zt.kill(Zt.pid,e))}})),Jt.signals=()=>rr;var lr=!1,cr=()=>{!lr&&Qt(Ze.process)&&(lr=!0,er.count+=1,rr=rr.filter((e=>{try{return Zt.on(e,ar[e]),!0}catch(e){return!1}})),Zt.emit=hr,Zt.reallyExit=dr)};Jt.load=cr;var ur=Zt.reallyExit,dr=e=>{Qt(Ze.process)&&(Zt.exitCode=e||0,sr("exit",Zt.exitCode,null),sr("afterexit",Zt.exitCode,null),ur.call(Zt,Zt.exitCode))},pr=Zt.emit,hr=function(e,t){if("exit"===e&&Qt(Ze.process)){void 0!==t&&(Zt.exitCode=t);var r=pr.apply(this,arguments);return sr("exit",Zt.exitCode,null),sr("afterexit",Zt.exitCode,null),r}return pr.apply(this,arguments)}}else Jt=()=>()=>{};const fr=e=>e===$gCrli$constants1.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var mr,gr=(Kt={spawnedKill(e,t="SIGTERM",r={}){const i=e(t);return((e,t,r,i)=>{if(!((e,{forceKillAfterTimeout:t},r)=>fr(e)&&!1!==t&&r)(t,r,i))return;const o=(({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")}),o);n.unref&&n.unref()})(e,t,r,i),i},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},i){if(0===t||void 0===t)return i;let o;const n=new Promise(((i,n)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,n)}),t)})),s=i.finally((()=>{clearTimeout(o)}));return Promise.race([n,s])},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},i){if(!t||r)return i;const o=Jt((()=>{e.kill()}));return i.finally((()=>{o()}))}}).spawnedKill,vr=Kt.spawnedCancel,yr=Kt.setupTimeout,wr=Kt.validateTimeout,xr=Kt.setExitHandler,br={};const Er=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Er.writable=e=>Er(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Er.readable=e=>Er(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Er.duplex=e=>Er.writable(e)&&Er.readable(e),Er.transform=e=>Er.duplex(e)&&"function"==typeof e._transform,br=Er;var $r,Sr={},Cr=Xe,_r=$gCrli$promisify,Or=$gCrli$PassThrough;$r=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let o=!1;t?o=!(r||i):r=r||"utf8",i&&(r=null);const n=new Or({objectMode:o});r&&n.setEncoding(r);let s=0;const a=[];return n.on("data",(e=>{a.push(e),o?s=a.length:s+=e.length})),n.getBufferedValue=()=>t?a:i?Buffer.concat(a,s):a.join(""),n.getBufferedLength=()=>s,n};const Tr=_r($gCrli$pipeline);class Ir extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Sr=l).buffer=(e,t)=>l(e,{...t,encoding:"buffer"}),Sr.array=(e,t)=>l(e,{...t,array:!0}),Sr.MaxBufferError=Ir;var Ar,Rr=$gCrli$PassThrough;Ar=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(i.push(t),t.once("end",r.bind(null,t)),t.once("error",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==i.length}function r(e){!(i=i.filter((t=>t!==e))).length&&o.readable&&o.end()}var i=[],o=new Rr({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const Pr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},kr=(e,{encoding:t,buffer:r,maxBuffer:i})=>{if(e&&r)return t?Sr(e,{encoding:t,maxBuffer:i}):Sr.buffer(e,{maxBuffer:i})};var Nr,Lr=(mr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(br(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Ar();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:i,buffer:o,maxBuffer:n},s){const a=kr(e,{encoding:i,buffer:o,maxBuffer:n}),l=kr(t,{encoding:i,buffer:o,maxBuffer:n}),c=kr(r,{encoding:i,buffer:o,maxBuffer:2*n});try{return await Promise.all([s,a,l,c])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Pr(e,a),Pr(t,l),Pr(r,c)])}},validateInputSync({input:e}){if(br(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,jr=mr.getSpawnedResult,Dr=mr.makeAllStream,Mr=mr.validateInputSync;const Fr=(async()=>{})().constructor.prototype,Ur=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Fr,e)]));var Gr,Hr=(Nr={mergePromise(e,t){for(const[r,i]of Ur){const o="function"==typeof t?(...e)=>Reflect.apply(i.value,t(),e):i.value.bind(t);Reflect.defineProperty(e,r,{...i,value:o})}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,zr=Nr.getSpawnedPromise;const Br=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],qr=/^[\w.-]+$/;var Vr=(Gr={joinCommand(e,t){return Br(e,t).join(" ")},getEscapedCommand(e,t){return Br(e,t).map((e=>(e=>"string"!=typeof e||qr.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,Wr=Gr.parseCommand,Xr=Gr.getEscapedCommand;const Yr=(e,t,r={})=>{const i=ft._parse(e,t,r);return e=i.command,t=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.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:i,execPath:o})=>{const n=t?{...process.env,...e}:e;return r?Tt.env({env:n,cwd:i,execPath:o}):n})(r),r.stdio=Wt(r),"win32"===process.platform&&"cmd"===$gCrli$basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:i}},Kr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Ot(t):t:void 0===r?void 0:"",Jr=(e,t,r)=>{const i=Yr(e,t,r),o=Vr(e,t),n=Xr(e,t);let s;wr(i.options);try{s=$gCrli$spawn(i.file,i.args,i.options)}catch(e){const t=new $gCrli$ChildProcess,r=Promise.reject(Lt({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Hr(t,r)}const a=zr(s),l=yr(s,i.options,a),c=xr(s,i.options,l),u={isCanceled:!1};s.kill=gr.bind(null,s.kill.bind(s)),s.cancel=vr.bind(null,s,u);const d=At((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await jr(s,i.options,c),h=Kr(i.options,l),f=Kr(i.options,d),m=Kr(i.options,p);if(e||0!==t||null!==r){const l=Lt({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:n,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:s.killed});if(!i.options.reject)return l;throw l}return{command:o,escapedCommand:n,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Lr(s,i.options.input),s.all=Dr(s,i.options),Hr(s,d)};let Zr;(ht=Jr).sync=(e,t,r)=>{const i=Yr(e,t,r),o=Vr(e,t),n=Xr(e,t);let s;Mr(i.options);try{s=$gCrli$spawnSync(i.file,i.args,i.options)}catch(e){throw Lt({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const a=Kr(i.options,s.stdout,s.error),l=Kr(i.options,s.stderr,s.error);if(s.error||0!==s.status||null!==s.signal){const e=Lt({stdout:a,stderr:l,error:s.error,signal:s.signal,exitCode:s.status,command:o,escapedCommand:n,parsed:i,timedOut:s.error&&"ETIMEDOUT"===s.error.code,isCanceled:!1,killed:null!==s.signal});if(!i.options.reject)return e;throw e}return{command:o,escapedCommand:n,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},ht.command=(e,t)=>{const[r,...i]=Wr(e);return Jr(r,i,t)},ht.commandSync=(e,t)=>{const[r,...i]=Wr(e);return Jr.sync(r,i,t)},ht.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const i=Wt.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:n=process.execPath,nodeOptions:s=o}=r;return Jr(n,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})},rt=tt("gF2Jd");var Qr,ei=tt("81ovw"),ti=tt("8SW0l");rt=tt("gF2Jd"),ti=tt("8SW0l");const ri=$gCrli$homedir();let ii;var oi;Qr=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return ri?e.replace(/^~(?=$|\/|\\)/,ri):e},ei=tt("81ovw");const ni="win32"!==$gCrli$platform(),si=$gCrli$release(),ai=/(\d+\.\d+)\.(\d+)/;oi=e=>ni?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...ai.exec(si).splice(1))?e:e.replace(/(\s+)/g,"%20");const li=d(".cpprc");let ci=!1,ui=!1,di=!1;ei=tt("81ovw");let pi=!1,hi=!1;rt=tt("gF2Jd");let fi,mi=!1;rt=tt("gF2Jd"),ei=tt("81ovw");let gi,vi,yi=!1;ei=tt("81ovw");let wi=!1;var xi=tt("2fNe7"),bi=(ei=tt("81ovw"),{}),Ei=$gCrli$resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),$i=bi&&bi.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),Si=bi&&bi.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ci=bi&&bi.__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 Si(t,e),t}),_i=bi&&bi.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))),Oi=bi&&bi.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(bi,"__esModule",{value:!0}),bi.evaluateVersions=bi.isExplicitVersion=bi.findFromManifest=bi.getManifestFromRepo=bi.findAllVersions=bi.find=bi.cacheFile=bi.cacheDir=bi.extractZip=bi.extractXar=bi.extractTar=bi.extract7z=bi.downloadTool=bi.HTTPError=void 0;const Ti=Ci(tt("gF2Jd")),Ii=Ci(tt("2fNe7")),Ai=Ci(De),Ri=Ci(tt("biqIc")),Pi=Ci(Ne),ki=Ci(je),Ni=Ci(tt("9kh6d")),Li=Ci(tt("dsEdn")),ji=Ci(Ye),Di=Ci(ze),Mi=Oi(tt("8XxoC"));var Fi=tt("eGKv1"),Ui={},Gi=Ui&&Ui.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),Hi=Ui&&Ui.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),zi=Ui&&Ui.__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)&&Gi(t,e,r);return Hi(t,e),t}),Bi=Ui&&Ui.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())})));Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.RetryHelper=void 0;const qi=zi(tt("gF2Jd"));Ui.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 Bi(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;qi.info(e.message)}const i=this.getSleepAmount();qi.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Bi(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Vi extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}bi.HTTPError=Vi;const Wi="win32"===process.platform,Xi="darwin"===process.platform;let Yi;bi.downloadTool=function(e,t,r,i){return _i(this,void 0,void 0,(function*(){t=t||ki.join(D(),Mi.default()),yield Ii.mkdirP(ki.dirname(t)),Ti.debug("Downloading "+e),Ti.debug("Destination "+t);const o=M("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=M("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new Ui.RetryHelper(3,o,n);return yield s.execute((()=>_i(this,void 0,void 0,(function*(){return yield function(e,t,r,i){return _i(this,void 0,void 0,(function*(){if(Ai.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new Ni.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Ti.debug("set auth"),void 0===i&&(i={}),i.authorization=r);const n=yield o.get(e,i);if(200!==n.message.statusCode){const t=new Vi(n.message.statusCode);throw Ti.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),t}const s=Di.promisify(ji.pipeline),a=M("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message))();let l=!1;try{return yield s(a,Ai.createWriteStream(t)),Ti.debug("download complete"),l=!0,t}finally{if(!l){Ti.debug("download failed");try{yield Ii.rmRF(t)}catch(e){Ti.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,i)}))),(e=>!(e instanceof Vi&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},bi.extract7z=function(e,t,r){return _i(this,void 0,void 0,(function*(){$gCrli$ok(Wi,"extract7z() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield R(t);const i=process.cwd();if(process.chdir(t),r)try{const t=["x",Ti.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],o={silent:!0};yield Fi.exec(`"${r}"`,t,o)}finally{process.chdir(i)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${ki.join(Ei,"..","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,"")}'`],o={silent:!0};try{const e=yield Ii.which("powershell",!0);yield Fi.exec(`"${e}"`,r,o)}finally{process.chdir(i)}}return t}))},bi.extractTar=function(e,t,r="xz"){return _i(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield R(t),Ti.debug("Checking tar --version");let i="";yield Fi.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return i+=""+e},stderr(e){return i+=""+e}}}),Ti.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let n;n=r instanceof Array?r:[r],Ti.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return Wi&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield Fi.exec("tar",n),t}))},bi.extractXar=function(e,t,r=[]){return _i(this,void 0,void 0,(function*(){let i;$gCrli$ok(Xi,"extractXar() not supported on current OS"),$gCrli$ok(e,'parameter "file" is required'),t=yield R(t),i=r instanceof Array?r:[r],i.push("-x","-C",t,"-f",e),Ti.isDebug()&&i.push("-v");const o=yield Ii.which("xar",!0);var n;return yield Fi.exec(`"${o}"`,(n=i,Array.from(new Set(n)))),t}))},bi.extractZip=function(e,t){return _i(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield R(t),Wi?yield function(e,t){return _i(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield Ii.which("pwsh",!1);if(o){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}', '${i}', $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 '${i}' -Force } else { throw $_ } } ;`].join(" ")];Ti.debug("Using pwsh at path: "+o),yield Fi.exec(`"${o}"`,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 '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ")],t=yield Ii.which("powershell",!0);Ti.debug("Using powershell at path: "+t),yield Fi.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return _i(this,void 0,void 0,(function*(){const r=yield Ii.which("unzip",!0),i=[e];Ti.isDebug()||i.unshift("-q"),i.unshift("-o"),yield Fi.exec(`"${r}"`,i,{cwd:t})}))}(e,t),t}))},bi.cacheDir=function(e,t,r,i){return _i(this,void 0,void 0,(function*(){if(r=Li.clean(r)||r,i=i||Pi.arch(),Ti.debug(`Caching tool ${t} ${r} ${i}`),Ti.debug("source dir: "+e),!Ai.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield P(t,r,i);for(const t of Ai.readdirSync(e)){const r=ki.join(e,t);yield Ii.cp(r,o,{recursive:!0})}return k(t,r,i),o}))},bi.cacheFile=function(e,t,r,i,o){return _i(this,void 0,void 0,(function*(){if(i=Li.clean(i)||i,o=o||Pi.arch(),Ti.debug(`Caching tool ${r} ${i} ${o}`),Ti.debug("source file: "+e),!Ai.statSync(e).isFile())throw Error("sourceFile is not a file");const n=yield P(r,i,o),s=ki.join(n,t);return Ti.debug("destination file "+s),yield Ii.cp(e,s),k(r,i,o),n}))},bi.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Pi.arch(),N(t)||(t=L(A(e,r),t));let i="";if(t){t=Li.clean(t)||"";const o=ki.join(j(),e,t,r);Ti.debug("checking cache: "+o),Ai.existsSync(o)&&Ai.existsSync(o+".complete")?(Ti.debug(`Found tool in cache ${e} ${t} ${r}`),i=o):Ti.debug("not found")}return i},bi.findAllVersions=A,bi.getManifestFromRepo=function(e,t,r,i="master"){return _i(this,void 0,void 0,(function*(){let o=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`,s=new Ni.HttpClient("tool-cache"),a={};r&&(Ti.debug("set auth"),a.authorization=r);const l=yield s.getJson(n,a);if(!l.result)return o;let c="";for(const e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){Ti.debug("Invalid json")}}return o}))},bi.findFromManifest=function(e,t,r,i=Pi.arch()){return _i(this,void 0,void 0,(function*(){return yield Ri._findMatch(e,t,r,i)}))},bi.isExplicitVersion=N,bi.evaluateVersions=L,rt=tt("gF2Jd"),ti=tt("8SW0l");let Ki=!1;var Ji=tt("kNWZ7"),Zi=tt("3wKw1"),Qi=(Fi=tt("eGKv1"),rt=tt("gF2Jd"),ti=tt("8SW0l"),ei=tt("81ovw"),tt("odmNz")),eo=(Zi=tt("3wKw1"),tt("kULaE"));Fi=tt("eGKv1"),ei=tt("81ovw");const to={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.11.0",cmake:"3.23.2",gcovr:"5.1",conan:"1.48.2",meson:"0.62.2",kcov:"40",task:"3.12.1",doxygen:S()?"1.9.3-1":"1.9.4",gcc:"11"},ro={llvm:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangformat:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},gcovr:{20:"5.1",18:"5.0"},meson:{20:"0.62.1",18:"0.61.4"},doxygen:{20:"1.9.4"}};let io,oo,no=!1;ei=tt("81ovw"),Ji=tt("kNWZ7");var so=tt("ehbTi");let ao;Fi=tt("eGKv1"),ei=tt("81ovw"),rt=tt("gF2Jd"),ei=tt("81ovw"),ti=tt("8SW0l"),so=tt("ehbTi"),Zi=tt("3wKw1"),ei=tt("81ovw"),ti=tt("8SW0l");var lo=$gCrli$resolve(__dirname,"../src/gcc");const co={12:{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.4-10.0.0-msvcrt-r2",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r2"},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 uo=$gCrli$resolve(__dirname,"../src/llvm");const po=(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"]),ho=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"]),fo=new Map,mo={"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"},go=new Set(["10.0.1"]);let vo=!1;var yo,wo,xo,bo={},Eo=bo&&bo.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((o,n)=>{function s(e){try{l(i.next(e))}catch(e){n(e)}}function a(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))),$o=bo&&bo.__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(bo,"__esModule",{value:!0});var So={},Co=So&&So.__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(So,"__esModule",{value:!0});const _o=Co(Ne);var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),So.issueCommand=fe,So.issue=(e,t="")=>{fe(e,{},t)};class To{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 i in this.properties)if(this.properties.hasOwnProperty(i)){const o=this.properties[i];o&&(r?r=!1:e+=",",e+=`${i}=${t=o,Oo.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Oo.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Io={},Ao=Io&&Io.__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(Io,"__esModule",{value:!0});const Ro=Ao(De),Po=Ao(Ne);Io.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Ro.existsSync(r))throw Error("Missing file at path: "+r);Ro.appendFileSync(r,`${Oo.toCommandValue(t)}${Po.EOL}`,{encoding:"utf8"})};const ko=$o(Ne),No=$o(je);var Lo,jo;(jo=Lo=bo.ExitCode||(bo.ExitCode={}))[jo.Success=0]="Success",jo[jo.Failure=1]="Failure",bo.exportVariable=(e,t)=>{const r=Oo.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Io.issueCommand("ENV",`${e}<<${t}${ko.EOL}${r}${ko.EOL}${t}`)}else So.issueCommand("set-env",{name:e},r)},bo.setSecret=e=>{So.issueCommand("add-mask",{},e)},bo.addPath=e=>{process.env.GITHUB_PATH?Io.issueCommand("PATH",e):So.issueCommand("add-path",{},e),process.env.PATH=`${e}${No.delimiter}${process.env.PATH}`},bo.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()},bo.setOutput=(e,t)=>{So.issueCommand("set-output",{name:e},t)},bo.setCommandEcho=e=>{So.issue("echo",e?"on":"off")},bo.setFailed=e=>{process.exitCode=Lo.Failure,me(e)},bo.isDebug=()=>"1"===process.env.RUNNER_DEBUG,bo.debug=e=>{So.issueCommand("debug",{},e)},bo.error=me,bo.warning=e=>{So.issue("warning",e instanceof Error?""+e:e)},bo.info=e=>{process.stdout.write(e+ko.EOL)},bo.startGroup=ge,bo.endGroup=ve,bo.group=function(e,t){return Eo(this,void 0,void 0,(function*(){let r;ge(e);try{r=yield t()}finally{ve()}return r}))},bo.saveState=(e,t)=>{So.issueCommand("save-state",{name:e},t)},bo.getState=e=>process.env["STATE_"+e]||"";const Do=Ke["ProgramFiles(x86)"],Mo=[Ke["ProgramFiles(x86)"],Ke.ProgramFiles],Fo=["Enterprise","Professional","Community"],Uo=["2022","2019","2017"],Go={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};yo=ye;const Ho=Do+"\\Microsoft Visual Studio\\Installer";wo=xe,xo=(e,t,r,i,o,n)=>{if("win32"!=Je)return void bo.info("This is not a Windows virtual environment, bye!");Ke.PATH+=$gCrli$delimiter+Ho;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==i&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const l=`"${xe(n)}" ${a.join(" ")}`;bo.debug("vcvars command-line: "+l);const c=(""+$gCrli$execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"})).split("\f"),u=c[0].split("\r\n"),d=c[1].split("\r\n"),p=c[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}bo.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(bo.info("Setting "+t),be(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),bo.exportVariable(t,r))}bo.endGroup(),bo.info("Configured Developer Command Prompt")},ei=tt("81ovw"),ti=tt("8SW0l"),ei=tt("81ovw");var zo,Bo=$gCrli$resolve(__dirname,"../src/msvc"),qo=(ti=tt("8SW0l"),{});qo=tt("gGvz1"),zo={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 Vo=tt("xu1bL"),Wo={};tt("lhBDm").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 Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.getUbuntuVersion=void 0,Xo.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,i)=>{$gCrli$execFile(t,r,{encoding:"utf8",shell:!1},((o,n,s)=>{if(o)return"errno"in o&&"ENOENT"===o.code?void e(null):void i(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${o} (stderr=${s})`));e(n)}))})));var t,r;if(null===e)return[];let i=null,o=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&&(i=r);const s=t.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(o=s),n&&i&&o)break}if(!n)return[];for(const e of[i,o])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},eo=tt("kULaE"),ei=tt("81ovw"),ei=tt("81ovw");let Yo=!1;const Ko={cmake:V,ninja(e,t,r){return z("ninja",e,Se,t,r)},python:W,async vcpkg(e,r,i){return Yo&&null!==t(it).sync("vcpkg",{nothrow:!0})?{binDir:$gCrli$dirname(t(it).sync("vcpkg"))}:("linux"===process.platform&&(S()?(x("curl"),x("zip"),x("unzip"),x("tar"),x("git"),x("pkg-config")):C()?(_("curl"),_("zip"),_("unzip"),_("tar"),_("git"),_("pkg-config")):(y("curl"),y("zip"),y("unzip"),y("tar"),y("git"),y("pkg-config"))),$gCrli$existsSync($gCrli$join(r,T("bootstrap-vcpkg")))?(0,ei.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(ht).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:$gCrli$dirname(r),stdio:"inherit"}),t(ht).sync(T((o="bootstrap-vcpkg","win32"===process.platform?o:"./"+o)),{cwd:r,shell:!0,stdio:"inherit"}),"linux"!==process.platform&&"darwin"!==process.platform||!c()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,r],r),await f(r),Yo=!0,{binDir:r});var o},async conan(e,t,r){return await Q("setuptools",""),Q("conan",e)},meson(e,t,r){return Q("meson",e)},gcovr(e,t,r){return Q("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await $("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:ue,gcc:ne,choco:E,brew:i,ccache(e,t,r){switch(process.platform){case"win32":return $("ccache",e);case"darwin":return b("ccache",e);case"linux":return S()?x("ccache",e):C()?_("ccache",e):y("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await $("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($gCrli$existsSync($gCrli$join(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await ee(J("graphviz",void 0)),t}case"darwin":{const e=b("doxygen",void 0);return await ee(J("graphviz",void 0)),e}case"linux":{let i;if(""===e)if(S())i=x("doxygen",void 0);else{if(C())return _("doxygen",e);i=y("doxygen",void 0)}else if(S())i=x("doxygen",e);else try{i=await z("doxygen",e,te,t,r),y("libclang-cpp9")}catch(e){(0,ei.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),i=y("doxygen",void 0)}return await ee(J("graphviz",void 0)),i}default:throw Error("Unsupported platform")}},graphviz:ee,async cppcheck(e,t,r){switch(process.platform){case"win32":return await $("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return b("cppcheck",e);case"linux":return S()?x("cppcheck",e):C()?_("ccache",e):y("cppcheck",e);default:throw Error("Unsupported platform")}},clangtidy:pe,clangformat:pe,msvc:$e,vcvarsall:Ee,async kcov(e,t,r){if("linux"===process.platform){const i=await z("kcov",e,Oe,t,r);return S()?x("binutils"):C()?_("binutils"):y("libbinutils"),i}throw Error("Unsupported platform for "+r)},async make(e,t,r){switch(process.platform){case"win32":return $("make",e);case"darwin":return b("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":return S()?x("make",e):C()?_("make",e):y("make",e);default:throw Error("Unsupported platform")}},task(e,t,r){return z("task",e,B,t,r)},sevenzip:I},Jo=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],Zo=["compiler","architecture",...Jo];Ie(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,ei.error)("main() panicked!"),(0,ei.error)(e),process.exitCode=1}));export{Ie as main,Ae as parseArgs,Re as getCompilerInfo};
//# sourceMappingURL=setup_cpp.mjs.map